1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for mediainfo 21.09. 4@%:@ 5@%:@ 6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7@%:@ 8@%:@ 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in @%:@( 26 *posix*) : 27 set -o posix ;; @%:@( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in @%:@( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in @%:@(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in @%:@ (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in @%:@( 170 *posix*) : 171 set -o posix ;; @%:@( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in @%:@( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in @%:@ (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293@%:@ as_fn_unset VAR 294@%:@ --------------- 295@%:@ Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302@%:@ as_fn_set_status STATUS 303@%:@ ----------------------- 304@%:@ Set @S|@? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} @%:@ as_fn_set_status 309 310@%:@ as_fn_exit STATUS 311@%:@ ----------------- 312@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} @%:@ as_fn_exit 319 320@%:@ as_fn_mkdir_p 321@%:@ ------------- 322@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} @%:@ as_fn_mkdir_p 367 368@%:@ as_fn_executable_p FILE 369@%:@ ----------------------- 370@%:@ Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} @%:@ as_fn_executable_p 375@%:@ as_fn_append VAR VALUE 376@%:@ ---------------------- 377@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 378@%:@ advantage of any shell optimizations that allow amortized linear growth over 379@%:@ repeated appends, instead of the typical quadratic growth present in naive 380@%:@ implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393@%:@ as_fn_arith ARG... 394@%:@ ------------------ 395@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 396@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 397@%:@ must be portable across @S|@(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 412@%:@ ---------------------------------------- 413@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415@%:@ script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} @%:@ as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in @%:@((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIB@&t@OBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='mediainfo' 589PACKAGE_TARNAME='mediainfo' 590PACKAGE_VERSION='21.09' 591PACKAGE_STRING='mediainfo 21.09' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="../../../Source/CLI/CLI_Main.cpp" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIB@&t@OBJS 636CXXCPP 637CPP 638LT_SYS_LIBRARY_PATH 639OTOOL64 640OTOOL 641LIPO 642NMEDIT 643DSYMUTIL 644MANIFEST_TOOL 645RANLIB 646ac_ct_AR 647AR 648DLLTOOL 649OBJDUMP 650LN_S 651NM 652ac_ct_DUMPBIN 653DUMPBIN 654LD 655FGREP 656EGREP 657GREP 658SED 659LIBTOOL 660am__fastdepCXX_FALSE 661am__fastdepCXX_TRUE 662CXXDEPMODE 663ac_ct_CXX 664CXXFLAGS 665CXX 666am__fastdepCC_FALSE 667am__fastdepCC_TRUE 668CCDEPMODE 669am__nodep 670AMDEPBACKSLASH 671AMDEP_FALSE 672AMDEP_TRUE 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709host_os 710host_vendor 711host_cpu 712host 713build_os 714build_vendor 715build_cpu 716build 717target_alias 718host_alias 719build_alias 720LIBS 721ECHO_T 722ECHO_N 723ECHO_C 724DEFS 725mandir 726localedir 727libdir 728psdir 729pdfdir 730dvidir 731htmldir 732infodir 733docdir 734oldincludedir 735includedir 736runstatedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_URL 749PACKAGE_BUGREPORT 750PACKAGE_STRING 751PACKAGE_VERSION 752PACKAGE_TARNAME 753PACKAGE_NAME 754PATH_SEPARATOR 755SHELL 756am__quote' 757ac_subst_files='' 758ac_user_opts=' 759enable_option_checking 760enable_silent_rules 761enable_dependency_tracking 762enable_shared 763enable_static 764with_pic 765enable_fast_install 766with_aix_soname 767with_gnu_ld 768with_sysroot 769enable_libtool_lock 770enable_debug 771enable_gprof 772enable_universal_binary 773enable_arch_ppc 774enable_arch_ppc64 775enable_arch_i386 776enable_arch_x86_64 777enable_arch_arm64 778enable_staticlibs 779enable_stream_missing 780with_macosx_sdk 781with_macosx_version_min 782with_dll 783with_libmediainfo_name 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793CXX 794CXXFLAGS 795CCC 796LT_SYS_LIBRARY_PATH 797CPP 798CXXCPP' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 # Accept the important Cygnus configure options, so we can diagnose typos. 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1091 | --runstate | --runstat | --runsta | --runst | --runs \ 1092 | --run | --ru | --r) 1093 ac_prev=runstatedir ;; 1094 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1095 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1096 | --run=* | --ru=* | --r=*) 1097 runstatedir=$ac_optarg ;; 1098 1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1100 ac_prev=sbindir ;; 1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1102 | --sbi=* | --sb=*) 1103 sbindir=$ac_optarg ;; 1104 1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1107 | --sharedst | --shareds | --shared | --share | --shar \ 1108 | --sha | --sh) 1109 ac_prev=sharedstatedir ;; 1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1113 | --sha=* | --sh=*) 1114 sharedstatedir=$ac_optarg ;; 1115 1116 -site | --site | --sit) 1117 ac_prev=site ;; 1118 -site=* | --site=* | --sit=*) 1119 site=$ac_optarg ;; 1120 1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1122 ac_prev=srcdir ;; 1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1124 srcdir=$ac_optarg ;; 1125 1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1127 | --syscon | --sysco | --sysc | --sys | --sy) 1128 ac_prev=sysconfdir ;; 1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1131 sysconfdir=$ac_optarg ;; 1132 1133 -target | --target | --targe | --targ | --tar | --ta | --t) 1134 ac_prev=target_alias ;; 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1136 target_alias=$ac_optarg ;; 1137 1138 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1139 verbose=yes ;; 1140 1141 -version | --version | --versio | --versi | --vers | -V) 1142 ac_init_version=: ;; 1143 1144 -with-* | --with-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"with_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=\$ac_optarg ;; 1159 1160 -without-* | --without-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=no ;; 1175 1176 --x) 1177 # Obsolete; use --with-x. 1178 with_x=yes ;; 1179 1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1181 | --x-incl | --x-inc | --x-in | --x-i) 1182 ac_prev=x_includes ;; 1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1185 x_includes=$ac_optarg ;; 1186 1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1189 ac_prev=x_libraries ;; 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1192 x_libraries=$ac_optarg ;; 1193 1194 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1195Try \`$0 --help' for more information" 1196 ;; 1197 1198 *=*) 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1200 # Reject names that are not valid shell variable names. 1201 case $ac_envvar in #( 1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1204 esac 1205 eval $ac_envvar=\$ac_optarg 1206 export $ac_envvar ;; 1207 1208 *) 1209 # FIXME: should be removed in autoconf 3.0. 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1214 ;; 1215 1216 esac 1217done 1218 1219if test -n "$ac_prev"; then 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1221 as_fn_error $? "missing argument to $ac_option" 1222fi 1223 1224if test -n "$ac_unrecognized_opts"; then 1225 case $enable_option_checking in 1226 no) ;; 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1229 esac 1230fi 1231 1232# Check all directory arguments for consistency. 1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1234 datadir sysconfdir sharedstatedir localstatedir includedir \ 1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1236 libdir localedir mandir runstatedir 1237do 1238 eval ac_val=\$$ac_var 1239 # Remove trailing slashes. 1240 case $ac_val in 1241 */ ) 1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1243 eval $ac_var=\$ac_val;; 1244 esac 1245 # Be sure to have absolute directory names. 1246 case $ac_val in 1247 [\\/$]* | ?:[\\/]* ) continue;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1249 esac 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1251done 1252 1253# There might be people who depend on the old broken behavior: `$host' 1254# used to hold the argument of --host etc. 1255# FIXME: To remove some day. 1256build=$build_alias 1257host=$host_alias 1258target=$target_alias 1259 1260# FIXME: To remove some day. 1261if test "x$host_alias" != x; then 1262 if test "x$build_alias" = x; then 1263 cross_compiling=maybe 1264 elif test "x$build_alias" != "x$host_alias"; then 1265 cross_compiling=yes 1266 fi 1267fi 1268 1269ac_tool_prefix= 1270test -n "$host_alias" && ac_tool_prefix=$host_alias- 1271 1272test "$silent" = yes && exec 6>/dev/null 1273 1274 1275ac_pwd=`pwd` && test -n "$ac_pwd" && 1276ac_ls_di=`ls -di .` && 1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1278 as_fn_error $? "working directory cannot be determined" 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1280 as_fn_error $? "pwd does not report name of working directory" 1281 1282 1283# Find the source files, if location was not specified. 1284if test -z "$srcdir"; then 1285 ac_srcdir_defaulted=yes 1286 # Try the directory containing this script, then the parent directory. 1287 ac_confdir=`$as_dirname -- "$as_myself" || 1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1289 X"$as_myself" : 'X\(//\)[^/]' \| \ 1290 X"$as_myself" : 'X\(//\)$' \| \ 1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1292$as_echo X"$as_myself" | 1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)[^/].*/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\).*/{ 1306 s//\1/ 1307 q 1308 } 1309 s/.*/./; q'` 1310 srcdir=$ac_confdir 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 srcdir=.. 1313 fi 1314else 1315 ac_srcdir_defaulted=no 1316fi 1317if test ! -r "$srcdir/$ac_unique_file"; then 1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1320fi 1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1322ac_abs_confdir=`( 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1324 pwd)` 1325# When building in place, set srcdir=. 1326if test "$ac_abs_confdir" = "$ac_pwd"; then 1327 srcdir=. 1328fi 1329# Remove unnecessary trailing slashes from srcdir. 1330# Double slashes in file names in object file debugging info 1331# mess up M-x gdb in Emacs. 1332case $srcdir in 1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1334esac 1335for ac_var in $ac_precious_vars; do 1336 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_env_${ac_var}_value=\$${ac_var} 1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1340done 1341 1342# 1343# Report the --help message. 1344# 1345if test "$ac_init_help" = "long"; then 1346 # Omit some internal or obsolete options to make the list less imposing. 1347 # This message is too long to be a string in the A/UX 3.1 sh. 1348 cat <<_ACEOF 1349\`configure' configures mediainfo 21.09 to adapt to many kinds of systems. 1350 1351Usage: $0 [OPTION]... [VAR=VALUE]... 1352 1353To assign environment variables (e.g., CC, CFLAGS...), specify them as 1354VAR=VALUE. See below for descriptions of some of the useful variables. 1355 1356Defaults for the options are specified in brackets. 1357 1358Configuration: 1359 -h, --help display this help and exit 1360 --help=short display options specific to this package 1361 --help=recursive display the short help of all the included packages 1362 -V, --version display version information and exit 1363 -q, --quiet, --silent do not print \`checking ...' messages 1364 --cache-file=FILE cache test results in FILE [disabled] 1365 -C, --config-cache alias for \`--cache-file=config.cache' 1366 -n, --no-create do not create output files 1367 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1368 1369Installation directories: 1370 --prefix=PREFIX install architecture-independent files in PREFIX 1371 @<:@@S|@ac_default_prefix@:>@ 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1373 @<:@PREFIX@:>@ 1374 1375By default, \`make install' will install all the files in 1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1377an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1378for instance \`--prefix=\$HOME'. 1379 1380For better control, use the options below. 1381 1382Fine tuning of the installation directories: 1383 --bindir=DIR user executables [EPREFIX/bin] 1384 --sbindir=DIR system admin executables [EPREFIX/sbin] 1385 --libexecdir=DIR program executables [EPREFIX/libexec] 1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1389 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1390 --libdir=DIR object code libraries [EPREFIX/lib] 1391 --includedir=DIR C header files [PREFIX/include] 1392 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1395 --infodir=DIR info documentation [DATAROOTDIR/info] 1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1397 --mandir=DIR man documentation [DATAROOTDIR/man] 1398 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/mediainfo@:>@ 1399 --htmldir=DIR html documentation [DOCDIR] 1400 --dvidir=DIR dvi documentation [DOCDIR] 1401 --pdfdir=DIR pdf documentation [DOCDIR] 1402 --psdir=DIR ps documentation [DOCDIR] 1403_ACEOF 1404 1405 cat <<\_ACEOF 1406 1407Program names: 1408 --program-prefix=PREFIX prepend PREFIX to installed program names 1409 --program-suffix=SUFFIX append SUFFIX to installed program names 1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1411 1412System types: 1413 --build=BUILD configure for building on BUILD [guessed] 1414 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1415_ACEOF 1416fi 1417 1418if test -n "$ac_init_help"; then 1419 case $ac_init_help in 1420 short | recursive ) echo "Configuration of mediainfo 21.09:";; 1421 esac 1422 cat <<\_ACEOF 1423 1424Optional Features: 1425 --disable-option-checking ignore unrecognized --enable/--with options 1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-dependency-tracking 1431 do not reject slow dependency extractors 1432 --disable-dependency-tracking 1433 speeds up one-time build 1434 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1435 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1436 --enable-fast-install@<:@=PKGS@:>@ 1437 optimize for fast installation @<:@default=yes@:>@ 1438 --disable-libtool-lock avoid locking (might break parallel builds) 1439 --enable-debug Enable full debug 1440 --enable-gprof Enable gprof log 1441 --enable-universal_binary 1442 Create Mac PPC/i386 Universal binary 1443 --enable-arch-ppc Create Mac PPC architecture 1444 --enable-arch-ppc64 Create Mac PPC64 architecture 1445 --enable-arch-i386 Create Mac i386 architecture 1446 --enable-arch-x86_64 Create Mac x86_64 architecture 1447 --enable-arch-arm64 Create Mac arm64 architecture 1448 --enable-staticlibs Use static libmediainfo and libzen 1449 (--enable-stream_missing, Disable stream support (old compilers)) 1450 1451 1452Optional Packages: 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1456 both@:>@ 1457 --with-aix-soname=aix|svr4|both 1458 shared library versioning (aka "SONAME") variant to 1459 provide on AIX, @<:@default=aix@:>@. 1460 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1461 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1462 compiler's sysroot if not specified). 1463 --with-macosx-sdk Force the Mac SDK 1464 --with-macosx-version-min 1465 Force the Mac Version 1466 --with-dll Do not link to libmediainfo, dynamic loading 1467 --with-libmediainfo-name 1468 Force libmediainfo filename 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CXX C++ compiler command 1479 CXXFLAGS C++ compiler flags 1480 LT_SYS_LIBRARY_PATH 1481 User-defined run-time library search path. 1482 CPP C preprocessor 1483 CXXCPP C++ preprocessor 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to the package provider. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for guested configure. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551mediainfo configure 21.09 1552generated by GNU Autoconf 2.69 1553 1554Copyright (C) 2012 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565@%:@ ac_fn_c_try_compile LINENO 1566@%:@ -------------------------- 1567@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1568ac_fn_c_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601} @%:@ ac_fn_c_try_compile 1602 1603@%:@ ac_fn_cxx_try_compile LINENO 1604@%:@ ---------------------------- 1605@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1606ac_fn_cxx_try_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 rm -f conftest.$ac_objext 1610 if { { ac_try="$ac_compile" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_compile") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } && { 1626 test -z "$ac_cxx_werror_flag" || 1627 test ! -s conftest.err 1628 } && test -s conftest.$ac_objext; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} @%:@ ac_fn_cxx_try_compile 1640 1641@%:@ ac_fn_c_try_link LINENO 1642@%:@ ----------------------- 1643@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1644ac_fn_c_try_link () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext conftest$ac_exeext 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest$ac_exeext && { 1667 test "$cross_compiling" = yes || 1668 test -x conftest$ac_exeext 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1679 # interfere with the next link command; also delete a directory that is 1680 # left behind by Apple's compiler. We do this before executing the actions. 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} @%:@ ac_fn_c_try_link 1686 1687@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688@%:@ ------------------------------------------------------- 1689@%:@ Tests whether HEADER exists and can be compiled using the include files in 1690@%:@ INCLUDES, setting the cache variable VAR accordingly. 1691ac_fn_c_check_header_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695$as_echo_n "checking for $2... " >&6; } 1696if eval \${$3+:} false; then : 1697 $as_echo_n "(cached) " >&6 1698else 1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1700/* end confdefs.h. */ 1701$4 1702@%:@include <$2> 1703_ACEOF 1704if ac_fn_c_try_compile "$LINENO"; then : 1705 eval "$3=yes" 1706else 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1710fi 1711eval ac_res=\$$3 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713$as_echo "$ac_res" >&6; } 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} @%:@ ac_fn_c_check_header_compile 1717 1718@%:@ ac_fn_c_try_cpp LINENO 1719@%:@ ---------------------- 1720@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1721ac_fn_c_try_cpp () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_cpp conftest.$ac_ext" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } > conftest.i && { 1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} @%:@ ac_fn_c_try_cpp 1754 1755@%:@ ac_fn_c_try_run LINENO 1756@%:@ ---------------------- 1757@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1758@%:@ that executables *can* be run. 1759ac_fn_c_try_run () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if { { ac_try="$ac_link" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_link") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1773 { { case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_try") 2>&5 1780 ac_status=$? 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; }; }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: program exited with status $ac_status" >&5 1786 $as_echo "$as_me: failed program was:" >&5 1787sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 ac_retval=$ac_status 1790fi 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} @%:@ ac_fn_c_try_run 1796 1797@%:@ ac_fn_c_check_func LINENO FUNC VAR 1798@%:@ ---------------------------------- 1799@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1800ac_fn_c_check_func () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1812#define $2 innocuous_$2 1813 1814/* System header to define __stub macros and hopefully few prototypes, 1815 which can conflict with char $2 (); below. 1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1817 <limits.h> exists even on freestanding compilers. */ 1818 1819#ifdef __STDC__ 1820# include <limits.h> 1821#else 1822# include <assert.h> 1823#endif 1824 1825#undef $2 1826 1827/* Override any GCC internal prototype to avoid an error. 1828 Use char because int might match the return type of a GCC 1829 builtin and then its argument prototype would still apply. */ 1830#ifdef __cplusplus 1831extern "C" 1832#endif 1833char $2 (); 1834/* The GNU C library defines this for functions which it implements 1835 to always fail with ENOSYS. Some functions are actually named 1836 something starting with __ and the normal name is an alias. */ 1837#if defined __stub_$2 || defined __stub___$2 1838choke me 1839#endif 1840 1841int 1842main () 1843{ 1844return $2 (); 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_link "$LINENO"; then : 1850 eval "$3=yes" 1851else 1852 eval "$3=no" 1853fi 1854rm -f core conftest.err conftest.$ac_objext \ 1855 conftest$ac_exeext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} @%:@ ac_fn_c_check_func 1863 1864@%:@ ac_fn_cxx_try_cpp LINENO 1865@%:@ ------------------------ 1866@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1867ac_fn_cxx_try_cpp () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 if { { ac_try="$ac_cpp conftest.$ac_ext" 1871case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874esac 1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876$as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1878 ac_status=$? 1879 if test -s conftest.err; then 1880 grep -v '^ *+' conftest.err >conftest.er1 1881 cat conftest.er1 >&5 1882 mv -f conftest.er1 conftest.err 1883 fi 1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; } > conftest.i && { 1886 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1887 test ! -s conftest.err 1888 }; then : 1889 ac_retval=0 1890else 1891 $as_echo "$as_me: failed program was:" >&5 1892sed 's/^/| /' conftest.$ac_ext >&5 1893 1894 ac_retval=1 1895fi 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} @%:@ ac_fn_cxx_try_cpp 1900 1901@%:@ ac_fn_cxx_try_link LINENO 1902@%:@ ------------------------- 1903@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1904ac_fn_cxx_try_link () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 rm -f conftest.$ac_objext conftest$ac_exeext 1908 if { { ac_try="$ac_link" 1909case "(($ac_try" in 1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1911 *) ac_try_echo=$ac_try;; 1912esac 1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1914$as_echo "$ac_try_echo"; } >&5 1915 (eval "$ac_link") 2>conftest.err 1916 ac_status=$? 1917 if test -s conftest.err; then 1918 grep -v '^ *+' conftest.err >conftest.er1 1919 cat conftest.er1 >&5 1920 mv -f conftest.er1 conftest.err 1921 fi 1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1923 test $ac_status = 0; } && { 1924 test -z "$ac_cxx_werror_flag" || 1925 test ! -s conftest.err 1926 } && test -s conftest$ac_exeext && { 1927 test "$cross_compiling" = yes || 1928 test -x conftest$ac_exeext 1929 }; then : 1930 ac_retval=0 1931else 1932 $as_echo "$as_me: failed program was:" >&5 1933sed 's/^/| /' conftest.$ac_ext >&5 1934 1935 ac_retval=1 1936fi 1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1939 # interfere with the next link command; also delete a directory that is 1940 # left behind by Apple's compiler. We do this before executing the actions. 1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 as_fn_set_status $ac_retval 1944 1945} @%:@ ac_fn_cxx_try_link 1946cat >config.log <<_ACEOF 1947This file contains any messages produced by compilers while 1948running configure, to aid debugging if configure makes a mistake. 1949 1950It was created by mediainfo $as_me 21.09, which was 1951generated by GNU Autoconf 2.69. Invocation command line was 1952 1953 $ $0 $@ 1954 1955_ACEOF 1956exec 5>>config.log 1957{ 1958cat <<_ASUNAME 1959## --------- ## 1960## Platform. ## 1961## --------- ## 1962 1963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1964uname -m = `(uname -m) 2>/dev/null || echo unknown` 1965uname -r = `(uname -r) 2>/dev/null || echo unknown` 1966uname -s = `(uname -s) 2>/dev/null || echo unknown` 1967uname -v = `(uname -v) 2>/dev/null || echo unknown` 1968 1969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1970/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1971 1972/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1973/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1975/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1976/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1977/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1978/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1979 1980_ASUNAME 1981 1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983for as_dir in $PATH 1984do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 $as_echo "PATH: $as_dir" 1988 done 1989IFS=$as_save_IFS 1990 1991} >&5 1992 1993cat >&5 <<_ACEOF 1994 1995 1996## ----------- ## 1997## Core tests. ## 1998## ----------- ## 1999 2000_ACEOF 2001 2002 2003# Keep a trace of the command line. 2004# Strip out --no-create and --no-recursion so they do not pile up. 2005# Strip out --silent because we don't want to record it for future runs. 2006# Also quote any args containing shell meta-characters. 2007# Make two passes to allow for proper duplicate-argument suppression. 2008ac_configure_args= 2009ac_configure_args0= 2010ac_configure_args1= 2011ac_must_keep_next=false 2012for ac_pass in 1 2 2013do 2014 for ac_arg 2015 do 2016 case $ac_arg in 2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2019 | -silent | --silent | --silen | --sile | --sil) 2020 continue ;; 2021 *\'*) 2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2023 esac 2024 case $ac_pass in 2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2026 2) 2027 as_fn_append ac_configure_args1 " '$ac_arg'" 2028 if test $ac_must_keep_next = true; then 2029 ac_must_keep_next=false # Got value, back to normal. 2030 else 2031 case $ac_arg in 2032 *=* | --config-cache | -C | -disable-* | --disable-* \ 2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2035 | -with-* | --with-* | -without-* | --without-* | --x) 2036 case "$ac_configure_args0 " in 2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2038 esac 2039 ;; 2040 -* ) ac_must_keep_next=true ;; 2041 esac 2042 fi 2043 as_fn_append ac_configure_args " '$ac_arg'" 2044 ;; 2045 esac 2046 done 2047done 2048{ ac_configure_args0=; unset ac_configure_args0;} 2049{ ac_configure_args1=; unset ac_configure_args1;} 2050 2051# When interrupted or exit'd, cleanup temporary files, and complete 2052# config.log. We remove comments because anyway the quotes in there 2053# would cause problems or look ugly. 2054# WARNING: Use '\'' to represent an apostrophe within the trap. 2055# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2056trap 'exit_status=$? 2057 # Save into config.log some information that might help in debugging. 2058 { 2059 echo 2060 2061 $as_echo "## ---------------- ## 2062## Cache variables. ## 2063## ---------------- ##" 2064 echo 2065 # The following way of writing the cache mishandles newlines in values, 2066( 2067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2068 eval ac_val=\$$ac_var 2069 case $ac_val in #( 2070 *${as_nl}*) 2071 case $ac_var in #( 2072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2074 esac 2075 case $ac_var in #( 2076 _ | IFS | as_nl) ;; #( 2077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2078 *) { eval $ac_var=; unset $ac_var;} ;; 2079 esac ;; 2080 esac 2081 done 2082 (set) 2>&1 | 2083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2084 *${as_nl}ac_space=\ *) 2085 sed -n \ 2086 "s/'\''/'\''\\\\'\'''\''/g; 2087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2088 ;; #( 2089 *) 2090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2091 ;; 2092 esac | 2093 sort 2094) 2095 echo 2096 2097 $as_echo "## ----------------- ## 2098## Output variables. ## 2099## ----------------- ##" 2100 echo 2101 for ac_var in $ac_subst_vars 2102 do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in 2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2106 esac 2107 $as_echo "$ac_var='\''$ac_val'\''" 2108 done | sort 2109 echo 2110 2111 if test -n "$ac_subst_files"; then 2112 $as_echo "## ------------------- ## 2113## File substitutions. ## 2114## ------------------- ##" 2115 echo 2116 for ac_var in $ac_subst_files 2117 do 2118 eval ac_val=\$$ac_var 2119 case $ac_val in 2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2121 esac 2122 $as_echo "$ac_var='\''$ac_val'\''" 2123 done | sort 2124 echo 2125 fi 2126 2127 if test -s confdefs.h; then 2128 $as_echo "## ----------- ## 2129## confdefs.h. ## 2130## ----------- ##" 2131 echo 2132 cat confdefs.h 2133 echo 2134 fi 2135 test "$ac_signal" != 0 && 2136 $as_echo "$as_me: caught signal $ac_signal" 2137 $as_echo "$as_me: exit $exit_status" 2138 } >&5 2139 rm -f core *.core core.conftest.* && 2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2141 exit $exit_status 2142' 0 2143for ac_signal in 1 2 13 15; do 2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2145done 2146ac_signal=0 2147 2148# confdefs.h avoids OS command line length limits that DEFS can exceed. 2149rm -f -r conftest* confdefs.h 2150 2151$as_echo "/* confdefs.h */" > confdefs.h 2152 2153# Predefined preprocessor variables. 2154 2155cat >>confdefs.h <<_ACEOF 2156@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2157_ACEOF 2158 2159cat >>confdefs.h <<_ACEOF 2160@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176@%:@define PACKAGE_URL "$PACKAGE_URL" 2177_ACEOF 2178 2179 2180# Let the site file select an alternate cache file if it wants to. 2181# Prefer an explicitly selected file to automatically selected ones. 2182ac_site_file1=NONE 2183ac_site_file2=NONE 2184if test -n "$CONFIG_SITE"; then 2185 # We do not want a PATH search for config.site. 2186 case $CONFIG_SITE in @%:@(( 2187 -*) ac_site_file1=./$CONFIG_SITE;; 2188 */*) ac_site_file1=$CONFIG_SITE;; 2189 *) ac_site_file1=./$CONFIG_SITE;; 2190 esac 2191elif test "x$prefix" != xNONE; then 2192 ac_site_file1=$prefix/share/config.site 2193 ac_site_file2=$prefix/etc/config.site 2194else 2195 ac_site_file1=$ac_default_prefix/share/config.site 2196 ac_site_file2=$ac_default_prefix/etc/config.site 2197fi 2198for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2199do 2200 test "x$ac_site_file" = xNONE && continue 2201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2203$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2204 sed 's/^/| /' "$ac_site_file" >&5 2205 . "$ac_site_file" \ 2206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2208as_fn_error $? "failed to load site script $ac_site_file 2209See \`config.log' for more details" "$LINENO" 5; } 2210 fi 2211done 2212 2213if test -r "$cache_file"; then 2214 # Some versions of bash will fail to source /dev/null (special files 2215 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2218$as_echo "$as_me: loading cache $cache_file" >&6;} 2219 case $cache_file in 2220 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2221 *) . "./$cache_file";; 2222 esac 2223 fi 2224else 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2226$as_echo "$as_me: creating cache $cache_file" >&6;} 2227 >$cache_file 2228fi 2229 2230# Check that the precious variables saved in the cache have kept the same 2231# value. 2232ac_cache_corrupted=false 2233for ac_var in $ac_precious_vars; do 2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2235 eval ac_new_set=\$ac_env_${ac_var}_set 2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2237 eval ac_new_val=\$ac_env_${ac_var}_value 2238 case $ac_old_set,$ac_new_set in 2239 set,) 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2242 ac_cache_corrupted=: ;; 2243 ,set) 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2246 ac_cache_corrupted=: ;; 2247 ,);; 2248 *) 2249 if test "x$ac_old_val" != "x$ac_new_val"; then 2250 # differences in whitespace do not lead to failure. 2251 ac_old_val_w=`echo x $ac_old_val` 2252 ac_new_val_w=`echo x $ac_new_val` 2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2256 ac_cache_corrupted=: 2257 else 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2260 eval $ac_var=\$ac_old_val 2261 fi 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2263$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2265$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2266 fi;; 2267 esac 2268 # Pass precious variables to config.status. 2269 if test "$ac_new_set" = set; then 2270 case $ac_new_val in 2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2272 *) ac_arg=$ac_var=$ac_new_val ;; 2273 esac 2274 case " $ac_configure_args " in 2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2277 esac 2278 fi 2279done 2280if $ac_cache_corrupted; then 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2285 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2286fi 2287## -------------------- ## 2288## Main body of script. ## 2289## -------------------- ## 2290 2291ac_ext=c 2292ac_cpp='$CPP $CPPFLAGS' 2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2295ac_compiler_gnu=$ac_cv_c_compiler_gnu 2296 2297 2298 2299 2300 2301ac_aux_dir= 2302for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2303 if test -f "$ac_dir/install-sh"; then 2304 ac_aux_dir=$ac_dir 2305 ac_install_sh="$ac_aux_dir/install-sh -c" 2306 break 2307 elif test -f "$ac_dir/install.sh"; then 2308 ac_aux_dir=$ac_dir 2309 ac_install_sh="$ac_aux_dir/install.sh -c" 2310 break 2311 elif test -f "$ac_dir/shtool"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/shtool install -c" 2314 break 2315 fi 2316done 2317if test -z "$ac_aux_dir"; then 2318 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2319fi 2320 2321# These three variables are undocumented and unsupported, 2322# and are intended to be withdrawn in a future Autoconf release. 2323# They can cause serious problems if a builder's source tree is in a directory 2324# whose full name contains unusual characters. 2325ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2326ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2327ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2328 2329 2330# Make sure we can run config.sub. 2331$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2332 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2333 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2335$as_echo_n "checking build system type... " >&6; } 2336if ${ac_cv_build+:} false; then : 2337 $as_echo_n "(cached) " >&6 2338else 2339 ac_build_alias=$build_alias 2340test "x$ac_build_alias" = x && 2341 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2342test "x$ac_build_alias" = x && 2343 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2344ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2346 2347fi 2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2349$as_echo "$ac_cv_build" >&6; } 2350case $ac_cv_build in 2351*-*-*) ;; 2352*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2353esac 2354build=$ac_cv_build 2355ac_save_IFS=$IFS; IFS='-' 2356set x $ac_cv_build 2357shift 2358build_cpu=$1 2359build_vendor=$2 2360shift; shift 2361# Remember, the first character of IFS is used to create $*, 2362# except with old shells: 2363build_os=$* 2364IFS=$ac_save_IFS 2365case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2366 2367 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2369$as_echo_n "checking host system type... " >&6; } 2370if ${ac_cv_host+:} false; then : 2371 $as_echo_n "(cached) " >&6 2372else 2373 if test "x$host_alias" = x; then 2374 ac_cv_host=$ac_cv_build 2375else 2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2378fi 2379 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2382$as_echo "$ac_cv_host" >&6; } 2383case $ac_cv_host in 2384*-*-*) ;; 2385*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2386esac 2387host=$ac_cv_host 2388ac_save_IFS=$IFS; IFS='-' 2389set x $ac_cv_host 2390shift 2391host_cpu=$1 2392host_vendor=$2 2393shift; shift 2394# Remember, the first character of IFS is used to create $*, 2395# except with old shells: 2396host_os=$* 2397IFS=$ac_save_IFS 2398case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2399 2400 2401am__api_version='1.16' 2402 2403# Find a good install program. We prefer a C program (faster), 2404# so one script is as good as another. But avoid the broken or 2405# incompatible versions: 2406# SysV /etc/install, /usr/sbin/install 2407# SunOS /usr/etc/install 2408# IRIX /sbin/install 2409# AIX /bin/install 2410# AmigaOS /C/install, which installs bootblocks on floppy discs 2411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2412# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2414# OS/2's system install, which has a completely different semantic 2415# ./install, which can be erroneously created by make from ./install.sh. 2416# Reject install programs that cannot install multiple files. 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2418$as_echo_n "checking for a BSD-compatible install... " >&6; } 2419if test -z "$INSTALL"; then 2420if ${ac_cv_path_install+:} false; then : 2421 $as_echo_n "(cached) " >&6 2422else 2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 # Account for people who put trailing slashes in PATH elements. 2429case $as_dir/ in @%:@(( 2430 ./ | .// | /[cC]/* | \ 2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2432 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2433 /usr/ucb/* ) ;; 2434 *) 2435 # OSF1 and SCO ODT 3.0 have their own names for install. 2436 # Don't use installbsd from OSF since it installs stuff as root 2437 # by default. 2438 for ac_prog in ginstall scoinst install; do 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2441 if test $ac_prog = install && 2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2443 # AIX install. It has an incompatible calling convention. 2444 : 2445 elif test $ac_prog = install && 2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2447 # program-specific install script used by HP pwplus--don't use. 2448 : 2449 else 2450 rm -rf conftest.one conftest.two conftest.dir 2451 echo one > conftest.one 2452 echo two > conftest.two 2453 mkdir conftest.dir 2454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2455 test -s conftest.one && test -s conftest.two && 2456 test -s conftest.dir/conftest.one && 2457 test -s conftest.dir/conftest.two 2458 then 2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2460 break 3 2461 fi 2462 fi 2463 fi 2464 done 2465 done 2466 ;; 2467esac 2468 2469 done 2470IFS=$as_save_IFS 2471 2472rm -rf conftest.one conftest.two conftest.dir 2473 2474fi 2475 if test "${ac_cv_path_install+set}" = set; then 2476 INSTALL=$ac_cv_path_install 2477 else 2478 # As a last resort, use the slow shell script. Don't cache a 2479 # value for INSTALL within a source directory, because that will 2480 # break other packages using the cache if that directory is 2481 # removed, or if the value is a relative name. 2482 INSTALL=$ac_install_sh 2483 fi 2484fi 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2486$as_echo "$INSTALL" >&6; } 2487 2488# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2489# It thinks the first close brace ends the variable substitution. 2490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2491 2492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2493 2494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2495 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2497$as_echo_n "checking whether build environment is sane... " >&6; } 2498# Reject unsafe characters in $srcdir or the absolute working directory 2499# name. Accept space and tab only in the latter. 2500am_lf=' 2501' 2502case `pwd` in 2503 *[\\\"\#\$\&\'\`$am_lf]*) 2504 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2505esac 2506case $srcdir in 2507 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2508 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2509esac 2510 2511# Do 'set' in a subshell so we don't clobber the current shell's 2512# arguments. Must try -L first in case configure is actually a 2513# symlink; some systems play weird games with the mod time of symlinks 2514# (eg FreeBSD returns the mod time of the symlink's containing 2515# directory). 2516if ( 2517 am_has_slept=no 2518 for am_try in 1 2; do 2519 echo "timestamp, slept: $am_has_slept" > conftest.file 2520 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2521 if test "$*" = "X"; then 2522 # -L didn't work. 2523 set X `ls -t "$srcdir/configure" conftest.file` 2524 fi 2525 if test "$*" != "X $srcdir/configure conftest.file" \ 2526 && test "$*" != "X conftest.file $srcdir/configure"; then 2527 2528 # If neither matched, then we have a broken ls. This can happen 2529 # if, for instance, CONFIG_SHELL is bash and it inherits a 2530 # broken ls alias from the environment. This has actually 2531 # happened. Such a system could not be considered "sane". 2532 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2533 alias in your environment" "$LINENO" 5 2534 fi 2535 if test "$2" = conftest.file || test $am_try -eq 2; then 2536 break 2537 fi 2538 # Just in case. 2539 sleep 1 2540 am_has_slept=yes 2541 done 2542 test "$2" = conftest.file 2543 ) 2544then 2545 # Ok. 2546 : 2547else 2548 as_fn_error $? "newly created file is older than distributed files! 2549Check your system clock" "$LINENO" 5 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2552$as_echo "yes" >&6; } 2553# If we didn't sleep, we still need to ensure time stamps of config.status and 2554# generated files are strictly newer. 2555am_sleep_pid= 2556if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2557 ( sleep 1 ) & 2558 am_sleep_pid=$! 2559fi 2560 2561rm -f conftest.file 2562 2563test "$program_prefix" != NONE && 2564 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2565# Use a double $ so make ignores it. 2566test "$program_suffix" != NONE && 2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2568# Double any \ or $. 2569# By default was `s,x,x', remove it if useless. 2570ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2571program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2572 2573# Expand $ac_aux_dir to an absolute path. 2574am_aux_dir=`cd "$ac_aux_dir" && pwd` 2575 2576if test x"${MISSING+set}" != xset; then 2577 case $am_aux_dir in 2578 *\ * | *\ *) 2579 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2580 *) 2581 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2582 esac 2583fi 2584# Use eval to expand $SHELL 2585if eval "$MISSING --is-lightweight"; then 2586 am_missing_run="$MISSING " 2587else 2588 am_missing_run= 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2590$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2591fi 2592 2593if test x"${install_sh+set}" != xset; then 2594 case $am_aux_dir in 2595 *\ * | *\ *) 2596 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2597 *) 2598 install_sh="\${SHELL} $am_aux_dir/install-sh" 2599 esac 2600fi 2601 2602# Installed binaries are usually stripped using 'strip' when the user 2603# run "make install-strip". However 'strip' might not be the right 2604# tool to use in cross-compilation environments, therefore Automake 2605# will honor the 'STRIP' environment variable to overrule this program. 2606if test "$cross_compiling" != no; then 2607 if test -n "$ac_tool_prefix"; then 2608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2609set dummy ${ac_tool_prefix}strip; ac_word=$2 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2611$as_echo_n "checking for $ac_word... " >&6; } 2612if ${ac_cv_prog_STRIP+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 if test -n "$STRIP"; then 2616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635STRIP=$ac_cv_prog_STRIP 2636if test -n "$STRIP"; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2638$as_echo "$STRIP" >&6; } 2639else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641$as_echo "no" >&6; } 2642fi 2643 2644 2645fi 2646if test -z "$ac_cv_prog_STRIP"; then 2647 ac_ct_STRIP=$STRIP 2648 # Extract the first word of "strip", so it can be a program name with args. 2649set dummy strip; ac_word=$2 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651$as_echo_n "checking for $ac_word... " >&6; } 2652if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 if test -n "$ac_ct_STRIP"; then 2656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2657else 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2665 ac_cv_prog_ac_ct_STRIP="strip" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669done 2670 done 2671IFS=$as_save_IFS 2672 2673fi 2674fi 2675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2676if test -n "$ac_ct_STRIP"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2678$as_echo "$ac_ct_STRIP" >&6; } 2679else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681$as_echo "no" >&6; } 2682fi 2683 2684 if test "x$ac_ct_STRIP" = x; then 2685 STRIP=":" 2686 else 2687 case $cross_compiling:$ac_tool_warned in 2688yes:) 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2691ac_tool_warned=yes ;; 2692esac 2693 STRIP=$ac_ct_STRIP 2694 fi 2695else 2696 STRIP="$ac_cv_prog_STRIP" 2697fi 2698 2699fi 2700INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2701 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2703$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2704if test -z "$MKDIR_P"; then 2705 if ${ac_cv_path_mkdir+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_prog in mkdir gmkdir; do 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2716 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2717 'mkdir (GNU coreutils) '* | \ 2718 'mkdir (coreutils) '* | \ 2719 'mkdir (fileutils) '4.1*) 2720 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2721 break 3;; 2722 esac 2723 done 2724 done 2725 done 2726IFS=$as_save_IFS 2727 2728fi 2729 2730 test -d ./--version && rmdir ./--version 2731 if test "${ac_cv_path_mkdir+set}" = set; then 2732 MKDIR_P="$ac_cv_path_mkdir -p" 2733 else 2734 # As a last resort, use the slow shell script. Don't cache a 2735 # value for MKDIR_P within a source directory, because that will 2736 # break other packages using the cache if that directory is 2737 # removed, or if the value is a relative name. 2738 MKDIR_P="$ac_install_sh -d" 2739 fi 2740fi 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2742$as_echo "$MKDIR_P" >&6; } 2743 2744for ac_prog in gawk mawk nawk awk 2745do 2746 # Extract the first word of "$ac_prog", so it can be a program name with args. 2747set dummy $ac_prog; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if ${ac_cv_prog_AWK+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$AWK"; then 2754 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_AWK="$ac_prog" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773AWK=$ac_cv_prog_AWK 2774if test -n "$AWK"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2776$as_echo "$AWK" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783 test -n "$AWK" && break 2784done 2785 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2787$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2788set x ${MAKE-make} 2789ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2790if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 cat >conftest.make <<\_ACEOF 2794SHELL = /bin/sh 2795all: 2796 @echo '@@@%%%=$(MAKE)=@@@%%%' 2797_ACEOF 2798# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2799case `${MAKE-make} -f conftest.make 2>/dev/null` in 2800 *@@@%%%=?*=@@@%%%*) 2801 eval ac_cv_prog_make_${ac_make}_set=yes;; 2802 *) 2803 eval ac_cv_prog_make_${ac_make}_set=no;; 2804esac 2805rm -f conftest.make 2806fi 2807if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2809$as_echo "yes" >&6; } 2810 SET_MAKE= 2811else 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813$as_echo "no" >&6; } 2814 SET_MAKE="MAKE=${MAKE-make}" 2815fi 2816 2817rm -rf .tst 2>/dev/null 2818mkdir .tst 2>/dev/null 2819if test -d .tst; then 2820 am__leading_dot=. 2821else 2822 am__leading_dot=_ 2823fi 2824rmdir .tst 2>/dev/null 2825 2826@%:@ Check whether --enable-silent-rules was given. 2827if test "${enable_silent_rules+set}" = set; then : 2828 enableval=$enable_silent_rules; 2829fi 2830 2831case $enable_silent_rules in @%:@ ((( 2832 yes) AM_DEFAULT_VERBOSITY=0;; 2833 no) AM_DEFAULT_VERBOSITY=1;; 2834 *) AM_DEFAULT_VERBOSITY=1;; 2835esac 2836am_make=${MAKE-make} 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2838$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2839if ${am_cv_make_support_nested_variables+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if $as_echo 'TRUE=$(BAR$(V)) 2843BAR0=false 2844BAR1=true 2845V=1 2846am__doit: 2847 @$(TRUE) 2848.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2849 am_cv_make_support_nested_variables=yes 2850else 2851 am_cv_make_support_nested_variables=no 2852fi 2853fi 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2855$as_echo "$am_cv_make_support_nested_variables" >&6; } 2856if test $am_cv_make_support_nested_variables = yes; then 2857 AM_V='$(V)' 2858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2859else 2860 AM_V=$AM_DEFAULT_VERBOSITY 2861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2862fi 2863AM_BACKSLASH='\' 2864 2865if test "`cd $srcdir && pwd`" != "`pwd`"; then 2866 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2867 # is not polluted with repeated "-I." 2868 am__isrc=' -I$(srcdir)' 2869 # test to see if srcdir already configured 2870 if test -f $srcdir/config.status; then 2871 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2872 fi 2873fi 2874 2875# test whether we have cygpath 2876if test -z "$CYGPATH_W"; then 2877 if (cygpath --version) >/dev/null 2>/dev/null; then 2878 CYGPATH_W='cygpath -w' 2879 else 2880 CYGPATH_W=echo 2881 fi 2882fi 2883 2884 2885# Define the identity of the package. 2886 PACKAGE='mediainfo' 2887 VERSION='21.09' 2888 2889 2890cat >>confdefs.h <<_ACEOF 2891@%:@define PACKAGE "$PACKAGE" 2892_ACEOF 2893 2894 2895cat >>confdefs.h <<_ACEOF 2896@%:@define VERSION "$VERSION" 2897_ACEOF 2898 2899# Some tools Automake needs. 2900 2901ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2902 2903 2904AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2905 2906 2907AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2908 2909 2910AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2911 2912 2913MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2914 2915# For better backward compatibility. To be removed once Automake 1.9.x 2916# dies out for good. For more background, see: 2917# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2918# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2919mkdir_p='$(MKDIR_P)' 2920 2921# We need awk for the "check" target (and possibly the TAP driver). The 2922# system "awk" is bad on some platforms. 2923# Always define AMTAR for backward compatibility. Yes, it's still used 2924# in the wild :-( We should find a proper way to deprecate it ... 2925AMTAR='$${TAR-tar}' 2926 2927 2928# We'll loop over all known methods to create a tar archive until one works. 2929_am_tools='gnutar pax cpio none' 2930 2931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2932 2933 2934 2935 2936 2937 2938# POSIX will say in a future version that running "rm -f" with no argument 2939# is OK; and we want to be able to make that assumption in our Makefile 2940# recipes. So use an aggressive probe to check that the usage we want is 2941# actually supported "in the wild" to an acceptable degree. 2942# See automake bug#10828. 2943# To make any issue more visible, cause the running configure to be aborted 2944# by default if the 'rm' program in use doesn't match our expectations; the 2945# user can still override this though. 2946if rm -f && rm -fr && rm -rf; then : OK; else 2947 cat >&2 <<'END' 2948Oops! 2949 2950Your 'rm' program seems unable to run without file operands specified 2951on the command line, even when the '-f' option is present. This is contrary 2952to the behaviour of most rm programs out there, and not conforming with 2953the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2954 2955Please tell bug-automake@gnu.org about your system, including the value 2956of your $PATH and any error possibly output before this message. This 2957can help us improve future automake versions. 2958 2959END 2960 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2961 echo 'Configuration will proceed anyway, since you have set the' >&2 2962 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2963 echo >&2 2964 else 2965 cat >&2 <<'END' 2966Aborting the configuration process, to ensure you take notice of the issue. 2967 2968You can download and install GNU coreutils to get an 'rm' implementation 2969that behaves properly: <https://www.gnu.org/software/coreutils/>. 2970 2971If you want to complete the configuration process using your problematic 2972'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2973to "yes", and re-run configure. 2974 2975END 2976 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2977 fi 2978fi 2979 2980 2981CFLAGS="$CFLAGS" 2982CXXFLAGS="$CXXFLAGS" 2983ac_ext=c 2984ac_cpp='$CPP $CPPFLAGS' 2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2987ac_compiler_gnu=$ac_cv_c_compiler_gnu 2988if test -n "$ac_tool_prefix"; then 2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2990set dummy ${ac_tool_prefix}gcc; ac_word=$2 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if ${ac_cv_prog_CC+:} false; then : 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3006 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011 done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3019$as_echo "$CC" >&6; } 3020else 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026fi 3027if test -z "$ac_cv_prog_CC"; then 3028 ac_ct_CC=$CC 3029 # Extract the first word of "gcc", so it can be a program name with args. 3030set dummy gcc; ac_word=$2 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if ${ac_cv_prog_ac_ct_CC+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$ac_ct_CC"; then 3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 test -z "$as_dir" && as_dir=. 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_ac_ct_CC="gcc" 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056ac_ct_CC=$ac_cv_prog_ac_ct_CC 3057if test -n "$ac_ct_CC"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3059$as_echo "$ac_ct_CC" >&6; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 if test "x$ac_ct_CC" = x; then 3066 CC="" 3067 else 3068 case $cross_compiling:$ac_tool_warned in 3069yes:) 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3072ac_tool_warned=yes ;; 3073esac 3074 CC=$ac_ct_CC 3075 fi 3076else 3077 CC="$ac_cv_prog_CC" 3078fi 3079 3080if test -z "$CC"; then 3081 if test -n "$ac_tool_prefix"; then 3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3083set dummy ${ac_tool_prefix}cc; ac_word=$2 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3085$as_echo_n "checking for $ac_word... " >&6; } 3086if ${ac_cv_prog_CC+:} false; then : 3087 $as_echo_n "(cached) " >&6 3088else 3089 if test -n "$CC"; then 3090 ac_cv_prog_CC="$CC" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_CC="${ac_tool_prefix}cc" 3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109CC=$ac_cv_prog_CC 3110if test -n "$CC"; then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3112$as_echo "$CC" >&6; } 3113else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119 fi 3120fi 3121if test -z "$CC"; then 3122 # Extract the first word of "cc", so it can be a program name with args. 3123set dummy cc; ac_word=$2 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125$as_echo_n "checking for $ac_word... " >&6; } 3126if ${ac_cv_prog_CC+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 if test -n "$CC"; then 3130 ac_cv_prog_CC="$CC" # Let the user override the test. 3131else 3132 ac_prog_rejected=no 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3141 ac_prog_rejected=yes 3142 continue 3143 fi 3144 ac_cv_prog_CC="cc" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152if test $ac_prog_rejected = yes; then 3153 # We found a bogon in the path, so make sure we never use it. 3154 set dummy $ac_cv_prog_CC 3155 shift 3156 if test $@%:@ != 0; then 3157 # We chose a different compiler from the bogus one. 3158 # However, it has the same basename, so the bogon will be chosen 3159 # first if we set CC to just the basename; use the full file name. 3160 shift 3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3162 fi 3163fi 3164fi 3165fi 3166CC=$ac_cv_prog_CC 3167if test -n "$CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3169$as_echo "$CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176fi 3177if test -z "$CC"; then 3178 if test -n "$ac_tool_prefix"; then 3179 for ac_prog in cl.exe 3180 do 3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3182set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206fi 3207fi 3208CC=$ac_cv_prog_CC 3209if test -n "$CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3211$as_echo "$CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218 test -n "$CC" && break 3219 done 3220fi 3221if test -z "$CC"; then 3222 ac_ct_CC=$CC 3223 for ac_prog in cl.exe 3224do 3225 # Extract the first word of "$ac_prog", so it can be a program name with args. 3226set dummy $ac_prog; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_ac_ct_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$ac_ct_CC"; then 3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_ac_ct_CC="$ac_prog" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252ac_ct_CC=$ac_cv_prog_ac_ct_CC 3253if test -n "$ac_ct_CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3255$as_echo "$ac_ct_CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262 test -n "$ac_ct_CC" && break 3263done 3264 3265 if test "x$ac_ct_CC" = x; then 3266 CC="" 3267 else 3268 case $cross_compiling:$ac_tool_warned in 3269yes:) 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3272ac_tool_warned=yes ;; 3273esac 3274 CC=$ac_ct_CC 3275 fi 3276fi 3277 3278fi 3279 3280 3281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "no acceptable C compiler found in \$PATH 3284See \`config.log' for more details" "$LINENO" 5; } 3285 3286# Provide some information about the compiler. 3287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3288set X $ac_compile 3289ac_compiler=$2 3290for ac_option in --version -v -V -qversion; do 3291 { { ac_try="$ac_compiler $ac_option >&5" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3297$as_echo "$ac_try_echo"; } >&5 3298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3299 ac_status=$? 3300 if test -s conftest.err; then 3301 sed '10a\ 3302... rest of stderr output deleted ... 3303 10q' conftest.err >conftest.er1 3304 cat conftest.er1 >&5 3305 fi 3306 rm -f conftest.er1 conftest.err 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; } 3309done 3310 3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322ac_clean_files_save=$ac_clean_files 3323ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3324# Try to create an executable without -o first, disregard a.out. 3325# It will help us diagnose broken compilers, and finding out an intuition 3326# of exeext. 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3328$as_echo_n "checking whether the C compiler works... " >&6; } 3329ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3330 3331# The possible output files: 3332ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3333 3334ac_rmfiles= 3335for ac_file in $ac_files 3336do 3337 case $ac_file in 3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3339 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3340 esac 3341done 3342rm -f $ac_rmfiles 3343 3344if { { ac_try="$ac_link_default" 3345case "(($ac_try" in 3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *) ac_try_echo=$ac_try;; 3348esac 3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350$as_echo "$ac_try_echo"; } >&5 3351 (eval "$ac_link_default") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; then : 3355 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3356# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3357# in a Makefile. We should not override ac_cv_exeext if it was cached, 3358# so that the user can short-circuit this test for compilers unknown to 3359# Autoconf. 3360for ac_file in $ac_files '' 3361do 3362 test -f "$ac_file" || continue 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3365 ;; 3366 [ab].out ) 3367 # We found the default executable, but exeext='' is most 3368 # certainly right. 3369 break;; 3370 *.* ) 3371 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3372 then :; else 3373 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3374 fi 3375 # We set ac_cv_exeext here because the later test for it is not 3376 # safe: cross compilers may not add the suffix if given an `-o' 3377 # argument, so we may need to know it at that point already. 3378 # Even if this section looks crufty: it has the advantage of 3379 # actually working. 3380 break;; 3381 * ) 3382 break;; 3383 esac 3384done 3385test "$ac_cv_exeext" = no && ac_cv_exeext= 3386 3387else 3388 ac_file='' 3389fi 3390if test -z "$ac_file"; then : 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3392$as_echo "no" >&6; } 3393$as_echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error 77 "C compiler cannot create executables 3399See \`config.log' for more details" "$LINENO" 5; } 3400else 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3402$as_echo "yes" >&6; } 3403fi 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3405$as_echo_n "checking for C compiler default output file name... " >&6; } 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3407$as_echo "$ac_file" >&6; } 3408ac_exeext=$ac_cv_exeext 3409 3410rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3411ac_clean_files=$ac_clean_files_save 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3413$as_echo_n "checking for suffix of executables... " >&6; } 3414if { { ac_try="$ac_link" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_link") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; then : 3425 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3426# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3427# work properly (i.e., refer to `conftest.exe'), while it won't with 3428# `rm'. 3429for ac_file in conftest.exe conftest conftest.*; do 3430 test -f "$ac_file" || continue 3431 case $ac_file in 3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3433 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 break;; 3435 * ) break;; 3436 esac 3437done 3438else 3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3441as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3442See \`config.log' for more details" "$LINENO" 5; } 3443fi 3444rm -f conftest conftest$ac_cv_exeext 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3446$as_echo "$ac_cv_exeext" >&6; } 3447 3448rm -f conftest.$ac_ext 3449EXEEXT=$ac_cv_exeext 3450ac_exeext=$EXEEXT 3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453@%:@include <stdio.h> 3454int 3455main () 3456{ 3457FILE *f = fopen ("conftest.out", "w"); 3458 return ferror (f) || fclose (f) != 0; 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464ac_clean_files="$ac_clean_files conftest.out" 3465# Check that the compiler produces executables we can run. If not, either 3466# the compiler is broken, or we cross compile. 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3468$as_echo_n "checking whether we are cross compiling... " >&6; } 3469if test "$cross_compiling" != yes; then 3470 { { ac_try="$ac_link" 3471case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3476$as_echo "$ac_try_echo"; } >&5 3477 (eval "$ac_link") 2>&5 3478 ac_status=$? 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; } 3481 if { ac_try='./conftest$ac_cv_exeext' 3482 { { case "(($ac_try" in 3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484 *) ac_try_echo=$ac_try;; 3485esac 3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3487$as_echo "$ac_try_echo"; } >&5 3488 (eval "$ac_try") 2>&5 3489 ac_status=$? 3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3491 test $ac_status = 0; }; }; then 3492 cross_compiling=no 3493 else 3494 if test "$cross_compiling" = maybe; then 3495 cross_compiling=yes 3496 else 3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499as_fn_error $? "cannot run C compiled programs. 3500If you meant to cross compile, use \`--host'. 3501See \`config.log' for more details" "$LINENO" 5; } 3502 fi 3503 fi 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3506$as_echo "$cross_compiling" >&6; } 3507 3508rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3509ac_clean_files=$ac_clean_files_save 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3511$as_echo_n "checking for suffix of object files... " >&6; } 3512if ${ac_cv_objext+:} false; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main () 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526rm -f conftest.o conftest.obj 3527if { { ac_try="$ac_compile" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_compile") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; }; then : 3538 for ac_file in conftest.o conftest.obj conftest.*; do 3539 test -f "$ac_file" || continue; 3540 case $ac_file in 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3543 break;; 3544 esac 3545done 3546else 3547 $as_echo "$as_me: failed program was:" >&5 3548sed 's/^/| /' conftest.$ac_ext >&5 3549 3550{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3552as_fn_error $? "cannot compute suffix of object files: cannot compile 3553See \`config.log' for more details" "$LINENO" 5; } 3554fi 3555rm -f conftest.$ac_cv_objext conftest.$ac_ext 3556fi 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3558$as_echo "$ac_cv_objext" >&6; } 3559OBJEXT=$ac_cv_objext 3560ac_objext=$OBJEXT 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3562$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3563if ${ac_cv_c_compiler_gnu+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568 3569int 3570main () 3571{ 3572#ifndef __GNUC__ 3573 choke me 3574#endif 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580if ac_fn_c_try_compile "$LINENO"; then : 3581 ac_compiler_gnu=yes 3582else 3583 ac_compiler_gnu=no 3584fi 3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3586ac_cv_c_compiler_gnu=$ac_compiler_gnu 3587 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3590$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3591if test $ac_compiler_gnu = yes; then 3592 GCC=yes 3593else 3594 GCC= 3595fi 3596ac_test_CFLAGS=${CFLAGS+set} 3597ac_save_CFLAGS=$CFLAGS 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3599$as_echo_n "checking whether $CC accepts -g... " >&6; } 3600if ${ac_cv_prog_cc_g+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 ac_save_c_werror_flag=$ac_c_werror_flag 3604 ac_c_werror_flag=yes 3605 ac_cv_prog_cc_g=no 3606 CFLAGS="-g" 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618if ac_fn_c_try_compile "$LINENO"; then : 3619 ac_cv_prog_cc_g=yes 3620else 3621 CFLAGS="" 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624 3625int 3626main () 3627{ 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633if ac_fn_c_try_compile "$LINENO"; then : 3634 3635else 3636 ac_c_werror_flag=$ac_save_c_werror_flag 3637 CFLAGS="-g" 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649if ac_fn_c_try_compile "$LINENO"; then : 3650 ac_cv_prog_cc_g=yes 3651fi 3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3653fi 3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3655fi 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657 ac_c_werror_flag=$ac_save_c_werror_flag 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3660$as_echo "$ac_cv_prog_cc_g" >&6; } 3661if test "$ac_test_CFLAGS" = set; then 3662 CFLAGS=$ac_save_CFLAGS 3663elif test $ac_cv_prog_cc_g = yes; then 3664 if test "$GCC" = yes; then 3665 CFLAGS="-g -O2" 3666 else 3667 CFLAGS="-g" 3668 fi 3669else 3670 if test "$GCC" = yes; then 3671 CFLAGS="-O2" 3672 else 3673 CFLAGS= 3674 fi 3675fi 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3677$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3678if ${ac_cv_prog_cc_c89+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 ac_cv_prog_cc_c89=no 3682ac_save_CC=$CC 3683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685#include <stdarg.h> 3686#include <stdio.h> 3687struct stat; 3688/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3689struct buf { int x; }; 3690FILE * (*rcsopen) (struct buf *, struct stat *, int); 3691static char *e (p, i) 3692 char **p; 3693 int i; 3694{ 3695 return p[i]; 3696} 3697static char *f (char * (*g) (char **, int), char **p, ...) 3698{ 3699 char *s; 3700 va_list v; 3701 va_start (v,p); 3702 s = g (p, va_arg (v,int)); 3703 va_end (v); 3704 return s; 3705} 3706 3707/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3708 function prototypes and stuff, but not '\xHH' hex character constants. 3709 These don't provoke an error unfortunately, instead are silently treated 3710 as 'x'. The following induces an error, until -std is added to get 3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3712 array size at least. It's necessary to write '\x00'==0 to get something 3713 that's true only with -std. */ 3714int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3715 3716/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3717 inside strings and character constants. */ 3718#define FOO(x) 'x' 3719int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3720 3721int test (int i, double x); 3722struct s1 {int (*f) (int a);}; 3723struct s2 {int (*f) (double a);}; 3724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3725int argc; 3726char **argv; 3727int 3728main () 3729{ 3730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3737do 3738 CC="$ac_save_CC $ac_arg" 3739 if ac_fn_c_try_compile "$LINENO"; then : 3740 ac_cv_prog_cc_c89=$ac_arg 3741fi 3742rm -f core conftest.err conftest.$ac_objext 3743 test "x$ac_cv_prog_cc_c89" != "xno" && break 3744done 3745rm -f conftest.$ac_ext 3746CC=$ac_save_CC 3747 3748fi 3749# AC_CACHE_VAL 3750case "x$ac_cv_prog_cc_c89" in 3751 x) 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753$as_echo "none needed" >&6; } ;; 3754 xno) 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3756$as_echo "unsupported" >&6; } ;; 3757 *) 3758 CC="$CC $ac_cv_prog_cc_c89" 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3760$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3761esac 3762if test "x$ac_cv_prog_cc_c89" != xno; then : 3763 3764fi 3765 3766ac_ext=c 3767ac_cpp='$CPP $CPPFLAGS' 3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771 3772ac_ext=c 3773ac_cpp='$CPP $CPPFLAGS' 3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3776ac_compiler_gnu=$ac_cv_c_compiler_gnu 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3778$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3779if ${am_cv_prog_cc_c_o+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784 3785int 3786main () 3787{ 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793 # Make sure it works both with $CC and with simple cc. 3794 # Following AC_PROG_CC_C_O, we do the test twice because some 3795 # compilers refuse to overwrite an existing .o file with -o, 3796 # though they will create one. 3797 am_cv_prog_cc_c_o=yes 3798 for am_i in 1 2; do 3799 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3800 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3801 ac_status=$? 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); } \ 3804 && test -f conftest2.$ac_objext; then 3805 : OK 3806 else 3807 am_cv_prog_cc_c_o=no 3808 break 3809 fi 3810 done 3811 rm -f core conftest* 3812 unset am_i 3813fi 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3815$as_echo "$am_cv_prog_cc_c_o" >&6; } 3816if test "$am_cv_prog_cc_c_o" != yes; then 3817 # Losing compiler, so override with the script. 3818 # FIXME: It is wrong to rewrite CC. 3819 # But if we don't then we get into trouble of one sort or another. 3820 # A longer-term fix would be to have automake use am__CC in this case, 3821 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3822 CC="$am_aux_dir/compile $CC" 3823fi 3824ac_ext=c 3825ac_cpp='$CPP $CPPFLAGS' 3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3828ac_compiler_gnu=$ac_cv_c_compiler_gnu 3829 3830DEPDIR="${am__leading_dot}deps" 3831 3832ac_config_commands="$ac_config_commands depfiles" 3833 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3835$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3836cat > confinc.mk << 'END' 3837am__doit: 3838 @echo this is the am__doit target >confinc.out 3839.PHONY: am__doit 3840END 3841am__include="#" 3842am__quote= 3843# BSD make does it like this. 3844echo '.include "confinc.mk" # ignored' > confmf.BSD 3845# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3846echo 'include confinc.mk # ignored' > confmf.GNU 3847_am_result=no 3848for s in GNU BSD; do 3849 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3850 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); } 3854 case $?:`cat confinc.out 2>/dev/null` in @%:@( 3855 '0:this is the am__doit target') : 3856 case $s in @%:@( 3857 BSD) : 3858 am__include='.include' am__quote='"' ;; @%:@( 3859 *) : 3860 am__include='include' am__quote='' ;; 3861esac ;; @%:@( 3862 *) : 3863 ;; 3864esac 3865 if test "$am__include" != "#"; then 3866 _am_result="yes ($s style)" 3867 break 3868 fi 3869done 3870rm -f confinc.* confmf.* 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3872$as_echo "${_am_result}" >&6; } 3873 3874@%:@ Check whether --enable-dependency-tracking was given. 3875if test "${enable_dependency_tracking+set}" = set; then : 3876 enableval=$enable_dependency_tracking; 3877fi 3878 3879if test "x$enable_dependency_tracking" != xno; then 3880 am_depcomp="$ac_aux_dir/depcomp" 3881 AMDEPBACKSLASH='\' 3882 am__nodep='_no' 3883fi 3884 if test "x$enable_dependency_tracking" != xno; then 3885 AMDEP_TRUE= 3886 AMDEP_FALSE='#' 3887else 3888 AMDEP_TRUE='#' 3889 AMDEP_FALSE= 3890fi 3891 3892 3893 3894depcc="$CC" am_compiler_list= 3895 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3897$as_echo_n "checking dependency style of $depcc... " >&6; } 3898if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3902 # We make a subdir and do the tests there. Otherwise we can end up 3903 # making bogus files that we don't know about and never remove. For 3904 # instance it was reported that on HP-UX the gcc test will end up 3905 # making a dummy file named 'D' -- because '-MD' means "put the output 3906 # in D". 3907 rm -rf conftest.dir 3908 mkdir conftest.dir 3909 # Copy depcomp to subdir because otherwise we won't find it if we're 3910 # using a relative directory. 3911 cp "$am_depcomp" conftest.dir 3912 cd conftest.dir 3913 # We will build objects and dependencies in a subdirectory because 3914 # it helps to detect inapplicable dependency modes. For instance 3915 # both Tru64's cc and ICC support -MD to output dependencies as a 3916 # side effect of compilation, but ICC will put the dependencies in 3917 # the current directory while Tru64 will put them in the object 3918 # directory. 3919 mkdir sub 3920 3921 am_cv_CC_dependencies_compiler_type=none 3922 if test "$am_compiler_list" = ""; then 3923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3924 fi 3925 am__universal=false 3926 case " $depcc " in #( 3927 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3928 esac 3929 3930 for depmode in $am_compiler_list; do 3931 # Setup a source with many dependencies, because some compilers 3932 # like to wrap large dependency lists on column 80 (with \), and 3933 # we should not choose a depcomp mode which is confused by this. 3934 # 3935 # We need to recreate these files for each test, as the compiler may 3936 # overwrite some of them when testing with obscure command lines. 3937 # This happens at least with the AIX C compiler. 3938 : > sub/conftest.c 3939 for i in 1 2 3 4 5 6; do 3940 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3941 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3942 # Solaris 10 /bin/sh. 3943 echo '/* dummy */' > sub/conftst$i.h 3944 done 3945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3946 3947 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3948 # mode. It turns out that the SunPro C++ compiler does not properly 3949 # handle '-M -o', and we need to detect this. Also, some Intel 3950 # versions had trouble with output in subdirs. 3951 am__obj=sub/conftest.${OBJEXT-o} 3952 am__minus_obj="-o $am__obj" 3953 case $depmode in 3954 gcc) 3955 # This depmode causes a compiler race in universal mode. 3956 test "$am__universal" = false || continue 3957 ;; 3958 nosideeffect) 3959 # After this tag, mechanisms are not by side-effect, so they'll 3960 # only be used when explicitly requested. 3961 if test "x$enable_dependency_tracking" = xyes; then 3962 continue 3963 else 3964 break 3965 fi 3966 ;; 3967 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3968 # This compiler won't grok '-c -o', but also, the minuso test has 3969 # not run yet. These depmodes are late enough in the game, and 3970 # so weak that their functioning should not be impacted. 3971 am__obj=conftest.${OBJEXT-o} 3972 am__minus_obj= 3973 ;; 3974 none) break ;; 3975 esac 3976 if depmode=$depmode \ 3977 source=sub/conftest.c object=$am__obj \ 3978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3980 >/dev/null 2>conftest.err && 3981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3985 # icc doesn't choke on unknown options, it will just issue warnings 3986 # or remarks (even with -Werror). So we grep stderr for any message 3987 # that says an option was ignored or not supported. 3988 # When given -MP, icc 7.0 and 7.1 complain thusly: 3989 # icc: Command line warning: ignoring option '-M'; no argument required 3990 # The diagnosis changed in icc 8.0: 3991 # icc: Command line remark: option '-MP' not supported 3992 if (grep 'ignoring option' conftest.err || 3993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3994 am_cv_CC_dependencies_compiler_type=$depmode 3995 break 3996 fi 3997 fi 3998 done 3999 4000 cd .. 4001 rm -rf conftest.dir 4002else 4003 am_cv_CC_dependencies_compiler_type=none 4004fi 4005 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4008$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4009CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4010 4011 if 4012 test "x$enable_dependency_tracking" != xno \ 4013 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4014 am__fastdepCC_TRUE= 4015 am__fastdepCC_FALSE='#' 4016else 4017 am__fastdepCC_TRUE='#' 4018 am__fastdepCC_FALSE= 4019fi 4020 4021 4022ac_ext=cpp 4023ac_cpp='$CXXCPP $CPPFLAGS' 4024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4027if test -z "$CXX"; then 4028 if test -n "$CCC"; then 4029 CXX=$CCC 4030 else 4031 if test -n "$ac_tool_prefix"; then 4032 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4033 do 4034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4035set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if ${ac_cv_prog_CXX+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$CXX"; then 4042 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4043else 4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4051 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4053 break 2 4054 fi 4055done 4056 done 4057IFS=$as_save_IFS 4058 4059fi 4060fi 4061CXX=$ac_cv_prog_CXX 4062if test -n "$CXX"; then 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4064$as_echo "$CXX" >&6; } 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068fi 4069 4070 4071 test -n "$CXX" && break 4072 done 4073fi 4074if test -z "$CXX"; then 4075 ac_ct_CXX=$CXX 4076 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4077do 4078 # Extract the first word of "$ac_prog", so it can be a program name with args. 4079set dummy $ac_prog; ac_word=$2 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4081$as_echo_n "checking for $ac_word... " >&6; } 4082if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4083 $as_echo_n "(cached) " >&6 4084else 4085 if test -n "$ac_ct_CXX"; then 4086 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4087else 4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4095 ac_cv_prog_ac_ct_CXX="$ac_prog" 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4097 break 2 4098 fi 4099done 4100 done 4101IFS=$as_save_IFS 4102 4103fi 4104fi 4105ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4106if test -n "$ac_ct_CXX"; then 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4108$as_echo "$ac_ct_CXX" >&6; } 4109else 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4111$as_echo "no" >&6; } 4112fi 4113 4114 4115 test -n "$ac_ct_CXX" && break 4116done 4117 4118 if test "x$ac_ct_CXX" = x; then 4119 CXX="g++" 4120 else 4121 case $cross_compiling:$ac_tool_warned in 4122yes:) 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4125ac_tool_warned=yes ;; 4126esac 4127 CXX=$ac_ct_CXX 4128 fi 4129fi 4130 4131 fi 4132fi 4133# Provide some information about the compiler. 4134$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4135set X $ac_compile 4136ac_compiler=$2 4137for ac_option in --version -v -V -qversion; do 4138 { { ac_try="$ac_compiler $ac_option >&5" 4139case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4144$as_echo "$ac_try_echo"; } >&5 4145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4146 ac_status=$? 4147 if test -s conftest.err; then 4148 sed '10a\ 4149... rest of stderr output deleted ... 4150 10q' conftest.err >conftest.er1 4151 cat conftest.er1 >&5 4152 fi 4153 rm -f conftest.er1 conftest.err 4154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4155 test $ac_status = 0; } 4156done 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4159$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4160if ${ac_cv_cxx_compiler_gnu+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165 4166int 4167main () 4168{ 4169#ifndef __GNUC__ 4170 choke me 4171#endif 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_cxx_try_compile "$LINENO"; then : 4178 ac_compiler_gnu=yes 4179else 4180 ac_compiler_gnu=no 4181fi 4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4183ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4184 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4187$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4188if test $ac_compiler_gnu = yes; then 4189 GXX=yes 4190else 4191 GXX= 4192fi 4193ac_test_CXXFLAGS=${CXXFLAGS+set} 4194ac_save_CXXFLAGS=$CXXFLAGS 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4196$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4197if ${ac_cv_prog_cxx_g+:} false; then : 4198 $as_echo_n "(cached) " >&6 4199else 4200 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4201 ac_cxx_werror_flag=yes 4202 ac_cv_prog_cxx_g=no 4203 CXXFLAGS="-g" 4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205/* end confdefs.h. */ 4206 4207int 4208main () 4209{ 4210 4211 ; 4212 return 0; 4213} 4214_ACEOF 4215if ac_fn_cxx_try_compile "$LINENO"; then : 4216 ac_cv_prog_cxx_g=yes 4217else 4218 CXXFLAGS="" 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221 4222int 4223main () 4224{ 4225 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230if ac_fn_cxx_try_compile "$LINENO"; then : 4231 4232else 4233 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4234 CXXFLAGS="-g" 4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236/* end confdefs.h. */ 4237 4238int 4239main () 4240{ 4241 4242 ; 4243 return 0; 4244} 4245_ACEOF 4246if ac_fn_cxx_try_compile "$LINENO"; then : 4247 ac_cv_prog_cxx_g=yes 4248fi 4249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4250fi 4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252fi 4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4254 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4255fi 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4257$as_echo "$ac_cv_prog_cxx_g" >&6; } 4258if test "$ac_test_CXXFLAGS" = set; then 4259 CXXFLAGS=$ac_save_CXXFLAGS 4260elif test $ac_cv_prog_cxx_g = yes; then 4261 if test "$GXX" = yes; then 4262 CXXFLAGS="-g -O2" 4263 else 4264 CXXFLAGS="-g" 4265 fi 4266else 4267 if test "$GXX" = yes; then 4268 CXXFLAGS="-O2" 4269 else 4270 CXXFLAGS= 4271 fi 4272fi 4273ac_ext=c 4274ac_cpp='$CPP $CPPFLAGS' 4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4277ac_compiler_gnu=$ac_cv_c_compiler_gnu 4278 4279depcc="$CXX" am_compiler_list= 4280 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4282$as_echo_n "checking dependency style of $depcc... " >&6; } 4283if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4287 # We make a subdir and do the tests there. Otherwise we can end up 4288 # making bogus files that we don't know about and never remove. For 4289 # instance it was reported that on HP-UX the gcc test will end up 4290 # making a dummy file named 'D' -- because '-MD' means "put the output 4291 # in D". 4292 rm -rf conftest.dir 4293 mkdir conftest.dir 4294 # Copy depcomp to subdir because otherwise we won't find it if we're 4295 # using a relative directory. 4296 cp "$am_depcomp" conftest.dir 4297 cd conftest.dir 4298 # We will build objects and dependencies in a subdirectory because 4299 # it helps to detect inapplicable dependency modes. For instance 4300 # both Tru64's cc and ICC support -MD to output dependencies as a 4301 # side effect of compilation, but ICC will put the dependencies in 4302 # the current directory while Tru64 will put them in the object 4303 # directory. 4304 mkdir sub 4305 4306 am_cv_CXX_dependencies_compiler_type=none 4307 if test "$am_compiler_list" = ""; then 4308 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4309 fi 4310 am__universal=false 4311 case " $depcc " in #( 4312 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4313 esac 4314 4315 for depmode in $am_compiler_list; do 4316 # Setup a source with many dependencies, because some compilers 4317 # like to wrap large dependency lists on column 80 (with \), and 4318 # we should not choose a depcomp mode which is confused by this. 4319 # 4320 # We need to recreate these files for each test, as the compiler may 4321 # overwrite some of them when testing with obscure command lines. 4322 # This happens at least with the AIX C compiler. 4323 : > sub/conftest.c 4324 for i in 1 2 3 4 5 6; do 4325 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4326 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4327 # Solaris 10 /bin/sh. 4328 echo '/* dummy */' > sub/conftst$i.h 4329 done 4330 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4331 4332 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4333 # mode. It turns out that the SunPro C++ compiler does not properly 4334 # handle '-M -o', and we need to detect this. Also, some Intel 4335 # versions had trouble with output in subdirs. 4336 am__obj=sub/conftest.${OBJEXT-o} 4337 am__minus_obj="-o $am__obj" 4338 case $depmode in 4339 gcc) 4340 # This depmode causes a compiler race in universal mode. 4341 test "$am__universal" = false || continue 4342 ;; 4343 nosideeffect) 4344 # After this tag, mechanisms are not by side-effect, so they'll 4345 # only be used when explicitly requested. 4346 if test "x$enable_dependency_tracking" = xyes; then 4347 continue 4348 else 4349 break 4350 fi 4351 ;; 4352 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4353 # This compiler won't grok '-c -o', but also, the minuso test has 4354 # not run yet. These depmodes are late enough in the game, and 4355 # so weak that their functioning should not be impacted. 4356 am__obj=conftest.${OBJEXT-o} 4357 am__minus_obj= 4358 ;; 4359 none) break ;; 4360 esac 4361 if depmode=$depmode \ 4362 source=sub/conftest.c object=$am__obj \ 4363 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4364 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4365 >/dev/null 2>conftest.err && 4366 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4367 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4368 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4369 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4370 # icc doesn't choke on unknown options, it will just issue warnings 4371 # or remarks (even with -Werror). So we grep stderr for any message 4372 # that says an option was ignored or not supported. 4373 # When given -MP, icc 7.0 and 7.1 complain thusly: 4374 # icc: Command line warning: ignoring option '-M'; no argument required 4375 # The diagnosis changed in icc 8.0: 4376 # icc: Command line remark: option '-MP' not supported 4377 if (grep 'ignoring option' conftest.err || 4378 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4379 am_cv_CXX_dependencies_compiler_type=$depmode 4380 break 4381 fi 4382 fi 4383 done 4384 4385 cd .. 4386 rm -rf conftest.dir 4387else 4388 am_cv_CXX_dependencies_compiler_type=none 4389fi 4390 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4393$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4394CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4395 4396 if 4397 test "x$enable_dependency_tracking" != xno \ 4398 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4399 am__fastdepCXX_TRUE= 4400 am__fastdepCXX_FALSE='#' 4401else 4402 am__fastdepCXX_TRUE='#' 4403 am__fastdepCXX_FALSE= 4404fi 4405 4406 4407case `pwd` in 4408 *\ * | *\ *) 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4410$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4411esac 4412 4413 4414 4415macro_version='2.4.6' 4416macro_revision='2.4.6' 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430ltmain=$ac_aux_dir/ltmain.sh 4431 4432# Backslashify metacharacters that are still active within 4433# double-quoted strings. 4434sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4435 4436# Same as above, but do not quote variable references. 4437double_quote_subst='s/\(["`\\]\)/\\\1/g' 4438 4439# Sed substitution to delay expansion of an escaped shell variable in a 4440# double_quote_subst'ed string. 4441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4442 4443# Sed substitution to delay expansion of an escaped single quote. 4444delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4445 4446# Sed substitution to avoid accidental globbing in evaled expressions 4447no_glob_subst='s/\*/\\\*/g' 4448 4449ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4452 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4454$as_echo_n "checking how to print strings... " >&6; } 4455# Test print first, because it will be a builtin if present. 4456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4457 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4458 ECHO='print -r --' 4459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4460 ECHO='printf %s\n' 4461else 4462 # Use this function as a fallback that always works. 4463 func_fallback_echo () 4464 { 4465 eval 'cat <<_LTECHO_EOF 4466$1 4467_LTECHO_EOF' 4468 } 4469 ECHO='func_fallback_echo' 4470fi 4471 4472# func_echo_all arg... 4473# Invoke $ECHO with all args, space-separated. 4474func_echo_all () 4475{ 4476 $ECHO "" 4477} 4478 4479case $ECHO in 4480 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4481$as_echo "printf" >&6; } ;; 4482 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4483$as_echo "print -r" >&6; } ;; 4484 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4485$as_echo "cat" >&6; } ;; 4486esac 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4502$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4503if ${ac_cv_path_SED+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4507 for ac_i in 1 2 3 4 5 6 7; do 4508 ac_script="$ac_script$as_nl$ac_script" 4509 done 4510 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4511 { ac_script=; unset ac_script;} 4512 if test -z "$SED"; then 4513 ac_path_SED_found=false 4514 # Loop through the user's path and test for each of PROGNAME-LIST 4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4516for as_dir in $PATH 4517do 4518 IFS=$as_save_IFS 4519 test -z "$as_dir" && as_dir=. 4520 for ac_prog in sed gsed; do 4521 for ac_exec_ext in '' $ac_executable_extensions; do 4522 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4523 as_fn_executable_p "$ac_path_SED" || continue 4524# Check for GNU ac_path_SED and select it if it is found. 4525 # Check for GNU $ac_path_SED 4526case `"$ac_path_SED" --version 2>&1` in 4527*GNU*) 4528 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4529*) 4530 ac_count=0 4531 $as_echo_n 0123456789 >"conftest.in" 4532 while : 4533 do 4534 cat "conftest.in" "conftest.in" >"conftest.tmp" 4535 mv "conftest.tmp" "conftest.in" 4536 cp "conftest.in" "conftest.nl" 4537 $as_echo '' >> "conftest.nl" 4538 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4540 as_fn_arith $ac_count + 1 && ac_count=$as_val 4541 if test $ac_count -gt ${ac_path_SED_max-0}; then 4542 # Best one so far, save it but keep looking for a better one 4543 ac_cv_path_SED="$ac_path_SED" 4544 ac_path_SED_max=$ac_count 4545 fi 4546 # 10*(2^10) chars as input seems more than enough 4547 test $ac_count -gt 10 && break 4548 done 4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4550esac 4551 4552 $ac_path_SED_found && break 3 4553 done 4554 done 4555 done 4556IFS=$as_save_IFS 4557 if test -z "$ac_cv_path_SED"; then 4558 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4559 fi 4560else 4561 ac_cv_path_SED=$SED 4562fi 4563 4564fi 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4566$as_echo "$ac_cv_path_SED" >&6; } 4567 SED="$ac_cv_path_SED" 4568 rm -f conftest.sed 4569 4570test -z "$SED" && SED=sed 4571Xsed="$SED -e 1s/^X//" 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4584$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4585if ${ac_cv_path_GREP+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 if test -z "$GREP"; then 4589 ac_path_GREP_found=false 4590 # Loop through the user's path and test for each of PROGNAME-LIST 4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4593do 4594 IFS=$as_save_IFS 4595 test -z "$as_dir" && as_dir=. 4596 for ac_prog in grep ggrep; do 4597 for ac_exec_ext in '' $ac_executable_extensions; do 4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4599 as_fn_executable_p "$ac_path_GREP" || continue 4600# Check for GNU ac_path_GREP and select it if it is found. 4601 # Check for GNU $ac_path_GREP 4602case `"$ac_path_GREP" --version 2>&1` in 4603*GNU*) 4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4605*) 4606 ac_count=0 4607 $as_echo_n 0123456789 >"conftest.in" 4608 while : 4609 do 4610 cat "conftest.in" "conftest.in" >"conftest.tmp" 4611 mv "conftest.tmp" "conftest.in" 4612 cp "conftest.in" "conftest.nl" 4613 $as_echo 'GREP' >> "conftest.nl" 4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4616 as_fn_arith $ac_count + 1 && ac_count=$as_val 4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4618 # Best one so far, save it but keep looking for a better one 4619 ac_cv_path_GREP="$ac_path_GREP" 4620 ac_path_GREP_max=$ac_count 4621 fi 4622 # 10*(2^10) chars as input seems more than enough 4623 test $ac_count -gt 10 && break 4624 done 4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4626esac 4627 4628 $ac_path_GREP_found && break 3 4629 done 4630 done 4631 done 4632IFS=$as_save_IFS 4633 if test -z "$ac_cv_path_GREP"; then 4634 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4635 fi 4636else 4637 ac_cv_path_GREP=$GREP 4638fi 4639 4640fi 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4642$as_echo "$ac_cv_path_GREP" >&6; } 4643 GREP="$ac_cv_path_GREP" 4644 4645 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4647$as_echo_n "checking for egrep... " >&6; } 4648if ${ac_cv_path_EGREP+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4652 then ac_cv_path_EGREP="$GREP -E" 4653 else 4654 if test -z "$EGREP"; then 4655 ac_path_EGREP_found=false 4656 # Loop through the user's path and test for each of PROGNAME-LIST 4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4659do 4660 IFS=$as_save_IFS 4661 test -z "$as_dir" && as_dir=. 4662 for ac_prog in egrep; do 4663 for ac_exec_ext in '' $ac_executable_extensions; do 4664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4665 as_fn_executable_p "$ac_path_EGREP" || continue 4666# Check for GNU ac_path_EGREP and select it if it is found. 4667 # Check for GNU $ac_path_EGREP 4668case `"$ac_path_EGREP" --version 2>&1` in 4669*GNU*) 4670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4671*) 4672 ac_count=0 4673 $as_echo_n 0123456789 >"conftest.in" 4674 while : 4675 do 4676 cat "conftest.in" "conftest.in" >"conftest.tmp" 4677 mv "conftest.tmp" "conftest.in" 4678 cp "conftest.in" "conftest.nl" 4679 $as_echo 'EGREP' >> "conftest.nl" 4680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4682 as_fn_arith $ac_count + 1 && ac_count=$as_val 4683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4684 # Best one so far, save it but keep looking for a better one 4685 ac_cv_path_EGREP="$ac_path_EGREP" 4686 ac_path_EGREP_max=$ac_count 4687 fi 4688 # 10*(2^10) chars as input seems more than enough 4689 test $ac_count -gt 10 && break 4690 done 4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4692esac 4693 4694 $ac_path_EGREP_found && break 3 4695 done 4696 done 4697 done 4698IFS=$as_save_IFS 4699 if test -z "$ac_cv_path_EGREP"; then 4700 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4701 fi 4702else 4703 ac_cv_path_EGREP=$EGREP 4704fi 4705 4706 fi 4707fi 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4709$as_echo "$ac_cv_path_EGREP" >&6; } 4710 EGREP="$ac_cv_path_EGREP" 4711 4712 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4714$as_echo_n "checking for fgrep... " >&6; } 4715if ${ac_cv_path_FGREP+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717else 4718 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4719 then ac_cv_path_FGREP="$GREP -F" 4720 else 4721 if test -z "$FGREP"; then 4722 ac_path_FGREP_found=false 4723 # Loop through the user's path and test for each of PROGNAME-LIST 4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4726do 4727 IFS=$as_save_IFS 4728 test -z "$as_dir" && as_dir=. 4729 for ac_prog in fgrep; do 4730 for ac_exec_ext in '' $ac_executable_extensions; do 4731 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4732 as_fn_executable_p "$ac_path_FGREP" || continue 4733# Check for GNU ac_path_FGREP and select it if it is found. 4734 # Check for GNU $ac_path_FGREP 4735case `"$ac_path_FGREP" --version 2>&1` in 4736*GNU*) 4737 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4738*) 4739 ac_count=0 4740 $as_echo_n 0123456789 >"conftest.in" 4741 while : 4742 do 4743 cat "conftest.in" "conftest.in" >"conftest.tmp" 4744 mv "conftest.tmp" "conftest.in" 4745 cp "conftest.in" "conftest.nl" 4746 $as_echo 'FGREP' >> "conftest.nl" 4747 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4749 as_fn_arith $ac_count + 1 && ac_count=$as_val 4750 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4751 # Best one so far, save it but keep looking for a better one 4752 ac_cv_path_FGREP="$ac_path_FGREP" 4753 ac_path_FGREP_max=$ac_count 4754 fi 4755 # 10*(2^10) chars as input seems more than enough 4756 test $ac_count -gt 10 && break 4757 done 4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4759esac 4760 4761 $ac_path_FGREP_found && break 3 4762 done 4763 done 4764 done 4765IFS=$as_save_IFS 4766 if test -z "$ac_cv_path_FGREP"; then 4767 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4768 fi 4769else 4770 ac_cv_path_FGREP=$FGREP 4771fi 4772 4773 fi 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4776$as_echo "$ac_cv_path_FGREP" >&6; } 4777 FGREP="$ac_cv_path_FGREP" 4778 4779 4780test -z "$GREP" && GREP=grep 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800@%:@ Check whether --with-gnu-ld was given. 4801if test "${with_gnu_ld+set}" = set; then : 4802 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4803else 4804 with_gnu_ld=no 4805fi 4806 4807ac_prog=ld 4808if test yes = "$GCC"; then 4809 # Check if gcc -print-prog-name=ld gives a path. 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4811$as_echo_n "checking for ld used by $CC... " >&6; } 4812 case $host in 4813 *-*-mingw*) 4814 # gcc leaves a trailing carriage return, which upsets mingw 4815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4816 *) 4817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4818 esac 4819 case $ac_prog in 4820 # Accept absolute paths. 4821 [\\/]* | ?:[\\/]*) 4822 re_direlt='/[^/][^/]*/\.\./' 4823 # Canonicalize the pathname of ld 4824 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4825 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4826 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4827 done 4828 test -z "$LD" && LD=$ac_prog 4829 ;; 4830 "") 4831 # If it fails, then pretend we aren't using GCC. 4832 ac_prog=ld 4833 ;; 4834 *) 4835 # If it is relative, then search for the first ld in PATH. 4836 with_gnu_ld=unknown 4837 ;; 4838 esac 4839elif test yes = "$with_gnu_ld"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4841$as_echo_n "checking for GNU ld... " >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4844$as_echo_n "checking for non-GNU ld... " >&6; } 4845fi 4846if ${lt_cv_path_LD+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test -z "$LD"; then 4850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4851 for ac_dir in $PATH; do 4852 IFS=$lt_save_ifs 4853 test -z "$ac_dir" && ac_dir=. 4854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4855 lt_cv_path_LD=$ac_dir/$ac_prog 4856 # Check to see if the program is GNU ld. I'd rather use --version, 4857 # but apparently some variants of GNU ld only accept -v. 4858 # Break only if it was the GNU/non-GNU ld that we prefer. 4859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4860 *GNU* | *'with BFD'*) 4861 test no != "$with_gnu_ld" && break 4862 ;; 4863 *) 4864 test yes != "$with_gnu_ld" && break 4865 ;; 4866 esac 4867 fi 4868 done 4869 IFS=$lt_save_ifs 4870else 4871 lt_cv_path_LD=$LD # Let the user override the test with a path. 4872fi 4873fi 4874 4875LD=$lt_cv_path_LD 4876if test -n "$LD"; then 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4878$as_echo "$LD" >&6; } 4879else 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881$as_echo "no" >&6; } 4882fi 4883test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4885$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4886if ${lt_cv_prog_gnu_ld+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4890case `$LD -v 2>&1 </dev/null` in 4891*GNU* | *'with BFD'*) 4892 lt_cv_prog_gnu_ld=yes 4893 ;; 4894*) 4895 lt_cv_prog_gnu_ld=no 4896 ;; 4897esac 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4900$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4901with_gnu_ld=$lt_cv_prog_gnu_ld 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4912$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4913if ${lt_cv_path_NM+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 if test -n "$NM"; then 4917 # Let the user override the test. 4918 lt_cv_path_NM=$NM 4919else 4920 lt_nm_to_check=${ac_tool_prefix}nm 4921 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4922 lt_nm_to_check="$lt_nm_to_check nm" 4923 fi 4924 for lt_tmp_nm in $lt_nm_to_check; do 4925 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4926 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4927 IFS=$lt_save_ifs 4928 test -z "$ac_dir" && ac_dir=. 4929 tmp_nm=$ac_dir/$lt_tmp_nm 4930 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4931 # Check to see if the nm accepts a BSD-compat flag. 4932 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4933 # nm: unknown option "B" ignored 4934 # Tru64's nm complains that /dev/null is an invalid object file 4935 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4936 case $build_os in 4937 mingw*) lt_bad_file=conftest.nm/nofile ;; 4938 *) lt_bad_file=/dev/null ;; 4939 esac 4940 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4941 *$lt_bad_file* | *'Invalid file or object type'*) 4942 lt_cv_path_NM="$tmp_nm -B" 4943 break 2 4944 ;; 4945 *) 4946 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4947 */dev/null*) 4948 lt_cv_path_NM="$tmp_nm -p" 4949 break 2 4950 ;; 4951 *) 4952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4953 continue # so that we can try to find one that supports BSD flags 4954 ;; 4955 esac 4956 ;; 4957 esac 4958 fi 4959 done 4960 IFS=$lt_save_ifs 4961 done 4962 : ${lt_cv_path_NM=no} 4963fi 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4966$as_echo "$lt_cv_path_NM" >&6; } 4967if test no != "$lt_cv_path_NM"; then 4968 NM=$lt_cv_path_NM 4969else 4970 # Didn't find any BSD compatible name lister, look for dumpbin. 4971 if test -n "$DUMPBIN"; then : 4972 # Let the user override the test. 4973 else 4974 if test -n "$ac_tool_prefix"; then 4975 for ac_prog in dumpbin "link -dump" 4976 do 4977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4978set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4980$as_echo_n "checking for $ac_word... " >&6; } 4981if ${ac_cv_prog_DUMPBIN+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 if test -n "$DUMPBIN"; then 4985 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4986else 4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4988for as_dir in $PATH 4989do 4990 IFS=$as_save_IFS 4991 test -z "$as_dir" && as_dir=. 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4994 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4996 break 2 4997 fi 4998done 4999 done 5000IFS=$as_save_IFS 5001 5002fi 5003fi 5004DUMPBIN=$ac_cv_prog_DUMPBIN 5005if test -n "$DUMPBIN"; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5007$as_echo "$DUMPBIN" >&6; } 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5010$as_echo "no" >&6; } 5011fi 5012 5013 5014 test -n "$DUMPBIN" && break 5015 done 5016fi 5017if test -z "$DUMPBIN"; then 5018 ac_ct_DUMPBIN=$DUMPBIN 5019 for ac_prog in dumpbin "link -dump" 5020do 5021 # Extract the first word of "$ac_prog", so it can be a program name with args. 5022set dummy $ac_prog; ac_word=$2 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5024$as_echo_n "checking for $ac_word... " >&6; } 5025if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 if test -n "$ac_ct_DUMPBIN"; then 5029 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5030else 5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5032for as_dir in $PATH 5033do 5034 IFS=$as_save_IFS 5035 test -z "$as_dir" && as_dir=. 5036 for ac_exec_ext in '' $ac_executable_extensions; do 5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5038 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5040 break 2 5041 fi 5042done 5043 done 5044IFS=$as_save_IFS 5045 5046fi 5047fi 5048ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5049if test -n "$ac_ct_DUMPBIN"; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5051$as_echo "$ac_ct_DUMPBIN" >&6; } 5052else 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054$as_echo "no" >&6; } 5055fi 5056 5057 5058 test -n "$ac_ct_DUMPBIN" && break 5059done 5060 5061 if test "x$ac_ct_DUMPBIN" = x; then 5062 DUMPBIN=":" 5063 else 5064 case $cross_compiling:$ac_tool_warned in 5065yes:) 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5068ac_tool_warned=yes ;; 5069esac 5070 DUMPBIN=$ac_ct_DUMPBIN 5071 fi 5072fi 5073 5074 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5075 *COFF*) 5076 DUMPBIN="$DUMPBIN -symbols -headers" 5077 ;; 5078 *) 5079 DUMPBIN=: 5080 ;; 5081 esac 5082 fi 5083 5084 if test : != "$DUMPBIN"; then 5085 NM=$DUMPBIN 5086 fi 5087fi 5088test -z "$NM" && NM=nm 5089 5090 5091 5092 5093 5094 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5096$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5097if ${lt_cv_nm_interface+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 lt_cv_nm_interface="BSD nm" 5101 echo "int some_variable = 0;" > conftest.$ac_ext 5102 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5103 (eval "$ac_compile" 2>conftest.err) 5104 cat conftest.err >&5 5105 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5106 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5107 cat conftest.err >&5 5108 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5109 cat conftest.out >&5 5110 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5111 lt_cv_nm_interface="MS dumpbin" 5112 fi 5113 rm -f conftest* 5114fi 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5116$as_echo "$lt_cv_nm_interface" >&6; } 5117 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5119$as_echo_n "checking whether ln -s works... " >&6; } 5120LN_S=$as_ln_s 5121if test "$LN_S" = "ln -s"; then 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5123$as_echo "yes" >&6; } 5124else 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5126$as_echo "no, using $LN_S" >&6; } 5127fi 5128 5129# find the maximum length of command line arguments 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5131$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5132if ${lt_cv_sys_max_cmd_len+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 i=0 5136 teststring=ABCD 5137 5138 case $build_os in 5139 msdosdjgpp*) 5140 # On DJGPP, this test can blow up pretty badly due to problems in libc 5141 # (any single argument exceeding 2000 bytes causes a buffer overrun 5142 # during glob expansion). Even if it were fixed, the result of this 5143 # check would be larger than it should be. 5144 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5145 ;; 5146 5147 gnu*) 5148 # Under GNU Hurd, this test is not required because there is 5149 # no limit to the length of command line arguments. 5150 # Libtool will interpret -1 as no limit whatsoever 5151 lt_cv_sys_max_cmd_len=-1; 5152 ;; 5153 5154 cygwin* | mingw* | cegcc*) 5155 # On Win9x/ME, this test blows up -- it succeeds, but takes 5156 # about 5 minutes as the teststring grows exponentially. 5157 # Worse, since 9x/ME are not pre-emptively multitasking, 5158 # you end up with a "frozen" computer, even though with patience 5159 # the test eventually succeeds (with a max line length of 256k). 5160 # Instead, let's just punt: use the minimum linelength reported by 5161 # all of the supported platforms: 8192 (on NT/2K/XP). 5162 lt_cv_sys_max_cmd_len=8192; 5163 ;; 5164 5165 mint*) 5166 # On MiNT this can take a long time and run out of memory. 5167 lt_cv_sys_max_cmd_len=8192; 5168 ;; 5169 5170 amigaos*) 5171 # On AmigaOS with pdksh, this test takes hours, literally. 5172 # So we just punt and use a minimum line length of 8192. 5173 lt_cv_sys_max_cmd_len=8192; 5174 ;; 5175 5176 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5177 # This has been around since 386BSD, at least. Likely further. 5178 if test -x /sbin/sysctl; then 5179 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5180 elif test -x /usr/sbin/sysctl; then 5181 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5182 else 5183 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5184 fi 5185 # And add a safety zone 5186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5188 ;; 5189 5190 interix*) 5191 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5192 lt_cv_sys_max_cmd_len=196608 5193 ;; 5194 5195 os2*) 5196 # The test takes a long time on OS/2. 5197 lt_cv_sys_max_cmd_len=8192 5198 ;; 5199 5200 osf*) 5201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5203 # nice to cause kernel panics so lets avoid the loop below. 5204 # First set a reasonable default. 5205 lt_cv_sys_max_cmd_len=16384 5206 # 5207 if test -x /sbin/sysconfig; then 5208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5209 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5210 esac 5211 fi 5212 ;; 5213 sco3.2v5*) 5214 lt_cv_sys_max_cmd_len=102400 5215 ;; 5216 sysv5* | sco5v6* | sysv4.2uw2*) 5217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5218 if test -n "$kargmax"; then 5219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5220 else 5221 lt_cv_sys_max_cmd_len=32768 5222 fi 5223 ;; 5224 *) 5225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5226 if test -n "$lt_cv_sys_max_cmd_len" && \ 5227 test undefined != "$lt_cv_sys_max_cmd_len"; then 5228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5230 else 5231 # Make teststring a little bigger before we do anything with it. 5232 # a 1K string should be a reasonable start. 5233 for i in 1 2 3 4 5 6 7 8; do 5234 teststring=$teststring$teststring 5235 done 5236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5237 # If test is not a shell built-in, we'll probably end up computing a 5238 # maximum length that is only half of the actual maximum length, but 5239 # we can't tell. 5240 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5241 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5242 test 17 != "$i" # 1/2 MB should be enough 5243 do 5244 i=`expr $i + 1` 5245 teststring=$teststring$teststring 5246 done 5247 # Only check the string length outside the loop. 5248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5249 teststring= 5250 # Add a significant safety factor because C++ compilers can tack on 5251 # massive amounts of additional arguments before passing them to the 5252 # linker. It appears as though 1/2 is a usable value. 5253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5254 fi 5255 ;; 5256 esac 5257 5258fi 5259 5260if test -n "$lt_cv_sys_max_cmd_len"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5262$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5265$as_echo "none" >&6; } 5266fi 5267max_cmd_len=$lt_cv_sys_max_cmd_len 5268 5269 5270 5271 5272 5273 5274: ${CP="cp -f"} 5275: ${MV="mv -f"} 5276: ${RM="rm -f"} 5277 5278if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5279 lt_unset=unset 5280else 5281 lt_unset=false 5282fi 5283 5284 5285 5286 5287 5288# test EBCDIC or ASCII 5289case `echo X|tr X '\101'` in 5290 A) # ASCII based system 5291 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5292 lt_SP2NL='tr \040 \012' 5293 lt_NL2SP='tr \015\012 \040\040' 5294 ;; 5295 *) # EBCDIC based system 5296 lt_SP2NL='tr \100 \n' 5297 lt_NL2SP='tr \r\n \100\100' 5298 ;; 5299esac 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5310$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5311if ${lt_cv_to_host_file_cmd+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 case $host in 5315 *-*-mingw* ) 5316 case $build in 5317 *-*-mingw* ) # actually msys 5318 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5319 ;; 5320 *-*-cygwin* ) 5321 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5322 ;; 5323 * ) # otherwise, assume *nix 5324 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5325 ;; 5326 esac 5327 ;; 5328 *-*-cygwin* ) 5329 case $build in 5330 *-*-mingw* ) # actually msys 5331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5332 ;; 5333 *-*-cygwin* ) 5334 lt_cv_to_host_file_cmd=func_convert_file_noop 5335 ;; 5336 * ) # otherwise, assume *nix 5337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5338 ;; 5339 esac 5340 ;; 5341 * ) # unhandled hosts (and "normal" native builds) 5342 lt_cv_to_host_file_cmd=func_convert_file_noop 5343 ;; 5344esac 5345 5346fi 5347 5348to_host_file_cmd=$lt_cv_to_host_file_cmd 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5350$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5351 5352 5353 5354 5355 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5357$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5358if ${lt_cv_to_tool_file_cmd+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 #assume ordinary cross tools, or native build. 5362lt_cv_to_tool_file_cmd=func_convert_file_noop 5363case $host in 5364 *-*-mingw* ) 5365 case $build in 5366 *-*-mingw* ) # actually msys 5367 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5368 ;; 5369 esac 5370 ;; 5371esac 5372 5373fi 5374 5375to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5377$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5378 5379 5380 5381 5382 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5384$as_echo_n "checking for $LD option to reload object files... " >&6; } 5385if ${lt_cv_ld_reload_flag+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 lt_cv_ld_reload_flag='-r' 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5391$as_echo "$lt_cv_ld_reload_flag" >&6; } 5392reload_flag=$lt_cv_ld_reload_flag 5393case $reload_flag in 5394"" | " "*) ;; 5395*) reload_flag=" $reload_flag" ;; 5396esac 5397reload_cmds='$LD$reload_flag -o $output$reload_objs' 5398case $host_os in 5399 cygwin* | mingw* | pw32* | cegcc*) 5400 if test yes != "$GCC"; then 5401 reload_cmds=false 5402 fi 5403 ;; 5404 darwin*) 5405 if test yes = "$GCC"; then 5406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5407 else 5408 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5409 fi 5410 ;; 5411esac 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421if test -n "$ac_tool_prefix"; then 5422 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5423set dummy ${ac_tool_prefix}objdump; ac_word=$2 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5425$as_echo_n "checking for $ac_word... " >&6; } 5426if ${ac_cv_prog_OBJDUMP+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 if test -n "$OBJDUMP"; then 5430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5431else 5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433for as_dir in $PATH 5434do 5435 IFS=$as_save_IFS 5436 test -z "$as_dir" && as_dir=. 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5439 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5441 break 2 5442 fi 5443done 5444 done 5445IFS=$as_save_IFS 5446 5447fi 5448fi 5449OBJDUMP=$ac_cv_prog_OBJDUMP 5450if test -n "$OBJDUMP"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5452$as_echo "$OBJDUMP" >&6; } 5453else 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5455$as_echo "no" >&6; } 5456fi 5457 5458 5459fi 5460if test -z "$ac_cv_prog_OBJDUMP"; then 5461 ac_ct_OBJDUMP=$OBJDUMP 5462 # Extract the first word of "objdump", so it can be a program name with args. 5463set dummy objdump; ac_word=$2 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5465$as_echo_n "checking for $ac_word... " >&6; } 5466if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 if test -n "$ac_ct_OBJDUMP"; then 5470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5471else 5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5473for as_dir in $PATH 5474do 5475 IFS=$as_save_IFS 5476 test -z "$as_dir" && as_dir=. 5477 for ac_exec_ext in '' $ac_executable_extensions; do 5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5479 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5481 break 2 5482 fi 5483done 5484 done 5485IFS=$as_save_IFS 5486 5487fi 5488fi 5489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5490if test -n "$ac_ct_OBJDUMP"; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5492$as_echo "$ac_ct_OBJDUMP" >&6; } 5493else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5495$as_echo "no" >&6; } 5496fi 5497 5498 if test "x$ac_ct_OBJDUMP" = x; then 5499 OBJDUMP="false" 5500 else 5501 case $cross_compiling:$ac_tool_warned in 5502yes:) 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5505ac_tool_warned=yes ;; 5506esac 5507 OBJDUMP=$ac_ct_OBJDUMP 5508 fi 5509else 5510 OBJDUMP="$ac_cv_prog_OBJDUMP" 5511fi 5512 5513test -z "$OBJDUMP" && OBJDUMP=objdump 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5524$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5525if ${lt_cv_deplibs_check_method+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 lt_cv_file_magic_cmd='$MAGIC_CMD' 5529lt_cv_file_magic_test_file= 5530lt_cv_deplibs_check_method='unknown' 5531# Need to set the preceding variable on all platforms that support 5532# interlibrary dependencies. 5533# 'none' -- dependencies not supported. 5534# 'unknown' -- same as none, but documents that we really don't know. 5535# 'pass_all' -- all dependencies passed with no checks. 5536# 'test_compile' -- check by making test program. 5537# 'file_magic [[regex]]' -- check by looking for files in library path 5538# that responds to the $file_magic_cmd with a given extended regex. 5539# If you have 'file' or equivalent on your system and you're not sure 5540# whether 'pass_all' will *always* work, you probably want this one. 5541 5542case $host_os in 5543aix[4-9]*) 5544 lt_cv_deplibs_check_method=pass_all 5545 ;; 5546 5547beos*) 5548 lt_cv_deplibs_check_method=pass_all 5549 ;; 5550 5551bsdi[45]*) 5552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5553 lt_cv_file_magic_cmd='/usr/bin/file -L' 5554 lt_cv_file_magic_test_file=/shlib/libc.so 5555 ;; 5556 5557cygwin*) 5558 # func_win32_libid is a shell function defined in ltmain.sh 5559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5560 lt_cv_file_magic_cmd='func_win32_libid' 5561 ;; 5562 5563mingw* | pw32*) 5564 # Base MSYS/MinGW do not provide the 'file' command needed by 5565 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5566 # unless we find 'file', for example because we are cross-compiling. 5567 if ( file / ) >/dev/null 2>&1; then 5568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5569 lt_cv_file_magic_cmd='func_win32_libid' 5570 else 5571 # Keep this pattern in sync with the one in func_win32_libid. 5572 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5573 lt_cv_file_magic_cmd='$OBJDUMP -f' 5574 fi 5575 ;; 5576 5577cegcc*) 5578 # use the weaker test based on 'objdump'. See mingw*. 5579 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5580 lt_cv_file_magic_cmd='$OBJDUMP -f' 5581 ;; 5582 5583darwin* | rhapsody*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 5587freebsd* | dragonfly*) 5588 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5589 case $host_cpu in 5590 i*86 ) 5591 # Not sure whether the presence of OpenBSD here was a mistake. 5592 # Let's accept both of them until this is cleared up. 5593 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5594 lt_cv_file_magic_cmd=/usr/bin/file 5595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5596 ;; 5597 esac 5598 else 5599 lt_cv_deplibs_check_method=pass_all 5600 fi 5601 ;; 5602 5603haiku*) 5604 lt_cv_deplibs_check_method=pass_all 5605 ;; 5606 5607hpux10.20* | hpux11*) 5608 lt_cv_file_magic_cmd=/usr/bin/file 5609 case $host_cpu in 5610 ia64*) 5611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5612 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5613 ;; 5614 hppa*64*) 5615 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]' 5616 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5617 ;; 5618 *) 5619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5620 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5621 ;; 5622 esac 5623 ;; 5624 5625interix[3-9]*) 5626 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5628 ;; 5629 5630irix5* | irix6* | nonstopux*) 5631 case $LD in 5632 *-32|*"-32 ") libmagic=32-bit;; 5633 *-n32|*"-n32 ") libmagic=N32;; 5634 *-64|*"-64 ") libmagic=64-bit;; 5635 *) libmagic=never-match;; 5636 esac 5637 lt_cv_deplibs_check_method=pass_all 5638 ;; 5639 5640# This must be glibc/ELF. 5641linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5642 lt_cv_deplibs_check_method=pass_all 5643 ;; 5644 5645netbsd* | netbsdelf*-gnu) 5646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5648 else 5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5650 fi 5651 ;; 5652 5653newos6*) 5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5655 lt_cv_file_magic_cmd=/usr/bin/file 5656 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5657 ;; 5658 5659*nto* | *qnx*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662 5663openbsd* | bitrig*) 5664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5666 else 5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5668 fi 5669 ;; 5670 5671osf3* | osf4* | osf5*) 5672 lt_cv_deplibs_check_method=pass_all 5673 ;; 5674 5675rdos*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679solaris*) 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 5683sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 5687sysv4 | sysv4.3*) 5688 case $host_vendor in 5689 motorola) 5690 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]' 5691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5692 ;; 5693 ncr) 5694 lt_cv_deplibs_check_method=pass_all 5695 ;; 5696 sequent) 5697 lt_cv_file_magic_cmd='/bin/file' 5698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5699 ;; 5700 sni) 5701 lt_cv_file_magic_cmd='/bin/file' 5702 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5703 lt_cv_file_magic_test_file=/lib/libc.so 5704 ;; 5705 siemens) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 pc) 5709 lt_cv_deplibs_check_method=pass_all 5710 ;; 5711 esac 5712 ;; 5713 5714tpf*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717os2*) 5718 lt_cv_deplibs_check_method=pass_all 5719 ;; 5720esac 5721 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5724$as_echo "$lt_cv_deplibs_check_method" >&6; } 5725 5726file_magic_glob= 5727want_nocaseglob=no 5728if test "$build" = "$host"; then 5729 case $host_os in 5730 mingw* | pw32*) 5731 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5732 want_nocaseglob=yes 5733 else 5734 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5735 fi 5736 ;; 5737 esac 5738fi 5739 5740file_magic_cmd=$lt_cv_file_magic_cmd 5741deplibs_check_method=$lt_cv_deplibs_check_method 5742test -z "$deplibs_check_method" && deplibs_check_method=unknown 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765if test -n "$ac_tool_prefix"; then 5766 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5767set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5769$as_echo_n "checking for $ac_word... " >&6; } 5770if ${ac_cv_prog_DLLTOOL+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 if test -n "$DLLTOOL"; then 5774 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5775else 5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5777for as_dir in $PATH 5778do 5779 IFS=$as_save_IFS 5780 test -z "$as_dir" && as_dir=. 5781 for ac_exec_ext in '' $ac_executable_extensions; do 5782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5783 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5785 break 2 5786 fi 5787done 5788 done 5789IFS=$as_save_IFS 5790 5791fi 5792fi 5793DLLTOOL=$ac_cv_prog_DLLTOOL 5794if test -n "$DLLTOOL"; then 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5796$as_echo "$DLLTOOL" >&6; } 5797else 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5799$as_echo "no" >&6; } 5800fi 5801 5802 5803fi 5804if test -z "$ac_cv_prog_DLLTOOL"; then 5805 ac_ct_DLLTOOL=$DLLTOOL 5806 # Extract the first word of "dlltool", so it can be a program name with args. 5807set dummy dlltool; ac_word=$2 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5809$as_echo_n "checking for $ac_word... " >&6; } 5810if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 if test -n "$ac_ct_DLLTOOL"; then 5814 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5815else 5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5817for as_dir in $PATH 5818do 5819 IFS=$as_save_IFS 5820 test -z "$as_dir" && as_dir=. 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5823 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827done 5828 done 5829IFS=$as_save_IFS 5830 5831fi 5832fi 5833ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5834if test -n "$ac_ct_DLLTOOL"; then 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5836$as_echo "$ac_ct_DLLTOOL" >&6; } 5837else 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839$as_echo "no" >&6; } 5840fi 5841 5842 if test "x$ac_ct_DLLTOOL" = x; then 5843 DLLTOOL="false" 5844 else 5845 case $cross_compiling:$ac_tool_warned in 5846yes:) 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5849ac_tool_warned=yes ;; 5850esac 5851 DLLTOOL=$ac_ct_DLLTOOL 5852 fi 5853else 5854 DLLTOOL="$ac_cv_prog_DLLTOOL" 5855fi 5856 5857test -z "$DLLTOOL" && DLLTOOL=dlltool 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5869$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5870if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 lt_cv_sharedlib_from_linklib_cmd='unknown' 5874 5875case $host_os in 5876cygwin* | mingw* | pw32* | cegcc*) 5877 # two different shell functions defined in ltmain.sh; 5878 # decide which one to use based on capabilities of $DLLTOOL 5879 case `$DLLTOOL --help 2>&1` in 5880 *--identify-strict*) 5881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5882 ;; 5883 *) 5884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5885 ;; 5886 esac 5887 ;; 5888*) 5889 # fallback: assume linklib IS sharedlib 5890 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5891 ;; 5892esac 5893 5894fi 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5896$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5897sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5898test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5899 5900 5901 5902 5903 5904 5905 5906 5907if test -n "$ac_tool_prefix"; then 5908 for ac_prog in ar 5909 do 5910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if ${ac_cv_prog_AR+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$AR"; then 5918 ac_cv_prog_AR="$AR" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5927 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932 done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937AR=$ac_cv_prog_AR 5938if test -n "$AR"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5940$as_echo "$AR" >&6; } 5941else 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 5947 test -n "$AR" && break 5948 done 5949fi 5950if test -z "$AR"; then 5951 ac_ct_AR=$AR 5952 for ac_prog in ar 5953do 5954 # Extract the first word of "$ac_prog", so it can be a program name with args. 5955set dummy $ac_prog; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if ${ac_cv_prog_ac_ct_AR+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$ac_ct_AR"; then 5962 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5971 ac_cv_prog_ac_ct_AR="$ac_prog" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981ac_ct_AR=$ac_cv_prog_ac_ct_AR 5982if test -n "$ac_ct_AR"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5984$as_echo "$ac_ct_AR" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 5991 test -n "$ac_ct_AR" && break 5992done 5993 5994 if test "x$ac_ct_AR" = x; then 5995 AR="false" 5996 else 5997 case $cross_compiling:$ac_tool_warned in 5998yes:) 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6001ac_tool_warned=yes ;; 6002esac 6003 AR=$ac_ct_AR 6004 fi 6005fi 6006 6007: ${AR=ar} 6008: ${AR_FLAGS=cr} 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6021$as_echo_n "checking for archiver @FILE support... " >&6; } 6022if ${lt_cv_ar_at_file+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 lt_cv_ar_at_file=no 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028 6029int 6030main () 6031{ 6032 6033 ; 6034 return 0; 6035} 6036_ACEOF 6037if ac_fn_c_try_compile "$LINENO"; then : 6038 echo conftest.$ac_objext > conftest.lst 6039 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6041 (eval $lt_ar_try) 2>&5 6042 ac_status=$? 6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6044 test $ac_status = 0; } 6045 if test 0 -eq "$ac_status"; then 6046 # Ensure the archiver fails upon bogus file names. 6047 rm -f conftest.$ac_objext libconftest.a 6048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6049 (eval $lt_ar_try) 2>&5 6050 ac_status=$? 6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6052 test $ac_status = 0; } 6053 if test 0 -ne "$ac_status"; then 6054 lt_cv_ar_at_file=@ 6055 fi 6056 fi 6057 rm -f conftest.* libconftest.a 6058 6059fi 6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6061 6062fi 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6064$as_echo "$lt_cv_ar_at_file" >&6; } 6065 6066if test no = "$lt_cv_ar_at_file"; then 6067 archiver_list_spec= 6068else 6069 archiver_list_spec=$lt_cv_ar_at_file 6070fi 6071 6072 6073 6074 6075 6076 6077 6078if test -n "$ac_tool_prefix"; then 6079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6080set dummy ${ac_tool_prefix}strip; ac_word=$2 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6082$as_echo_n "checking for $ac_word... " >&6; } 6083if ${ac_cv_prog_STRIP+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 if test -n "$STRIP"; then 6087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6088else 6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6090for as_dir in $PATH 6091do 6092 IFS=$as_save_IFS 6093 test -z "$as_dir" && as_dir=. 6094 for ac_exec_ext in '' $ac_executable_extensions; do 6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6096 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6098 break 2 6099 fi 6100done 6101 done 6102IFS=$as_save_IFS 6103 6104fi 6105fi 6106STRIP=$ac_cv_prog_STRIP 6107if test -n "$STRIP"; then 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6109$as_echo "$STRIP" >&6; } 6110else 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6112$as_echo "no" >&6; } 6113fi 6114 6115 6116fi 6117if test -z "$ac_cv_prog_STRIP"; then 6118 ac_ct_STRIP=$STRIP 6119 # Extract the first word of "strip", so it can be a program name with args. 6120set dummy strip; ac_word=$2 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6122$as_echo_n "checking for $ac_word... " >&6; } 6123if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 if test -n "$ac_ct_STRIP"; then 6127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6128else 6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_prog_ac_ct_STRIP="strip" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140done 6141 done 6142IFS=$as_save_IFS 6143 6144fi 6145fi 6146ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6147if test -n "$ac_ct_STRIP"; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6149$as_echo "$ac_ct_STRIP" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6152$as_echo "no" >&6; } 6153fi 6154 6155 if test "x$ac_ct_STRIP" = x; then 6156 STRIP=":" 6157 else 6158 case $cross_compiling:$ac_tool_warned in 6159yes:) 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6162ac_tool_warned=yes ;; 6163esac 6164 STRIP=$ac_ct_STRIP 6165 fi 6166else 6167 STRIP="$ac_cv_prog_STRIP" 6168fi 6169 6170test -z "$STRIP" && STRIP=: 6171 6172 6173 6174 6175 6176 6177if test -n "$ac_tool_prefix"; then 6178 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6179set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6181$as_echo_n "checking for $ac_word... " >&6; } 6182if ${ac_cv_prog_RANLIB+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 if test -n "$RANLIB"; then 6186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6187else 6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6189for as_dir in $PATH 6190do 6191 IFS=$as_save_IFS 6192 test -z "$as_dir" && as_dir=. 6193 for ac_exec_ext in '' $ac_executable_extensions; do 6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6195 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6197 break 2 6198 fi 6199done 6200 done 6201IFS=$as_save_IFS 6202 6203fi 6204fi 6205RANLIB=$ac_cv_prog_RANLIB 6206if test -n "$RANLIB"; then 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6208$as_echo "$RANLIB" >&6; } 6209else 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6211$as_echo "no" >&6; } 6212fi 6213 6214 6215fi 6216if test -z "$ac_cv_prog_RANLIB"; then 6217 ac_ct_RANLIB=$RANLIB 6218 # Extract the first word of "ranlib", so it can be a program name with args. 6219set dummy ranlib; ac_word=$2 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6221$as_echo_n "checking for $ac_word... " >&6; } 6222if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 if test -n "$ac_ct_RANLIB"; then 6226 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6227else 6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6229for as_dir in $PATH 6230do 6231 IFS=$as_save_IFS 6232 test -z "$as_dir" && as_dir=. 6233 for ac_exec_ext in '' $ac_executable_extensions; do 6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6235 ac_cv_prog_ac_ct_RANLIB="ranlib" 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6237 break 2 6238 fi 6239done 6240 done 6241IFS=$as_save_IFS 6242 6243fi 6244fi 6245ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6246if test -n "$ac_ct_RANLIB"; then 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6248$as_echo "$ac_ct_RANLIB" >&6; } 6249else 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6251$as_echo "no" >&6; } 6252fi 6253 6254 if test "x$ac_ct_RANLIB" = x; then 6255 RANLIB=":" 6256 else 6257 case $cross_compiling:$ac_tool_warned in 6258yes:) 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6261ac_tool_warned=yes ;; 6262esac 6263 RANLIB=$ac_ct_RANLIB 6264 fi 6265else 6266 RANLIB="$ac_cv_prog_RANLIB" 6267fi 6268 6269test -z "$RANLIB" && RANLIB=: 6270 6271 6272 6273 6274 6275 6276# Determine commands to create old-style static archives. 6277old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6278old_postinstall_cmds='chmod 644 $oldlib' 6279old_postuninstall_cmds= 6280 6281if test -n "$RANLIB"; then 6282 case $host_os in 6283 bitrig* | openbsd*) 6284 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6285 ;; 6286 *) 6287 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6288 ;; 6289 esac 6290 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6291fi 6292 6293case $host_os in 6294 darwin*) 6295 lock_old_archive_extraction=yes ;; 6296 *) 6297 lock_old_archive_extraction=no ;; 6298esac 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338# If no C compiler was specified, use CC. 6339LTCC=${LTCC-"$CC"} 6340 6341# If no C compiler flags were specified, use CFLAGS. 6342LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6343 6344# Allow CC to be a program name with arguments. 6345compiler=$CC 6346 6347 6348# Check for command to grab the raw symbol name followed by C symbol from nm. 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6350$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6351if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 6355# These are sane defaults that work on at least a few old systems. 6356# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6357 6358# Character class describing NM global symbol codes. 6359symcode='[BCDEGRST]' 6360 6361# Regexp to match symbols that can be accessed directly from C. 6362sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6363 6364# Define system-specific variables. 6365case $host_os in 6366aix*) 6367 symcode='[BCDT]' 6368 ;; 6369cygwin* | mingw* | pw32* | cegcc*) 6370 symcode='[ABCDGISTW]' 6371 ;; 6372hpux*) 6373 if test ia64 = "$host_cpu"; then 6374 symcode='[ABCDEGRST]' 6375 fi 6376 ;; 6377irix* | nonstopux*) 6378 symcode='[BCDEGRST]' 6379 ;; 6380osf*) 6381 symcode='[BCDEGQRST]' 6382 ;; 6383solaris*) 6384 symcode='[BDRT]' 6385 ;; 6386sco3.2v5*) 6387 symcode='[DT]' 6388 ;; 6389sysv4.2uw2*) 6390 symcode='[DT]' 6391 ;; 6392sysv5* | sco5v6* | unixware* | OpenUNIX*) 6393 symcode='[ABDT]' 6394 ;; 6395sysv4) 6396 symcode='[DFNSTU]' 6397 ;; 6398esac 6399 6400# If we're using GNU nm, then use its standard symbol codes. 6401case `$NM -V 2>&1` in 6402*GNU* | *'with BFD'*) 6403 symcode='[ABCDGIRSTW]' ;; 6404esac 6405 6406if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6407 # Gets list of data symbols to import. 6408 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6409 # Adjust the below global symbol transforms to fixup imported variables. 6410 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6411 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6412 lt_c_name_lib_hook="\ 6413 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6414 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6415else 6416 # Disable hooks by default. 6417 lt_cv_sys_global_symbol_to_import= 6418 lt_cdecl_hook= 6419 lt_c_name_hook= 6420 lt_c_name_lib_hook= 6421fi 6422 6423# Transform an extracted symbol line into a proper C declaration. 6424# Some systems (esp. on ia64) link data and code symbols differently, 6425# so use this general approach. 6426lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6427$lt_cdecl_hook\ 6428" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6429" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6430 6431# Transform an extracted symbol line into symbol name and symbol address 6432lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6433$lt_c_name_hook\ 6434" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6435" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6436 6437# Transform an extracted symbol line into symbol name with lib prefix and 6438# symbol address. 6439lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6440$lt_c_name_lib_hook\ 6441" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6442" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6443" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6444 6445# Handle CRLF in mingw tool chain 6446opt_cr= 6447case $build_os in 6448mingw*) 6449 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6450 ;; 6451esac 6452 6453# Try without a prefix underscore, then with it. 6454for ac_symprfx in "" "_"; do 6455 6456 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6457 symxfrm="\\1 $ac_symprfx\\2 \\2" 6458 6459 # Write the raw and C identifiers. 6460 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6461 # Fake it for dumpbin and say T for any non-static function, 6462 # D for any global variable and I for any imported variable. 6463 # Also find C++ and __fastcall symbols from MSVC++, 6464 # which start with @ or ?. 6465 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6466" {last_section=section; section=\$ 3};"\ 6467" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6468" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6469" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6470" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6471" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6472" \$ 0!~/External *\|/{next};"\ 6473" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6474" {if(hide[section]) next};"\ 6475" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6476" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6477" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6478" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6479" ' prfx=^$ac_symprfx" 6480 else 6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6482 fi 6483 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6484 6485 # Check to see that the pipe works correctly. 6486 pipe_works=no 6487 6488 rm -f conftest* 6489 cat > conftest.$ac_ext <<_LT_EOF 6490#ifdef __cplusplus 6491extern "C" { 6492#endif 6493char nm_test_var; 6494void nm_test_func(void); 6495void nm_test_func(void){} 6496#ifdef __cplusplus 6497} 6498#endif 6499int main(){nm_test_var='a';nm_test_func();return(0);} 6500_LT_EOF 6501 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6503 (eval $ac_compile) 2>&5 6504 ac_status=$? 6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6506 test $ac_status = 0; }; then 6507 # Now try to grab the symbols. 6508 nlist=conftest.nm 6509 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6510 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6511 # Try sorting and uniquifying the output. 6512 if sort "$nlist" | uniq > "$nlist"T; then 6513 mv -f "$nlist"T "$nlist" 6514 else 6515 rm -f "$nlist"T 6516 fi 6517 6518 # Make sure that we snagged all the symbols we need. 6519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6521 cat <<_LT_EOF > conftest.$ac_ext 6522/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6523#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6524/* DATA imports from DLLs on WIN32 can't be const, because runtime 6525 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6526# define LT@&t@_DLSYM_CONST 6527#elif defined __osf__ 6528/* This system does not cope well with relocations in const data. */ 6529# define LT@&t@_DLSYM_CONST 6530#else 6531# define LT@&t@_DLSYM_CONST const 6532#endif 6533 6534#ifdef __cplusplus 6535extern "C" { 6536#endif 6537 6538_LT_EOF 6539 # Now generate the symbol file. 6540 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6541 6542 cat <<_LT_EOF >> conftest.$ac_ext 6543 6544/* The mapping between symbol names and symbols. */ 6545LT@&t@_DLSYM_CONST struct { 6546 const char *name; 6547 void *address; 6548} 6549lt__PROGRAM__LTX_preloaded_symbols[] = 6550{ 6551 { "@PROGRAM@", (void *) 0 }, 6552_LT_EOF 6553 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6554 cat <<\_LT_EOF >> conftest.$ac_ext 6555 {0, (void *) 0} 6556}; 6557 6558/* This works around a problem in FreeBSD linker */ 6559#ifdef FREEBSD_WORKAROUND 6560static const void *lt_preloaded_setup() { 6561 return lt__PROGRAM__LTX_preloaded_symbols; 6562} 6563#endif 6564 6565#ifdef __cplusplus 6566} 6567#endif 6568_LT_EOF 6569 # Now try linking the two files. 6570 mv conftest.$ac_objext conftstm.$ac_objext 6571 lt_globsym_save_LIBS=$LIBS 6572 lt_globsym_save_CFLAGS=$CFLAGS 6573 LIBS=conftstm.$ac_objext 6574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6576 (eval $ac_link) 2>&5 6577 ac_status=$? 6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6579 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6580 pipe_works=yes 6581 fi 6582 LIBS=$lt_globsym_save_LIBS 6583 CFLAGS=$lt_globsym_save_CFLAGS 6584 else 6585 echo "cannot find nm_test_func in $nlist" >&5 6586 fi 6587 else 6588 echo "cannot find nm_test_var in $nlist" >&5 6589 fi 6590 else 6591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6592 fi 6593 else 6594 echo "$progname: failed program was:" >&5 6595 cat conftest.$ac_ext >&5 6596 fi 6597 rm -rf conftest* conftst* 6598 6599 # Do not use the global_symbol_pipe unless it works. 6600 if test yes = "$pipe_works"; then 6601 break 6602 else 6603 lt_cv_sys_global_symbol_pipe= 6604 fi 6605done 6606 6607fi 6608 6609if test -z "$lt_cv_sys_global_symbol_pipe"; then 6610 lt_cv_sys_global_symbol_to_cdecl= 6611fi 6612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6614$as_echo "failed" >&6; } 6615else 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6617$as_echo "ok" >&6; } 6618fi 6619 6620# Response file support. 6621if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6622 nm_file_list_spec='@' 6623elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6624 nm_file_list_spec='@' 6625fi 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6664$as_echo_n "checking for sysroot... " >&6; } 6665 6666@%:@ Check whether --with-sysroot was given. 6667if test "${with_sysroot+set}" = set; then : 6668 withval=$with_sysroot; 6669else 6670 with_sysroot=no 6671fi 6672 6673 6674lt_sysroot= 6675case $with_sysroot in #( 6676 yes) 6677 if test yes = "$GCC"; then 6678 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6679 fi 6680 ;; #( 6681 /*) 6682 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6683 ;; #( 6684 no|'') 6685 ;; #( 6686 *) 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6688$as_echo "$with_sysroot" >&6; } 6689 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6690 ;; 6691esac 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6694$as_echo "${lt_sysroot:-no}" >&6; } 6695 6696 6697 6698 6699 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6701$as_echo_n "checking for a working dd... " >&6; } 6702if ${ac_cv_path_lt_DD+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 printf 0123456789abcdef0123456789abcdef >conftest.i 6706cat conftest.i conftest.i >conftest2.i 6707: ${lt_DD:=$DD} 6708if test -z "$lt_DD"; then 6709 ac_path_lt_DD_found=false 6710 # Loop through the user's path and test for each of PROGNAME-LIST 6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6712for as_dir in $PATH 6713do 6714 IFS=$as_save_IFS 6715 test -z "$as_dir" && as_dir=. 6716 for ac_prog in dd; do 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6719 as_fn_executable_p "$ac_path_lt_DD" || continue 6720if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6721 cmp -s conftest.i conftest.out \ 6722 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6723fi 6724 $ac_path_lt_DD_found && break 3 6725 done 6726 done 6727 done 6728IFS=$as_save_IFS 6729 if test -z "$ac_cv_path_lt_DD"; then 6730 : 6731 fi 6732else 6733 ac_cv_path_lt_DD=$lt_DD 6734fi 6735 6736rm -f conftest.i conftest2.i conftest.out 6737fi 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6739$as_echo "$ac_cv_path_lt_DD" >&6; } 6740 6741 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6743$as_echo_n "checking how to truncate binary pipes... " >&6; } 6744if ${lt_cv_truncate_bin+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 printf 0123456789abcdef0123456789abcdef >conftest.i 6748cat conftest.i conftest.i >conftest2.i 6749lt_cv_truncate_bin= 6750if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6751 cmp -s conftest.i conftest.out \ 6752 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6753fi 6754rm -f conftest.i conftest2.i conftest.out 6755test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6756fi 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6758$as_echo "$lt_cv_truncate_bin" >&6; } 6759 6760 6761 6762 6763 6764 6765 6766# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6767func_cc_basename () 6768{ 6769 for cc_temp in @S|@*""; do 6770 case $cc_temp in 6771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6773 \-*) ;; 6774 *) break;; 6775 esac 6776 done 6777 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6778} 6779 6780@%:@ Check whether --enable-libtool-lock was given. 6781if test "${enable_libtool_lock+set}" = set; then : 6782 enableval=$enable_libtool_lock; 6783fi 6784 6785test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6786 6787# Some flags need to be propagated to the compiler or linker for good 6788# libtool support. 6789case $host in 6790ia64-*-hpux*) 6791 # Find out what ABI is being produced by ac_compile, and set mode 6792 # options accordingly. 6793 echo 'int i;' > conftest.$ac_ext 6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6795 (eval $ac_compile) 2>&5 6796 ac_status=$? 6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6798 test $ac_status = 0; }; then 6799 case `/usr/bin/file conftest.$ac_objext` in 6800 *ELF-32*) 6801 HPUX_IA64_MODE=32 6802 ;; 6803 *ELF-64*) 6804 HPUX_IA64_MODE=64 6805 ;; 6806 esac 6807 fi 6808 rm -rf conftest* 6809 ;; 6810*-*-irix6*) 6811 # Find out what ABI is being produced by ac_compile, and set linker 6812 # options accordingly. 6813 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6815 (eval $ac_compile) 2>&5 6816 ac_status=$? 6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6818 test $ac_status = 0; }; then 6819 if test yes = "$lt_cv_prog_gnu_ld"; then 6820 case `/usr/bin/file conftest.$ac_objext` in 6821 *32-bit*) 6822 LD="${LD-ld} -melf32bsmip" 6823 ;; 6824 *N32*) 6825 LD="${LD-ld} -melf32bmipn32" 6826 ;; 6827 *64-bit*) 6828 LD="${LD-ld} -melf64bmip" 6829 ;; 6830 esac 6831 else 6832 case `/usr/bin/file conftest.$ac_objext` in 6833 *32-bit*) 6834 LD="${LD-ld} -32" 6835 ;; 6836 *N32*) 6837 LD="${LD-ld} -n32" 6838 ;; 6839 *64-bit*) 6840 LD="${LD-ld} -64" 6841 ;; 6842 esac 6843 fi 6844 fi 6845 rm -rf conftest* 6846 ;; 6847 6848mips64*-*linux*) 6849 # Find out what ABI is being produced by ac_compile, and set linker 6850 # options accordingly. 6851 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6853 (eval $ac_compile) 2>&5 6854 ac_status=$? 6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6856 test $ac_status = 0; }; then 6857 emul=elf 6858 case `/usr/bin/file conftest.$ac_objext` in 6859 *32-bit*) 6860 emul="${emul}32" 6861 ;; 6862 *64-bit*) 6863 emul="${emul}64" 6864 ;; 6865 esac 6866 case `/usr/bin/file conftest.$ac_objext` in 6867 *MSB*) 6868 emul="${emul}btsmip" 6869 ;; 6870 *LSB*) 6871 emul="${emul}ltsmip" 6872 ;; 6873 esac 6874 case `/usr/bin/file conftest.$ac_objext` in 6875 *N32*) 6876 emul="${emul}n32" 6877 ;; 6878 esac 6879 LD="${LD-ld} -m $emul" 6880 fi 6881 rm -rf conftest* 6882 ;; 6883 6884x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6885s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6886 # Find out what ABI is being produced by ac_compile, and set linker 6887 # options accordingly. Note that the listed cases only cover the 6888 # situations where additional linker options are needed (such as when 6889 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6890 # vice versa); the common cases where no linker options are needed do 6891 # not appear in the list. 6892 echo 'int i;' > conftest.$ac_ext 6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6894 (eval $ac_compile) 2>&5 6895 ac_status=$? 6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6897 test $ac_status = 0; }; then 6898 case `/usr/bin/file conftest.o` in 6899 *32-bit*) 6900 case $host in 6901 x86_64-*kfreebsd*-gnu) 6902 LD="${LD-ld} -m elf_i386_fbsd" 6903 ;; 6904 x86_64-*linux*) 6905 case `/usr/bin/file conftest.o` in 6906 *x86-64*) 6907 LD="${LD-ld} -m elf32_x86_64" 6908 ;; 6909 *) 6910 LD="${LD-ld} -m elf_i386" 6911 ;; 6912 esac 6913 ;; 6914 powerpc64le-*linux*) 6915 LD="${LD-ld} -m elf32lppclinux" 6916 ;; 6917 powerpc64-*linux*) 6918 LD="${LD-ld} -m elf32ppclinux" 6919 ;; 6920 s390x-*linux*) 6921 LD="${LD-ld} -m elf_s390" 6922 ;; 6923 sparc64-*linux*) 6924 LD="${LD-ld} -m elf32_sparc" 6925 ;; 6926 esac 6927 ;; 6928 *64-bit*) 6929 case $host in 6930 x86_64-*kfreebsd*-gnu) 6931 LD="${LD-ld} -m elf_x86_64_fbsd" 6932 ;; 6933 x86_64-*linux*) 6934 LD="${LD-ld} -m elf_x86_64" 6935 ;; 6936 powerpcle-*linux*) 6937 LD="${LD-ld} -m elf64lppc" 6938 ;; 6939 powerpc-*linux*) 6940 LD="${LD-ld} -m elf64ppc" 6941 ;; 6942 s390*-*linux*|s390*-*tpf*) 6943 LD="${LD-ld} -m elf64_s390" 6944 ;; 6945 sparc*-*linux*) 6946 LD="${LD-ld} -m elf64_sparc" 6947 ;; 6948 esac 6949 ;; 6950 esac 6951 fi 6952 rm -rf conftest* 6953 ;; 6954 6955*-*-sco3.2v5*) 6956 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6957 SAVE_CFLAGS=$CFLAGS 6958 CFLAGS="$CFLAGS -belf" 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6960$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6961if ${lt_cv_cc_needs_belf+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 ac_ext=c 6965ac_cpp='$CPP $CPPFLAGS' 6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6968ac_compiler_gnu=$ac_cv_c_compiler_gnu 6969 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972 6973int 6974main () 6975{ 6976 6977 ; 6978 return 0; 6979} 6980_ACEOF 6981if ac_fn_c_try_link "$LINENO"; then : 6982 lt_cv_cc_needs_belf=yes 6983else 6984 lt_cv_cc_needs_belf=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext \ 6987 conftest$ac_exeext conftest.$ac_ext 6988 ac_ext=c 6989ac_cpp='$CPP $CPPFLAGS' 6990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6992ac_compiler_gnu=$ac_cv_c_compiler_gnu 6993 6994fi 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6996$as_echo "$lt_cv_cc_needs_belf" >&6; } 6997 if test yes != "$lt_cv_cc_needs_belf"; then 6998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6999 CFLAGS=$SAVE_CFLAGS 7000 fi 7001 ;; 7002*-*solaris*) 7003 # Find out what ABI is being produced by ac_compile, and set linker 7004 # options accordingly. 7005 echo 'int i;' > conftest.$ac_ext 7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7007 (eval $ac_compile) 2>&5 7008 ac_status=$? 7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7010 test $ac_status = 0; }; then 7011 case `/usr/bin/file conftest.o` in 7012 *64-bit*) 7013 case $lt_cv_prog_gnu_ld in 7014 yes*) 7015 case $host in 7016 i?86-*-solaris*|x86_64-*-solaris*) 7017 LD="${LD-ld} -m elf_x86_64" 7018 ;; 7019 sparc*-*-solaris*) 7020 LD="${LD-ld} -m elf64_sparc" 7021 ;; 7022 esac 7023 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7024 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7025 LD=${LD-ld}_sol2 7026 fi 7027 ;; 7028 *) 7029 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7030 LD="${LD-ld} -64" 7031 fi 7032 ;; 7033 esac 7034 ;; 7035 esac 7036 fi 7037 rm -rf conftest* 7038 ;; 7039esac 7040 7041need_locks=$enable_libtool_lock 7042 7043if test -n "$ac_tool_prefix"; then 7044 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7045set dummy ${ac_tool_prefix}mt; ac_word=$2 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7047$as_echo_n "checking for $ac_word... " >&6; } 7048if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test -n "$MANIFEST_TOOL"; then 7052 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7061 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066 done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7072if test -n "$MANIFEST_TOOL"; then 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7074$as_echo "$MANIFEST_TOOL" >&6; } 7075else 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7077$as_echo "no" >&6; } 7078fi 7079 7080 7081fi 7082if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7083 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7084 # Extract the first word of "mt", so it can be a program name with args. 7085set dummy mt; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$ac_ct_MANIFEST_TOOL"; then 7092 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7112if test -n "$ac_ct_MANIFEST_TOOL"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7114$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7121 MANIFEST_TOOL=":" 7122 else 7123 case $cross_compiling:$ac_tool_warned in 7124yes:) 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7127ac_tool_warned=yes ;; 7128esac 7129 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7130 fi 7131else 7132 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7133fi 7134 7135test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7137$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7138if ${lt_cv_path_mainfest_tool+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 lt_cv_path_mainfest_tool=no 7142 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7143 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7144 cat conftest.err >&5 7145 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7146 lt_cv_path_mainfest_tool=yes 7147 fi 7148 rm -f conftest* 7149fi 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7151$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7152if test yes != "$lt_cv_path_mainfest_tool"; then 7153 MANIFEST_TOOL=: 7154fi 7155 7156 7157 7158 7159 7160 7161 case $host_os in 7162 rhapsody* | darwin*) 7163 if test -n "$ac_tool_prefix"; then 7164 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7165set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7167$as_echo_n "checking for $ac_word... " >&6; } 7168if ${ac_cv_prog_DSYMUTIL+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 if test -n "$DSYMUTIL"; then 7172 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7173else 7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175for as_dir in $PATH 7176do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7181 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185done 7186 done 7187IFS=$as_save_IFS 7188 7189fi 7190fi 7191DSYMUTIL=$ac_cv_prog_DSYMUTIL 7192if test -n "$DSYMUTIL"; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7194$as_echo "$DSYMUTIL" >&6; } 7195else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197$as_echo "no" >&6; } 7198fi 7199 7200 7201fi 7202if test -z "$ac_cv_prog_DSYMUTIL"; then 7203 ac_ct_DSYMUTIL=$DSYMUTIL 7204 # Extract the first word of "dsymutil", so it can be a program name with args. 7205set dummy dsymutil; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$ac_ct_DSYMUTIL"; then 7212 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7232if test -n "$ac_ct_DSYMUTIL"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7234$as_echo "$ac_ct_DSYMUTIL" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 if test "x$ac_ct_DSYMUTIL" = x; then 7241 DSYMUTIL=":" 7242 else 7243 case $cross_compiling:$ac_tool_warned in 7244yes:) 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7247ac_tool_warned=yes ;; 7248esac 7249 DSYMUTIL=$ac_ct_DSYMUTIL 7250 fi 7251else 7252 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7253fi 7254 7255 if test -n "$ac_tool_prefix"; then 7256 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7257set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7259$as_echo_n "checking for $ac_word... " >&6; } 7260if ${ac_cv_prog_NMEDIT+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 if test -n "$NMEDIT"; then 7264 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7265else 7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7267for as_dir in $PATH 7268do 7269 IFS=$as_save_IFS 7270 test -z "$as_dir" && as_dir=. 7271 for ac_exec_ext in '' $ac_executable_extensions; do 7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7273 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7275 break 2 7276 fi 7277done 7278 done 7279IFS=$as_save_IFS 7280 7281fi 7282fi 7283NMEDIT=$ac_cv_prog_NMEDIT 7284if test -n "$NMEDIT"; then 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7286$as_echo "$NMEDIT" >&6; } 7287else 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7289$as_echo "no" >&6; } 7290fi 7291 7292 7293fi 7294if test -z "$ac_cv_prog_NMEDIT"; then 7295 ac_ct_NMEDIT=$NMEDIT 7296 # Extract the first word of "nmedit", so it can be a program name with args. 7297set dummy nmedit; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$ac_ct_NMEDIT"; then 7304 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7324if test -n "$ac_ct_NMEDIT"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7326$as_echo "$ac_ct_NMEDIT" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 if test "x$ac_ct_NMEDIT" = x; then 7333 NMEDIT=":" 7334 else 7335 case $cross_compiling:$ac_tool_warned in 7336yes:) 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7339ac_tool_warned=yes ;; 7340esac 7341 NMEDIT=$ac_ct_NMEDIT 7342 fi 7343else 7344 NMEDIT="$ac_cv_prog_NMEDIT" 7345fi 7346 7347 if test -n "$ac_tool_prefix"; then 7348 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7349set dummy ${ac_tool_prefix}lipo; ac_word=$2 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7351$as_echo_n "checking for $ac_word... " >&6; } 7352if ${ac_cv_prog_LIPO+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 if test -n "$LIPO"; then 7356 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7357else 7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7359for as_dir in $PATH 7360do 7361 IFS=$as_save_IFS 7362 test -z "$as_dir" && as_dir=. 7363 for ac_exec_ext in '' $ac_executable_extensions; do 7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7365 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7367 break 2 7368 fi 7369done 7370 done 7371IFS=$as_save_IFS 7372 7373fi 7374fi 7375LIPO=$ac_cv_prog_LIPO 7376if test -n "$LIPO"; then 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7378$as_echo "$LIPO" >&6; } 7379else 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7381$as_echo "no" >&6; } 7382fi 7383 7384 7385fi 7386if test -z "$ac_cv_prog_LIPO"; then 7387 ac_ct_LIPO=$LIPO 7388 # Extract the first word of "lipo", so it can be a program name with args. 7389set dummy lipo; ac_word=$2 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391$as_echo_n "checking for $ac_word... " >&6; } 7392if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 if test -n "$ac_ct_LIPO"; then 7396 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7397else 7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_prog_ac_ct_LIPO="lipo" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413fi 7414fi 7415ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7416if test -n "$ac_ct_LIPO"; then 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7418$as_echo "$ac_ct_LIPO" >&6; } 7419else 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7421$as_echo "no" >&6; } 7422fi 7423 7424 if test "x$ac_ct_LIPO" = x; then 7425 LIPO=":" 7426 else 7427 case $cross_compiling:$ac_tool_warned in 7428yes:) 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7431ac_tool_warned=yes ;; 7432esac 7433 LIPO=$ac_ct_LIPO 7434 fi 7435else 7436 LIPO="$ac_cv_prog_LIPO" 7437fi 7438 7439 if test -n "$ac_tool_prefix"; then 7440 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7441set dummy ${ac_tool_prefix}otool; ac_word=$2 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443$as_echo_n "checking for $ac_word... " >&6; } 7444if ${ac_cv_prog_OTOOL+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 if test -n "$OTOOL"; then 7448 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7449else 7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7451for as_dir in $PATH 7452do 7453 IFS=$as_save_IFS 7454 test -z "$as_dir" && as_dir=. 7455 for ac_exec_ext in '' $ac_executable_extensions; do 7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7457 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7459 break 2 7460 fi 7461done 7462 done 7463IFS=$as_save_IFS 7464 7465fi 7466fi 7467OTOOL=$ac_cv_prog_OTOOL 7468if test -n "$OTOOL"; then 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7470$as_echo "$OTOOL" >&6; } 7471else 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7473$as_echo "no" >&6; } 7474fi 7475 7476 7477fi 7478if test -z "$ac_cv_prog_OTOOL"; then 7479 ac_ct_OTOOL=$OTOOL 7480 # Extract the first word of "otool", so it can be a program name with args. 7481set dummy otool; ac_word=$2 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7483$as_echo_n "checking for $ac_word... " >&6; } 7484if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -n "$ac_ct_OTOOL"; then 7488 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_prog_ac_ct_OTOOL="otool" 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502 done 7503IFS=$as_save_IFS 7504 7505fi 7506fi 7507ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7508if test -n "$ac_ct_OTOOL"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7510$as_echo "$ac_ct_OTOOL" >&6; } 7511else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513$as_echo "no" >&6; } 7514fi 7515 7516 if test "x$ac_ct_OTOOL" = x; then 7517 OTOOL=":" 7518 else 7519 case $cross_compiling:$ac_tool_warned in 7520yes:) 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7523ac_tool_warned=yes ;; 7524esac 7525 OTOOL=$ac_ct_OTOOL 7526 fi 7527else 7528 OTOOL="$ac_cv_prog_OTOOL" 7529fi 7530 7531 if test -n "$ac_tool_prefix"; then 7532 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7533set dummy ${ac_tool_prefix}otool64; ac_word=$2 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7535$as_echo_n "checking for $ac_word... " >&6; } 7536if ${ac_cv_prog_OTOOL64+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 if test -n "$OTOOL64"; then 7540 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7541else 7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7543for as_dir in $PATH 7544do 7545 IFS=$as_save_IFS 7546 test -z "$as_dir" && as_dir=. 7547 for ac_exec_ext in '' $ac_executable_extensions; do 7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7549 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7551 break 2 7552 fi 7553done 7554 done 7555IFS=$as_save_IFS 7556 7557fi 7558fi 7559OTOOL64=$ac_cv_prog_OTOOL64 7560if test -n "$OTOOL64"; then 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7562$as_echo "$OTOOL64" >&6; } 7563else 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7565$as_echo "no" >&6; } 7566fi 7567 7568 7569fi 7570if test -z "$ac_cv_prog_OTOOL64"; then 7571 ac_ct_OTOOL64=$OTOOL64 7572 # Extract the first word of "otool64", so it can be a program name with args. 7573set dummy otool64; ac_word=$2 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7575$as_echo_n "checking for $ac_word... " >&6; } 7576if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 if test -n "$ac_ct_OTOOL64"; then 7580 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7581else 7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7583for as_dir in $PATH 7584do 7585 IFS=$as_save_IFS 7586 test -z "$as_dir" && as_dir=. 7587 for ac_exec_ext in '' $ac_executable_extensions; do 7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7589 ac_cv_prog_ac_ct_OTOOL64="otool64" 7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7591 break 2 7592 fi 7593done 7594 done 7595IFS=$as_save_IFS 7596 7597fi 7598fi 7599ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7600if test -n "$ac_ct_OTOOL64"; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7602$as_echo "$ac_ct_OTOOL64" >&6; } 7603else 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7605$as_echo "no" >&6; } 7606fi 7607 7608 if test "x$ac_ct_OTOOL64" = x; then 7609 OTOOL64=":" 7610 else 7611 case $cross_compiling:$ac_tool_warned in 7612yes:) 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7615ac_tool_warned=yes ;; 7616esac 7617 OTOOL64=$ac_ct_OTOOL64 7618 fi 7619else 7620 OTOOL64="$ac_cv_prog_OTOOL64" 7621fi 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7650$as_echo_n "checking for -single_module linker flag... " >&6; } 7651if ${lt_cv_apple_cc_single_mod+:} false; then : 7652 $as_echo_n "(cached) " >&6 7653else 7654 lt_cv_apple_cc_single_mod=no 7655 if test -z "$LT_MULTI_MODULE"; then 7656 # By default we will add the -single_module flag. You can override 7657 # by either setting the environment variable LT_MULTI_MODULE 7658 # non-empty at configure time, or by adding -multi_module to the 7659 # link flags. 7660 rm -rf libconftest.dylib* 7661 echo "int foo(void){return 1;}" > conftest.c 7662 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7663-dynamiclib -Wl,-single_module conftest.c" >&5 7664 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7665 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7666 _lt_result=$? 7667 # If there is a non-empty error log, and "single_module" 7668 # appears in it, assume the flag caused a linker warning 7669 if test -s conftest.err && $GREP single_module conftest.err; then 7670 cat conftest.err >&5 7671 # Otherwise, if the output was created with a 0 exit code from 7672 # the compiler, it worked. 7673 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7674 lt_cv_apple_cc_single_mod=yes 7675 else 7676 cat conftest.err >&5 7677 fi 7678 rm -rf libconftest.dylib* 7679 rm -f conftest.* 7680 fi 7681fi 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7683$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7684 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7686$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7687if ${lt_cv_ld_exported_symbols_list+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 lt_cv_ld_exported_symbols_list=no 7691 save_LDFLAGS=$LDFLAGS 7692 echo "_main" > conftest.sym 7693 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696 7697int 7698main () 7699{ 7700 7701 ; 7702 return 0; 7703} 7704_ACEOF 7705if ac_fn_c_try_link "$LINENO"; then : 7706 lt_cv_ld_exported_symbols_list=yes 7707else 7708 lt_cv_ld_exported_symbols_list=no 7709fi 7710rm -f core conftest.err conftest.$ac_objext \ 7711 conftest$ac_exeext conftest.$ac_ext 7712 LDFLAGS=$save_LDFLAGS 7713 7714fi 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7716$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7719$as_echo_n "checking for -force_load linker flag... " >&6; } 7720if ${lt_cv_ld_force_load+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 lt_cv_ld_force_load=no 7724 cat > conftest.c << _LT_EOF 7725int forced_loaded() { return 2;} 7726_LT_EOF 7727 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7728 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7729 echo "$AR cr libconftest.a conftest.o" >&5 7730 $AR cr libconftest.a conftest.o 2>&5 7731 echo "$RANLIB libconftest.a" >&5 7732 $RANLIB libconftest.a 2>&5 7733 cat > conftest.c << _LT_EOF 7734int main() { return 0;} 7735_LT_EOF 7736 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7737 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7738 _lt_result=$? 7739 if test -s conftest.err && $GREP force_load conftest.err; then 7740 cat conftest.err >&5 7741 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7742 lt_cv_ld_force_load=yes 7743 else 7744 cat conftest.err >&5 7745 fi 7746 rm -f conftest.err libconftest.a conftest conftest.c 7747 rm -rf conftest.dSYM 7748 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7751$as_echo "$lt_cv_ld_force_load" >&6; } 7752 case $host_os in 7753 rhapsody* | darwin1.[012]) 7754 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7755 darwin1.*) 7756 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7757 darwin*) # darwin 5.x on 7758 # if running on 10.5 or later, the deployment target defaults 7759 # to the OS version, if on x86, and 10.4, the deployment 7760 # target defaults to 10.4. Don't you love it? 7761 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7762 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7763 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7764 10.[012][,.]*) 7765 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7766 10.*) 7767 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7768 esac 7769 ;; 7770 esac 7771 if test yes = "$lt_cv_apple_cc_single_mod"; then 7772 _lt_dar_single_mod='$single_module' 7773 fi 7774 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7775 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7776 else 7777 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7778 fi 7779 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7780 _lt_dsymutil='~$DSYMUTIL $lib || :' 7781 else 7782 _lt_dsymutil= 7783 fi 7784 ;; 7785 esac 7786 7787# func_munge_path_list VARIABLE PATH 7788# ----------------------------------- 7789# VARIABLE is name of variable containing _space_ separated list of 7790# directories to be munged by the contents of PATH, which is string 7791# having a format: 7792# "DIR[:DIR]:" 7793# string "DIR[ DIR]" will be prepended to VARIABLE 7794# ":DIR[:DIR]" 7795# string "DIR[ DIR]" will be appended to VARIABLE 7796# "DIRP[:DIRP]::[DIRA:]DIRA" 7797# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7798# "DIRA[ DIRA]" will be appended to VARIABLE 7799# "DIR[:DIR]" 7800# VARIABLE will be replaced by "DIR[ DIR]" 7801func_munge_path_list () 7802{ 7803 case x@S|@2 in 7804 x) 7805 ;; 7806 *:) 7807 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 7808 ;; 7809 x:*) 7810 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 7811 ;; 7812 *::*) 7813 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7814 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 7815 ;; 7816 *) 7817 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 7818 ;; 7819 esac 7820} 7821 7822ac_ext=c 7823ac_cpp='$CPP $CPPFLAGS' 7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7826ac_compiler_gnu=$ac_cv_c_compiler_gnu 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7828$as_echo_n "checking how to run the C preprocessor... " >&6; } 7829# On Suns, sometimes $CPP names a directory. 7830if test -n "$CPP" && test -d "$CPP"; then 7831 CPP= 7832fi 7833if test -z "$CPP"; then 7834 if ${ac_cv_prog_CPP+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 # Double quotes because CPP needs to be expanded 7838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7839 do 7840 ac_preproc_ok=false 7841for ac_c_preproc_warn_flag in '' yes 7842do 7843 # Use a header file that comes with gcc, so configuring glibc 7844 # with a fresh cross-compiler works. 7845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7846 # <limits.h> exists even on freestanding compilers. 7847 # On the NeXT, cc -E runs the code through the compiler's parser, 7848 # not just through cpp. "Syntax error" is here to catch this case. 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851@%:@ifdef __STDC__ 7852@%:@ include <limits.h> 7853@%:@else 7854@%:@ include <assert.h> 7855@%:@endif 7856 Syntax error 7857_ACEOF 7858if ac_fn_c_try_cpp "$LINENO"; then : 7859 7860else 7861 # Broken: fails on valid input. 7862continue 7863fi 7864rm -f conftest.err conftest.i conftest.$ac_ext 7865 7866 # OK, works on sane cases. Now check whether nonexistent headers 7867 # can be detected and how. 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870@%:@include <ac_nonexistent.h> 7871_ACEOF 7872if ac_fn_c_try_cpp "$LINENO"; then : 7873 # Broken: success on invalid input. 7874continue 7875else 7876 # Passes both tests. 7877ac_preproc_ok=: 7878break 7879fi 7880rm -f conftest.err conftest.i conftest.$ac_ext 7881 7882done 7883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7884rm -f conftest.i conftest.err conftest.$ac_ext 7885if $ac_preproc_ok; then : 7886 break 7887fi 7888 7889 done 7890 ac_cv_prog_CPP=$CPP 7891 7892fi 7893 CPP=$ac_cv_prog_CPP 7894else 7895 ac_cv_prog_CPP=$CPP 7896fi 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7898$as_echo "$CPP" >&6; } 7899ac_preproc_ok=false 7900for ac_c_preproc_warn_flag in '' yes 7901do 7902 # Use a header file that comes with gcc, so configuring glibc 7903 # with a fresh cross-compiler works. 7904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7905 # <limits.h> exists even on freestanding compilers. 7906 # On the NeXT, cc -E runs the code through the compiler's parser, 7907 # not just through cpp. "Syntax error" is here to catch this case. 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910@%:@ifdef __STDC__ 7911@%:@ include <limits.h> 7912@%:@else 7913@%:@ include <assert.h> 7914@%:@endif 7915 Syntax error 7916_ACEOF 7917if ac_fn_c_try_cpp "$LINENO"; then : 7918 7919else 7920 # Broken: fails on valid input. 7921continue 7922fi 7923rm -f conftest.err conftest.i conftest.$ac_ext 7924 7925 # OK, works on sane cases. Now check whether nonexistent headers 7926 # can be detected and how. 7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7928/* end confdefs.h. */ 7929@%:@include <ac_nonexistent.h> 7930_ACEOF 7931if ac_fn_c_try_cpp "$LINENO"; then : 7932 # Broken: success on invalid input. 7933continue 7934else 7935 # Passes both tests. 7936ac_preproc_ok=: 7937break 7938fi 7939rm -f conftest.err conftest.i conftest.$ac_ext 7940 7941done 7942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7943rm -f conftest.i conftest.err conftest.$ac_ext 7944if $ac_preproc_ok; then : 7945 7946else 7947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7949as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7950See \`config.log' for more details" "$LINENO" 5; } 7951fi 7952 7953ac_ext=c 7954ac_cpp='$CPP $CPPFLAGS' 7955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7957ac_compiler_gnu=$ac_cv_c_compiler_gnu 7958 7959 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7961$as_echo_n "checking for ANSI C header files... " >&6; } 7962if ${ac_cv_header_stdc+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966/* end confdefs.h. */ 7967#include <stdlib.h> 7968#include <stdarg.h> 7969#include <string.h> 7970#include <float.h> 7971 7972int 7973main () 7974{ 7975 7976 ; 7977 return 0; 7978} 7979_ACEOF 7980if ac_fn_c_try_compile "$LINENO"; then : 7981 ac_cv_header_stdc=yes 7982else 7983 ac_cv_header_stdc=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7986 7987if test $ac_cv_header_stdc = yes; then 7988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991#include <string.h> 7992 7993_ACEOF 7994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7995 $EGREP "memchr" >/dev/null 2>&1; then : 7996 7997else 7998 ac_cv_header_stdc=no 7999fi 8000rm -f conftest* 8001 8002fi 8003 8004if test $ac_cv_header_stdc = yes; then 8005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008#include <stdlib.h> 8009 8010_ACEOF 8011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8012 $EGREP "free" >/dev/null 2>&1; then : 8013 8014else 8015 ac_cv_header_stdc=no 8016fi 8017rm -f conftest* 8018 8019fi 8020 8021if test $ac_cv_header_stdc = yes; then 8022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8023 if test "$cross_compiling" = yes; then : 8024 : 8025else 8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027/* end confdefs.h. */ 8028#include <ctype.h> 8029#include <stdlib.h> 8030#if ((' ' & 0x0FF) == 0x020) 8031# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8032# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8033#else 8034# define ISLOWER(c) \ 8035 (('a' <= (c) && (c) <= 'i') \ 8036 || ('j' <= (c) && (c) <= 'r') \ 8037 || ('s' <= (c) && (c) <= 'z')) 8038# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8039#endif 8040 8041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8042int 8043main () 8044{ 8045 int i; 8046 for (i = 0; i < 256; i++) 8047 if (XOR (islower (i), ISLOWER (i)) 8048 || toupper (i) != TOUPPER (i)) 8049 return 2; 8050 return 0; 8051} 8052_ACEOF 8053if ac_fn_c_try_run "$LINENO"; then : 8054 8055else 8056 ac_cv_header_stdc=no 8057fi 8058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8059 conftest.$ac_objext conftest.beam conftest.$ac_ext 8060fi 8061 8062fi 8063fi 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8065$as_echo "$ac_cv_header_stdc" >&6; } 8066if test $ac_cv_header_stdc = yes; then 8067 8068$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 8069 8070fi 8071 8072# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8074 inttypes.h stdint.h unistd.h 8075do : 8076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8077ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8078" 8079if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8080 cat >>confdefs.h <<_ACEOF 8081@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8082_ACEOF 8083 8084fi 8085 8086done 8087 8088 8089for ac_header in dlfcn.h 8090do : 8091 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8092" 8093if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8094 cat >>confdefs.h <<_ACEOF 8095@%:@define HAVE_DLFCN_H 1 8096_ACEOF 8097 8098fi 8099 8100done 8101 8102 8103 8104 8105func_stripname_cnf () 8106{ 8107 case @S|@2 in 8108 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 8109 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 8110 esac 8111} # func_stripname_cnf 8112 8113 8114 8115 8116 8117# Set options 8118 8119 8120 8121 enable_dlopen=no 8122 8123 8124 enable_win32_dll=no 8125 8126 8127 @%:@ Check whether --enable-shared was given. 8128if test "${enable_shared+set}" = set; then : 8129 enableval=$enable_shared; p=${PACKAGE-default} 8130 case $enableval in 8131 yes) enable_shared=yes ;; 8132 no) enable_shared=no ;; 8133 *) 8134 enable_shared=no 8135 # Look at the argument we got. We use all the common list separators. 8136 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8137 for pkg in $enableval; do 8138 IFS=$lt_save_ifs 8139 if test "X$pkg" = "X$p"; then 8140 enable_shared=yes 8141 fi 8142 done 8143 IFS=$lt_save_ifs 8144 ;; 8145 esac 8146else 8147 enable_shared=yes 8148fi 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 @%:@ Check whether --enable-static was given. 8159if test "${enable_static+set}" = set; then : 8160 enableval=$enable_static; p=${PACKAGE-default} 8161 case $enableval in 8162 yes) enable_static=yes ;; 8163 no) enable_static=no ;; 8164 *) 8165 enable_static=no 8166 # Look at the argument we got. We use all the common list separators. 8167 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8168 for pkg in $enableval; do 8169 IFS=$lt_save_ifs 8170 if test "X$pkg" = "X$p"; then 8171 enable_static=yes 8172 fi 8173 done 8174 IFS=$lt_save_ifs 8175 ;; 8176 esac 8177else 8178 enable_static=yes 8179fi 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190@%:@ Check whether --with-pic was given. 8191if test "${with_pic+set}" = set; then : 8192 withval=$with_pic; lt_p=${PACKAGE-default} 8193 case $withval in 8194 yes|no) pic_mode=$withval ;; 8195 *) 8196 pic_mode=default 8197 # Look at the argument we got. We use all the common list separators. 8198 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8199 for lt_pkg in $withval; do 8200 IFS=$lt_save_ifs 8201 if test "X$lt_pkg" = "X$lt_p"; then 8202 pic_mode=yes 8203 fi 8204 done 8205 IFS=$lt_save_ifs 8206 ;; 8207 esac 8208else 8209 pic_mode=default 8210fi 8211 8212 8213 8214 8215 8216 8217 8218 8219 @%:@ Check whether --enable-fast-install was given. 8220if test "${enable_fast_install+set}" = set; then : 8221 enableval=$enable_fast_install; p=${PACKAGE-default} 8222 case $enableval in 8223 yes) enable_fast_install=yes ;; 8224 no) enable_fast_install=no ;; 8225 *) 8226 enable_fast_install=no 8227 # Look at the argument we got. We use all the common list separators. 8228 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8229 for pkg in $enableval; do 8230 IFS=$lt_save_ifs 8231 if test "X$pkg" = "X$p"; then 8232 enable_fast_install=yes 8233 fi 8234 done 8235 IFS=$lt_save_ifs 8236 ;; 8237 esac 8238else 8239 enable_fast_install=yes 8240fi 8241 8242 8243 8244 8245 8246 8247 8248 8249 shared_archive_member_spec= 8250case $host,$enable_shared in 8251power*-*-aix[5-9]*,yes) 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8253$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8254 8255@%:@ Check whether --with-aix-soname was given. 8256if test "${with_aix_soname+set}" = set; then : 8257 withval=$with_aix_soname; case $withval in 8258 aix|svr4|both) 8259 ;; 8260 *) 8261 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8262 ;; 8263 esac 8264 lt_cv_with_aix_soname=$with_aix_soname 8265else 8266 if ${lt_cv_with_aix_soname+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 lt_cv_with_aix_soname=aix 8270fi 8271 8272 with_aix_soname=$lt_cv_with_aix_soname 8273fi 8274 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8276$as_echo "$with_aix_soname" >&6; } 8277 if test aix != "$with_aix_soname"; then 8278 # For the AIX way of multilib, we name the shared archive member 8279 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8280 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8281 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8282 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8283 if test 64 = "${OBJECT_MODE-32}"; then 8284 shared_archive_member_spec=shr_64 8285 else 8286 shared_archive_member_spec=shr 8287 fi 8288 fi 8289 ;; 8290*) 8291 with_aix_soname=aix 8292 ;; 8293esac 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304# This can be used to rebuild libtool when needed 8305LIBTOOL_DEPS=$ltmain 8306 8307# Always use our own libtool. 8308LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339test -z "$LN_S" && LN_S="ln -s" 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354if test -n "${ZSH_VERSION+set}"; then 8355 setopt NO_GLOB_SUBST 8356fi 8357 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8359$as_echo_n "checking for objdir... " >&6; } 8360if ${lt_cv_objdir+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 rm -f .libs 2>/dev/null 8364mkdir .libs 2>/dev/null 8365if test -d .libs; then 8366 lt_cv_objdir=.libs 8367else 8368 # MS-DOS does not allow filenames that begin with a dot. 8369 lt_cv_objdir=_libs 8370fi 8371rmdir .libs 2>/dev/null 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8374$as_echo "$lt_cv_objdir" >&6; } 8375objdir=$lt_cv_objdir 8376 8377 8378 8379 8380 8381cat >>confdefs.h <<_ACEOF 8382@%:@define LT_OBJDIR "$lt_cv_objdir/" 8383_ACEOF 8384 8385 8386 8387 8388case $host_os in 8389aix3*) 8390 # AIX sometimes has problems with the GCC collect2 program. For some 8391 # reason, if we set the COLLECT_NAMES environment variable, the problems 8392 # vanish in a puff of smoke. 8393 if test set != "${COLLECT_NAMES+set}"; then 8394 COLLECT_NAMES= 8395 export COLLECT_NAMES 8396 fi 8397 ;; 8398esac 8399 8400# Global variables: 8401ofile=libtool 8402can_build_shared=yes 8403 8404# All known linkers require a '.a' archive for static linking (except MSVC, 8405# which needs '.lib'). 8406libext=a 8407 8408with_gnu_ld=$lt_cv_prog_gnu_ld 8409 8410old_CC=$CC 8411old_CFLAGS=$CFLAGS 8412 8413# Set sane defaults for various variables 8414test -z "$CC" && CC=cc 8415test -z "$LTCC" && LTCC=$CC 8416test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8417test -z "$LD" && LD=ld 8418test -z "$ac_objext" && ac_objext=o 8419 8420func_cc_basename $compiler 8421cc_basename=$func_cc_basename_result 8422 8423 8424# Only perform the check for file, if the check method requires it 8425test -z "$MAGIC_CMD" && MAGIC_CMD=file 8426case $deplibs_check_method in 8427file_magic*) 8428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8430$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8431if ${lt_cv_path_MAGIC_CMD+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 case $MAGIC_CMD in 8435[\\/*] | ?:[\\/]*) 8436 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8437 ;; 8438*) 8439 lt_save_MAGIC_CMD=$MAGIC_CMD 8440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8442 for ac_dir in $ac_dummy; do 8443 IFS=$lt_save_ifs 8444 test -z "$ac_dir" && ac_dir=. 8445 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8446 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8447 if test -n "$file_magic_test_file"; then 8448 case $deplibs_check_method in 8449 "file_magic "*) 8450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8451 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8453 $EGREP "$file_magic_regex" > /dev/null; then 8454 : 8455 else 8456 cat <<_LT_EOF 1>&2 8457 8458*** Warning: the command libtool uses to detect shared libraries, 8459*** $file_magic_cmd, produces output that libtool cannot recognize. 8460*** The result is that libtool may fail to recognize shared libraries 8461*** as such. This will affect the creation of libtool libraries that 8462*** depend on shared libraries, but programs linked with such libtool 8463*** libraries will work regardless of this problem. Nevertheless, you 8464*** may want to report the problem to your system manager and/or to 8465*** bug-libtool@gnu.org 8466 8467_LT_EOF 8468 fi ;; 8469 esac 8470 fi 8471 break 8472 fi 8473 done 8474 IFS=$lt_save_ifs 8475 MAGIC_CMD=$lt_save_MAGIC_CMD 8476 ;; 8477esac 8478fi 8479 8480MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8481if test -n "$MAGIC_CMD"; then 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8483$as_echo "$MAGIC_CMD" >&6; } 8484else 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8486$as_echo "no" >&6; } 8487fi 8488 8489 8490 8491 8492 8493if test -z "$lt_cv_path_MAGIC_CMD"; then 8494 if test -n "$ac_tool_prefix"; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8496$as_echo_n "checking for file... " >&6; } 8497if ${lt_cv_path_MAGIC_CMD+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 case $MAGIC_CMD in 8501[\\/*] | ?:[\\/]*) 8502 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8503 ;; 8504*) 8505 lt_save_MAGIC_CMD=$MAGIC_CMD 8506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8507 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8508 for ac_dir in $ac_dummy; do 8509 IFS=$lt_save_ifs 8510 test -z "$ac_dir" && ac_dir=. 8511 if test -f "$ac_dir/file"; then 8512 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8513 if test -n "$file_magic_test_file"; then 8514 case $deplibs_check_method in 8515 "file_magic "*) 8516 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8517 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8519 $EGREP "$file_magic_regex" > /dev/null; then 8520 : 8521 else 8522 cat <<_LT_EOF 1>&2 8523 8524*** Warning: the command libtool uses to detect shared libraries, 8525*** $file_magic_cmd, produces output that libtool cannot recognize. 8526*** The result is that libtool may fail to recognize shared libraries 8527*** as such. This will affect the creation of libtool libraries that 8528*** depend on shared libraries, but programs linked with such libtool 8529*** libraries will work regardless of this problem. Nevertheless, you 8530*** may want to report the problem to your system manager and/or to 8531*** bug-libtool@gnu.org 8532 8533_LT_EOF 8534 fi ;; 8535 esac 8536 fi 8537 break 8538 fi 8539 done 8540 IFS=$lt_save_ifs 8541 MAGIC_CMD=$lt_save_MAGIC_CMD 8542 ;; 8543esac 8544fi 8545 8546MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8547if test -n "$MAGIC_CMD"; then 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8549$as_echo "$MAGIC_CMD" >&6; } 8550else 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8552$as_echo "no" >&6; } 8553fi 8554 8555 8556 else 8557 MAGIC_CMD=: 8558 fi 8559fi 8560 8561 fi 8562 ;; 8563esac 8564 8565# Use C for the default configuration in the libtool script 8566 8567lt_save_CC=$CC 8568ac_ext=c 8569ac_cpp='$CPP $CPPFLAGS' 8570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8572ac_compiler_gnu=$ac_cv_c_compiler_gnu 8573 8574 8575# Source file extension for C test sources. 8576ac_ext=c 8577 8578# Object file extension for compiled C test sources. 8579objext=o 8580objext=$objext 8581 8582# Code to be used in simple compile tests 8583lt_simple_compile_test_code="int some_variable = 0;" 8584 8585# Code to be used in simple link tests 8586lt_simple_link_test_code='int main(){return(0);}' 8587 8588 8589 8590 8591 8592 8593 8594# If no C compiler was specified, use CC. 8595LTCC=${LTCC-"$CC"} 8596 8597# If no C compiler flags were specified, use CFLAGS. 8598LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8599 8600# Allow CC to be a program name with arguments. 8601compiler=$CC 8602 8603# Save the default compiler, since it gets overwritten when the other 8604# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8605compiler_DEFAULT=$CC 8606 8607# save warnings/boilerplate of simple test code 8608ac_outfile=conftest.$ac_objext 8609echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8611_lt_compiler_boilerplate=`cat conftest.err` 8612$RM conftest* 8613 8614ac_outfile=conftest.$ac_objext 8615echo "$lt_simple_link_test_code" >conftest.$ac_ext 8616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8617_lt_linker_boilerplate=`cat conftest.err` 8618$RM -r conftest* 8619 8620 8621## CAVEAT EMPTOR: 8622## There is no encapsulation within the following macros, do not change 8623## the running order or otherwise move them around unless you know exactly 8624## what you are doing... 8625if test -n "$compiler"; then 8626 8627lt_prog_compiler_no_builtin_flag= 8628 8629if test yes = "$GCC"; then 8630 case $cc_basename in 8631 nvcc*) 8632 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8633 *) 8634 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8635 esac 8636 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8638$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8639if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 lt_cv_prog_compiler_rtti_exceptions=no 8643 ac_outfile=conftest.$ac_objext 8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8645 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8646 # Insert the option either (1) after the last *FLAGS variable, or 8647 # (2) before a word containing "conftest.", or (3) at the end. 8648 # Note that $ac_compile itself does not contain backslashes and begins 8649 # with a dollar sign (not a hyphen), so the echo should work correctly. 8650 # The option is referenced via a variable to avoid confusing sed. 8651 lt_compile=`echo "$ac_compile" | $SED \ 8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8654 -e 's:$: $lt_compiler_flag:'` 8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8656 (eval "$lt_compile" 2>conftest.err) 8657 ac_status=$? 8658 cat conftest.err >&5 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 if (exit $ac_status) && test -s "$ac_outfile"; then 8661 # The compiler can only warn and ignore the option if not recognized 8662 # So say no if there are warnings other than the usual output. 8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8666 lt_cv_prog_compiler_rtti_exceptions=yes 8667 fi 8668 fi 8669 $RM conftest* 8670 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8673$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8674 8675if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8676 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8677else 8678 : 8679fi 8680 8681fi 8682 8683 8684 8685 8686 8687 8688 lt_prog_compiler_wl= 8689lt_prog_compiler_pic= 8690lt_prog_compiler_static= 8691 8692 8693 if test yes = "$GCC"; then 8694 lt_prog_compiler_wl='-Wl,' 8695 lt_prog_compiler_static='-static' 8696 8697 case $host_os in 8698 aix*) 8699 # All AIX code is PIC. 8700 if test ia64 = "$host_cpu"; then 8701 # AIX 5 now supports IA64 processor 8702 lt_prog_compiler_static='-Bstatic' 8703 fi 8704 lt_prog_compiler_pic='-fPIC' 8705 ;; 8706 8707 amigaos*) 8708 case $host_cpu in 8709 powerpc) 8710 # see comment about AmigaOS4 .so support 8711 lt_prog_compiler_pic='-fPIC' 8712 ;; 8713 m68k) 8714 # FIXME: we need at least 68020 code to build shared libraries, but 8715 # adding the '-m68020' flag to GCC prevents building anything better, 8716 # like '-m68040'. 8717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8718 ;; 8719 esac 8720 ;; 8721 8722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8723 # PIC is the default for these OSes. 8724 ;; 8725 8726 mingw* | cygwin* | pw32* | os2* | cegcc*) 8727 # This hack is so that the source file can tell whether it is being 8728 # built for inclusion in a dll (and should export symbols for example). 8729 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8730 # (--disable-auto-import) libraries 8731 lt_prog_compiler_pic='-DDLL_EXPORT' 8732 case $host_os in 8733 os2*) 8734 lt_prog_compiler_static='$wl-static' 8735 ;; 8736 esac 8737 ;; 8738 8739 darwin* | rhapsody*) 8740 # PIC is the default on this platform 8741 # Common symbols not allowed in MH_DYLIB files 8742 lt_prog_compiler_pic='-fno-common' 8743 ;; 8744 8745 haiku*) 8746 # PIC is the default for Haiku. 8747 # The "-static" flag exists, but is broken. 8748 lt_prog_compiler_static= 8749 ;; 8750 8751 hpux*) 8752 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8753 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8754 # sets the default TLS model and affects inlining. 8755 case $host_cpu in 8756 hppa*64*) 8757 # +Z the default 8758 ;; 8759 *) 8760 lt_prog_compiler_pic='-fPIC' 8761 ;; 8762 esac 8763 ;; 8764 8765 interix[3-9]*) 8766 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8767 # Instead, we relocate shared libraries at runtime. 8768 ;; 8769 8770 msdosdjgpp*) 8771 # Just because we use GCC doesn't mean we suddenly get shared libraries 8772 # on systems that don't support them. 8773 lt_prog_compiler_can_build_shared=no 8774 enable_shared=no 8775 ;; 8776 8777 *nto* | *qnx*) 8778 # QNX uses GNU C++, but need to define -shared option too, otherwise 8779 # it will coredump. 8780 lt_prog_compiler_pic='-fPIC -shared' 8781 ;; 8782 8783 sysv4*MP*) 8784 if test -d /usr/nec; then 8785 lt_prog_compiler_pic=-Kconform_pic 8786 fi 8787 ;; 8788 8789 *) 8790 lt_prog_compiler_pic='-fPIC' 8791 ;; 8792 esac 8793 8794 case $cc_basename in 8795 nvcc*) # Cuda Compiler Driver 2.2 8796 lt_prog_compiler_wl='-Xlinker ' 8797 if test -n "$lt_prog_compiler_pic"; then 8798 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8799 fi 8800 ;; 8801 esac 8802 else 8803 # PORTME Check for flag to pass linker flags through the system compiler. 8804 case $host_os in 8805 aix*) 8806 lt_prog_compiler_wl='-Wl,' 8807 if test ia64 = "$host_cpu"; then 8808 # AIX 5 now supports IA64 processor 8809 lt_prog_compiler_static='-Bstatic' 8810 else 8811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8812 fi 8813 ;; 8814 8815 darwin* | rhapsody*) 8816 # PIC is the default on this platform 8817 # Common symbols not allowed in MH_DYLIB files 8818 lt_prog_compiler_pic='-fno-common' 8819 case $cc_basename in 8820 nagfor*) 8821 # NAG Fortran compiler 8822 lt_prog_compiler_wl='-Wl,-Wl,,' 8823 lt_prog_compiler_pic='-PIC' 8824 lt_prog_compiler_static='-Bstatic' 8825 ;; 8826 esac 8827 ;; 8828 8829 mingw* | cygwin* | pw32* | os2* | cegcc*) 8830 # This hack is so that the source file can tell whether it is being 8831 # built for inclusion in a dll (and should export symbols for example). 8832 lt_prog_compiler_pic='-DDLL_EXPORT' 8833 case $host_os in 8834 os2*) 8835 lt_prog_compiler_static='$wl-static' 8836 ;; 8837 esac 8838 ;; 8839 8840 hpux9* | hpux10* | hpux11*) 8841 lt_prog_compiler_wl='-Wl,' 8842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8843 # not for PA HP-UX. 8844 case $host_cpu in 8845 hppa*64*|ia64*) 8846 # +Z the default 8847 ;; 8848 *) 8849 lt_prog_compiler_pic='+Z' 8850 ;; 8851 esac 8852 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8853 lt_prog_compiler_static='$wl-a ${wl}archive' 8854 ;; 8855 8856 irix5* | irix6* | nonstopux*) 8857 lt_prog_compiler_wl='-Wl,' 8858 # PIC (with -KPIC) is the default. 8859 lt_prog_compiler_static='-non_shared' 8860 ;; 8861 8862 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8863 case $cc_basename in 8864 # old Intel for x86_64, which still supported -KPIC. 8865 ecc*) 8866 lt_prog_compiler_wl='-Wl,' 8867 lt_prog_compiler_pic='-KPIC' 8868 lt_prog_compiler_static='-static' 8869 ;; 8870 # flang / f18. f95 an alias for gfortran or flang on Debian 8871 flang* | f18* | f95*) 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_pic='-fPIC' 8874 lt_prog_compiler_static='-static' 8875 ;; 8876 # icc used to be incompatible with GCC. 8877 # ICC 10 doesn't accept -KPIC any more. 8878 icc* | ifort*) 8879 lt_prog_compiler_wl='-Wl,' 8880 lt_prog_compiler_pic='-fPIC' 8881 lt_prog_compiler_static='-static' 8882 ;; 8883 # Lahey Fortran 8.1. 8884 lf95*) 8885 lt_prog_compiler_wl='-Wl,' 8886 lt_prog_compiler_pic='--shared' 8887 lt_prog_compiler_static='--static' 8888 ;; 8889 nagfor*) 8890 # NAG Fortran compiler 8891 lt_prog_compiler_wl='-Wl,-Wl,,' 8892 lt_prog_compiler_pic='-PIC' 8893 lt_prog_compiler_static='-Bstatic' 8894 ;; 8895 tcc*) 8896 # Fabrice Bellard et al's Tiny C Compiler 8897 lt_prog_compiler_wl='-Wl,' 8898 lt_prog_compiler_pic='-fPIC' 8899 lt_prog_compiler_static='-static' 8900 ;; 8901 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8902 # Portland Group compilers (*not* the Pentium gcc compiler, 8903 # which looks to be a dead project) 8904 lt_prog_compiler_wl='-Wl,' 8905 lt_prog_compiler_pic='-fpic' 8906 lt_prog_compiler_static='-Bstatic' 8907 ;; 8908 ccc*) 8909 lt_prog_compiler_wl='-Wl,' 8910 # All Alpha code is PIC. 8911 lt_prog_compiler_static='-non_shared' 8912 ;; 8913 xl* | bgxl* | bgf* | mpixl*) 8914 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-qpic' 8917 lt_prog_compiler_static='-qstaticlink' 8918 ;; 8919 *) 8920 case `$CC -V 2>&1 | sed 5q` in 8921 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8922 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8923 lt_prog_compiler_pic='-KPIC' 8924 lt_prog_compiler_static='-Bstatic' 8925 lt_prog_compiler_wl='' 8926 ;; 8927 *Sun\ F* | *Sun*Fortran*) 8928 lt_prog_compiler_pic='-KPIC' 8929 lt_prog_compiler_static='-Bstatic' 8930 lt_prog_compiler_wl='-Qoption ld ' 8931 ;; 8932 *Sun\ C*) 8933 # Sun C 5.9 8934 lt_prog_compiler_pic='-KPIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 lt_prog_compiler_wl='-Wl,' 8937 ;; 8938 *Intel*\ [CF]*Compiler*) 8939 lt_prog_compiler_wl='-Wl,' 8940 lt_prog_compiler_pic='-fPIC' 8941 lt_prog_compiler_static='-static' 8942 ;; 8943 *Portland\ Group*) 8944 lt_prog_compiler_wl='-Wl,' 8945 lt_prog_compiler_pic='-fpic' 8946 lt_prog_compiler_static='-Bstatic' 8947 ;; 8948 esac 8949 ;; 8950 esac 8951 ;; 8952 8953 newsos6) 8954 lt_prog_compiler_pic='-KPIC' 8955 lt_prog_compiler_static='-Bstatic' 8956 ;; 8957 8958 *nto* | *qnx*) 8959 # QNX uses GNU C++, but need to define -shared option too, otherwise 8960 # it will coredump. 8961 lt_prog_compiler_pic='-fPIC -shared' 8962 ;; 8963 8964 osf3* | osf4* | osf5*) 8965 lt_prog_compiler_wl='-Wl,' 8966 # All OSF/1 code is PIC. 8967 lt_prog_compiler_static='-non_shared' 8968 ;; 8969 8970 rdos*) 8971 lt_prog_compiler_static='-non_shared' 8972 ;; 8973 8974 solaris*) 8975 lt_prog_compiler_pic='-KPIC' 8976 lt_prog_compiler_static='-Bstatic' 8977 case $cc_basename in 8978 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8979 lt_prog_compiler_wl='-Qoption ld ';; 8980 *) 8981 lt_prog_compiler_wl='-Wl,';; 8982 esac 8983 ;; 8984 8985 sunos4*) 8986 lt_prog_compiler_wl='-Qoption ld ' 8987 lt_prog_compiler_pic='-PIC' 8988 lt_prog_compiler_static='-Bstatic' 8989 ;; 8990 8991 sysv4 | sysv4.2uw2* | sysv4.3*) 8992 lt_prog_compiler_wl='-Wl,' 8993 lt_prog_compiler_pic='-KPIC' 8994 lt_prog_compiler_static='-Bstatic' 8995 ;; 8996 8997 sysv4*MP*) 8998 if test -d /usr/nec; then 8999 lt_prog_compiler_pic='-Kconform_pic' 9000 lt_prog_compiler_static='-Bstatic' 9001 fi 9002 ;; 9003 9004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9005 lt_prog_compiler_wl='-Wl,' 9006 lt_prog_compiler_pic='-KPIC' 9007 lt_prog_compiler_static='-Bstatic' 9008 ;; 9009 9010 unicos*) 9011 lt_prog_compiler_wl='-Wl,' 9012 lt_prog_compiler_can_build_shared=no 9013 ;; 9014 9015 uts4*) 9016 lt_prog_compiler_pic='-pic' 9017 lt_prog_compiler_static='-Bstatic' 9018 ;; 9019 9020 *) 9021 lt_prog_compiler_can_build_shared=no 9022 ;; 9023 esac 9024 fi 9025 9026case $host_os in 9027 # For platforms that do not support PIC, -DPIC is meaningless: 9028 *djgpp*) 9029 lt_prog_compiler_pic= 9030 ;; 9031 *) 9032 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9033 ;; 9034esac 9035 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9037$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9038if ${lt_cv_prog_compiler_pic+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9042fi 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9044$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9045lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9046 9047# 9048# Check to make sure the PIC flag actually works. 9049# 9050if test -n "$lt_prog_compiler_pic"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9052$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9053if ${lt_cv_prog_compiler_pic_works+:} false; then : 9054 $as_echo_n "(cached) " >&6 9055else 9056 lt_cv_prog_compiler_pic_works=no 9057 ac_outfile=conftest.$ac_objext 9058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9059 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9060 # Insert the option either (1) after the last *FLAGS variable, or 9061 # (2) before a word containing "conftest.", or (3) at the end. 9062 # Note that $ac_compile itself does not contain backslashes and begins 9063 # with a dollar sign (not a hyphen), so the echo should work correctly. 9064 # The option is referenced via a variable to avoid confusing sed. 9065 lt_compile=`echo "$ac_compile" | $SED \ 9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9068 -e 's:$: $lt_compiler_flag:'` 9069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9070 (eval "$lt_compile" 2>conftest.err) 9071 ac_status=$? 9072 cat conftest.err >&5 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 if (exit $ac_status) && test -s "$ac_outfile"; then 9075 # The compiler can only warn and ignore the option if not recognized 9076 # So say no if there are warnings other than the usual output. 9077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9080 lt_cv_prog_compiler_pic_works=yes 9081 fi 9082 fi 9083 $RM conftest* 9084 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9087$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9088 9089if test yes = "$lt_cv_prog_compiler_pic_works"; then 9090 case $lt_prog_compiler_pic in 9091 "" | " "*) ;; 9092 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9093 esac 9094else 9095 lt_prog_compiler_pic= 9096 lt_prog_compiler_can_build_shared=no 9097fi 9098 9099fi 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111# 9112# Check to make sure the static flag actually works. 9113# 9114wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9116$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9117if ${lt_cv_prog_compiler_static_works+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 lt_cv_prog_compiler_static_works=no 9121 save_LDFLAGS=$LDFLAGS 9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9125 # The linker can only warn and ignore the option if not recognized 9126 # So say no if there are warnings 9127 if test -s conftest.err; then 9128 # Append any errors to the config.log. 9129 cat conftest.err 1>&5 9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9132 if diff conftest.exp conftest.er2 >/dev/null; then 9133 lt_cv_prog_compiler_static_works=yes 9134 fi 9135 else 9136 lt_cv_prog_compiler_static_works=yes 9137 fi 9138 fi 9139 $RM -r conftest* 9140 LDFLAGS=$save_LDFLAGS 9141 9142fi 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9144$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9145 9146if test yes = "$lt_cv_prog_compiler_static_works"; then 9147 : 9148else 9149 lt_prog_compiler_static= 9150fi 9151 9152 9153 9154 9155 9156 9157 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9159$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9160if ${lt_cv_prog_compiler_c_o+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 lt_cv_prog_compiler_c_o=no 9164 $RM -r conftest 2>/dev/null 9165 mkdir conftest 9166 cd conftest 9167 mkdir out 9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9169 9170 lt_compiler_flag="-o out/conftest2.$ac_objext" 9171 # Insert the option either (1) after the last *FLAGS variable, or 9172 # (2) before a word containing "conftest.", or (3) at the end. 9173 # Note that $ac_compile itself does not contain backslashes and begins 9174 # with a dollar sign (not a hyphen), so the echo should work correctly. 9175 lt_compile=`echo "$ac_compile" | $SED \ 9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9178 -e 's:$: $lt_compiler_flag:'` 9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9180 (eval "$lt_compile" 2>out/conftest.err) 9181 ac_status=$? 9182 cat out/conftest.err >&5 9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9185 then 9186 # The compiler can only warn and ignore the option if not recognized 9187 # So say no if there are warnings 9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9191 lt_cv_prog_compiler_c_o=yes 9192 fi 9193 fi 9194 chmod u+w . 2>&5 9195 $RM conftest* 9196 # SGI C++ compiler will create directory out/ii_files/ for 9197 # template instantiation 9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9199 $RM out/* && rmdir out 9200 cd .. 9201 $RM -r conftest 9202 $RM conftest* 9203 9204fi 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9206$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9207 9208 9209 9210 9211 9212 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9214$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9215if ${lt_cv_prog_compiler_c_o+:} false; then : 9216 $as_echo_n "(cached) " >&6 9217else 9218 lt_cv_prog_compiler_c_o=no 9219 $RM -r conftest 2>/dev/null 9220 mkdir conftest 9221 cd conftest 9222 mkdir out 9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9224 9225 lt_compiler_flag="-o out/conftest2.$ac_objext" 9226 # Insert the option either (1) after the last *FLAGS variable, or 9227 # (2) before a word containing "conftest.", or (3) at the end. 9228 # Note that $ac_compile itself does not contain backslashes and begins 9229 # with a dollar sign (not a hyphen), so the echo should work correctly. 9230 lt_compile=`echo "$ac_compile" | $SED \ 9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9233 -e 's:$: $lt_compiler_flag:'` 9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9235 (eval "$lt_compile" 2>out/conftest.err) 9236 ac_status=$? 9237 cat out/conftest.err >&5 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9240 then 9241 # The compiler can only warn and ignore the option if not recognized 9242 # So say no if there are warnings 9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9246 lt_cv_prog_compiler_c_o=yes 9247 fi 9248 fi 9249 chmod u+w . 2>&5 9250 $RM conftest* 9251 # SGI C++ compiler will create directory out/ii_files/ for 9252 # template instantiation 9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9254 $RM out/* && rmdir out 9255 cd .. 9256 $RM -r conftest 9257 $RM conftest* 9258 9259fi 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9261$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9262 9263 9264 9265 9266hard_links=nottested 9267if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9268 # do not overwrite the value of need_locks provided by the user 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9270$as_echo_n "checking if we can lock with hard links... " >&6; } 9271 hard_links=yes 9272 $RM conftest* 9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9274 touch conftest.a 9275 ln conftest.a conftest.b 2>&5 || hard_links=no 9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9278$as_echo "$hard_links" >&6; } 9279 if test no = "$hard_links"; then 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9281$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9282 need_locks=warn 9283 fi 9284else 9285 need_locks=no 9286fi 9287 9288 9289 9290 9291 9292 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9294$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9295 9296 runpath_var= 9297 allow_undefined_flag= 9298 always_export_symbols=no 9299 archive_cmds= 9300 archive_expsym_cmds= 9301 compiler_needs_object=no 9302 enable_shared_with_static_runtimes=no 9303 export_dynamic_flag_spec= 9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9305 hardcode_automatic=no 9306 hardcode_direct=no 9307 hardcode_direct_absolute=no 9308 hardcode_libdir_flag_spec= 9309 hardcode_libdir_separator= 9310 hardcode_minus_L=no 9311 hardcode_shlibpath_var=unsupported 9312 inherit_rpath=no 9313 link_all_deplibs=unknown 9314 module_cmds= 9315 module_expsym_cmds= 9316 old_archive_from_new_cmds= 9317 old_archive_from_expsyms_cmds= 9318 thread_safe_flag_spec= 9319 whole_archive_flag_spec= 9320 # include_expsyms should be a list of space-separated symbols to be *always* 9321 # included in the symbol list 9322 include_expsyms= 9323 # exclude_expsyms can be an extended regexp of symbols to exclude 9324 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9325 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9326 # as well as any symbol that contains 'd'. 9327 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9329 # platforms (ab)use it in PIC code, but their linkers get confused if 9330 # the symbol is explicitly referenced. Since portable code cannot 9331 # rely on this symbol name, it's probably fine to never include it in 9332 # preloaded symbol tables. 9333 # Exclude shared library initialization/finalization symbols. 9334 extract_expsyms_cmds= 9335 9336 case $host_os in 9337 cygwin* | mingw* | pw32* | cegcc*) 9338 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9339 # When not using gcc, we currently assume that we are using 9340 # Microsoft Visual C++. 9341 if test yes != "$GCC"; then 9342 with_gnu_ld=no 9343 fi 9344 ;; 9345 interix*) 9346 # we just hope/assume this is gcc and not c89 (= MSVC++) 9347 with_gnu_ld=yes 9348 ;; 9349 openbsd* | bitrig*) 9350 with_gnu_ld=no 9351 ;; 9352 linux* | k*bsd*-gnu | gnu*) 9353 link_all_deplibs=no 9354 ;; 9355 esac 9356 9357 ld_shlibs=yes 9358 9359 # On some targets, GNU ld is compatible enough with the native linker 9360 # that we're better off using the native interface for both. 9361 lt_use_gnu_ld_interface=no 9362 if test yes = "$with_gnu_ld"; then 9363 case $host_os in 9364 aix*) 9365 # The AIX port of GNU ld has always aspired to compatibility 9366 # with the native linker. However, as the warning in the GNU ld 9367 # block says, versions before 2.19.5* couldn't really create working 9368 # shared libraries, regardless of the interface used. 9369 case `$LD -v 2>&1` in 9370 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9371 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9372 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9373 *) 9374 lt_use_gnu_ld_interface=yes 9375 ;; 9376 esac 9377 ;; 9378 *) 9379 lt_use_gnu_ld_interface=yes 9380 ;; 9381 esac 9382 fi 9383 9384 if test yes = "$lt_use_gnu_ld_interface"; then 9385 # If archive_cmds runs LD, not CC, wlarc should be empty 9386 wlarc='$wl' 9387 9388 # Set some defaults for GNU ld with shared library support. These 9389 # are reset later if shared libraries are not supported. Putting them 9390 # here allows them to be overridden if necessary. 9391 runpath_var=LD_RUN_PATH 9392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9393 export_dynamic_flag_spec='$wl--export-dynamic' 9394 # ancient GNU ld didn't support --whole-archive et. al. 9395 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9396 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9397 else 9398 whole_archive_flag_spec= 9399 fi 9400 supports_anon_versioning=no 9401 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9402 *GNU\ gold*) supports_anon_versioning=yes ;; 9403 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9406 *\ 2.11.*) ;; # other 2.11 versions 9407 *) supports_anon_versioning=yes ;; 9408 esac 9409 9410 # See if GNU ld supports shared libraries. 9411 case $host_os in 9412 aix[3-9]*) 9413 # On AIX/PPC, the GNU linker is very broken 9414 if test ia64 != "$host_cpu"; then 9415 ld_shlibs=no 9416 cat <<_LT_EOF 1>&2 9417 9418*** Warning: the GNU linker, at least up to release 2.19, is reported 9419*** to be unable to reliably create shared libraries on AIX. 9420*** Therefore, libtool is disabling shared libraries support. If you 9421*** really care for shared libraries, you may want to install binutils 9422*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9423*** You will then need to restart the configuration process. 9424 9425_LT_EOF 9426 fi 9427 ;; 9428 9429 amigaos*) 9430 case $host_cpu in 9431 powerpc) 9432 # see comment about AmigaOS4 .so support 9433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9434 archive_expsym_cmds='' 9435 ;; 9436 m68k) 9437 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)' 9438 hardcode_libdir_flag_spec='-L$libdir' 9439 hardcode_minus_L=yes 9440 ;; 9441 esac 9442 ;; 9443 9444 beos*) 9445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9446 allow_undefined_flag=unsupported 9447 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9448 # support --undefined. This deserves some investigation. FIXME 9449 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9450 else 9451 ld_shlibs=no 9452 fi 9453 ;; 9454 9455 cygwin* | mingw* | pw32* | cegcc*) 9456 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9457 # as there is no search path for DLLs. 9458 hardcode_libdir_flag_spec='-L$libdir' 9459 export_dynamic_flag_spec='$wl--export-all-symbols' 9460 allow_undefined_flag=unsupported 9461 always_export_symbols=no 9462 enable_shared_with_static_runtimes=yes 9463 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' 9464 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9465 9466 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9468 # If the export-symbols file already is a .def file, use it as 9469 # is; otherwise, prepend EXPORTS... 9470 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9471 cp $export_symbols $output_objdir/$soname.def; 9472 else 9473 echo EXPORTS > $output_objdir/$soname.def; 9474 cat $export_symbols >> $output_objdir/$soname.def; 9475 fi~ 9476 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9477 else 9478 ld_shlibs=no 9479 fi 9480 ;; 9481 9482 haiku*) 9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9484 link_all_deplibs=yes 9485 ;; 9486 9487 os2*) 9488 hardcode_libdir_flag_spec='-L$libdir' 9489 hardcode_minus_L=yes 9490 allow_undefined_flag=unsupported 9491 shrext_cmds=.dll 9492 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9493 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9494 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9495 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9496 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9497 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9498 emximp -o $lib $output_objdir/$libname.def' 9499 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9500 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9501 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9502 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9503 prefix_cmds="$SED"~ 9504 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9505 prefix_cmds="$prefix_cmds -e 1d"; 9506 fi~ 9507 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9508 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9509 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9510 emximp -o $lib $output_objdir/$libname.def' 9511 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9512 enable_shared_with_static_runtimes=yes 9513 ;; 9514 9515 interix[3-9]*) 9516 hardcode_direct=no 9517 hardcode_shlibpath_var=no 9518 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9519 export_dynamic_flag_spec='$wl-E' 9520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9521 # Instead, shared libraries are loaded at an image base (0x10000000 by 9522 # default) and relocated if they conflict, which is a slow very memory 9523 # consuming and fragmenting process. To avoid this, we pick a random, 9524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9525 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9527 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' 9528 ;; 9529 9530 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9531 tmp_diet=no 9532 if test linux-dietlibc = "$host_os"; then 9533 case $cc_basename in 9534 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9535 esac 9536 fi 9537 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9538 && test no = "$tmp_diet" 9539 then 9540 tmp_addflag=' $pic_flag' 9541 tmp_sharedflag='-shared' 9542 case $cc_basename,$host_cpu in 9543 pgcc*) # Portland Group C compiler 9544 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' 9545 tmp_addflag=' $pic_flag' 9546 ;; 9547 pgf77* | pgf90* | pgf95* | pgfortran*) 9548 # Portland Group f77 and f90 compilers 9549 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' 9550 tmp_addflag=' $pic_flag -Mnomain' ;; 9551 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9552 tmp_addflag=' -i_dynamic' ;; 9553 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9554 tmp_addflag=' -i_dynamic -nofor_main' ;; 9555 ifc* | ifort*) # Intel Fortran compiler 9556 tmp_addflag=' -nofor_main' ;; 9557 lf95*) # Lahey Fortran 8.1 9558 whole_archive_flag_spec= 9559 tmp_sharedflag='--shared' ;; 9560 nagfor*) # NAGFOR 5.3 9561 tmp_sharedflag='-Wl,-shared' ;; 9562 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9563 tmp_sharedflag='-qmkshrobj' 9564 tmp_addflag= ;; 9565 nvcc*) # Cuda Compiler Driver 2.2 9566 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' 9567 compiler_needs_object=yes 9568 ;; 9569 esac 9570 case `$CC -V 2>&1 | sed 5q` in 9571 *Sun\ C*) # Sun C 5.9 9572 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' 9573 compiler_needs_object=yes 9574 tmp_sharedflag='-G' ;; 9575 *Sun\ F*) # Sun Fortran 8.3 9576 tmp_sharedflag='-G' ;; 9577 esac 9578 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9579 9580 if test yes = "$supports_anon_versioning"; then 9581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9583 echo "local: *; };" >> $output_objdir/$libname.ver~ 9584 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9585 fi 9586 9587 case $cc_basename in 9588 tcc*) 9589 export_dynamic_flag_spec='-rdynamic' 9590 ;; 9591 xlf* | bgf* | bgxlf* | mpixlf*) 9592 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9593 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9595 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9596 if test yes = "$supports_anon_versioning"; then 9597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9599 echo "local: *; };" >> $output_objdir/$libname.ver~ 9600 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9601 fi 9602 ;; 9603 esac 9604 else 9605 ld_shlibs=no 9606 fi 9607 ;; 9608 9609 netbsd* | netbsdelf*-gnu) 9610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9612 wlarc= 9613 else 9614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9616 fi 9617 ;; 9618 9619 solaris*) 9620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9621 ld_shlibs=no 9622 cat <<_LT_EOF 1>&2 9623 9624*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9625*** create shared libraries on Solaris systems. Therefore, libtool 9626*** is disabling shared libraries support. We urge you to upgrade GNU 9627*** binutils to release 2.9.1 or newer. Another option is to modify 9628*** your PATH or compiler configuration so that the native linker is 9629*** used, and then restart. 9630 9631_LT_EOF 9632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9634 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9635 else 9636 ld_shlibs=no 9637 fi 9638 ;; 9639 9640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9641 case `$LD -v 2>&1` in 9642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9643 ld_shlibs=no 9644 cat <<_LT_EOF 1>&2 9645 9646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9647*** reliably create shared libraries on SCO systems. Therefore, libtool 9648*** is disabling shared libraries support. We urge you to upgrade GNU 9649*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9650*** your PATH or compiler configuration so that the native linker is 9651*** used, and then restart. 9652 9653_LT_EOF 9654 ;; 9655 *) 9656 # For security reasons, it is highly recommended that you always 9657 # use absolute paths for naming shared libraries, and exclude the 9658 # DT_RUNPATH tag from executables and libraries. But doing so 9659 # requires that you compile everything twice, which is a pain. 9660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9664 else 9665 ld_shlibs=no 9666 fi 9667 ;; 9668 esac 9669 ;; 9670 9671 sunos4*) 9672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9673 wlarc= 9674 hardcode_direct=yes 9675 hardcode_shlibpath_var=no 9676 ;; 9677 9678 *) 9679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9682 else 9683 ld_shlibs=no 9684 fi 9685 ;; 9686 esac 9687 9688 if test no = "$ld_shlibs"; then 9689 runpath_var= 9690 hardcode_libdir_flag_spec= 9691 export_dynamic_flag_spec= 9692 whole_archive_flag_spec= 9693 fi 9694 else 9695 # PORTME fill in a description of your system's linker (not GNU ld) 9696 case $host_os in 9697 aix3*) 9698 allow_undefined_flag=unsupported 9699 always_export_symbols=yes 9700 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' 9701 # Note: this linker hardcodes the directories in LIBPATH if there 9702 # are no directories specified by -L. 9703 hardcode_minus_L=yes 9704 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9705 # Neither direct hardcoding nor static linking is supported with a 9706 # broken collect2. 9707 hardcode_direct=unsupported 9708 fi 9709 ;; 9710 9711 aix[4-9]*) 9712 if test ia64 = "$host_cpu"; then 9713 # On IA64, the linker does run time linking by default, so we don't 9714 # have to do anything special. 9715 aix_use_runtimelinking=no 9716 exp_sym_flag='-Bexport' 9717 no_entry_flag= 9718 else 9719 # If we're using GNU nm, then we don't want the "-C" option. 9720 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9721 # Without the "-l" option, or with the "-B" option, AIX nm treats 9722 # weak defined symbols like other global defined symbols, whereas 9723 # GNU nm marks them as "W". 9724 # While the 'weak' keyword is ignored in the Export File, we need 9725 # it in the Import File for the 'aix-soname' feature, so we have 9726 # to replace the "-B" option with "-P" for AIX nm. 9727 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9728 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' 9729 else 9730 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' 9731 fi 9732 aix_use_runtimelinking=no 9733 9734 # Test if we are trying to use run time linking or normal 9735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9736 # have runtime linking enabled, and use it for executables. 9737 # For shared libraries, we enable/disable runtime linking 9738 # depending on the kind of the shared library created - 9739 # when "with_aix_soname,aix_use_runtimelinking" is: 9740 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9741 # "aix,yes" lib.so shared, rtl:yes, for executables 9742 # lib.a static archive 9743 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9744 # lib.a(lib.so.V) shared, rtl:no, for executables 9745 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9746 # lib.a(lib.so.V) shared, rtl:no 9747 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9748 # lib.a static archive 9749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9750 for ld_flag in $LDFLAGS; do 9751 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9752 aix_use_runtimelinking=yes 9753 break 9754 fi 9755 done 9756 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9757 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9758 # so we don't have lib.a shared libs to link our executables. 9759 # We have to force runtime linking in this case. 9760 aix_use_runtimelinking=yes 9761 LDFLAGS="$LDFLAGS -Wl,-brtl" 9762 fi 9763 ;; 9764 esac 9765 9766 exp_sym_flag='-bexport' 9767 no_entry_flag='-bnoentry' 9768 fi 9769 9770 # When large executables or shared objects are built, AIX ld can 9771 # have problems creating the table of contents. If linking a library 9772 # or program results in "error TOC overflow" add -mminimal-toc to 9773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9775 9776 archive_cmds='' 9777 hardcode_direct=yes 9778 hardcode_direct_absolute=yes 9779 hardcode_libdir_separator=':' 9780 link_all_deplibs=yes 9781 file_list_spec='$wl-f,' 9782 case $with_aix_soname,$aix_use_runtimelinking in 9783 aix,*) ;; # traditional, no import file 9784 svr4,* | *,yes) # use import file 9785 # The Import File defines what to hardcode. 9786 hardcode_direct=no 9787 hardcode_direct_absolute=no 9788 ;; 9789 esac 9790 9791 if test yes = "$GCC"; then 9792 case $host_os in aix4.[012]|aix4.[012].*) 9793 # We only want to do this on AIX 4.2 and lower, the check 9794 # below for broken collect2 doesn't work under 4.3+ 9795 collect2name=`$CC -print-prog-name=collect2` 9796 if test -f "$collect2name" && 9797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9798 then 9799 # We have reworked collect2 9800 : 9801 else 9802 # We have old collect2 9803 hardcode_direct=unsupported 9804 # It fails to find uninstalled libraries when the uninstalled 9805 # path is not listed in the libpath. Setting hardcode_minus_L 9806 # to unsupported forces relinking 9807 hardcode_minus_L=yes 9808 hardcode_libdir_flag_spec='-L$libdir' 9809 hardcode_libdir_separator= 9810 fi 9811 ;; 9812 esac 9813 shared_flag='-shared' 9814 if test yes = "$aix_use_runtimelinking"; then 9815 shared_flag="$shared_flag "'$wl-G' 9816 fi 9817 # Need to ensure runtime linking is disabled for the traditional 9818 # shared library, or the linker may eventually find shared libraries 9819 # /with/ Import File - we do not want to mix them. 9820 shared_flag_aix='-shared' 9821 shared_flag_svr4='-shared $wl-G' 9822 else 9823 # not using gcc 9824 if test ia64 = "$host_cpu"; then 9825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9826 # chokes on -Wl,-G. The following line is correct: 9827 shared_flag='-G' 9828 else 9829 if test yes = "$aix_use_runtimelinking"; then 9830 shared_flag='$wl-G' 9831 else 9832 shared_flag='$wl-bM:SRE' 9833 fi 9834 shared_flag_aix='$wl-bM:SRE' 9835 shared_flag_svr4='$wl-G' 9836 fi 9837 fi 9838 9839 export_dynamic_flag_spec='$wl-bexpall' 9840 # It seems that -bexpall does not export symbols beginning with 9841 # underscore (_), so it is better to generate a list of symbols to export. 9842 always_export_symbols=yes 9843 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9844 # Warning - without using the other runtime loading flags (-brtl), 9845 # -berok will link without error, but may produce a broken library. 9846 allow_undefined_flag='-berok' 9847 # Determine the default libpath from the value encoded in an 9848 # empty executable. 9849 if test set = "${lt_cv_aix_libpath+set}"; then 9850 aix_libpath=$lt_cv_aix_libpath 9851else 9852 if ${lt_cv_aix_libpath_+:} false; then : 9853 $as_echo_n "(cached) " >&6 9854else 9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856/* end confdefs.h. */ 9857 9858int 9859main () 9860{ 9861 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866if ac_fn_c_try_link "$LINENO"; then : 9867 9868 lt_aix_libpath_sed=' 9869 /Import File Strings/,/^$/ { 9870 /^0/ { 9871 s/^0 *\([^ ]*\) *$/\1/ 9872 p 9873 } 9874 }' 9875 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9876 # Check for a 64-bit object if we didn't find anything. 9877 if test -z "$lt_cv_aix_libpath_"; then 9878 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9879 fi 9880fi 9881rm -f core conftest.err conftest.$ac_objext \ 9882 conftest$ac_exeext conftest.$ac_ext 9883 if test -z "$lt_cv_aix_libpath_"; then 9884 lt_cv_aix_libpath_=/usr/lib:/lib 9885 fi 9886 9887fi 9888 9889 aix_libpath=$lt_cv_aix_libpath_ 9890fi 9891 9892 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9893 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 9894 else 9895 if test ia64 = "$host_cpu"; then 9896 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9897 allow_undefined_flag="-z nodefs" 9898 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" 9899 else 9900 # Determine the default libpath from the value encoded in an 9901 # empty executable. 9902 if test set = "${lt_cv_aix_libpath+set}"; then 9903 aix_libpath=$lt_cv_aix_libpath 9904else 9905 if ${lt_cv_aix_libpath_+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910 9911int 9912main () 9913{ 9914 9915 ; 9916 return 0; 9917} 9918_ACEOF 9919if ac_fn_c_try_link "$LINENO"; then : 9920 9921 lt_aix_libpath_sed=' 9922 /Import File Strings/,/^$/ { 9923 /^0/ { 9924 s/^0 *\([^ ]*\) *$/\1/ 9925 p 9926 } 9927 }' 9928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9929 # Check for a 64-bit object if we didn't find anything. 9930 if test -z "$lt_cv_aix_libpath_"; then 9931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9932 fi 9933fi 9934rm -f core conftest.err conftest.$ac_objext \ 9935 conftest$ac_exeext conftest.$ac_ext 9936 if test -z "$lt_cv_aix_libpath_"; then 9937 lt_cv_aix_libpath_=/usr/lib:/lib 9938 fi 9939 9940fi 9941 9942 aix_libpath=$lt_cv_aix_libpath_ 9943fi 9944 9945 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9946 # Warning - without using the other run time loading flags, 9947 # -berok will link without error, but may produce a broken library. 9948 no_undefined_flag=' $wl-bernotok' 9949 allow_undefined_flag=' $wl-berok' 9950 if test yes = "$with_gnu_ld"; then 9951 # We only use this code for GNU lds that support --whole-archive. 9952 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9953 else 9954 # Exported symbols can be pulled into shared objects from archives 9955 whole_archive_flag_spec='$convenience' 9956 fi 9957 archive_cmds_need_lc=yes 9958 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9959 # -brtl affects multiple linker settings, -berok does not and is overridden later 9960 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9961 if test svr4 != "$with_aix_soname"; then 9962 # This is similar to how AIX traditionally builds its shared libraries. 9963 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' 9964 fi 9965 if test aix != "$with_aix_soname"; then 9966 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' 9967 else 9968 # used by -dlpreopen to get the symbols 9969 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9970 fi 9971 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9972 fi 9973 fi 9974 ;; 9975 9976 amigaos*) 9977 case $host_cpu in 9978 powerpc) 9979 # see comment about AmigaOS4 .so support 9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9981 archive_expsym_cmds='' 9982 ;; 9983 m68k) 9984 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)' 9985 hardcode_libdir_flag_spec='-L$libdir' 9986 hardcode_minus_L=yes 9987 ;; 9988 esac 9989 ;; 9990 9991 bsdi[45]*) 9992 export_dynamic_flag_spec=-rdynamic 9993 ;; 9994 9995 cygwin* | mingw* | pw32* | cegcc*) 9996 # When not using gcc, we currently assume that we are using 9997 # Microsoft Visual C++. 9998 # hardcode_libdir_flag_spec is actually meaningless, as there is 9999 # no search path for DLLs. 10000 case $cc_basename in 10001 cl*) 10002 # Native MSVC 10003 hardcode_libdir_flag_spec=' ' 10004 allow_undefined_flag=unsupported 10005 always_export_symbols=yes 10006 file_list_spec='@' 10007 # Tell ltmain to make .lib files, not .a files. 10008 libext=lib 10009 # Tell ltmain to make .dll files, not .so files. 10010 shrext_cmds=.dll 10011 # FIXME: Setting linknames here is a bad hack. 10012 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10013 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10014 cp "$export_symbols" "$output_objdir/$soname.def"; 10015 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10016 else 10017 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10018 fi~ 10019 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10020 linknames=' 10021 # The linker will not automatically build a static lib if we build a DLL. 10022 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10023 enable_shared_with_static_runtimes=yes 10024 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10026 # Don't use ranlib 10027 old_postinstall_cmds='chmod 644 $oldlib' 10028 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10029 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10030 case $lt_outputfile in 10031 *.exe|*.EXE) ;; 10032 *) 10033 lt_outputfile=$lt_outputfile.exe 10034 lt_tool_outputfile=$lt_tool_outputfile.exe 10035 ;; 10036 esac~ 10037 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10038 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10039 $RM "$lt_outputfile.manifest"; 10040 fi' 10041 ;; 10042 *) 10043 # Assume MSVC wrapper 10044 hardcode_libdir_flag_spec=' ' 10045 allow_undefined_flag=unsupported 10046 # Tell ltmain to make .lib files, not .a files. 10047 libext=lib 10048 # Tell ltmain to make .dll files, not .so files. 10049 shrext_cmds=.dll 10050 # FIXME: Setting linknames here is a bad hack. 10051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10052 # The linker will automatically build a .lib file if we build a DLL. 10053 old_archive_from_new_cmds='true' 10054 # FIXME: Should let the user specify the lib program. 10055 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10056 enable_shared_with_static_runtimes=yes 10057 ;; 10058 esac 10059 ;; 10060 10061 darwin* | rhapsody*) 10062 10063 10064 archive_cmds_need_lc=no 10065 hardcode_direct=no 10066 hardcode_automatic=yes 10067 hardcode_shlibpath_var=unsupported 10068 if test yes = "$lt_cv_ld_force_load"; then 10069 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\"`' 10070 10071 else 10072 whole_archive_flag_spec='' 10073 fi 10074 link_all_deplibs=yes 10075 allow_undefined_flag=$_lt_dar_allow_undefined 10076 case $cc_basename in 10077 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10078 *) _lt_dar_can_shared=$GCC ;; 10079 esac 10080 if test yes = "$_lt_dar_can_shared"; then 10081 output_verbose_link_cmd=func_echo_all 10082 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10083 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10084 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" 10085 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" 10086 10087 else 10088 ld_shlibs=no 10089 fi 10090 10091 ;; 10092 10093 dgux*) 10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10095 hardcode_libdir_flag_spec='-L$libdir' 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10100 # support. Future versions do this automatically, but an explicit c++rt0.o 10101 # does not break anything, and helps significantly (at the cost of a little 10102 # extra space). 10103 freebsd2.2*) 10104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10105 hardcode_libdir_flag_spec='-R$libdir' 10106 hardcode_direct=yes 10107 hardcode_shlibpath_var=no 10108 ;; 10109 10110 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10111 freebsd2.*) 10112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10113 hardcode_direct=yes 10114 hardcode_minus_L=yes 10115 hardcode_shlibpath_var=no 10116 ;; 10117 10118 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10119 freebsd* | dragonfly*) 10120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10121 hardcode_libdir_flag_spec='-R$libdir' 10122 hardcode_direct=yes 10123 hardcode_shlibpath_var=no 10124 ;; 10125 10126 hpux9*) 10127 if test yes = "$GCC"; then 10128 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' 10129 else 10130 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' 10131 fi 10132 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10133 hardcode_libdir_separator=: 10134 hardcode_direct=yes 10135 10136 # hardcode_minus_L: Not really in the search PATH, 10137 # but as the default location of the library. 10138 hardcode_minus_L=yes 10139 export_dynamic_flag_spec='$wl-E' 10140 ;; 10141 10142 hpux10*) 10143 if test yes,no = "$GCC,$with_gnu_ld"; then 10144 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10145 else 10146 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10147 fi 10148 if test no = "$with_gnu_ld"; then 10149 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10150 hardcode_libdir_separator=: 10151 hardcode_direct=yes 10152 hardcode_direct_absolute=yes 10153 export_dynamic_flag_spec='$wl-E' 10154 # hardcode_minus_L: Not really in the search PATH, 10155 # but as the default location of the library. 10156 hardcode_minus_L=yes 10157 fi 10158 ;; 10159 10160 hpux11*) 10161 if test yes,no = "$GCC,$with_gnu_ld"; then 10162 case $host_cpu in 10163 hppa*64*) 10164 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10165 ;; 10166 ia64*) 10167 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10168 ;; 10169 *) 10170 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10171 ;; 10172 esac 10173 else 10174 case $host_cpu in 10175 hppa*64*) 10176 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10177 ;; 10178 ia64*) 10179 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10180 ;; 10181 *) 10182 10183 # Older versions of the 11.00 compiler do not understand -b yet 10184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10186$as_echo_n "checking if $CC understands -b... " >&6; } 10187if ${lt_cv_prog_compiler__b+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 lt_cv_prog_compiler__b=no 10191 save_LDFLAGS=$LDFLAGS 10192 LDFLAGS="$LDFLAGS -b" 10193 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10195 # The linker can only warn and ignore the option if not recognized 10196 # So say no if there are warnings 10197 if test -s conftest.err; then 10198 # Append any errors to the config.log. 10199 cat conftest.err 1>&5 10200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10202 if diff conftest.exp conftest.er2 >/dev/null; then 10203 lt_cv_prog_compiler__b=yes 10204 fi 10205 else 10206 lt_cv_prog_compiler__b=yes 10207 fi 10208 fi 10209 $RM -r conftest* 10210 LDFLAGS=$save_LDFLAGS 10211 10212fi 10213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10214$as_echo "$lt_cv_prog_compiler__b" >&6; } 10215 10216if test yes = "$lt_cv_prog_compiler__b"; then 10217 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10218else 10219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10220fi 10221 10222 ;; 10223 esac 10224 fi 10225 if test no = "$with_gnu_ld"; then 10226 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10227 hardcode_libdir_separator=: 10228 10229 case $host_cpu in 10230 hppa*64*|ia64*) 10231 hardcode_direct=no 10232 hardcode_shlibpath_var=no 10233 ;; 10234 *) 10235 hardcode_direct=yes 10236 hardcode_direct_absolute=yes 10237 export_dynamic_flag_spec='$wl-E' 10238 10239 # hardcode_minus_L: Not really in the search PATH, 10240 # but as the default location of the library. 10241 hardcode_minus_L=yes 10242 ;; 10243 esac 10244 fi 10245 ;; 10246 10247 irix5* | irix6* | nonstopux*) 10248 if test yes = "$GCC"; then 10249 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' 10250 # Try to use the -exported_symbol ld option, if it does not 10251 # work, assume that -exports_file does not work either and 10252 # implicitly export all symbols. 10253 # This should be the same for all languages, so no per-tag cache variable. 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10255$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10256if ${lt_cv_irix_exported_symbol+:} false; then : 10257 $as_echo_n "(cached) " >&6 10258else 10259 save_LDFLAGS=$LDFLAGS 10260 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262/* end confdefs.h. */ 10263int foo (void) { return 0; } 10264_ACEOF 10265if ac_fn_c_try_link "$LINENO"; then : 10266 lt_cv_irix_exported_symbol=yes 10267else 10268 lt_cv_irix_exported_symbol=no 10269fi 10270rm -f core conftest.err conftest.$ac_objext \ 10271 conftest$ac_exeext conftest.$ac_ext 10272 LDFLAGS=$save_LDFLAGS 10273fi 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10275$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10276 if test yes = "$lt_cv_irix_exported_symbol"; then 10277 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' 10278 fi 10279 link_all_deplibs=no 10280 else 10281 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' 10282 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' 10283 fi 10284 archive_cmds_need_lc='no' 10285 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10286 hardcode_libdir_separator=: 10287 inherit_rpath=yes 10288 link_all_deplibs=yes 10289 ;; 10290 10291 linux*) 10292 case $cc_basename in 10293 tcc*) 10294 # Fabrice Bellard et al's Tiny C Compiler 10295 ld_shlibs=yes 10296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10297 ;; 10298 esac 10299 ;; 10300 10301 netbsd* | netbsdelf*-gnu) 10302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10304 else 10305 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10306 fi 10307 hardcode_libdir_flag_spec='-R$libdir' 10308 hardcode_direct=yes 10309 hardcode_shlibpath_var=no 10310 ;; 10311 10312 newsos6) 10313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10314 hardcode_direct=yes 10315 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10316 hardcode_libdir_separator=: 10317 hardcode_shlibpath_var=no 10318 ;; 10319 10320 *nto* | *qnx*) 10321 ;; 10322 10323 openbsd* | bitrig*) 10324 if test -f /usr/libexec/ld.so; then 10325 hardcode_direct=yes 10326 hardcode_shlibpath_var=no 10327 hardcode_direct_absolute=yes 10328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10330 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10331 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10332 export_dynamic_flag_spec='$wl-E' 10333 else 10334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10335 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10336 fi 10337 else 10338 ld_shlibs=no 10339 fi 10340 ;; 10341 10342 os2*) 10343 hardcode_libdir_flag_spec='-L$libdir' 10344 hardcode_minus_L=yes 10345 allow_undefined_flag=unsupported 10346 shrext_cmds=.dll 10347 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10348 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10349 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10350 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10351 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10352 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10353 emximp -o $lib $output_objdir/$libname.def' 10354 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10355 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10356 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10357 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10358 prefix_cmds="$SED"~ 10359 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10360 prefix_cmds="$prefix_cmds -e 1d"; 10361 fi~ 10362 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10363 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10364 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10365 emximp -o $lib $output_objdir/$libname.def' 10366 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10367 enable_shared_with_static_runtimes=yes 10368 ;; 10369 10370 osf3*) 10371 if test yes = "$GCC"; then 10372 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10373 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' 10374 else 10375 allow_undefined_flag=' -expect_unresolved \*' 10376 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' 10377 fi 10378 archive_cmds_need_lc='no' 10379 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10380 hardcode_libdir_separator=: 10381 ;; 10382 10383 osf4* | osf5*) # as osf3* with the addition of -msym flag 10384 if test yes = "$GCC"; then 10385 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10386 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' 10387 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10388 else 10389 allow_undefined_flag=' -expect_unresolved \*' 10390 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' 10391 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~ 10392 $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' 10393 10394 # Both c and cxx compiler support -rpath directly 10395 hardcode_libdir_flag_spec='-rpath $libdir' 10396 fi 10397 archive_cmds_need_lc='no' 10398 hardcode_libdir_separator=: 10399 ;; 10400 10401 solaris*) 10402 no_undefined_flag=' -z defs' 10403 if test yes = "$GCC"; then 10404 wlarc='$wl' 10405 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10407 $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' 10408 else 10409 case `$CC -V 2>&1` in 10410 *"Compilers 5.0"*) 10411 wlarc='' 10412 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10414 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10415 ;; 10416 *) 10417 wlarc='$wl' 10418 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10420 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10421 ;; 10422 esac 10423 fi 10424 hardcode_libdir_flag_spec='-R$libdir' 10425 hardcode_shlibpath_var=no 10426 case $host_os in 10427 solaris2.[0-5] | solaris2.[0-5].*) ;; 10428 *) 10429 # The compiler driver will combine and reorder linker options, 10430 # but understands '-z linker_flag'. GCC discards it without '$wl', 10431 # but is careful enough not to reorder. 10432 # Supported since Solaris 2.6 (maybe 2.5.1?) 10433 if test yes = "$GCC"; then 10434 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10435 else 10436 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10437 fi 10438 ;; 10439 esac 10440 link_all_deplibs=yes 10441 ;; 10442 10443 sunos4*) 10444 if test sequent = "$host_vendor"; then 10445 # Use $CC to link under sequent, because it throws in some extra .o 10446 # files that make .init and .fini sections work. 10447 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10448 else 10449 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10450 fi 10451 hardcode_libdir_flag_spec='-L$libdir' 10452 hardcode_direct=yes 10453 hardcode_minus_L=yes 10454 hardcode_shlibpath_var=no 10455 ;; 10456 10457 sysv4) 10458 case $host_vendor in 10459 sni) 10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10461 hardcode_direct=yes # is this really true??? 10462 ;; 10463 siemens) 10464 ## LD is ld it makes a PLAMLIB 10465 ## CC just makes a GrossModule. 10466 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10467 reload_cmds='$CC -r -o $output$reload_objs' 10468 hardcode_direct=no 10469 ;; 10470 motorola) 10471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10473 ;; 10474 esac 10475 runpath_var='LD_RUN_PATH' 10476 hardcode_shlibpath_var=no 10477 ;; 10478 10479 sysv4.3*) 10480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10481 hardcode_shlibpath_var=no 10482 export_dynamic_flag_spec='-Bexport' 10483 ;; 10484 10485 sysv4*MP*) 10486 if test -d /usr/nec; then 10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10488 hardcode_shlibpath_var=no 10489 runpath_var=LD_RUN_PATH 10490 hardcode_runpath_var=yes 10491 ld_shlibs=yes 10492 fi 10493 ;; 10494 10495 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10496 no_undefined_flag='$wl-z,text' 10497 archive_cmds_need_lc=no 10498 hardcode_shlibpath_var=no 10499 runpath_var='LD_RUN_PATH' 10500 10501 if test yes = "$GCC"; then 10502 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10503 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10504 else 10505 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10506 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10507 fi 10508 ;; 10509 10510 sysv5* | sco3.2v5* | sco5v6*) 10511 # Note: We CANNOT use -z defs as we might desire, because we do not 10512 # link with -lc, and that would cause any symbols used from libc to 10513 # always be unresolved, which means just about no library would 10514 # ever link correctly. If we're not using GNU ld we use -z text 10515 # though, which does catch some bad symbols but isn't as heavy-handed 10516 # as -z defs. 10517 no_undefined_flag='$wl-z,text' 10518 allow_undefined_flag='$wl-z,nodefs' 10519 archive_cmds_need_lc=no 10520 hardcode_shlibpath_var=no 10521 hardcode_libdir_flag_spec='$wl-R,$libdir' 10522 hardcode_libdir_separator=':' 10523 link_all_deplibs=yes 10524 export_dynamic_flag_spec='$wl-Bexport' 10525 runpath_var='LD_RUN_PATH' 10526 10527 if test yes = "$GCC"; then 10528 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10529 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10530 else 10531 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10532 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10533 fi 10534 ;; 10535 10536 uts4*) 10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10538 hardcode_libdir_flag_spec='-L$libdir' 10539 hardcode_shlibpath_var=no 10540 ;; 10541 10542 *) 10543 ld_shlibs=no 10544 ;; 10545 esac 10546 10547 if test sni = "$host_vendor"; then 10548 case $host in 10549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10550 export_dynamic_flag_spec='$wl-Blargedynsym' 10551 ;; 10552 esac 10553 fi 10554 fi 10555 10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10557$as_echo "$ld_shlibs" >&6; } 10558test no = "$ld_shlibs" && can_build_shared=no 10559 10560with_gnu_ld=$with_gnu_ld 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576# 10577# Do we need to explicitly link libc? 10578# 10579case "x$archive_cmds_need_lc" in 10580x|xyes) 10581 # Assume -lc should be added 10582 archive_cmds_need_lc=yes 10583 10584 if test yes,yes = "$GCC,$enable_shared"; then 10585 case $archive_cmds in 10586 *'~'*) 10587 # FIXME: we may have to deal with multi-command sequences. 10588 ;; 10589 '$CC '*) 10590 # Test whether the compiler implicitly links with -lc since on some 10591 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10592 # to ld, don't add -lc before -lgcc. 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10594$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10595if ${lt_cv_archive_cmds_need_lc+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 $RM conftest* 10599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10600 10601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10602 (eval $ac_compile) 2>&5 10603 ac_status=$? 10604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10605 test $ac_status = 0; } 2>conftest.err; then 10606 soname=conftest 10607 lib=conftest 10608 libobjs=conftest.$ac_objext 10609 deplibs= 10610 wl=$lt_prog_compiler_wl 10611 pic_flag=$lt_prog_compiler_pic 10612 compiler_flags=-v 10613 linker_flags=-v 10614 verstring= 10615 output_objdir=. 10616 libname=conftest 10617 lt_save_allow_undefined_flag=$allow_undefined_flag 10618 allow_undefined_flag= 10619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10620 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10621 ac_status=$? 10622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10623 test $ac_status = 0; } 10624 then 10625 lt_cv_archive_cmds_need_lc=no 10626 else 10627 lt_cv_archive_cmds_need_lc=yes 10628 fi 10629 allow_undefined_flag=$lt_save_allow_undefined_flag 10630 else 10631 cat conftest.err 1>&5 10632 fi 10633 $RM conftest* 10634 10635fi 10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10637$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10638 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10639 ;; 10640 esac 10641 fi 10642 ;; 10643esac 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10797$as_echo_n "checking dynamic linker characteristics... " >&6; } 10798 10799if test yes = "$GCC"; then 10800 case $host_os in 10801 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10802 *) lt_awk_arg='/^libraries:/' ;; 10803 esac 10804 case $host_os in 10805 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10806 *) lt_sed_strip_eq='s|=/|/|g' ;; 10807 esac 10808 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10809 case $lt_search_path_spec in 10810 *\;*) 10811 # if the path contains ";" then we assume it to be the separator 10812 # otherwise default to the standard path separator (i.e. ":") - it is 10813 # assumed that no part of a normal pathname contains ";" but that should 10814 # okay in the real world where ";" in dirpaths is itself problematic. 10815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10816 ;; 10817 *) 10818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10819 ;; 10820 esac 10821 # Ok, now we have the path, separated by spaces, we can step through it 10822 # and add multilib dir if necessary... 10823 lt_tmp_lt_search_path_spec= 10824 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10825 # ...but if some path component already ends with the multilib dir we assume 10826 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10827 case "$lt_multi_os_dir; $lt_search_path_spec " in 10828 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10829 lt_multi_os_dir= 10830 ;; 10831 esac 10832 for lt_sys_path in $lt_search_path_spec; do 10833 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10835 elif test -n "$lt_multi_os_dir"; then 10836 test -d "$lt_sys_path" && \ 10837 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10838 fi 10839 done 10840 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10841BEGIN {RS = " "; FS = "/|\n";} { 10842 lt_foo = ""; 10843 lt_count = 0; 10844 for (lt_i = NF; lt_i > 0; lt_i--) { 10845 if ($lt_i != "" && $lt_i != ".") { 10846 if ($lt_i == "..") { 10847 lt_count++; 10848 } else { 10849 if (lt_count == 0) { 10850 lt_foo = "/" $lt_i lt_foo; 10851 } else { 10852 lt_count--; 10853 } 10854 } 10855 } 10856 } 10857 if (lt_foo != "") { lt_freq[lt_foo]++; } 10858 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10859}'` 10860 # AWK program above erroneously prepends '/' to C:/dos/paths 10861 # for these hosts. 10862 case $host_os in 10863 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10864 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10865 esac 10866 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10867else 10868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10869fi 10870library_names_spec= 10871libname_spec='lib$name' 10872soname_spec= 10873shrext_cmds=.so 10874postinstall_cmds= 10875postuninstall_cmds= 10876finish_cmds= 10877finish_eval= 10878shlibpath_var= 10879shlibpath_overrides_runpath=unknown 10880version_type=none 10881dynamic_linker="$host_os ld.so" 10882sys_lib_dlsearch_path_spec="/lib /usr/lib" 10883need_lib_prefix=unknown 10884hardcode_into_libs=no 10885 10886# when you set need_version to no, make sure it does not cause -set_version 10887# flags to be left without arguments 10888need_version=unknown 10889 10890 10891 10892case $host_os in 10893aix3*) 10894 version_type=linux # correct to gnu/linux during the next big refactor 10895 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10896 shlibpath_var=LIBPATH 10897 10898 # AIX 3 has no versioning support, so we append a major version to the name. 10899 soname_spec='$libname$release$shared_ext$major' 10900 ;; 10901 10902aix[4-9]*) 10903 version_type=linux # correct to gnu/linux during the next big refactor 10904 need_lib_prefix=no 10905 need_version=no 10906 hardcode_into_libs=yes 10907 if test ia64 = "$host_cpu"; then 10908 # AIX 5 supports IA64 10909 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10910 shlibpath_var=LD_LIBRARY_PATH 10911 else 10912 # With GCC up to 2.95.x, collect2 would create an import file 10913 # for dependence libraries. The import file would start with 10914 # the line '#! .'. This would cause the generated library to 10915 # depend on '.', always an invalid library. This was fixed in 10916 # development snapshots of GCC prior to 3.0. 10917 case $host_os in 10918 aix4 | aix4.[01] | aix4.[01].*) 10919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10920 echo ' yes ' 10921 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10922 : 10923 else 10924 can_build_shared=no 10925 fi 10926 ;; 10927 esac 10928 # Using Import Files as archive members, it is possible to support 10929 # filename-based versioning of shared library archives on AIX. While 10930 # this would work for both with and without runtime linking, it will 10931 # prevent static linking of such archives. So we do filename-based 10932 # shared library versioning with .so extension only, which is used 10933 # when both runtime linking and shared linking is enabled. 10934 # Unfortunately, runtime linking may impact performance, so we do 10935 # not want this to be the default eventually. Also, we use the 10936 # versioned .so libs for executables only if there is the -brtl 10937 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10938 # To allow for filename-based versioning support, we need to create 10939 # libNAME.so.V as an archive file, containing: 10940 # *) an Import File, referring to the versioned filename of the 10941 # archive as well as the shared archive member, telling the 10942 # bitwidth (32 or 64) of that shared object, and providing the 10943 # list of exported symbols of that shared object, eventually 10944 # decorated with the 'weak' keyword 10945 # *) the shared object with the F_LOADONLY flag set, to really avoid 10946 # it being seen by the linker. 10947 # At run time we better use the real file rather than another symlink, 10948 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10949 10950 case $with_aix_soname,$aix_use_runtimelinking in 10951 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10952 # soname into executable. Probably we can add versioning support to 10953 # collect2, so additional links can be useful in future. 10954 aix,yes) # traditional libtool 10955 dynamic_linker='AIX unversionable lib.so' 10956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10957 # instead of lib<name>.a to let people know that these are not 10958 # typical AIX shared libraries. 10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10960 ;; 10961 aix,no) # traditional AIX only 10962 dynamic_linker='AIX lib.a(lib.so.V)' 10963 # We preserve .a as extension for shared libraries through AIX4.2 10964 # and later when we are not doing run time linking. 10965 library_names_spec='$libname$release.a $libname.a' 10966 soname_spec='$libname$release$shared_ext$major' 10967 ;; 10968 svr4,*) # full svr4 only 10969 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10970 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10971 # We do not specify a path in Import Files, so LIBPATH fires. 10972 shlibpath_overrides_runpath=yes 10973 ;; 10974 *,yes) # both, prefer svr4 10975 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10976 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10977 # unpreferred sharedlib libNAME.a needs extra handling 10978 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"' 10979 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"' 10980 # We do not specify a path in Import Files, so LIBPATH fires. 10981 shlibpath_overrides_runpath=yes 10982 ;; 10983 *,no) # both, prefer aix 10984 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10985 library_names_spec='$libname$release.a $libname.a' 10986 soname_spec='$libname$release$shared_ext$major' 10987 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10988 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)' 10989 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"' 10990 ;; 10991 esac 10992 shlibpath_var=LIBPATH 10993 fi 10994 ;; 10995 10996amigaos*) 10997 case $host_cpu in 10998 powerpc) 10999 # Since July 2007 AmigaOS4 officially supports .so libraries. 11000 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11002 ;; 11003 m68k) 11004 library_names_spec='$libname.ixlibrary $libname.a' 11005 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11006 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' 11007 ;; 11008 esac 11009 ;; 11010 11011beos*) 11012 library_names_spec='$libname$shared_ext' 11013 dynamic_linker="$host_os ld.so" 11014 shlibpath_var=LIBRARY_PATH 11015 ;; 11016 11017bsdi[45]*) 11018 version_type=linux # correct to gnu/linux during the next big refactor 11019 need_version=no 11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11021 soname_spec='$libname$release$shared_ext$major' 11022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11023 shlibpath_var=LD_LIBRARY_PATH 11024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11026 # the default ld.so.conf also contains /usr/contrib/lib and 11027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11028 # libtool to hard-code these into programs 11029 ;; 11030 11031cygwin* | mingw* | pw32* | cegcc*) 11032 version_type=windows 11033 shrext_cmds=.dll 11034 need_version=no 11035 need_lib_prefix=no 11036 11037 case $GCC,$cc_basename in 11038 yes,*) 11039 # gcc 11040 library_names_spec='$libname.dll.a' 11041 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11042 postinstall_cmds='base_file=`basename \$file`~ 11043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11044 dldir=$destdir/`dirname \$dlpath`~ 11045 test -d \$dldir || mkdir -p \$dldir~ 11046 $install_prog $dir/$dlname \$dldir/$dlname~ 11047 chmod a+x \$dldir/$dlname~ 11048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11050 fi' 11051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11052 dlpath=$dir/\$dldll~ 11053 $RM \$dlpath' 11054 shlibpath_overrides_runpath=yes 11055 11056 case $host_os in 11057 cygwin*) 11058 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11060 11061 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11062 ;; 11063 mingw* | cegcc*) 11064 # MinGW DLLs use traditional 'lib' prefix 11065 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11066 ;; 11067 pw32*) 11068 # pw32 DLLs use 'pw' prefix rather than 'lib' 11069 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11070 ;; 11071 esac 11072 dynamic_linker='Win32 ld.exe' 11073 ;; 11074 11075 *,cl*) 11076 # Native MSVC 11077 libname_spec='$name' 11078 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11079 library_names_spec='$libname.dll.lib' 11080 11081 case $build_os in 11082 mingw*) 11083 sys_lib_search_path_spec= 11084 lt_save_ifs=$IFS 11085 IFS=';' 11086 for lt_path in $LIB 11087 do 11088 IFS=$lt_save_ifs 11089 # Let DOS variable expansion print the short 8.3 style file name. 11090 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11091 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11092 done 11093 IFS=$lt_save_ifs 11094 # Convert to MSYS style. 11095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11096 ;; 11097 cygwin*) 11098 # Convert to unix form, then to dos form, then back to unix form 11099 # but this time dos style (no spaces!) so that the unix form looks 11100 # like /cygdrive/c/PROGRA~1:/cygdr... 11101 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11102 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11103 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11104 ;; 11105 *) 11106 sys_lib_search_path_spec=$LIB 11107 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11108 # It is most probably a Windows format PATH. 11109 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11110 else 11111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11112 fi 11113 # FIXME: find the short name or the path components, as spaces are 11114 # common. (e.g. "Program Files" -> "PROGRA~1") 11115 ;; 11116 esac 11117 11118 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11119 postinstall_cmds='base_file=`basename \$file`~ 11120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11121 dldir=$destdir/`dirname \$dlpath`~ 11122 test -d \$dldir || mkdir -p \$dldir~ 11123 $install_prog $dir/$dlname \$dldir/$dlname' 11124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11125 dlpath=$dir/\$dldll~ 11126 $RM \$dlpath' 11127 shlibpath_overrides_runpath=yes 11128 dynamic_linker='Win32 link.exe' 11129 ;; 11130 11131 *) 11132 # Assume MSVC wrapper 11133 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11134 dynamic_linker='Win32 ld.exe' 11135 ;; 11136 esac 11137 # FIXME: first we should search . and the directory the executable is in 11138 shlibpath_var=PATH 11139 ;; 11140 11141darwin* | rhapsody*) 11142 dynamic_linker="$host_os dyld" 11143 version_type=darwin 11144 need_lib_prefix=no 11145 need_version=no 11146 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11147 soname_spec='$libname$release$major$shared_ext' 11148 shlibpath_overrides_runpath=yes 11149 shlibpath_var=DYLD_LIBRARY_PATH 11150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11151 11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11154 ;; 11155 11156dgux*) 11157 version_type=linux # correct to gnu/linux during the next big refactor 11158 need_lib_prefix=no 11159 need_version=no 11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11161 soname_spec='$libname$release$shared_ext$major' 11162 shlibpath_var=LD_LIBRARY_PATH 11163 ;; 11164 11165freebsd* | dragonfly*) 11166 # DragonFly does not have aout. When/if they implement a new 11167 # versioning mechanism, adjust this. 11168 if test -x /usr/bin/objformat; then 11169 objformat=`/usr/bin/objformat` 11170 else 11171 case $host_os in 11172 freebsd[23].*) objformat=aout ;; 11173 *) objformat=elf ;; 11174 esac 11175 fi 11176 version_type=freebsd-$objformat 11177 case $version_type in 11178 freebsd-elf*) 11179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11180 soname_spec='$libname$release$shared_ext$major' 11181 need_version=no 11182 need_lib_prefix=no 11183 ;; 11184 freebsd-*) 11185 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11186 need_version=yes 11187 ;; 11188 esac 11189 shlibpath_var=LD_LIBRARY_PATH 11190 case $host_os in 11191 freebsd2.*) 11192 shlibpath_overrides_runpath=yes 11193 ;; 11194 freebsd3.[01]* | freebsdelf3.[01]*) 11195 shlibpath_overrides_runpath=yes 11196 hardcode_into_libs=yes 11197 ;; 11198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11200 shlibpath_overrides_runpath=no 11201 hardcode_into_libs=yes 11202 ;; 11203 *) # from 4.6 on, and DragonFly 11204 shlibpath_overrides_runpath=yes 11205 hardcode_into_libs=yes 11206 ;; 11207 esac 11208 ;; 11209 11210haiku*) 11211 version_type=linux # correct to gnu/linux during the next big refactor 11212 need_lib_prefix=no 11213 need_version=no 11214 dynamic_linker="$host_os runtime_loader" 11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11216 soname_spec='$libname$release$shared_ext$major' 11217 shlibpath_var=LIBRARY_PATH 11218 shlibpath_overrides_runpath=no 11219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11220 hardcode_into_libs=yes 11221 ;; 11222 11223hpux9* | hpux10* | hpux11*) 11224 # Give a soname corresponding to the major version so that dld.sl refuses to 11225 # link against other versions. 11226 version_type=sunos 11227 need_lib_prefix=no 11228 need_version=no 11229 case $host_cpu in 11230 ia64*) 11231 shrext_cmds='.so' 11232 hardcode_into_libs=yes 11233 dynamic_linker="$host_os dld.so" 11234 shlibpath_var=LD_LIBRARY_PATH 11235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11237 soname_spec='$libname$release$shared_ext$major' 11238 if test 32 = "$HPUX_IA64_MODE"; then 11239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11240 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11241 else 11242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11243 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11244 fi 11245 ;; 11246 hppa*64*) 11247 shrext_cmds='.sl' 11248 hardcode_into_libs=yes 11249 dynamic_linker="$host_os dld.sl" 11250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11253 soname_spec='$libname$release$shared_ext$major' 11254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11256 ;; 11257 *) 11258 shrext_cmds='.sl' 11259 dynamic_linker="$host_os dld.sl" 11260 shlibpath_var=SHLIB_PATH 11261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11263 soname_spec='$libname$release$shared_ext$major' 11264 ;; 11265 esac 11266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11267 postinstall_cmds='chmod 555 $lib' 11268 # or fails outright, so override atomically: 11269 install_override_mode=555 11270 ;; 11271 11272interix[3-9]*) 11273 version_type=linux # correct to gnu/linux during the next big refactor 11274 need_lib_prefix=no 11275 need_version=no 11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11277 soname_spec='$libname$release$shared_ext$major' 11278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 shlibpath_overrides_runpath=no 11281 hardcode_into_libs=yes 11282 ;; 11283 11284irix5* | irix6* | nonstopux*) 11285 case $host_os in 11286 nonstopux*) version_type=nonstopux ;; 11287 *) 11288 if test yes = "$lt_cv_prog_gnu_ld"; then 11289 version_type=linux # correct to gnu/linux during the next big refactor 11290 else 11291 version_type=irix 11292 fi ;; 11293 esac 11294 need_lib_prefix=no 11295 need_version=no 11296 soname_spec='$libname$release$shared_ext$major' 11297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11298 case $host_os in 11299 irix5* | nonstopux*) 11300 libsuff= shlibsuff= 11301 ;; 11302 *) 11303 case $LD in # libtool.m4 will add one of these switches to LD 11304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11305 libsuff= shlibsuff= libmagic=32-bit;; 11306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11307 libsuff=32 shlibsuff=N32 libmagic=N32;; 11308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11309 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11310 *) libsuff= shlibsuff= libmagic=never-match;; 11311 esac 11312 ;; 11313 esac 11314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11315 shlibpath_overrides_runpath=no 11316 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11317 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11318 hardcode_into_libs=yes 11319 ;; 11320 11321# No shared lib support for Linux oldld, aout, or coff. 11322linux*oldld* | linux*aout* | linux*coff*) 11323 dynamic_linker=no 11324 ;; 11325 11326linux*android*) 11327 version_type=none # Android doesn't support versioned libraries. 11328 need_lib_prefix=no 11329 need_version=no 11330 library_names_spec='$libname$release$shared_ext' 11331 soname_spec='$libname$release$shared_ext' 11332 finish_cmds= 11333 shlibpath_var=LD_LIBRARY_PATH 11334 shlibpath_overrides_runpath=yes 11335 11336 # This implies no fast_install, which is unacceptable. 11337 # Some rework will be needed to allow for fast_install 11338 # before this can be enabled. 11339 hardcode_into_libs=yes 11340 11341 dynamic_linker='Android linker' 11342 # Don't embed -rpath directories since the linker doesn't support them. 11343 hardcode_libdir_flag_spec='-L$libdir' 11344 ;; 11345 11346# This must be glibc/ELF. 11347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11348 version_type=linux # correct to gnu/linux during the next big refactor 11349 need_lib_prefix=no 11350 need_version=no 11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11352 soname_spec='$libname$release$shared_ext$major' 11353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11354 shlibpath_var=LD_LIBRARY_PATH 11355 shlibpath_overrides_runpath=no 11356 11357 # Some binutils ld are patched to set DT_RUNPATH 11358 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11359 $as_echo_n "(cached) " >&6 11360else 11361 lt_cv_shlibpath_overrides_runpath=no 11362 save_LDFLAGS=$LDFLAGS 11363 save_libdir=$libdir 11364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11367/* end confdefs.h. */ 11368 11369int 11370main () 11371{ 11372 11373 ; 11374 return 0; 11375} 11376_ACEOF 11377if ac_fn_c_try_link "$LINENO"; then : 11378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11379 lt_cv_shlibpath_overrides_runpath=yes 11380fi 11381fi 11382rm -f core conftest.err conftest.$ac_objext \ 11383 conftest$ac_exeext conftest.$ac_ext 11384 LDFLAGS=$save_LDFLAGS 11385 libdir=$save_libdir 11386 11387fi 11388 11389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11390 11391 # This implies no fast_install, which is unacceptable. 11392 # Some rework will be needed to allow for fast_install 11393 # before this can be enabled. 11394 hardcode_into_libs=yes 11395 11396 # Ideally, we could use ldconfig to report *all* directores which are 11397 # searched for libraries, however this is still not possible. Aside from not 11398 # being certain /sbin/ldconfig is available, command 11399 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11400 # even though it is searched at run-time. Try to do the best guess by 11401 # appending ld.so.conf contents (and includes) to the search path. 11402 if test -f /etc/ld.so.conf; then 11403 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' ' '` 11404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11405 fi 11406 11407 # We used to test for /lib/ld.so.1 and disable shared libraries on 11408 # powerpc, because MkLinux only supported shared libraries with the 11409 # GNU dynamic linker. Since this was broken with cross compilers, 11410 # most powerpc-linux boxes support dynamic linking these days and 11411 # people can always --disable-shared, the test was removed, and we 11412 # assume the GNU/Linux dynamic linker is in use. 11413 dynamic_linker='GNU/Linux ld.so' 11414 ;; 11415 11416netbsdelf*-gnu) 11417 version_type=linux 11418 need_lib_prefix=no 11419 need_version=no 11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11421 soname_spec='${libname}${release}${shared_ext}$major' 11422 shlibpath_var=LD_LIBRARY_PATH 11423 shlibpath_overrides_runpath=no 11424 hardcode_into_libs=yes 11425 dynamic_linker='NetBSD ld.elf_so' 11426 ;; 11427 11428netbsd*) 11429 version_type=sunos 11430 need_lib_prefix=no 11431 need_version=no 11432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11435 dynamic_linker='NetBSD (a.out) ld.so' 11436 else 11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11438 soname_spec='$libname$release$shared_ext$major' 11439 dynamic_linker='NetBSD ld.elf_so' 11440 fi 11441 shlibpath_var=LD_LIBRARY_PATH 11442 shlibpath_overrides_runpath=yes 11443 hardcode_into_libs=yes 11444 ;; 11445 11446newsos6) 11447 version_type=linux # correct to gnu/linux during the next big refactor 11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11449 shlibpath_var=LD_LIBRARY_PATH 11450 shlibpath_overrides_runpath=yes 11451 ;; 11452 11453*nto* | *qnx*) 11454 version_type=qnx 11455 need_lib_prefix=no 11456 need_version=no 11457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11458 soname_spec='$libname$release$shared_ext$major' 11459 shlibpath_var=LD_LIBRARY_PATH 11460 shlibpath_overrides_runpath=no 11461 hardcode_into_libs=yes 11462 dynamic_linker='ldqnx.so' 11463 ;; 11464 11465openbsd* | bitrig*) 11466 version_type=sunos 11467 sys_lib_dlsearch_path_spec=/usr/lib 11468 need_lib_prefix=no 11469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11470 need_version=no 11471 else 11472 need_version=yes 11473 fi 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11476 shlibpath_var=LD_LIBRARY_PATH 11477 shlibpath_overrides_runpath=yes 11478 ;; 11479 11480os2*) 11481 libname_spec='$name' 11482 version_type=windows 11483 shrext_cmds=.dll 11484 need_version=no 11485 need_lib_prefix=no 11486 # OS/2 can only load a DLL with a base name of 8 characters or less. 11487 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11488 v=$($ECHO $release$versuffix | tr -d .-); 11489 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11490 $ECHO $n$v`$shared_ext' 11491 library_names_spec='${libname}_dll.$libext' 11492 dynamic_linker='OS/2 ld.exe' 11493 shlibpath_var=BEGINLIBPATH 11494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11496 postinstall_cmds='base_file=`basename \$file`~ 11497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11498 dldir=$destdir/`dirname \$dlpath`~ 11499 test -d \$dldir || mkdir -p \$dldir~ 11500 $install_prog $dir/$dlname \$dldir/$dlname~ 11501 chmod a+x \$dldir/$dlname~ 11502 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11503 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11504 fi' 11505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11506 dlpath=$dir/\$dldll~ 11507 $RM \$dlpath' 11508 ;; 11509 11510osf3* | osf4* | osf5*) 11511 version_type=osf 11512 need_lib_prefix=no 11513 need_version=no 11514 soname_spec='$libname$release$shared_ext$major' 11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11516 shlibpath_var=LD_LIBRARY_PATH 11517 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11519 ;; 11520 11521rdos*) 11522 dynamic_linker=no 11523 ;; 11524 11525solaris*) 11526 version_type=linux # correct to gnu/linux during the next big refactor 11527 need_lib_prefix=no 11528 need_version=no 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 soname_spec='$libname$release$shared_ext$major' 11531 shlibpath_var=LD_LIBRARY_PATH 11532 shlibpath_overrides_runpath=yes 11533 hardcode_into_libs=yes 11534 # ldd complains unless libraries are executable 11535 postinstall_cmds='chmod +x $lib' 11536 ;; 11537 11538sunos4*) 11539 version_type=sunos 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 shlibpath_overrides_runpath=yes 11544 if test yes = "$with_gnu_ld"; then 11545 need_lib_prefix=no 11546 fi 11547 need_version=yes 11548 ;; 11549 11550sysv4 | sysv4.3*) 11551 version_type=linux # correct to gnu/linux during the next big refactor 11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11553 soname_spec='$libname$release$shared_ext$major' 11554 shlibpath_var=LD_LIBRARY_PATH 11555 case $host_vendor in 11556 sni) 11557 shlibpath_overrides_runpath=no 11558 need_lib_prefix=no 11559 runpath_var=LD_RUN_PATH 11560 ;; 11561 siemens) 11562 need_lib_prefix=no 11563 ;; 11564 motorola) 11565 need_lib_prefix=no 11566 need_version=no 11567 shlibpath_overrides_runpath=no 11568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11569 ;; 11570 esac 11571 ;; 11572 11573sysv4*MP*) 11574 if test -d /usr/nec; then 11575 version_type=linux # correct to gnu/linux during the next big refactor 11576 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11577 soname_spec='$libname$shared_ext.$major' 11578 shlibpath_var=LD_LIBRARY_PATH 11579 fi 11580 ;; 11581 11582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11583 version_type=sco 11584 need_lib_prefix=no 11585 need_version=no 11586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11587 soname_spec='$libname$release$shared_ext$major' 11588 shlibpath_var=LD_LIBRARY_PATH 11589 shlibpath_overrides_runpath=yes 11590 hardcode_into_libs=yes 11591 if test yes = "$with_gnu_ld"; then 11592 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11593 else 11594 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11595 case $host_os in 11596 sco3.2v5*) 11597 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11598 ;; 11599 esac 11600 fi 11601 sys_lib_dlsearch_path_spec='/usr/lib' 11602 ;; 11603 11604tpf*) 11605 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11606 version_type=linux # correct to gnu/linux during the next big refactor 11607 need_lib_prefix=no 11608 need_version=no 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11610 shlibpath_var=LD_LIBRARY_PATH 11611 shlibpath_overrides_runpath=no 11612 hardcode_into_libs=yes 11613 ;; 11614 11615uts4*) 11616 version_type=linux # correct to gnu/linux during the next big refactor 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 shlibpath_var=LD_LIBRARY_PATH 11620 ;; 11621 11622*) 11623 dynamic_linker=no 11624 ;; 11625esac 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11627$as_echo "$dynamic_linker" >&6; } 11628test no = "$dynamic_linker" && can_build_shared=no 11629 11630variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11631if test yes = "$GCC"; then 11632 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11633fi 11634 11635if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11636 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11637fi 11638 11639if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11640 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11641fi 11642 11643# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11644configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11645 11646# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11647func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11648 11649# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11650configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11749$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11750hardcode_action= 11751if test -n "$hardcode_libdir_flag_spec" || 11752 test -n "$runpath_var" || 11753 test yes = "$hardcode_automatic"; then 11754 11755 # We can hardcode non-existent directories. 11756 if test no != "$hardcode_direct" && 11757 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11758 # have to relink, otherwise we might link with an installed library 11759 # when we should be linking with a yet-to-be-installed one 11760 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11761 test no != "$hardcode_minus_L"; then 11762 # Linking always hardcodes the temporary library directory. 11763 hardcode_action=relink 11764 else 11765 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11766 hardcode_action=immediate 11767 fi 11768else 11769 # We cannot hardcode anything, or else we can only hardcode existing 11770 # directories. 11771 hardcode_action=unsupported 11772fi 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11774$as_echo "$hardcode_action" >&6; } 11775 11776if test relink = "$hardcode_action" || 11777 test yes = "$inherit_rpath"; then 11778 # Fast installation is not supported 11779 enable_fast_install=no 11780elif test yes = "$shlibpath_overrides_runpath" || 11781 test no = "$enable_shared"; then 11782 # Fast installation is not necessary 11783 enable_fast_install=needless 11784fi 11785 11786 11787 11788 11789 11790 11791 if test yes != "$enable_dlopen"; then 11792 enable_dlopen=unknown 11793 enable_dlopen_self=unknown 11794 enable_dlopen_self_static=unknown 11795else 11796 lt_cv_dlopen=no 11797 lt_cv_dlopen_libs= 11798 11799 case $host_os in 11800 beos*) 11801 lt_cv_dlopen=load_add_on 11802 lt_cv_dlopen_libs= 11803 lt_cv_dlopen_self=yes 11804 ;; 11805 11806 mingw* | pw32* | cegcc*) 11807 lt_cv_dlopen=LoadLibrary 11808 lt_cv_dlopen_libs= 11809 ;; 11810 11811 cygwin*) 11812 lt_cv_dlopen=dlopen 11813 lt_cv_dlopen_libs= 11814 ;; 11815 11816 darwin*) 11817 # if libdl is installed we need to link against it 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11819$as_echo_n "checking for dlopen in -ldl... " >&6; } 11820if ${ac_cv_lib_dl_dlopen+:} false; then : 11821 $as_echo_n "(cached) " >&6 11822else 11823 ac_check_lib_save_LIBS=$LIBS 11824LIBS="-ldl $LIBS" 11825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11826/* end confdefs.h. */ 11827 11828/* Override any GCC internal prototype to avoid an error. 11829 Use char because int might match the return type of a GCC 11830 builtin and then its argument prototype would still apply. */ 11831#ifdef __cplusplus 11832extern "C" 11833#endif 11834char dlopen (); 11835int 11836main () 11837{ 11838return dlopen (); 11839 ; 11840 return 0; 11841} 11842_ACEOF 11843if ac_fn_c_try_link "$LINENO"; then : 11844 ac_cv_lib_dl_dlopen=yes 11845else 11846 ac_cv_lib_dl_dlopen=no 11847fi 11848rm -f core conftest.err conftest.$ac_objext \ 11849 conftest$ac_exeext conftest.$ac_ext 11850LIBS=$ac_check_lib_save_LIBS 11851fi 11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11853$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11854if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11855 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11856else 11857 11858 lt_cv_dlopen=dyld 11859 lt_cv_dlopen_libs= 11860 lt_cv_dlopen_self=yes 11861 11862fi 11863 11864 ;; 11865 11866 tpf*) 11867 # Don't try to run any link tests for TPF. We know it's impossible 11868 # because TPF is a cross-compiler, and we know how we open DSOs. 11869 lt_cv_dlopen=dlopen 11870 lt_cv_dlopen_libs= 11871 lt_cv_dlopen_self=no 11872 ;; 11873 11874 *) 11875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11876if test "x$ac_cv_func_shl_load" = xyes; then : 11877 lt_cv_dlopen=shl_load 11878else 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11880$as_echo_n "checking for shl_load in -ldld... " >&6; } 11881if ${ac_cv_lib_dld_shl_load+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883else 11884 ac_check_lib_save_LIBS=$LIBS 11885LIBS="-ldld $LIBS" 11886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887/* end confdefs.h. */ 11888 11889/* Override any GCC internal prototype to avoid an error. 11890 Use char because int might match the return type of a GCC 11891 builtin and then its argument prototype would still apply. */ 11892#ifdef __cplusplus 11893extern "C" 11894#endif 11895char shl_load (); 11896int 11897main () 11898{ 11899return shl_load (); 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904if ac_fn_c_try_link "$LINENO"; then : 11905 ac_cv_lib_dld_shl_load=yes 11906else 11907 ac_cv_lib_dld_shl_load=no 11908fi 11909rm -f core conftest.err conftest.$ac_objext \ 11910 conftest$ac_exeext conftest.$ac_ext 11911LIBS=$ac_check_lib_save_LIBS 11912fi 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11914$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11915if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11916 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11917else 11918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11919if test "x$ac_cv_func_dlopen" = xyes; then : 11920 lt_cv_dlopen=dlopen 11921else 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11923$as_echo_n "checking for dlopen in -ldl... " >&6; } 11924if ${ac_cv_lib_dl_dlopen+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-ldl $LIBS" 11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931 11932/* Override any GCC internal prototype to avoid an error. 11933 Use char because int might match the return type of a GCC 11934 builtin and then its argument prototype would still apply. */ 11935#ifdef __cplusplus 11936extern "C" 11937#endif 11938char dlopen (); 11939int 11940main () 11941{ 11942return dlopen (); 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 ac_cv_lib_dl_dlopen=yes 11949else 11950 ac_cv_lib_dl_dlopen=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954LIBS=$ac_check_lib_save_LIBS 11955fi 11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11957$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11958if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11959 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11960else 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11962$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11963if ${ac_cv_lib_svld_dlopen+:} false; then : 11964 $as_echo_n "(cached) " >&6 11965else 11966 ac_check_lib_save_LIBS=$LIBS 11967LIBS="-lsvld $LIBS" 11968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11969/* end confdefs.h. */ 11970 11971/* Override any GCC internal prototype to avoid an error. 11972 Use char because int might match the return type of a GCC 11973 builtin and then its argument prototype would still apply. */ 11974#ifdef __cplusplus 11975extern "C" 11976#endif 11977char dlopen (); 11978int 11979main () 11980{ 11981return dlopen (); 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986if ac_fn_c_try_link "$LINENO"; then : 11987 ac_cv_lib_svld_dlopen=yes 11988else 11989 ac_cv_lib_svld_dlopen=no 11990fi 11991rm -f core conftest.err conftest.$ac_objext \ 11992 conftest$ac_exeext conftest.$ac_ext 11993LIBS=$ac_check_lib_save_LIBS 11994fi 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11996$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11997if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11998 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11999else 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12001$as_echo_n "checking for dld_link in -ldld... " >&6; } 12002if ${ac_cv_lib_dld_dld_link+:} false; then : 12003 $as_echo_n "(cached) " >&6 12004else 12005 ac_check_lib_save_LIBS=$LIBS 12006LIBS="-ldld $LIBS" 12007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12008/* end confdefs.h. */ 12009 12010/* Override any GCC internal prototype to avoid an error. 12011 Use char because int might match the return type of a GCC 12012 builtin and then its argument prototype would still apply. */ 12013#ifdef __cplusplus 12014extern "C" 12015#endif 12016char dld_link (); 12017int 12018main () 12019{ 12020return dld_link (); 12021 ; 12022 return 0; 12023} 12024_ACEOF 12025if ac_fn_c_try_link "$LINENO"; then : 12026 ac_cv_lib_dld_dld_link=yes 12027else 12028 ac_cv_lib_dld_dld_link=no 12029fi 12030rm -f core conftest.err conftest.$ac_objext \ 12031 conftest$ac_exeext conftest.$ac_ext 12032LIBS=$ac_check_lib_save_LIBS 12033fi 12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12035$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12036if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12037 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12038fi 12039 12040 12041fi 12042 12043 12044fi 12045 12046 12047fi 12048 12049 12050fi 12051 12052 12053fi 12054 12055 ;; 12056 esac 12057 12058 if test no = "$lt_cv_dlopen"; then 12059 enable_dlopen=no 12060 else 12061 enable_dlopen=yes 12062 fi 12063 12064 case $lt_cv_dlopen in 12065 dlopen) 12066 save_CPPFLAGS=$CPPFLAGS 12067 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12068 12069 save_LDFLAGS=$LDFLAGS 12070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12071 12072 save_LIBS=$LIBS 12073 LIBS="$lt_cv_dlopen_libs $LIBS" 12074 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12076$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12077if ${lt_cv_dlopen_self+:} false; then : 12078 $as_echo_n "(cached) " >&6 12079else 12080 if test yes = "$cross_compiling"; then : 12081 lt_cv_dlopen_self=cross 12082else 12083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12084 lt_status=$lt_dlunknown 12085 cat > conftest.$ac_ext <<_LT_EOF 12086#line $LINENO "configure" 12087#include "confdefs.h" 12088 12089#if HAVE_DLFCN_H 12090#include <dlfcn.h> 12091#endif 12092 12093#include <stdio.h> 12094 12095#ifdef RTLD_GLOBAL 12096# define LT_DLGLOBAL RTLD_GLOBAL 12097#else 12098# ifdef DL_GLOBAL 12099# define LT_DLGLOBAL DL_GLOBAL 12100# else 12101# define LT_DLGLOBAL 0 12102# endif 12103#endif 12104 12105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12106 find out it does not work in some platform. */ 12107#ifndef LT_DLLAZY_OR_NOW 12108# ifdef RTLD_LAZY 12109# define LT_DLLAZY_OR_NOW RTLD_LAZY 12110# else 12111# ifdef DL_LAZY 12112# define LT_DLLAZY_OR_NOW DL_LAZY 12113# else 12114# ifdef RTLD_NOW 12115# define LT_DLLAZY_OR_NOW RTLD_NOW 12116# else 12117# ifdef DL_NOW 12118# define LT_DLLAZY_OR_NOW DL_NOW 12119# else 12120# define LT_DLLAZY_OR_NOW 0 12121# endif 12122# endif 12123# endif 12124# endif 12125#endif 12126 12127/* When -fvisibility=hidden is used, assume the code has been annotated 12128 correspondingly for the symbols needed. */ 12129#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12130int fnord () __attribute__((visibility("default"))); 12131#endif 12132 12133int fnord () { return 42; } 12134int main () 12135{ 12136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12137 int status = $lt_dlunknown; 12138 12139 if (self) 12140 { 12141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12142 else 12143 { 12144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12145 else puts (dlerror ()); 12146 } 12147 /* dlclose (self); */ 12148 } 12149 else 12150 puts (dlerror ()); 12151 12152 return status; 12153} 12154_LT_EOF 12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12156 (eval $ac_link) 2>&5 12157 ac_status=$? 12158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12159 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12160 (./conftest; exit; ) >&5 2>/dev/null 12161 lt_status=$? 12162 case x$lt_status in 12163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12166 esac 12167 else : 12168 # compilation failed 12169 lt_cv_dlopen_self=no 12170 fi 12171fi 12172rm -fr conftest* 12173 12174 12175fi 12176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12177$as_echo "$lt_cv_dlopen_self" >&6; } 12178 12179 if test yes = "$lt_cv_dlopen_self"; then 12180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12182$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12183if ${lt_cv_dlopen_self_static+:} false; then : 12184 $as_echo_n "(cached) " >&6 12185else 12186 if test yes = "$cross_compiling"; then : 12187 lt_cv_dlopen_self_static=cross 12188else 12189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12190 lt_status=$lt_dlunknown 12191 cat > conftest.$ac_ext <<_LT_EOF 12192#line $LINENO "configure" 12193#include "confdefs.h" 12194 12195#if HAVE_DLFCN_H 12196#include <dlfcn.h> 12197#endif 12198 12199#include <stdio.h> 12200 12201#ifdef RTLD_GLOBAL 12202# define LT_DLGLOBAL RTLD_GLOBAL 12203#else 12204# ifdef DL_GLOBAL 12205# define LT_DLGLOBAL DL_GLOBAL 12206# else 12207# define LT_DLGLOBAL 0 12208# endif 12209#endif 12210 12211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12212 find out it does not work in some platform. */ 12213#ifndef LT_DLLAZY_OR_NOW 12214# ifdef RTLD_LAZY 12215# define LT_DLLAZY_OR_NOW RTLD_LAZY 12216# else 12217# ifdef DL_LAZY 12218# define LT_DLLAZY_OR_NOW DL_LAZY 12219# else 12220# ifdef RTLD_NOW 12221# define LT_DLLAZY_OR_NOW RTLD_NOW 12222# else 12223# ifdef DL_NOW 12224# define LT_DLLAZY_OR_NOW DL_NOW 12225# else 12226# define LT_DLLAZY_OR_NOW 0 12227# endif 12228# endif 12229# endif 12230# endif 12231#endif 12232 12233/* When -fvisibility=hidden is used, assume the code has been annotated 12234 correspondingly for the symbols needed. */ 12235#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12236int fnord () __attribute__((visibility("default"))); 12237#endif 12238 12239int fnord () { return 42; } 12240int main () 12241{ 12242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12243 int status = $lt_dlunknown; 12244 12245 if (self) 12246 { 12247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12248 else 12249 { 12250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12251 else puts (dlerror ()); 12252 } 12253 /* dlclose (self); */ 12254 } 12255 else 12256 puts (dlerror ()); 12257 12258 return status; 12259} 12260_LT_EOF 12261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12262 (eval $ac_link) 2>&5 12263 ac_status=$? 12264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12265 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12266 (./conftest; exit; ) >&5 2>/dev/null 12267 lt_status=$? 12268 case x$lt_status in 12269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12272 esac 12273 else : 12274 # compilation failed 12275 lt_cv_dlopen_self_static=no 12276 fi 12277fi 12278rm -fr conftest* 12279 12280 12281fi 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12283$as_echo "$lt_cv_dlopen_self_static" >&6; } 12284 fi 12285 12286 CPPFLAGS=$save_CPPFLAGS 12287 LDFLAGS=$save_LDFLAGS 12288 LIBS=$save_LIBS 12289 ;; 12290 esac 12291 12292 case $lt_cv_dlopen_self in 12293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12294 *) enable_dlopen_self=unknown ;; 12295 esac 12296 12297 case $lt_cv_dlopen_self_static in 12298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12299 *) enable_dlopen_self_static=unknown ;; 12300 esac 12301fi 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319striplib= 12320old_striplib= 12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12322$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12323if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12325 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12327$as_echo "yes" >&6; } 12328else 12329# FIXME - insert some real tests, host_os isn't really good enough 12330 case $host_os in 12331 darwin*) 12332 if test -n "$STRIP"; then 12333 striplib="$STRIP -x" 12334 old_striplib="$STRIP -S" 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12336$as_echo "yes" >&6; } 12337 else 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12339$as_echo "no" >&6; } 12340 fi 12341 ;; 12342 *) 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12344$as_echo "no" >&6; } 12345 ;; 12346 esac 12347fi 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 # Report what library types will actually be built 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12362$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12364$as_echo "$can_build_shared" >&6; } 12365 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12367$as_echo_n "checking whether to build shared libraries... " >&6; } 12368 test no = "$can_build_shared" && enable_shared=no 12369 12370 # On AIX, shared libraries and static libraries use the same namespace, and 12371 # are all built from PIC. 12372 case $host_os in 12373 aix3*) 12374 test yes = "$enable_shared" && enable_static=no 12375 if test -n "$RANLIB"; then 12376 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12377 postinstall_cmds='$RANLIB $lib' 12378 fi 12379 ;; 12380 12381 aix[4-9]*) 12382 if test ia64 != "$host_cpu"; then 12383 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12384 yes,aix,yes) ;; # shared object as lib.so file only 12385 yes,svr4,*) ;; # shared object as lib.so archive member only 12386 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12387 esac 12388 fi 12389 ;; 12390 esac 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12392$as_echo "$enable_shared" >&6; } 12393 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12395$as_echo_n "checking whether to build static libraries... " >&6; } 12396 # Make sure either enable_shared or enable_static is yes. 12397 test yes = "$enable_shared" || enable_static=yes 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12399$as_echo "$enable_static" >&6; } 12400 12401 12402 12403 12404fi 12405ac_ext=c 12406ac_cpp='$CPP $CPPFLAGS' 12407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12409ac_compiler_gnu=$ac_cv_c_compiler_gnu 12410 12411CC=$lt_save_CC 12412 12413 if test -n "$CXX" && ( test no != "$CXX" && 12414 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12415 (test g++ != "$CXX"))); then 12416 ac_ext=cpp 12417ac_cpp='$CXXCPP $CPPFLAGS' 12418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12422$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12423if test -z "$CXXCPP"; then 12424 if ${ac_cv_prog_CXXCPP+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426else 12427 # Double quotes because CXXCPP needs to be expanded 12428 for CXXCPP in "$CXX -E" "/lib/cpp" 12429 do 12430 ac_preproc_ok=false 12431for ac_cxx_preproc_warn_flag in '' yes 12432do 12433 # Use a header file that comes with gcc, so configuring glibc 12434 # with a fresh cross-compiler works. 12435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12436 # <limits.h> exists even on freestanding compilers. 12437 # On the NeXT, cc -E runs the code through the compiler's parser, 12438 # not just through cpp. "Syntax error" is here to catch this case. 12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12440/* end confdefs.h. */ 12441@%:@ifdef __STDC__ 12442@%:@ include <limits.h> 12443@%:@else 12444@%:@ include <assert.h> 12445@%:@endif 12446 Syntax error 12447_ACEOF 12448if ac_fn_cxx_try_cpp "$LINENO"; then : 12449 12450else 12451 # Broken: fails on valid input. 12452continue 12453fi 12454rm -f conftest.err conftest.i conftest.$ac_ext 12455 12456 # OK, works on sane cases. Now check whether nonexistent headers 12457 # can be detected and how. 12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12459/* end confdefs.h. */ 12460@%:@include <ac_nonexistent.h> 12461_ACEOF 12462if ac_fn_cxx_try_cpp "$LINENO"; then : 12463 # Broken: success on invalid input. 12464continue 12465else 12466 # Passes both tests. 12467ac_preproc_ok=: 12468break 12469fi 12470rm -f conftest.err conftest.i conftest.$ac_ext 12471 12472done 12473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12474rm -f conftest.i conftest.err conftest.$ac_ext 12475if $ac_preproc_ok; then : 12476 break 12477fi 12478 12479 done 12480 ac_cv_prog_CXXCPP=$CXXCPP 12481 12482fi 12483 CXXCPP=$ac_cv_prog_CXXCPP 12484else 12485 ac_cv_prog_CXXCPP=$CXXCPP 12486fi 12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12488$as_echo "$CXXCPP" >&6; } 12489ac_preproc_ok=false 12490for ac_cxx_preproc_warn_flag in '' yes 12491do 12492 # Use a header file that comes with gcc, so configuring glibc 12493 # with a fresh cross-compiler works. 12494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12495 # <limits.h> exists even on freestanding compilers. 12496 # On the NeXT, cc -E runs the code through the compiler's parser, 12497 # not just through cpp. "Syntax error" is here to catch this case. 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500@%:@ifdef __STDC__ 12501@%:@ include <limits.h> 12502@%:@else 12503@%:@ include <assert.h> 12504@%:@endif 12505 Syntax error 12506_ACEOF 12507if ac_fn_cxx_try_cpp "$LINENO"; then : 12508 12509else 12510 # Broken: fails on valid input. 12511continue 12512fi 12513rm -f conftest.err conftest.i conftest.$ac_ext 12514 12515 # OK, works on sane cases. Now check whether nonexistent headers 12516 # can be detected and how. 12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12518/* end confdefs.h. */ 12519@%:@include <ac_nonexistent.h> 12520_ACEOF 12521if ac_fn_cxx_try_cpp "$LINENO"; then : 12522 # Broken: success on invalid input. 12523continue 12524else 12525 # Passes both tests. 12526ac_preproc_ok=: 12527break 12528fi 12529rm -f conftest.err conftest.i conftest.$ac_ext 12530 12531done 12532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12533rm -f conftest.i conftest.err conftest.$ac_ext 12534if $ac_preproc_ok; then : 12535 12536else 12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12539as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12540See \`config.log' for more details" "$LINENO" 5; } 12541fi 12542 12543ac_ext=c 12544ac_cpp='$CPP $CPPFLAGS' 12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12547ac_compiler_gnu=$ac_cv_c_compiler_gnu 12548 12549else 12550 _lt_caught_CXX_error=yes 12551fi 12552 12553ac_ext=cpp 12554ac_cpp='$CXXCPP $CPPFLAGS' 12555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12558 12559archive_cmds_need_lc_CXX=no 12560allow_undefined_flag_CXX= 12561always_export_symbols_CXX=no 12562archive_expsym_cmds_CXX= 12563compiler_needs_object_CXX=no 12564export_dynamic_flag_spec_CXX= 12565hardcode_direct_CXX=no 12566hardcode_direct_absolute_CXX=no 12567hardcode_libdir_flag_spec_CXX= 12568hardcode_libdir_separator_CXX= 12569hardcode_minus_L_CXX=no 12570hardcode_shlibpath_var_CXX=unsupported 12571hardcode_automatic_CXX=no 12572inherit_rpath_CXX=no 12573module_cmds_CXX= 12574module_expsym_cmds_CXX= 12575link_all_deplibs_CXX=unknown 12576old_archive_cmds_CXX=$old_archive_cmds 12577reload_flag_CXX=$reload_flag 12578reload_cmds_CXX=$reload_cmds 12579no_undefined_flag_CXX= 12580whole_archive_flag_spec_CXX= 12581enable_shared_with_static_runtimes_CXX=no 12582 12583# Source file extension for C++ test sources. 12584ac_ext=cpp 12585 12586# Object file extension for compiled C++ test sources. 12587objext=o 12588objext_CXX=$objext 12589 12590# No sense in running all these tests if we already determined that 12591# the CXX compiler isn't working. Some variables (like enable_shared) 12592# are currently assumed to apply to all compilers on this platform, 12593# and will be corrupted by setting them based on a non-working compiler. 12594if test yes != "$_lt_caught_CXX_error"; then 12595 # Code to be used in simple compile tests 12596 lt_simple_compile_test_code="int some_variable = 0;" 12597 12598 # Code to be used in simple link tests 12599 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12600 12601 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12602 12603 12604 12605 12606 12607 12608# If no C compiler was specified, use CC. 12609LTCC=${LTCC-"$CC"} 12610 12611# If no C compiler flags were specified, use CFLAGS. 12612LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12613 12614# Allow CC to be a program name with arguments. 12615compiler=$CC 12616 12617 12618 # save warnings/boilerplate of simple test code 12619 ac_outfile=conftest.$ac_objext 12620echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12621eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12622_lt_compiler_boilerplate=`cat conftest.err` 12623$RM conftest* 12624 12625 ac_outfile=conftest.$ac_objext 12626echo "$lt_simple_link_test_code" >conftest.$ac_ext 12627eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12628_lt_linker_boilerplate=`cat conftest.err` 12629$RM -r conftest* 12630 12631 12632 # Allow CC to be a program name with arguments. 12633 lt_save_CC=$CC 12634 lt_save_CFLAGS=$CFLAGS 12635 lt_save_LD=$LD 12636 lt_save_GCC=$GCC 12637 GCC=$GXX 12638 lt_save_with_gnu_ld=$with_gnu_ld 12639 lt_save_path_LD=$lt_cv_path_LD 12640 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12641 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12642 else 12643 $as_unset lt_cv_prog_gnu_ld 12644 fi 12645 if test -n "${lt_cv_path_LDCXX+set}"; then 12646 lt_cv_path_LD=$lt_cv_path_LDCXX 12647 else 12648 $as_unset lt_cv_path_LD 12649 fi 12650 test -z "${LDCXX+set}" || LD=$LDCXX 12651 CC=${CXX-"c++"} 12652 CFLAGS=$CXXFLAGS 12653 compiler=$CC 12654 compiler_CXX=$CC 12655 func_cc_basename $compiler 12656cc_basename=$func_cc_basename_result 12657 12658 12659 if test -n "$compiler"; then 12660 # We don't want -fno-exception when compiling C++ code, so set the 12661 # no_builtin_flag separately 12662 if test yes = "$GXX"; then 12663 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12664 else 12665 lt_prog_compiler_no_builtin_flag_CXX= 12666 fi 12667 12668 if test yes = "$GXX"; then 12669 # Set up default GNU C++ configuration 12670 12671 12672 12673@%:@ Check whether --with-gnu-ld was given. 12674if test "${with_gnu_ld+set}" = set; then : 12675 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12676else 12677 with_gnu_ld=no 12678fi 12679 12680ac_prog=ld 12681if test yes = "$GCC"; then 12682 # Check if gcc -print-prog-name=ld gives a path. 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12684$as_echo_n "checking for ld used by $CC... " >&6; } 12685 case $host in 12686 *-*-mingw*) 12687 # gcc leaves a trailing carriage return, which upsets mingw 12688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12689 *) 12690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12691 esac 12692 case $ac_prog in 12693 # Accept absolute paths. 12694 [\\/]* | ?:[\\/]*) 12695 re_direlt='/[^/][^/]*/\.\./' 12696 # Canonicalize the pathname of ld 12697 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12698 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12699 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12700 done 12701 test -z "$LD" && LD=$ac_prog 12702 ;; 12703 "") 12704 # If it fails, then pretend we aren't using GCC. 12705 ac_prog=ld 12706 ;; 12707 *) 12708 # If it is relative, then search for the first ld in PATH. 12709 with_gnu_ld=unknown 12710 ;; 12711 esac 12712elif test yes = "$with_gnu_ld"; then 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12714$as_echo_n "checking for GNU ld... " >&6; } 12715else 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12717$as_echo_n "checking for non-GNU ld... " >&6; } 12718fi 12719if ${lt_cv_path_LD+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 if test -z "$LD"; then 12723 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12724 for ac_dir in $PATH; do 12725 IFS=$lt_save_ifs 12726 test -z "$ac_dir" && ac_dir=. 12727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12728 lt_cv_path_LD=$ac_dir/$ac_prog 12729 # Check to see if the program is GNU ld. I'd rather use --version, 12730 # but apparently some variants of GNU ld only accept -v. 12731 # Break only if it was the GNU/non-GNU ld that we prefer. 12732 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12733 *GNU* | *'with BFD'*) 12734 test no != "$with_gnu_ld" && break 12735 ;; 12736 *) 12737 test yes != "$with_gnu_ld" && break 12738 ;; 12739 esac 12740 fi 12741 done 12742 IFS=$lt_save_ifs 12743else 12744 lt_cv_path_LD=$LD # Let the user override the test with a path. 12745fi 12746fi 12747 12748LD=$lt_cv_path_LD 12749if test -n "$LD"; then 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12751$as_echo "$LD" >&6; } 12752else 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12754$as_echo "no" >&6; } 12755fi 12756test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12758$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12759if ${lt_cv_prog_gnu_ld+:} false; then : 12760 $as_echo_n "(cached) " >&6 12761else 12762 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12763case `$LD -v 2>&1 </dev/null` in 12764*GNU* | *'with BFD'*) 12765 lt_cv_prog_gnu_ld=yes 12766 ;; 12767*) 12768 lt_cv_prog_gnu_ld=no 12769 ;; 12770esac 12771fi 12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12773$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12774with_gnu_ld=$lt_cv_prog_gnu_ld 12775 12776 12777 12778 12779 12780 12781 12782 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12783 # archiving commands below assume that GNU ld is being used. 12784 if test yes = "$with_gnu_ld"; then 12785 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12786 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12787 12788 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12789 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12790 12791 # If archive_cmds runs LD, not CC, wlarc should be empty 12792 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12793 # investigate it a little bit more. (MM) 12794 wlarc='$wl' 12795 12796 # ancient GNU ld didn't support --whole-archive et. al. 12797 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12798 $GREP 'no-whole-archive' > /dev/null; then 12799 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12800 else 12801 whole_archive_flag_spec_CXX= 12802 fi 12803 else 12804 with_gnu_ld=no 12805 wlarc= 12806 12807 # A generic and very simple default shared library creation 12808 # command for GNU C++ for the case where it uses the native 12809 # linker, instead of GNU ld. If possible, this setting should 12810 # overridden to take advantage of the native linker features on 12811 # the platform it is being used on. 12812 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12813 fi 12814 12815 # Commands to make compiler produce verbose output that lists 12816 # what "hidden" libraries, object files and flags are used when 12817 # linking a shared library. 12818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 12819 12820 else 12821 GXX=no 12822 with_gnu_ld=no 12823 wlarc= 12824 fi 12825 12826 # PORTME: fill in a description of your system's C++ link characteristics 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12828$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12829 ld_shlibs_CXX=yes 12830 case $host_os in 12831 aix3*) 12832 # FIXME: insert proper C++ library support 12833 ld_shlibs_CXX=no 12834 ;; 12835 aix[4-9]*) 12836 if test ia64 = "$host_cpu"; then 12837 # On IA64, the linker does run time linking by default, so we don't 12838 # have to do anything special. 12839 aix_use_runtimelinking=no 12840 exp_sym_flag='-Bexport' 12841 no_entry_flag= 12842 else 12843 aix_use_runtimelinking=no 12844 12845 # Test if we are trying to use run time linking or normal 12846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12847 # have runtime linking enabled, and use it for executables. 12848 # For shared libraries, we enable/disable runtime linking 12849 # depending on the kind of the shared library created - 12850 # when "with_aix_soname,aix_use_runtimelinking" is: 12851 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12852 # "aix,yes" lib.so shared, rtl:yes, for executables 12853 # lib.a static archive 12854 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12855 # lib.a(lib.so.V) shared, rtl:no, for executables 12856 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12857 # lib.a(lib.so.V) shared, rtl:no 12858 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12859 # lib.a static archive 12860 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12861 for ld_flag in $LDFLAGS; do 12862 case $ld_flag in 12863 *-brtl*) 12864 aix_use_runtimelinking=yes 12865 break 12866 ;; 12867 esac 12868 done 12869 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12870 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12871 # so we don't have lib.a shared libs to link our executables. 12872 # We have to force runtime linking in this case. 12873 aix_use_runtimelinking=yes 12874 LDFLAGS="$LDFLAGS -Wl,-brtl" 12875 fi 12876 ;; 12877 esac 12878 12879 exp_sym_flag='-bexport' 12880 no_entry_flag='-bnoentry' 12881 fi 12882 12883 # When large executables or shared objects are built, AIX ld can 12884 # have problems creating the table of contents. If linking a library 12885 # or program results in "error TOC overflow" add -mminimal-toc to 12886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12888 12889 archive_cmds_CXX='' 12890 hardcode_direct_CXX=yes 12891 hardcode_direct_absolute_CXX=yes 12892 hardcode_libdir_separator_CXX=':' 12893 link_all_deplibs_CXX=yes 12894 file_list_spec_CXX='$wl-f,' 12895 case $with_aix_soname,$aix_use_runtimelinking in 12896 aix,*) ;; # no import file 12897 svr4,* | *,yes) # use import file 12898 # The Import File defines what to hardcode. 12899 hardcode_direct_CXX=no 12900 hardcode_direct_absolute_CXX=no 12901 ;; 12902 esac 12903 12904 if test yes = "$GXX"; then 12905 case $host_os in aix4.[012]|aix4.[012].*) 12906 # We only want to do this on AIX 4.2 and lower, the check 12907 # below for broken collect2 doesn't work under 4.3+ 12908 collect2name=`$CC -print-prog-name=collect2` 12909 if test -f "$collect2name" && 12910 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12911 then 12912 # We have reworked collect2 12913 : 12914 else 12915 # We have old collect2 12916 hardcode_direct_CXX=unsupported 12917 # It fails to find uninstalled libraries when the uninstalled 12918 # path is not listed in the libpath. Setting hardcode_minus_L 12919 # to unsupported forces relinking 12920 hardcode_minus_L_CXX=yes 12921 hardcode_libdir_flag_spec_CXX='-L$libdir' 12922 hardcode_libdir_separator_CXX= 12923 fi 12924 esac 12925 shared_flag='-shared' 12926 if test yes = "$aix_use_runtimelinking"; then 12927 shared_flag=$shared_flag' $wl-G' 12928 fi 12929 # Need to ensure runtime linking is disabled for the traditional 12930 # shared library, or the linker may eventually find shared libraries 12931 # /with/ Import File - we do not want to mix them. 12932 shared_flag_aix='-shared' 12933 shared_flag_svr4='-shared $wl-G' 12934 else 12935 # not using gcc 12936 if test ia64 = "$host_cpu"; then 12937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12938 # chokes on -Wl,-G. The following line is correct: 12939 shared_flag='-G' 12940 else 12941 if test yes = "$aix_use_runtimelinking"; then 12942 shared_flag='$wl-G' 12943 else 12944 shared_flag='$wl-bM:SRE' 12945 fi 12946 shared_flag_aix='$wl-bM:SRE' 12947 shared_flag_svr4='$wl-G' 12948 fi 12949 fi 12950 12951 export_dynamic_flag_spec_CXX='$wl-bexpall' 12952 # It seems that -bexpall does not export symbols beginning with 12953 # underscore (_), so it is better to generate a list of symbols to 12954 # export. 12955 always_export_symbols_CXX=yes 12956 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12957 # Warning - without using the other runtime loading flags (-brtl), 12958 # -berok will link without error, but may produce a broken library. 12959 # The "-G" linker flag allows undefined symbols. 12960 no_undefined_flag_CXX='-bernotok' 12961 # Determine the default libpath from the value encoded in an empty 12962 # executable. 12963 if test set = "${lt_cv_aix_libpath+set}"; then 12964 aix_libpath=$lt_cv_aix_libpath 12965else 12966 if ${lt_cv_aix_libpath__CXX+:} false; then : 12967 $as_echo_n "(cached) " >&6 12968else 12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12970/* end confdefs.h. */ 12971 12972int 12973main () 12974{ 12975 12976 ; 12977 return 0; 12978} 12979_ACEOF 12980if ac_fn_cxx_try_link "$LINENO"; then : 12981 12982 lt_aix_libpath_sed=' 12983 /Import File Strings/,/^$/ { 12984 /^0/ { 12985 s/^0 *\([^ ]*\) *$/\1/ 12986 p 12987 } 12988 }' 12989 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12990 # Check for a 64-bit object if we didn't find anything. 12991 if test -z "$lt_cv_aix_libpath__CXX"; then 12992 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12993 fi 12994fi 12995rm -f core conftest.err conftest.$ac_objext \ 12996 conftest$ac_exeext conftest.$ac_ext 12997 if test -z "$lt_cv_aix_libpath__CXX"; then 12998 lt_cv_aix_libpath__CXX=/usr/lib:/lib 12999 fi 13000 13001fi 13002 13003 aix_libpath=$lt_cv_aix_libpath__CXX 13004fi 13005 13006 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13007 13008 archive_expsym_cmds_CXX='$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 13009 else 13010 if test ia64 = "$host_cpu"; then 13011 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13012 allow_undefined_flag_CXX="-z nodefs" 13013 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 13014 else 13015 # Determine the default libpath from the value encoded in an 13016 # empty executable. 13017 if test set = "${lt_cv_aix_libpath+set}"; then 13018 aix_libpath=$lt_cv_aix_libpath 13019else 13020 if ${lt_cv_aix_libpath__CXX+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13024/* end confdefs.h. */ 13025 13026int 13027main () 13028{ 13029 13030 ; 13031 return 0; 13032} 13033_ACEOF 13034if ac_fn_cxx_try_link "$LINENO"; then : 13035 13036 lt_aix_libpath_sed=' 13037 /Import File Strings/,/^$/ { 13038 /^0/ { 13039 s/^0 *\([^ ]*\) *$/\1/ 13040 p 13041 } 13042 }' 13043 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13044 # Check for a 64-bit object if we didn't find anything. 13045 if test -z "$lt_cv_aix_libpath__CXX"; then 13046 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13047 fi 13048fi 13049rm -f core conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051 if test -z "$lt_cv_aix_libpath__CXX"; then 13052 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13053 fi 13054 13055fi 13056 13057 aix_libpath=$lt_cv_aix_libpath__CXX 13058fi 13059 13060 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13061 # Warning - without using the other run time loading flags, 13062 # -berok will link without error, but may produce a broken library. 13063 no_undefined_flag_CXX=' $wl-bernotok' 13064 allow_undefined_flag_CXX=' $wl-berok' 13065 if test yes = "$with_gnu_ld"; then 13066 # We only use this code for GNU lds that support --whole-archive. 13067 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13068 else 13069 # Exported symbols can be pulled into shared objects from archives 13070 whole_archive_flag_spec_CXX='$convenience' 13071 fi 13072 archive_cmds_need_lc_CXX=yes 13073 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13074 # -brtl affects multiple linker settings, -berok does not and is overridden later 13075 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13076 if test svr4 != "$with_aix_soname"; then 13077 # This is similar to how AIX traditionally builds its shared 13078 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13079 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 13080 fi 13081 if test aix != "$with_aix_soname"; then 13082 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 13083 else 13084 # used by -dlpreopen to get the symbols 13085 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13086 fi 13087 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13088 fi 13089 fi 13090 ;; 13091 13092 beos*) 13093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13094 allow_undefined_flag_CXX=unsupported 13095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13096 # support --undefined. This deserves some investigation. FIXME 13097 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13098 else 13099 ld_shlibs_CXX=no 13100 fi 13101 ;; 13102 13103 chorus*) 13104 case $cc_basename in 13105 *) 13106 # FIXME: insert proper C++ library support 13107 ld_shlibs_CXX=no 13108 ;; 13109 esac 13110 ;; 13111 13112 cygwin* | mingw* | pw32* | cegcc*) 13113 case $GXX,$cc_basename in 13114 ,cl* | no,cl*) 13115 # Native MSVC 13116 # hardcode_libdir_flag_spec is actually meaningless, as there is 13117 # no search path for DLLs. 13118 hardcode_libdir_flag_spec_CXX=' ' 13119 allow_undefined_flag_CXX=unsupported 13120 always_export_symbols_CXX=yes 13121 file_list_spec_CXX='@' 13122 # Tell ltmain to make .lib files, not .a files. 13123 libext=lib 13124 # Tell ltmain to make .dll files, not .so files. 13125 shrext_cmds=.dll 13126 # FIXME: Setting linknames here is a bad hack. 13127 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13128 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13129 cp "$export_symbols" "$output_objdir/$soname.def"; 13130 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13131 else 13132 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13133 fi~ 13134 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13135 linknames=' 13136 # The linker will not automatically build a static lib if we build a DLL. 13137 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13138 enable_shared_with_static_runtimes_CXX=yes 13139 # Don't use ranlib 13140 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13141 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13142 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13143 case $lt_outputfile in 13144 *.exe|*.EXE) ;; 13145 *) 13146 lt_outputfile=$lt_outputfile.exe 13147 lt_tool_outputfile=$lt_tool_outputfile.exe 13148 ;; 13149 esac~ 13150 func_to_tool_file "$lt_outputfile"~ 13151 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13152 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13153 $RM "$lt_outputfile.manifest"; 13154 fi' 13155 ;; 13156 *) 13157 # g++ 13158 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13159 # as there is no search path for DLLs. 13160 hardcode_libdir_flag_spec_CXX='-L$libdir' 13161 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13162 allow_undefined_flag_CXX=unsupported 13163 always_export_symbols_CXX=no 13164 enable_shared_with_static_runtimes_CXX=yes 13165 13166 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13168 # If the export-symbols file already is a .def file, use it as 13169 # is; otherwise, prepend EXPORTS... 13170 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13171 cp $export_symbols $output_objdir/$soname.def; 13172 else 13173 echo EXPORTS > $output_objdir/$soname.def; 13174 cat $export_symbols >> $output_objdir/$soname.def; 13175 fi~ 13176 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13177 else 13178 ld_shlibs_CXX=no 13179 fi 13180 ;; 13181 esac 13182 ;; 13183 darwin* | rhapsody*) 13184 13185 13186 archive_cmds_need_lc_CXX=no 13187 hardcode_direct_CXX=no 13188 hardcode_automatic_CXX=yes 13189 hardcode_shlibpath_var_CXX=unsupported 13190 if test yes = "$lt_cv_ld_force_load"; then 13191 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13192 13193 else 13194 whole_archive_flag_spec_CXX='' 13195 fi 13196 link_all_deplibs_CXX=yes 13197 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13198 case $cc_basename in 13199 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13200 *) _lt_dar_can_shared=$GCC ;; 13201 esac 13202 if test yes = "$_lt_dar_can_shared"; then 13203 output_verbose_link_cmd=func_echo_all 13204 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13205 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13206 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13207 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13208 if test yes != "$lt_cv_apple_cc_single_mod"; then 13209 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 13210 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 13211 fi 13212 13213 else 13214 ld_shlibs_CXX=no 13215 fi 13216 13217 ;; 13218 13219 os2*) 13220 hardcode_libdir_flag_spec_CXX='-L$libdir' 13221 hardcode_minus_L_CXX=yes 13222 allow_undefined_flag_CXX=unsupported 13223 shrext_cmds=.dll 13224 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13225 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13226 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13227 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13228 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13229 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13230 emximp -o $lib $output_objdir/$libname.def' 13231 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13234 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13235 prefix_cmds="$SED"~ 13236 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13237 prefix_cmds="$prefix_cmds -e 1d"; 13238 fi~ 13239 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13240 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13241 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13242 emximp -o $lib $output_objdir/$libname.def' 13243 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13244 enable_shared_with_static_runtimes_CXX=yes 13245 ;; 13246 13247 dgux*) 13248 case $cc_basename in 13249 ec++*) 13250 # FIXME: insert proper C++ library support 13251 ld_shlibs_CXX=no 13252 ;; 13253 ghcx*) 13254 # Green Hills C++ Compiler 13255 # FIXME: insert proper C++ library support 13256 ld_shlibs_CXX=no 13257 ;; 13258 *) 13259 # FIXME: insert proper C++ library support 13260 ld_shlibs_CXX=no 13261 ;; 13262 esac 13263 ;; 13264 13265 freebsd2.*) 13266 # C++ shared libraries reported to be fairly broken before 13267 # switch to ELF 13268 ld_shlibs_CXX=no 13269 ;; 13270 13271 freebsd-elf*) 13272 archive_cmds_need_lc_CXX=no 13273 ;; 13274 13275 freebsd* | dragonfly*) 13276 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13277 # conventions 13278 ld_shlibs_CXX=yes 13279 ;; 13280 13281 haiku*) 13282 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13283 link_all_deplibs_CXX=yes 13284 ;; 13285 13286 hpux9*) 13287 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13288 hardcode_libdir_separator_CXX=: 13289 export_dynamic_flag_spec_CXX='$wl-E' 13290 hardcode_direct_CXX=yes 13291 hardcode_minus_L_CXX=yes # Not in the search PATH, 13292 # but as the default 13293 # location of the library. 13294 13295 case $cc_basename in 13296 CC*) 13297 # FIXME: insert proper C++ library support 13298 ld_shlibs_CXX=no 13299 ;; 13300 aCC*) 13301 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13302 # Commands to make compiler produce verbose output that lists 13303 # what "hidden" libraries, object files and flags are used when 13304 # linking a shared library. 13305 # 13306 # There doesn't appear to be a way to prevent this compiler from 13307 # explicitly linking system object files so we need to strip them 13308 # from the output so that they don't get included in the library 13309 # dependencies. 13310 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13311 ;; 13312 *) 13313 if test yes = "$GXX"; then 13314 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13315 else 13316 # FIXME: insert proper C++ library support 13317 ld_shlibs_CXX=no 13318 fi 13319 ;; 13320 esac 13321 ;; 13322 13323 hpux10*|hpux11*) 13324 if test no = "$with_gnu_ld"; then 13325 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13326 hardcode_libdir_separator_CXX=: 13327 13328 case $host_cpu in 13329 hppa*64*|ia64*) 13330 ;; 13331 *) 13332 export_dynamic_flag_spec_CXX='$wl-E' 13333 ;; 13334 esac 13335 fi 13336 case $host_cpu in 13337 hppa*64*|ia64*) 13338 hardcode_direct_CXX=no 13339 hardcode_shlibpath_var_CXX=no 13340 ;; 13341 *) 13342 hardcode_direct_CXX=yes 13343 hardcode_direct_absolute_CXX=yes 13344 hardcode_minus_L_CXX=yes # Not in the search PATH, 13345 # but as the default 13346 # location of the library. 13347 ;; 13348 esac 13349 13350 case $cc_basename in 13351 CC*) 13352 # FIXME: insert proper C++ library support 13353 ld_shlibs_CXX=no 13354 ;; 13355 aCC*) 13356 case $host_cpu in 13357 hppa*64*) 13358 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13359 ;; 13360 ia64*) 13361 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13362 ;; 13363 *) 13364 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13365 ;; 13366 esac 13367 # Commands to make compiler produce verbose output that lists 13368 # what "hidden" libraries, object files and flags are used when 13369 # linking a shared library. 13370 # 13371 # There doesn't appear to be a way to prevent this compiler from 13372 # explicitly linking system object files so we need to strip them 13373 # from the output so that they don't get included in the library 13374 # dependencies. 13375 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13376 ;; 13377 *) 13378 if test yes = "$GXX"; then 13379 if test no = "$with_gnu_ld"; then 13380 case $host_cpu in 13381 hppa*64*) 13382 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13383 ;; 13384 ia64*) 13385 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13386 ;; 13387 *) 13388 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13389 ;; 13390 esac 13391 fi 13392 else 13393 # FIXME: insert proper C++ library support 13394 ld_shlibs_CXX=no 13395 fi 13396 ;; 13397 esac 13398 ;; 13399 13400 interix[3-9]*) 13401 hardcode_direct_CXX=no 13402 hardcode_shlibpath_var_CXX=no 13403 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13404 export_dynamic_flag_spec_CXX='$wl-E' 13405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13406 # Instead, shared libraries are loaded at an image base (0x10000000 by 13407 # default) and relocated if they conflict, which is a slow very memory 13408 # consuming and fragmenting process. To avoid this, we pick a random, 13409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13410 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13411 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13412 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13413 ;; 13414 irix5* | irix6*) 13415 case $cc_basename in 13416 CC*) 13417 # SGI C++ 13418 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13419 13420 # Archives containing C++ object files must be created using 13421 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13422 # necessary to make sure instantiated templates are included 13423 # in the archive. 13424 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13425 ;; 13426 *) 13427 if test yes = "$GXX"; then 13428 if test no = "$with_gnu_ld"; then 13429 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13430 else 13431 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 13432 fi 13433 fi 13434 link_all_deplibs_CXX=yes 13435 ;; 13436 esac 13437 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13438 hardcode_libdir_separator_CXX=: 13439 inherit_rpath_CXX=yes 13440 ;; 13441 13442 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13443 case $cc_basename in 13444 KCC*) 13445 # Kuck and Associates, Inc. (KAI) C++ Compiler 13446 13447 # KCC will only create a shared library if the output file 13448 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13449 # to its proper name (with version) after linking. 13450 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13451 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 13452 # Commands to make compiler produce verbose output that lists 13453 # what "hidden" libraries, object files and flags are used when 13454 # linking a shared library. 13455 # 13456 # There doesn't appear to be a way to prevent this compiler from 13457 # explicitly linking system object files so we need to strip them 13458 # from the output so that they don't get included in the library 13459 # dependencies. 13460 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13461 13462 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13463 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13464 13465 # Archives containing C++ object files must be created using 13466 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13467 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13468 ;; 13469 icpc* | ecpc* ) 13470 # Intel C++ 13471 with_gnu_ld=yes 13472 # version 8.0 and above of icpc choke on multiply defined symbols 13473 # if we add $predep_objects and $postdep_objects, however 7.1 and 13474 # earlier do not add the objects themselves. 13475 case `$CC -V 2>&1` in 13476 *"Version 7."*) 13477 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13478 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13479 ;; 13480 *) # Version 8.0 or newer 13481 tmp_idyn= 13482 case $host_cpu in 13483 ia64*) tmp_idyn=' -i_dynamic';; 13484 esac 13485 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13486 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13487 ;; 13488 esac 13489 archive_cmds_need_lc_CXX=no 13490 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13491 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13492 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13493 ;; 13494 pgCC* | pgcpp*) 13495 # Portland Group C++ compiler 13496 case `$CC -V` in 13497 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13498 prelink_cmds_CXX='tpldir=Template.dir~ 13499 rm -rf $tpldir~ 13500 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13501 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13502 old_archive_cmds_CXX='tpldir=Template.dir~ 13503 rm -rf $tpldir~ 13504 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13505 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13506 $RANLIB $oldlib' 13507 archive_cmds_CXX='tpldir=Template.dir~ 13508 rm -rf $tpldir~ 13509 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13510 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13511 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13512 rm -rf $tpldir~ 13513 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13514 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13515 ;; 13516 *) # Version 6 and above use weak symbols 13517 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13518 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13519 ;; 13520 esac 13521 13522 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13523 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13524 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13525 ;; 13526 cxx*) 13527 # Compaq C++ 13528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13529 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 13530 13531 runpath_var=LD_RUN_PATH 13532 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13533 hardcode_libdir_separator_CXX=: 13534 13535 # Commands to make compiler produce verbose output that lists 13536 # what "hidden" libraries, object files and flags are used when 13537 # linking a shared library. 13538 # 13539 # There doesn't appear to be a way to prevent this compiler from 13540 # explicitly linking system object files so we need to strip them 13541 # from the output so that they don't get included in the library 13542 # dependencies. 13543 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13544 ;; 13545 xl* | mpixl* | bgxl*) 13546 # IBM XL 8.0 on PPC, with GNU ld 13547 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13548 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13549 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13550 if test yes = "$supports_anon_versioning"; then 13551 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13553 echo "local: *; };" >> $output_objdir/$libname.ver~ 13554 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13555 fi 13556 ;; 13557 *) 13558 case `$CC -V 2>&1 | sed 5q` in 13559 *Sun\ C*) 13560 # Sun C++ 5.9 13561 no_undefined_flag_CXX=' -zdefs' 13562 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13563 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 13564 hardcode_libdir_flag_spec_CXX='-R$libdir' 13565 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13566 compiler_needs_object_CXX=yes 13567 13568 # Not sure whether something based on 13569 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13570 # would be better. 13571 output_verbose_link_cmd='func_echo_all' 13572 13573 # Archives containing C++ object files must be created using 13574 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13575 # necessary to make sure instantiated templates are included 13576 # in the archive. 13577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13578 ;; 13579 esac 13580 ;; 13581 esac 13582 ;; 13583 13584 lynxos*) 13585 # FIXME: insert proper C++ library support 13586 ld_shlibs_CXX=no 13587 ;; 13588 13589 m88k*) 13590 # FIXME: insert proper C++ library support 13591 ld_shlibs_CXX=no 13592 ;; 13593 13594 mvs*) 13595 case $cc_basename in 13596 cxx*) 13597 # FIXME: insert proper C++ library support 13598 ld_shlibs_CXX=no 13599 ;; 13600 *) 13601 # FIXME: insert proper C++ library support 13602 ld_shlibs_CXX=no 13603 ;; 13604 esac 13605 ;; 13606 13607 netbsd*) 13608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13609 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13610 wlarc= 13611 hardcode_libdir_flag_spec_CXX='-R$libdir' 13612 hardcode_direct_CXX=yes 13613 hardcode_shlibpath_var_CXX=no 13614 fi 13615 # Workaround some broken pre-1.5 toolchains 13616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13617 ;; 13618 13619 *nto* | *qnx*) 13620 ld_shlibs_CXX=yes 13621 ;; 13622 13623 openbsd* | bitrig*) 13624 if test -f /usr/libexec/ld.so; then 13625 hardcode_direct_CXX=yes 13626 hardcode_shlibpath_var_CXX=no 13627 hardcode_direct_absolute_CXX=yes 13628 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13629 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13631 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13632 export_dynamic_flag_spec_CXX='$wl-E' 13633 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13634 fi 13635 output_verbose_link_cmd=func_echo_all 13636 else 13637 ld_shlibs_CXX=no 13638 fi 13639 ;; 13640 13641 osf3* | osf4* | osf5*) 13642 case $cc_basename in 13643 KCC*) 13644 # Kuck and Associates, Inc. (KAI) C++ Compiler 13645 13646 # KCC will only create a shared library if the output file 13647 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13648 # to its proper name (with version) after linking. 13649 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13650 13651 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13652 hardcode_libdir_separator_CXX=: 13653 13654 # Archives containing C++ object files must be created using 13655 # the KAI C++ compiler. 13656 case $host in 13657 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13658 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13659 esac 13660 ;; 13661 RCC*) 13662 # Rational C++ 2.4.1 13663 # FIXME: insert proper C++ library support 13664 ld_shlibs_CXX=no 13665 ;; 13666 cxx*) 13667 case $host in 13668 osf3*) 13669 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13670 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13671 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13672 ;; 13673 *) 13674 allow_undefined_flag_CXX=' -expect_unresolved \*' 13675 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13676 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13677 echo "-hidden">> $lib.exp~ 13678 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 13679 $RM $lib.exp' 13680 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13681 ;; 13682 esac 13683 13684 hardcode_libdir_separator_CXX=: 13685 13686 # Commands to make compiler produce verbose output that lists 13687 # what "hidden" libraries, object files and flags are used when 13688 # linking a shared library. 13689 # 13690 # There doesn't appear to be a way to prevent this compiler from 13691 # explicitly linking system object files so we need to strip them 13692 # from the output so that they don't get included in the library 13693 # dependencies. 13694 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13695 ;; 13696 *) 13697 if test yes,no = "$GXX,$with_gnu_ld"; then 13698 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13699 case $host in 13700 osf3*) 13701 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13702 ;; 13703 *) 13704 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13705 ;; 13706 esac 13707 13708 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13709 hardcode_libdir_separator_CXX=: 13710 13711 # Commands to make compiler produce verbose output that lists 13712 # what "hidden" libraries, object files and flags are used when 13713 # linking a shared library. 13714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13715 13716 else 13717 # FIXME: insert proper C++ library support 13718 ld_shlibs_CXX=no 13719 fi 13720 ;; 13721 esac 13722 ;; 13723 13724 psos*) 13725 # FIXME: insert proper C++ library support 13726 ld_shlibs_CXX=no 13727 ;; 13728 13729 sunos4*) 13730 case $cc_basename in 13731 CC*) 13732 # Sun C++ 4.x 13733 # FIXME: insert proper C++ library support 13734 ld_shlibs_CXX=no 13735 ;; 13736 lcc*) 13737 # Lucid 13738 # FIXME: insert proper C++ library support 13739 ld_shlibs_CXX=no 13740 ;; 13741 *) 13742 # FIXME: insert proper C++ library support 13743 ld_shlibs_CXX=no 13744 ;; 13745 esac 13746 ;; 13747 13748 solaris*) 13749 case $cc_basename in 13750 CC* | sunCC*) 13751 # Sun C++ 4.2, 5.x and Centerline C++ 13752 archive_cmds_need_lc_CXX=yes 13753 no_undefined_flag_CXX=' -zdefs' 13754 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13756 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13757 13758 hardcode_libdir_flag_spec_CXX='-R$libdir' 13759 hardcode_shlibpath_var_CXX=no 13760 case $host_os in 13761 solaris2.[0-5] | solaris2.[0-5].*) ;; 13762 *) 13763 # The compiler driver will combine and reorder linker options, 13764 # but understands '-z linker_flag'. 13765 # Supported since Solaris 2.6 (maybe 2.5.1?) 13766 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13767 ;; 13768 esac 13769 link_all_deplibs_CXX=yes 13770 13771 output_verbose_link_cmd='func_echo_all' 13772 13773 # Archives containing C++ object files must be created using 13774 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13775 # necessary to make sure instantiated templates are included 13776 # in the archive. 13777 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13778 ;; 13779 gcx*) 13780 # Green Hills C++ Compiler 13781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13782 13783 # The C++ compiler must be used to create the archive. 13784 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13785 ;; 13786 *) 13787 # GNU C++ compiler with Solaris linker 13788 if test yes,no = "$GXX,$with_gnu_ld"; then 13789 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13790 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13791 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13792 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13793 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13794 13795 # Commands to make compiler produce verbose output that lists 13796 # what "hidden" libraries, object files and flags are used when 13797 # linking a shared library. 13798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13799 else 13800 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13801 # platform. 13802 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13803 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13804 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13805 13806 # Commands to make compiler produce verbose output that lists 13807 # what "hidden" libraries, object files and flags are used when 13808 # linking a shared library. 13809 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13810 fi 13811 13812 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13813 case $host_os in 13814 solaris2.[0-5] | solaris2.[0-5].*) ;; 13815 *) 13816 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13817 ;; 13818 esac 13819 fi 13820 ;; 13821 esac 13822 ;; 13823 13824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13825 no_undefined_flag_CXX='$wl-z,text' 13826 archive_cmds_need_lc_CXX=no 13827 hardcode_shlibpath_var_CXX=no 13828 runpath_var='LD_RUN_PATH' 13829 13830 case $cc_basename in 13831 CC*) 13832 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13833 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13834 ;; 13835 *) 13836 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13837 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13838 ;; 13839 esac 13840 ;; 13841 13842 sysv5* | sco3.2v5* | sco5v6*) 13843 # Note: We CANNOT use -z defs as we might desire, because we do not 13844 # link with -lc, and that would cause any symbols used from libc to 13845 # always be unresolved, which means just about no library would 13846 # ever link correctly. If we're not using GNU ld we use -z text 13847 # though, which does catch some bad symbols but isn't as heavy-handed 13848 # as -z defs. 13849 no_undefined_flag_CXX='$wl-z,text' 13850 allow_undefined_flag_CXX='$wl-z,nodefs' 13851 archive_cmds_need_lc_CXX=no 13852 hardcode_shlibpath_var_CXX=no 13853 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 13854 hardcode_libdir_separator_CXX=':' 13855 link_all_deplibs_CXX=yes 13856 export_dynamic_flag_spec_CXX='$wl-Bexport' 13857 runpath_var='LD_RUN_PATH' 13858 13859 case $cc_basename in 13860 CC*) 13861 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13862 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13863 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13864 '"$old_archive_cmds_CXX" 13865 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13866 '"$reload_cmds_CXX" 13867 ;; 13868 *) 13869 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13870 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13871 ;; 13872 esac 13873 ;; 13874 13875 tandem*) 13876 case $cc_basename in 13877 NCC*) 13878 # NonStop-UX NCC 3.20 13879 # FIXME: insert proper C++ library support 13880 ld_shlibs_CXX=no 13881 ;; 13882 *) 13883 # FIXME: insert proper C++ library support 13884 ld_shlibs_CXX=no 13885 ;; 13886 esac 13887 ;; 13888 13889 vxworks*) 13890 # FIXME: insert proper C++ library support 13891 ld_shlibs_CXX=no 13892 ;; 13893 13894 *) 13895 # FIXME: insert proper C++ library support 13896 ld_shlibs_CXX=no 13897 ;; 13898 esac 13899 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13901$as_echo "$ld_shlibs_CXX" >&6; } 13902 test no = "$ld_shlibs_CXX" && can_build_shared=no 13903 13904 GCC_CXX=$GXX 13905 LD_CXX=$LD 13906 13907 ## CAVEAT EMPTOR: 13908 ## There is no encapsulation within the following macros, do not change 13909 ## the running order or otherwise move them around unless you know exactly 13910 ## what you are doing... 13911 # Dependencies to place before and after the object being linked: 13912predep_objects_CXX= 13913postdep_objects_CXX= 13914predeps_CXX= 13915postdeps_CXX= 13916compiler_lib_search_path_CXX= 13917 13918cat > conftest.$ac_ext <<_LT_EOF 13919class Foo 13920{ 13921public: 13922 Foo (void) { a = 0; } 13923private: 13924 int a; 13925}; 13926_LT_EOF 13927 13928 13929_lt_libdeps_save_CFLAGS=$CFLAGS 13930case "$CC $CFLAGS " in #( 13931*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13932*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13933*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13934esac 13935 13936if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13937 (eval $ac_compile) 2>&5 13938 ac_status=$? 13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13940 test $ac_status = 0; }; then 13941 # Parse the compiler output and extract the necessary 13942 # objects, libraries and library flags. 13943 13944 # Sentinel used to keep track of whether or not we are before 13945 # the conftest object file. 13946 pre_test_object_deps_done=no 13947 13948 for p in `eval "$output_verbose_link_cmd"`; do 13949 case $prev$p in 13950 13951 -L* | -R* | -l*) 13952 # Some compilers place space between "-{L,R}" and the path. 13953 # Remove the space. 13954 if test x-L = "$p" || 13955 test x-R = "$p"; then 13956 prev=$p 13957 continue 13958 fi 13959 13960 # Expand the sysroot to ease extracting the directories later. 13961 if test -z "$prev"; then 13962 case $p in 13963 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13964 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13965 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13966 esac 13967 fi 13968 case $p in 13969 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13970 esac 13971 if test no = "$pre_test_object_deps_done"; then 13972 case $prev in 13973 -L | -R) 13974 # Internal compiler library paths should come after those 13975 # provided the user. The postdeps already come after the 13976 # user supplied libs so there is no need to process them. 13977 if test -z "$compiler_lib_search_path_CXX"; then 13978 compiler_lib_search_path_CXX=$prev$p 13979 else 13980 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 13981 fi 13982 ;; 13983 # The "-l" case would never come before the object being 13984 # linked, so don't bother handling this case. 13985 esac 13986 else 13987 if test -z "$postdeps_CXX"; then 13988 postdeps_CXX=$prev$p 13989 else 13990 postdeps_CXX="${postdeps_CXX} $prev$p" 13991 fi 13992 fi 13993 prev= 13994 ;; 13995 13996 *.lto.$objext) ;; # Ignore GCC LTO objects 13997 *.$objext) 13998 # This assumes that the test object file only shows up 13999 # once in the compiler output. 14000 if test "$p" = "conftest.$objext"; then 14001 pre_test_object_deps_done=yes 14002 continue 14003 fi 14004 14005 if test no = "$pre_test_object_deps_done"; then 14006 if test -z "$predep_objects_CXX"; then 14007 predep_objects_CXX=$p 14008 else 14009 predep_objects_CXX="$predep_objects_CXX $p" 14010 fi 14011 else 14012 if test -z "$postdep_objects_CXX"; then 14013 postdep_objects_CXX=$p 14014 else 14015 postdep_objects_CXX="$postdep_objects_CXX $p" 14016 fi 14017 fi 14018 ;; 14019 14020 *) ;; # Ignore the rest. 14021 14022 esac 14023 done 14024 14025 # Clean up. 14026 rm -f a.out a.exe 14027else 14028 echo "libtool.m4: error: problem compiling CXX test program" 14029fi 14030 14031$RM -f confest.$objext 14032CFLAGS=$_lt_libdeps_save_CFLAGS 14033 14034# PORTME: override above test on systems where it is broken 14035case $host_os in 14036interix[3-9]*) 14037 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14038 # hack all around it, let's just trust "g++" to DTRT. 14039 predep_objects_CXX= 14040 postdep_objects_CXX= 14041 postdeps_CXX= 14042 ;; 14043esac 14044 14045 14046case " $postdeps_CXX " in 14047*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14048esac 14049 compiler_lib_search_dirs_CXX= 14050if test -n "${compiler_lib_search_path_CXX}"; then 14051 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14052fi 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 lt_prog_compiler_wl_CXX= 14085lt_prog_compiler_pic_CXX= 14086lt_prog_compiler_static_CXX= 14087 14088 14089 # C++ specific cases for pic, static, wl, etc. 14090 if test yes = "$GXX"; then 14091 lt_prog_compiler_wl_CXX='-Wl,' 14092 lt_prog_compiler_static_CXX='-static' 14093 14094 case $host_os in 14095 aix*) 14096 # All AIX code is PIC. 14097 if test ia64 = "$host_cpu"; then 14098 # AIX 5 now supports IA64 processor 14099 lt_prog_compiler_static_CXX='-Bstatic' 14100 fi 14101 lt_prog_compiler_pic_CXX='-fPIC' 14102 ;; 14103 14104 amigaos*) 14105 case $host_cpu in 14106 powerpc) 14107 # see comment about AmigaOS4 .so support 14108 lt_prog_compiler_pic_CXX='-fPIC' 14109 ;; 14110 m68k) 14111 # FIXME: we need at least 68020 code to build shared libraries, but 14112 # adding the '-m68020' flag to GCC prevents building anything better, 14113 # like '-m68040'. 14114 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14115 ;; 14116 esac 14117 ;; 14118 14119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14120 # PIC is the default for these OSes. 14121 ;; 14122 mingw* | cygwin* | os2* | pw32* | cegcc*) 14123 # This hack is so that the source file can tell whether it is being 14124 # built for inclusion in a dll (and should export symbols for example). 14125 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14126 # (--disable-auto-import) libraries 14127 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14128 case $host_os in 14129 os2*) 14130 lt_prog_compiler_static_CXX='$wl-static' 14131 ;; 14132 esac 14133 ;; 14134 darwin* | rhapsody*) 14135 # PIC is the default on this platform 14136 # Common symbols not allowed in MH_DYLIB files 14137 lt_prog_compiler_pic_CXX='-fno-common' 14138 ;; 14139 *djgpp*) 14140 # DJGPP does not support shared libraries at all 14141 lt_prog_compiler_pic_CXX= 14142 ;; 14143 haiku*) 14144 # PIC is the default for Haiku. 14145 # The "-static" flag exists, but is broken. 14146 lt_prog_compiler_static_CXX= 14147 ;; 14148 interix[3-9]*) 14149 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14150 # Instead, we relocate shared libraries at runtime. 14151 ;; 14152 sysv4*MP*) 14153 if test -d /usr/nec; then 14154 lt_prog_compiler_pic_CXX=-Kconform_pic 14155 fi 14156 ;; 14157 hpux*) 14158 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14159 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14160 # sets the default TLS model and affects inlining. 14161 case $host_cpu in 14162 hppa*64*) 14163 ;; 14164 *) 14165 lt_prog_compiler_pic_CXX='-fPIC' 14166 ;; 14167 esac 14168 ;; 14169 *qnx* | *nto*) 14170 # QNX uses GNU C++, but need to define -shared option too, otherwise 14171 # it will coredump. 14172 lt_prog_compiler_pic_CXX='-fPIC -shared' 14173 ;; 14174 *) 14175 lt_prog_compiler_pic_CXX='-fPIC' 14176 ;; 14177 esac 14178 else 14179 case $host_os in 14180 aix[4-9]*) 14181 # All AIX code is PIC. 14182 if test ia64 = "$host_cpu"; then 14183 # AIX 5 now supports IA64 processor 14184 lt_prog_compiler_static_CXX='-Bstatic' 14185 else 14186 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14187 fi 14188 ;; 14189 chorus*) 14190 case $cc_basename in 14191 cxch68*) 14192 # Green Hills C++ Compiler 14193 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14194 ;; 14195 esac 14196 ;; 14197 mingw* | cygwin* | os2* | pw32* | cegcc*) 14198 # This hack is so that the source file can tell whether it is being 14199 # built for inclusion in a dll (and should export symbols for example). 14200 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14201 ;; 14202 dgux*) 14203 case $cc_basename in 14204 ec++*) 14205 lt_prog_compiler_pic_CXX='-KPIC' 14206 ;; 14207 ghcx*) 14208 # Green Hills C++ Compiler 14209 lt_prog_compiler_pic_CXX='-pic' 14210 ;; 14211 *) 14212 ;; 14213 esac 14214 ;; 14215 freebsd* | dragonfly*) 14216 # FreeBSD uses GNU C++ 14217 ;; 14218 hpux9* | hpux10* | hpux11*) 14219 case $cc_basename in 14220 CC*) 14221 lt_prog_compiler_wl_CXX='-Wl,' 14222 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14223 if test ia64 != "$host_cpu"; then 14224 lt_prog_compiler_pic_CXX='+Z' 14225 fi 14226 ;; 14227 aCC*) 14228 lt_prog_compiler_wl_CXX='-Wl,' 14229 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14230 case $host_cpu in 14231 hppa*64*|ia64*) 14232 # +Z the default 14233 ;; 14234 *) 14235 lt_prog_compiler_pic_CXX='+Z' 14236 ;; 14237 esac 14238 ;; 14239 *) 14240 ;; 14241 esac 14242 ;; 14243 interix*) 14244 # This is c89, which is MS Visual C++ (no shared libs) 14245 # Anyone wants to do a port? 14246 ;; 14247 irix5* | irix6* | nonstopux*) 14248 case $cc_basename in 14249 CC*) 14250 lt_prog_compiler_wl_CXX='-Wl,' 14251 lt_prog_compiler_static_CXX='-non_shared' 14252 # CC pic flag -KPIC is the default. 14253 ;; 14254 *) 14255 ;; 14256 esac 14257 ;; 14258 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14259 case $cc_basename in 14260 KCC*) 14261 # KAI C++ Compiler 14262 lt_prog_compiler_wl_CXX='--backend -Wl,' 14263 lt_prog_compiler_pic_CXX='-fPIC' 14264 ;; 14265 ecpc* ) 14266 # old Intel C++ for x86_64, which still supported -KPIC. 14267 lt_prog_compiler_wl_CXX='-Wl,' 14268 lt_prog_compiler_pic_CXX='-KPIC' 14269 lt_prog_compiler_static_CXX='-static' 14270 ;; 14271 icpc* ) 14272 # Intel C++, used to be incompatible with GCC. 14273 # ICC 10 doesn't accept -KPIC any more. 14274 lt_prog_compiler_wl_CXX='-Wl,' 14275 lt_prog_compiler_pic_CXX='-fPIC' 14276 lt_prog_compiler_static_CXX='-static' 14277 ;; 14278 pgCC* | pgcpp*) 14279 # Portland Group C++ compiler 14280 lt_prog_compiler_wl_CXX='-Wl,' 14281 lt_prog_compiler_pic_CXX='-fpic' 14282 lt_prog_compiler_static_CXX='-Bstatic' 14283 ;; 14284 cxx*) 14285 # Compaq C++ 14286 # Make sure the PIC flag is empty. It appears that all Alpha 14287 # Linux and Compaq Tru64 Unix objects are PIC. 14288 lt_prog_compiler_pic_CXX= 14289 lt_prog_compiler_static_CXX='-non_shared' 14290 ;; 14291 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14292 # IBM XL 8.0, 9.0 on PPC and BlueGene 14293 lt_prog_compiler_wl_CXX='-Wl,' 14294 lt_prog_compiler_pic_CXX='-qpic' 14295 lt_prog_compiler_static_CXX='-qstaticlink' 14296 ;; 14297 *) 14298 case `$CC -V 2>&1 | sed 5q` in 14299 *Sun\ C*) 14300 # Sun C++ 5.9 14301 lt_prog_compiler_pic_CXX='-KPIC' 14302 lt_prog_compiler_static_CXX='-Bstatic' 14303 lt_prog_compiler_wl_CXX='-Qoption ld ' 14304 ;; 14305 esac 14306 ;; 14307 esac 14308 ;; 14309 lynxos*) 14310 ;; 14311 m88k*) 14312 ;; 14313 mvs*) 14314 case $cc_basename in 14315 cxx*) 14316 lt_prog_compiler_pic_CXX='-W c,exportall' 14317 ;; 14318 *) 14319 ;; 14320 esac 14321 ;; 14322 netbsd* | netbsdelf*-gnu) 14323 ;; 14324 *qnx* | *nto*) 14325 # QNX uses GNU C++, but need to define -shared option too, otherwise 14326 # it will coredump. 14327 lt_prog_compiler_pic_CXX='-fPIC -shared' 14328 ;; 14329 osf3* | osf4* | osf5*) 14330 case $cc_basename in 14331 KCC*) 14332 lt_prog_compiler_wl_CXX='--backend -Wl,' 14333 ;; 14334 RCC*) 14335 # Rational C++ 2.4.1 14336 lt_prog_compiler_pic_CXX='-pic' 14337 ;; 14338 cxx*) 14339 # Digital/Compaq C++ 14340 lt_prog_compiler_wl_CXX='-Wl,' 14341 # Make sure the PIC flag is empty. It appears that all Alpha 14342 # Linux and Compaq Tru64 Unix objects are PIC. 14343 lt_prog_compiler_pic_CXX= 14344 lt_prog_compiler_static_CXX='-non_shared' 14345 ;; 14346 *) 14347 ;; 14348 esac 14349 ;; 14350 psos*) 14351 ;; 14352 solaris*) 14353 case $cc_basename in 14354 CC* | sunCC*) 14355 # Sun C++ 4.2, 5.x and Centerline C++ 14356 lt_prog_compiler_pic_CXX='-KPIC' 14357 lt_prog_compiler_static_CXX='-Bstatic' 14358 lt_prog_compiler_wl_CXX='-Qoption ld ' 14359 ;; 14360 gcx*) 14361 # Green Hills C++ Compiler 14362 lt_prog_compiler_pic_CXX='-PIC' 14363 ;; 14364 *) 14365 ;; 14366 esac 14367 ;; 14368 sunos4*) 14369 case $cc_basename in 14370 CC*) 14371 # Sun C++ 4.x 14372 lt_prog_compiler_pic_CXX='-pic' 14373 lt_prog_compiler_static_CXX='-Bstatic' 14374 ;; 14375 lcc*) 14376 # Lucid 14377 lt_prog_compiler_pic_CXX='-pic' 14378 ;; 14379 *) 14380 ;; 14381 esac 14382 ;; 14383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14384 case $cc_basename in 14385 CC*) 14386 lt_prog_compiler_wl_CXX='-Wl,' 14387 lt_prog_compiler_pic_CXX='-KPIC' 14388 lt_prog_compiler_static_CXX='-Bstatic' 14389 ;; 14390 esac 14391 ;; 14392 tandem*) 14393 case $cc_basename in 14394 NCC*) 14395 # NonStop-UX NCC 3.20 14396 lt_prog_compiler_pic_CXX='-KPIC' 14397 ;; 14398 *) 14399 ;; 14400 esac 14401 ;; 14402 vxworks*) 14403 ;; 14404 *) 14405 lt_prog_compiler_can_build_shared_CXX=no 14406 ;; 14407 esac 14408 fi 14409 14410case $host_os in 14411 # For platforms that do not support PIC, -DPIC is meaningless: 14412 *djgpp*) 14413 lt_prog_compiler_pic_CXX= 14414 ;; 14415 *) 14416 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 14417 ;; 14418esac 14419 14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14421$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14422if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14423 $as_echo_n "(cached) " >&6 14424else 14425 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14428$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14429lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14430 14431# 14432# Check to make sure the PIC flag actually works. 14433# 14434if test -n "$lt_prog_compiler_pic_CXX"; then 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14436$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14437if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14438 $as_echo_n "(cached) " >&6 14439else 14440 lt_cv_prog_compiler_pic_works_CXX=no 14441 ac_outfile=conftest.$ac_objext 14442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14443 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 14444 # Insert the option either (1) after the last *FLAGS variable, or 14445 # (2) before a word containing "conftest.", or (3) at the end. 14446 # Note that $ac_compile itself does not contain backslashes and begins 14447 # with a dollar sign (not a hyphen), so the echo should work correctly. 14448 # The option is referenced via a variable to avoid confusing sed. 14449 lt_compile=`echo "$ac_compile" | $SED \ 14450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14452 -e 's:$: $lt_compiler_flag:'` 14453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14454 (eval "$lt_compile" 2>conftest.err) 14455 ac_status=$? 14456 cat conftest.err >&5 14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14458 if (exit $ac_status) && test -s "$ac_outfile"; then 14459 # The compiler can only warn and ignore the option if not recognized 14460 # So say no if there are warnings other than the usual output. 14461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14464 lt_cv_prog_compiler_pic_works_CXX=yes 14465 fi 14466 fi 14467 $RM conftest* 14468 14469fi 14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14471$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14472 14473if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14474 case $lt_prog_compiler_pic_CXX in 14475 "" | " "*) ;; 14476 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14477 esac 14478else 14479 lt_prog_compiler_pic_CXX= 14480 lt_prog_compiler_can_build_shared_CXX=no 14481fi 14482 14483fi 14484 14485 14486 14487 14488 14489# 14490# Check to make sure the static flag actually works. 14491# 14492wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14494$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14495if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497else 14498 lt_cv_prog_compiler_static_works_CXX=no 14499 save_LDFLAGS=$LDFLAGS 14500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14501 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14503 # The linker can only warn and ignore the option if not recognized 14504 # So say no if there are warnings 14505 if test -s conftest.err; then 14506 # Append any errors to the config.log. 14507 cat conftest.err 1>&5 14508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14510 if diff conftest.exp conftest.er2 >/dev/null; then 14511 lt_cv_prog_compiler_static_works_CXX=yes 14512 fi 14513 else 14514 lt_cv_prog_compiler_static_works_CXX=yes 14515 fi 14516 fi 14517 $RM -r conftest* 14518 LDFLAGS=$save_LDFLAGS 14519 14520fi 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14522$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14523 14524if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14525 : 14526else 14527 lt_prog_compiler_static_CXX= 14528fi 14529 14530 14531 14532 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14534$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14535if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14536 $as_echo_n "(cached) " >&6 14537else 14538 lt_cv_prog_compiler_c_o_CXX=no 14539 $RM -r conftest 2>/dev/null 14540 mkdir conftest 14541 cd conftest 14542 mkdir out 14543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14544 14545 lt_compiler_flag="-o out/conftest2.$ac_objext" 14546 # Insert the option either (1) after the last *FLAGS variable, or 14547 # (2) before a word containing "conftest.", or (3) at the end. 14548 # Note that $ac_compile itself does not contain backslashes and begins 14549 # with a dollar sign (not a hyphen), so the echo should work correctly. 14550 lt_compile=`echo "$ac_compile" | $SED \ 14551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14553 -e 's:$: $lt_compiler_flag:'` 14554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14555 (eval "$lt_compile" 2>out/conftest.err) 14556 ac_status=$? 14557 cat out/conftest.err >&5 14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14559 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14560 then 14561 # The compiler can only warn and ignore the option if not recognized 14562 # So say no if there are warnings 14563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14566 lt_cv_prog_compiler_c_o_CXX=yes 14567 fi 14568 fi 14569 chmod u+w . 2>&5 14570 $RM conftest* 14571 # SGI C++ compiler will create directory out/ii_files/ for 14572 # template instantiation 14573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14574 $RM out/* && rmdir out 14575 cd .. 14576 $RM -r conftest 14577 $RM conftest* 14578 14579fi 14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14581$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14582 14583 14584 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14587if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14588 $as_echo_n "(cached) " >&6 14589else 14590 lt_cv_prog_compiler_c_o_CXX=no 14591 $RM -r conftest 2>/dev/null 14592 mkdir conftest 14593 cd conftest 14594 mkdir out 14595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14596 14597 lt_compiler_flag="-o out/conftest2.$ac_objext" 14598 # Insert the option either (1) after the last *FLAGS variable, or 14599 # (2) before a word containing "conftest.", or (3) at the end. 14600 # Note that $ac_compile itself does not contain backslashes and begins 14601 # with a dollar sign (not a hyphen), so the echo should work correctly. 14602 lt_compile=`echo "$ac_compile" | $SED \ 14603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14605 -e 's:$: $lt_compiler_flag:'` 14606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14607 (eval "$lt_compile" 2>out/conftest.err) 14608 ac_status=$? 14609 cat out/conftest.err >&5 14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14611 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14612 then 14613 # The compiler can only warn and ignore the option if not recognized 14614 # So say no if there are warnings 14615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14618 lt_cv_prog_compiler_c_o_CXX=yes 14619 fi 14620 fi 14621 chmod u+w . 2>&5 14622 $RM conftest* 14623 # SGI C++ compiler will create directory out/ii_files/ for 14624 # template instantiation 14625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14626 $RM out/* && rmdir out 14627 cd .. 14628 $RM -r conftest 14629 $RM conftest* 14630 14631fi 14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14633$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14634 14635 14636 14637 14638hard_links=nottested 14639if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14640 # do not overwrite the value of need_locks provided by the user 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14642$as_echo_n "checking if we can lock with hard links... " >&6; } 14643 hard_links=yes 14644 $RM conftest* 14645 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14646 touch conftest.a 14647 ln conftest.a conftest.b 2>&5 || hard_links=no 14648 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14650$as_echo "$hard_links" >&6; } 14651 if test no = "$hard_links"; then 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14653$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14654 need_locks=warn 14655 fi 14656else 14657 need_locks=no 14658fi 14659 14660 14661 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14663$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14664 14665 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14666 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14667 case $host_os in 14668 aix[4-9]*) 14669 # If we're using GNU nm, then we don't want the "-C" option. 14670 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14671 # Without the "-l" option, or with the "-B" option, AIX nm treats 14672 # weak defined symbols like other global defined symbols, whereas 14673 # GNU nm marks them as "W". 14674 # While the 'weak' keyword is ignored in the Export File, we need 14675 # it in the Import File for the 'aix-soname' feature, so we have 14676 # to replace the "-B" option with "-P" for AIX nm. 14677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14678 export_symbols_cmds_CXX='$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' 14679 else 14680 export_symbols_cmds_CXX='`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' 14681 fi 14682 ;; 14683 pw32*) 14684 export_symbols_cmds_CXX=$ltdll_cmds 14685 ;; 14686 cygwin* | mingw* | cegcc*) 14687 case $cc_basename in 14688 cl*) 14689 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14690 ;; 14691 *) 14692 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14693 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14694 ;; 14695 esac 14696 ;; 14697 linux* | k*bsd*-gnu | gnu*) 14698 link_all_deplibs_CXX=no 14699 ;; 14700 *) 14701 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14702 ;; 14703 esac 14704 14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14706$as_echo "$ld_shlibs_CXX" >&6; } 14707test no = "$ld_shlibs_CXX" && can_build_shared=no 14708 14709with_gnu_ld_CXX=$with_gnu_ld 14710 14711 14712 14713 14714 14715 14716# 14717# Do we need to explicitly link libc? 14718# 14719case "x$archive_cmds_need_lc_CXX" in 14720x|xyes) 14721 # Assume -lc should be added 14722 archive_cmds_need_lc_CXX=yes 14723 14724 if test yes,yes = "$GCC,$enable_shared"; then 14725 case $archive_cmds_CXX in 14726 *'~'*) 14727 # FIXME: we may have to deal with multi-command sequences. 14728 ;; 14729 '$CC '*) 14730 # Test whether the compiler implicitly links with -lc since on some 14731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14732 # to ld, don't add -lc before -lgcc. 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14734$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14735if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14736 $as_echo_n "(cached) " >&6 14737else 14738 $RM conftest* 14739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14740 14741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14742 (eval $ac_compile) 2>&5 14743 ac_status=$? 14744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14745 test $ac_status = 0; } 2>conftest.err; then 14746 soname=conftest 14747 lib=conftest 14748 libobjs=conftest.$ac_objext 14749 deplibs= 14750 wl=$lt_prog_compiler_wl_CXX 14751 pic_flag=$lt_prog_compiler_pic_CXX 14752 compiler_flags=-v 14753 linker_flags=-v 14754 verstring= 14755 output_objdir=. 14756 libname=conftest 14757 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14758 allow_undefined_flag_CXX= 14759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14760 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14761 ac_status=$? 14762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14763 test $ac_status = 0; } 14764 then 14765 lt_cv_archive_cmds_need_lc_CXX=no 14766 else 14767 lt_cv_archive_cmds_need_lc_CXX=yes 14768 fi 14769 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14770 else 14771 cat conftest.err 1>&5 14772 fi 14773 $RM conftest* 14774 14775fi 14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14777$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14778 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14779 ;; 14780 esac 14781 fi 14782 ;; 14783esac 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14847$as_echo_n "checking dynamic linker characteristics... " >&6; } 14848 14849library_names_spec= 14850libname_spec='lib$name' 14851soname_spec= 14852shrext_cmds=.so 14853postinstall_cmds= 14854postuninstall_cmds= 14855finish_cmds= 14856finish_eval= 14857shlibpath_var= 14858shlibpath_overrides_runpath=unknown 14859version_type=none 14860dynamic_linker="$host_os ld.so" 14861sys_lib_dlsearch_path_spec="/lib /usr/lib" 14862need_lib_prefix=unknown 14863hardcode_into_libs=no 14864 14865# when you set need_version to no, make sure it does not cause -set_version 14866# flags to be left without arguments 14867need_version=unknown 14868 14869 14870 14871case $host_os in 14872aix3*) 14873 version_type=linux # correct to gnu/linux during the next big refactor 14874 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14875 shlibpath_var=LIBPATH 14876 14877 # AIX 3 has no versioning support, so we append a major version to the name. 14878 soname_spec='$libname$release$shared_ext$major' 14879 ;; 14880 14881aix[4-9]*) 14882 version_type=linux # correct to gnu/linux during the next big refactor 14883 need_lib_prefix=no 14884 need_version=no 14885 hardcode_into_libs=yes 14886 if test ia64 = "$host_cpu"; then 14887 # AIX 5 supports IA64 14888 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14889 shlibpath_var=LD_LIBRARY_PATH 14890 else 14891 # With GCC up to 2.95.x, collect2 would create an import file 14892 # for dependence libraries. The import file would start with 14893 # the line '#! .'. This would cause the generated library to 14894 # depend on '.', always an invalid library. This was fixed in 14895 # development snapshots of GCC prior to 3.0. 14896 case $host_os in 14897 aix4 | aix4.[01] | aix4.[01].*) 14898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14899 echo ' yes ' 14900 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14901 : 14902 else 14903 can_build_shared=no 14904 fi 14905 ;; 14906 esac 14907 # Using Import Files as archive members, it is possible to support 14908 # filename-based versioning of shared library archives on AIX. While 14909 # this would work for both with and without runtime linking, it will 14910 # prevent static linking of such archives. So we do filename-based 14911 # shared library versioning with .so extension only, which is used 14912 # when both runtime linking and shared linking is enabled. 14913 # Unfortunately, runtime linking may impact performance, so we do 14914 # not want this to be the default eventually. Also, we use the 14915 # versioned .so libs for executables only if there is the -brtl 14916 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14917 # To allow for filename-based versioning support, we need to create 14918 # libNAME.so.V as an archive file, containing: 14919 # *) an Import File, referring to the versioned filename of the 14920 # archive as well as the shared archive member, telling the 14921 # bitwidth (32 or 64) of that shared object, and providing the 14922 # list of exported symbols of that shared object, eventually 14923 # decorated with the 'weak' keyword 14924 # *) the shared object with the F_LOADONLY flag set, to really avoid 14925 # it being seen by the linker. 14926 # At run time we better use the real file rather than another symlink, 14927 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14928 14929 case $with_aix_soname,$aix_use_runtimelinking in 14930 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14931 # soname into executable. Probably we can add versioning support to 14932 # collect2, so additional links can be useful in future. 14933 aix,yes) # traditional libtool 14934 dynamic_linker='AIX unversionable lib.so' 14935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14936 # instead of lib<name>.a to let people know that these are not 14937 # typical AIX shared libraries. 14938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14939 ;; 14940 aix,no) # traditional AIX only 14941 dynamic_linker='AIX lib.a(lib.so.V)' 14942 # We preserve .a as extension for shared libraries through AIX4.2 14943 # and later when we are not doing run time linking. 14944 library_names_spec='$libname$release.a $libname.a' 14945 soname_spec='$libname$release$shared_ext$major' 14946 ;; 14947 svr4,*) # full svr4 only 14948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14950 # We do not specify a path in Import Files, so LIBPATH fires. 14951 shlibpath_overrides_runpath=yes 14952 ;; 14953 *,yes) # both, prefer svr4 14954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14956 # unpreferred sharedlib libNAME.a needs extra handling 14957 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"' 14958 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"' 14959 # We do not specify a path in Import Files, so LIBPATH fires. 14960 shlibpath_overrides_runpath=yes 14961 ;; 14962 *,no) # both, prefer aix 14963 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14964 library_names_spec='$libname$release.a $libname.a' 14965 soname_spec='$libname$release$shared_ext$major' 14966 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14967 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)' 14968 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"' 14969 ;; 14970 esac 14971 shlibpath_var=LIBPATH 14972 fi 14973 ;; 14974 14975amigaos*) 14976 case $host_cpu in 14977 powerpc) 14978 # Since July 2007 AmigaOS4 officially supports .so libraries. 14979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14981 ;; 14982 m68k) 14983 library_names_spec='$libname.ixlibrary $libname.a' 14984 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14985 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' 14986 ;; 14987 esac 14988 ;; 14989 14990beos*) 14991 library_names_spec='$libname$shared_ext' 14992 dynamic_linker="$host_os ld.so" 14993 shlibpath_var=LIBRARY_PATH 14994 ;; 14995 14996bsdi[45]*) 14997 version_type=linux # correct to gnu/linux during the next big refactor 14998 need_version=no 14999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15000 soname_spec='$libname$release$shared_ext$major' 15001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15002 shlibpath_var=LD_LIBRARY_PATH 15003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15005 # the default ld.so.conf also contains /usr/contrib/lib and 15006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15007 # libtool to hard-code these into programs 15008 ;; 15009 15010cygwin* | mingw* | pw32* | cegcc*) 15011 version_type=windows 15012 shrext_cmds=.dll 15013 need_version=no 15014 need_lib_prefix=no 15015 15016 case $GCC,$cc_basename in 15017 yes,*) 15018 # gcc 15019 library_names_spec='$libname.dll.a' 15020 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15021 postinstall_cmds='base_file=`basename \$file`~ 15022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15023 dldir=$destdir/`dirname \$dlpath`~ 15024 test -d \$dldir || mkdir -p \$dldir~ 15025 $install_prog $dir/$dlname \$dldir/$dlname~ 15026 chmod a+x \$dldir/$dlname~ 15027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15029 fi' 15030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15031 dlpath=$dir/\$dldll~ 15032 $RM \$dlpath' 15033 shlibpath_overrides_runpath=yes 15034 15035 case $host_os in 15036 cygwin*) 15037 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15038 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15039 15040 ;; 15041 mingw* | cegcc*) 15042 # MinGW DLLs use traditional 'lib' prefix 15043 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15044 ;; 15045 pw32*) 15046 # pw32 DLLs use 'pw' prefix rather than 'lib' 15047 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15048 ;; 15049 esac 15050 dynamic_linker='Win32 ld.exe' 15051 ;; 15052 15053 *,cl*) 15054 # Native MSVC 15055 libname_spec='$name' 15056 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15057 library_names_spec='$libname.dll.lib' 15058 15059 case $build_os in 15060 mingw*) 15061 sys_lib_search_path_spec= 15062 lt_save_ifs=$IFS 15063 IFS=';' 15064 for lt_path in $LIB 15065 do 15066 IFS=$lt_save_ifs 15067 # Let DOS variable expansion print the short 8.3 style file name. 15068 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15069 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15070 done 15071 IFS=$lt_save_ifs 15072 # Convert to MSYS style. 15073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15074 ;; 15075 cygwin*) 15076 # Convert to unix form, then to dos form, then back to unix form 15077 # but this time dos style (no spaces!) so that the unix form looks 15078 # like /cygdrive/c/PROGRA~1:/cygdr... 15079 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15080 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15081 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15082 ;; 15083 *) 15084 sys_lib_search_path_spec=$LIB 15085 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15086 # It is most probably a Windows format PATH. 15087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15088 else 15089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15090 fi 15091 # FIXME: find the short name or the path components, as spaces are 15092 # common. (e.g. "Program Files" -> "PROGRA~1") 15093 ;; 15094 esac 15095 15096 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15097 postinstall_cmds='base_file=`basename \$file`~ 15098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15099 dldir=$destdir/`dirname \$dlpath`~ 15100 test -d \$dldir || mkdir -p \$dldir~ 15101 $install_prog $dir/$dlname \$dldir/$dlname' 15102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15103 dlpath=$dir/\$dldll~ 15104 $RM \$dlpath' 15105 shlibpath_overrides_runpath=yes 15106 dynamic_linker='Win32 link.exe' 15107 ;; 15108 15109 *) 15110 # Assume MSVC wrapper 15111 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15112 dynamic_linker='Win32 ld.exe' 15113 ;; 15114 esac 15115 # FIXME: first we should search . and the directory the executable is in 15116 shlibpath_var=PATH 15117 ;; 15118 15119darwin* | rhapsody*) 15120 dynamic_linker="$host_os dyld" 15121 version_type=darwin 15122 need_lib_prefix=no 15123 need_version=no 15124 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15125 soname_spec='$libname$release$major$shared_ext' 15126 shlibpath_overrides_runpath=yes 15127 shlibpath_var=DYLD_LIBRARY_PATH 15128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15129 15130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15131 ;; 15132 15133dgux*) 15134 version_type=linux # correct to gnu/linux during the next big refactor 15135 need_lib_prefix=no 15136 need_version=no 15137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15138 soname_spec='$libname$release$shared_ext$major' 15139 shlibpath_var=LD_LIBRARY_PATH 15140 ;; 15141 15142freebsd* | dragonfly*) 15143 # DragonFly does not have aout. When/if they implement a new 15144 # versioning mechanism, adjust this. 15145 if test -x /usr/bin/objformat; then 15146 objformat=`/usr/bin/objformat` 15147 else 15148 case $host_os in 15149 freebsd[23].*) objformat=aout ;; 15150 *) objformat=elf ;; 15151 esac 15152 fi 15153 version_type=freebsd-$objformat 15154 case $version_type in 15155 freebsd-elf*) 15156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15157 soname_spec='$libname$release$shared_ext$major' 15158 need_version=no 15159 need_lib_prefix=no 15160 ;; 15161 freebsd-*) 15162 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15163 need_version=yes 15164 ;; 15165 esac 15166 shlibpath_var=LD_LIBRARY_PATH 15167 case $host_os in 15168 freebsd2.*) 15169 shlibpath_overrides_runpath=yes 15170 ;; 15171 freebsd3.[01]* | freebsdelf3.[01]*) 15172 shlibpath_overrides_runpath=yes 15173 hardcode_into_libs=yes 15174 ;; 15175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15177 shlibpath_overrides_runpath=no 15178 hardcode_into_libs=yes 15179 ;; 15180 *) # from 4.6 on, and DragonFly 15181 shlibpath_overrides_runpath=yes 15182 hardcode_into_libs=yes 15183 ;; 15184 esac 15185 ;; 15186 15187haiku*) 15188 version_type=linux # correct to gnu/linux during the next big refactor 15189 need_lib_prefix=no 15190 need_version=no 15191 dynamic_linker="$host_os runtime_loader" 15192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15193 soname_spec='$libname$release$shared_ext$major' 15194 shlibpath_var=LIBRARY_PATH 15195 shlibpath_overrides_runpath=no 15196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15197 hardcode_into_libs=yes 15198 ;; 15199 15200hpux9* | hpux10* | hpux11*) 15201 # Give a soname corresponding to the major version so that dld.sl refuses to 15202 # link against other versions. 15203 version_type=sunos 15204 need_lib_prefix=no 15205 need_version=no 15206 case $host_cpu in 15207 ia64*) 15208 shrext_cmds='.so' 15209 hardcode_into_libs=yes 15210 dynamic_linker="$host_os dld.so" 15211 shlibpath_var=LD_LIBRARY_PATH 15212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15214 soname_spec='$libname$release$shared_ext$major' 15215 if test 32 = "$HPUX_IA64_MODE"; then 15216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15217 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15218 else 15219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15220 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15221 fi 15222 ;; 15223 hppa*64*) 15224 shrext_cmds='.sl' 15225 hardcode_into_libs=yes 15226 dynamic_linker="$host_os dld.sl" 15227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15230 soname_spec='$libname$release$shared_ext$major' 15231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15233 ;; 15234 *) 15235 shrext_cmds='.sl' 15236 dynamic_linker="$host_os dld.sl" 15237 shlibpath_var=SHLIB_PATH 15238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15240 soname_spec='$libname$release$shared_ext$major' 15241 ;; 15242 esac 15243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15244 postinstall_cmds='chmod 555 $lib' 15245 # or fails outright, so override atomically: 15246 install_override_mode=555 15247 ;; 15248 15249interix[3-9]*) 15250 version_type=linux # correct to gnu/linux during the next big refactor 15251 need_lib_prefix=no 15252 need_version=no 15253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15254 soname_spec='$libname$release$shared_ext$major' 15255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15256 shlibpath_var=LD_LIBRARY_PATH 15257 shlibpath_overrides_runpath=no 15258 hardcode_into_libs=yes 15259 ;; 15260 15261irix5* | irix6* | nonstopux*) 15262 case $host_os in 15263 nonstopux*) version_type=nonstopux ;; 15264 *) 15265 if test yes = "$lt_cv_prog_gnu_ld"; then 15266 version_type=linux # correct to gnu/linux during the next big refactor 15267 else 15268 version_type=irix 15269 fi ;; 15270 esac 15271 need_lib_prefix=no 15272 need_version=no 15273 soname_spec='$libname$release$shared_ext$major' 15274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15275 case $host_os in 15276 irix5* | nonstopux*) 15277 libsuff= shlibsuff= 15278 ;; 15279 *) 15280 case $LD in # libtool.m4 will add one of these switches to LD 15281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15282 libsuff= shlibsuff= libmagic=32-bit;; 15283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15284 libsuff=32 shlibsuff=N32 libmagic=N32;; 15285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15286 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15287 *) libsuff= shlibsuff= libmagic=never-match;; 15288 esac 15289 ;; 15290 esac 15291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15292 shlibpath_overrides_runpath=no 15293 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15294 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15295 hardcode_into_libs=yes 15296 ;; 15297 15298# No shared lib support for Linux oldld, aout, or coff. 15299linux*oldld* | linux*aout* | linux*coff*) 15300 dynamic_linker=no 15301 ;; 15302 15303linux*android*) 15304 version_type=none # Android doesn't support versioned libraries. 15305 need_lib_prefix=no 15306 need_version=no 15307 library_names_spec='$libname$release$shared_ext' 15308 soname_spec='$libname$release$shared_ext' 15309 finish_cmds= 15310 shlibpath_var=LD_LIBRARY_PATH 15311 shlibpath_overrides_runpath=yes 15312 15313 # This implies no fast_install, which is unacceptable. 15314 # Some rework will be needed to allow for fast_install 15315 # before this can be enabled. 15316 hardcode_into_libs=yes 15317 15318 dynamic_linker='Android linker' 15319 # Don't embed -rpath directories since the linker doesn't support them. 15320 hardcode_libdir_flag_spec_CXX='-L$libdir' 15321 ;; 15322 15323# This must be glibc/ELF. 15324linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15325 version_type=linux # correct to gnu/linux during the next big refactor 15326 need_lib_prefix=no 15327 need_version=no 15328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15329 soname_spec='$libname$release$shared_ext$major' 15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15331 shlibpath_var=LD_LIBRARY_PATH 15332 shlibpath_overrides_runpath=no 15333 15334 # Some binutils ld are patched to set DT_RUNPATH 15335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15336 $as_echo_n "(cached) " >&6 15337else 15338 lt_cv_shlibpath_overrides_runpath=no 15339 save_LDFLAGS=$LDFLAGS 15340 save_libdir=$libdir 15341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344/* end confdefs.h. */ 15345 15346int 15347main () 15348{ 15349 15350 ; 15351 return 0; 15352} 15353_ACEOF 15354if ac_fn_cxx_try_link "$LINENO"; then : 15355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15356 lt_cv_shlibpath_overrides_runpath=yes 15357fi 15358fi 15359rm -f core conftest.err conftest.$ac_objext \ 15360 conftest$ac_exeext conftest.$ac_ext 15361 LDFLAGS=$save_LDFLAGS 15362 libdir=$save_libdir 15363 15364fi 15365 15366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15367 15368 # This implies no fast_install, which is unacceptable. 15369 # Some rework will be needed to allow for fast_install 15370 # before this can be enabled. 15371 hardcode_into_libs=yes 15372 15373 # Ideally, we could use ldconfig to report *all* directores which are 15374 # searched for libraries, however this is still not possible. Aside from not 15375 # being certain /sbin/ldconfig is available, command 15376 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15377 # even though it is searched at run-time. Try to do the best guess by 15378 # appending ld.so.conf contents (and includes) to the search path. 15379 if test -f /etc/ld.so.conf; then 15380 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' ' '` 15381 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15382 fi 15383 15384 # We used to test for /lib/ld.so.1 and disable shared libraries on 15385 # powerpc, because MkLinux only supported shared libraries with the 15386 # GNU dynamic linker. Since this was broken with cross compilers, 15387 # most powerpc-linux boxes support dynamic linking these days and 15388 # people can always --disable-shared, the test was removed, and we 15389 # assume the GNU/Linux dynamic linker is in use. 15390 dynamic_linker='GNU/Linux ld.so' 15391 ;; 15392 15393netbsdelf*-gnu) 15394 version_type=linux 15395 need_lib_prefix=no 15396 need_version=no 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15398 soname_spec='${libname}${release}${shared_ext}$major' 15399 shlibpath_var=LD_LIBRARY_PATH 15400 shlibpath_overrides_runpath=no 15401 hardcode_into_libs=yes 15402 dynamic_linker='NetBSD ld.elf_so' 15403 ;; 15404 15405netbsd*) 15406 version_type=sunos 15407 need_lib_prefix=no 15408 need_version=no 15409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15412 dynamic_linker='NetBSD (a.out) ld.so' 15413 else 15414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15415 soname_spec='$libname$release$shared_ext$major' 15416 dynamic_linker='NetBSD ld.elf_so' 15417 fi 15418 shlibpath_var=LD_LIBRARY_PATH 15419 shlibpath_overrides_runpath=yes 15420 hardcode_into_libs=yes 15421 ;; 15422 15423newsos6) 15424 version_type=linux # correct to gnu/linux during the next big refactor 15425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15426 shlibpath_var=LD_LIBRARY_PATH 15427 shlibpath_overrides_runpath=yes 15428 ;; 15429 15430*nto* | *qnx*) 15431 version_type=qnx 15432 need_lib_prefix=no 15433 need_version=no 15434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15435 soname_spec='$libname$release$shared_ext$major' 15436 shlibpath_var=LD_LIBRARY_PATH 15437 shlibpath_overrides_runpath=no 15438 hardcode_into_libs=yes 15439 dynamic_linker='ldqnx.so' 15440 ;; 15441 15442openbsd* | bitrig*) 15443 version_type=sunos 15444 sys_lib_dlsearch_path_spec=/usr/lib 15445 need_lib_prefix=no 15446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15447 need_version=no 15448 else 15449 need_version=yes 15450 fi 15451 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15453 shlibpath_var=LD_LIBRARY_PATH 15454 shlibpath_overrides_runpath=yes 15455 ;; 15456 15457os2*) 15458 libname_spec='$name' 15459 version_type=windows 15460 shrext_cmds=.dll 15461 need_version=no 15462 need_lib_prefix=no 15463 # OS/2 can only load a DLL with a base name of 8 characters or less. 15464 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15465 v=$($ECHO $release$versuffix | tr -d .-); 15466 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15467 $ECHO $n$v`$shared_ext' 15468 library_names_spec='${libname}_dll.$libext' 15469 dynamic_linker='OS/2 ld.exe' 15470 shlibpath_var=BEGINLIBPATH 15471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15473 postinstall_cmds='base_file=`basename \$file`~ 15474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15475 dldir=$destdir/`dirname \$dlpath`~ 15476 test -d \$dldir || mkdir -p \$dldir~ 15477 $install_prog $dir/$dlname \$dldir/$dlname~ 15478 chmod a+x \$dldir/$dlname~ 15479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15481 fi' 15482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15483 dlpath=$dir/\$dldll~ 15484 $RM \$dlpath' 15485 ;; 15486 15487osf3* | osf4* | osf5*) 15488 version_type=osf 15489 need_lib_prefix=no 15490 need_version=no 15491 soname_spec='$libname$release$shared_ext$major' 15492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15493 shlibpath_var=LD_LIBRARY_PATH 15494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15496 ;; 15497 15498rdos*) 15499 dynamic_linker=no 15500 ;; 15501 15502solaris*) 15503 version_type=linux # correct to gnu/linux during the next big refactor 15504 need_lib_prefix=no 15505 need_version=no 15506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15507 soname_spec='$libname$release$shared_ext$major' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 shlibpath_overrides_runpath=yes 15510 hardcode_into_libs=yes 15511 # ldd complains unless libraries are executable 15512 postinstall_cmds='chmod +x $lib' 15513 ;; 15514 15515sunos4*) 15516 version_type=sunos 15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=yes 15521 if test yes = "$with_gnu_ld"; then 15522 need_lib_prefix=no 15523 fi 15524 need_version=yes 15525 ;; 15526 15527sysv4 | sysv4.3*) 15528 version_type=linux # correct to gnu/linux during the next big refactor 15529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15530 soname_spec='$libname$release$shared_ext$major' 15531 shlibpath_var=LD_LIBRARY_PATH 15532 case $host_vendor in 15533 sni) 15534 shlibpath_overrides_runpath=no 15535 need_lib_prefix=no 15536 runpath_var=LD_RUN_PATH 15537 ;; 15538 siemens) 15539 need_lib_prefix=no 15540 ;; 15541 motorola) 15542 need_lib_prefix=no 15543 need_version=no 15544 shlibpath_overrides_runpath=no 15545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15546 ;; 15547 esac 15548 ;; 15549 15550sysv4*MP*) 15551 if test -d /usr/nec; then 15552 version_type=linux # correct to gnu/linux during the next big refactor 15553 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15554 soname_spec='$libname$shared_ext.$major' 15555 shlibpath_var=LD_LIBRARY_PATH 15556 fi 15557 ;; 15558 15559sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15560 version_type=sco 15561 need_lib_prefix=no 15562 need_version=no 15563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15564 soname_spec='$libname$release$shared_ext$major' 15565 shlibpath_var=LD_LIBRARY_PATH 15566 shlibpath_overrides_runpath=yes 15567 hardcode_into_libs=yes 15568 if test yes = "$with_gnu_ld"; then 15569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15570 else 15571 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15572 case $host_os in 15573 sco3.2v5*) 15574 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15575 ;; 15576 esac 15577 fi 15578 sys_lib_dlsearch_path_spec='/usr/lib' 15579 ;; 15580 15581tpf*) 15582 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15583 version_type=linux # correct to gnu/linux during the next big refactor 15584 need_lib_prefix=no 15585 need_version=no 15586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15587 shlibpath_var=LD_LIBRARY_PATH 15588 shlibpath_overrides_runpath=no 15589 hardcode_into_libs=yes 15590 ;; 15591 15592uts4*) 15593 version_type=linux # correct to gnu/linux during the next big refactor 15594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15595 soname_spec='$libname$release$shared_ext$major' 15596 shlibpath_var=LD_LIBRARY_PATH 15597 ;; 15598 15599*) 15600 dynamic_linker=no 15601 ;; 15602esac 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15604$as_echo "$dynamic_linker" >&6; } 15605test no = "$dynamic_linker" && can_build_shared=no 15606 15607variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15608if test yes = "$GCC"; then 15609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15610fi 15611 15612if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15613 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15614fi 15615 15616if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15617 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15618fi 15619 15620# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15621configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15622 15623# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15624func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15625 15626# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15627configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15669$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15670hardcode_action_CXX= 15671if test -n "$hardcode_libdir_flag_spec_CXX" || 15672 test -n "$runpath_var_CXX" || 15673 test yes = "$hardcode_automatic_CXX"; then 15674 15675 # We can hardcode non-existent directories. 15676 if test no != "$hardcode_direct_CXX" && 15677 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15678 # have to relink, otherwise we might link with an installed library 15679 # when we should be linking with a yet-to-be-installed one 15680 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15681 test no != "$hardcode_minus_L_CXX"; then 15682 # Linking always hardcodes the temporary library directory. 15683 hardcode_action_CXX=relink 15684 else 15685 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15686 hardcode_action_CXX=immediate 15687 fi 15688else 15689 # We cannot hardcode anything, or else we can only hardcode existing 15690 # directories. 15691 hardcode_action_CXX=unsupported 15692fi 15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15694$as_echo "$hardcode_action_CXX" >&6; } 15695 15696if test relink = "$hardcode_action_CXX" || 15697 test yes = "$inherit_rpath_CXX"; then 15698 # Fast installation is not supported 15699 enable_fast_install=no 15700elif test yes = "$shlibpath_overrides_runpath" || 15701 test no = "$enable_shared"; then 15702 # Fast installation is not necessary 15703 enable_fast_install=needless 15704fi 15705 15706 15707 15708 15709 15710 15711 15712 fi # test -n "$compiler" 15713 15714 CC=$lt_save_CC 15715 CFLAGS=$lt_save_CFLAGS 15716 LDCXX=$LD 15717 LD=$lt_save_LD 15718 GCC=$lt_save_GCC 15719 with_gnu_ld=$lt_save_with_gnu_ld 15720 lt_cv_path_LDCXX=$lt_cv_path_LD 15721 lt_cv_path_LD=$lt_save_path_LD 15722 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15723 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15724fi # test yes != "$_lt_caught_CXX_error" 15725 15726ac_ext=c 15727ac_cpp='$CPP $CPPFLAGS' 15728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15730ac_compiler_gnu=$ac_cv_c_compiler_gnu 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 ac_config_commands="$ac_config_commands libtool" 15747 15748 15749 15750 15751# Only expand once: 15752 15753 15754 15755 15756 15757@%:@ Check whether --enable-debug was given. 15758if test "${enable_debug+set}" = set; then : 15759 enableval=$enable_debug; 15760else 15761 enable_debug=no 15762fi 15763 15764@%:@ Check whether --enable-gprof was given. 15765if test "${enable_gprof+set}" = set; then : 15766 enableval=$enable_gprof; 15767else 15768 enable_gprof=no 15769fi 15770 15771@%:@ Check whether --enable-universal_binary was given. 15772if test "${enable_universal_binary+set}" = set; then : 15773 enableval=$enable_universal_binary; 15774else 15775 enable_universal_binary=no 15776fi 15777 15778@%:@ Check whether --enable-arch-ppc was given. 15779if test "${enable_arch_ppc+set}" = set; then : 15780 enableval=$enable_arch_ppc; 15781else 15782 enable_arch_ppc=no 15783fi 15784 15785@%:@ Check whether --enable-arch-ppc64 was given. 15786if test "${enable_arch_ppc64+set}" = set; then : 15787 enableval=$enable_arch_ppc64; 15788else 15789 enable_arch_ppc64=no 15790fi 15791 15792@%:@ Check whether --enable-arch-i386 was given. 15793if test "${enable_arch_i386+set}" = set; then : 15794 enableval=$enable_arch_i386; 15795else 15796 enable_arch_i386=no 15797fi 15798 15799@%:@ Check whether --enable-arch-x86_64 was given. 15800if test "${enable_arch_x86_64+set}" = set; then : 15801 enableval=$enable_arch_x86_64; 15802else 15803 enable_arch_x86_64=no 15804fi 15805 15806@%:@ Check whether --enable-arch-arm64 was given. 15807if test "${enable_arch_arm64+set}" = set; then : 15808 enableval=$enable_arch_arm64; 15809else 15810 enable_arch_arm64=no 15811fi 15812 15813@%:@ Check whether --enable-staticlibs was given. 15814if test "${enable_staticlibs+set}" = set; then : 15815 enableval=$enable_staticlibs; 15816else 15817 enable_staticlibs=no 15818fi 15819 15820@%:@ Check whether --enable-stream_missing was given. 15821if test "${enable_stream_missing+set}" = set; then : 15822 enableval=$enable_stream_missing; 15823else 15824 enable_stream_missing=no 15825fi 15826 15827 15828 15829@%:@ Check whether --with-macosx-sdk was given. 15830if test "${with_macosx_sdk+set}" = set; then : 15831 withval=$with_macosx_sdk; 15832else 15833 with_macosx_sdk=no 15834fi 15835 15836 15837@%:@ Check whether --with-macosx-version-min was given. 15838if test "${with_macosx_version_min+set}" = set; then : 15839 withval=$with_macosx_version_min; 15840else 15841 with_macosx_version_min=no 15842fi 15843 15844 15845@%:@ Check whether --with-dll was given. 15846if test "${with_dll+set}" = set; then : 15847 withval=$with_dll; 15848else 15849 with_dll=no 15850fi 15851 15852 15853@%:@ Check whether --with-libmediainfo-name was given. 15854if test "${with_libmediainfo_name+set}" = set; then : 15855 withval=$with_libmediainfo_name; 15856else 15857 with_libmediainfo_name=mediainfo 15858fi 15859 15860 15861 15862 15863if test -e ../../../../ZenLib/Project/GNU/Library/libzen-config; then 15864 enable_unicode="$(../../../../ZenLib/Project/GNU/Library/libzen-config Unicode)" 15865elif test "$(libzen-config Exists)" = "yes" ; then 15866 enable_unicode="$(libzen-config Unicode)" 15867else 15868 if ${PKG_CONFIG:-pkg-config} --exists libzen; then 15869 enable_unicode="$(${PKG_CONFIG:-pkg-config} --variable=Unicode libzen)" 15870 else 15871 as_fn_error $? "libzen configuration is not found" "$LINENO" 5 15872 fi 15873fi 15874 15875 15876 15877 15878 15879 15880if test "$enable_unicode" = "yes"; then 15881 $as_echo "@%:@define UNICODE 1" >>confdefs.h 15882 15883 MediaInfo_CXXFLAGS="$MediaInfo_CXXFLAGS -DUNICODE" 15884 MediaInfo_Unicode="yes" 15885else 15886 MediaInfo_Unicode="no" 15887fi 15888 15889if test "$with_dll" = "yes"; then 15890 $as_echo "@%:@define MEDIAINFO_DLL_RUNTIME 1" >>confdefs.h 15891 15892 LIBS="$LIBS -ldl" 15893fi 15894 15895ac_ext=cpp 15896ac_cpp='$CXXCPP $CPPFLAGS' 15897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15900 15901if test "$enable_unicode" = "yes"; then 15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15903/* end confdefs.h. */ 15904 15905 #include <sstream> 15906 int main () {std::wstringstream message; message<<1.0; return 0;} 15907_ACEOF 15908if ac_fn_cxx_try_compile "$LINENO"; then : 15909 15910else 15911 enable_stream_missing="yes" 15912fi 15913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15914else 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917 15918 #include <sstream> 15919 int main () {std::stringstream message; message<<1.0; return 0;} 15920_ACEOF 15921if ac_fn_cxx_try_compile "$LINENO"; then : 15922 15923else 15924 enable_stream_missing="yes" 15925fi 15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15927fi 15928 15929if test "$enable_stream_missing" = "yes"; then 15930 CXXFLAGS="$CXXFLAGS -DSTREAM_MISSING" 15931fi 15932 15933if test "$GXX" = yes ; then 15934 if test "$enable_debug" = "yes"; then 15935 CFLAGS="$CFLAGS -O0 -g -Wall -Wundef" 15936 CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy" 15937 else 15938 CFLAGS="$CFLAGS -O2" 15939 CXXFLAGS="$CXXFLAGS -O2" 15940 fi 15941 if test "$enable_gprof" = "yes"; then 15942 CFLAGS="$CFLAGS -pg -g" 15943 CXXFLAGS="$CXXFLAGS -pg -g" 15944 fi 15945fi 15946 15947 15948MediaInfoLib_LibName="$with_libmediainfo_name" 15949 15950if test "$with_dll" != "yes"; then 15951 if test -e ../../../../MediaInfoLib/Project/GNU/Library/lib$with_libmediainfo_name.la; then 15952 CXXFLAGS="$CXXFLAGS $(../../../../MediaInfoLib/Project/GNU/Library/libmediainfo-config CXXFLAGS)" 15953 if test "$enable_staticlibs" = "yes"; then 15954 with_mediainfolib="builtin (static)" 15955 LIBS="$LIBS $(../../../../MediaInfoLib/Project/GNU/Library/libmediainfo-config LIBS_Static)" 15956 else 15957 with_mediainfolib="builtin" 15958 LIBS="$LIBS $(../../../../MediaInfoLib/Project/GNU/Library/libmediainfo-config LIBS)" 15959 fi 15960 elif test "$(libmediainfo-config Exists)" = "yes" ; then 15961 CXXFLAGS="$CXXFLAGS $(libmediainfo-config CXXFLAGS)" 15962 if test "$enable_staticlibs" = "yes"; then 15963 with_mediainfolib="system (static)" 15964 LIBS="$LIBS $(libmediainfo-config LIBS_Static)" 15965 else 15966 with_mediainfolib="system" 15967 LIBS="$LIBS $(libmediainfo-config LIBS)" 15968 fi 15969 else 15970 if ${PKG_CONFIG:-pkg-config} --exists libmediainfo; then 15971 CXXFLAGS="$CXXFLAGS $(${PKG_CONFIG:-pkg-config} --cflags libmediainfo)" 15972 if test "$enable_staticlibs" = "yes"; then 15973 with_mediainfolib="system (static)" 15974 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --variable=Libs_Static libmediainfo)" 15975 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --static --libs libmediainfo)" 15976 else 15977 with_mediainfolib="system" 15978 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --libs libmediainfo)" 15979 fi 15980 else 15981 as_fn_error $? "libmediainfo configuration is not found" "$LINENO" 5 15982 fi 15983 fi 15984else 15985 with_mediainfolib="load at runtime" 15986fi 15987 15988if test -e ../../../../ZenLib/Project/GNU/Library/libzen.la; then 15989 CXXFLAGS="$CXXFLAGS $(../../../../ZenLib/Project/GNU/Library/libzen-config CXXFLAGS)" 15990 MediaInfoLib_CXXFLAGS="$MediaInfoLib_CXXFLAGS $(../../../../ZenLib/Project/GNU/Library/libzen-config CXXFLAGS)" 15991 if test "$enable_staticlibs" = "yes"; then 15992 with_zenlib="builtin (static)" 15993 LIBS="$LIBS $(../../../../ZenLib/Project/GNU/Library/libzen-config LIBS_Static)" 15994 else 15995 with_zenlib="builtin" 15996 LIBS="$LIBS $(../../../../ZenLib/Project/GNU/Library/libzen-config LIBS)" 15997 fi 15998elif test "$(libzen-config Exists)" = "yes" ; then 15999 CXXFLAGS="$CXXFLAGS $(libzen-config CXXFLAGS)" 16000 MediaInfoLib_CXXFLAGS="$MediaInfoLib_CXXFLAGS $(libzen-config CXXFLAGS)" 16001 if test "$enable_staticlibs" = "yes"; then 16002 with_zenlib="system (static)" 16003 LIBS="$LIBS $(libzen-config LIBS_Static)" 16004 else 16005 with_zenlib="system" 16006 LIBS="$LIBS $(libzen-config LIBS)" 16007 fi 16008else 16009 if ${PKG_CONFIG:-pkg-config} --exists libzen; then 16010 CXXFLAGS="$CXXFLAGS $(${PKG_CONFIG:-pkg-config} --cflags libzen)" 16011 MediaInfoLib_CXXFLAGS="$MediaInfoLib_CXXFLAGS $(${PKG_CONFIG:-pkg-config} --cflags libzen)" 16012 if test "$enable_staticlibs" = "yes"; then 16013 with_zenlib="system (static)" 16014 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --variable=Libs_Static libzen)" 16015 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --static --libs libzen)" 16016 else 16017 with_zenlib="system" 16018 LIBS="$LIBS $(${PKG_CONFIG:-pkg-config} --libs libzen)" 16019 fi 16020 else 16021 as_fn_error $? "libzen configuration is not found" "$LINENO" 5 16022 fi 16023fi 16024 16025 16026case "${build}" in 16027 powerpc-montavista* ) 16028 CFLAGS="$CFLAGS -D__MONTAVISTA__" 16029 CXXFLAGS="$CXXFLAGS -D__MONTAVISTA__" 16030 ;; 16031esac 16032 16033case "$host_os" in 16034 darwin* ) 16035 LDFLAGS="$LDFLAGS -framework CoreFoundation" 16036 ;; 16037esac 16038 16039if test "$enable_universal_binary" = "yes"; then 16040 enable_arch_ppc=yes 16041 enable_arch_i386=yes 16042fi 16043if test "$enable_arch_ppc" = "yes"; then 16044 CXXFLAGS="$CXXFLAGS -arch ppc" 16045 CFLAGS="$CFLAGS -arch ppc" 16046 LDFLAGS="$LDFLAGS -arch ppc" 16047fi 16048if test "$enable_arch_ppc64" = "yes"; then 16049 CXXFLAGS="$CXXFLAGS -arch ppc64" 16050 CFLAGS="$CFLAGS -arch ppc64" 16051 LDFLAGS="$LDFLAGS -arch ppc64" 16052fi 16053if test "$enable_arch_i386" = "yes"; then 16054 CXXFLAGS="$CXXFLAGS -arch i386" 16055 CFLAGS="$CFLAGS -arch i386" 16056 LDFLAGS="$LDFLAGS -arch i386" 16057fi 16058if test "$enable_arch_x86_64" = "yes"; then 16059 CXXFLAGS="$CXXFLAGS -arch x86_64" 16060 CFLAGS="$CFLAGS -arch x86_64" 16061 LDFLAGS="$LDFLAGS -arch x86_64" 16062fi 16063if test "$enable_arch_arm64" = "yes"; then 16064 CXXFLAGS="$CXXFLAGS -arch arm64" 16065 CFLAGS="$CFLAGS -arch arm64" 16066 LDFLAGS="$LDFLAGS -arch arm64" 16067fi 16068if test "x$with_macosx_sdk" != xno ; then 16069 CXXFLAGS="-isysroot $with_macosx_sdk $CXXFLAGS" 16070 CFLAGS="-isysroot $with_macosx_sdk $CFLAGS" 16071 LDFLAGS="-isysroot $with_macosx_sdk $LDFLAGS" 16072fi 16073if test "x$with_macosx_version_min" != xno ; then 16074 CXXFLAGS="-mmacosx-version-min=$with_macosx_version_min $CXXFLAGS" 16075 CFLAGS="-mmacosx-version-min=$with_macosx_version_min $CFLAGS" 16076 LDFLAGS="-mmacosx-version-min=$with_macosx_version_min $LDFLAGS" 16077fi 16078 16079 16080ac_config_files="$ac_config_files Makefile" 16081 16082cat >confcache <<\_ACEOF 16083# This file is a shell script that caches the results of configure 16084# tests run on this system so they can be shared between configure 16085# scripts and configure runs, see configure's option --config-cache. 16086# It is not useful on other systems. If it contains results you don't 16087# want to keep, you may remove or edit it. 16088# 16089# config.status only pays attention to the cache file if you give it 16090# the --recheck option to rerun configure. 16091# 16092# `ac_cv_env_foo' variables (set or unset) will be overridden when 16093# loading this file, other *unset* `ac_cv_foo' will be assigned the 16094# following values. 16095 16096_ACEOF 16097 16098# The following way of writing the cache mishandles newlines in values, 16099# but we know of no workaround that is simple, portable, and efficient. 16100# So, we kill variables containing newlines. 16101# Ultrix sh set writes to stderr and can't be redirected directly, 16102# and sets the high bit in the cache file unless we assign to the vars. 16103( 16104 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16105 eval ac_val=\$$ac_var 16106 case $ac_val in #( 16107 *${as_nl}*) 16108 case $ac_var in #( 16109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16110$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16111 esac 16112 case $ac_var in #( 16113 _ | IFS | as_nl) ;; #( 16114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16115 *) { eval $ac_var=; unset $ac_var;} ;; 16116 esac ;; 16117 esac 16118 done 16119 16120 (set) 2>&1 | 16121 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16122 *${as_nl}ac_space=\ *) 16123 # `set' does not quote correctly, so add quotes: double-quote 16124 # substitution turns \\\\ into \\, and sed turns \\ into \. 16125 sed -n \ 16126 "s/'/'\\\\''/g; 16127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16128 ;; #( 16129 *) 16130 # `set' quotes correctly as required by POSIX, so do not add quotes. 16131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16132 ;; 16133 esac | 16134 sort 16135) | 16136 sed ' 16137 /^ac_cv_env_/b end 16138 t clear 16139 :clear 16140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16141 t end 16142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16143 :end' >>confcache 16144if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16145 if test -w "$cache_file"; then 16146 if test "x$cache_file" != "x/dev/null"; then 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16148$as_echo "$as_me: updating cache $cache_file" >&6;} 16149 if test ! -f "$cache_file" || test -h "$cache_file"; then 16150 cat confcache >"$cache_file" 16151 else 16152 case $cache_file in #( 16153 */* | ?:*) 16154 mv -f confcache "$cache_file"$$ && 16155 mv -f "$cache_file"$$ "$cache_file" ;; #( 16156 *) 16157 mv -f confcache "$cache_file" ;; 16158 esac 16159 fi 16160 fi 16161 else 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16163$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16164 fi 16165fi 16166rm -f confcache 16167 16168test "x$prefix" = xNONE && prefix=$ac_default_prefix 16169# Let make expand exec_prefix. 16170test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16171 16172# Transform confdefs.h into DEFS. 16173# Protect against shell expansion while executing Makefile rules. 16174# Protect against Makefile macro expansion. 16175# 16176# If the first sed substitution is executed (which looks for macros that 16177# take arguments), then branch to the quote section. Otherwise, 16178# look for a macro that doesn't take arguments. 16179ac_script=' 16180:mline 16181/\\$/{ 16182 N 16183 s,\\\n,, 16184 b mline 16185} 16186t clear 16187:clear 16188s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16189t quote 16190s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16191t quote 16192b any 16193:quote 16194s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16195s/\[/\\&/g 16196s/\]/\\&/g 16197s/\$/$$/g 16198H 16199:any 16200${ 16201 g 16202 s/^\n// 16203 s/\n/ /g 16204 p 16205} 16206' 16207DEFS=`sed -n "$ac_script" confdefs.h` 16208 16209 16210ac_libobjs= 16211ac_ltlibobjs= 16212U= 16213for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16214 # 1. Remove the extension, and $U if already installed. 16215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16216 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16218 # will be set to the directory where LIBOBJS objects are built. 16219 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16220 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16221done 16222LIB@&t@OBJS=$ac_libobjs 16223 16224LTLIBOBJS=$ac_ltlibobjs 16225 16226 16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16228$as_echo_n "checking that generated files are newer than configure... " >&6; } 16229 if test -n "$am_sleep_pid"; then 16230 # Hide warnings about reused PIDs. 16231 wait $am_sleep_pid 2>/dev/null 16232 fi 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16234$as_echo "done" >&6; } 16235 if test -n "$EXEEXT"; then 16236 am__EXEEXT_TRUE= 16237 am__EXEEXT_FALSE='#' 16238else 16239 am__EXEEXT_TRUE='#' 16240 am__EXEEXT_FALSE= 16241fi 16242 16243if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16244 as_fn_error $? "conditional \"AMDEP\" was never defined. 16245Usually this means the macro was only invoked conditionally." "$LINENO" 5 16246fi 16247if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16248 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16249Usually this means the macro was only invoked conditionally." "$LINENO" 5 16250fi 16251if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16252 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16253Usually this means the macro was only invoked conditionally." "$LINENO" 5 16254fi 16255 16256: "${CONFIG_STATUS=./config.status}" 16257ac_write_fail=0 16258ac_clean_files_save=$ac_clean_files 16259ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16260{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16261$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16262as_write_fail=0 16263cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16264#! $SHELL 16265# Generated by $as_me. 16266# Run this file to recreate the current configuration. 16267# Compiler output produced by configure, useful for debugging 16268# configure, is in config.log if it exists. 16269 16270debug=false 16271ac_cs_recheck=false 16272ac_cs_silent=false 16273 16274SHELL=\${CONFIG_SHELL-$SHELL} 16275export SHELL 16276_ASEOF 16277cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16278## -------------------- ## 16279## M4sh Initialization. ## 16280## -------------------- ## 16281 16282# Be more Bourne compatible 16283DUALCASE=1; export DUALCASE # for MKS sh 16284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16285 emulate sh 16286 NULLCMD=: 16287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16288 # is contrary to our usage. Disable this feature. 16289 alias -g '${1+"$@"}'='"$@"' 16290 setopt NO_GLOB_SUBST 16291else 16292 case `(set -o) 2>/dev/null` in @%:@( 16293 *posix*) : 16294 set -o posix ;; @%:@( 16295 *) : 16296 ;; 16297esac 16298fi 16299 16300 16301as_nl=' 16302' 16303export as_nl 16304# Printing a long string crashes Solaris 7 /usr/bin/printf. 16305as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16306as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16307as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16308# Prefer a ksh shell builtin over an external printf program on Solaris, 16309# but without wasting forks for bash or zsh. 16310if test -z "$BASH_VERSION$ZSH_VERSION" \ 16311 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16312 as_echo='print -r --' 16313 as_echo_n='print -rn --' 16314elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16315 as_echo='printf %s\n' 16316 as_echo_n='printf %s' 16317else 16318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16320 as_echo_n='/usr/ucb/echo -n' 16321 else 16322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16323 as_echo_n_body='eval 16324 arg=$1; 16325 case $arg in @%:@( 16326 *"$as_nl"*) 16327 expr "X$arg" : "X\\(.*\\)$as_nl"; 16328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16329 esac; 16330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16331 ' 16332 export as_echo_n_body 16333 as_echo_n='sh -c $as_echo_n_body as_echo' 16334 fi 16335 export as_echo_body 16336 as_echo='sh -c $as_echo_body as_echo' 16337fi 16338 16339# The user is always right. 16340if test "${PATH_SEPARATOR+set}" != set; then 16341 PATH_SEPARATOR=: 16342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16344 PATH_SEPARATOR=';' 16345 } 16346fi 16347 16348 16349# IFS 16350# We need space, tab and new line, in precisely that order. Quoting is 16351# there to prevent editors from complaining about space-tab. 16352# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16353# splitting by setting IFS to empty value.) 16354IFS=" "" $as_nl" 16355 16356# Find who we are. Look in the path if we contain no directory separator. 16357as_myself= 16358case $0 in @%:@(( 16359 *[\\/]* ) as_myself=$0 ;; 16360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16361for as_dir in $PATH 16362do 16363 IFS=$as_save_IFS 16364 test -z "$as_dir" && as_dir=. 16365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16366 done 16367IFS=$as_save_IFS 16368 16369 ;; 16370esac 16371# We did not find ourselves, most probably we were run as `sh COMMAND' 16372# in which case we are not to be found in the path. 16373if test "x$as_myself" = x; then 16374 as_myself=$0 16375fi 16376if test ! -f "$as_myself"; then 16377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16378 exit 1 16379fi 16380 16381# Unset variables that we do not need and which cause bugs (e.g. in 16382# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16383# suppresses any "Segmentation fault" message there. '((' could 16384# trigger a bug in pdksh 5.2.14. 16385for as_var in BASH_ENV ENV MAIL MAILPATH 16386do eval test x\${$as_var+set} = xset \ 16387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16388done 16389PS1='$ ' 16390PS2='> ' 16391PS4='+ ' 16392 16393# NLS nuisances. 16394LC_ALL=C 16395export LC_ALL 16396LANGUAGE=C 16397export LANGUAGE 16398 16399# CDPATH. 16400(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16401 16402 16403@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16404@%:@ ---------------------------------------- 16405@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16406@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16407@%:@ script with STATUS, using 1 if that was 0. 16408as_fn_error () 16409{ 16410 as_status=$1; test $as_status -eq 0 && as_status=1 16411 if test "$4"; then 16412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16414 fi 16415 $as_echo "$as_me: error: $2" >&2 16416 as_fn_exit $as_status 16417} @%:@ as_fn_error 16418 16419 16420@%:@ as_fn_set_status STATUS 16421@%:@ ----------------------- 16422@%:@ Set @S|@? to STATUS, without forking. 16423as_fn_set_status () 16424{ 16425 return $1 16426} @%:@ as_fn_set_status 16427 16428@%:@ as_fn_exit STATUS 16429@%:@ ----------------- 16430@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16431as_fn_exit () 16432{ 16433 set +e 16434 as_fn_set_status $1 16435 exit $1 16436} @%:@ as_fn_exit 16437 16438@%:@ as_fn_unset VAR 16439@%:@ --------------- 16440@%:@ Portably unset VAR. 16441as_fn_unset () 16442{ 16443 { eval $1=; unset $1;} 16444} 16445as_unset=as_fn_unset 16446@%:@ as_fn_append VAR VALUE 16447@%:@ ---------------------- 16448@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16449@%:@ advantage of any shell optimizations that allow amortized linear growth over 16450@%:@ repeated appends, instead of the typical quadratic growth present in naive 16451@%:@ implementations. 16452if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16453 eval 'as_fn_append () 16454 { 16455 eval $1+=\$2 16456 }' 16457else 16458 as_fn_append () 16459 { 16460 eval $1=\$$1\$2 16461 } 16462fi # as_fn_append 16463 16464@%:@ as_fn_arith ARG... 16465@%:@ ------------------ 16466@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16467@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16468@%:@ must be portable across @S|@(()) and expr. 16469if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16470 eval 'as_fn_arith () 16471 { 16472 as_val=$(( $* )) 16473 }' 16474else 16475 as_fn_arith () 16476 { 16477 as_val=`expr "$@" || test $? -eq 1` 16478 } 16479fi # as_fn_arith 16480 16481 16482if expr a : '\(a\)' >/dev/null 2>&1 && 16483 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16484 as_expr=expr 16485else 16486 as_expr=false 16487fi 16488 16489if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16490 as_basename=basename 16491else 16492 as_basename=false 16493fi 16494 16495if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16496 as_dirname=dirname 16497else 16498 as_dirname=false 16499fi 16500 16501as_me=`$as_basename -- "$0" || 16502$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16503 X"$0" : 'X\(//\)$' \| \ 16504 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16505$as_echo X/"$0" | 16506 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16507 s//\1/ 16508 q 16509 } 16510 /^X\/\(\/\/\)$/{ 16511 s//\1/ 16512 q 16513 } 16514 /^X\/\(\/\).*/{ 16515 s//\1/ 16516 q 16517 } 16518 s/.*/./; q'` 16519 16520# Avoid depending upon Character Ranges. 16521as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16522as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16523as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16524as_cr_digits='0123456789' 16525as_cr_alnum=$as_cr_Letters$as_cr_digits 16526 16527ECHO_C= ECHO_N= ECHO_T= 16528case `echo -n x` in @%:@((((( 16529-n*) 16530 case `echo 'xy\c'` in 16531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16532 xy) ECHO_C='\c';; 16533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16534 ECHO_T=' ';; 16535 esac;; 16536*) 16537 ECHO_N='-n';; 16538esac 16539 16540rm -f conf$$ conf$$.exe conf$$.file 16541if test -d conf$$.dir; then 16542 rm -f conf$$.dir/conf$$.file 16543else 16544 rm -f conf$$.dir 16545 mkdir conf$$.dir 2>/dev/null 16546fi 16547if (echo >conf$$.file) 2>/dev/null; then 16548 if ln -s conf$$.file conf$$ 2>/dev/null; then 16549 as_ln_s='ln -s' 16550 # ... but there are two gotchas: 16551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16553 # In both cases, we have to default to `cp -pR'. 16554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16555 as_ln_s='cp -pR' 16556 elif ln conf$$.file conf$$ 2>/dev/null; then 16557 as_ln_s=ln 16558 else 16559 as_ln_s='cp -pR' 16560 fi 16561else 16562 as_ln_s='cp -pR' 16563fi 16564rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16565rmdir conf$$.dir 2>/dev/null 16566 16567 16568@%:@ as_fn_mkdir_p 16569@%:@ ------------- 16570@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16571as_fn_mkdir_p () 16572{ 16573 16574 case $as_dir in #( 16575 -*) as_dir=./$as_dir;; 16576 esac 16577 test -d "$as_dir" || eval $as_mkdir_p || { 16578 as_dirs= 16579 while :; do 16580 case $as_dir in #( 16581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16582 *) as_qdir=$as_dir;; 16583 esac 16584 as_dirs="'$as_qdir' $as_dirs" 16585 as_dir=`$as_dirname -- "$as_dir" || 16586$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16587 X"$as_dir" : 'X\(//\)[^/]' \| \ 16588 X"$as_dir" : 'X\(//\)$' \| \ 16589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16590$as_echo X"$as_dir" | 16591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16592 s//\1/ 16593 q 16594 } 16595 /^X\(\/\/\)[^/].*/{ 16596 s//\1/ 16597 q 16598 } 16599 /^X\(\/\/\)$/{ 16600 s//\1/ 16601 q 16602 } 16603 /^X\(\/\).*/{ 16604 s//\1/ 16605 q 16606 } 16607 s/.*/./; q'` 16608 test -d "$as_dir" && break 16609 done 16610 test -z "$as_dirs" || eval "mkdir $as_dirs" 16611 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16612 16613 16614} @%:@ as_fn_mkdir_p 16615if mkdir -p . 2>/dev/null; then 16616 as_mkdir_p='mkdir -p "$as_dir"' 16617else 16618 test -d ./-p && rmdir ./-p 16619 as_mkdir_p=false 16620fi 16621 16622 16623@%:@ as_fn_executable_p FILE 16624@%:@ ----------------------- 16625@%:@ Test if FILE is an executable regular file. 16626as_fn_executable_p () 16627{ 16628 test -f "$1" && test -x "$1" 16629} @%:@ as_fn_executable_p 16630as_test_x='test -x' 16631as_executable_p=as_fn_executable_p 16632 16633# Sed expression to map a string onto a valid CPP name. 16634as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16635 16636# Sed expression to map a string onto a valid variable name. 16637as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16638 16639 16640exec 6>&1 16641## ----------------------------------- ## 16642## Main body of $CONFIG_STATUS script. ## 16643## ----------------------------------- ## 16644_ASEOF 16645test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16646 16647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16648# Save the log message, to keep $0 and so on meaningful, and to 16649# report actual input values of CONFIG_FILES etc. instead of their 16650# values after options handling. 16651ac_log=" 16652This file was extended by mediainfo $as_me 21.09, which was 16653generated by GNU Autoconf 2.69. Invocation command line was 16654 16655 CONFIG_FILES = $CONFIG_FILES 16656 CONFIG_HEADERS = $CONFIG_HEADERS 16657 CONFIG_LINKS = $CONFIG_LINKS 16658 CONFIG_COMMANDS = $CONFIG_COMMANDS 16659 $ $0 $@ 16660 16661on `(hostname || uname -n) 2>/dev/null | sed 1q` 16662" 16663 16664_ACEOF 16665 16666case $ac_config_files in *" 16667"*) set x $ac_config_files; shift; ac_config_files=$*;; 16668esac 16669 16670 16671 16672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16673# Files that config.status was made for. 16674config_files="$ac_config_files" 16675config_commands="$ac_config_commands" 16676 16677_ACEOF 16678 16679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16680ac_cs_usage="\ 16681\`$as_me' instantiates files and other configuration actions 16682from templates according to the current configuration. Unless the files 16683and actions are specified as TAGs, all are instantiated by default. 16684 16685Usage: $0 [OPTION]... [TAG]... 16686 16687 -h, --help print this help, then exit 16688 -V, --version print version number and configuration settings, then exit 16689 --config print configuration, then exit 16690 -q, --quiet, --silent 16691 do not print progress messages 16692 -d, --debug don't remove temporary files 16693 --recheck update $as_me by reconfiguring in the same conditions 16694 --file=FILE[:TEMPLATE] 16695 instantiate the configuration file FILE 16696 16697Configuration files: 16698$config_files 16699 16700Configuration commands: 16701$config_commands 16702 16703Report bugs to the package provider." 16704 16705_ACEOF 16706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16707ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16708ac_cs_version="\\ 16709mediainfo config.status 21.09 16710configured by $0, generated by GNU Autoconf 2.69, 16711 with options \\"\$ac_cs_config\\" 16712 16713Copyright (C) 2012 Free Software Foundation, Inc. 16714This config.status script is free software; the Free Software Foundation 16715gives unlimited permission to copy, distribute and modify it." 16716 16717ac_pwd='$ac_pwd' 16718srcdir='$srcdir' 16719INSTALL='$INSTALL' 16720MKDIR_P='$MKDIR_P' 16721AWK='$AWK' 16722test -n "\$AWK" || AWK=awk 16723_ACEOF 16724 16725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16726# The default lists apply if the user does not specify any file. 16727ac_need_defaults=: 16728while test $# != 0 16729do 16730 case $1 in 16731 --*=?*) 16732 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16733 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16734 ac_shift=: 16735 ;; 16736 --*=) 16737 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16738 ac_optarg= 16739 ac_shift=: 16740 ;; 16741 *) 16742 ac_option=$1 16743 ac_optarg=$2 16744 ac_shift=shift 16745 ;; 16746 esac 16747 16748 case $ac_option in 16749 # Handling of the options. 16750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16751 ac_cs_recheck=: ;; 16752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16753 $as_echo "$ac_cs_version"; exit ;; 16754 --config | --confi | --conf | --con | --co | --c ) 16755 $as_echo "$ac_cs_config"; exit ;; 16756 --debug | --debu | --deb | --de | --d | -d ) 16757 debug=: ;; 16758 --file | --fil | --fi | --f ) 16759 $ac_shift 16760 case $ac_optarg in 16761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16762 '') as_fn_error $? "missing file argument" ;; 16763 esac 16764 as_fn_append CONFIG_FILES " '$ac_optarg'" 16765 ac_need_defaults=false;; 16766 --he | --h | --help | --hel | -h ) 16767 $as_echo "$ac_cs_usage"; exit ;; 16768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16769 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16770 ac_cs_silent=: ;; 16771 16772 # This is an error. 16773 -*) as_fn_error $? "unrecognized option: \`$1' 16774Try \`$0 --help' for more information." ;; 16775 16776 *) as_fn_append ac_config_targets " $1" 16777 ac_need_defaults=false ;; 16778 16779 esac 16780 shift 16781done 16782 16783ac_configure_extra_args= 16784 16785if $ac_cs_silent; then 16786 exec 6>/dev/null 16787 ac_configure_extra_args="$ac_configure_extra_args --silent" 16788fi 16789 16790_ACEOF 16791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16792if \$ac_cs_recheck; then 16793 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16794 shift 16795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16796 CONFIG_SHELL='$SHELL' 16797 export CONFIG_SHELL 16798 exec "\$@" 16799fi 16800 16801_ACEOF 16802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16803exec 5>>config.log 16804{ 16805 echo 16806 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 16807@%:@@%:@ Running $as_me. @%:@@%:@ 16808_ASBOX 16809 $as_echo "$ac_log" 16810} >&5 16811 16812_ACEOF 16813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16814# 16815# INIT-COMMANDS 16816# 16817AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16818 16819 16820# The HP-UX ksh and POSIX shell print the target directory to stdout 16821# if CDPATH is set. 16822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16823 16824sed_quote_subst='$sed_quote_subst' 16825double_quote_subst='$double_quote_subst' 16826delay_variable_subst='$delay_variable_subst' 16827macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16828macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16829enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16830enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16831pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16832enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16833shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16834SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16835ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16836PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16837host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16838host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16839host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16840build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16841build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16842build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16843SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16844Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16845GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16846EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16847FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16848LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16849NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16850LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16851max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16852ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16853exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16854lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16855lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16856lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16857lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16858lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16859reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16860reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16861OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16862deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16863file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16864file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16865want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16866DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16867sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16868AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16869AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16870archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16871STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16872RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16873old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16874old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16875old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16876lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16877CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16878CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16879compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16880GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16881lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16882lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16883lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16885lt_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"`' 16886lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16887nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16888lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16889lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16890objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16891MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16892lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16893lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16894lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16895lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16896lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16897need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16898MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16899DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16900NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16901LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16902OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16903OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16904libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16905shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16906extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16907archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16908enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16909export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16910whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16911compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16912old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16913old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16914archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16915archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16916module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16917module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16918with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16919allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16920no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16921hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16922hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16923hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16924hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16925hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16926hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16927hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16928inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16929link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16930always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16931export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16932exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16933include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16934prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16935postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16936file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16937variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16938need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16939need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16940version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16941runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16942shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16943shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16944libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16945library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16946soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16947install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16948postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16949postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16950finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16951finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16952hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16953sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16954configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16955configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16956hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16957enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16958enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16959enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16960old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16961striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16962compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16963predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16964postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16965predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16966postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16967compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16968LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16969reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16970reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16971old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16972compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16973GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16974lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16975lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16976lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16977lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16978lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16979archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16980enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16981export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16982whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16983compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16984old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16985old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16986archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16987archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16988module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16989module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16990with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16991allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16992no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16993hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16994hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16995hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16996hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16997hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16998hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16999hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17000inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17001link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17002always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17003export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17004exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17005include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17006prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17007postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17008file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17009hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17010compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17011predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17012postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17013predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17014postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17015compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17016 17017LTCC='$LTCC' 17018LTCFLAGS='$LTCFLAGS' 17019compiler='$compiler_DEFAULT' 17020 17021# A function that is used when there is no print builtin or printf. 17022func_fallback_echo () 17023{ 17024 eval 'cat <<_LTECHO_EOF 17025\$1 17026_LTECHO_EOF' 17027} 17028 17029# Quote evaled strings. 17030for var in SHELL \ 17031ECHO \ 17032PATH_SEPARATOR \ 17033SED \ 17034GREP \ 17035EGREP \ 17036FGREP \ 17037LD \ 17038NM \ 17039LN_S \ 17040lt_SP2NL \ 17041lt_NL2SP \ 17042reload_flag \ 17043OBJDUMP \ 17044deplibs_check_method \ 17045file_magic_cmd \ 17046file_magic_glob \ 17047want_nocaseglob \ 17048DLLTOOL \ 17049sharedlib_from_linklib_cmd \ 17050AR \ 17051AR_FLAGS \ 17052archiver_list_spec \ 17053STRIP \ 17054RANLIB \ 17055CC \ 17056CFLAGS \ 17057compiler \ 17058lt_cv_sys_global_symbol_pipe \ 17059lt_cv_sys_global_symbol_to_cdecl \ 17060lt_cv_sys_global_symbol_to_import \ 17061lt_cv_sys_global_symbol_to_c_name_address \ 17062lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17063lt_cv_nm_interface \ 17064nm_file_list_spec \ 17065lt_cv_truncate_bin \ 17066lt_prog_compiler_no_builtin_flag \ 17067lt_prog_compiler_pic \ 17068lt_prog_compiler_wl \ 17069lt_prog_compiler_static \ 17070lt_cv_prog_compiler_c_o \ 17071need_locks \ 17072MANIFEST_TOOL \ 17073DSYMUTIL \ 17074NMEDIT \ 17075LIPO \ 17076OTOOL \ 17077OTOOL64 \ 17078shrext_cmds \ 17079export_dynamic_flag_spec \ 17080whole_archive_flag_spec \ 17081compiler_needs_object \ 17082with_gnu_ld \ 17083allow_undefined_flag \ 17084no_undefined_flag \ 17085hardcode_libdir_flag_spec \ 17086hardcode_libdir_separator \ 17087exclude_expsyms \ 17088include_expsyms \ 17089file_list_spec \ 17090variables_saved_for_relink \ 17091libname_spec \ 17092library_names_spec \ 17093soname_spec \ 17094install_override_mode \ 17095finish_eval \ 17096old_striplib \ 17097striplib \ 17098compiler_lib_search_dirs \ 17099predep_objects \ 17100postdep_objects \ 17101predeps \ 17102postdeps \ 17103compiler_lib_search_path \ 17104LD_CXX \ 17105reload_flag_CXX \ 17106compiler_CXX \ 17107lt_prog_compiler_no_builtin_flag_CXX \ 17108lt_prog_compiler_pic_CXX \ 17109lt_prog_compiler_wl_CXX \ 17110lt_prog_compiler_static_CXX \ 17111lt_cv_prog_compiler_c_o_CXX \ 17112export_dynamic_flag_spec_CXX \ 17113whole_archive_flag_spec_CXX \ 17114compiler_needs_object_CXX \ 17115with_gnu_ld_CXX \ 17116allow_undefined_flag_CXX \ 17117no_undefined_flag_CXX \ 17118hardcode_libdir_flag_spec_CXX \ 17119hardcode_libdir_separator_CXX \ 17120exclude_expsyms_CXX \ 17121include_expsyms_CXX \ 17122file_list_spec_CXX \ 17123compiler_lib_search_dirs_CXX \ 17124predep_objects_CXX \ 17125postdep_objects_CXX \ 17126predeps_CXX \ 17127postdeps_CXX \ 17128compiler_lib_search_path_CXX; do 17129 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17130 *[\\\\\\\`\\"\\\$]*) 17131 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17132 ;; 17133 *) 17134 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17135 ;; 17136 esac 17137done 17138 17139# Double-quote double-evaled strings. 17140for var in reload_cmds \ 17141old_postinstall_cmds \ 17142old_postuninstall_cmds \ 17143old_archive_cmds \ 17144extract_expsyms_cmds \ 17145old_archive_from_new_cmds \ 17146old_archive_from_expsyms_cmds \ 17147archive_cmds \ 17148archive_expsym_cmds \ 17149module_cmds \ 17150module_expsym_cmds \ 17151export_symbols_cmds \ 17152prelink_cmds \ 17153postlink_cmds \ 17154postinstall_cmds \ 17155postuninstall_cmds \ 17156finish_cmds \ 17157sys_lib_search_path_spec \ 17158configure_time_dlsearch_path \ 17159configure_time_lt_sys_library_path \ 17160reload_cmds_CXX \ 17161old_archive_cmds_CXX \ 17162old_archive_from_new_cmds_CXX \ 17163old_archive_from_expsyms_cmds_CXX \ 17164archive_cmds_CXX \ 17165archive_expsym_cmds_CXX \ 17166module_cmds_CXX \ 17167module_expsym_cmds_CXX \ 17168export_symbols_cmds_CXX \ 17169prelink_cmds_CXX \ 17170postlink_cmds_CXX; do 17171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17172 *[\\\\\\\`\\"\\\$]*) 17173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17174 ;; 17175 *) 17176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17177 ;; 17178 esac 17179done 17180 17181ac_aux_dir='$ac_aux_dir' 17182 17183# See if we are running on zsh, and set the options that allow our 17184# commands through without removal of \ escapes INIT. 17185if test -n "\${ZSH_VERSION+set}"; then 17186 setopt NO_GLOB_SUBST 17187fi 17188 17189 17190 PACKAGE='$PACKAGE' 17191 VERSION='$VERSION' 17192 RM='$RM' 17193 ofile='$ofile' 17194 17195 17196 17197 17198 17199 17200_ACEOF 17201 17202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17203 17204# Handling of arguments. 17205for ac_config_target in $ac_config_targets 17206do 17207 case $ac_config_target in 17208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17209 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17211 17212 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17213 esac 17214done 17215 17216 17217# If the user did not use the arguments to specify the items to instantiate, 17218# then the envvar interface is used. Set only those that are not. 17219# We use the long form for the default assignment because of an extremely 17220# bizarre bug on SunOS 4.1.3. 17221if $ac_need_defaults; then 17222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17224fi 17225 17226# Have a temporary directory for convenience. Make it in the build tree 17227# simply because there is no reason against having it here, and in addition, 17228# creating and moving files from /tmp can sometimes cause problems. 17229# Hook for its removal unless debugging. 17230# Note that there is a small window in which the directory will not be cleaned: 17231# after its creation but before its name has been assigned to `$tmp'. 17232$debug || 17233{ 17234 tmp= ac_tmp= 17235 trap 'exit_status=$? 17236 : "${ac_tmp:=$tmp}" 17237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17238' 0 17239 trap 'as_fn_exit 1' 1 2 13 15 17240} 17241# Create a (secure) tmp directory for tmp files. 17242 17243{ 17244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17245 test -d "$tmp" 17246} || 17247{ 17248 tmp=./conf$$-$RANDOM 17249 (umask 077 && mkdir "$tmp") 17250} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17251ac_tmp=$tmp 17252 17253# Set up the scripts for CONFIG_FILES section. 17254# No need to generate them if there are no CONFIG_FILES. 17255# This happens for instance with `./config.status config.h'. 17256if test -n "$CONFIG_FILES"; then 17257 17258 17259ac_cr=`echo X | tr X '\015'` 17260# On cygwin, bash can eat \r inside `` if the user requested igncr. 17261# But we know of no other shell where ac_cr would be empty at this 17262# point, so we can use a bashism as a fallback. 17263if test "x$ac_cr" = x; then 17264 eval ac_cr=\$\'\\r\' 17265fi 17266ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17267if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17268 ac_cs_awk_cr='\\r' 17269else 17270 ac_cs_awk_cr=$ac_cr 17271fi 17272 17273echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17274_ACEOF 17275 17276 17277{ 17278 echo "cat >conf$$subs.awk <<_ACEOF" && 17279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17280 echo "_ACEOF" 17281} >conf$$subs.sh || 17282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17283ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17284ac_delim='%!_!# ' 17285for ac_last_try in false false false false false :; do 17286 . ./conf$$subs.sh || 17287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17288 17289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17290 if test $ac_delim_n = $ac_delim_num; then 17291 break 17292 elif $ac_last_try; then 17293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17294 else 17295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17296 fi 17297done 17298rm -f conf$$subs.sh 17299 17300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17301cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17302_ACEOF 17303sed -n ' 17304h 17305s/^/S["/; s/!.*/"]=/ 17306p 17307g 17308s/^[^!]*!// 17309:repl 17310t repl 17311s/'"$ac_delim"'$// 17312t delim 17313:nl 17314h 17315s/\(.\{148\}\)..*/\1/ 17316t more1 17317s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17318p 17319n 17320b repl 17321:more1 17322s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17323p 17324g 17325s/.\{148\}// 17326t nl 17327:delim 17328h 17329s/\(.\{148\}\)..*/\1/ 17330t more2 17331s/["\\]/\\&/g; s/^/"/; s/$/"/ 17332p 17333b 17334:more2 17335s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17336p 17337g 17338s/.\{148\}// 17339t delim 17340' <conf$$subs.awk | sed ' 17341/^[^""]/{ 17342 N 17343 s/\n// 17344} 17345' >>$CONFIG_STATUS || ac_write_fail=1 17346rm -f conf$$subs.awk 17347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17348_ACAWK 17349cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17350 for (key in S) S_is_set[key] = 1 17351 FS = "" 17352 17353} 17354{ 17355 line = $ 0 17356 nfields = split(line, field, "@") 17357 substed = 0 17358 len = length(field[1]) 17359 for (i = 2; i < nfields; i++) { 17360 key = field[i] 17361 keylen = length(key) 17362 if (S_is_set[key]) { 17363 value = S[key] 17364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17365 len += length(value) + length(field[++i]) 17366 substed = 1 17367 } else 17368 len += 1 + keylen 17369 } 17370 17371 print line 17372} 17373 17374_ACAWK 17375_ACEOF 17376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17377if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17378 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17379else 17380 cat 17381fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17382 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17383_ACEOF 17384 17385# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17386# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17387# trailing colons and then remove the whole line if VPATH becomes empty 17388# (actually we leave an empty line to preserve line numbers). 17389if test "x$srcdir" = x.; then 17390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17391h 17392s/// 17393s/^/:/ 17394s/[ ]*$/:/ 17395s/:\$(srcdir):/:/g 17396s/:\${srcdir}:/:/g 17397s/:@srcdir@:/:/g 17398s/^:*// 17399s/:*$// 17400x 17401s/\(=[ ]*\).*/\1/ 17402G 17403s/\n// 17404s/^[^=]*=[ ]*$// 17405}' 17406fi 17407 17408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17409fi # test -n "$CONFIG_FILES" 17410 17411 17412eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17413shift 17414for ac_tag 17415do 17416 case $ac_tag in 17417 :[FHLC]) ac_mode=$ac_tag; continue;; 17418 esac 17419 case $ac_mode$ac_tag in 17420 :[FHL]*:*);; 17421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17422 :[FH]-) ac_tag=-:-;; 17423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17424 esac 17425 ac_save_IFS=$IFS 17426 IFS=: 17427 set x $ac_tag 17428 IFS=$ac_save_IFS 17429 shift 17430 ac_file=$1 17431 shift 17432 17433 case $ac_mode in 17434 :L) ac_source=$1;; 17435 :[FH]) 17436 ac_file_inputs= 17437 for ac_f 17438 do 17439 case $ac_f in 17440 -) ac_f="$ac_tmp/stdin";; 17441 *) # Look for the file first in the build tree, then in the source tree 17442 # (if the path is not absolute). The absolute path cannot be DOS-style, 17443 # because $ac_f cannot contain `:'. 17444 test -f "$ac_f" || 17445 case $ac_f in 17446 [\\/$]*) false;; 17447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17448 esac || 17449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17450 esac 17451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17452 as_fn_append ac_file_inputs " '$ac_f'" 17453 done 17454 17455 # Let's still pretend it is `configure' which instantiates (i.e., don't 17456 # use $as_me), people would be surprised to read: 17457 # /* config.h. Generated by config.status. */ 17458 configure_input='Generated from '` 17459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17460 `' by configure.' 17461 if test x"$ac_file" != x-; then 17462 configure_input="$ac_file. $configure_input" 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17464$as_echo "$as_me: creating $ac_file" >&6;} 17465 fi 17466 # Neutralize special characters interpreted by sed in replacement strings. 17467 case $configure_input in #( 17468 *\&* | *\|* | *\\* ) 17469 ac_sed_conf_input=`$as_echo "$configure_input" | 17470 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17471 *) ac_sed_conf_input=$configure_input;; 17472 esac 17473 17474 case $ac_tag in 17475 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17477 esac 17478 ;; 17479 esac 17480 17481 ac_dir=`$as_dirname -- "$ac_file" || 17482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17483 X"$ac_file" : 'X\(//\)[^/]' \| \ 17484 X"$ac_file" : 'X\(//\)$' \| \ 17485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17486$as_echo X"$ac_file" | 17487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17488 s//\1/ 17489 q 17490 } 17491 /^X\(\/\/\)[^/].*/{ 17492 s//\1/ 17493 q 17494 } 17495 /^X\(\/\/\)$/{ 17496 s//\1/ 17497 q 17498 } 17499 /^X\(\/\).*/{ 17500 s//\1/ 17501 q 17502 } 17503 s/.*/./; q'` 17504 as_dir="$ac_dir"; as_fn_mkdir_p 17505 ac_builddir=. 17506 17507case "$ac_dir" in 17508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17509*) 17510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17511 # A ".." for each directory in $ac_dir_suffix. 17512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17513 case $ac_top_builddir_sub in 17514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17516 esac ;; 17517esac 17518ac_abs_top_builddir=$ac_pwd 17519ac_abs_builddir=$ac_pwd$ac_dir_suffix 17520# for backward compatibility: 17521ac_top_builddir=$ac_top_build_prefix 17522 17523case $srcdir in 17524 .) # We are building in place. 17525 ac_srcdir=. 17526 ac_top_srcdir=$ac_top_builddir_sub 17527 ac_abs_top_srcdir=$ac_pwd ;; 17528 [\\/]* | ?:[\\/]* ) # Absolute name. 17529 ac_srcdir=$srcdir$ac_dir_suffix; 17530 ac_top_srcdir=$srcdir 17531 ac_abs_top_srcdir=$srcdir ;; 17532 *) # Relative name. 17533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17534 ac_top_srcdir=$ac_top_build_prefix$srcdir 17535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17536esac 17537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17538 17539 17540 case $ac_mode in 17541 :F) 17542 # 17543 # CONFIG_FILE 17544 # 17545 17546 case $INSTALL in 17547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17549 esac 17550 ac_MKDIR_P=$MKDIR_P 17551 case $MKDIR_P in 17552 [\\/$]* | ?:[\\/]* ) ;; 17553 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17554 esac 17555_ACEOF 17556 17557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17558# If the template does not know about datarootdir, expand it. 17559# FIXME: This hack should be removed a few years after 2.60. 17560ac_datarootdir_hack=; ac_datarootdir_seen= 17561ac_sed_dataroot=' 17562/datarootdir/ { 17563 p 17564 q 17565} 17566/@datadir@/p 17567/@docdir@/p 17568/@infodir@/p 17569/@localedir@/p 17570/@mandir@/p' 17571case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17572*datarootdir*) ac_datarootdir_seen=yes;; 17573*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17575$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17576_ACEOF 17577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17578 ac_datarootdir_hack=' 17579 s&@datadir@&$datadir&g 17580 s&@docdir@&$docdir&g 17581 s&@infodir@&$infodir&g 17582 s&@localedir@&$localedir&g 17583 s&@mandir@&$mandir&g 17584 s&\\\${datarootdir}&$datarootdir&g' ;; 17585esac 17586_ACEOF 17587 17588# Neutralize VPATH when `$srcdir' = `.'. 17589# Shell code in configure.ac might set extrasub. 17590# FIXME: do we really want to maintain this feature? 17591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17592ac_sed_extra="$ac_vpsub 17593$extrasub 17594_ACEOF 17595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17596:t 17597/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17598s|@configure_input@|$ac_sed_conf_input|;t t 17599s&@top_builddir@&$ac_top_builddir_sub&;t t 17600s&@top_build_prefix@&$ac_top_build_prefix&;t t 17601s&@srcdir@&$ac_srcdir&;t t 17602s&@abs_srcdir@&$ac_abs_srcdir&;t t 17603s&@top_srcdir@&$ac_top_srcdir&;t t 17604s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17605s&@builddir@&$ac_builddir&;t t 17606s&@abs_builddir@&$ac_abs_builddir&;t t 17607s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17608s&@INSTALL@&$ac_INSTALL&;t t 17609s&@MKDIR_P@&$ac_MKDIR_P&;t t 17610$ac_datarootdir_hack 17611" 17612eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17613 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17614 17615test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17616 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17618 "$ac_tmp/out"`; test -z "$ac_out"; } && 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17620which seems to be undefined. Please make sure it is defined" >&5 17621$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17622which seems to be undefined. Please make sure it is defined" >&2;} 17623 17624 rm -f "$ac_tmp/stdin" 17625 case $ac_file in 17626 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17627 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17628 esac \ 17629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17630 ;; 17631 17632 17633 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17634$as_echo "$as_me: executing $ac_file commands" >&6;} 17635 ;; 17636 esac 17637 17638 17639 case $ac_file$ac_mode in 17640 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17641 # Older Autoconf quotes --file arguments for eval, but not when files 17642 # are listed without --file. Let's play safe and only enable the eval 17643 # if we detect the quoting. 17644 # TODO: see whether this extra hack can be removed once we start 17645 # requiring Autoconf 2.70 or later. 17646 case $CONFIG_FILES in @%:@( 17647 *\'*) : 17648 eval set x "$CONFIG_FILES" ;; @%:@( 17649 *) : 17650 set x $CONFIG_FILES ;; @%:@( 17651 *) : 17652 ;; 17653esac 17654 shift 17655 # Used to flag and report bootstrapping failures. 17656 am_rc=0 17657 for am_mf 17658 do 17659 # Strip MF so we end up with the name of the file. 17660 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17661 # Check whether this is an Automake generated Makefile which includes 17662 # dependency-tracking related rules and includes. 17663 # Grep'ing the whole file directly is not great: AIX grep has a line 17664 # limit of 2048, but all sed's we know have understand at least 4000. 17665 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17666 || continue 17667 am_dirpart=`$as_dirname -- "$am_mf" || 17668$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17669 X"$am_mf" : 'X\(//\)[^/]' \| \ 17670 X"$am_mf" : 'X\(//\)$' \| \ 17671 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17672$as_echo X"$am_mf" | 17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17674 s//\1/ 17675 q 17676 } 17677 /^X\(\/\/\)[^/].*/{ 17678 s//\1/ 17679 q 17680 } 17681 /^X\(\/\/\)$/{ 17682 s//\1/ 17683 q 17684 } 17685 /^X\(\/\).*/{ 17686 s//\1/ 17687 q 17688 } 17689 s/.*/./; q'` 17690 am_filepart=`$as_basename -- "$am_mf" || 17691$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17692 X"$am_mf" : 'X\(//\)$' \| \ 17693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17694$as_echo X/"$am_mf" | 17695 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17696 s//\1/ 17697 q 17698 } 17699 /^X\/\(\/\/\)$/{ 17700 s//\1/ 17701 q 17702 } 17703 /^X\/\(\/\).*/{ 17704 s//\1/ 17705 q 17706 } 17707 s/.*/./; q'` 17708 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17709 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17710 | $MAKE -f - am--depfiles" >&5 17711 (cd "$am_dirpart" \ 17712 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17713 | $MAKE -f - am--depfiles) >&5 2>&5 17714 ac_status=$? 17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17716 (exit $ac_status); } || am_rc=$? 17717 done 17718 if test $am_rc -ne 0; then 17719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17721as_fn_error $? "Something went wrong bootstrapping makefile fragments 17722 for automatic dependency tracking. Try re-running configure with the 17723 '--disable-dependency-tracking' option to at least be able to build 17724 the package (albeit without support for automatic dependency tracking). 17725See \`config.log' for more details" "$LINENO" 5; } 17726 fi 17727 { am_dirpart=; unset am_dirpart;} 17728 { am_filepart=; unset am_filepart;} 17729 { am_mf=; unset am_mf;} 17730 { am_rc=; unset am_rc;} 17731 rm -f conftest-deps.mk 17732} 17733 ;; 17734 "libtool":C) 17735 17736 # See if we are running on zsh, and set the options that allow our 17737 # commands through without removal of \ escapes. 17738 if test -n "${ZSH_VERSION+set}"; then 17739 setopt NO_GLOB_SUBST 17740 fi 17741 17742 cfgfile=${ofile}T 17743 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17744 $RM "$cfgfile" 17745 17746 cat <<_LT_EOF >> "$cfgfile" 17747#! $SHELL 17748# Generated automatically by $as_me ($PACKAGE) $VERSION 17749# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17750 17751# Provide generalized library-building support services. 17752# Written by Gordon Matzigkeit, 1996 17753 17754# Copyright (C) 2014 Free Software Foundation, Inc. 17755# This is free software; see the source for copying conditions. There is NO 17756# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17757 17758# GNU Libtool is free software; you can redistribute it and/or modify 17759# it under the terms of the GNU General Public License as published by 17760# the Free Software Foundation; either version 2 of of the License, or 17761# (at your option) any later version. 17762# 17763# As a special exception to the GNU General Public License, if you 17764# distribute this file as part of a program or library that is built 17765# using GNU Libtool, you may include this file under the same 17766# distribution terms that you use for the rest of that program. 17767# 17768# GNU Libtool is distributed in the hope that it will be useful, but 17769# WITHOUT ANY WARRANTY; without even the implied warranty of 17770# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17771# GNU General Public License for more details. 17772# 17773# You should have received a copy of the GNU General Public License 17774# along with this program. If not, see <http://www.gnu.org/licenses/>. 17775 17776 17777# The names of the tagged configurations supported by this script. 17778available_tags='CXX ' 17779 17780# Configured defaults for sys_lib_dlsearch_path munging. 17781: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17782 17783# ### BEGIN LIBTOOL CONFIG 17784 17785# Which release of libtool.m4 was used? 17786macro_version=$macro_version 17787macro_revision=$macro_revision 17788 17789# Whether or not to build shared libraries. 17790build_libtool_libs=$enable_shared 17791 17792# Whether or not to build static libraries. 17793build_old_libs=$enable_static 17794 17795# What type of objects to build. 17796pic_mode=$pic_mode 17797 17798# Whether or not to optimize for fast installation. 17799fast_install=$enable_fast_install 17800 17801# Shared archive member basename,for filename based shared library versioning on AIX. 17802shared_archive_member_spec=$shared_archive_member_spec 17803 17804# Shell to use when invoking shell scripts. 17805SHELL=$lt_SHELL 17806 17807# An echo program that protects backslashes. 17808ECHO=$lt_ECHO 17809 17810# The PATH separator for the build system. 17811PATH_SEPARATOR=$lt_PATH_SEPARATOR 17812 17813# The host system. 17814host_alias=$host_alias 17815host=$host 17816host_os=$host_os 17817 17818# The build system. 17819build_alias=$build_alias 17820build=$build 17821build_os=$build_os 17822 17823# A sed program that does not truncate output. 17824SED=$lt_SED 17825 17826# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17827Xsed="\$SED -e 1s/^X//" 17828 17829# A grep program that handles long lines. 17830GREP=$lt_GREP 17831 17832# An ERE matcher. 17833EGREP=$lt_EGREP 17834 17835# A literal string matcher. 17836FGREP=$lt_FGREP 17837 17838# A BSD- or MS-compatible name lister. 17839NM=$lt_NM 17840 17841# Whether we need soft or hard links. 17842LN_S=$lt_LN_S 17843 17844# What is the maximum length of a command? 17845max_cmd_len=$max_cmd_len 17846 17847# Object file suffix (normally "o"). 17848objext=$ac_objext 17849 17850# Executable file suffix (normally ""). 17851exeext=$exeext 17852 17853# whether the shell understands "unset". 17854lt_unset=$lt_unset 17855 17856# turn spaces into newlines. 17857SP2NL=$lt_lt_SP2NL 17858 17859# turn newlines into spaces. 17860NL2SP=$lt_lt_NL2SP 17861 17862# convert \$build file names to \$host format. 17863to_host_file_cmd=$lt_cv_to_host_file_cmd 17864 17865# convert \$build files to toolchain format. 17866to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17867 17868# An object symbol dumper. 17869OBJDUMP=$lt_OBJDUMP 17870 17871# Method to check whether dependent libraries are shared objects. 17872deplibs_check_method=$lt_deplibs_check_method 17873 17874# Command to use when deplibs_check_method = "file_magic". 17875file_magic_cmd=$lt_file_magic_cmd 17876 17877# How to find potential files when deplibs_check_method = "file_magic". 17878file_magic_glob=$lt_file_magic_glob 17879 17880# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17881want_nocaseglob=$lt_want_nocaseglob 17882 17883# DLL creation program. 17884DLLTOOL=$lt_DLLTOOL 17885 17886# Command to associate shared and link libraries. 17887sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17888 17889# The archiver. 17890AR=$lt_AR 17891 17892# Flags to create an archive. 17893AR_FLAGS=$lt_AR_FLAGS 17894 17895# How to feed a file listing to the archiver. 17896archiver_list_spec=$lt_archiver_list_spec 17897 17898# A symbol stripping program. 17899STRIP=$lt_STRIP 17900 17901# Commands used to install an old-style archive. 17902RANLIB=$lt_RANLIB 17903old_postinstall_cmds=$lt_old_postinstall_cmds 17904old_postuninstall_cmds=$lt_old_postuninstall_cmds 17905 17906# Whether to use a lock for old archive extraction. 17907lock_old_archive_extraction=$lock_old_archive_extraction 17908 17909# A C compiler. 17910LTCC=$lt_CC 17911 17912# LTCC compiler flags. 17913LTCFLAGS=$lt_CFLAGS 17914 17915# Take the output of nm and produce a listing of raw symbols and C names. 17916global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17917 17918# Transform the output of nm in a proper C declaration. 17919global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17920 17921# Transform the output of nm into a list of symbols to manually relocate. 17922global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17923 17924# Transform the output of nm in a C name address pair. 17925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17926 17927# Transform the output of nm in a C name address pair when lib prefix is needed. 17928global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17929 17930# The name lister interface. 17931nm_interface=$lt_lt_cv_nm_interface 17932 17933# Specify filename containing input files for \$NM. 17934nm_file_list_spec=$lt_nm_file_list_spec 17935 17936# The root where to search for dependent libraries,and where our libraries should be installed. 17937lt_sysroot=$lt_sysroot 17938 17939# Command to truncate a binary pipe. 17940lt_truncate_bin=$lt_lt_cv_truncate_bin 17941 17942# The name of the directory that contains temporary libtool files. 17943objdir=$objdir 17944 17945# Used to examine libraries when file_magic_cmd begins with "file". 17946MAGIC_CMD=$MAGIC_CMD 17947 17948# Must we lock files when doing compilation? 17949need_locks=$lt_need_locks 17950 17951# Manifest tool. 17952MANIFEST_TOOL=$lt_MANIFEST_TOOL 17953 17954# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17955DSYMUTIL=$lt_DSYMUTIL 17956 17957# Tool to change global to local symbols on Mac OS X. 17958NMEDIT=$lt_NMEDIT 17959 17960# Tool to manipulate fat objects and archives on Mac OS X. 17961LIPO=$lt_LIPO 17962 17963# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17964OTOOL=$lt_OTOOL 17965 17966# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17967OTOOL64=$lt_OTOOL64 17968 17969# Old archive suffix (normally "a"). 17970libext=$libext 17971 17972# Shared library suffix (normally ".so"). 17973shrext_cmds=$lt_shrext_cmds 17974 17975# The commands to extract the exported symbol list from a shared archive. 17976extract_expsyms_cmds=$lt_extract_expsyms_cmds 17977 17978# Variables whose values should be saved in libtool wrapper scripts and 17979# restored at link time. 17980variables_saved_for_relink=$lt_variables_saved_for_relink 17981 17982# Do we need the "lib" prefix for modules? 17983need_lib_prefix=$need_lib_prefix 17984 17985# Do we need a version for libraries? 17986need_version=$need_version 17987 17988# Library versioning type. 17989version_type=$version_type 17990 17991# Shared library runtime path variable. 17992runpath_var=$runpath_var 17993 17994# Shared library path variable. 17995shlibpath_var=$shlibpath_var 17996 17997# Is shlibpath searched before the hard-coded library search path? 17998shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17999 18000# Format of library name prefix. 18001libname_spec=$lt_libname_spec 18002 18003# List of archive names. First name is the real one, the rest are links. 18004# The last name is the one that the linker finds with -lNAME 18005library_names_spec=$lt_library_names_spec 18006 18007# The coded name of the library, if different from the real name. 18008soname_spec=$lt_soname_spec 18009 18010# Permission mode override for installation of shared libraries. 18011install_override_mode=$lt_install_override_mode 18012 18013# Command to use after installation of a shared archive. 18014postinstall_cmds=$lt_postinstall_cmds 18015 18016# Command to use after uninstallation of a shared archive. 18017postuninstall_cmds=$lt_postuninstall_cmds 18018 18019# Commands used to finish a libtool library installation in a directory. 18020finish_cmds=$lt_finish_cmds 18021 18022# As "finish_cmds", except a single script fragment to be evaled but 18023# not shown. 18024finish_eval=$lt_finish_eval 18025 18026# Whether we should hardcode library paths into libraries. 18027hardcode_into_libs=$hardcode_into_libs 18028 18029# Compile-time system search path for libraries. 18030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18031 18032# Detected run-time system search path for libraries. 18033sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18034 18035# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18036configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18037 18038# Whether dlopen is supported. 18039dlopen_support=$enable_dlopen 18040 18041# Whether dlopen of programs is supported. 18042dlopen_self=$enable_dlopen_self 18043 18044# Whether dlopen of statically linked programs is supported. 18045dlopen_self_static=$enable_dlopen_self_static 18046 18047# Commands to strip libraries. 18048old_striplib=$lt_old_striplib 18049striplib=$lt_striplib 18050 18051 18052# The linker used to build libraries. 18053LD=$lt_LD 18054 18055# How to create reloadable object files. 18056reload_flag=$lt_reload_flag 18057reload_cmds=$lt_reload_cmds 18058 18059# Commands used to build an old-style archive. 18060old_archive_cmds=$lt_old_archive_cmds 18061 18062# A language specific compiler. 18063CC=$lt_compiler 18064 18065# Is the compiler the GNU compiler? 18066with_gcc=$GCC 18067 18068# Compiler flag to turn off builtin functions. 18069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18070 18071# Additional compiler flags for building library objects. 18072pic_flag=$lt_lt_prog_compiler_pic 18073 18074# How to pass a linker flag through the compiler. 18075wl=$lt_lt_prog_compiler_wl 18076 18077# Compiler flag to prevent dynamic linking. 18078link_static_flag=$lt_lt_prog_compiler_static 18079 18080# Does compiler simultaneously support -c and -o options? 18081compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18082 18083# Whether or not to add -lc for building shared libraries. 18084build_libtool_need_lc=$archive_cmds_need_lc 18085 18086# Whether or not to disallow shared libs when runtime libs are static. 18087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18088 18089# Compiler flag to allow reflexive dlopens. 18090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18091 18092# Compiler flag to generate shared objects directly from archives. 18093whole_archive_flag_spec=$lt_whole_archive_flag_spec 18094 18095# Whether the compiler copes with passing no objects directly. 18096compiler_needs_object=$lt_compiler_needs_object 18097 18098# Create an old-style archive from a shared archive. 18099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18100 18101# Create a temporary old-style archive to link instead of a shared archive. 18102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18103 18104# Commands used to build a shared archive. 18105archive_cmds=$lt_archive_cmds 18106archive_expsym_cmds=$lt_archive_expsym_cmds 18107 18108# Commands used to build a loadable module if different from building 18109# a shared archive. 18110module_cmds=$lt_module_cmds 18111module_expsym_cmds=$lt_module_expsym_cmds 18112 18113# Whether we are building with GNU ld or not. 18114with_gnu_ld=$lt_with_gnu_ld 18115 18116# Flag that allows shared libraries with undefined symbols to be built. 18117allow_undefined_flag=$lt_allow_undefined_flag 18118 18119# Flag that enforces no undefined symbols. 18120no_undefined_flag=$lt_no_undefined_flag 18121 18122# Flag to hardcode \$libdir into a binary during linking. 18123# This must work even if \$libdir does not exist 18124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18125 18126# Whether we need a single "-rpath" flag with a separated argument. 18127hardcode_libdir_separator=$lt_hardcode_libdir_separator 18128 18129# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18130# DIR into the resulting binary. 18131hardcode_direct=$hardcode_direct 18132 18133# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18134# DIR into the resulting binary and the resulting library dependency is 18135# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18136# library is relocated. 18137hardcode_direct_absolute=$hardcode_direct_absolute 18138 18139# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18140# into the resulting binary. 18141hardcode_minus_L=$hardcode_minus_L 18142 18143# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18144# into the resulting binary. 18145hardcode_shlibpath_var=$hardcode_shlibpath_var 18146 18147# Set to "yes" if building a shared library automatically hardcodes DIR 18148# into the library and all subsequent libraries and executables linked 18149# against it. 18150hardcode_automatic=$hardcode_automatic 18151 18152# Set to yes if linker adds runtime paths of dependent libraries 18153# to runtime path list. 18154inherit_rpath=$inherit_rpath 18155 18156# Whether libtool must link a program against all its dependency libraries. 18157link_all_deplibs=$link_all_deplibs 18158 18159# Set to "yes" if exported symbols are required. 18160always_export_symbols=$always_export_symbols 18161 18162# The commands to list exported symbols. 18163export_symbols_cmds=$lt_export_symbols_cmds 18164 18165# Symbols that should not be listed in the preloaded symbols. 18166exclude_expsyms=$lt_exclude_expsyms 18167 18168# Symbols that must always be exported. 18169include_expsyms=$lt_include_expsyms 18170 18171# Commands necessary for linking programs (against libraries) with templates. 18172prelink_cmds=$lt_prelink_cmds 18173 18174# Commands necessary for finishing linking programs. 18175postlink_cmds=$lt_postlink_cmds 18176 18177# Specify filename containing input files. 18178file_list_spec=$lt_file_list_spec 18179 18180# How to hardcode a shared library path into an executable. 18181hardcode_action=$hardcode_action 18182 18183# The directories searched by this compiler when creating a shared library. 18184compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18185 18186# Dependencies to place before and after the objects being linked to 18187# create a shared library. 18188predep_objects=$lt_predep_objects 18189postdep_objects=$lt_postdep_objects 18190predeps=$lt_predeps 18191postdeps=$lt_postdeps 18192 18193# The library search path used internally by the compiler when linking 18194# a shared library. 18195compiler_lib_search_path=$lt_compiler_lib_search_path 18196 18197# ### END LIBTOOL CONFIG 18198 18199_LT_EOF 18200 18201 cat <<'_LT_EOF' >> "$cfgfile" 18202 18203# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18204 18205# func_munge_path_list VARIABLE PATH 18206# ----------------------------------- 18207# VARIABLE is name of variable containing _space_ separated list of 18208# directories to be munged by the contents of PATH, which is string 18209# having a format: 18210# "DIR[:DIR]:" 18211# string "DIR[ DIR]" will be prepended to VARIABLE 18212# ":DIR[:DIR]" 18213# string "DIR[ DIR]" will be appended to VARIABLE 18214# "DIRP[:DIRP]::[DIRA:]DIRA" 18215# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18216# "DIRA[ DIRA]" will be appended to VARIABLE 18217# "DIR[:DIR]" 18218# VARIABLE will be replaced by "DIR[ DIR]" 18219func_munge_path_list () 18220{ 18221 case x@S|@2 in 18222 x) 18223 ;; 18224 *:) 18225 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18226 ;; 18227 x:*) 18228 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18229 ;; 18230 *::*) 18231 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18232 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18233 ;; 18234 *) 18235 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18236 ;; 18237 esac 18238} 18239 18240 18241# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18242func_cc_basename () 18243{ 18244 for cc_temp in @S|@*""; do 18245 case $cc_temp in 18246 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18247 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18248 \-*) ;; 18249 *) break;; 18250 esac 18251 done 18252 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18253} 18254 18255 18256# ### END FUNCTIONS SHARED WITH CONFIGURE 18257 18258_LT_EOF 18259 18260 case $host_os in 18261 aix3*) 18262 cat <<\_LT_EOF >> "$cfgfile" 18263# AIX sometimes has problems with the GCC collect2 program. For some 18264# reason, if we set the COLLECT_NAMES environment variable, the problems 18265# vanish in a puff of smoke. 18266if test set != "${COLLECT_NAMES+set}"; then 18267 COLLECT_NAMES= 18268 export COLLECT_NAMES 18269fi 18270_LT_EOF 18271 ;; 18272 esac 18273 18274 18275ltmain=$ac_aux_dir/ltmain.sh 18276 18277 18278 # We use sed instead of cat because bash on DJGPP gets confused if 18279 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18280 # text mode, it properly converts lines to CR/LF. This bash problem 18281 # is reportedly fixed, but why not run on old versions too? 18282 sed '$q' "$ltmain" >> "$cfgfile" \ 18283 || (rm -f "$cfgfile"; exit 1) 18284 18285 mv -f "$cfgfile" "$ofile" || 18286 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18287 chmod +x "$ofile" 18288 18289 18290 cat <<_LT_EOF >> "$ofile" 18291 18292# ### BEGIN LIBTOOL TAG CONFIG: CXX 18293 18294# The linker used to build libraries. 18295LD=$lt_LD_CXX 18296 18297# How to create reloadable object files. 18298reload_flag=$lt_reload_flag_CXX 18299reload_cmds=$lt_reload_cmds_CXX 18300 18301# Commands used to build an old-style archive. 18302old_archive_cmds=$lt_old_archive_cmds_CXX 18303 18304# A language specific compiler. 18305CC=$lt_compiler_CXX 18306 18307# Is the compiler the GNU compiler? 18308with_gcc=$GCC_CXX 18309 18310# Compiler flag to turn off builtin functions. 18311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18312 18313# Additional compiler flags for building library objects. 18314pic_flag=$lt_lt_prog_compiler_pic_CXX 18315 18316# How to pass a linker flag through the compiler. 18317wl=$lt_lt_prog_compiler_wl_CXX 18318 18319# Compiler flag to prevent dynamic linking. 18320link_static_flag=$lt_lt_prog_compiler_static_CXX 18321 18322# Does compiler simultaneously support -c and -o options? 18323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18324 18325# Whether or not to add -lc for building shared libraries. 18326build_libtool_need_lc=$archive_cmds_need_lc_CXX 18327 18328# Whether or not to disallow shared libs when runtime libs are static. 18329allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18330 18331# Compiler flag to allow reflexive dlopens. 18332export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18333 18334# Compiler flag to generate shared objects directly from archives. 18335whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18336 18337# Whether the compiler copes with passing no objects directly. 18338compiler_needs_object=$lt_compiler_needs_object_CXX 18339 18340# Create an old-style archive from a shared archive. 18341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18342 18343# Create a temporary old-style archive to link instead of a shared archive. 18344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18345 18346# Commands used to build a shared archive. 18347archive_cmds=$lt_archive_cmds_CXX 18348archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18349 18350# Commands used to build a loadable module if different from building 18351# a shared archive. 18352module_cmds=$lt_module_cmds_CXX 18353module_expsym_cmds=$lt_module_expsym_cmds_CXX 18354 18355# Whether we are building with GNU ld or not. 18356with_gnu_ld=$lt_with_gnu_ld_CXX 18357 18358# Flag that allows shared libraries with undefined symbols to be built. 18359allow_undefined_flag=$lt_allow_undefined_flag_CXX 18360 18361# Flag that enforces no undefined symbols. 18362no_undefined_flag=$lt_no_undefined_flag_CXX 18363 18364# Flag to hardcode \$libdir into a binary during linking. 18365# This must work even if \$libdir does not exist 18366hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18367 18368# Whether we need a single "-rpath" flag with a separated argument. 18369hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18370 18371# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18372# DIR into the resulting binary. 18373hardcode_direct=$hardcode_direct_CXX 18374 18375# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18376# DIR into the resulting binary and the resulting library dependency is 18377# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18378# library is relocated. 18379hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18380 18381# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18382# into the resulting binary. 18383hardcode_minus_L=$hardcode_minus_L_CXX 18384 18385# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18386# into the resulting binary. 18387hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18388 18389# Set to "yes" if building a shared library automatically hardcodes DIR 18390# into the library and all subsequent libraries and executables linked 18391# against it. 18392hardcode_automatic=$hardcode_automatic_CXX 18393 18394# Set to yes if linker adds runtime paths of dependent libraries 18395# to runtime path list. 18396inherit_rpath=$inherit_rpath_CXX 18397 18398# Whether libtool must link a program against all its dependency libraries. 18399link_all_deplibs=$link_all_deplibs_CXX 18400 18401# Set to "yes" if exported symbols are required. 18402always_export_symbols=$always_export_symbols_CXX 18403 18404# The commands to list exported symbols. 18405export_symbols_cmds=$lt_export_symbols_cmds_CXX 18406 18407# Symbols that should not be listed in the preloaded symbols. 18408exclude_expsyms=$lt_exclude_expsyms_CXX 18409 18410# Symbols that must always be exported. 18411include_expsyms=$lt_include_expsyms_CXX 18412 18413# Commands necessary for linking programs (against libraries) with templates. 18414prelink_cmds=$lt_prelink_cmds_CXX 18415 18416# Commands necessary for finishing linking programs. 18417postlink_cmds=$lt_postlink_cmds_CXX 18418 18419# Specify filename containing input files. 18420file_list_spec=$lt_file_list_spec_CXX 18421 18422# How to hardcode a shared library path into an executable. 18423hardcode_action=$hardcode_action_CXX 18424 18425# The directories searched by this compiler when creating a shared library. 18426compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18427 18428# Dependencies to place before and after the objects being linked to 18429# create a shared library. 18430predep_objects=$lt_predep_objects_CXX 18431postdep_objects=$lt_postdep_objects_CXX 18432predeps=$lt_predeps_CXX 18433postdeps=$lt_postdeps_CXX 18434 18435# The library search path used internally by the compiler when linking 18436# a shared library. 18437compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18438 18439# ### END LIBTOOL TAG CONFIG: CXX 18440_LT_EOF 18441 18442 ;; 18443 18444 esac 18445done # for ac_tag 18446 18447 18448as_fn_exit 0 18449_ACEOF 18450ac_clean_files=$ac_clean_files_save 18451 18452test $ac_write_fail = 0 || 18453 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18454 18455 18456# configure is writing to config.log, and then calls config.status. 18457# config.status does its own redirection, appending to config.log. 18458# Unfortunately, on DOS this fails, as config.log is still kept open 18459# by configure, so config.status won't be able to write to it; its 18460# output is simply discarded. So we exec the FD to /dev/null, 18461# effectively closing config.log, so it can be properly (re)opened and 18462# appended to by config.status. When coming back to configure, we 18463# need to make the FD available again. 18464if test "$no_create" != yes; then 18465 ac_cs_success=: 18466 ac_config_status_args= 18467 test "$silent" = yes && 18468 ac_config_status_args="$ac_config_status_args --quiet" 18469 exec 5>/dev/null 18470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18471 exec 5>>config.log 18472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18473 # would make configure fail if this is the last instruction. 18474 $ac_cs_success || as_fn_exit 1 18475fi 18476if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18478$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18479fi 18480 18481 18482 18483echo "" 18484echo "Configured MediaInfo for '$target'" 18485echo "" 18486echo " Unicode? $enable_unicode" 18487echo " stream missing support? $enable_stream_missing" 18488echo "" 18489echo " Using libzen? $with_zenlib" 18490echo " Using libmediainfo? $with_mediainfolib" 18491echo "" 18492echo " CXXFLAGS: $CXXFLAGS" 18493echo " LIBS: $LIBS"