1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libvorbis 1.2.3. 4# 5# Report bugs to <vorbis-dev@xiph.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: vorbis-dev@xiph.org about your system, including any 235$0: error possibly output before this message. Then install 236$0: a modern shell, or manually run the script under such a 237$0: shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543echo=${ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $echo works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<EOF 562$* 563EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$ECHO"; then 572if test "X${echo_test_string+set}" != Xset; then 573# find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if (echo_test_string=`eval $cmd`) 2>/dev/null && 577 echo_test_string=`eval $cmd` && 578 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 579 then 580 break 581 fi 582 done 583fi 584 585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 echo="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$echo" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 echo='print -r' 616 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 echo='printf %s\n' 627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 echo="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 echo="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 echo=echo 665 fi 666 fi 667 fi 668 fi 669fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674ECHO=$echo 675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682tagnames=${tagnames+${tagnames},}CXX 683 684tagnames=${tagnames+${tagnames},}F77 685 686test -n "$DJDIR" || exec 7<&0 </dev/null 687exec 6>&1 688 689# Name of the host. 690# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 691# so uname gets run too. 692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 693 694# 695# Initializations. 696# 697ac_default_prefix=/usr/local 698ac_clean_files= 699ac_config_libobj_dir=. 700LIBOBJS= 701cross_compiling=no 702subdirs= 703MFLAGS= 704MAKEFLAGS= 705 706# Identity of this package. 707PACKAGE_NAME='libvorbis' 708PACKAGE_TARNAME='libvorbis' 709PACKAGE_VERSION='1.2.3' 710PACKAGE_STRING='libvorbis 1.2.3' 711PACKAGE_BUGREPORT='vorbis-dev@xiph.org' 712PACKAGE_URL='' 713 714ac_unique_file="lib/mdct.c" 715# Factoring default headers for most tests. 716ac_includes_default="\ 717#include <stdio.h> 718#ifdef HAVE_SYS_TYPES_H 719# include <sys/types.h> 720#endif 721#ifdef HAVE_SYS_STAT_H 722# include <sys/stat.h> 723#endif 724#ifdef STDC_HEADERS 725# include <stdlib.h> 726# include <stddef.h> 727#else 728# ifdef HAVE_STDLIB_H 729# include <stdlib.h> 730# endif 731#endif 732#ifdef HAVE_STRING_H 733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 734# include <memory.h> 735# endif 736# include <string.h> 737#endif 738#ifdef HAVE_STRINGS_H 739# include <strings.h> 740#endif 741#ifdef HAVE_INTTYPES_H 742# include <inttypes.h> 743#endif 744#ifdef HAVE_STDINT_H 745# include <stdint.h> 746#endif 747#ifdef HAVE_UNISTD_H 748# include <unistd.h> 749#endif" 750 751ac_subst_vars='LTLIBOBJS 752LIBTOOL_DEPS 753pthread_lib 754PROFILE 755DEBUG 756VORBIS_LIBS 757LIBOBJS 758ALLOCA 759OGG_LIBS 760OGG_CFLAGS 761PKG_CONFIG 762BUILD_DOCS_FALSE 763BUILD_DOCS_TRUE 764HTLATEX 765PDFLATEX 766LIBTOOL 767ac_ct_F77 768FFLAGS 769F77 770CXXCPP 771am__fastdepCXX_FALSE 772am__fastdepCXX_TRUE 773CXXDEPMODE 774ac_ct_CXX 775CXXFLAGS 776CXX 777OBJDUMP 778AS 779DLLTOOL 780NMEDIT 781DSYMUTIL 782RANLIB 783AR 784ECHO 785LN_S 786EGREP 787GREP 788SED 789CPP 790am__fastdepCC_FALSE 791am__fastdepCC_TRUE 792CCDEPMODE 793AMDEPBACKSLASH 794AMDEP_FALSE 795AMDEP_TRUE 796am__quote 797am__include 798DEPDIR 799OBJEXT 800EXEEXT 801ac_ct_CC 802CPPFLAGS 803LDFLAGS 804CFLAGS 805CC 806VE_LIB_AGE 807VE_LIB_REVISION 808VE_LIB_CURRENT 809VF_LIB_AGE 810VF_LIB_REVISION 811VF_LIB_CURRENT 812V_LIB_AGE 813V_LIB_REVISION 814V_LIB_CURRENT 815ACLOCAL_AMFLAGS 816am__untar 817am__tar 818AMTAR 819am__leading_dot 820SET_MAKE 821AWK 822mkdir_p 823MKDIR_P 824INSTALL_STRIP_PROGRAM 825STRIP 826install_sh 827MAKEINFO 828AUTOHEADER 829AUTOMAKE 830AUTOCONF 831ACLOCAL 832VERSION 833PACKAGE 834CYGPATH_W 835am__isrc 836INSTALL_DATA 837INSTALL_SCRIPT 838INSTALL_PROGRAM 839target_os 840target_vendor 841target_cpu 842target 843host_os 844host_vendor 845host_cpu 846host 847build_os 848build_vendor 849build_cpu 850build 851target_alias 852host_alias 853build_alias 854LIBS 855ECHO_T 856ECHO_N 857ECHO_C 858DEFS 859mandir 860localedir 861libdir 862psdir 863pdfdir 864dvidir 865htmldir 866infodir 867docdir 868oldincludedir 869includedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL' 889ac_subst_files='' 890ac_user_opts=' 891enable_option_checking 892enable_dependency_tracking 893enable_shared 894enable_static 895enable_fast_install 896with_gnu_ld 897enable_libtool_lock 898with_pic 899with_tags 900enable_docs 901with_ogg 902with_ogg_libraries 903with_ogg_includes 904enable_oggtest 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CPP 915CXX 916CXXFLAGS 917CCC 918CXXCPP 919F77 920FFLAGS 921PKG_CONFIG 922OGG_CFLAGS 923OGG_LIBS' 924 925 926# Initialize some variables set by options. 927ac_init_help= 928ac_init_version=false 929ac_unrecognized_opts= 930ac_unrecognized_sep= 931# The variables have the same names as the options, with 932# dashes changed to underlines. 933cache_file=/dev/null 934exec_prefix=NONE 935no_create= 936no_recursion= 937prefix=NONE 938program_prefix=NONE 939program_suffix=NONE 940program_transform_name=s,x,x, 941silent= 942site= 943srcdir= 944verbose= 945x_includes=NONE 946x_libraries=NONE 947 948# Installation directory options. 949# These are left unexpanded so users can "make install exec_prefix=/foo" 950# and all the variables that are supposed to be based on exec_prefix 951# by default will actually change. 952# Use braces instead of parens because sh, perl, etc. also accept them. 953# (The list follows the same order as the GNU Coding Standards.) 954bindir='${exec_prefix}/bin' 955sbindir='${exec_prefix}/sbin' 956libexecdir='${exec_prefix}/libexec' 957datarootdir='${prefix}/share' 958datadir='${datarootdir}' 959sysconfdir='${prefix}/etc' 960sharedstatedir='${prefix}/com' 961localstatedir='${prefix}/var' 962includedir='${prefix}/include' 963oldincludedir='/usr/include' 964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 965infodir='${datarootdir}/info' 966htmldir='${docdir}' 967dvidir='${docdir}' 968pdfdir='${docdir}' 969psdir='${docdir}' 970libdir='${exec_prefix}/lib' 971localedir='${datarootdir}/locale' 972mandir='${datarootdir}/man' 973 974ac_prev= 975ac_dashdash= 976for ac_option 977do 978 # If the previous option needs an argument, assign it. 979 if test -n "$ac_prev"; then 980 eval $ac_prev=\$ac_option 981 ac_prev= 982 continue 983 fi 984 985 case $ac_option in 986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 987 *) ac_optarg=yes ;; 988 esac 989 990 # Accept the important Cygnus configure options, so we can diagnose typos. 991 992 case $ac_dashdash$ac_option in 993 --) 994 ac_dashdash=yes ;; 995 996 -bindir | --bindir | --bindi | --bind | --bin | --bi) 997 ac_prev=bindir ;; 998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 999 bindir=$ac_optarg ;; 1000 1001 -build | --build | --buil | --bui | --bu) 1002 ac_prev=build_alias ;; 1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1004 build_alias=$ac_optarg ;; 1005 1006 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1008 ac_prev=cache_file ;; 1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1011 cache_file=$ac_optarg ;; 1012 1013 --config-cache | -C) 1014 cache_file=config.cache ;; 1015 1016 -datadir | --datadir | --datadi | --datad) 1017 ac_prev=datadir ;; 1018 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1019 datadir=$ac_optarg ;; 1020 1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1022 | --dataroo | --dataro | --datar) 1023 ac_prev=datarootdir ;; 1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1026 datarootdir=$ac_optarg ;; 1027 1028 -disable-* | --disable-*) 1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1032 as_fn_error "invalid feature name: $ac_useropt" 1033 ac_useropt_orig=$ac_useropt 1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1035 case $ac_user_opts in 1036 *" 1037"enable_$ac_useropt" 1038"*) ;; 1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1040 ac_unrecognized_sep=', ';; 1041 esac 1042 eval enable_$ac_useropt=no ;; 1043 1044 -docdir | --docdir | --docdi | --doc | --do) 1045 ac_prev=docdir ;; 1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1047 docdir=$ac_optarg ;; 1048 1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1050 ac_prev=dvidir ;; 1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1052 dvidir=$ac_optarg ;; 1053 1054 -enable-* | --enable-*) 1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error "invalid feature name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063"enable_$ac_useropt" 1064"*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 1067 esac 1068 eval enable_$ac_useropt=\$ac_optarg ;; 1069 1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1072 | --exec | --exe | --ex) 1073 ac_prev=exec_prefix ;; 1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1076 | --exec=* | --exe=* | --ex=*) 1077 exec_prefix=$ac_optarg ;; 1078 1079 -gas | --gas | --ga | --g) 1080 # Obsolete; use --with-gas. 1081 with_gas=yes ;; 1082 1083 -help | --help | --hel | --he | -h) 1084 ac_init_help=long ;; 1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1086 ac_init_help=recursive ;; 1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1088 ac_init_help=short ;; 1089 1090 -host | --host | --hos | --ho) 1091 ac_prev=host_alias ;; 1092 -host=* | --host=* | --hos=* | --ho=*) 1093 host_alias=$ac_optarg ;; 1094 1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1096 ac_prev=htmldir ;; 1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1098 | --ht=*) 1099 htmldir=$ac_optarg ;; 1100 1101 -includedir | --includedir | --includedi | --included | --include \ 1102 | --includ | --inclu | --incl | --inc) 1103 ac_prev=includedir ;; 1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1105 | --includ=* | --inclu=* | --incl=* | --inc=*) 1106 includedir=$ac_optarg ;; 1107 1108 -infodir | --infodir | --infodi | --infod | --info | --inf) 1109 ac_prev=infodir ;; 1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1111 infodir=$ac_optarg ;; 1112 1113 -libdir | --libdir | --libdi | --libd) 1114 ac_prev=libdir ;; 1115 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1116 libdir=$ac_optarg ;; 1117 1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1119 | --libexe | --libex | --libe) 1120 ac_prev=libexecdir ;; 1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1122 | --libexe=* | --libex=* | --libe=*) 1123 libexecdir=$ac_optarg ;; 1124 1125 -localedir | --localedir | --localedi | --localed | --locale) 1126 ac_prev=localedir ;; 1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1128 localedir=$ac_optarg ;; 1129 1130 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1131 | --localstate | --localstat | --localsta | --localst | --locals) 1132 ac_prev=localstatedir ;; 1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1135 localstatedir=$ac_optarg ;; 1136 1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1138 ac_prev=mandir ;; 1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1140 mandir=$ac_optarg ;; 1141 1142 -nfp | --nfp | --nf) 1143 # Obsolete; use --without-fp. 1144 with_fp=no ;; 1145 1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1147 | --no-cr | --no-c | -n) 1148 no_create=yes ;; 1149 1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1152 no_recursion=yes ;; 1153 1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1156 | --oldin | --oldi | --old | --ol | --o) 1157 ac_prev=oldincludedir ;; 1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1161 oldincludedir=$ac_optarg ;; 1162 1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1164 ac_prev=prefix ;; 1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1166 prefix=$ac_optarg ;; 1167 1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1169 | --program-pre | --program-pr | --program-p) 1170 ac_prev=program_prefix ;; 1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1173 program_prefix=$ac_optarg ;; 1174 1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1176 | --program-suf | --program-su | --program-s) 1177 ac_prev=program_suffix ;; 1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1180 program_suffix=$ac_optarg ;; 1181 1182 -program-transform-name | --program-transform-name \ 1183 | --program-transform-nam | --program-transform-na \ 1184 | --program-transform-n | --program-transform- \ 1185 | --program-transform | --program-transfor \ 1186 | --program-transfo | --program-transf \ 1187 | --program-trans | --program-tran \ 1188 | --progr-tra | --program-tr | --program-t) 1189 ac_prev=program_transform_name ;; 1190 -program-transform-name=* | --program-transform-name=* \ 1191 | --program-transform-nam=* | --program-transform-na=* \ 1192 | --program-transform-n=* | --program-transform-=* \ 1193 | --program-transform=* | --program-transfor=* \ 1194 | --program-transfo=* | --program-transf=* \ 1195 | --program-trans=* | --program-tran=* \ 1196 | --progr-tra=* | --program-tr=* | --program-t=*) 1197 program_transform_name=$ac_optarg ;; 1198 1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1200 ac_prev=pdfdir ;; 1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1202 pdfdir=$ac_optarg ;; 1203 1204 -psdir | --psdir | --psdi | --psd | --ps) 1205 ac_prev=psdir ;; 1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1207 psdir=$ac_optarg ;; 1208 1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1210 | -silent | --silent | --silen | --sile | --sil) 1211 silent=yes ;; 1212 1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1214 ac_prev=sbindir ;; 1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1216 | --sbi=* | --sb=*) 1217 sbindir=$ac_optarg ;; 1218 1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1221 | --sharedst | --shareds | --shared | --share | --shar \ 1222 | --sha | --sh) 1223 ac_prev=sharedstatedir ;; 1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1227 | --sha=* | --sh=*) 1228 sharedstatedir=$ac_optarg ;; 1229 1230 -site | --site | --sit) 1231 ac_prev=site ;; 1232 -site=* | --site=* | --sit=*) 1233 site=$ac_optarg ;; 1234 1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1236 ac_prev=srcdir ;; 1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1238 srcdir=$ac_optarg ;; 1239 1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1241 | --syscon | --sysco | --sysc | --sys | --sy) 1242 ac_prev=sysconfdir ;; 1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1245 sysconfdir=$ac_optarg ;; 1246 1247 -target | --target | --targe | --targ | --tar | --ta | --t) 1248 ac_prev=target_alias ;; 1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1250 target_alias=$ac_optarg ;; 1251 1252 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1253 verbose=yes ;; 1254 1255 -version | --version | --versio | --versi | --vers | -V) 1256 ac_init_version=: ;; 1257 1258 -with-* | --with-*) 1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1260 # Reject names that are not valid shell variable names. 1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1262 as_fn_error "invalid package name: $ac_useropt" 1263 ac_useropt_orig=$ac_useropt 1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1265 case $ac_user_opts in 1266 *" 1267"with_$ac_useropt" 1268"*) ;; 1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1270 ac_unrecognized_sep=', ';; 1271 esac 1272 eval with_$ac_useropt=\$ac_optarg ;; 1273 1274 -without-* | --without-*) 1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1276 # Reject names that are not valid shell variable names. 1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1278 as_fn_error "invalid package name: $ac_useropt" 1279 ac_useropt_orig=$ac_useropt 1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1281 case $ac_user_opts in 1282 *" 1283"with_$ac_useropt" 1284"*) ;; 1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1286 ac_unrecognized_sep=', ';; 1287 esac 1288 eval with_$ac_useropt=no ;; 1289 1290 --x) 1291 # Obsolete; use --with-x. 1292 with_x=yes ;; 1293 1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1295 | --x-incl | --x-inc | --x-in | --x-i) 1296 ac_prev=x_includes ;; 1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1299 x_includes=$ac_optarg ;; 1300 1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1303 ac_prev=x_libraries ;; 1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1306 x_libraries=$ac_optarg ;; 1307 1308 -*) as_fn_error "unrecognized option: \`$ac_option' 1309Try \`$0 --help' for more information." 1310 ;; 1311 1312 *=*) 1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1314 # Reject names that are not valid shell variable names. 1315 case $ac_envvar in #( 1316 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1317 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1318 esac 1319 eval $ac_envvar=\$ac_optarg 1320 export $ac_envvar ;; 1321 1322 *) 1323 # FIXME: should be removed in autoconf 3.0. 1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1328 ;; 1329 1330 esac 1331done 1332 1333if test -n "$ac_prev"; then 1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1335 as_fn_error "missing argument to $ac_option" 1336fi 1337 1338if test -n "$ac_unrecognized_opts"; then 1339 case $enable_option_checking in 1340 no) ;; 1341 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1343 esac 1344fi 1345 1346# Check all directory arguments for consistency. 1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1348 datadir sysconfdir sharedstatedir localstatedir includedir \ 1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1350 libdir localedir mandir 1351do 1352 eval ac_val=\$$ac_var 1353 # Remove trailing slashes. 1354 case $ac_val in 1355 */ ) 1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1357 eval $ac_var=\$ac_val;; 1358 esac 1359 # Be sure to have absolute directory names. 1360 case $ac_val in 1361 [\\/$]* | ?:[\\/]* ) continue;; 1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1363 esac 1364 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1365done 1366 1367# There might be people who depend on the old broken behavior: `$host' 1368# used to hold the argument of --host etc. 1369# FIXME: To remove some day. 1370build=$build_alias 1371host=$host_alias 1372target=$target_alias 1373 1374# FIXME: To remove some day. 1375if test "x$host_alias" != x; then 1376 if test "x$build_alias" = x; then 1377 cross_compiling=maybe 1378 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1379 If a cross compiler is detected then cross compile mode will be used." >&2 1380 elif test "x$build_alias" != "x$host_alias"; then 1381 cross_compiling=yes 1382 fi 1383fi 1384 1385ac_tool_prefix= 1386test -n "$host_alias" && ac_tool_prefix=$host_alias- 1387 1388test "$silent" = yes && exec 6>/dev/null 1389 1390 1391ac_pwd=`pwd` && test -n "$ac_pwd" && 1392ac_ls_di=`ls -di .` && 1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1394 as_fn_error "working directory cannot be determined" 1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1396 as_fn_error "pwd does not report name of working directory" 1397 1398 1399# Find the source files, if location was not specified. 1400if test -z "$srcdir"; then 1401 ac_srcdir_defaulted=yes 1402 # Try the directory containing this script, then the parent directory. 1403 ac_confdir=`$as_dirname -- "$as_myself" || 1404$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1405 X"$as_myself" : 'X\(//\)[^/]' \| \ 1406 X"$as_myself" : 'X\(//\)$' \| \ 1407 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1408$as_echo X"$as_myself" | 1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\/\)[^/].*/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\/\)$/{ 1418 s//\1/ 1419 q 1420 } 1421 /^X\(\/\).*/{ 1422 s//\1/ 1423 q 1424 } 1425 s/.*/./; q'` 1426 srcdir=$ac_confdir 1427 if test ! -r "$srcdir/$ac_unique_file"; then 1428 srcdir=.. 1429 fi 1430else 1431 ac_srcdir_defaulted=no 1432fi 1433if test ! -r "$srcdir/$ac_unique_file"; then 1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1435 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1436fi 1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1438ac_abs_confdir=`( 1439 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1440 pwd)` 1441# When building in place, set srcdir=. 1442if test "$ac_abs_confdir" = "$ac_pwd"; then 1443 srcdir=. 1444fi 1445# Remove unnecessary trailing slashes from srcdir. 1446# Double slashes in file names in object file debugging info 1447# mess up M-x gdb in Emacs. 1448case $srcdir in 1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1450esac 1451for ac_var in $ac_precious_vars; do 1452 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1453 eval ac_env_${ac_var}_value=\$${ac_var} 1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1455 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1456done 1457 1458# 1459# Report the --help message. 1460# 1461if test "$ac_init_help" = "long"; then 1462 # Omit some internal or obsolete options to make the list less imposing. 1463 # This message is too long to be a string in the A/UX 3.1 sh. 1464 cat <<_ACEOF 1465\`configure' configures libvorbis 1.2.3 to adapt to many kinds of systems. 1466 1467Usage: $0 [OPTION]... [VAR=VALUE]... 1468 1469To assign environment variables (e.g., CC, CFLAGS...), specify them as 1470VAR=VALUE. See below for descriptions of some of the useful variables. 1471 1472Defaults for the options are specified in brackets. 1473 1474Configuration: 1475 -h, --help display this help and exit 1476 --help=short display options specific to this package 1477 --help=recursive display the short help of all the included packages 1478 -V, --version display version information and exit 1479 -q, --quiet, --silent do not print \`checking...' messages 1480 --cache-file=FILE cache test results in FILE [disabled] 1481 -C, --config-cache alias for \`--cache-file=config.cache' 1482 -n, --no-create do not create output files 1483 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1484 1485Installation directories: 1486 --prefix=PREFIX install architecture-independent files in PREFIX 1487 [$ac_default_prefix] 1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1489 [PREFIX] 1490 1491By default, \`make install' will install all the files in 1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1493an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1494for instance \`--prefix=\$HOME'. 1495 1496For better control, use the options below. 1497 1498Fine tuning of the installation directories: 1499 --bindir=DIR user executables [EPREFIX/bin] 1500 --sbindir=DIR system admin executables [EPREFIX/sbin] 1501 --libexecdir=DIR program executables [EPREFIX/libexec] 1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1505 --libdir=DIR object code libraries [EPREFIX/lib] 1506 --includedir=DIR C header files [PREFIX/include] 1507 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1510 --infodir=DIR info documentation [DATAROOTDIR/info] 1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1512 --mandir=DIR man documentation [DATAROOTDIR/man] 1513 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis] 1514 --htmldir=DIR html documentation [DOCDIR] 1515 --dvidir=DIR dvi documentation [DOCDIR] 1516 --pdfdir=DIR pdf documentation [DOCDIR] 1517 --psdir=DIR ps documentation [DOCDIR] 1518_ACEOF 1519 1520 cat <<\_ACEOF 1521 1522Program names: 1523 --program-prefix=PREFIX prepend PREFIX to installed program names 1524 --program-suffix=SUFFIX append SUFFIX to installed program names 1525 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1526 1527System types: 1528 --build=BUILD configure for building on BUILD [guessed] 1529 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1530 --target=TARGET configure for building compilers for TARGET [HOST] 1531_ACEOF 1532fi 1533 1534if test -n "$ac_init_help"; then 1535 case $ac_init_help in 1536 short | recursive ) echo "Configuration of libvorbis 1.2.3:";; 1537 esac 1538 cat <<\_ACEOF 1539 1540Optional Features: 1541 --disable-option-checking ignore unrecognized --enable/--with options 1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1544 --disable-dependency-tracking speeds up one-time build 1545 --enable-dependency-tracking do not reject slow dependency extractors 1546 --enable-shared[=PKGS] build shared libraries [default=yes] 1547 --enable-static[=PKGS] build static libraries [default=yes] 1548 --enable-fast-install[=PKGS] 1549 optimize for fast installation [default=yes] 1550 --disable-libtool-lock avoid locking (might break parallel builds) 1551 --enable-docs build the documentation 1552 --disable-oggtest Do not try to compile and run a test Ogg program 1553 1554Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1558 --with-pic try to use only PIC/non-PIC objects [default=use 1559 both] 1560 --with-tags[=TAGS] include additional configurations [automatic] 1561 --with-ogg=PFX Prefix where libogg is installed (optional) 1562 --with-ogg-libraries=DIR 1563 Directory where libogg library is installed 1564 (optional) 1565 --with-ogg-includes=DIR Directory where libogg header files are installed 1566 (optional) 1567 1568Some influential environment variables: 1569 CC C compiler command 1570 CFLAGS C compiler flags 1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1572 nonstandard directory <lib dir> 1573 LIBS libraries to pass to the linker, e.g. -l<library> 1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1575 you have headers in a nonstandard directory <include dir> 1576 CPP C preprocessor 1577 CXX C++ compiler command 1578 CXXFLAGS C++ compiler flags 1579 CXXCPP C++ preprocessor 1580 F77 Fortran 77 compiler command 1581 FFLAGS Fortran 77 compiler flags 1582 PKG_CONFIG path to pkg-config utility 1583 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config 1584 OGG_LIBS linker flags for OGG, overriding pkg-config 1585 1586Use these variables to override the choices made by `configure' or to help 1587it to find libraries and programs with nonstandard names/locations. 1588 1589Report bugs to <vorbis-dev@xiph.org>. 1590_ACEOF 1591ac_status=$? 1592fi 1593 1594if test "$ac_init_help" = "recursive"; then 1595 # If there are subdirs, report their specific --help. 1596 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1597 test -d "$ac_dir" || 1598 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1599 continue 1600 ac_builddir=. 1601 1602case "$ac_dir" in 1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604*) 1605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1606 # A ".." for each directory in $ac_dir_suffix. 1607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1608 case $ac_top_builddir_sub in 1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1611 esac ;; 1612esac 1613ac_abs_top_builddir=$ac_pwd 1614ac_abs_builddir=$ac_pwd$ac_dir_suffix 1615# for backward compatibility: 1616ac_top_builddir=$ac_top_build_prefix 1617 1618case $srcdir in 1619 .) # We are building in place. 1620 ac_srcdir=. 1621 ac_top_srcdir=$ac_top_builddir_sub 1622 ac_abs_top_srcdir=$ac_pwd ;; 1623 [\\/]* | ?:[\\/]* ) # Absolute name. 1624 ac_srcdir=$srcdir$ac_dir_suffix; 1625 ac_top_srcdir=$srcdir 1626 ac_abs_top_srcdir=$srcdir ;; 1627 *) # Relative name. 1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1629 ac_top_srcdir=$ac_top_build_prefix$srcdir 1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1631esac 1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1633 1634 cd "$ac_dir" || { ac_status=$?; continue; } 1635 # Check for guested configure. 1636 if test -f "$ac_srcdir/configure.gnu"; then 1637 echo && 1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1639 elif test -f "$ac_srcdir/configure"; then 1640 echo && 1641 $SHELL "$ac_srcdir/configure" --help=recursive 1642 else 1643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1644 fi || ac_status=$? 1645 cd "$ac_pwd" || { ac_status=$?; break; } 1646 done 1647fi 1648 1649test -n "$ac_init_help" && exit $ac_status 1650if $ac_init_version; then 1651 cat <<\_ACEOF 1652libvorbis configure 1.2.3 1653generated by GNU Autoconf 2.65 1654 1655Copyright (C) 2009 Free Software Foundation, Inc. 1656This configure script is free software; the Free Software Foundation 1657gives unlimited permission to copy, distribute and modify it. 1658_ACEOF 1659 exit 1660fi 1661 1662## ------------------------ ## 1663## Autoconf initialization. ## 1664## ------------------------ ## 1665 1666# ac_fn_c_try_compile LINENO 1667# -------------------------- 1668# Try to compile conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_compile () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext 1673 if { { ac_try="$ac_compile" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_compile") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest.$ac_objext; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_compile 1703 1704# ac_fn_c_try_cpp LINENO 1705# ---------------------- 1706# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_c_try_cpp () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 if { { ac_try="$ac_cpp conftest.$ac_ext" 1711case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1718 ac_status=$? 1719 if test -s conftest.err; then 1720 grep -v '^ *+' conftest.err >conftest.er1 1721 cat conftest.er1 >&5 1722 mv -f conftest.er1 conftest.err 1723 fi 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } >/dev/null && { 1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1727 test ! -s conftest.err 1728 }; then : 1729 ac_retval=0 1730else 1731 $as_echo "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=1 1735fi 1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_cpp 1740 1741# ac_fn_c_try_link LINENO 1742# ----------------------- 1743# Try to link conftest.$ac_ext, and return whether this succeeded. 1744ac_fn_c_try_link () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 rm -f conftest.$ac_objext conftest$ac_exeext 1748 if { { ac_try="$ac_link" 1749case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754$as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_link") 2>conftest.err 1756 ac_status=$? 1757 if test -s conftest.err; then 1758 grep -v '^ *+' conftest.err >conftest.er1 1759 cat conftest.er1 >&5 1760 mv -f conftest.er1 conftest.err 1761 fi 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { 1764 test -z "$ac_c_werror_flag" || 1765 test ! -s conftest.err 1766 } && test -s conftest$ac_exeext && { 1767 test "$cross_compiling" = yes || 1768 $as_test_x conftest$ac_exeext 1769 }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1779 # interfere with the next link command; also delete a directory that is 1780 # left behind by Apple's compiler. We do this before executing the actions. 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_link 1786 1787# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1788# ------------------------------------------------------- 1789# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1790# the include files in INCLUDES and setting the cache variable VAR 1791# accordingly. 1792ac_fn_c_check_header_mongrel () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1799 $as_echo_n "(cached) " >&6 1800fi 1801eval ac_res=\$$3 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803$as_echo "$ac_res" >&6; } 1804else 1805 # Is the header compilable? 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1807$as_echo_n "checking $2 usability... " >&6; } 1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810$4 1811#include <$2> 1812_ACEOF 1813if ac_fn_c_try_compile "$LINENO"; then : 1814 ac_header_compiler=yes 1815else 1816 ac_header_compiler=no 1817fi 1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1820$as_echo "$ac_header_compiler" >&6; } 1821 1822# Is the header present? 1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1824$as_echo_n "checking $2 presence... " >&6; } 1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827#include <$2> 1828_ACEOF 1829if ac_fn_c_try_cpp "$LINENO"; then : 1830 ac_header_preproc=yes 1831else 1832 ac_header_preproc=no 1833fi 1834rm -f conftest.err conftest.$ac_ext 1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1836$as_echo "$ac_header_preproc" >&6; } 1837 1838# So? What about this header? 1839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1840 yes:no: ) 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1842$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1845 ;; 1846 no:yes:* ) 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1848$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1850$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1852$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1854$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1857( cat <<\_ASBOX 1858## ---------------------------------- ## 1859## Report this to vorbis-dev@xiph.org ## 1860## ---------------------------------- ## 1861_ASBOX 1862 ) | sed "s/^/$as_me: WARNING: /" >&2 1863 ;; 1864esac 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1866$as_echo_n "checking for $2... " >&6; } 1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1868 $as_echo_n "(cached) " >&6 1869else 1870 eval "$3=\$ac_header_compiler" 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875fi 1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1877 1878} # ac_fn_c_check_header_mongrel 1879 1880# ac_fn_c_try_run LINENO 1881# ---------------------- 1882# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1883# that executables *can* be run. 1884ac_fn_c_try_run () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 if { { ac_try="$ac_link" 1888case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_link") 2>&5 1895 ac_status=$? 1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1897 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1898 { { case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903$as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_try") 2>&5 1905 ac_status=$? 1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1907 test $ac_status = 0; }; }; then : 1908 ac_retval=0 1909else 1910 $as_echo "$as_me: program exited with status $ac_status" >&5 1911 $as_echo "$as_me: failed program was:" >&5 1912sed 's/^/| /' conftest.$ac_ext >&5 1913 1914 ac_retval=$ac_status 1915fi 1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1918 as_fn_set_status $ac_retval 1919 1920} # ac_fn_c_try_run 1921 1922# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1923# ------------------------------------------------------- 1924# Tests whether HEADER exists and can be compiled using the include files in 1925# INCLUDES, setting the cache variable VAR accordingly. 1926ac_fn_c_check_header_compile () 1927{ 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930$as_echo_n "checking for $2... " >&6; } 1931if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1932 $as_echo_n "(cached) " >&6 1933else 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936$4 1937#include <$2> 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 eval "$3=yes" 1941else 1942 eval "$3=no" 1943fi 1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1950 1951} # ac_fn_c_check_header_compile 1952 1953# ac_fn_c_check_func LINENO FUNC VAR 1954# ---------------------------------- 1955# Tests whether FUNC exists, setting the cache variable VAR accordingly 1956ac_fn_c_check_func () 1957{ 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1960$as_echo_n "checking for $2... " >&6; } 1961if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1962 $as_echo_n "(cached) " >&6 1963else 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1968#define $2 innocuous_$2 1969 1970/* System header to define __stub macros and hopefully few prototypes, 1971 which can conflict with char $2 (); below. 1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1973 <limits.h> exists even on freestanding compilers. */ 1974 1975#ifdef __STDC__ 1976# include <limits.h> 1977#else 1978# include <assert.h> 1979#endif 1980 1981#undef $2 1982 1983/* Override any GCC internal prototype to avoid an error. 1984 Use char because int might match the return type of a GCC 1985 builtin and then its argument prototype would still apply. */ 1986#ifdef __cplusplus 1987extern "C" 1988#endif 1989char $2 (); 1990/* The GNU C library defines this for functions which it implements 1991 to always fail with ENOSYS. Some functions are actually named 1992 something starting with __ and the normal name is an alias. */ 1993#if defined __stub_$2 || defined __stub___$2 1994choke me 1995#endif 1996 1997int 1998main () 1999{ 2000return $2 (); 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_link "$LINENO"; then : 2006 eval "$3=yes" 2007else 2008 eval "$3=no" 2009fi 2010rm -f core conftest.err conftest.$ac_objext \ 2011 conftest$ac_exeext conftest.$ac_ext 2012fi 2013eval ac_res=\$$3 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2015$as_echo "$ac_res" >&6; } 2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2017 2018} # ac_fn_c_check_func 2019 2020# ac_fn_cxx_try_compile LINENO 2021# ---------------------------- 2022# Try to compile conftest.$ac_ext, and return whether this succeeded. 2023ac_fn_cxx_try_compile () 2024{ 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 rm -f conftest.$ac_objext 2027 if { { ac_try="$ac_compile" 2028case "(($ac_try" in 2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2030 *) ac_try_echo=$ac_try;; 2031esac 2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2033$as_echo "$ac_try_echo"; } >&5 2034 (eval "$ac_compile") 2>conftest.err 2035 ac_status=$? 2036 if test -s conftest.err; then 2037 grep -v '^ *+' conftest.err >conftest.er1 2038 cat conftest.er1 >&5 2039 mv -f conftest.er1 conftest.err 2040 fi 2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2042 test $ac_status = 0; } && { 2043 test -z "$ac_cxx_werror_flag" || 2044 test ! -s conftest.err 2045 } && test -s conftest.$ac_objext; then : 2046 ac_retval=0 2047else 2048 $as_echo "$as_me: failed program was:" >&5 2049sed 's/^/| /' conftest.$ac_ext >&5 2050 2051 ac_retval=1 2052fi 2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2054 as_fn_set_status $ac_retval 2055 2056} # ac_fn_cxx_try_compile 2057 2058# ac_fn_cxx_try_cpp LINENO 2059# ------------------------ 2060# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2061ac_fn_cxx_try_cpp () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 if { { ac_try="$ac_cpp conftest.$ac_ext" 2065case "(($ac_try" in 2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2067 *) ac_try_echo=$ac_try;; 2068esac 2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2070$as_echo "$ac_try_echo"; } >&5 2071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2072 ac_status=$? 2073 if test -s conftest.err; then 2074 grep -v '^ *+' conftest.err >conftest.er1 2075 cat conftest.er1 >&5 2076 mv -f conftest.er1 conftest.err 2077 fi 2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2079 test $ac_status = 0; } >/dev/null && { 2080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2081 test ! -s conftest.err 2082 }; then : 2083 ac_retval=0 2084else 2085 $as_echo "$as_me: failed program was:" >&5 2086sed 's/^/| /' conftest.$ac_ext >&5 2087 2088 ac_retval=1 2089fi 2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2091 as_fn_set_status $ac_retval 2092 2093} # ac_fn_cxx_try_cpp 2094 2095# ac_fn_cxx_try_link LINENO 2096# ------------------------- 2097# Try to link conftest.$ac_ext, and return whether this succeeded. 2098ac_fn_cxx_try_link () 2099{ 2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2101 rm -f conftest.$ac_objext conftest$ac_exeext 2102 if { { ac_try="$ac_link" 2103case "(($ac_try" in 2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2105 *) ac_try_echo=$ac_try;; 2106esac 2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2108$as_echo "$ac_try_echo"; } >&5 2109 (eval "$ac_link") 2>conftest.err 2110 ac_status=$? 2111 if test -s conftest.err; then 2112 grep -v '^ *+' conftest.err >conftest.er1 2113 cat conftest.er1 >&5 2114 mv -f conftest.er1 conftest.err 2115 fi 2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2117 test $ac_status = 0; } && { 2118 test -z "$ac_cxx_werror_flag" || 2119 test ! -s conftest.err 2120 } && test -s conftest$ac_exeext && { 2121 test "$cross_compiling" = yes || 2122 $as_test_x conftest$ac_exeext 2123 }; then : 2124 ac_retval=0 2125else 2126 $as_echo "$as_me: failed program was:" >&5 2127sed 's/^/| /' conftest.$ac_ext >&5 2128 2129 ac_retval=1 2130fi 2131 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2132 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2133 # interfere with the next link command; also delete a directory that is 2134 # left behind by Apple's compiler. We do this before executing the actions. 2135 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2137 as_fn_set_status $ac_retval 2138 2139} # ac_fn_cxx_try_link 2140 2141# ac_fn_f77_try_compile LINENO 2142# ---------------------------- 2143# Try to compile conftest.$ac_ext, and return whether this succeeded. 2144ac_fn_f77_try_compile () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 rm -f conftest.$ac_objext 2148 if { { ac_try="$ac_compile" 2149case "(($ac_try" in 2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2151 *) ac_try_echo=$ac_try;; 2152esac 2153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2154$as_echo "$ac_try_echo"; } >&5 2155 (eval "$ac_compile") 2>conftest.err 2156 ac_status=$? 2157 if test -s conftest.err; then 2158 grep -v '^ *+' conftest.err >conftest.er1 2159 cat conftest.er1 >&5 2160 mv -f conftest.er1 conftest.err 2161 fi 2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2163 test $ac_status = 0; } && { 2164 test -z "$ac_f77_werror_flag" || 2165 test ! -s conftest.err 2166 } && test -s conftest.$ac_objext; then : 2167 ac_retval=0 2168else 2169 $as_echo "$as_me: failed program was:" >&5 2170sed 's/^/| /' conftest.$ac_ext >&5 2171 2172 ac_retval=1 2173fi 2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2175 as_fn_set_status $ac_retval 2176 2177} # ac_fn_f77_try_compile 2178 2179# ac_fn_f77_try_link LINENO 2180# ------------------------- 2181# Try to link conftest.$ac_ext, and return whether this succeeded. 2182ac_fn_f77_try_link () 2183{ 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2185 rm -f conftest.$ac_objext conftest$ac_exeext 2186 if { { ac_try="$ac_link" 2187case "(($ac_try" in 2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2189 *) ac_try_echo=$ac_try;; 2190esac 2191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2192$as_echo "$ac_try_echo"; } >&5 2193 (eval "$ac_link") 2>conftest.err 2194 ac_status=$? 2195 if test -s conftest.err; then 2196 grep -v '^ *+' conftest.err >conftest.er1 2197 cat conftest.er1 >&5 2198 mv -f conftest.er1 conftest.err 2199 fi 2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2201 test $ac_status = 0; } && { 2202 test -z "$ac_f77_werror_flag" || 2203 test ! -s conftest.err 2204 } && test -s conftest$ac_exeext && { 2205 test "$cross_compiling" = yes || 2206 $as_test_x conftest$ac_exeext 2207 }; then : 2208 ac_retval=0 2209else 2210 $as_echo "$as_me: failed program was:" >&5 2211sed 's/^/| /' conftest.$ac_ext >&5 2212 2213 ac_retval=1 2214fi 2215 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2216 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2217 # interfere with the next link command; also delete a directory that is 2218 # left behind by Apple's compiler. We do this before executing the actions. 2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2221 as_fn_set_status $ac_retval 2222 2223} # ac_fn_f77_try_link 2224cat >config.log <<_ACEOF 2225This file contains any messages produced by compilers while 2226running configure, to aid debugging if configure makes a mistake. 2227 2228It was created by libvorbis $as_me 1.2.3, which was 2229generated by GNU Autoconf 2.65. Invocation command line was 2230 2231 $ $0 $@ 2232 2233_ACEOF 2234exec 5>>config.log 2235{ 2236cat <<_ASUNAME 2237## --------- ## 2238## Platform. ## 2239## --------- ## 2240 2241hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2242uname -m = `(uname -m) 2>/dev/null || echo unknown` 2243uname -r = `(uname -r) 2>/dev/null || echo unknown` 2244uname -s = `(uname -s) 2>/dev/null || echo unknown` 2245uname -v = `(uname -v) 2>/dev/null || echo unknown` 2246 2247/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2248/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2249 2250/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2251/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2252/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2253/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2254/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2255/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2256/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2257 2258_ASUNAME 2259 2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2261for as_dir in $PATH 2262do 2263 IFS=$as_save_IFS 2264 test -z "$as_dir" && as_dir=. 2265 $as_echo "PATH: $as_dir" 2266 done 2267IFS=$as_save_IFS 2268 2269} >&5 2270 2271cat >&5 <<_ACEOF 2272 2273 2274## ----------- ## 2275## Core tests. ## 2276## ----------- ## 2277 2278_ACEOF 2279 2280 2281# Keep a trace of the command line. 2282# Strip out --no-create and --no-recursion so they do not pile up. 2283# Strip out --silent because we don't want to record it for future runs. 2284# Also quote any args containing shell meta-characters. 2285# Make two passes to allow for proper duplicate-argument suppression. 2286ac_configure_args= 2287ac_configure_args0= 2288ac_configure_args1= 2289ac_must_keep_next=false 2290for ac_pass in 1 2 2291do 2292 for ac_arg 2293 do 2294 case $ac_arg in 2295 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2297 | -silent | --silent | --silen | --sile | --sil) 2298 continue ;; 2299 *\'*) 2300 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2301 esac 2302 case $ac_pass in 2303 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2304 2) 2305 as_fn_append ac_configure_args1 " '$ac_arg'" 2306 if test $ac_must_keep_next = true; then 2307 ac_must_keep_next=false # Got value, back to normal. 2308 else 2309 case $ac_arg in 2310 *=* | --config-cache | -C | -disable-* | --disable-* \ 2311 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2312 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2313 | -with-* | --with-* | -without-* | --without-* | --x) 2314 case "$ac_configure_args0 " in 2315 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2316 esac 2317 ;; 2318 -* ) ac_must_keep_next=true ;; 2319 esac 2320 fi 2321 as_fn_append ac_configure_args " '$ac_arg'" 2322 ;; 2323 esac 2324 done 2325done 2326{ ac_configure_args0=; unset ac_configure_args0;} 2327{ ac_configure_args1=; unset ac_configure_args1;} 2328 2329# When interrupted or exit'd, cleanup temporary files, and complete 2330# config.log. We remove comments because anyway the quotes in there 2331# would cause problems or look ugly. 2332# WARNING: Use '\'' to represent an apostrophe within the trap. 2333# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2334trap 'exit_status=$? 2335 # Save into config.log some information that might help in debugging. 2336 { 2337 echo 2338 2339 cat <<\_ASBOX 2340## ---------------- ## 2341## Cache variables. ## 2342## ---------------- ## 2343_ASBOX 2344 echo 2345 # The following way of writing the cache mishandles newlines in values, 2346( 2347 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2348 eval ac_val=\$$ac_var 2349 case $ac_val in #( 2350 *${as_nl}*) 2351 case $ac_var in #( 2352 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2353$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2354 esac 2355 case $ac_var in #( 2356 _ | IFS | as_nl) ;; #( 2357 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2358 *) { eval $ac_var=; unset $ac_var;} ;; 2359 esac ;; 2360 esac 2361 done 2362 (set) 2>&1 | 2363 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2364 *${as_nl}ac_space=\ *) 2365 sed -n \ 2366 "s/'\''/'\''\\\\'\'''\''/g; 2367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2368 ;; #( 2369 *) 2370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2371 ;; 2372 esac | 2373 sort 2374) 2375 echo 2376 2377 cat <<\_ASBOX 2378## ----------------- ## 2379## Output variables. ## 2380## ----------------- ## 2381_ASBOX 2382 echo 2383 for ac_var in $ac_subst_vars 2384 do 2385 eval ac_val=\$$ac_var 2386 case $ac_val in 2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2388 esac 2389 $as_echo "$ac_var='\''$ac_val'\''" 2390 done | sort 2391 echo 2392 2393 if test -n "$ac_subst_files"; then 2394 cat <<\_ASBOX 2395## ------------------- ## 2396## File substitutions. ## 2397## ------------------- ## 2398_ASBOX 2399 echo 2400 for ac_var in $ac_subst_files 2401 do 2402 eval ac_val=\$$ac_var 2403 case $ac_val in 2404 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2405 esac 2406 $as_echo "$ac_var='\''$ac_val'\''" 2407 done | sort 2408 echo 2409 fi 2410 2411 if test -s confdefs.h; then 2412 cat <<\_ASBOX 2413## ----------- ## 2414## confdefs.h. ## 2415## ----------- ## 2416_ASBOX 2417 echo 2418 cat confdefs.h 2419 echo 2420 fi 2421 test "$ac_signal" != 0 && 2422 $as_echo "$as_me: caught signal $ac_signal" 2423 $as_echo "$as_me: exit $exit_status" 2424 } >&5 2425 rm -f core *.core core.conftest.* && 2426 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2427 exit $exit_status 2428' 0 2429for ac_signal in 1 2 13 15; do 2430 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2431done 2432ac_signal=0 2433 2434# confdefs.h avoids OS command line length limits that DEFS can exceed. 2435rm -f -r conftest* confdefs.h 2436 2437$as_echo "/* confdefs.h */" > confdefs.h 2438 2439# Predefined preprocessor variables. 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE_NAME "$PACKAGE_NAME" 2443_ACEOF 2444 2445cat >>confdefs.h <<_ACEOF 2446#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2447_ACEOF 2448 2449cat >>confdefs.h <<_ACEOF 2450#define PACKAGE_VERSION "$PACKAGE_VERSION" 2451_ACEOF 2452 2453cat >>confdefs.h <<_ACEOF 2454#define PACKAGE_STRING "$PACKAGE_STRING" 2455_ACEOF 2456 2457cat >>confdefs.h <<_ACEOF 2458#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2459_ACEOF 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_URL "$PACKAGE_URL" 2463_ACEOF 2464 2465 2466# Let the site file select an alternate cache file if it wants to. 2467# Prefer an explicitly selected file to automatically selected ones. 2468ac_site_file1=NONE 2469ac_site_file2=NONE 2470if test -n "$CONFIG_SITE"; then 2471 ac_site_file1=$CONFIG_SITE 2472elif test "x$prefix" != xNONE; then 2473 ac_site_file1=$prefix/share/config.site 2474 ac_site_file2=$prefix/etc/config.site 2475else 2476 ac_site_file1=$ac_default_prefix/share/config.site 2477 ac_site_file2=$ac_default_prefix/etc/config.site 2478fi 2479for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2480do 2481 test "x$ac_site_file" = xNONE && continue 2482 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2484$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2485 sed 's/^/| /' "$ac_site_file" >&5 2486 . "$ac_site_file" 2487 fi 2488done 2489 2490if test -r "$cache_file"; then 2491 # Some versions of bash will fail to source /dev/null (special files 2492 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2493 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2495$as_echo "$as_me: loading cache $cache_file" >&6;} 2496 case $cache_file in 2497 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2498 *) . "./$cache_file";; 2499 esac 2500 fi 2501else 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2503$as_echo "$as_me: creating cache $cache_file" >&6;} 2504 >$cache_file 2505fi 2506 2507# Check that the precious variables saved in the cache have kept the same 2508# value. 2509ac_cache_corrupted=false 2510for ac_var in $ac_precious_vars; do 2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2512 eval ac_new_set=\$ac_env_${ac_var}_set 2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2514 eval ac_new_val=\$ac_env_${ac_var}_value 2515 case $ac_old_set,$ac_new_set in 2516 set,) 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2518$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,set) 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2522$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2523 ac_cache_corrupted=: ;; 2524 ,);; 2525 *) 2526 if test "x$ac_old_val" != "x$ac_new_val"; then 2527 # differences in whitespace do not lead to failure. 2528 ac_old_val_w=`echo x $ac_old_val` 2529 ac_new_val_w=`echo x $ac_new_val` 2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2532$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2533 ac_cache_corrupted=: 2534 else 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2536$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2537 eval $ac_var=\$ac_old_val 2538 fi 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2540$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2542$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2543 fi;; 2544 esac 2545 # Pass precious variables to config.status. 2546 if test "$ac_new_set" = set; then 2547 case $ac_new_val in 2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2549 *) ac_arg=$ac_var=$ac_new_val ;; 2550 esac 2551 case " $ac_configure_args " in 2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2554 esac 2555 fi 2556done 2557if $ac_cache_corrupted; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2561$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2562 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2563fi 2564## -------------------- ## 2565## Main body of script. ## 2566## -------------------- ## 2567 2568ac_ext=c 2569ac_cpp='$CPP $CPPFLAGS' 2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573 2574 2575 2576 2577 2578ac_aux_dir= 2579for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2580 for ac_t in install-sh install.sh shtool; do 2581 if test -f "$ac_dir/$ac_t"; then 2582 ac_aux_dir=$ac_dir 2583 ac_install_sh="$ac_aux_dir/$ac_t -c" 2584 break 2 2585 fi 2586 done 2587done 2588if test -z "$ac_aux_dir"; then 2589 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2590fi 2591 2592# These three variables are undocumented and unsupported, 2593# and are intended to be withdrawn in a future Autoconf release. 2594# They can cause serious problems if a builder's source tree is in a directory 2595# whose full name contains unusual characters. 2596ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2597ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2598ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2599 2600 2601# Make sure we can run config.sub. 2602$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2603 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2604 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2606$as_echo_n "checking build system type... " >&6; } 2607if test "${ac_cv_build+set}" = set; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 ac_build_alias=$build_alias 2611test "x$ac_build_alias" = x && 2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2613test "x$ac_build_alias" = x && 2614 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2615ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2616 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2617 2618fi 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2620$as_echo "$ac_cv_build" >&6; } 2621case $ac_cv_build in 2622*-*-*) ;; 2623*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2624esac 2625build=$ac_cv_build 2626ac_save_IFS=$IFS; IFS='-' 2627set x $ac_cv_build 2628shift 2629build_cpu=$1 2630build_vendor=$2 2631shift; shift 2632# Remember, the first character of IFS is used to create $*, 2633# except with old shells: 2634build_os=$* 2635IFS=$ac_save_IFS 2636case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2637 2638 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2640$as_echo_n "checking host system type... " >&6; } 2641if test "${ac_cv_host+set}" = set; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 if test "x$host_alias" = x; then 2645 ac_cv_host=$ac_cv_build 2646else 2647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2649fi 2650 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2653$as_echo "$ac_cv_host" >&6; } 2654case $ac_cv_host in 2655*-*-*) ;; 2656*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2657esac 2658host=$ac_cv_host 2659ac_save_IFS=$IFS; IFS='-' 2660set x $ac_cv_host 2661shift 2662host_cpu=$1 2663host_vendor=$2 2664shift; shift 2665# Remember, the first character of IFS is used to create $*, 2666# except with old shells: 2667host_os=$* 2668IFS=$ac_save_IFS 2669case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2670 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2673$as_echo_n "checking target system type... " >&6; } 2674if test "${ac_cv_target+set}" = set; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test "x$target_alias" = x; then 2678 ac_cv_target=$ac_cv_host 2679else 2680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2681 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2682fi 2683 2684fi 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2686$as_echo "$ac_cv_target" >&6; } 2687case $ac_cv_target in 2688*-*-*) ;; 2689*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2690esac 2691target=$ac_cv_target 2692ac_save_IFS=$IFS; IFS='-' 2693set x $ac_cv_target 2694shift 2695target_cpu=$1 2696target_vendor=$2 2697shift; shift 2698# Remember, the first character of IFS is used to create $*, 2699# except with old shells: 2700target_os=$* 2701IFS=$ac_save_IFS 2702case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2703 2704 2705# The aliases save the names the user supplied, while $host etc. 2706# will get canonicalized. 2707test -n "$target_alias" && 2708 test "$program_prefix$program_suffix$program_transform_name" = \ 2709 NONENONEs,x,x, && 2710 program_prefix=${target_alias}- 2711 2712am__api_version='1.10' 2713 2714# Find a good install program. We prefer a C program (faster), 2715# so one script is as good as another. But avoid the broken or 2716# incompatible versions: 2717# SysV /etc/install, /usr/sbin/install 2718# SunOS /usr/etc/install 2719# IRIX /sbin/install 2720# AIX /bin/install 2721# AmigaOS /C/install, which installs bootblocks on floppy discs 2722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2723# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2725# OS/2's system install, which has a completely different semantic 2726# ./install, which can be erroneously created by make from ./install.sh. 2727# Reject install programs that cannot install multiple files. 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2729$as_echo_n "checking for a BSD-compatible install... " >&6; } 2730if test -z "$INSTALL"; then 2731if test "${ac_cv_path_install+set}" = set; then : 2732 $as_echo_n "(cached) " >&6 2733else 2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 # Account for people who put trailing slashes in PATH elements. 2740case $as_dir/ in #(( 2741 ./ | .// | /[cC]/* | \ 2742 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2743 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2744 /usr/ucb/* ) ;; 2745 *) 2746 # OSF1 and SCO ODT 3.0 have their own names for install. 2747 # Don't use installbsd from OSF since it installs stuff as root 2748 # by default. 2749 for ac_prog in ginstall scoinst install; do 2750 for ac_exec_ext in '' $ac_executable_extensions; do 2751 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2752 if test $ac_prog = install && 2753 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2754 # AIX install. It has an incompatible calling convention. 2755 : 2756 elif test $ac_prog = install && 2757 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2758 # program-specific install script used by HP pwplus--don't use. 2759 : 2760 else 2761 rm -rf conftest.one conftest.two conftest.dir 2762 echo one > conftest.one 2763 echo two > conftest.two 2764 mkdir conftest.dir 2765 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2766 test -s conftest.one && test -s conftest.two && 2767 test -s conftest.dir/conftest.one && 2768 test -s conftest.dir/conftest.two 2769 then 2770 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2771 break 3 2772 fi 2773 fi 2774 fi 2775 done 2776 done 2777 ;; 2778esac 2779 2780 done 2781IFS=$as_save_IFS 2782 2783rm -rf conftest.one conftest.two conftest.dir 2784 2785fi 2786 if test "${ac_cv_path_install+set}" = set; then 2787 INSTALL=$ac_cv_path_install 2788 else 2789 # As a last resort, use the slow shell script. Don't cache a 2790 # value for INSTALL within a source directory, because that will 2791 # break other packages using the cache if that directory is 2792 # removed, or if the value is a relative name. 2793 INSTALL=$ac_install_sh 2794 fi 2795fi 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2797$as_echo "$INSTALL" >&6; } 2798 2799# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2800# It thinks the first close brace ends the variable substitution. 2801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2802 2803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2804 2805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2806 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2808$as_echo_n "checking whether build environment is sane... " >&6; } 2809# Just in case 2810sleep 1 2811echo timestamp > conftest.file 2812# Do `set' in a subshell so we don't clobber the current shell's 2813# arguments. Must try -L first in case configure is actually a 2814# symlink; some systems play weird games with the mod time of symlinks 2815# (eg FreeBSD returns the mod time of the symlink's containing 2816# directory). 2817if ( 2818 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2819 if test "$*" = "X"; then 2820 # -L didn't work. 2821 set X `ls -t $srcdir/configure conftest.file` 2822 fi 2823 rm -f conftest.file 2824 if test "$*" != "X $srcdir/configure conftest.file" \ 2825 && test "$*" != "X conftest.file $srcdir/configure"; then 2826 2827 # If neither matched, then we have a broken ls. This can happen 2828 # if, for instance, CONFIG_SHELL is bash and it inherits a 2829 # broken ls alias from the environment. This has actually 2830 # happened. Such a system could not be considered "sane". 2831 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2832alias in your environment" "$LINENO" 5 2833 fi 2834 2835 test "$2" = conftest.file 2836 ) 2837then 2838 # Ok. 2839 : 2840else 2841 as_fn_error "newly created file is older than distributed files! 2842Check your system clock" "$LINENO" 5 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2845$as_echo "yes" >&6; } 2846test "$program_prefix" != NONE && 2847 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2848# Use a double $ so make ignores it. 2849test "$program_suffix" != NONE && 2850 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2851# Double any \ or $. 2852# By default was `s,x,x', remove it if useless. 2853ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2854program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2855 2856# expand $ac_aux_dir to an absolute path 2857am_aux_dir=`cd $ac_aux_dir && pwd` 2858 2859test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2860# Use eval to expand $SHELL 2861if eval "$MISSING --run true"; then 2862 am_missing_run="$MISSING --run " 2863else 2864 am_missing_run= 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2866$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2867fi 2868 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2870$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2871if test -z "$MKDIR_P"; then 2872 if test "${ac_cv_path_mkdir+set}" = set; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2877do 2878 IFS=$as_save_IFS 2879 test -z "$as_dir" && as_dir=. 2880 for ac_prog in mkdir gmkdir; do 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2883 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2884 'mkdir (GNU coreutils) '* | \ 2885 'mkdir (coreutils) '* | \ 2886 'mkdir (fileutils) '4.1*) 2887 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2888 break 3;; 2889 esac 2890 done 2891 done 2892 done 2893IFS=$as_save_IFS 2894 2895fi 2896 2897 test -d ./--version && rmdir ./--version 2898 if test "${ac_cv_path_mkdir+set}" = set; then 2899 MKDIR_P="$ac_cv_path_mkdir -p" 2900 else 2901 # As a last resort, use the slow shell script. Don't cache a 2902 # value for MKDIR_P within a source directory, because that will 2903 # break other packages using the cache if that directory is 2904 # removed, or if the value is a relative name. 2905 MKDIR_P="$ac_install_sh -d" 2906 fi 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2909$as_echo "$MKDIR_P" >&6; } 2910 2911mkdir_p="$MKDIR_P" 2912case $mkdir_p in 2913 [\\/$]* | ?:[\\/]*) ;; 2914 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2915esac 2916 2917for ac_prog in gawk mawk nawk awk 2918do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920set dummy $ac_prog; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if test "${ac_cv_prog_AWK+set}" = set; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$AWK"; then 2927 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 ac_cv_prog_AWK="$ac_prog" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946AWK=$ac_cv_prog_AWK 2947if test -n "$AWK"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2949$as_echo "$AWK" >&6; } 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 2956 test -n "$AWK" && break 2957done 2958 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2960$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2961set x ${MAKE-make} 2962ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2963if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 cat >conftest.make <<\_ACEOF 2967SHELL = /bin/sh 2968all: 2969 @echo '@@@%%%=$(MAKE)=@@@%%%' 2970_ACEOF 2971# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2972case `${MAKE-make} -f conftest.make 2>/dev/null` in 2973 *@@@%%%=?*=@@@%%%*) 2974 eval ac_cv_prog_make_${ac_make}_set=yes;; 2975 *) 2976 eval ac_cv_prog_make_${ac_make}_set=no;; 2977esac 2978rm -f conftest.make 2979fi 2980if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2982$as_echo "yes" >&6; } 2983 SET_MAKE= 2984else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986$as_echo "no" >&6; } 2987 SET_MAKE="MAKE=${MAKE-make}" 2988fi 2989 2990rm -rf .tst 2>/dev/null 2991mkdir .tst 2>/dev/null 2992if test -d .tst; then 2993 am__leading_dot=. 2994else 2995 am__leading_dot=_ 2996fi 2997rmdir .tst 2>/dev/null 2998 2999if test "`cd $srcdir && pwd`" != "`pwd`"; then 3000 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3001 # is not polluted with repeated "-I." 3002 am__isrc=' -I$(srcdir)' 3003 # test to see if srcdir already configured 3004 if test -f $srcdir/config.status; then 3005 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3006 fi 3007fi 3008 3009# test whether we have cygpath 3010if test -z "$CYGPATH_W"; then 3011 if (cygpath --version) >/dev/null 2>/dev/null; then 3012 CYGPATH_W='cygpath -w' 3013 else 3014 CYGPATH_W=echo 3015 fi 3016fi 3017 3018 3019# Define the identity of the package. 3020 PACKAGE=$PACKAGE_NAME 3021 VERSION=$PACKAGE_VERSION 3022 3023 3024cat >>confdefs.h <<_ACEOF 3025#define PACKAGE "$PACKAGE" 3026_ACEOF 3027 3028 3029cat >>confdefs.h <<_ACEOF 3030#define VERSION "$VERSION" 3031_ACEOF 3032 3033# Some tools Automake needs. 3034 3035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3036 3037 3038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3039 3040 3041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3042 3043 3044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3045 3046 3047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3048 3049install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 3050 3051# Installed binaries are usually stripped using `strip' when the user 3052# run `make install-strip'. However `strip' might not be the right 3053# tool to use in cross-compilation environments, therefore Automake 3054# will honor the `STRIP' environment variable to overrule this program. 3055if test "$cross_compiling" != no; then 3056 if test -n "$ac_tool_prefix"; then 3057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3058set dummy ${ac_tool_prefix}strip; ac_word=$2 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060$as_echo_n "checking for $ac_word... " >&6; } 3061if test "${ac_cv_prog_STRIP+set}" = set; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if test -n "$STRIP"; then 3065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3066else 3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3068for as_dir in $PATH 3069do 3070 IFS=$as_save_IFS 3071 test -z "$as_dir" && as_dir=. 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3074 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082fi 3083fi 3084STRIP=$ac_cv_prog_STRIP 3085if test -n "$STRIP"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3087$as_echo "$STRIP" >&6; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3090$as_echo "no" >&6; } 3091fi 3092 3093 3094fi 3095if test -z "$ac_cv_prog_STRIP"; then 3096 ac_ct_STRIP=$STRIP 3097 # Extract the first word of "strip", so it can be a program name with args. 3098set dummy strip; ac_word=$2 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100$as_echo_n "checking for $ac_word... " >&6; } 3101if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 if test -n "$ac_ct_STRIP"; then 3105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3106else 3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108for as_dir in $PATH 3109do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3114 ac_cv_prog_ac_ct_STRIP="strip" 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123fi 3124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3125if test -n "$ac_ct_STRIP"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3127$as_echo "$ac_ct_STRIP" >&6; } 3128else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130$as_echo "no" >&6; } 3131fi 3132 3133 if test "x$ac_ct_STRIP" = x; then 3134 STRIP=":" 3135 else 3136 case $cross_compiling:$ac_tool_warned in 3137yes:) 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3140ac_tool_warned=yes ;; 3141esac 3142 STRIP=$ac_ct_STRIP 3143 fi 3144else 3145 STRIP="$ac_cv_prog_STRIP" 3146fi 3147 3148fi 3149INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3150 3151# We need awk for the "check" target. The system "awk" is bad on 3152# some platforms. 3153# Always define AMTAR for backward compatibility. 3154 3155AMTAR=${AMTAR-"${am_missing_run}tar"} 3156 3157am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3158 3159 3160 3161 3162 3163ac_config_headers="$ac_config_headers config.h" 3164 3165 3166ACLOCAL_AMFLAGS="-I m4" 3167 3168 3169 3170V_LIB_CURRENT=4 3171V_LIB_REVISION=3 3172V_LIB_AGE=4 3173 3174VF_LIB_CURRENT=6 3175VF_LIB_REVISION=2 3176VF_LIB_AGE=3 3177 3178VE_LIB_CURRENT=2 3179VE_LIB_REVISION=6 3180VE_LIB_AGE=0 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193cflags_save="$CFLAGS" 3194ac_ext=c 3195ac_cpp='$CPP $CPPFLAGS' 3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3198ac_compiler_gnu=$ac_cv_c_compiler_gnu 3199if test -n "$ac_tool_prefix"; then 3200 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3201set dummy ${ac_tool_prefix}gcc; ac_word=$2 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203$as_echo_n "checking for $ac_word... " >&6; } 3204if test "${ac_cv_prog_CC+set}" = set; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -n "$CC"; then 3208 ac_cv_prog_CC="$CC" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227CC=$ac_cv_prog_CC 3228if test -n "$CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230$as_echo "$CC" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 3237fi 3238if test -z "$ac_cv_prog_CC"; then 3239 ac_ct_CC=$CC 3240 # Extract the first word of "gcc", so it can be a program name with args. 3241set dummy gcc; ac_word=$2 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243$as_echo_n "checking for $ac_word... " >&6; } 3244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 if test -n "$ac_ct_CC"; then 3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3249else 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3257 ac_cv_prog_ac_ct_CC="gcc" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261done 3262 done 3263IFS=$as_save_IFS 3264 3265fi 3266fi 3267ac_ct_CC=$ac_cv_prog_ac_ct_CC 3268if test -n "$ac_ct_CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3270$as_echo "$ac_ct_CC" >&6; } 3271else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273$as_echo "no" >&6; } 3274fi 3275 3276 if test "x$ac_ct_CC" = x; then 3277 CC="" 3278 else 3279 case $cross_compiling:$ac_tool_warned in 3280yes:) 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3283ac_tool_warned=yes ;; 3284esac 3285 CC=$ac_ct_CC 3286 fi 3287else 3288 CC="$ac_cv_prog_CC" 3289fi 3290 3291if test -z "$CC"; then 3292 if test -n "$ac_tool_prefix"; then 3293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3294set dummy ${ac_tool_prefix}cc; ac_word=$2 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296$as_echo_n "checking for $ac_word... " >&6; } 3297if test "${ac_cv_prog_CC+set}" = set; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 if test -n "$CC"; then 3301 ac_cv_prog_CC="$CC" # Let the user override the test. 3302else 3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3310 ac_cv_prog_CC="${ac_tool_prefix}cc" 3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314done 3315 done 3316IFS=$as_save_IFS 3317 3318fi 3319fi 3320CC=$ac_cv_prog_CC 3321if test -n "$CC"; then 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3323$as_echo "$CC" >&6; } 3324else 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327fi 3328 3329 3330 fi 3331fi 3332if test -z "$CC"; then 3333 # Extract the first word of "cc", so it can be a program name with args. 3334set dummy cc; ac_word=$2 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3336$as_echo_n "checking for $ac_word... " >&6; } 3337if test "${ac_cv_prog_CC+set}" = set; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 if test -n "$CC"; then 3341 ac_cv_prog_CC="$CC" # Let the user override the test. 3342else 3343 ac_prog_rejected=no 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3352 ac_prog_rejected=yes 3353 continue 3354 fi 3355 ac_cv_prog_CC="cc" 3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3357 break 2 3358 fi 3359done 3360 done 3361IFS=$as_save_IFS 3362 3363if test $ac_prog_rejected = yes; then 3364 # We found a bogon in the path, so make sure we never use it. 3365 set dummy $ac_cv_prog_CC 3366 shift 3367 if test $# != 0; then 3368 # We chose a different compiler from the bogus one. 3369 # However, it has the same basename, so the bogon will be chosen 3370 # first if we set CC to just the basename; use the full file name. 3371 shift 3372 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3373 fi 3374fi 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380$as_echo "$CC" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 3387fi 3388if test -z "$CC"; then 3389 if test -n "$ac_tool_prefix"; then 3390 for ac_prog in cl.exe 3391 do 3392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3393set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3395$as_echo_n "checking for $ac_word... " >&6; } 3396if test "${ac_cv_prog_CC+set}" = set; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 if test -n "$CC"; then 3400 ac_cv_prog_CC="$CC" # Let the user override the test. 3401else 3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3403for as_dir in $PATH 3404do 3405 IFS=$as_save_IFS 3406 test -z "$as_dir" && as_dir=. 3407 for ac_exec_ext in '' $ac_executable_extensions; do 3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418fi 3419CC=$ac_cv_prog_CC 3420if test -n "$CC"; then 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3422$as_echo "$CC" >&6; } 3423else 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425$as_echo "no" >&6; } 3426fi 3427 3428 3429 test -n "$CC" && break 3430 done 3431fi 3432if test -z "$CC"; then 3433 ac_ct_CC=$CC 3434 for ac_prog in cl.exe 3435do 3436 # Extract the first word of "$ac_prog", so it can be a program name with args. 3437set dummy $ac_prog; ac_word=$2 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3439$as_echo_n "checking for $ac_word... " >&6; } 3440if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3441 $as_echo_n "(cached) " >&6 3442else 3443 if test -n "$ac_ct_CC"; then 3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3445else 3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH 3448do 3449 IFS=$as_save_IFS 3450 test -z "$as_dir" && as_dir=. 3451 for ac_exec_ext in '' $ac_executable_extensions; do 3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3453 ac_cv_prog_ac_ct_CC="$ac_prog" 3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3455 break 2 3456 fi 3457done 3458 done 3459IFS=$as_save_IFS 3460 3461fi 3462fi 3463ac_ct_CC=$ac_cv_prog_ac_ct_CC 3464if test -n "$ac_ct_CC"; then 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3466$as_echo "$ac_ct_CC" >&6; } 3467else 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3469$as_echo "no" >&6; } 3470fi 3471 3472 3473 test -n "$ac_ct_CC" && break 3474done 3475 3476 if test "x$ac_ct_CC" = x; then 3477 CC="" 3478 else 3479 case $cross_compiling:$ac_tool_warned in 3480yes:) 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3483ac_tool_warned=yes ;; 3484esac 3485 CC=$ac_ct_CC 3486 fi 3487fi 3488 3489fi 3490 3491 3492test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3494as_fn_error "no acceptable C compiler found in \$PATH 3495See \`config.log' for more details." "$LINENO" 5; } 3496 3497# Provide some information about the compiler. 3498$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3499set X $ac_compile 3500ac_compiler=$2 3501for ac_option in --version -v -V -qversion; do 3502 { { ac_try="$ac_compiler $ac_option >&5" 3503case "(($ac_try" in 3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3505 *) ac_try_echo=$ac_try;; 3506esac 3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3508$as_echo "$ac_try_echo"; } >&5 3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3510 ac_status=$? 3511 if test -s conftest.err; then 3512 sed '10a\ 3513... rest of stderr output deleted ... 3514 10q' conftest.err >conftest.er1 3515 cat conftest.er1 >&5 3516 fi 3517 rm -f conftest.er1 conftest.err 3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3519 test $ac_status = 0; } 3520done 3521 3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533ac_clean_files_save=$ac_clean_files 3534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3535# Try to create an executable without -o first, disregard a.out. 3536# It will help us diagnose broken compilers, and finding out an intuition 3537# of exeext. 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3539$as_echo_n "checking whether the C compiler works... " >&6; } 3540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3541 3542# The possible output files: 3543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3544 3545ac_rmfiles= 3546for ac_file in $ac_files 3547do 3548 case $ac_file in 3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3550 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3551 esac 3552done 3553rm -f $ac_rmfiles 3554 3555if { { ac_try="$ac_link_default" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_link_default") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; }; then : 3566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3568# in a Makefile. We should not override ac_cv_exeext if it was cached, 3569# so that the user can short-circuit this test for compilers unknown to 3570# Autoconf. 3571for ac_file in $ac_files '' 3572do 3573 test -f "$ac_file" || continue 3574 case $ac_file in 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3576 ;; 3577 [ab].out ) 3578 # We found the default executable, but exeext='' is most 3579 # certainly right. 3580 break;; 3581 *.* ) 3582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3583 then :; else 3584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3585 fi 3586 # We set ac_cv_exeext here because the later test for it is not 3587 # safe: cross compilers may not add the suffix if given an `-o' 3588 # argument, so we may need to know it at that point already. 3589 # Even if this section looks crufty: it has the advantage of 3590 # actually working. 3591 break;; 3592 * ) 3593 break;; 3594 esac 3595done 3596test "$ac_cv_exeext" = no && ac_cv_exeext= 3597 3598else 3599 ac_file='' 3600fi 3601if test -z "$ac_file"; then : 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3603$as_echo "no" >&6; } 3604$as_echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609{ as_fn_set_status 77 3610as_fn_error "C compiler cannot create executables 3611See \`config.log' for more details." "$LINENO" 5; }; } 3612else 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3614$as_echo "yes" >&6; } 3615fi 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3617$as_echo_n "checking for C compiler default output file name... " >&6; } 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3619$as_echo "$ac_file" >&6; } 3620ac_exeext=$ac_cv_exeext 3621 3622rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3623ac_clean_files=$ac_clean_files_save 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3625$as_echo_n "checking for suffix of executables... " >&6; } 3626if { { ac_try="$ac_link" 3627case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630esac 3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3632$as_echo "$ac_try_echo"; } >&5 3633 (eval "$ac_link") 2>&5 3634 ac_status=$? 3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3636 test $ac_status = 0; }; then : 3637 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3638# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3639# work properly (i.e., refer to `conftest.exe'), while it won't with 3640# `rm'. 3641for ac_file in conftest.exe conftest conftest.*; do 3642 test -f "$ac_file" || continue 3643 case $ac_file in 3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3646 break;; 3647 * ) break;; 3648 esac 3649done 3650else 3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3653as_fn_error "cannot compute suffix of executables: cannot compile and link 3654See \`config.log' for more details." "$LINENO" 5; } 3655fi 3656rm -f conftest conftest$ac_cv_exeext 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3658$as_echo "$ac_cv_exeext" >&6; } 3659 3660rm -f conftest.$ac_ext 3661EXEEXT=$ac_cv_exeext 3662ac_exeext=$EXEEXT 3663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665#include <stdio.h> 3666int 3667main () 3668{ 3669FILE *f = fopen ("conftest.out", "w"); 3670 return ferror (f) || fclose (f) != 0; 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676ac_clean_files="$ac_clean_files conftest.out" 3677# Check that the compiler produces executables we can run. If not, either 3678# the compiler is broken, or we cross compile. 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3680$as_echo_n "checking whether we are cross compiling... " >&6; } 3681if test "$cross_compiling" != yes; then 3682 { { ac_try="$ac_link" 3683case "(($ac_try" in 3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3685 *) ac_try_echo=$ac_try;; 3686esac 3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3688$as_echo "$ac_try_echo"; } >&5 3689 (eval "$ac_link") 2>&5 3690 ac_status=$? 3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3692 test $ac_status = 0; } 3693 if { ac_try='./conftest$ac_cv_exeext' 3694 { { case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699$as_echo "$ac_try_echo"; } >&5 3700 (eval "$ac_try") 2>&5 3701 ac_status=$? 3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; }; }; then 3704 cross_compiling=no 3705 else 3706 if test "$cross_compiling" = maybe; then 3707 cross_compiling=yes 3708 else 3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3711as_fn_error "cannot run C compiled programs. 3712If you meant to cross compile, use \`--host'. 3713See \`config.log' for more details." "$LINENO" 5; } 3714 fi 3715 fi 3716fi 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3718$as_echo "$cross_compiling" >&6; } 3719 3720rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3721ac_clean_files=$ac_clean_files_save 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3723$as_echo_n "checking for suffix of object files... " >&6; } 3724if test "${ac_cv_objext+set}" = set; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738rm -f conftest.o conftest.obj 3739if { { ac_try="$ac_compile" 3740case "(($ac_try" in 3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *) ac_try_echo=$ac_try;; 3743esac 3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745$as_echo "$ac_try_echo"; } >&5 3746 (eval "$ac_compile") 2>&5 3747 ac_status=$? 3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 test $ac_status = 0; }; then : 3750 for ac_file in conftest.o conftest.obj conftest.*; do 3751 test -f "$ac_file" || continue; 3752 case $ac_file in 3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3755 break;; 3756 esac 3757done 3758else 3759 $as_echo "$as_me: failed program was:" >&5 3760sed 's/^/| /' conftest.$ac_ext >&5 3761 3762{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3764as_fn_error "cannot compute suffix of object files: cannot compile 3765See \`config.log' for more details." "$LINENO" 5; } 3766fi 3767rm -f conftest.$ac_cv_objext conftest.$ac_ext 3768fi 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3770$as_echo "$ac_cv_objext" >&6; } 3771OBJEXT=$ac_cv_objext 3772ac_objext=$OBJEXT 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3774$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3775if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781int 3782main () 3783{ 3784#ifndef __GNUC__ 3785 choke me 3786#endif 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO"; then : 3793 ac_compiler_gnu=yes 3794else 3795 ac_compiler_gnu=no 3796fi 3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3798ac_cv_c_compiler_gnu=$ac_compiler_gnu 3799 3800fi 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3802$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3803if test $ac_compiler_gnu = yes; then 3804 GCC=yes 3805else 3806 GCC= 3807fi 3808ac_test_CFLAGS=${CFLAGS+set} 3809ac_save_CFLAGS=$CFLAGS 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3811$as_echo_n "checking whether $CC accepts -g... " >&6; } 3812if test "${ac_cv_prog_cc_g+set}" = set; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 ac_save_c_werror_flag=$ac_c_werror_flag 3816 ac_c_werror_flag=yes 3817 ac_cv_prog_cc_g=no 3818 CFLAGS="-g" 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_g=yes 3832else 3833 CFLAGS="" 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836 3837int 3838main () 3839{ 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845if ac_fn_c_try_compile "$LINENO"; then : 3846 3847else 3848 ac_c_werror_flag=$ac_save_c_werror_flag 3849 CFLAGS="-g" 3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852 3853int 3854main () 3855{ 3856 3857 ; 3858 return 0; 3859} 3860_ACEOF 3861if ac_fn_c_try_compile "$LINENO"; then : 3862 ac_cv_prog_cc_g=yes 3863fi 3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3865fi 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867fi 3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3869 ac_c_werror_flag=$ac_save_c_werror_flag 3870fi 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3872$as_echo "$ac_cv_prog_cc_g" >&6; } 3873if test "$ac_test_CFLAGS" = set; then 3874 CFLAGS=$ac_save_CFLAGS 3875elif test $ac_cv_prog_cc_g = yes; then 3876 if test "$GCC" = yes; then 3877 CFLAGS="-g -O2" 3878 else 3879 CFLAGS="-g" 3880 fi 3881else 3882 if test "$GCC" = yes; then 3883 CFLAGS="-O2" 3884 else 3885 CFLAGS= 3886 fi 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3889$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3890if test "${ac_cv_prog_cc_c89+set}" = set; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 ac_cv_prog_cc_c89=no 3894ac_save_CC=$CC 3895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897#include <stdarg.h> 3898#include <stdio.h> 3899#include <sys/types.h> 3900#include <sys/stat.h> 3901/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3902struct buf { int x; }; 3903FILE * (*rcsopen) (struct buf *, struct stat *, int); 3904static char *e (p, i) 3905 char **p; 3906 int i; 3907{ 3908 return p[i]; 3909} 3910static char *f (char * (*g) (char **, int), char **p, ...) 3911{ 3912 char *s; 3913 va_list v; 3914 va_start (v,p); 3915 s = g (p, va_arg (v,int)); 3916 va_end (v); 3917 return s; 3918} 3919 3920/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3921 function prototypes and stuff, but not '\xHH' hex character constants. 3922 These don't provoke an error unfortunately, instead are silently treated 3923 as 'x'. The following induces an error, until -std is added to get 3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3925 array size at least. It's necessary to write '\x00'==0 to get something 3926 that's true only with -std. */ 3927int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3928 3929/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3930 inside strings and character constants. */ 3931#define FOO(x) 'x' 3932int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3933 3934int test (int i, double x); 3935struct s1 {int (*f) (int a);}; 3936struct s2 {int (*f) (double a);}; 3937int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3938int argc; 3939char **argv; 3940int 3941main () 3942{ 3943return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3950do 3951 CC="$ac_save_CC $ac_arg" 3952 if ac_fn_c_try_compile "$LINENO"; then : 3953 ac_cv_prog_cc_c89=$ac_arg 3954fi 3955rm -f core conftest.err conftest.$ac_objext 3956 test "x$ac_cv_prog_cc_c89" != "xno" && break 3957done 3958rm -f conftest.$ac_ext 3959CC=$ac_save_CC 3960 3961fi 3962# AC_CACHE_VAL 3963case "x$ac_cv_prog_cc_c89" in 3964 x) 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3966$as_echo "none needed" >&6; } ;; 3967 xno) 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3969$as_echo "unsupported" >&6; } ;; 3970 *) 3971 CC="$CC $ac_cv_prog_cc_c89" 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3973$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3974esac 3975if test "x$ac_cv_prog_cc_c89" != xno; then : 3976 3977fi 3978 3979ac_ext=c 3980ac_cpp='$CPP $CPPFLAGS' 3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3983ac_compiler_gnu=$ac_cv_c_compiler_gnu 3984DEPDIR="${am__leading_dot}deps" 3985 3986ac_config_commands="$ac_config_commands depfiles" 3987 3988 3989am_make=${MAKE-make} 3990cat > confinc << 'END' 3991am__doit: 3992 @echo done 3993.PHONY: am__doit 3994END 3995# If we don't find an include directive, just comment out the code. 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3997$as_echo_n "checking for style of include used by $am_make... " >&6; } 3998am__include="#" 3999am__quote= 4000_am_result=none 4001# First try GNU make style include. 4002echo "include confinc" > confmf 4003# We grep out `Entering directory' and `Leaving directory' 4004# messages which can occur if `w' ends up in MAKEFLAGS. 4005# In particular we don't look at `^make:' because GNU make might 4006# be invoked under some other name (usually "gmake"), in which 4007# case it prints its new name instead of `make'. 4008if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4009 am__include=include 4010 am__quote= 4011 _am_result=GNU 4012fi 4013# Now try BSD make style include. 4014if test "$am__include" = "#"; then 4015 echo '.include "confinc"' > confmf 4016 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4017 am__include=.include 4018 am__quote="\"" 4019 _am_result=BSD 4020 fi 4021fi 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4025$as_echo "$_am_result" >&6; } 4026rm -f confinc confmf 4027 4028# Check whether --enable-dependency-tracking was given. 4029if test "${enable_dependency_tracking+set}" = set; then : 4030 enableval=$enable_dependency_tracking; 4031fi 4032 4033if test "x$enable_dependency_tracking" != xno; then 4034 am_depcomp="$ac_aux_dir/depcomp" 4035 AMDEPBACKSLASH='\' 4036fi 4037 if test "x$enable_dependency_tracking" != xno; then 4038 AMDEP_TRUE= 4039 AMDEP_FALSE='#' 4040else 4041 AMDEP_TRUE='#' 4042 AMDEP_FALSE= 4043fi 4044 4045 4046 4047depcc="$CC" am_compiler_list= 4048 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4050$as_echo_n "checking dependency style of $depcc... " >&6; } 4051if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4055 # We make a subdir and do the tests there. Otherwise we can end up 4056 # making bogus files that we don't know about and never remove. For 4057 # instance it was reported that on HP-UX the gcc test will end up 4058 # making a dummy file named `D' -- because `-MD' means `put the output 4059 # in D'. 4060 mkdir conftest.dir 4061 # Copy depcomp to subdir because otherwise we won't find it if we're 4062 # using a relative directory. 4063 cp "$am_depcomp" conftest.dir 4064 cd conftest.dir 4065 # We will build objects and dependencies in a subdirectory because 4066 # it helps to detect inapplicable dependency modes. For instance 4067 # both Tru64's cc and ICC support -MD to output dependencies as a 4068 # side effect of compilation, but ICC will put the dependencies in 4069 # the current directory while Tru64 will put them in the object 4070 # directory. 4071 mkdir sub 4072 4073 am_cv_CC_dependencies_compiler_type=none 4074 if test "$am_compiler_list" = ""; then 4075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4076 fi 4077 for depmode in $am_compiler_list; do 4078 # Setup a source with many dependencies, because some compilers 4079 # like to wrap large dependency lists on column 80 (with \), and 4080 # we should not choose a depcomp mode which is confused by this. 4081 # 4082 # We need to recreate these files for each test, as the compiler may 4083 # overwrite some of them when testing with obscure command lines. 4084 # This happens at least with the AIX C compiler. 4085 : > sub/conftest.c 4086 for i in 1 2 3 4 5 6; do 4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4089 # Solaris 8's {/usr,}/bin/sh. 4090 touch sub/conftst$i.h 4091 done 4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4093 4094 case $depmode in 4095 nosideeffect) 4096 # after this tag, mechanisms are not by side-effect, so they'll 4097 # only be used when explicitly requested 4098 if test "x$enable_dependency_tracking" = xyes; then 4099 continue 4100 else 4101 break 4102 fi 4103 ;; 4104 none) break ;; 4105 esac 4106 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4107 # mode. It turns out that the SunPro C++ compiler does not properly 4108 # handle `-M -o', and we need to detect this. 4109 if depmode=$depmode \ 4110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4113 >/dev/null 2>conftest.err && 4114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4116 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4118 # icc doesn't choke on unknown options, it will just issue warnings 4119 # or remarks (even with -Werror). So we grep stderr for any message 4120 # that says an option was ignored or not supported. 4121 # When given -MP, icc 7.0 and 7.1 complain thusly: 4122 # icc: Command line warning: ignoring option '-M'; no argument required 4123 # The diagnosis changed in icc 8.0: 4124 # icc: Command line remark: option '-MP' not supported 4125 if (grep 'ignoring option' conftest.err || 4126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4127 am_cv_CC_dependencies_compiler_type=$depmode 4128 break 4129 fi 4130 fi 4131 done 4132 4133 cd .. 4134 rm -rf conftest.dir 4135else 4136 am_cv_CC_dependencies_compiler_type=none 4137fi 4138 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4141$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4143 4144 if 4145 test "x$enable_dependency_tracking" != xno \ 4146 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4147 am__fastdepCC_TRUE= 4148 am__fastdepCC_FALSE='#' 4149else 4150 am__fastdepCC_TRUE='#' 4151 am__fastdepCC_FALSE= 4152fi 4153 4154 4155ac_ext=c 4156ac_cpp='$CPP $CPPFLAGS' 4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4159ac_compiler_gnu=$ac_cv_c_compiler_gnu 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4161$as_echo_n "checking how to run the C preprocessor... " >&6; } 4162# On Suns, sometimes $CPP names a directory. 4163if test -n "$CPP" && test -d "$CPP"; then 4164 CPP= 4165fi 4166if test -z "$CPP"; then 4167 if test "${ac_cv_prog_CPP+set}" = set; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 # Double quotes because CPP needs to be expanded 4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4172 do 4173 ac_preproc_ok=false 4174for ac_c_preproc_warn_flag in '' yes 4175do 4176 # Use a header file that comes with gcc, so configuring glibc 4177 # with a fresh cross-compiler works. 4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4179 # <limits.h> exists even on freestanding compilers. 4180 # On the NeXT, cc -E runs the code through the compiler's parser, 4181 # not just through cpp. "Syntax error" is here to catch this case. 4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183/* end confdefs.h. */ 4184#ifdef __STDC__ 4185# include <limits.h> 4186#else 4187# include <assert.h> 4188#endif 4189 Syntax error 4190_ACEOF 4191if ac_fn_c_try_cpp "$LINENO"; then : 4192 4193else 4194 # Broken: fails on valid input. 4195continue 4196fi 4197rm -f conftest.err conftest.$ac_ext 4198 4199 # OK, works on sane cases. Now check whether nonexistent headers 4200 # can be detected and how. 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203#include <ac_nonexistent.h> 4204_ACEOF 4205if ac_fn_c_try_cpp "$LINENO"; then : 4206 # Broken: success on invalid input. 4207continue 4208else 4209 # Passes both tests. 4210ac_preproc_ok=: 4211break 4212fi 4213rm -f conftest.err conftest.$ac_ext 4214 4215done 4216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4217rm -f conftest.err conftest.$ac_ext 4218if $ac_preproc_ok; then : 4219 break 4220fi 4221 4222 done 4223 ac_cv_prog_CPP=$CPP 4224 4225fi 4226 CPP=$ac_cv_prog_CPP 4227else 4228 ac_cv_prog_CPP=$CPP 4229fi 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4231$as_echo "$CPP" >&6; } 4232ac_preproc_ok=false 4233for ac_c_preproc_warn_flag in '' yes 4234do 4235 # Use a header file that comes with gcc, so configuring glibc 4236 # with a fresh cross-compiler works. 4237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4238 # <limits.h> exists even on freestanding compilers. 4239 # On the NeXT, cc -E runs the code through the compiler's parser, 4240 # not just through cpp. "Syntax error" is here to catch this case. 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242/* end confdefs.h. */ 4243#ifdef __STDC__ 4244# include <limits.h> 4245#else 4246# include <assert.h> 4247#endif 4248 Syntax error 4249_ACEOF 4250if ac_fn_c_try_cpp "$LINENO"; then : 4251 4252else 4253 # Broken: fails on valid input. 4254continue 4255fi 4256rm -f conftest.err conftest.$ac_ext 4257 4258 # OK, works on sane cases. Now check whether nonexistent headers 4259 # can be detected and how. 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262#include <ac_nonexistent.h> 4263_ACEOF 4264if ac_fn_c_try_cpp "$LINENO"; then : 4265 # Broken: success on invalid input. 4266continue 4267else 4268 # Passes both tests. 4269ac_preproc_ok=: 4270break 4271fi 4272rm -f conftest.err conftest.$ac_ext 4273 4274done 4275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4276rm -f conftest.err conftest.$ac_ext 4277if $ac_preproc_ok; then : 4278 4279else 4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4282as_fn_error "C preprocessor \"$CPP\" fails sanity check 4283See \`config.log' for more details." "$LINENO" 5; } 4284fi 4285 4286ac_ext=c 4287ac_cpp='$CPP $CPPFLAGS' 4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4290ac_compiler_gnu=$ac_cv_c_compiler_gnu 4291 4292CFLAGS="$cflags_save" 4293 4294 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4296$as_echo_n "checking for inline... " >&6; } 4297if test "${ac_cv_c_inline+set}" = set; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 ac_cv_c_inline=no 4301for ac_kw in inline __inline__ __inline; do 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304#ifndef __cplusplus 4305typedef int foo_t; 4306static $ac_kw foo_t static_foo () {return 0; } 4307$ac_kw foo_t foo () {return 0; } 4308#endif 4309 4310_ACEOF 4311if ac_fn_c_try_compile "$LINENO"; then : 4312 ac_cv_c_inline=$ac_kw 4313fi 4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4315 test "$ac_cv_c_inline" != no && break 4316done 4317 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4320$as_echo "$ac_cv_c_inline" >&6; } 4321 4322case $ac_cv_c_inline in 4323 inline | yes) ;; 4324 *) 4325 case $ac_cv_c_inline in 4326 no) ac_val=;; 4327 *) ac_val=$ac_cv_c_inline;; 4328 esac 4329 cat >>confdefs.h <<_ACEOF 4330#ifndef __cplusplus 4331#define inline $ac_val 4332#endif 4333_ACEOF 4334 ;; 4335esac 4336 4337 4338 4339 4340# Check whether --enable-shared was given. 4341if test "${enable_shared+set}" = set; then : 4342 enableval=$enable_shared; p=${PACKAGE-default} 4343 case $enableval in 4344 yes) enable_shared=yes ;; 4345 no) enable_shared=no ;; 4346 *) 4347 enable_shared=no 4348 # Look at the argument we got. We use all the common list separators. 4349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4350 for pkg in $enableval; do 4351 IFS="$lt_save_ifs" 4352 if test "X$pkg" = "X$p"; then 4353 enable_shared=yes 4354 fi 4355 done 4356 IFS="$lt_save_ifs" 4357 ;; 4358 esac 4359else 4360 enable_shared=yes 4361fi 4362 4363 4364# Check whether --enable-static was given. 4365if test "${enable_static+set}" = set; then : 4366 enableval=$enable_static; p=${PACKAGE-default} 4367 case $enableval in 4368 yes) enable_static=yes ;; 4369 no) enable_static=no ;; 4370 *) 4371 enable_static=no 4372 # Look at the argument we got. We use all the common list separators. 4373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4374 for pkg in $enableval; do 4375 IFS="$lt_save_ifs" 4376 if test "X$pkg" = "X$p"; then 4377 enable_static=yes 4378 fi 4379 done 4380 IFS="$lt_save_ifs" 4381 ;; 4382 esac 4383else 4384 enable_static=yes 4385fi 4386 4387 4388# Check whether --enable-fast-install was given. 4389if test "${enable_fast_install+set}" = set; then : 4390 enableval=$enable_fast_install; p=${PACKAGE-default} 4391 case $enableval in 4392 yes) enable_fast_install=yes ;; 4393 no) enable_fast_install=no ;; 4394 *) 4395 enable_fast_install=no 4396 # Look at the argument we got. We use all the common list separators. 4397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4398 for pkg in $enableval; do 4399 IFS="$lt_save_ifs" 4400 if test "X$pkg" = "X$p"; then 4401 enable_fast_install=yes 4402 fi 4403 done 4404 IFS="$lt_save_ifs" 4405 ;; 4406 esac 4407else 4408 enable_fast_install=yes 4409fi 4410 4411 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4413$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4414if test "${lt_cv_path_SED+set}" = set; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 # Loop through the user's path and test for sed and gsed. 4418# Then use that list of sed's as ones to test for truncation. 4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for lt_ac_prog in sed gsed; do 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4427 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4428 fi 4429 done 4430 done 4431done 4432IFS=$as_save_IFS 4433lt_ac_max=0 4434lt_ac_count=0 4435# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4436# along with /bin/sed that truncates output. 4437for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4438 test ! -f $lt_ac_sed && continue 4439 cat /dev/null > conftest.in 4440 lt_ac_count=0 4441 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4442 # Check for GNU sed and select it if it is found. 4443 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4444 lt_cv_path_SED=$lt_ac_sed 4445 break 4446 fi 4447 while true; do 4448 cat conftest.in conftest.in >conftest.tmp 4449 mv conftest.tmp conftest.in 4450 cp conftest.in conftest.nl 4451 echo >>conftest.nl 4452 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4453 cmp -s conftest.out conftest.nl || break 4454 # 10000 chars as input seems more than enough 4455 test $lt_ac_count -gt 10 && break 4456 lt_ac_count=`expr $lt_ac_count + 1` 4457 if test $lt_ac_count -gt $lt_ac_max; then 4458 lt_ac_max=$lt_ac_count 4459 lt_cv_path_SED=$lt_ac_sed 4460 fi 4461 done 4462done 4463 4464fi 4465 4466SED=$lt_cv_path_SED 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4469$as_echo "$SED" >&6; } 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4472$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4473if test "${ac_cv_path_GREP+set}" = set; then : 4474 $as_echo_n "(cached) " >&6 4475else 4476 if test -z "$GREP"; then 4477 ac_path_GREP_found=false 4478 # Loop through the user's path and test for each of PROGNAME-LIST 4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4481do 4482 IFS=$as_save_IFS 4483 test -z "$as_dir" && as_dir=. 4484 for ac_prog in grep ggrep; do 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4488# Check for GNU ac_path_GREP and select it if it is found. 4489 # Check for GNU $ac_path_GREP 4490case `"$ac_path_GREP" --version 2>&1` in 4491*GNU*) 4492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4493*) 4494 ac_count=0 4495 $as_echo_n 0123456789 >"conftest.in" 4496 while : 4497 do 4498 cat "conftest.in" "conftest.in" >"conftest.tmp" 4499 mv "conftest.tmp" "conftest.in" 4500 cp "conftest.in" "conftest.nl" 4501 $as_echo 'GREP' >> "conftest.nl" 4502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4504 as_fn_arith $ac_count + 1 && ac_count=$as_val 4505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4506 # Best one so far, save it but keep looking for a better one 4507 ac_cv_path_GREP="$ac_path_GREP" 4508 ac_path_GREP_max=$ac_count 4509 fi 4510 # 10*(2^10) chars as input seems more than enough 4511 test $ac_count -gt 10 && break 4512 done 4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4514esac 4515 4516 $ac_path_GREP_found && break 3 4517 done 4518 done 4519 done 4520IFS=$as_save_IFS 4521 if test -z "$ac_cv_path_GREP"; then 4522 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4523 fi 4524else 4525 ac_cv_path_GREP=$GREP 4526fi 4527 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4530$as_echo "$ac_cv_path_GREP" >&6; } 4531 GREP="$ac_cv_path_GREP" 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4535$as_echo_n "checking for egrep... " >&6; } 4536if test "${ac_cv_path_EGREP+set}" = set; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4540 then ac_cv_path_EGREP="$GREP -E" 4541 else 4542 if test -z "$EGREP"; then 4543 ac_path_EGREP_found=false 4544 # Loop through the user's path and test for each of PROGNAME-LIST 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_prog in egrep; do 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4554# Check for GNU ac_path_EGREP and select it if it is found. 4555 # Check for GNU $ac_path_EGREP 4556case `"$ac_path_EGREP" --version 2>&1` in 4557*GNU*) 4558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4559*) 4560 ac_count=0 4561 $as_echo_n 0123456789 >"conftest.in" 4562 while : 4563 do 4564 cat "conftest.in" "conftest.in" >"conftest.tmp" 4565 mv "conftest.tmp" "conftest.in" 4566 cp "conftest.in" "conftest.nl" 4567 $as_echo 'EGREP' >> "conftest.nl" 4568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4570 as_fn_arith $ac_count + 1 && ac_count=$as_val 4571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4572 # Best one so far, save it but keep looking for a better one 4573 ac_cv_path_EGREP="$ac_path_EGREP" 4574 ac_path_EGREP_max=$ac_count 4575 fi 4576 # 10*(2^10) chars as input seems more than enough 4577 test $ac_count -gt 10 && break 4578 done 4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4580esac 4581 4582 $ac_path_EGREP_found && break 3 4583 done 4584 done 4585 done 4586IFS=$as_save_IFS 4587 if test -z "$ac_cv_path_EGREP"; then 4588 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4589 fi 4590else 4591 ac_cv_path_EGREP=$EGREP 4592fi 4593 4594 fi 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4597$as_echo "$ac_cv_path_EGREP" >&6; } 4598 EGREP="$ac_cv_path_EGREP" 4599 4600 4601 4602# Check whether --with-gnu-ld was given. 4603if test "${with_gnu_ld+set}" = set; then : 4604 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4605else 4606 with_gnu_ld=no 4607fi 4608 4609ac_prog=ld 4610if test "$GCC" = yes; then 4611 # Check if gcc -print-prog-name=ld gives a path. 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4613$as_echo_n "checking for ld used by $CC... " >&6; } 4614 case $host in 4615 *-*-mingw*) 4616 # gcc leaves a trailing carriage return which upsets mingw 4617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4618 *) 4619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4620 esac 4621 case $ac_prog in 4622 # Accept absolute paths. 4623 [\\/]* | ?:[\\/]*) 4624 re_direlt='/[^/][^/]*/\.\./' 4625 # Canonicalize the pathname of ld 4626 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4627 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4628 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4629 done 4630 test -z "$LD" && LD="$ac_prog" 4631 ;; 4632 "") 4633 # If it fails, then pretend we aren't using GCC. 4634 ac_prog=ld 4635 ;; 4636 *) 4637 # If it is relative, then search for the first ld in PATH. 4638 with_gnu_ld=unknown 4639 ;; 4640 esac 4641elif test "$with_gnu_ld" = yes; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4643$as_echo_n "checking for GNU ld... " >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4646$as_echo_n "checking for non-GNU ld... " >&6; } 4647fi 4648if test "${lt_cv_path_LD+set}" = set; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 if test -z "$LD"; then 4652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4653 for ac_dir in $PATH; do 4654 IFS="$lt_save_ifs" 4655 test -z "$ac_dir" && ac_dir=. 4656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4657 lt_cv_path_LD="$ac_dir/$ac_prog" 4658 # Check to see if the program is GNU ld. I'd rather use --version, 4659 # but apparently some variants of GNU ld only accept -v. 4660 # Break only if it was the GNU/non-GNU ld that we prefer. 4661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4662 *GNU* | *'with BFD'*) 4663 test "$with_gnu_ld" != no && break 4664 ;; 4665 *) 4666 test "$with_gnu_ld" != yes && break 4667 ;; 4668 esac 4669 fi 4670 done 4671 IFS="$lt_save_ifs" 4672else 4673 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4674fi 4675fi 4676 4677LD="$lt_cv_path_LD" 4678if test -n "$LD"; then 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4680$as_echo "$LD" >&6; } 4681else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683$as_echo "no" >&6; } 4684fi 4685test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4687$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4688if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4692case `$LD -v 2>&1 </dev/null` in 4693*GNU* | *'with BFD'*) 4694 lt_cv_prog_gnu_ld=yes 4695 ;; 4696*) 4697 lt_cv_prog_gnu_ld=no 4698 ;; 4699esac 4700fi 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4702$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4703with_gnu_ld=$lt_cv_prog_gnu_ld 4704 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4707$as_echo_n "checking for $LD option to reload object files... " >&6; } 4708if test "${lt_cv_ld_reload_flag+set}" = set; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 lt_cv_ld_reload_flag='-r' 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4714$as_echo "$lt_cv_ld_reload_flag" >&6; } 4715reload_flag=$lt_cv_ld_reload_flag 4716case $reload_flag in 4717"" | " "*) ;; 4718*) reload_flag=" $reload_flag" ;; 4719esac 4720reload_cmds='$LD$reload_flag -o $output$reload_objs' 4721case $host_os in 4722 darwin*) 4723 if test "$GCC" = yes; then 4724 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4725 else 4726 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4727 fi 4728 ;; 4729esac 4730 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 4732$as_echo_n "checking for BSD-compatible nm... " >&6; } 4733if test "${lt_cv_path_NM+set}" = set; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 if test -n "$NM"; then 4737 # Let the user override the test. 4738 lt_cv_path_NM="$NM" 4739else 4740 lt_nm_to_check="${ac_tool_prefix}nm" 4741 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4742 lt_nm_to_check="$lt_nm_to_check nm" 4743 fi 4744 for lt_tmp_nm in $lt_nm_to_check; do 4745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4746 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4747 IFS="$lt_save_ifs" 4748 test -z "$ac_dir" && ac_dir=. 4749 tmp_nm="$ac_dir/$lt_tmp_nm" 4750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4751 # Check to see if the nm accepts a BSD-compat flag. 4752 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4753 # nm: unknown option "B" ignored 4754 # Tru64's nm complains that /dev/null is an invalid object file 4755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4756 */dev/null* | *'Invalid file or object type'*) 4757 lt_cv_path_NM="$tmp_nm -B" 4758 break 4759 ;; 4760 *) 4761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4762 */dev/null*) 4763 lt_cv_path_NM="$tmp_nm -p" 4764 break 4765 ;; 4766 *) 4767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4768 continue # so that we can try to find one that supports BSD flags 4769 ;; 4770 esac 4771 ;; 4772 esac 4773 fi 4774 done 4775 IFS="$lt_save_ifs" 4776 done 4777 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4778fi 4779fi 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4781$as_echo "$lt_cv_path_NM" >&6; } 4782NM="$lt_cv_path_NM" 4783 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4785$as_echo_n "checking whether ln -s works... " >&6; } 4786LN_S=$as_ln_s 4787if test "$LN_S" = "ln -s"; then 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4789$as_echo "yes" >&6; } 4790else 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4792$as_echo "no, using $LN_S" >&6; } 4793fi 4794 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4796$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4797if test "${lt_cv_deplibs_check_method+set}" = set; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 lt_cv_file_magic_cmd='$MAGIC_CMD' 4801lt_cv_file_magic_test_file= 4802lt_cv_deplibs_check_method='unknown' 4803# Need to set the preceding variable on all platforms that support 4804# interlibrary dependencies. 4805# 'none' -- dependencies not supported. 4806# `unknown' -- same as none, but documents that we really don't know. 4807# 'pass_all' -- all dependencies passed with no checks. 4808# 'test_compile' -- check by making test program. 4809# 'file_magic [[regex]]' -- check by looking for files in library path 4810# which responds to the $file_magic_cmd with a given extended regex. 4811# If you have `file' or equivalent on your system and you're not sure 4812# whether `pass_all' will *always* work, you probably want this one. 4813 4814case $host_os in 4815aix[4-9]*) 4816 lt_cv_deplibs_check_method=pass_all 4817 ;; 4818 4819beos*) 4820 lt_cv_deplibs_check_method=pass_all 4821 ;; 4822 4823bsdi[45]*) 4824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4825 lt_cv_file_magic_cmd='/usr/bin/file -L' 4826 lt_cv_file_magic_test_file=/shlib/libc.so 4827 ;; 4828 4829cygwin*) 4830 # func_win32_libid is a shell function defined in ltmain.sh 4831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4832 lt_cv_file_magic_cmd='func_win32_libid' 4833 ;; 4834 4835mingw* | pw32*) 4836 # Base MSYS/MinGW do not provide the 'file' command needed by 4837 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4838 # unless we find 'file', for example because we are cross-compiling. 4839 if ( file / ) >/dev/null 2>&1; then 4840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4841 lt_cv_file_magic_cmd='func_win32_libid' 4842 else 4843 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4844 lt_cv_file_magic_cmd='$OBJDUMP -f' 4845 fi 4846 ;; 4847 4848darwin* | rhapsody*) 4849 lt_cv_deplibs_check_method=pass_all 4850 ;; 4851 4852freebsd* | dragonfly*) 4853 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4854 case $host_cpu in 4855 i*86 ) 4856 # Not sure whether the presence of OpenBSD here was a mistake. 4857 # Let's accept both of them until this is cleared up. 4858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4859 lt_cv_file_magic_cmd=/usr/bin/file 4860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4861 ;; 4862 esac 4863 else 4864 lt_cv_deplibs_check_method=pass_all 4865 fi 4866 ;; 4867 4868gnu*) 4869 lt_cv_deplibs_check_method=pass_all 4870 ;; 4871 4872hpux10.20* | hpux11*) 4873 lt_cv_file_magic_cmd=/usr/bin/file 4874 case $host_cpu in 4875 ia64*) 4876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4878 ;; 4879 hppa*64*) 4880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4882 ;; 4883 *) 4884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4885 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4886 ;; 4887 esac 4888 ;; 4889 4890interix[3-9]*) 4891 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4893 ;; 4894 4895irix5* | irix6* | nonstopux*) 4896 case $LD in 4897 *-32|*"-32 ") libmagic=32-bit;; 4898 *-n32|*"-n32 ") libmagic=N32;; 4899 *-64|*"-64 ") libmagic=64-bit;; 4900 *) libmagic=never-match;; 4901 esac 4902 lt_cv_deplibs_check_method=pass_all 4903 ;; 4904 4905# This must be Linux ELF. 4906linux* | k*bsd*-gnu) 4907 lt_cv_deplibs_check_method=pass_all 4908 ;; 4909 4910netbsd*) 4911 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4913 else 4914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4915 fi 4916 ;; 4917 4918newos6*) 4919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4920 lt_cv_file_magic_cmd=/usr/bin/file 4921 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4922 ;; 4923 4924nto-qnx*) 4925 lt_cv_deplibs_check_method=unknown 4926 ;; 4927 4928openbsd*) 4929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4931 else 4932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4933 fi 4934 ;; 4935 4936osf3* | osf4* | osf5*) 4937 lt_cv_deplibs_check_method=pass_all 4938 ;; 4939 4940rdos*) 4941 lt_cv_deplibs_check_method=pass_all 4942 ;; 4943 4944solaris*) 4945 lt_cv_deplibs_check_method=pass_all 4946 ;; 4947 4948sysv4 | sysv4.3*) 4949 case $host_vendor in 4950 motorola) 4951 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]' 4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4953 ;; 4954 ncr) 4955 lt_cv_deplibs_check_method=pass_all 4956 ;; 4957 sequent) 4958 lt_cv_file_magic_cmd='/bin/file' 4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4960 ;; 4961 sni) 4962 lt_cv_file_magic_cmd='/bin/file' 4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4964 lt_cv_file_magic_test_file=/lib/libc.so 4965 ;; 4966 siemens) 4967 lt_cv_deplibs_check_method=pass_all 4968 ;; 4969 pc) 4970 lt_cv_deplibs_check_method=pass_all 4971 ;; 4972 esac 4973 ;; 4974 4975sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4976 lt_cv_deplibs_check_method=pass_all 4977 ;; 4978esac 4979 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4982$as_echo "$lt_cv_deplibs_check_method" >&6; } 4983file_magic_cmd=$lt_cv_file_magic_cmd 4984deplibs_check_method=$lt_cv_deplibs_check_method 4985test -z "$deplibs_check_method" && deplibs_check_method=unknown 4986 4987 4988 4989 4990# If no C compiler was specified, use CC. 4991LTCC=${LTCC-"$CC"} 4992 4993# If no C compiler flags were specified, use CFLAGS. 4994LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4995 4996# Allow CC to be a program name with arguments. 4997compiler=$CC 4998 4999# Check whether --enable-libtool-lock was given. 5000if test "${enable_libtool_lock+set}" = set; then : 5001 enableval=$enable_libtool_lock; 5002fi 5003 5004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5005 5006# Some flags need to be propagated to the compiler or linker for good 5007# libtool support. 5008case $host in 5009ia64-*-hpux*) 5010 # Find out which ABI we are using. 5011 echo 'int i;' > conftest.$ac_ext 5012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5013 (eval $ac_compile) 2>&5 5014 ac_status=$? 5015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5016 test $ac_status = 0; }; then 5017 case `/usr/bin/file conftest.$ac_objext` in 5018 *ELF-32*) 5019 HPUX_IA64_MODE="32" 5020 ;; 5021 *ELF-64*) 5022 HPUX_IA64_MODE="64" 5023 ;; 5024 esac 5025 fi 5026 rm -rf conftest* 5027 ;; 5028*-*-irix6*) 5029 # Find out which ABI we are using. 5030 echo '#line 5030 "configure"' > conftest.$ac_ext 5031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5032 (eval $ac_compile) 2>&5 5033 ac_status=$? 5034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5035 test $ac_status = 0; }; then 5036 if test "$lt_cv_prog_gnu_ld" = yes; then 5037 case `/usr/bin/file conftest.$ac_objext` in 5038 *32-bit*) 5039 LD="${LD-ld} -melf32bsmip" 5040 ;; 5041 *N32*) 5042 LD="${LD-ld} -melf32bmipn32" 5043 ;; 5044 *64-bit*) 5045 LD="${LD-ld} -melf64bmip" 5046 ;; 5047 esac 5048 else 5049 case `/usr/bin/file conftest.$ac_objext` in 5050 *32-bit*) 5051 LD="${LD-ld} -32" 5052 ;; 5053 *N32*) 5054 LD="${LD-ld} -n32" 5055 ;; 5056 *64-bit*) 5057 LD="${LD-ld} -64" 5058 ;; 5059 esac 5060 fi 5061 fi 5062 rm -rf conftest* 5063 ;; 5064 5065x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5066s390*-*linux*|sparc*-*linux*) 5067 # Find out which ABI we are using. 5068 echo 'int i;' > conftest.$ac_ext 5069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5070 (eval $ac_compile) 2>&5 5071 ac_status=$? 5072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5073 test $ac_status = 0; }; then 5074 case `/usr/bin/file conftest.o` in 5075 *32-bit*) 5076 case $host in 5077 x86_64-*kfreebsd*-gnu) 5078 LD="${LD-ld} -m elf_i386_fbsd" 5079 ;; 5080 x86_64-*linux*) 5081 LD="${LD-ld} -m elf_i386" 5082 ;; 5083 ppc64-*linux*|powerpc64-*linux*) 5084 LD="${LD-ld} -m elf32ppclinux" 5085 ;; 5086 s390x-*linux*) 5087 LD="${LD-ld} -m elf_s390" 5088 ;; 5089 sparc64-*linux*) 5090 LD="${LD-ld} -m elf32_sparc" 5091 ;; 5092 esac 5093 ;; 5094 *64-bit*) 5095 libsuff=64 5096 case $host in 5097 x86_64-*kfreebsd*-gnu) 5098 LD="${LD-ld} -m elf_x86_64_fbsd" 5099 ;; 5100 x86_64-*linux*) 5101 LD="${LD-ld} -m elf_x86_64" 5102 ;; 5103 ppc*-*linux*|powerpc*-*linux*) 5104 LD="${LD-ld} -m elf64ppc" 5105 ;; 5106 s390*-*linux*) 5107 LD="${LD-ld} -m elf64_s390" 5108 ;; 5109 sparc*-*linux*) 5110 LD="${LD-ld} -m elf64_sparc" 5111 ;; 5112 esac 5113 ;; 5114 esac 5115 fi 5116 rm -rf conftest* 5117 ;; 5118 5119*-*-sco3.2v5*) 5120 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5121 SAVE_CFLAGS="$CFLAGS" 5122 CFLAGS="$CFLAGS -belf" 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5124$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5125if test "${lt_cv_cc_needs_belf+set}" = set; then : 5126 $as_echo_n "(cached) " >&6 5127else 5128 ac_ext=c 5129ac_cpp='$CPP $CPPFLAGS' 5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5132ac_compiler_gnu=$ac_cv_c_compiler_gnu 5133 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_c_try_link "$LINENO"; then : 5146 lt_cv_cc_needs_belf=yes 5147else 5148 lt_cv_cc_needs_belf=no 5149fi 5150rm -f core conftest.err conftest.$ac_objext \ 5151 conftest$ac_exeext conftest.$ac_ext 5152 ac_ext=c 5153ac_cpp='$CPP $CPPFLAGS' 5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5156ac_compiler_gnu=$ac_cv_c_compiler_gnu 5157 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5160$as_echo "$lt_cv_cc_needs_belf" >&6; } 5161 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5162 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5163 CFLAGS="$SAVE_CFLAGS" 5164 fi 5165 ;; 5166sparc*-*solaris*) 5167 # Find out which ABI we are using. 5168 echo 'int i;' > conftest.$ac_ext 5169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5170 (eval $ac_compile) 2>&5 5171 ac_status=$? 5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5173 test $ac_status = 0; }; then 5174 case `/usr/bin/file conftest.o` in 5175 *64-bit*) 5176 case $lt_cv_prog_gnu_ld in 5177 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5178 *) 5179 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5180 LD="${LD-ld} -64" 5181 fi 5182 ;; 5183 esac 5184 ;; 5185 esac 5186 fi 5187 rm -rf conftest* 5188 ;; 5189 5190*-*-cygwin* | *-*-mingw* | *-*-pw32*) 5191 if test -n "$ac_tool_prefix"; then 5192 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5193set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5195$as_echo_n "checking for $ac_word... " >&6; } 5196if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 if test -n "$DLLTOOL"; then 5200 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5201else 5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5203for as_dir in $PATH 5204do 5205 IFS=$as_save_IFS 5206 test -z "$as_dir" && as_dir=. 5207 for ac_exec_ext in '' $ac_executable_extensions; do 5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5209 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5211 break 2 5212 fi 5213done 5214 done 5215IFS=$as_save_IFS 5216 5217fi 5218fi 5219DLLTOOL=$ac_cv_prog_DLLTOOL 5220if test -n "$DLLTOOL"; then 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5222$as_echo "$DLLTOOL" >&6; } 5223else 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225$as_echo "no" >&6; } 5226fi 5227 5228 5229fi 5230if test -z "$ac_cv_prog_DLLTOOL"; then 5231 ac_ct_DLLTOOL=$DLLTOOL 5232 # Extract the first word of "dlltool", so it can be a program name with args. 5233set dummy dlltool; ac_word=$2 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235$as_echo_n "checking for $ac_word... " >&6; } 5236if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 if test -n "$ac_ct_DLLTOOL"; then 5240 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5241else 5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243for as_dir in $PATH 5244do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5249 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5251 break 2 5252 fi 5253done 5254 done 5255IFS=$as_save_IFS 5256 5257fi 5258fi 5259ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5260if test -n "$ac_ct_DLLTOOL"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5262$as_echo "$ac_ct_DLLTOOL" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266fi 5267 5268 if test "x$ac_ct_DLLTOOL" = x; then 5269 DLLTOOL="false" 5270 else 5271 case $cross_compiling:$ac_tool_warned in 5272yes:) 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5275ac_tool_warned=yes ;; 5276esac 5277 DLLTOOL=$ac_ct_DLLTOOL 5278 fi 5279else 5280 DLLTOOL="$ac_cv_prog_DLLTOOL" 5281fi 5282 5283 if test -n "$ac_tool_prefix"; then 5284 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5285set dummy ${ac_tool_prefix}as; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if test "${ac_cv_prog_AS+set}" = set; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$AS"; then 5292 ac_cv_prog_AS="$AS" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5301 ac_cv_prog_AS="${ac_tool_prefix}as" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311AS=$ac_cv_prog_AS 5312if test -n "$AS"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5314$as_echo "$AS" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 5321fi 5322if test -z "$ac_cv_prog_AS"; then 5323 ac_ct_AS=$AS 5324 # Extract the first word of "as", so it can be a program name with args. 5325set dummy as; ac_word=$2 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5327$as_echo_n "checking for $ac_word... " >&6; } 5328if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 if test -n "$ac_ct_AS"; then 5332 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5333else 5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335for as_dir in $PATH 5336do 5337 IFS=$as_save_IFS 5338 test -z "$as_dir" && as_dir=. 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5341 ac_cv_prog_ac_ct_AS="as" 5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349fi 5350fi 5351ac_ct_AS=$ac_cv_prog_ac_ct_AS 5352if test -n "$ac_ct_AS"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5354$as_echo "$ac_ct_AS" >&6; } 5355else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357$as_echo "no" >&6; } 5358fi 5359 5360 if test "x$ac_ct_AS" = x; then 5361 AS="false" 5362 else 5363 case $cross_compiling:$ac_tool_warned in 5364yes:) 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5367ac_tool_warned=yes ;; 5368esac 5369 AS=$ac_ct_AS 5370 fi 5371else 5372 AS="$ac_cv_prog_AS" 5373fi 5374 5375 if test -n "$ac_tool_prefix"; then 5376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5377set dummy ${ac_tool_prefix}objdump; ac_word=$2 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379$as_echo_n "checking for $ac_word... " >&6; } 5380if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$OBJDUMP"; then 5384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403OBJDUMP=$ac_cv_prog_OBJDUMP 5404if test -n "$OBJDUMP"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5406$as_echo "$OBJDUMP" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 5413fi 5414if test -z "$ac_cv_prog_OBJDUMP"; then 5415 ac_ct_OBJDUMP=$OBJDUMP 5416 # Extract the first word of "objdump", so it can be a program name with args. 5417set dummy objdump; ac_word=$2 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5419$as_echo_n "checking for $ac_word... " >&6; } 5420if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 if test -n "$ac_ct_OBJDUMP"; then 5424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5425else 5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5427for as_dir in $PATH 5428do 5429 IFS=$as_save_IFS 5430 test -z "$as_dir" && as_dir=. 5431 for ac_exec_ext in '' $ac_executable_extensions; do 5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5433 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5435 break 2 5436 fi 5437done 5438 done 5439IFS=$as_save_IFS 5440 5441fi 5442fi 5443ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5444if test -n "$ac_ct_OBJDUMP"; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5446$as_echo "$ac_ct_OBJDUMP" >&6; } 5447else 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5449$as_echo "no" >&6; } 5450fi 5451 5452 if test "x$ac_ct_OBJDUMP" = x; then 5453 OBJDUMP="false" 5454 else 5455 case $cross_compiling:$ac_tool_warned in 5456yes:) 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5459ac_tool_warned=yes ;; 5460esac 5461 OBJDUMP=$ac_ct_OBJDUMP 5462 fi 5463else 5464 OBJDUMP="$ac_cv_prog_OBJDUMP" 5465fi 5466 5467 ;; 5468 5469esac 5470 5471need_locks="$enable_libtool_lock" 5472 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5476$as_echo_n "checking for ANSI C header files... " >&6; } 5477if test "${ac_cv_header_stdc+set}" = set; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482#include <stdlib.h> 5483#include <stdarg.h> 5484#include <string.h> 5485#include <float.h> 5486 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_compile "$LINENO"; then : 5496 ac_cv_header_stdc=yes 5497else 5498 ac_cv_header_stdc=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501 5502if test $ac_cv_header_stdc = yes; then 5503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506#include <string.h> 5507 5508_ACEOF 5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5510 $EGREP "memchr" >/dev/null 2>&1; then : 5511 5512else 5513 ac_cv_header_stdc=no 5514fi 5515rm -f conftest* 5516 5517fi 5518 5519if test $ac_cv_header_stdc = yes; then 5520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523#include <stdlib.h> 5524 5525_ACEOF 5526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5527 $EGREP "free" >/dev/null 2>&1; then : 5528 5529else 5530 ac_cv_header_stdc=no 5531fi 5532rm -f conftest* 5533 5534fi 5535 5536if test $ac_cv_header_stdc = yes; then 5537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5538 if test "$cross_compiling" = yes; then : 5539 : 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <ctype.h> 5544#include <stdlib.h> 5545#if ((' ' & 0x0FF) == 0x020) 5546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5548#else 5549# define ISLOWER(c) \ 5550 (('a' <= (c) && (c) <= 'i') \ 5551 || ('j' <= (c) && (c) <= 'r') \ 5552 || ('s' <= (c) && (c) <= 'z')) 5553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5554#endif 5555 5556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5557int 5558main () 5559{ 5560 int i; 5561 for (i = 0; i < 256; i++) 5562 if (XOR (islower (i), ISLOWER (i)) 5563 || toupper (i) != TOUPPER (i)) 5564 return 2; 5565 return 0; 5566} 5567_ACEOF 5568if ac_fn_c_try_run "$LINENO"; then : 5569 5570else 5571 ac_cv_header_stdc=no 5572fi 5573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5574 conftest.$ac_objext conftest.beam conftest.$ac_ext 5575fi 5576 5577fi 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5580$as_echo "$ac_cv_header_stdc" >&6; } 5581if test $ac_cv_header_stdc = yes; then 5582 5583$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5584 5585fi 5586 5587# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5589 inttypes.h stdint.h unistd.h 5590do : 5591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5593" 5594eval as_val=\$$as_ac_Header 5595 if test "x$as_val" = x""yes; then : 5596 cat >>confdefs.h <<_ACEOF 5597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5598_ACEOF 5599 5600fi 5601 5602done 5603 5604 5605for ac_header in dlfcn.h 5606do : 5607 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5608if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 5609 cat >>confdefs.h <<_ACEOF 5610#define HAVE_DLFCN_H 1 5611_ACEOF 5612 5613fi 5614 5615done 5616 5617ac_ext=cpp 5618ac_cpp='$CXXCPP $CPPFLAGS' 5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5622if test -z "$CXX"; then 5623 if test -n "$CCC"; then 5624 CXX=$CCC 5625 else 5626 if test -n "$ac_tool_prefix"; then 5627 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5628 do 5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5632$as_echo_n "checking for $ac_word... " >&6; } 5633if test "${ac_cv_prog_CXX+set}" = set; then : 5634 $as_echo_n "(cached) " >&6 5635else 5636 if test -n "$CXX"; then 5637 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5638else 5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650done 5651 done 5652IFS=$as_save_IFS 5653 5654fi 5655fi 5656CXX=$ac_cv_prog_CXX 5657if test -n "$CXX"; then 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5659$as_echo "$CXX" >&6; } 5660else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662$as_echo "no" >&6; } 5663fi 5664 5665 5666 test -n "$CXX" && break 5667 done 5668fi 5669if test -z "$CXX"; then 5670 ac_ct_CXX=$CXX 5671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5672do 5673 # Extract the first word of "$ac_prog", so it can be a program name with args. 5674set dummy $ac_prog; ac_word=$2 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5676$as_echo_n "checking for $ac_word... " >&6; } 5677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 if test -n "$ac_ct_CXX"; then 5681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5682else 5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5684for as_dir in $PATH 5685do 5686 IFS=$as_save_IFS 5687 test -z "$as_dir" && as_dir=. 5688 for ac_exec_ext in '' $ac_executable_extensions; do 5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5690 ac_cv_prog_ac_ct_CXX="$ac_prog" 5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5692 break 2 5693 fi 5694done 5695 done 5696IFS=$as_save_IFS 5697 5698fi 5699fi 5700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5701if test -n "$ac_ct_CXX"; then 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5703$as_echo "$ac_ct_CXX" >&6; } 5704else 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5706$as_echo "no" >&6; } 5707fi 5708 5709 5710 test -n "$ac_ct_CXX" && break 5711done 5712 5713 if test "x$ac_ct_CXX" = x; then 5714 CXX="g++" 5715 else 5716 case $cross_compiling:$ac_tool_warned in 5717yes:) 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5720ac_tool_warned=yes ;; 5721esac 5722 CXX=$ac_ct_CXX 5723 fi 5724fi 5725 5726 fi 5727fi 5728# Provide some information about the compiler. 5729$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5730set X $ac_compile 5731ac_compiler=$2 5732for ac_option in --version -v -V -qversion; do 5733 { { ac_try="$ac_compiler $ac_option >&5" 5734case "(($ac_try" in 5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5736 *) ac_try_echo=$ac_try;; 5737esac 5738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5739$as_echo "$ac_try_echo"; } >&5 5740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5741 ac_status=$? 5742 if test -s conftest.err; then 5743 sed '10a\ 5744... rest of stderr output deleted ... 5745 10q' conftest.err >conftest.er1 5746 cat conftest.er1 >&5 5747 fi 5748 rm -f conftest.er1 conftest.err 5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5750 test $ac_status = 0; } 5751done 5752 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5754$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5755if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759/* end confdefs.h. */ 5760 5761int 5762main () 5763{ 5764#ifndef __GNUC__ 5765 choke me 5766#endif 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_cxx_try_compile "$LINENO"; then : 5773 ac_compiler_gnu=yes 5774else 5775 ac_compiler_gnu=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5778ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5779 5780fi 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5782$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5783if test $ac_compiler_gnu = yes; then 5784 GXX=yes 5785else 5786 GXX= 5787fi 5788ac_test_CXXFLAGS=${CXXFLAGS+set} 5789ac_save_CXXFLAGS=$CXXFLAGS 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5791$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5792if test "${ac_cv_prog_cxx_g+set}" = set; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5796 ac_cxx_werror_flag=yes 5797 ac_cv_prog_cxx_g=no 5798 CXXFLAGS="-g" 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801 5802int 5803main () 5804{ 5805 5806 ; 5807 return 0; 5808} 5809_ACEOF 5810if ac_fn_cxx_try_compile "$LINENO"; then : 5811 ac_cv_prog_cxx_g=yes 5812else 5813 CXXFLAGS="" 5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5815/* end confdefs.h. */ 5816 5817int 5818main () 5819{ 5820 5821 ; 5822 return 0; 5823} 5824_ACEOF 5825if ac_fn_cxx_try_compile "$LINENO"; then : 5826 5827else 5828 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5829 CXXFLAGS="-g" 5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5831/* end confdefs.h. */ 5832 5833int 5834main () 5835{ 5836 5837 ; 5838 return 0; 5839} 5840_ACEOF 5841if ac_fn_cxx_try_compile "$LINENO"; then : 5842 ac_cv_prog_cxx_g=yes 5843fi 5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847fi 5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5852$as_echo "$ac_cv_prog_cxx_g" >&6; } 5853if test "$ac_test_CXXFLAGS" = set; then 5854 CXXFLAGS=$ac_save_CXXFLAGS 5855elif test $ac_cv_prog_cxx_g = yes; then 5856 if test "$GXX" = yes; then 5857 CXXFLAGS="-g -O2" 5858 else 5859 CXXFLAGS="-g" 5860 fi 5861else 5862 if test "$GXX" = yes; then 5863 CXXFLAGS="-O2" 5864 else 5865 CXXFLAGS= 5866 fi 5867fi 5868ac_ext=cpp 5869ac_cpp='$CXXCPP $CPPFLAGS' 5870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5873 5874depcc="$CXX" am_compiler_list= 5875 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5877$as_echo_n "checking dependency style of $depcc... " >&6; } 5878if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5882 # We make a subdir and do the tests there. Otherwise we can end up 5883 # making bogus files that we don't know about and never remove. For 5884 # instance it was reported that on HP-UX the gcc test will end up 5885 # making a dummy file named `D' -- because `-MD' means `put the output 5886 # in D'. 5887 mkdir conftest.dir 5888 # Copy depcomp to subdir because otherwise we won't find it if we're 5889 # using a relative directory. 5890 cp "$am_depcomp" conftest.dir 5891 cd conftest.dir 5892 # We will build objects and dependencies in a subdirectory because 5893 # it helps to detect inapplicable dependency modes. For instance 5894 # both Tru64's cc and ICC support -MD to output dependencies as a 5895 # side effect of compilation, but ICC will put the dependencies in 5896 # the current directory while Tru64 will put them in the object 5897 # directory. 5898 mkdir sub 5899 5900 am_cv_CXX_dependencies_compiler_type=none 5901 if test "$am_compiler_list" = ""; then 5902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5903 fi 5904 for depmode in $am_compiler_list; do 5905 # Setup a source with many dependencies, because some compilers 5906 # like to wrap large dependency lists on column 80 (with \), and 5907 # we should not choose a depcomp mode which is confused by this. 5908 # 5909 # We need to recreate these files for each test, as the compiler may 5910 # overwrite some of them when testing with obscure command lines. 5911 # This happens at least with the AIX C compiler. 5912 : > sub/conftest.c 5913 for i in 1 2 3 4 5 6; do 5914 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5916 # Solaris 8's {/usr,}/bin/sh. 5917 touch sub/conftst$i.h 5918 done 5919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5920 5921 case $depmode in 5922 nosideeffect) 5923 # after this tag, mechanisms are not by side-effect, so they'll 5924 # only be used when explicitly requested 5925 if test "x$enable_dependency_tracking" = xyes; then 5926 continue 5927 else 5928 break 5929 fi 5930 ;; 5931 none) break ;; 5932 esac 5933 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5934 # mode. It turns out that the SunPro C++ compiler does not properly 5935 # handle `-M -o', and we need to detect this. 5936 if depmode=$depmode \ 5937 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5939 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5940 >/dev/null 2>conftest.err && 5941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5943 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5945 # icc doesn't choke on unknown options, it will just issue warnings 5946 # or remarks (even with -Werror). So we grep stderr for any message 5947 # that says an option was ignored or not supported. 5948 # When given -MP, icc 7.0 and 7.1 complain thusly: 5949 # icc: Command line warning: ignoring option '-M'; no argument required 5950 # The diagnosis changed in icc 8.0: 5951 # icc: Command line remark: option '-MP' not supported 5952 if (grep 'ignoring option' conftest.err || 5953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5954 am_cv_CXX_dependencies_compiler_type=$depmode 5955 break 5956 fi 5957 fi 5958 done 5959 5960 cd .. 5961 rm -rf conftest.dir 5962else 5963 am_cv_CXX_dependencies_compiler_type=none 5964fi 5965 5966fi 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5968$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5969CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5970 5971 if 5972 test "x$enable_dependency_tracking" != xno \ 5973 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5974 am__fastdepCXX_TRUE= 5975 am__fastdepCXX_FALSE='#' 5976else 5977 am__fastdepCXX_TRUE='#' 5978 am__fastdepCXX_FALSE= 5979fi 5980 5981 5982 5983 5984if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5985 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5986 (test "X$CXX" != "Xg++"))) ; then 5987 ac_ext=cpp 5988ac_cpp='$CXXCPP $CPPFLAGS' 5989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5993$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5994if test -z "$CXXCPP"; then 5995 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 # Double quotes because CXXCPP needs to be expanded 5999 for CXXCPP in "$CXX -E" "/lib/cpp" 6000 do 6001 ac_preproc_ok=false 6002for ac_cxx_preproc_warn_flag in '' yes 6003do 6004 # Use a header file that comes with gcc, so configuring glibc 6005 # with a fresh cross-compiler works. 6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6007 # <limits.h> exists even on freestanding compilers. 6008 # On the NeXT, cc -E runs the code through the compiler's parser, 6009 # not just through cpp. "Syntax error" is here to catch this case. 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012#ifdef __STDC__ 6013# include <limits.h> 6014#else 6015# include <assert.h> 6016#endif 6017 Syntax error 6018_ACEOF 6019if ac_fn_cxx_try_cpp "$LINENO"; then : 6020 6021else 6022 # Broken: fails on valid input. 6023continue 6024fi 6025rm -f conftest.err conftest.$ac_ext 6026 6027 # OK, works on sane cases. Now check whether nonexistent headers 6028 # can be detected and how. 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031#include <ac_nonexistent.h> 6032_ACEOF 6033if ac_fn_cxx_try_cpp "$LINENO"; then : 6034 # Broken: success on invalid input. 6035continue 6036else 6037 # Passes both tests. 6038ac_preproc_ok=: 6039break 6040fi 6041rm -f conftest.err conftest.$ac_ext 6042 6043done 6044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6045rm -f conftest.err conftest.$ac_ext 6046if $ac_preproc_ok; then : 6047 break 6048fi 6049 6050 done 6051 ac_cv_prog_CXXCPP=$CXXCPP 6052 6053fi 6054 CXXCPP=$ac_cv_prog_CXXCPP 6055else 6056 ac_cv_prog_CXXCPP=$CXXCPP 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6059$as_echo "$CXXCPP" >&6; } 6060ac_preproc_ok=false 6061for ac_cxx_preproc_warn_flag in '' yes 6062do 6063 # Use a header file that comes with gcc, so configuring glibc 6064 # with a fresh cross-compiler works. 6065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6066 # <limits.h> exists even on freestanding compilers. 6067 # On the NeXT, cc -E runs the code through the compiler's parser, 6068 # not just through cpp. "Syntax error" is here to catch this case. 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071#ifdef __STDC__ 6072# include <limits.h> 6073#else 6074# include <assert.h> 6075#endif 6076 Syntax error 6077_ACEOF 6078if ac_fn_cxx_try_cpp "$LINENO"; then : 6079 6080else 6081 # Broken: fails on valid input. 6082continue 6083fi 6084rm -f conftest.err conftest.$ac_ext 6085 6086 # OK, works on sane cases. Now check whether nonexistent headers 6087 # can be detected and how. 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090#include <ac_nonexistent.h> 6091_ACEOF 6092if ac_fn_cxx_try_cpp "$LINENO"; then : 6093 # Broken: success on invalid input. 6094continue 6095else 6096 # Passes both tests. 6097ac_preproc_ok=: 6098break 6099fi 6100rm -f conftest.err conftest.$ac_ext 6101 6102done 6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6104rm -f conftest.err conftest.$ac_ext 6105if $ac_preproc_ok; then : 6106 6107else 6108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6110as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 6111See \`config.log' for more details." "$LINENO" 5; } 6112fi 6113 6114ac_ext=cpp 6115ac_cpp='$CXXCPP $CPPFLAGS' 6116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6119 6120fi 6121 6122 6123ac_ext=f 6124ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6125ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6126ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6127if test -n "$ac_tool_prefix"; then 6128 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6129 do 6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6133$as_echo_n "checking for $ac_word... " >&6; } 6134if test "${ac_cv_prog_F77+set}" = set; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 if test -n "$F77"; then 6138 ac_cv_prog_F77="$F77" # Let the user override the test. 6139else 6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6141for as_dir in $PATH 6142do 6143 IFS=$as_save_IFS 6144 test -z "$as_dir" && as_dir=. 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6147 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151done 6152 done 6153IFS=$as_save_IFS 6154 6155fi 6156fi 6157F77=$ac_cv_prog_F77 6158if test -n "$F77"; then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6160$as_echo "$F77" >&6; } 6161else 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6163$as_echo "no" >&6; } 6164fi 6165 6166 6167 test -n "$F77" && break 6168 done 6169fi 6170if test -z "$F77"; then 6171 ac_ct_F77=$F77 6172 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6173do 6174 # Extract the first word of "$ac_prog", so it can be a program name with args. 6175set dummy $ac_prog; ac_word=$2 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177$as_echo_n "checking for $ac_word... " >&6; } 6178if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 if test -n "$ac_ct_F77"; then 6182 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6183else 6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185for as_dir in $PATH 6186do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6191 ac_cv_prog_ac_ct_F77="$ac_prog" 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195done 6196 done 6197IFS=$as_save_IFS 6198 6199fi 6200fi 6201ac_ct_F77=$ac_cv_prog_ac_ct_F77 6202if test -n "$ac_ct_F77"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6204$as_echo "$ac_ct_F77" >&6; } 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6207$as_echo "no" >&6; } 6208fi 6209 6210 6211 test -n "$ac_ct_F77" && break 6212done 6213 6214 if test "x$ac_ct_F77" = x; then 6215 F77="" 6216 else 6217 case $cross_compiling:$ac_tool_warned in 6218yes:) 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6221ac_tool_warned=yes ;; 6222esac 6223 F77=$ac_ct_F77 6224 fi 6225fi 6226 6227 6228# Provide some information about the compiler. 6229$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6230set X $ac_compile 6231ac_compiler=$2 6232for ac_option in --version -v -V -qversion; do 6233 { { ac_try="$ac_compiler $ac_option >&5" 6234case "(($ac_try" in 6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6236 *) ac_try_echo=$ac_try;; 6237esac 6238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6239$as_echo "$ac_try_echo"; } >&5 6240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6241 ac_status=$? 6242 if test -s conftest.err; then 6243 sed '10a\ 6244... rest of stderr output deleted ... 6245 10q' conftest.err >conftest.er1 6246 cat conftest.er1 >&5 6247 fi 6248 rm -f conftest.er1 conftest.err 6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6250 test $ac_status = 0; } 6251done 6252rm -f a.out 6253 6254# If we don't use `.F' as extension, the preprocessor is not run on the 6255# input file. (Note that this only needs to work for GNU compilers.) 6256ac_save_ext=$ac_ext 6257ac_ext=F 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6259$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6260if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 cat > conftest.$ac_ext <<_ACEOF 6264 program main 6265#ifndef __GNUC__ 6266 choke me 6267#endif 6268 6269 end 6270_ACEOF 6271if ac_fn_f77_try_compile "$LINENO"; then : 6272 ac_compiler_gnu=yes 6273else 6274 ac_compiler_gnu=no 6275fi 6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6277ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6278 6279fi 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6281$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6282ac_ext=$ac_save_ext 6283ac_test_FFLAGS=${FFLAGS+set} 6284ac_save_FFLAGS=$FFLAGS 6285FFLAGS= 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6287$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6288if test "${ac_cv_prog_f77_g+set}" = set; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 FFLAGS=-g 6292cat > conftest.$ac_ext <<_ACEOF 6293 program main 6294 6295 end 6296_ACEOF 6297if ac_fn_f77_try_compile "$LINENO"; then : 6298 ac_cv_prog_f77_g=yes 6299else 6300 ac_cv_prog_f77_g=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303 6304fi 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6306$as_echo "$ac_cv_prog_f77_g" >&6; } 6307if test "$ac_test_FFLAGS" = set; then 6308 FFLAGS=$ac_save_FFLAGS 6309elif test $ac_cv_prog_f77_g = yes; then 6310 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6311 FFLAGS="-g -O2" 6312 else 6313 FFLAGS="-g" 6314 fi 6315else 6316 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6317 FFLAGS="-O2" 6318 else 6319 FFLAGS= 6320 fi 6321fi 6322 6323if test $ac_compiler_gnu = yes; then 6324 G77=yes 6325else 6326 G77= 6327fi 6328ac_ext=c 6329ac_cpp='$CPP $CPPFLAGS' 6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6332ac_compiler_gnu=$ac_cv_c_compiler_gnu 6333 6334 6335 6336# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6337# find the maximum length of command line arguments 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6339$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6340if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 i=0 6344 teststring="ABCD" 6345 6346 case $build_os in 6347 msdosdjgpp*) 6348 # On DJGPP, this test can blow up pretty badly due to problems in libc 6349 # (any single argument exceeding 2000 bytes causes a buffer overrun 6350 # during glob expansion). Even if it were fixed, the result of this 6351 # check would be larger than it should be. 6352 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6353 ;; 6354 6355 gnu*) 6356 # Under GNU Hurd, this test is not required because there is 6357 # no limit to the length of command line arguments. 6358 # Libtool will interpret -1 as no limit whatsoever 6359 lt_cv_sys_max_cmd_len=-1; 6360 ;; 6361 6362 cygwin* | mingw*) 6363 # On Win9x/ME, this test blows up -- it succeeds, but takes 6364 # about 5 minutes as the teststring grows exponentially. 6365 # Worse, since 9x/ME are not pre-emptively multitasking, 6366 # you end up with a "frozen" computer, even though with patience 6367 # the test eventually succeeds (with a max line length of 256k). 6368 # Instead, let's just punt: use the minimum linelength reported by 6369 # all of the supported platforms: 8192 (on NT/2K/XP). 6370 lt_cv_sys_max_cmd_len=8192; 6371 ;; 6372 6373 amigaos*) 6374 # On AmigaOS with pdksh, this test takes hours, literally. 6375 # So we just punt and use a minimum line length of 8192. 6376 lt_cv_sys_max_cmd_len=8192; 6377 ;; 6378 6379 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6380 # This has been around since 386BSD, at least. Likely further. 6381 if test -x /sbin/sysctl; then 6382 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6383 elif test -x /usr/sbin/sysctl; then 6384 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6385 else 6386 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6387 fi 6388 # And add a safety zone 6389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6391 ;; 6392 6393 interix*) 6394 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6395 lt_cv_sys_max_cmd_len=196608 6396 ;; 6397 6398 osf*) 6399 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6400 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6401 # nice to cause kernel panics so lets avoid the loop below. 6402 # First set a reasonable default. 6403 lt_cv_sys_max_cmd_len=16384 6404 # 6405 if test -x /sbin/sysconfig; then 6406 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6407 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6408 esac 6409 fi 6410 ;; 6411 sco3.2v5*) 6412 lt_cv_sys_max_cmd_len=102400 6413 ;; 6414 sysv5* | sco5v6* | sysv4.2uw2*) 6415 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6416 if test -n "$kargmax"; then 6417 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6418 else 6419 lt_cv_sys_max_cmd_len=32768 6420 fi 6421 ;; 6422 *) 6423 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6424 if test -n "$lt_cv_sys_max_cmd_len"; then 6425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6427 else 6428 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6429 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6430 = "XX$teststring") >/dev/null 2>&1 && 6431 new_result=`expr "X$teststring" : ".*" 2>&1` && 6432 lt_cv_sys_max_cmd_len=$new_result && 6433 test $i != 17 # 1/2 MB should be enough 6434 do 6435 i=`expr $i + 1` 6436 teststring=$teststring$teststring 6437 done 6438 teststring= 6439 # Add a significant safety factor because C++ compilers can tack on massive 6440 # amounts of additional arguments before passing them to the linker. 6441 # It appears as though 1/2 is a usable value. 6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6443 fi 6444 ;; 6445 esac 6446 6447fi 6448 6449if test -n $lt_cv_sys_max_cmd_len ; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6451$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6452else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6454$as_echo "none" >&6; } 6455fi 6456 6457 6458 6459 6460 6461# Check for command to grab the raw symbol name followed by C symbol from nm. 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6463$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6464if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 6468# These are sane defaults that work on at least a few old systems. 6469# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6470 6471# Character class describing NM global symbol codes. 6472symcode='[BCDEGRST]' 6473 6474# Regexp to match symbols that can be accessed directly from C. 6475sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6476 6477# Transform an extracted symbol line into a proper C declaration 6478lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6479 6480# Transform an extracted symbol line into symbol name and symbol address 6481lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6482 6483# Define system-specific variables. 6484case $host_os in 6485aix*) 6486 symcode='[BCDT]' 6487 ;; 6488cygwin* | mingw* | pw32*) 6489 symcode='[ABCDGISTW]' 6490 ;; 6491hpux*) # Its linker distinguishes data from code symbols 6492 if test "$host_cpu" = ia64; then 6493 symcode='[ABCDEGRST]' 6494 fi 6495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6496 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6497 ;; 6498linux* | k*bsd*-gnu) 6499 if test "$host_cpu" = ia64; then 6500 symcode='[ABCDGIRSTW]' 6501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6502 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6503 fi 6504 ;; 6505irix* | nonstopux*) 6506 symcode='[BCDEGRST]' 6507 ;; 6508osf*) 6509 symcode='[BCDEGQRST]' 6510 ;; 6511solaris*) 6512 symcode='[BDRT]' 6513 ;; 6514sco3.2v5*) 6515 symcode='[DT]' 6516 ;; 6517sysv4.2uw2*) 6518 symcode='[DT]' 6519 ;; 6520sysv5* | sco5v6* | unixware* | OpenUNIX*) 6521 symcode='[ABDT]' 6522 ;; 6523sysv4) 6524 symcode='[DFNSTU]' 6525 ;; 6526esac 6527 6528# Handle CRLF in mingw tool chain 6529opt_cr= 6530case $build_os in 6531mingw*) 6532 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6533 ;; 6534esac 6535 6536# If we're using GNU nm, then use its standard symbol codes. 6537case `$NM -V 2>&1` in 6538*GNU* | *'with BFD'*) 6539 symcode='[ABCDGIRSTW]' ;; 6540esac 6541 6542# Try without a prefix undercore, then with it. 6543for ac_symprfx in "" "_"; do 6544 6545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6546 symxfrm="\\1 $ac_symprfx\\2 \\2" 6547 6548 # Write the raw and C identifiers. 6549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6550 6551 # Check to see that the pipe works correctly. 6552 pipe_works=no 6553 6554 rm -f conftest* 6555 cat > conftest.$ac_ext <<EOF 6556#ifdef __cplusplus 6557extern "C" { 6558#endif 6559char nm_test_var; 6560void nm_test_func(){} 6561#ifdef __cplusplus 6562} 6563#endif 6564int main(){nm_test_var='a';nm_test_func();return(0);} 6565EOF 6566 6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6568 (eval $ac_compile) 2>&5 6569 ac_status=$? 6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6571 test $ac_status = 0; }; then 6572 # Now try to grab the symbols. 6573 nlist=conftest.nm 6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6576 ac_status=$? 6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6578 test $ac_status = 0; } && test -s "$nlist"; then 6579 # Try sorting and uniquifying the output. 6580 if sort "$nlist" | uniq > "$nlist"T; then 6581 mv -f "$nlist"T "$nlist" 6582 else 6583 rm -f "$nlist"T 6584 fi 6585 6586 # Make sure that we snagged all the symbols we need. 6587 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6588 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6589 cat <<EOF > conftest.$ac_ext 6590#ifdef __cplusplus 6591extern "C" { 6592#endif 6593 6594EOF 6595 # Now generate the symbol file. 6596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6597 6598 cat <<EOF >> conftest.$ac_ext 6599#if defined (__STDC__) && __STDC__ 6600# define lt_ptr_t void * 6601#else 6602# define lt_ptr_t char * 6603# define const 6604#endif 6605 6606/* The mapping between symbol names and symbols. */ 6607const struct { 6608 const char *name; 6609 lt_ptr_t address; 6610} 6611lt_preloaded_symbols[] = 6612{ 6613EOF 6614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6615 cat <<\EOF >> conftest.$ac_ext 6616 {0, (lt_ptr_t) 0} 6617}; 6618 6619#ifdef __cplusplus 6620} 6621#endif 6622EOF 6623 # Now try linking the two files. 6624 mv conftest.$ac_objext conftstm.$ac_objext 6625 lt_save_LIBS="$LIBS" 6626 lt_save_CFLAGS="$CFLAGS" 6627 LIBS="conftstm.$ac_objext" 6628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6630 (eval $ac_link) 2>&5 6631 ac_status=$? 6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6633 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6634 pipe_works=yes 6635 fi 6636 LIBS="$lt_save_LIBS" 6637 CFLAGS="$lt_save_CFLAGS" 6638 else 6639 echo "cannot find nm_test_func in $nlist" >&5 6640 fi 6641 else 6642 echo "cannot find nm_test_var in $nlist" >&5 6643 fi 6644 else 6645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6646 fi 6647 else 6648 echo "$progname: failed program was:" >&5 6649 cat conftest.$ac_ext >&5 6650 fi 6651 rm -rf conftest* conftst* 6652 6653 # Do not use the global_symbol_pipe unless it works. 6654 if test "$pipe_works" = yes; then 6655 break 6656 else 6657 lt_cv_sys_global_symbol_pipe= 6658 fi 6659done 6660 6661fi 6662 6663if test -z "$lt_cv_sys_global_symbol_pipe"; then 6664 lt_cv_sys_global_symbol_to_cdecl= 6665fi 6666if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6668$as_echo "failed" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6671$as_echo "ok" >&6; } 6672fi 6673 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6675$as_echo_n "checking for objdir... " >&6; } 6676if test "${lt_cv_objdir+set}" = set; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 rm -f .libs 2>/dev/null 6680mkdir .libs 2>/dev/null 6681if test -d .libs; then 6682 lt_cv_objdir=.libs 6683else 6684 # MS-DOS does not allow filenames that begin with a dot. 6685 lt_cv_objdir=_libs 6686fi 6687rmdir .libs 2>/dev/null 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6690$as_echo "$lt_cv_objdir" >&6; } 6691objdir=$lt_cv_objdir 6692 6693 6694 6695 6696 6697case $host_os in 6698aix3*) 6699 # AIX sometimes has problems with the GCC collect2 program. For some 6700 # reason, if we set the COLLECT_NAMES environment variable, the problems 6701 # vanish in a puff of smoke. 6702 if test "X${COLLECT_NAMES+set}" != Xset; then 6703 COLLECT_NAMES= 6704 export COLLECT_NAMES 6705 fi 6706 ;; 6707esac 6708 6709# Sed substitution that helps us do robust quoting. It backslashifies 6710# metacharacters that are still active within double-quoted strings. 6711Xsed='sed -e 1s/^X//' 6712sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6713 6714# Same as above, but do not quote variable references. 6715double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6716 6717# Sed substitution to delay expansion of an escaped shell variable in a 6718# double_quote_subst'ed string. 6719delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6720 6721# Sed substitution to avoid accidental globbing in evaled expressions 6722no_glob_subst='s/\*/\\\*/g' 6723 6724# Constants: 6725rm="rm -f" 6726 6727# Global variables: 6728default_ofile=libtool 6729can_build_shared=yes 6730 6731# All known linkers require a `.a' archive for static linking (except MSVC, 6732# which needs '.lib'). 6733libext=a 6734ltmain="$ac_aux_dir/ltmain.sh" 6735ofile="$default_ofile" 6736with_gnu_ld="$lt_cv_prog_gnu_ld" 6737 6738if test -n "$ac_tool_prefix"; then 6739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6740set dummy ${ac_tool_prefix}ar; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if test "${ac_cv_prog_AR+set}" = set; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$AR"; then 6747 ac_cv_prog_AR="$AR" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6756 ac_cv_prog_AR="${ac_tool_prefix}ar" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766AR=$ac_cv_prog_AR 6767if test -n "$AR"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6769$as_echo "$AR" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 6776fi 6777if test -z "$ac_cv_prog_AR"; then 6778 ac_ct_AR=$AR 6779 # Extract the first word of "ar", so it can be a program name with args. 6780set dummy ar; ac_word=$2 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782$as_echo_n "checking for $ac_word... " >&6; } 6783if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 if test -n "$ac_ct_AR"; then 6787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6788else 6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790for as_dir in $PATH 6791do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6796 ac_cv_prog_ac_ct_AR="ar" 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800done 6801 done 6802IFS=$as_save_IFS 6803 6804fi 6805fi 6806ac_ct_AR=$ac_cv_prog_ac_ct_AR 6807if test -n "$ac_ct_AR"; then 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6809$as_echo "$ac_ct_AR" >&6; } 6810else 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812$as_echo "no" >&6; } 6813fi 6814 6815 if test "x$ac_ct_AR" = x; then 6816 AR="false" 6817 else 6818 case $cross_compiling:$ac_tool_warned in 6819yes:) 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6822ac_tool_warned=yes ;; 6823esac 6824 AR=$ac_ct_AR 6825 fi 6826else 6827 AR="$ac_cv_prog_AR" 6828fi 6829 6830if test -n "$ac_tool_prefix"; then 6831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6832set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6834$as_echo_n "checking for $ac_word... " >&6; } 6835if test "${ac_cv_prog_RANLIB+set}" = set; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 if test -n "$RANLIB"; then 6839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6840else 6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6842for as_dir in $PATH 6843do 6844 IFS=$as_save_IFS 6845 test -z "$as_dir" && as_dir=. 6846 for ac_exec_ext in '' $ac_executable_extensions; do 6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6850 break 2 6851 fi 6852done 6853 done 6854IFS=$as_save_IFS 6855 6856fi 6857fi 6858RANLIB=$ac_cv_prog_RANLIB 6859if test -n "$RANLIB"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6861$as_echo "$RANLIB" >&6; } 6862else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864$as_echo "no" >&6; } 6865fi 6866 6867 6868fi 6869if test -z "$ac_cv_prog_RANLIB"; then 6870 ac_ct_RANLIB=$RANLIB 6871 # Extract the first word of "ranlib", so it can be a program name with args. 6872set dummy ranlib; ac_word=$2 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6874$as_echo_n "checking for $ac_word... " >&6; } 6875if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 if test -n "$ac_ct_RANLIB"; then 6879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6880else 6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6882for as_dir in $PATH 6883do 6884 IFS=$as_save_IFS 6885 test -z "$as_dir" && as_dir=. 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6888 ac_cv_prog_ac_ct_RANLIB="ranlib" 6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6890 break 2 6891 fi 6892done 6893 done 6894IFS=$as_save_IFS 6895 6896fi 6897fi 6898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6899if test -n "$ac_ct_RANLIB"; then 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6901$as_echo "$ac_ct_RANLIB" >&6; } 6902else 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6904$as_echo "no" >&6; } 6905fi 6906 6907 if test "x$ac_ct_RANLIB" = x; then 6908 RANLIB=":" 6909 else 6910 case $cross_compiling:$ac_tool_warned in 6911yes:) 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6914ac_tool_warned=yes ;; 6915esac 6916 RANLIB=$ac_ct_RANLIB 6917 fi 6918else 6919 RANLIB="$ac_cv_prog_RANLIB" 6920fi 6921 6922if test -n "$ac_tool_prefix"; then 6923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6924set dummy ${ac_tool_prefix}strip; ac_word=$2 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6926$as_echo_n "checking for $ac_word... " >&6; } 6927if test "${ac_cv_prog_STRIP+set}" = set; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if test -n "$STRIP"; then 6931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6932else 6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934for as_dir in $PATH 6935do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6940 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944done 6945 done 6946IFS=$as_save_IFS 6947 6948fi 6949fi 6950STRIP=$ac_cv_prog_STRIP 6951if test -n "$STRIP"; then 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6953$as_echo "$STRIP" >&6; } 6954else 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6956$as_echo "no" >&6; } 6957fi 6958 6959 6960fi 6961if test -z "$ac_cv_prog_STRIP"; then 6962 ac_ct_STRIP=$STRIP 6963 # Extract the first word of "strip", so it can be a program name with args. 6964set dummy strip; ac_word=$2 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6966$as_echo_n "checking for $ac_word... " >&6; } 6967if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$ac_ct_STRIP"; then 6971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6972else 6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974for as_dir in $PATH 6975do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6980 ac_cv_prog_ac_ct_STRIP="strip" 6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984done 6985 done 6986IFS=$as_save_IFS 6987 6988fi 6989fi 6990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6991if test -n "$ac_ct_STRIP"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6993$as_echo "$ac_ct_STRIP" >&6; } 6994else 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998 6999 if test "x$ac_ct_STRIP" = x; then 7000 STRIP=":" 7001 else 7002 case $cross_compiling:$ac_tool_warned in 7003yes:) 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7006ac_tool_warned=yes ;; 7007esac 7008 STRIP=$ac_ct_STRIP 7009 fi 7010else 7011 STRIP="$ac_cv_prog_STRIP" 7012fi 7013 7014 7015old_CC="$CC" 7016old_CFLAGS="$CFLAGS" 7017 7018# Set sane defaults for various variables 7019test -z "$AR" && AR=ar 7020test -z "$AR_FLAGS" && AR_FLAGS=cru 7021test -z "$AS" && AS=as 7022test -z "$CC" && CC=cc 7023test -z "$LTCC" && LTCC=$CC 7024test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7025test -z "$DLLTOOL" && DLLTOOL=dlltool 7026test -z "$LD" && LD=ld 7027test -z "$LN_S" && LN_S="ln -s" 7028test -z "$MAGIC_CMD" && MAGIC_CMD=file 7029test -z "$NM" && NM=nm 7030test -z "$SED" && SED=sed 7031test -z "$OBJDUMP" && OBJDUMP=objdump 7032test -z "$RANLIB" && RANLIB=: 7033test -z "$STRIP" && STRIP=: 7034test -z "$ac_objext" && ac_objext=o 7035 7036# Determine commands to create old-style static archives. 7037old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7038old_postinstall_cmds='chmod 644 $oldlib' 7039old_postuninstall_cmds= 7040 7041if test -n "$RANLIB"; then 7042 case $host_os in 7043 openbsd*) 7044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7045 ;; 7046 *) 7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7048 ;; 7049 esac 7050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7051fi 7052 7053for cc_temp in $compiler""; do 7054 case $cc_temp in 7055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7057 \-*) ;; 7058 *) break;; 7059 esac 7060done 7061cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7062 7063 7064# Only perform the check for file, if the check method requires it 7065case $deplibs_check_method in 7066file_magic*) 7067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7069$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7070if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 case $MAGIC_CMD in 7074[\\/*] | ?:[\\/]*) 7075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7076 ;; 7077*) 7078 lt_save_MAGIC_CMD="$MAGIC_CMD" 7079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7081 for ac_dir in $ac_dummy; do 7082 IFS="$lt_save_ifs" 7083 test -z "$ac_dir" && ac_dir=. 7084 if test -f $ac_dir/${ac_tool_prefix}file; then 7085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7086 if test -n "$file_magic_test_file"; then 7087 case $deplibs_check_method in 7088 "file_magic "*) 7089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7092 $EGREP "$file_magic_regex" > /dev/null; then 7093 : 7094 else 7095 cat <<EOF 1>&2 7096 7097*** Warning: the command libtool uses to detect shared libraries, 7098*** $file_magic_cmd, produces output that libtool cannot recognize. 7099*** The result is that libtool may fail to recognize shared libraries 7100*** as such. This will affect the creation of libtool libraries that 7101*** depend on shared libraries, but programs linked with such libtool 7102*** libraries will work regardless of this problem. Nevertheless, you 7103*** may want to report the problem to your system manager and/or to 7104*** bug-libtool@gnu.org 7105 7106EOF 7107 fi ;; 7108 esac 7109 fi 7110 break 7111 fi 7112 done 7113 IFS="$lt_save_ifs" 7114 MAGIC_CMD="$lt_save_MAGIC_CMD" 7115 ;; 7116esac 7117fi 7118 7119MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7120if test -n "$MAGIC_CMD"; then 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7122$as_echo "$MAGIC_CMD" >&6; } 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7125$as_echo "no" >&6; } 7126fi 7127 7128if test -z "$lt_cv_path_MAGIC_CMD"; then 7129 if test -n "$ac_tool_prefix"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7131$as_echo_n "checking for file... " >&6; } 7132if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 case $MAGIC_CMD in 7136[\\/*] | ?:[\\/]*) 7137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7138 ;; 7139*) 7140 lt_save_MAGIC_CMD="$MAGIC_CMD" 7141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7143 for ac_dir in $ac_dummy; do 7144 IFS="$lt_save_ifs" 7145 test -z "$ac_dir" && ac_dir=. 7146 if test -f $ac_dir/file; then 7147 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7148 if test -n "$file_magic_test_file"; then 7149 case $deplibs_check_method in 7150 "file_magic "*) 7151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7154 $EGREP "$file_magic_regex" > /dev/null; then 7155 : 7156 else 7157 cat <<EOF 1>&2 7158 7159*** Warning: the command libtool uses to detect shared libraries, 7160*** $file_magic_cmd, produces output that libtool cannot recognize. 7161*** The result is that libtool may fail to recognize shared libraries 7162*** as such. This will affect the creation of libtool libraries that 7163*** depend on shared libraries, but programs linked with such libtool 7164*** libraries will work regardless of this problem. Nevertheless, you 7165*** may want to report the problem to your system manager and/or to 7166*** bug-libtool@gnu.org 7167 7168EOF 7169 fi ;; 7170 esac 7171 fi 7172 break 7173 fi 7174 done 7175 IFS="$lt_save_ifs" 7176 MAGIC_CMD="$lt_save_MAGIC_CMD" 7177 ;; 7178esac 7179fi 7180 7181MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7182if test -n "$MAGIC_CMD"; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7184$as_echo "$MAGIC_CMD" >&6; } 7185else 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 else 7191 MAGIC_CMD=: 7192 fi 7193fi 7194 7195 fi 7196 ;; 7197esac 7198 7199 7200 case $host_os in 7201 rhapsody* | darwin*) 7202 if test -n "$ac_tool_prefix"; then 7203 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7204set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7206$as_echo_n "checking for $ac_word... " >&6; } 7207if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 if test -n "$DSYMUTIL"; then 7211 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7212else 7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7214for as_dir in $PATH 7215do 7216 IFS=$as_save_IFS 7217 test -z "$as_dir" && as_dir=. 7218 for ac_exec_ext in '' $ac_executable_extensions; do 7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7220 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7222 break 2 7223 fi 7224done 7225 done 7226IFS=$as_save_IFS 7227 7228fi 7229fi 7230DSYMUTIL=$ac_cv_prog_DSYMUTIL 7231if test -n "$DSYMUTIL"; then 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7233$as_echo "$DSYMUTIL" >&6; } 7234else 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7236$as_echo "no" >&6; } 7237fi 7238 7239 7240fi 7241if test -z "$ac_cv_prog_DSYMUTIL"; then 7242 ac_ct_DSYMUTIL=$DSYMUTIL 7243 # Extract the first word of "dsymutil", so it can be a program name with args. 7244set dummy dsymutil; ac_word=$2 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7246$as_echo_n "checking for $ac_word... " >&6; } 7247if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 if test -n "$ac_ct_DSYMUTIL"; then 7251 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7252else 7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7254for as_dir in $PATH 7255do 7256 IFS=$as_save_IFS 7257 test -z "$as_dir" && as_dir=. 7258 for ac_exec_ext in '' $ac_executable_extensions; do 7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7260 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7262 break 2 7263 fi 7264done 7265 done 7266IFS=$as_save_IFS 7267 7268fi 7269fi 7270ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7271if test -n "$ac_ct_DSYMUTIL"; then 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7273$as_echo "$ac_ct_DSYMUTIL" >&6; } 7274else 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7276$as_echo "no" >&6; } 7277fi 7278 7279 if test "x$ac_ct_DSYMUTIL" = x; then 7280 DSYMUTIL=":" 7281 else 7282 case $cross_compiling:$ac_tool_warned in 7283yes:) 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7286ac_tool_warned=yes ;; 7287esac 7288 DSYMUTIL=$ac_ct_DSYMUTIL 7289 fi 7290else 7291 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7292fi 7293 7294 if test -n "$ac_tool_prefix"; then 7295 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7296set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298$as_echo_n "checking for $ac_word... " >&6; } 7299if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 if test -n "$NMEDIT"; then 7303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7304else 7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7306for as_dir in $PATH 7307do 7308 IFS=$as_save_IFS 7309 test -z "$as_dir" && as_dir=. 7310 for ac_exec_ext in '' $ac_executable_extensions; do 7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7314 break 2 7315 fi 7316done 7317 done 7318IFS=$as_save_IFS 7319 7320fi 7321fi 7322NMEDIT=$ac_cv_prog_NMEDIT 7323if test -n "$NMEDIT"; then 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7325$as_echo "$NMEDIT" >&6; } 7326else 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7328$as_echo "no" >&6; } 7329fi 7330 7331 7332fi 7333if test -z "$ac_cv_prog_NMEDIT"; then 7334 ac_ct_NMEDIT=$NMEDIT 7335 # Extract the first word of "nmedit", so it can be a program name with args. 7336set dummy nmedit; ac_word=$2 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7338$as_echo_n "checking for $ac_word... " >&6; } 7339if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 if test -n "$ac_ct_NMEDIT"; then 7343 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7344else 7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7346for as_dir in $PATH 7347do 7348 IFS=$as_save_IFS 7349 test -z "$as_dir" && as_dir=. 7350 for ac_exec_ext in '' $ac_executable_extensions; do 7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7352 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7354 break 2 7355 fi 7356done 7357 done 7358IFS=$as_save_IFS 7359 7360fi 7361fi 7362ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7363if test -n "$ac_ct_NMEDIT"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7365$as_echo "$ac_ct_NMEDIT" >&6; } 7366else 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 if test "x$ac_ct_NMEDIT" = x; then 7372 NMEDIT=":" 7373 else 7374 case $cross_compiling:$ac_tool_warned in 7375yes:) 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7378ac_tool_warned=yes ;; 7379esac 7380 NMEDIT=$ac_ct_NMEDIT 7381 fi 7382else 7383 NMEDIT="$ac_cv_prog_NMEDIT" 7384fi 7385 7386 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7388$as_echo_n "checking for -single_module linker flag... " >&6; } 7389if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 lt_cv_apple_cc_single_mod=no 7393 if test -z "${LT_MULTI_MODULE}"; then 7394 # By default we will add the -single_module flag. You can override 7395 # by either setting the environment variable LT_MULTI_MODULE 7396 # non-empty at configure time, or by adding -multi_module to the 7397 # link flags. 7398 echo "int foo(void){return 1;}" > conftest.c 7399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7400 -dynamiclib ${wl}-single_module conftest.c 7401 if test -f libconftest.dylib; then 7402 lt_cv_apple_cc_single_mod=yes 7403 rm -rf libconftest.dylib* 7404 fi 7405 rm conftest.c 7406 fi 7407fi 7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7409$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7411$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7412if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 lt_cv_ld_exported_symbols_list=no 7416 save_LDFLAGS=$LDFLAGS 7417 echo "_main" > conftest.sym 7418 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421 7422int 7423main () 7424{ 7425 7426 ; 7427 return 0; 7428} 7429_ACEOF 7430if ac_fn_c_try_link "$LINENO"; then : 7431 lt_cv_ld_exported_symbols_list=yes 7432else 7433 lt_cv_ld_exported_symbols_list=no 7434fi 7435rm -f core conftest.err conftest.$ac_objext \ 7436 conftest$ac_exeext conftest.$ac_ext 7437 LDFLAGS="$save_LDFLAGS" 7438 7439fi 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7441$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7442 case $host_os in 7443 rhapsody* | darwin1.[0123]) 7444 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7445 darwin1.*) 7446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7447 darwin*) 7448 # if running on 10.5 or later, the deployment target defaults 7449 # to the OS version, if on x86, and 10.4, the deployment 7450 # target defaults to 10.4. Don't you love it? 7451 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7452 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7454 10.[012]*) 7455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7456 10.*) 7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7458 esac 7459 ;; 7460 esac 7461 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7462 _lt_dar_single_mod='$single_module' 7463 fi 7464 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7465 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7466 else 7467 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7468 fi 7469 if test "$DSYMUTIL" != ":"; then 7470 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7471 else 7472 _lt_dsymutil= 7473 fi 7474 ;; 7475 esac 7476 7477 7478enable_dlopen=no 7479enable_win32_dll=yes 7480 7481# Check whether --enable-libtool-lock was given. 7482if test "${enable_libtool_lock+set}" = set; then : 7483 enableval=$enable_libtool_lock; 7484fi 7485 7486test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7487 7488 7489# Check whether --with-pic was given. 7490if test "${with_pic+set}" = set; then : 7491 withval=$with_pic; pic_mode="$withval" 7492else 7493 pic_mode=default 7494fi 7495 7496test -z "$pic_mode" && pic_mode=default 7497 7498# Use C for the default configuration in the libtool script 7499tagname= 7500lt_save_CC="$CC" 7501ac_ext=c 7502ac_cpp='$CPP $CPPFLAGS' 7503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7505ac_compiler_gnu=$ac_cv_c_compiler_gnu 7506 7507 7508# Source file extension for C test sources. 7509ac_ext=c 7510 7511# Object file extension for compiled C test sources. 7512objext=o 7513objext=$objext 7514 7515# Code to be used in simple compile tests 7516lt_simple_compile_test_code="int some_variable = 0;" 7517 7518# Code to be used in simple link tests 7519lt_simple_link_test_code='int main(){return(0);}' 7520 7521 7522# If no C compiler was specified, use CC. 7523LTCC=${LTCC-"$CC"} 7524 7525# If no C compiler flags were specified, use CFLAGS. 7526LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7527 7528# Allow CC to be a program name with arguments. 7529compiler=$CC 7530 7531 7532# save warnings/boilerplate of simple test code 7533ac_outfile=conftest.$ac_objext 7534echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7536_lt_compiler_boilerplate=`cat conftest.err` 7537$rm conftest* 7538 7539ac_outfile=conftest.$ac_objext 7540echo "$lt_simple_link_test_code" >conftest.$ac_ext 7541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7542_lt_linker_boilerplate=`cat conftest.err` 7543$rm -r conftest* 7544 7545 7546 7547lt_prog_compiler_no_builtin_flag= 7548 7549if test "$GCC" = yes; then 7550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7551 7552 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7554$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7555if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 lt_cv_prog_compiler_rtti_exceptions=no 7559 ac_outfile=conftest.$ac_objext 7560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7561 lt_compiler_flag="-fno-rtti -fno-exceptions" 7562 # Insert the option either (1) after the last *FLAGS variable, or 7563 # (2) before a word containing "conftest.", or (3) at the end. 7564 # Note that $ac_compile itself does not contain backslashes and begins 7565 # with a dollar sign (not a hyphen), so the echo should work correctly. 7566 # The option is referenced via a variable to avoid confusing sed. 7567 lt_compile=`echo "$ac_compile" | $SED \ 7568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7570 -e 's:$: $lt_compiler_flag:'` 7571 (eval echo "\"\$as_me:7571: $lt_compile\"" >&5) 7572 (eval "$lt_compile" 2>conftest.err) 7573 ac_status=$? 7574 cat conftest.err >&5 7575 echo "$as_me:7575: \$? = $ac_status" >&5 7576 if (exit $ac_status) && test -s "$ac_outfile"; then 7577 # The compiler can only warn and ignore the option if not recognized 7578 # So say no if there are warnings other than the usual output. 7579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7582 lt_cv_prog_compiler_rtti_exceptions=yes 7583 fi 7584 fi 7585 $rm conftest* 7586 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7589$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7590 7591if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7593else 7594 : 7595fi 7596 7597fi 7598 7599lt_prog_compiler_wl= 7600lt_prog_compiler_pic= 7601lt_prog_compiler_static= 7602 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7604$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7605 7606 if test "$GCC" = yes; then 7607 lt_prog_compiler_wl='-Wl,' 7608 lt_prog_compiler_static='-static' 7609 7610 case $host_os in 7611 aix*) 7612 # All AIX code is PIC. 7613 if test "$host_cpu" = ia64; then 7614 # AIX 5 now supports IA64 processor 7615 lt_prog_compiler_static='-Bstatic' 7616 fi 7617 ;; 7618 7619 amigaos*) 7620 # FIXME: we need at least 68020 code to build shared libraries, but 7621 # adding the `-m68020' flag to GCC prevents building anything better, 7622 # like `-m68040'. 7623 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7624 ;; 7625 7626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7627 # PIC is the default for these OSes. 7628 ;; 7629 7630 mingw* | cygwin* | pw32* | os2*) 7631 # This hack is so that the source file can tell whether it is being 7632 # built for inclusion in a dll (and should export symbols for example). 7633 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7634 # (--disable-auto-import) libraries 7635 lt_prog_compiler_pic='-DDLL_EXPORT' 7636 ;; 7637 7638 darwin* | rhapsody*) 7639 # PIC is the default on this platform 7640 # Common symbols not allowed in MH_DYLIB files 7641 lt_prog_compiler_pic='-fno-common' 7642 ;; 7643 7644 interix[3-9]*) 7645 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7646 # Instead, we relocate shared libraries at runtime. 7647 ;; 7648 7649 msdosdjgpp*) 7650 # Just because we use GCC doesn't mean we suddenly get shared libraries 7651 # on systems that don't support them. 7652 lt_prog_compiler_can_build_shared=no 7653 enable_shared=no 7654 ;; 7655 7656 sysv4*MP*) 7657 if test -d /usr/nec; then 7658 lt_prog_compiler_pic=-Kconform_pic 7659 fi 7660 ;; 7661 7662 hpux*) 7663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7664 # not for PA HP-UX. 7665 case $host_cpu in 7666 hppa*64*|ia64*) 7667 # +Z the default 7668 ;; 7669 *) 7670 lt_prog_compiler_pic='-fPIC' 7671 ;; 7672 esac 7673 ;; 7674 7675 *) 7676 lt_prog_compiler_pic='-fPIC' 7677 ;; 7678 esac 7679 else 7680 # PORTME Check for flag to pass linker flags through the system compiler. 7681 case $host_os in 7682 aix*) 7683 lt_prog_compiler_wl='-Wl,' 7684 if test "$host_cpu" = ia64; then 7685 # AIX 5 now supports IA64 processor 7686 lt_prog_compiler_static='-Bstatic' 7687 else 7688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7689 fi 7690 ;; 7691 darwin*) 7692 # PIC is the default on this platform 7693 # Common symbols not allowed in MH_DYLIB files 7694 case $cc_basename in 7695 xlc*) 7696 lt_prog_compiler_pic='-qnocommon' 7697 lt_prog_compiler_wl='-Wl,' 7698 ;; 7699 esac 7700 ;; 7701 7702 mingw* | cygwin* | pw32* | os2*) 7703 # This hack is so that the source file can tell whether it is being 7704 # built for inclusion in a dll (and should export symbols for example). 7705 lt_prog_compiler_pic='-DDLL_EXPORT' 7706 ;; 7707 7708 hpux9* | hpux10* | hpux11*) 7709 lt_prog_compiler_wl='-Wl,' 7710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7711 # not for PA HP-UX. 7712 case $host_cpu in 7713 hppa*64*|ia64*) 7714 # +Z the default 7715 ;; 7716 *) 7717 lt_prog_compiler_pic='+Z' 7718 ;; 7719 esac 7720 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7721 lt_prog_compiler_static='${wl}-a ${wl}archive' 7722 ;; 7723 7724 irix5* | irix6* | nonstopux*) 7725 lt_prog_compiler_wl='-Wl,' 7726 # PIC (with -KPIC) is the default. 7727 lt_prog_compiler_static='-non_shared' 7728 ;; 7729 7730 newsos6) 7731 lt_prog_compiler_pic='-KPIC' 7732 lt_prog_compiler_static='-Bstatic' 7733 ;; 7734 7735 linux* | k*bsd*-gnu) 7736 case $cc_basename in 7737 icc* | ecc*) 7738 lt_prog_compiler_wl='-Wl,' 7739 lt_prog_compiler_pic='-KPIC' 7740 lt_prog_compiler_static='-static' 7741 ;; 7742 pgcc* | pgf77* | pgf90* | pgf95*) 7743 # Portland Group compilers (*not* the Pentium gcc compiler, 7744 # which looks to be a dead project) 7745 lt_prog_compiler_wl='-Wl,' 7746 lt_prog_compiler_pic='-fpic' 7747 lt_prog_compiler_static='-Bstatic' 7748 ;; 7749 ccc*) 7750 lt_prog_compiler_wl='-Wl,' 7751 # All Alpha code is PIC. 7752 lt_prog_compiler_static='-non_shared' 7753 ;; 7754 *) 7755 case `$CC -V 2>&1 | sed 5q` in 7756 *Sun\ C*) 7757 # Sun C 5.9 7758 lt_prog_compiler_pic='-KPIC' 7759 lt_prog_compiler_static='-Bstatic' 7760 lt_prog_compiler_wl='-Wl,' 7761 ;; 7762 *Sun\ F*) 7763 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7764 lt_prog_compiler_pic='-KPIC' 7765 lt_prog_compiler_static='-Bstatic' 7766 lt_prog_compiler_wl='' 7767 ;; 7768 esac 7769 ;; 7770 esac 7771 ;; 7772 7773 osf3* | osf4* | osf5*) 7774 lt_prog_compiler_wl='-Wl,' 7775 # All OSF/1 code is PIC. 7776 lt_prog_compiler_static='-non_shared' 7777 ;; 7778 7779 rdos*) 7780 lt_prog_compiler_static='-non_shared' 7781 ;; 7782 7783 solaris*) 7784 lt_prog_compiler_pic='-KPIC' 7785 lt_prog_compiler_static='-Bstatic' 7786 case $cc_basename in 7787 f77* | f90* | f95*) 7788 lt_prog_compiler_wl='-Qoption ld ';; 7789 *) 7790 lt_prog_compiler_wl='-Wl,';; 7791 esac 7792 ;; 7793 7794 sunos4*) 7795 lt_prog_compiler_wl='-Qoption ld ' 7796 lt_prog_compiler_pic='-PIC' 7797 lt_prog_compiler_static='-Bstatic' 7798 ;; 7799 7800 sysv4 | sysv4.2uw2* | sysv4.3*) 7801 lt_prog_compiler_wl='-Wl,' 7802 lt_prog_compiler_pic='-KPIC' 7803 lt_prog_compiler_static='-Bstatic' 7804 ;; 7805 7806 sysv4*MP*) 7807 if test -d /usr/nec ;then 7808 lt_prog_compiler_pic='-Kconform_pic' 7809 lt_prog_compiler_static='-Bstatic' 7810 fi 7811 ;; 7812 7813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 unicos*) 7820 lt_prog_compiler_wl='-Wl,' 7821 lt_prog_compiler_can_build_shared=no 7822 ;; 7823 7824 uts4*) 7825 lt_prog_compiler_pic='-pic' 7826 lt_prog_compiler_static='-Bstatic' 7827 ;; 7828 7829 *) 7830 lt_prog_compiler_can_build_shared=no 7831 ;; 7832 esac 7833 fi 7834 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7836$as_echo "$lt_prog_compiler_pic" >&6; } 7837 7838# 7839# Check to make sure the PIC flag actually works. 7840# 7841if test -n "$lt_prog_compiler_pic"; then 7842 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7845if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 lt_cv_prog_compiler_pic_works=no 7849 ac_outfile=conftest.$ac_objext 7850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7851 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7852 # Insert the option either (1) after the last *FLAGS variable, or 7853 # (2) before a word containing "conftest.", or (3) at the end. 7854 # Note that $ac_compile itself does not contain backslashes and begins 7855 # with a dollar sign (not a hyphen), so the echo should work correctly. 7856 # The option is referenced via a variable to avoid confusing sed. 7857 lt_compile=`echo "$ac_compile" | $SED \ 7858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7860 -e 's:$: $lt_compiler_flag:'` 7861 (eval echo "\"\$as_me:7861: $lt_compile\"" >&5) 7862 (eval "$lt_compile" 2>conftest.err) 7863 ac_status=$? 7864 cat conftest.err >&5 7865 echo "$as_me:7865: \$? = $ac_status" >&5 7866 if (exit $ac_status) && test -s "$ac_outfile"; then 7867 # The compiler can only warn and ignore the option if not recognized 7868 # So say no if there are warnings other than the usual output. 7869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7872 lt_cv_prog_compiler_pic_works=yes 7873 fi 7874 fi 7875 $rm conftest* 7876 7877fi 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7879$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7880 7881if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7882 case $lt_prog_compiler_pic in 7883 "" | " "*) ;; 7884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7885 esac 7886else 7887 lt_prog_compiler_pic= 7888 lt_prog_compiler_can_build_shared=no 7889fi 7890 7891fi 7892case $host_os in 7893 # For platforms which do not support PIC, -DPIC is meaningless: 7894 *djgpp*) 7895 lt_prog_compiler_pic= 7896 ;; 7897 *) 7898 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7899 ;; 7900esac 7901 7902# 7903# Check to make sure the static flag actually works. 7904# 7905wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7907$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7908if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 lt_cv_prog_compiler_static_works=no 7912 save_LDFLAGS="$LDFLAGS" 7913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7914 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7916 # The linker can only warn and ignore the option if not recognized 7917 # So say no if there are warnings 7918 if test -s conftest.err; then 7919 # Append any errors to the config.log. 7920 cat conftest.err 1>&5 7921 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7923 if diff conftest.exp conftest.er2 >/dev/null; then 7924 lt_cv_prog_compiler_static_works=yes 7925 fi 7926 else 7927 lt_cv_prog_compiler_static_works=yes 7928 fi 7929 fi 7930 $rm -r conftest* 7931 LDFLAGS="$save_LDFLAGS" 7932 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7935$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7936 7937if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7938 : 7939else 7940 lt_prog_compiler_static= 7941fi 7942 7943 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7946if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 lt_cv_prog_compiler_c_o=no 7950 $rm -r conftest 2>/dev/null 7951 mkdir conftest 7952 cd conftest 7953 mkdir out 7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7955 7956 lt_compiler_flag="-o out/conftest2.$ac_objext" 7957 # Insert the option either (1) after the last *FLAGS variable, or 7958 # (2) before a word containing "conftest.", or (3) at the end. 7959 # Note that $ac_compile itself does not contain backslashes and begins 7960 # with a dollar sign (not a hyphen), so the echo should work correctly. 7961 lt_compile=`echo "$ac_compile" | $SED \ 7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7964 -e 's:$: $lt_compiler_flag:'` 7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5) 7966 (eval "$lt_compile" 2>out/conftest.err) 7967 ac_status=$? 7968 cat out/conftest.err >&5 7969 echo "$as_me:7969: \$? = $ac_status" >&5 7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7971 then 7972 # The compiler can only warn and ignore the option if not recognized 7973 # So say no if there are warnings 7974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7977 lt_cv_prog_compiler_c_o=yes 7978 fi 7979 fi 7980 chmod u+w . 2>&5 7981 $rm conftest* 7982 # SGI C++ compiler will create directory out/ii_files/ for 7983 # template instantiation 7984 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7985 $rm out/* && rmdir out 7986 cd .. 7987 rmdir conftest 7988 $rm conftest* 7989 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7992$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7993 7994 7995hard_links="nottested" 7996if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7997 # do not overwrite the value of need_locks provided by the user 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7999$as_echo_n "checking if we can lock with hard links... " >&6; } 8000 hard_links=yes 8001 $rm conftest* 8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8003 touch conftest.a 8004 ln conftest.a conftest.b 2>&5 || hard_links=no 8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8007$as_echo "$hard_links" >&6; } 8008 if test "$hard_links" = no; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8010$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8011 need_locks=warn 8012 fi 8013else 8014 need_locks=no 8015fi 8016 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8018$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8019 8020 runpath_var= 8021 allow_undefined_flag= 8022 enable_shared_with_static_runtimes=no 8023 archive_cmds= 8024 archive_expsym_cmds= 8025 old_archive_From_new_cmds= 8026 old_archive_from_expsyms_cmds= 8027 export_dynamic_flag_spec= 8028 whole_archive_flag_spec= 8029 thread_safe_flag_spec= 8030 hardcode_libdir_flag_spec= 8031 hardcode_libdir_flag_spec_ld= 8032 hardcode_libdir_separator= 8033 hardcode_direct=no 8034 hardcode_minus_L=no 8035 hardcode_shlibpath_var=unsupported 8036 link_all_deplibs=unknown 8037 hardcode_automatic=no 8038 module_cmds= 8039 module_expsym_cmds= 8040 always_export_symbols=no 8041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8042 # include_expsyms should be a list of space-separated symbols to be *always* 8043 # included in the symbol list 8044 include_expsyms= 8045 # exclude_expsyms can be an extended regexp of symbols to exclude 8046 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8048 # as well as any symbol that contains `d'. 8049 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8051 # platforms (ab)use it in PIC code, but their linkers get confused if 8052 # the symbol is explicitly referenced. Since portable code cannot 8053 # rely on this symbol name, it's probably fine to never include it in 8054 # preloaded symbol tables. 8055 # Exclude shared library initialization/finalization symbols. 8056 extract_expsyms_cmds= 8057 # Just being paranoid about ensuring that cc_basename is set. 8058 for cc_temp in $compiler""; do 8059 case $cc_temp in 8060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8062 \-*) ;; 8063 *) break;; 8064 esac 8065done 8066cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8067 8068 case $host_os in 8069 cygwin* | mingw* | pw32*) 8070 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8071 # When not using gcc, we currently assume that we are using 8072 # Microsoft Visual C++. 8073 if test "$GCC" != yes; then 8074 with_gnu_ld=no 8075 fi 8076 ;; 8077 interix*) 8078 # we just hope/assume this is gcc and not c89 (= MSVC++) 8079 with_gnu_ld=yes 8080 ;; 8081 openbsd*) 8082 with_gnu_ld=no 8083 ;; 8084 esac 8085 8086 ld_shlibs=yes 8087 if test "$with_gnu_ld" = yes; then 8088 # If archive_cmds runs LD, not CC, wlarc should be empty 8089 wlarc='${wl}' 8090 8091 # Set some defaults for GNU ld with shared library support. These 8092 # are reset later if shared libraries are not supported. Putting them 8093 # here allows them to be overridden if necessary. 8094 runpath_var=LD_RUN_PATH 8095 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8096 export_dynamic_flag_spec='${wl}--export-dynamic' 8097 # ancient GNU ld didn't support --whole-archive et. al. 8098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8100 else 8101 whole_archive_flag_spec= 8102 fi 8103 supports_anon_versioning=no 8104 case `$LD -v 2>/dev/null` in 8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8108 *\ 2.11.*) ;; # other 2.11 versions 8109 *) supports_anon_versioning=yes ;; 8110 esac 8111 8112 # See if GNU ld supports shared libraries. 8113 case $host_os in 8114 aix[3-9]*) 8115 # On AIX/PPC, the GNU linker is very broken 8116 if test "$host_cpu" != ia64; then 8117 ld_shlibs=no 8118 cat <<EOF 1>&2 8119 8120*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8121*** to be unable to reliably create shared libraries on AIX. 8122*** Therefore, libtool is disabling shared libraries support. If you 8123*** really care for shared libraries, you may want to modify your PATH 8124*** so that a non-GNU linker is found, and then restart. 8125 8126EOF 8127 fi 8128 ;; 8129 8130 amigaos*) 8131 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)' 8132 hardcode_libdir_flag_spec='-L$libdir' 8133 hardcode_minus_L=yes 8134 8135 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8136 # that the semantics of dynamic libraries on AmigaOS, at least up 8137 # to version 4, is to share data among multiple programs linked 8138 # with the same dynamic library. Since this doesn't match the 8139 # behavior of shared libraries on other platforms, we can't use 8140 # them. 8141 ld_shlibs=no 8142 ;; 8143 8144 beos*) 8145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8146 allow_undefined_flag=unsupported 8147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8148 # support --undefined. This deserves some investigation. FIXME 8149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8150 else 8151 ld_shlibs=no 8152 fi 8153 ;; 8154 8155 cygwin* | mingw* | pw32*) 8156 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8157 # as there is no search path for DLLs. 8158 hardcode_libdir_flag_spec='-L$libdir' 8159 allow_undefined_flag=unsupported 8160 always_export_symbols=no 8161 enable_shared_with_static_runtimes=yes 8162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8163 8164 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8166 # If the export-symbols file already is a .def file (1st line 8167 # is EXPORTS), use it as is; otherwise, prepend... 8168 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8169 cp $export_symbols $output_objdir/$soname.def; 8170 else 8171 echo EXPORTS > $output_objdir/$soname.def; 8172 cat $export_symbols >> $output_objdir/$soname.def; 8173 fi~ 8174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8175 else 8176 ld_shlibs=no 8177 fi 8178 ;; 8179 8180 interix[3-9]*) 8181 hardcode_direct=no 8182 hardcode_shlibpath_var=no 8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8184 export_dynamic_flag_spec='${wl}-E' 8185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8186 # Instead, shared libraries are loaded at an image base (0x10000000 by 8187 # default) and relocated if they conflict, which is a slow very memory 8188 # consuming and fragmenting process. To avoid this, we pick a random, 8189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8190 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8192 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' 8193 ;; 8194 8195 gnu* | linux* | k*bsd*-gnu) 8196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8197 tmp_addflag= 8198 case $cc_basename,$host_cpu in 8199 pgcc*) # Portland Group C compiler 8200 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8201 tmp_addflag=' $pic_flag' 8202 ;; 8203 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8204 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8205 tmp_addflag=' $pic_flag -Mnomain' ;; 8206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8207 tmp_addflag=' -i_dynamic' ;; 8208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8209 tmp_addflag=' -i_dynamic -nofor_main' ;; 8210 ifc* | ifort*) # Intel Fortran compiler 8211 tmp_addflag=' -nofor_main' ;; 8212 esac 8213 case `$CC -V 2>&1 | sed 5q` in 8214 *Sun\ C*) # Sun C 5.9 8215 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8216 tmp_sharedflag='-G' ;; 8217 *Sun\ F*) # Sun Fortran 8.3 8218 tmp_sharedflag='-G' ;; 8219 *) 8220 tmp_sharedflag='-shared' ;; 8221 esac 8222 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8223 8224 if test $supports_anon_versioning = yes; then 8225 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8227 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8228 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8229 fi 8230 else 8231 ld_shlibs=no 8232 fi 8233 ;; 8234 8235 netbsd*) 8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8237 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8238 wlarc= 8239 else 8240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8242 fi 8243 ;; 8244 8245 solaris*) 8246 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8247 ld_shlibs=no 8248 cat <<EOF 1>&2 8249 8250*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8251*** create shared libraries on Solaris systems. Therefore, libtool 8252*** is disabling shared libraries support. We urge you to upgrade GNU 8253*** binutils to release 2.9.1 or newer. Another option is to modify 8254*** your PATH or compiler configuration so that the native linker is 8255*** used, and then restart. 8256 8257EOF 8258 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8261 else 8262 ld_shlibs=no 8263 fi 8264 ;; 8265 8266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8267 case `$LD -v 2>&1` in 8268 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8269 ld_shlibs=no 8270 cat <<_LT_EOF 1>&2 8271 8272*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8273*** reliably create shared libraries on SCO systems. Therefore, libtool 8274*** is disabling shared libraries support. We urge you to upgrade GNU 8275*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8276*** your PATH or compiler configuration so that the native linker is 8277*** used, and then restart. 8278 8279_LT_EOF 8280 ;; 8281 *) 8282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8283 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8286 else 8287 ld_shlibs=no 8288 fi 8289 ;; 8290 esac 8291 ;; 8292 8293 sunos4*) 8294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8295 wlarc= 8296 hardcode_direct=yes 8297 hardcode_shlibpath_var=no 8298 ;; 8299 8300 *) 8301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8304 else 8305 ld_shlibs=no 8306 fi 8307 ;; 8308 esac 8309 8310 if test "$ld_shlibs" = no; then 8311 runpath_var= 8312 hardcode_libdir_flag_spec= 8313 export_dynamic_flag_spec= 8314 whole_archive_flag_spec= 8315 fi 8316 else 8317 # PORTME fill in a description of your system's linker (not GNU ld) 8318 case $host_os in 8319 aix3*) 8320 allow_undefined_flag=unsupported 8321 always_export_symbols=yes 8322 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' 8323 # Note: this linker hardcodes the directories in LIBPATH if there 8324 # are no directories specified by -L. 8325 hardcode_minus_L=yes 8326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8327 # Neither direct hardcoding nor static linking is supported with a 8328 # broken collect2. 8329 hardcode_direct=unsupported 8330 fi 8331 ;; 8332 8333 aix[4-9]*) 8334 if test "$host_cpu" = ia64; then 8335 # On IA64, the linker does run time linking by default, so we don't 8336 # have to do anything special. 8337 aix_use_runtimelinking=no 8338 exp_sym_flag='-Bexport' 8339 no_entry_flag="" 8340 else 8341 # If we're using GNU nm, then we don't want the "-C" option. 8342 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8344 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8345 else 8346 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8347 fi 8348 aix_use_runtimelinking=no 8349 8350 # Test if we are trying to use run time linking or normal 8351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8352 # need to do runtime linking. 8353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8354 for ld_flag in $LDFLAGS; do 8355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8356 aix_use_runtimelinking=yes 8357 break 8358 fi 8359 done 8360 ;; 8361 esac 8362 8363 exp_sym_flag='-bexport' 8364 no_entry_flag='-bnoentry' 8365 fi 8366 8367 # When large executables or shared objects are built, AIX ld can 8368 # have problems creating the table of contents. If linking a library 8369 # or program results in "error TOC overflow" add -mminimal-toc to 8370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8372 8373 archive_cmds='' 8374 hardcode_direct=yes 8375 hardcode_libdir_separator=':' 8376 link_all_deplibs=yes 8377 8378 if test "$GCC" = yes; then 8379 case $host_os in aix4.[012]|aix4.[012].*) 8380 # We only want to do this on AIX 4.2 and lower, the check 8381 # below for broken collect2 doesn't work under 4.3+ 8382 collect2name=`${CC} -print-prog-name=collect2` 8383 if test -f "$collect2name" && \ 8384 strings "$collect2name" | grep resolve_lib_name >/dev/null 8385 then 8386 # We have reworked collect2 8387 : 8388 else 8389 # We have old collect2 8390 hardcode_direct=unsupported 8391 # It fails to find uninstalled libraries when the uninstalled 8392 # path is not listed in the libpath. Setting hardcode_minus_L 8393 # to unsupported forces relinking 8394 hardcode_minus_L=yes 8395 hardcode_libdir_flag_spec='-L$libdir' 8396 hardcode_libdir_separator= 8397 fi 8398 ;; 8399 esac 8400 shared_flag='-shared' 8401 if test "$aix_use_runtimelinking" = yes; then 8402 shared_flag="$shared_flag "'${wl}-G' 8403 fi 8404 else 8405 # not using gcc 8406 if test "$host_cpu" = ia64; then 8407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8408 # chokes on -Wl,-G. The following line is correct: 8409 shared_flag='-G' 8410 else 8411 if test "$aix_use_runtimelinking" = yes; then 8412 shared_flag='${wl}-G' 8413 else 8414 shared_flag='${wl}-bM:SRE' 8415 fi 8416 fi 8417 fi 8418 8419 # It seems that -bexpall does not export symbols beginning with 8420 # underscore (_), so it is better to generate a list of symbols to export. 8421 always_export_symbols=yes 8422 if test "$aix_use_runtimelinking" = yes; then 8423 # Warning - without using the other runtime loading flags (-brtl), 8424 # -berok will link without error, but may produce a broken library. 8425 allow_undefined_flag='-berok' 8426 # Determine the default libpath from the value encoded in an empty executable. 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428/* end confdefs.h. */ 8429 8430int 8431main () 8432{ 8433 8434 ; 8435 return 0; 8436} 8437_ACEOF 8438if ac_fn_c_try_link "$LINENO"; then : 8439 8440lt_aix_libpath_sed=' 8441 /Import File Strings/,/^$/ { 8442 /^0/ { 8443 s/^0 *\(.*\)$/\1/ 8444 p 8445 } 8446 }' 8447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8448# Check for a 64-bit object if we didn't find anything. 8449if test -z "$aix_libpath"; then 8450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8451fi 8452fi 8453rm -f core conftest.err conftest.$ac_objext \ 8454 conftest$ac_exeext conftest.$ac_ext 8455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8456 8457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8458 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8459 else 8460 if test "$host_cpu" = ia64; then 8461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8462 allow_undefined_flag="-z nodefs" 8463 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" 8464 else 8465 # Determine the default libpath from the value encoded in an empty executable. 8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468 8469int 8470main () 8471{ 8472 8473 ; 8474 return 0; 8475} 8476_ACEOF 8477if ac_fn_c_try_link "$LINENO"; then : 8478 8479lt_aix_libpath_sed=' 8480 /Import File Strings/,/^$/ { 8481 /^0/ { 8482 s/^0 *\(.*\)$/\1/ 8483 p 8484 } 8485 }' 8486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8487# Check for a 64-bit object if we didn't find anything. 8488if test -z "$aix_libpath"; then 8489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8490fi 8491fi 8492rm -f core conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8495 8496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8497 # Warning - without using the other run time loading flags, 8498 # -berok will link without error, but may produce a broken library. 8499 no_undefined_flag=' ${wl}-bernotok' 8500 allow_undefined_flag=' ${wl}-berok' 8501 # Exported symbols can be pulled into shared objects from archives 8502 whole_archive_flag_spec='$convenience' 8503 archive_cmds_need_lc=yes 8504 # This is similar to how AIX traditionally builds its shared libraries. 8505 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8506 fi 8507 fi 8508 ;; 8509 8510 amigaos*) 8511 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)' 8512 hardcode_libdir_flag_spec='-L$libdir' 8513 hardcode_minus_L=yes 8514 # see comment about different semantics on the GNU ld section 8515 ld_shlibs=no 8516 ;; 8517 8518 bsdi[45]*) 8519 export_dynamic_flag_spec=-rdynamic 8520 ;; 8521 8522 cygwin* | mingw* | pw32*) 8523 # When not using gcc, we currently assume that we are using 8524 # Microsoft Visual C++. 8525 # hardcode_libdir_flag_spec is actually meaningless, as there is 8526 # no search path for DLLs. 8527 hardcode_libdir_flag_spec=' ' 8528 allow_undefined_flag=unsupported 8529 # Tell ltmain to make .lib files, not .a files. 8530 libext=lib 8531 # Tell ltmain to make .dll files, not .so files. 8532 shrext_cmds=".dll" 8533 # FIXME: Setting linknames here is a bad hack. 8534 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8535 # The linker will automatically build a .lib file if we build a DLL. 8536 old_archive_From_new_cmds='true' 8537 # FIXME: Should let the user specify the lib program. 8538 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8539 fix_srcfile_path='`cygpath -w "$srcfile"`' 8540 enable_shared_with_static_runtimes=yes 8541 ;; 8542 8543 darwin* | rhapsody*) 8544 case $host_os in 8545 rhapsody* | darwin1.[012]) 8546 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8547 ;; 8548 *) # Darwin 1.3 on 8549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8550 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8551 else 8552 case ${MACOSX_DEPLOYMENT_TARGET} in 8553 10.[012]) 8554 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8555 ;; 8556 10.*) 8557 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8558 ;; 8559 esac 8560 fi 8561 ;; 8562 esac 8563 archive_cmds_need_lc=no 8564 hardcode_direct=no 8565 hardcode_automatic=yes 8566 hardcode_shlibpath_var=unsupported 8567 whole_archive_flag_spec='' 8568 link_all_deplibs=yes 8569 if test "$GCC" = yes ; then 8570 output_verbose_link_cmd='echo' 8571 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8572 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8573 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}" 8574 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}" 8575 else 8576 case $cc_basename in 8577 xlc*) 8578 output_verbose_link_cmd='echo' 8579 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8580 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8582 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8583 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8584 ;; 8585 *) 8586 ld_shlibs=no 8587 ;; 8588 esac 8589 fi 8590 ;; 8591 8592 dgux*) 8593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8594 hardcode_libdir_flag_spec='-L$libdir' 8595 hardcode_shlibpath_var=no 8596 ;; 8597 8598 freebsd1*) 8599 ld_shlibs=no 8600 ;; 8601 8602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8603 # support. Future versions do this automatically, but an explicit c++rt0.o 8604 # does not break anything, and helps significantly (at the cost of a little 8605 # extra space). 8606 freebsd2.2*) 8607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8608 hardcode_libdir_flag_spec='-R$libdir' 8609 hardcode_direct=yes 8610 hardcode_shlibpath_var=no 8611 ;; 8612 8613 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8614 freebsd2*) 8615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8616 hardcode_direct=yes 8617 hardcode_minus_L=yes 8618 hardcode_shlibpath_var=no 8619 ;; 8620 8621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8622 freebsd* | dragonfly*) 8623 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8624 hardcode_libdir_flag_spec='-R$libdir' 8625 hardcode_direct=yes 8626 hardcode_shlibpath_var=no 8627 ;; 8628 8629 hpux9*) 8630 if test "$GCC" = yes; then 8631 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8632 else 8633 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8634 fi 8635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8636 hardcode_libdir_separator=: 8637 hardcode_direct=yes 8638 8639 # hardcode_minus_L: Not really in the search PATH, 8640 # but as the default location of the library. 8641 hardcode_minus_L=yes 8642 export_dynamic_flag_spec='${wl}-E' 8643 ;; 8644 8645 hpux10*) 8646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8647 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8648 else 8649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8650 fi 8651 if test "$with_gnu_ld" = no; then 8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8653 hardcode_libdir_separator=: 8654 8655 hardcode_direct=yes 8656 export_dynamic_flag_spec='${wl}-E' 8657 8658 # hardcode_minus_L: Not really in the search PATH, 8659 # but as the default location of the library. 8660 hardcode_minus_L=yes 8661 fi 8662 ;; 8663 8664 hpux11*) 8665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8666 case $host_cpu in 8667 hppa*64*) 8668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8669 ;; 8670 ia64*) 8671 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8672 ;; 8673 *) 8674 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8675 ;; 8676 esac 8677 else 8678 case $host_cpu in 8679 hppa*64*) 8680 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8681 ;; 8682 ia64*) 8683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8684 ;; 8685 *) 8686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8687 ;; 8688 esac 8689 fi 8690 if test "$with_gnu_ld" = no; then 8691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8692 hardcode_libdir_separator=: 8693 8694 case $host_cpu in 8695 hppa*64*|ia64*) 8696 hardcode_libdir_flag_spec_ld='+b $libdir' 8697 hardcode_direct=no 8698 hardcode_shlibpath_var=no 8699 ;; 8700 *) 8701 hardcode_direct=yes 8702 export_dynamic_flag_spec='${wl}-E' 8703 8704 # hardcode_minus_L: Not really in the search PATH, 8705 # but as the default location of the library. 8706 hardcode_minus_L=yes 8707 ;; 8708 esac 8709 fi 8710 ;; 8711 8712 irix5* | irix6* | nonstopux*) 8713 if test "$GCC" = yes; then 8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8715 else 8716 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8717 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8718 fi 8719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8720 hardcode_libdir_separator=: 8721 link_all_deplibs=yes 8722 ;; 8723 8724 netbsd*) 8725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8727 else 8728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8729 fi 8730 hardcode_libdir_flag_spec='-R$libdir' 8731 hardcode_direct=yes 8732 hardcode_shlibpath_var=no 8733 ;; 8734 8735 newsos6) 8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8737 hardcode_direct=yes 8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8739 hardcode_libdir_separator=: 8740 hardcode_shlibpath_var=no 8741 ;; 8742 8743 openbsd*) 8744 if test -f /usr/libexec/ld.so; then 8745 hardcode_direct=yes 8746 hardcode_shlibpath_var=no 8747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8751 export_dynamic_flag_spec='${wl}-E' 8752 else 8753 case $host_os in 8754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8756 hardcode_libdir_flag_spec='-R$libdir' 8757 ;; 8758 *) 8759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8761 ;; 8762 esac 8763 fi 8764 else 8765 ld_shlibs=no 8766 fi 8767 ;; 8768 8769 os2*) 8770 hardcode_libdir_flag_spec='-L$libdir' 8771 hardcode_minus_L=yes 8772 allow_undefined_flag=unsupported 8773 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 8774 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8775 ;; 8776 8777 osf3*) 8778 if test "$GCC" = yes; then 8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8780 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8781 else 8782 allow_undefined_flag=' -expect_unresolved \*' 8783 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8784 fi 8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8786 hardcode_libdir_separator=: 8787 ;; 8788 8789 osf4* | osf5*) # as osf3* with the addition of -msym flag 8790 if test "$GCC" = yes; then 8791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8792 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8794 else 8795 allow_undefined_flag=' -expect_unresolved \*' 8796 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8797 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8798 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8799 8800 # Both c and cxx compiler support -rpath directly 8801 hardcode_libdir_flag_spec='-rpath $libdir' 8802 fi 8803 hardcode_libdir_separator=: 8804 ;; 8805 8806 solaris*) 8807 no_undefined_flag=' -z text' 8808 if test "$GCC" = yes; then 8809 wlarc='${wl}' 8810 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8811 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8813 else 8814 wlarc='' 8815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8818 fi 8819 hardcode_libdir_flag_spec='-R$libdir' 8820 hardcode_shlibpath_var=no 8821 case $host_os in 8822 solaris2.[0-5] | solaris2.[0-5].*) ;; 8823 *) 8824 # The compiler driver will combine and reorder linker options, 8825 # but understands `-z linker_flag'. GCC discards it without `$wl', 8826 # but is careful enough not to reorder. 8827 # Supported since Solaris 2.6 (maybe 2.5.1?) 8828 if test "$GCC" = yes; then 8829 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8830 else 8831 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8832 fi 8833 ;; 8834 esac 8835 link_all_deplibs=yes 8836 ;; 8837 8838 sunos4*) 8839 if test "x$host_vendor" = xsequent; then 8840 # Use $CC to link under sequent, because it throws in some extra .o 8841 # files that make .init and .fini sections work. 8842 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8843 else 8844 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8845 fi 8846 hardcode_libdir_flag_spec='-L$libdir' 8847 hardcode_direct=yes 8848 hardcode_minus_L=yes 8849 hardcode_shlibpath_var=no 8850 ;; 8851 8852 sysv4) 8853 case $host_vendor in 8854 sni) 8855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8856 hardcode_direct=yes # is this really true??? 8857 ;; 8858 siemens) 8859 ## LD is ld it makes a PLAMLIB 8860 ## CC just makes a GrossModule. 8861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8862 reload_cmds='$CC -r -o $output$reload_objs' 8863 hardcode_direct=no 8864 ;; 8865 motorola) 8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8867 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8868 ;; 8869 esac 8870 runpath_var='LD_RUN_PATH' 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 sysv4.3*) 8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8876 hardcode_shlibpath_var=no 8877 export_dynamic_flag_spec='-Bexport' 8878 ;; 8879 8880 sysv4*MP*) 8881 if test -d /usr/nec; then 8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8883 hardcode_shlibpath_var=no 8884 runpath_var=LD_RUN_PATH 8885 hardcode_runpath_var=yes 8886 ld_shlibs=yes 8887 fi 8888 ;; 8889 8890 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8891 no_undefined_flag='${wl}-z,text' 8892 archive_cmds_need_lc=no 8893 hardcode_shlibpath_var=no 8894 runpath_var='LD_RUN_PATH' 8895 8896 if test "$GCC" = yes; then 8897 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8898 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8899 else 8900 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8901 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8902 fi 8903 ;; 8904 8905 sysv5* | sco3.2v5* | sco5v6*) 8906 # Note: We can NOT use -z defs as we might desire, because we do not 8907 # link with -lc, and that would cause any symbols used from libc to 8908 # always be unresolved, which means just about no library would 8909 # ever link correctly. If we're not using GNU ld we use -z text 8910 # though, which does catch some bad symbols but isn't as heavy-handed 8911 # as -z defs. 8912 no_undefined_flag='${wl}-z,text' 8913 allow_undefined_flag='${wl}-z,nodefs' 8914 archive_cmds_need_lc=no 8915 hardcode_shlibpath_var=no 8916 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8917 hardcode_libdir_separator=':' 8918 link_all_deplibs=yes 8919 export_dynamic_flag_spec='${wl}-Bexport' 8920 runpath_var='LD_RUN_PATH' 8921 8922 if test "$GCC" = yes; then 8923 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8925 else 8926 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8928 fi 8929 ;; 8930 8931 uts4*) 8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8933 hardcode_libdir_flag_spec='-L$libdir' 8934 hardcode_shlibpath_var=no 8935 ;; 8936 8937 *) 8938 ld_shlibs=no 8939 ;; 8940 esac 8941 fi 8942 8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8944$as_echo "$ld_shlibs" >&6; } 8945test "$ld_shlibs" = no && can_build_shared=no 8946 8947# 8948# Do we need to explicitly link libc? 8949# 8950case "x$archive_cmds_need_lc" in 8951x|xyes) 8952 # Assume -lc should be added 8953 archive_cmds_need_lc=yes 8954 8955 if test "$enable_shared" = yes && test "$GCC" = yes; then 8956 case $archive_cmds in 8957 *'~'*) 8958 # FIXME: we may have to deal with multi-command sequences. 8959 ;; 8960 '$CC '*) 8961 # Test whether the compiler implicitly links with -lc since on some 8962 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8963 # to ld, don't add -lc before -lgcc. 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8965$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8966 $rm conftest* 8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8968 8969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8970 (eval $ac_compile) 2>&5 8971 ac_status=$? 8972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8973 test $ac_status = 0; } 2>conftest.err; then 8974 soname=conftest 8975 lib=conftest 8976 libobjs=conftest.$ac_objext 8977 deplibs= 8978 wl=$lt_prog_compiler_wl 8979 pic_flag=$lt_prog_compiler_pic 8980 compiler_flags=-v 8981 linker_flags=-v 8982 verstring= 8983 output_objdir=. 8984 libname=conftest 8985 lt_save_allow_undefined_flag=$allow_undefined_flag 8986 allow_undefined_flag= 8987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8988 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8989 ac_status=$? 8990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8991 test $ac_status = 0; } 8992 then 8993 archive_cmds_need_lc=no 8994 else 8995 archive_cmds_need_lc=yes 8996 fi 8997 allow_undefined_flag=$lt_save_allow_undefined_flag 8998 else 8999 cat conftest.err 1>&5 9000 fi 9001 $rm conftest* 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9003$as_echo "$archive_cmds_need_lc" >&6; } 9004 ;; 9005 esac 9006 fi 9007 ;; 9008esac 9009 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9011$as_echo_n "checking dynamic linker characteristics... " >&6; } 9012library_names_spec= 9013libname_spec='lib$name' 9014soname_spec= 9015shrext_cmds=".so" 9016postinstall_cmds= 9017postuninstall_cmds= 9018finish_cmds= 9019finish_eval= 9020shlibpath_var= 9021shlibpath_overrides_runpath=unknown 9022version_type=none 9023dynamic_linker="$host_os ld.so" 9024sys_lib_dlsearch_path_spec="/lib /usr/lib" 9025 9026if test "$GCC" = yes; then 9027 case $host_os in 9028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9029 *) lt_awk_arg="/^libraries:/" ;; 9030 esac 9031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9032 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9033 # if the path contains ";" then we assume it to be the separator 9034 # otherwise default to the standard path separator (i.e. ":") - it is 9035 # assumed that no part of a normal pathname contains ";" but that should 9036 # okay in the real world where ";" in dirpaths is itself problematic. 9037 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9038 else 9039 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9040 fi 9041 # Ok, now we have the path, separated by spaces, we can step through it 9042 # and add multilib dir if necessary. 9043 lt_tmp_lt_search_path_spec= 9044 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9045 for lt_sys_path in $lt_search_path_spec; do 9046 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9048 else 9049 test -d "$lt_sys_path" && \ 9050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9051 fi 9052 done 9053 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9054BEGIN {RS=" "; FS="/|\n";} { 9055 lt_foo=""; 9056 lt_count=0; 9057 for (lt_i = NF; lt_i > 0; lt_i--) { 9058 if ($lt_i != "" && $lt_i != ".") { 9059 if ($lt_i == "..") { 9060 lt_count++; 9061 } else { 9062 if (lt_count == 0) { 9063 lt_foo="/" $lt_i lt_foo; 9064 } else { 9065 lt_count--; 9066 } 9067 } 9068 } 9069 } 9070 if (lt_foo != "") { lt_freq[lt_foo]++; } 9071 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9072}'` 9073 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9074else 9075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9076fi 9077need_lib_prefix=unknown 9078hardcode_into_libs=no 9079 9080# when you set need_version to no, make sure it does not cause -set_version 9081# flags to be left without arguments 9082need_version=unknown 9083 9084case $host_os in 9085aix3*) 9086 version_type=linux 9087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9088 shlibpath_var=LIBPATH 9089 9090 # AIX 3 has no versioning support, so we append a major version to the name. 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 ;; 9093 9094aix[4-9]*) 9095 version_type=linux 9096 need_lib_prefix=no 9097 need_version=no 9098 hardcode_into_libs=yes 9099 if test "$host_cpu" = ia64; then 9100 # AIX 5 supports IA64 9101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9102 shlibpath_var=LD_LIBRARY_PATH 9103 else 9104 # With GCC up to 2.95.x, collect2 would create an import file 9105 # for dependence libraries. The import file would start with 9106 # the line `#! .'. This would cause the generated library to 9107 # depend on `.', always an invalid library. This was fixed in 9108 # development snapshots of GCC prior to 3.0. 9109 case $host_os in 9110 aix4 | aix4.[01] | aix4.[01].*) 9111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9112 echo ' yes ' 9113 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9114 : 9115 else 9116 can_build_shared=no 9117 fi 9118 ;; 9119 esac 9120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9121 # soname into executable. Probably we can add versioning support to 9122 # collect2, so additional links can be useful in future. 9123 if test "$aix_use_runtimelinking" = yes; then 9124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9125 # instead of lib<name>.a to let people know that these are not 9126 # typical AIX shared libraries. 9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9128 else 9129 # We preserve .a as extension for shared libraries through AIX4.2 9130 # and later when we are not doing run time linking. 9131 library_names_spec='${libname}${release}.a $libname.a' 9132 soname_spec='${libname}${release}${shared_ext}$major' 9133 fi 9134 shlibpath_var=LIBPATH 9135 fi 9136 ;; 9137 9138amigaos*) 9139 library_names_spec='$libname.ixlibrary $libname.a' 9140 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9141 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9142 ;; 9143 9144beos*) 9145 library_names_spec='${libname}${shared_ext}' 9146 dynamic_linker="$host_os ld.so" 9147 shlibpath_var=LIBRARY_PATH 9148 ;; 9149 9150bsdi[45]*) 9151 version_type=linux 9152 need_version=no 9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9154 soname_spec='${libname}${release}${shared_ext}$major' 9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9156 shlibpath_var=LD_LIBRARY_PATH 9157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9159 # the default ld.so.conf also contains /usr/contrib/lib and 9160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9161 # libtool to hard-code these into programs 9162 ;; 9163 9164cygwin* | mingw* | pw32*) 9165 version_type=windows 9166 shrext_cmds=".dll" 9167 need_version=no 9168 need_lib_prefix=no 9169 9170 case $GCC,$host_os in 9171 yes,cygwin* | yes,mingw* | yes,pw32*) 9172 library_names_spec='$libname.dll.a' 9173 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9174 postinstall_cmds='base_file=`basename \${file}`~ 9175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9176 dldir=$destdir/`dirname \$dlpath`~ 9177 test -d \$dldir || mkdir -p \$dldir~ 9178 $install_prog $dir/$dlname \$dldir/$dlname~ 9179 chmod a+x \$dldir/$dlname' 9180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9181 dlpath=$dir/\$dldll~ 9182 $rm \$dlpath' 9183 shlibpath_overrides_runpath=yes 9184 9185 case $host_os in 9186 cygwin*) 9187 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9189 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9190 ;; 9191 mingw*) 9192 # MinGW DLLs use traditional 'lib' prefix 9193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9195 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9196 # It is most probably a Windows format PATH printed by 9197 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9198 # path with ; separators, and with drive letters. We can handle the 9199 # drive letters (cygwin fileutils understands them), so leave them, 9200 # especially as we might pass files found there to a mingw objdump, 9201 # which wouldn't understand a cygwinified path. Ahh. 9202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9203 else 9204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9205 fi 9206 ;; 9207 pw32*) 9208 # pw32 DLLs use 'pw' prefix rather than 'lib' 9209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9210 ;; 9211 esac 9212 ;; 9213 9214 *) 9215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9216 ;; 9217 esac 9218 dynamic_linker='Win32 ld.exe' 9219 # FIXME: first we should search . and the directory the executable is in 9220 shlibpath_var=PATH 9221 ;; 9222 9223darwin* | rhapsody*) 9224 dynamic_linker="$host_os dyld" 9225 version_type=darwin 9226 need_lib_prefix=no 9227 need_version=no 9228 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9229 soname_spec='${libname}${release}${major}$shared_ext' 9230 shlibpath_overrides_runpath=yes 9231 shlibpath_var=DYLD_LIBRARY_PATH 9232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9233 9234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9236 ;; 9237 9238dgux*) 9239 version_type=linux 9240 need_lib_prefix=no 9241 need_version=no 9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9243 soname_spec='${libname}${release}${shared_ext}$major' 9244 shlibpath_var=LD_LIBRARY_PATH 9245 ;; 9246 9247freebsd1*) 9248 dynamic_linker=no 9249 ;; 9250 9251freebsd* | dragonfly*) 9252 # DragonFly does not have aout. When/if they implement a new 9253 # versioning mechanism, adjust this. 9254 if test -x /usr/bin/objformat; then 9255 objformat=`/usr/bin/objformat` 9256 else 9257 case $host_os in 9258 freebsd[123]*) objformat=aout ;; 9259 *) objformat=elf ;; 9260 esac 9261 fi 9262 version_type=freebsd-$objformat 9263 case $version_type in 9264 freebsd-elf*) 9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9266 need_version=no 9267 need_lib_prefix=no 9268 ;; 9269 freebsd-*) 9270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9271 need_version=yes 9272 ;; 9273 esac 9274 shlibpath_var=LD_LIBRARY_PATH 9275 case $host_os in 9276 freebsd2*) 9277 shlibpath_overrides_runpath=yes 9278 ;; 9279 freebsd3.[01]* | freebsdelf3.[01]*) 9280 shlibpath_overrides_runpath=yes 9281 hardcode_into_libs=yes 9282 ;; 9283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9285 shlibpath_overrides_runpath=no 9286 hardcode_into_libs=yes 9287 ;; 9288 *) # from 4.6 on, and DragonFly 9289 shlibpath_overrides_runpath=yes 9290 hardcode_into_libs=yes 9291 ;; 9292 esac 9293 ;; 9294 9295gnu*) 9296 version_type=linux 9297 need_lib_prefix=no 9298 need_version=no 9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9300 soname_spec='${libname}${release}${shared_ext}$major' 9301 shlibpath_var=LD_LIBRARY_PATH 9302 hardcode_into_libs=yes 9303 ;; 9304 9305hpux9* | hpux10* | hpux11*) 9306 # Give a soname corresponding to the major version so that dld.sl refuses to 9307 # link against other versions. 9308 version_type=sunos 9309 need_lib_prefix=no 9310 need_version=no 9311 case $host_cpu in 9312 ia64*) 9313 shrext_cmds='.so' 9314 hardcode_into_libs=yes 9315 dynamic_linker="$host_os dld.so" 9316 shlibpath_var=LD_LIBRARY_PATH 9317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9319 soname_spec='${libname}${release}${shared_ext}$major' 9320 if test "X$HPUX_IA64_MODE" = X32; then 9321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9322 else 9323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9324 fi 9325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9326 ;; 9327 hppa*64*) 9328 shrext_cmds='.sl' 9329 hardcode_into_libs=yes 9330 dynamic_linker="$host_os dld.sl" 9331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9334 soname_spec='${libname}${release}${shared_ext}$major' 9335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9337 ;; 9338 *) 9339 shrext_cmds='.sl' 9340 dynamic_linker="$host_os dld.sl" 9341 shlibpath_var=SHLIB_PATH 9342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9344 soname_spec='${libname}${release}${shared_ext}$major' 9345 ;; 9346 esac 9347 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9348 postinstall_cmds='chmod 555 $lib' 9349 ;; 9350 9351interix[3-9]*) 9352 version_type=linux 9353 need_lib_prefix=no 9354 need_version=no 9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9356 soname_spec='${libname}${release}${shared_ext}$major' 9357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9358 shlibpath_var=LD_LIBRARY_PATH 9359 shlibpath_overrides_runpath=no 9360 hardcode_into_libs=yes 9361 ;; 9362 9363irix5* | irix6* | nonstopux*) 9364 case $host_os in 9365 nonstopux*) version_type=nonstopux ;; 9366 *) 9367 if test "$lt_cv_prog_gnu_ld" = yes; then 9368 version_type=linux 9369 else 9370 version_type=irix 9371 fi ;; 9372 esac 9373 need_lib_prefix=no 9374 need_version=no 9375 soname_spec='${libname}${release}${shared_ext}$major' 9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9377 case $host_os in 9378 irix5* | nonstopux*) 9379 libsuff= shlibsuff= 9380 ;; 9381 *) 9382 case $LD in # libtool.m4 will add one of these switches to LD 9383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9384 libsuff= shlibsuff= libmagic=32-bit;; 9385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9386 libsuff=32 shlibsuff=N32 libmagic=N32;; 9387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9388 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9389 *) libsuff= shlibsuff= libmagic=never-match;; 9390 esac 9391 ;; 9392 esac 9393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9394 shlibpath_overrides_runpath=no 9395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9397 hardcode_into_libs=yes 9398 ;; 9399 9400# No shared lib support for Linux oldld, aout, or coff. 9401linux*oldld* | linux*aout* | linux*coff*) 9402 dynamic_linker=no 9403 ;; 9404 9405# This must be Linux ELF. 9406linux* | k*bsd*-gnu) 9407 version_type=linux 9408 need_lib_prefix=no 9409 need_version=no 9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9411 soname_spec='${libname}${release}${shared_ext}$major' 9412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9413 shlibpath_var=LD_LIBRARY_PATH 9414 shlibpath_overrides_runpath=no 9415 # This implies no fast_install, which is unacceptable. 9416 # Some rework will be needed to allow for fast_install 9417 # before this can be enabled. 9418 hardcode_into_libs=yes 9419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9421 9422 # Append ld.so.conf contents to the search path 9423 if test -f /etc/ld.so.conf; then 9424 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;/^$/d' | tr '\n' ' '` 9425 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9426 fi 9427 9428 # We used to test for /lib/ld.so.1 and disable shared libraries on 9429 # powerpc, because MkLinux only supported shared libraries with the 9430 # GNU dynamic linker. Since this was broken with cross compilers, 9431 # most powerpc-linux boxes support dynamic linking these days and 9432 # people can always --disable-shared, the test was removed, and we 9433 # assume the GNU/Linux dynamic linker is in use. 9434 dynamic_linker='GNU/Linux ld.so' 9435 ;; 9436 9437netbsd*) 9438 version_type=sunos 9439 need_lib_prefix=no 9440 need_version=no 9441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9444 dynamic_linker='NetBSD (a.out) ld.so' 9445 else 9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9447 soname_spec='${libname}${release}${shared_ext}$major' 9448 dynamic_linker='NetBSD ld.elf_so' 9449 fi 9450 shlibpath_var=LD_LIBRARY_PATH 9451 shlibpath_overrides_runpath=yes 9452 hardcode_into_libs=yes 9453 ;; 9454 9455newsos6) 9456 version_type=linux 9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9458 shlibpath_var=LD_LIBRARY_PATH 9459 shlibpath_overrides_runpath=yes 9460 ;; 9461 9462nto-qnx*) 9463 version_type=linux 9464 need_lib_prefix=no 9465 need_version=no 9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9467 soname_spec='${libname}${release}${shared_ext}$major' 9468 shlibpath_var=LD_LIBRARY_PATH 9469 shlibpath_overrides_runpath=yes 9470 ;; 9471 9472openbsd*) 9473 version_type=sunos 9474 sys_lib_dlsearch_path_spec="/usr/lib" 9475 need_lib_prefix=no 9476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9477 case $host_os in 9478 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9479 *) need_version=no ;; 9480 esac 9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9483 shlibpath_var=LD_LIBRARY_PATH 9484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9485 case $host_os in 9486 openbsd2.[89] | openbsd2.[89].*) 9487 shlibpath_overrides_runpath=no 9488 ;; 9489 *) 9490 shlibpath_overrides_runpath=yes 9491 ;; 9492 esac 9493 else 9494 shlibpath_overrides_runpath=yes 9495 fi 9496 ;; 9497 9498os2*) 9499 libname_spec='$name' 9500 shrext_cmds=".dll" 9501 need_lib_prefix=no 9502 library_names_spec='$libname${shared_ext} $libname.a' 9503 dynamic_linker='OS/2 ld.exe' 9504 shlibpath_var=LIBPATH 9505 ;; 9506 9507osf3* | osf4* | osf5*) 9508 version_type=osf 9509 need_lib_prefix=no 9510 need_version=no 9511 soname_spec='${libname}${release}${shared_ext}$major' 9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9513 shlibpath_var=LD_LIBRARY_PATH 9514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9516 ;; 9517 9518rdos*) 9519 dynamic_linker=no 9520 ;; 9521 9522solaris*) 9523 version_type=linux 9524 need_lib_prefix=no 9525 need_version=no 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9527 soname_spec='${libname}${release}${shared_ext}$major' 9528 shlibpath_var=LD_LIBRARY_PATH 9529 shlibpath_overrides_runpath=yes 9530 hardcode_into_libs=yes 9531 # ldd complains unless libraries are executable 9532 postinstall_cmds='chmod +x $lib' 9533 ;; 9534 9535sunos4*) 9536 version_type=sunos 9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9539 shlibpath_var=LD_LIBRARY_PATH 9540 shlibpath_overrides_runpath=yes 9541 if test "$with_gnu_ld" = yes; then 9542 need_lib_prefix=no 9543 fi 9544 need_version=yes 9545 ;; 9546 9547sysv4 | sysv4.3*) 9548 version_type=linux 9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9550 soname_spec='${libname}${release}${shared_ext}$major' 9551 shlibpath_var=LD_LIBRARY_PATH 9552 case $host_vendor in 9553 sni) 9554 shlibpath_overrides_runpath=no 9555 need_lib_prefix=no 9556 export_dynamic_flag_spec='${wl}-Blargedynsym' 9557 runpath_var=LD_RUN_PATH 9558 ;; 9559 siemens) 9560 need_lib_prefix=no 9561 ;; 9562 motorola) 9563 need_lib_prefix=no 9564 need_version=no 9565 shlibpath_overrides_runpath=no 9566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9567 ;; 9568 esac 9569 ;; 9570 9571sysv4*MP*) 9572 if test -d /usr/nec ;then 9573 version_type=linux 9574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9575 soname_spec='$libname${shared_ext}.$major' 9576 shlibpath_var=LD_LIBRARY_PATH 9577 fi 9578 ;; 9579 9580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9581 version_type=freebsd-elf 9582 need_lib_prefix=no 9583 need_version=no 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 shlibpath_var=LD_LIBRARY_PATH 9587 hardcode_into_libs=yes 9588 if test "$with_gnu_ld" = yes; then 9589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9590 shlibpath_overrides_runpath=no 9591 else 9592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9593 shlibpath_overrides_runpath=yes 9594 case $host_os in 9595 sco3.2v5*) 9596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9597 ;; 9598 esac 9599 fi 9600 sys_lib_dlsearch_path_spec='/usr/lib' 9601 ;; 9602 9603uts4*) 9604 version_type=linux 9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9606 soname_spec='${libname}${release}${shared_ext}$major' 9607 shlibpath_var=LD_LIBRARY_PATH 9608 ;; 9609 9610*) 9611 dynamic_linker=no 9612 ;; 9613esac 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9615$as_echo "$dynamic_linker" >&6; } 9616test "$dynamic_linker" = no && can_build_shared=no 9617 9618if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9622fi 9623 9624sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9625if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9629fi 9630 9631sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9632 9633variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9634if test "$GCC" = yes; then 9635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9636fi 9637 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9639$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9640hardcode_action= 9641if test -n "$hardcode_libdir_flag_spec" || \ 9642 test -n "$runpath_var" || \ 9643 test "X$hardcode_automatic" = "Xyes" ; then 9644 9645 # We can hardcode non-existant directories. 9646 if test "$hardcode_direct" != no && 9647 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9648 # have to relink, otherwise we might link with an installed library 9649 # when we should be linking with a yet-to-be-installed one 9650 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9651 test "$hardcode_minus_L" != no; then 9652 # Linking always hardcodes the temporary library directory. 9653 hardcode_action=relink 9654 else 9655 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9656 hardcode_action=immediate 9657 fi 9658else 9659 # We cannot hardcode anything, or else we can only hardcode existing 9660 # directories. 9661 hardcode_action=unsupported 9662fi 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9664$as_echo "$hardcode_action" >&6; } 9665 9666if test "$hardcode_action" = relink; then 9667 # Fast installation is not supported 9668 enable_fast_install=no 9669elif test "$shlibpath_overrides_runpath" = yes || 9670 test "$enable_shared" = no; then 9671 # Fast installation is not necessary 9672 enable_fast_install=needless 9673fi 9674 9675striplib= 9676old_striplib= 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9678$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9679if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9683$as_echo "yes" >&6; } 9684else 9685# FIXME - insert some real tests, host_os isn't really good enough 9686 case $host_os in 9687 darwin*) 9688 if test -n "$STRIP" ; then 9689 striplib="$STRIP -x" 9690 old_striplib="$STRIP -S" 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9692$as_echo "yes" >&6; } 9693 else 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9695$as_echo "no" >&6; } 9696fi 9697 ;; 9698 *) 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9700$as_echo "no" >&6; } 9701 ;; 9702 esac 9703fi 9704 9705if test "x$enable_dlopen" != xyes; then 9706 enable_dlopen=unknown 9707 enable_dlopen_self=unknown 9708 enable_dlopen_self_static=unknown 9709else 9710 lt_cv_dlopen=no 9711 lt_cv_dlopen_libs= 9712 9713 case $host_os in 9714 beos*) 9715 lt_cv_dlopen="load_add_on" 9716 lt_cv_dlopen_libs= 9717 lt_cv_dlopen_self=yes 9718 ;; 9719 9720 mingw* | pw32*) 9721 lt_cv_dlopen="LoadLibrary" 9722 lt_cv_dlopen_libs= 9723 ;; 9724 9725 cygwin*) 9726 lt_cv_dlopen="dlopen" 9727 lt_cv_dlopen_libs= 9728 ;; 9729 9730 darwin*) 9731 # if libdl is installed we need to link against it 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9733$as_echo_n "checking for dlopen in -ldl... " >&6; } 9734if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9735 $as_echo_n "(cached) " >&6 9736else 9737 ac_check_lib_save_LIBS=$LIBS 9738LIBS="-ldl $LIBS" 9739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740/* end confdefs.h. */ 9741 9742/* Override any GCC internal prototype to avoid an error. 9743 Use char because int might match the return type of a GCC 9744 builtin and then its argument prototype would still apply. */ 9745#ifdef __cplusplus 9746extern "C" 9747#endif 9748char dlopen (); 9749int 9750main () 9751{ 9752return dlopen (); 9753 ; 9754 return 0; 9755} 9756_ACEOF 9757if ac_fn_c_try_link "$LINENO"; then : 9758 ac_cv_lib_dl_dlopen=yes 9759else 9760 ac_cv_lib_dl_dlopen=no 9761fi 9762rm -f core conftest.err conftest.$ac_objext \ 9763 conftest$ac_exeext conftest.$ac_ext 9764LIBS=$ac_check_lib_save_LIBS 9765fi 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9767$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9768if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9770else 9771 9772 lt_cv_dlopen="dyld" 9773 lt_cv_dlopen_libs= 9774 lt_cv_dlopen_self=yes 9775 9776fi 9777 9778 ;; 9779 9780 *) 9781 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9782if test "x$ac_cv_func_shl_load" = x""yes; then : 9783 lt_cv_dlopen="shl_load" 9784else 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9786$as_echo_n "checking for shl_load in -ldld... " >&6; } 9787if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 ac_check_lib_save_LIBS=$LIBS 9791LIBS="-ldld $LIBS" 9792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794 9795/* Override any GCC internal prototype to avoid an error. 9796 Use char because int might match the return type of a GCC 9797 builtin and then its argument prototype would still apply. */ 9798#ifdef __cplusplus 9799extern "C" 9800#endif 9801char shl_load (); 9802int 9803main () 9804{ 9805return shl_load (); 9806 ; 9807 return 0; 9808} 9809_ACEOF 9810if ac_fn_c_try_link "$LINENO"; then : 9811 ac_cv_lib_dld_shl_load=yes 9812else 9813 ac_cv_lib_dld_shl_load=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817LIBS=$ac_check_lib_save_LIBS 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9820$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9821if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9822 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9823else 9824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9825if test "x$ac_cv_func_dlopen" = x""yes; then : 9826 lt_cv_dlopen="dlopen" 9827else 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9829$as_echo_n "checking for dlopen in -ldl... " >&6; } 9830if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 ac_check_lib_save_LIBS=$LIBS 9834LIBS="-ldl $LIBS" 9835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837 9838/* Override any GCC internal prototype to avoid an error. 9839 Use char because int might match the return type of a GCC 9840 builtin and then its argument prototype would still apply. */ 9841#ifdef __cplusplus 9842extern "C" 9843#endif 9844char dlopen (); 9845int 9846main () 9847{ 9848return dlopen (); 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853if ac_fn_c_try_link "$LINENO"; then : 9854 ac_cv_lib_dl_dlopen=yes 9855else 9856 ac_cv_lib_dl_dlopen=no 9857fi 9858rm -f core conftest.err conftest.$ac_objext \ 9859 conftest$ac_exeext conftest.$ac_ext 9860LIBS=$ac_check_lib_save_LIBS 9861fi 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9863$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9864if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9866else 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9868$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9869if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 ac_check_lib_save_LIBS=$LIBS 9873LIBS="-lsvld $LIBS" 9874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876 9877/* Override any GCC internal prototype to avoid an error. 9878 Use char because int might match the return type of a GCC 9879 builtin and then its argument prototype would still apply. */ 9880#ifdef __cplusplus 9881extern "C" 9882#endif 9883char dlopen (); 9884int 9885main () 9886{ 9887return dlopen (); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_link "$LINENO"; then : 9893 ac_cv_lib_svld_dlopen=yes 9894else 9895 ac_cv_lib_svld_dlopen=no 9896fi 9897rm -f core conftest.err conftest.$ac_objext \ 9898 conftest$ac_exeext conftest.$ac_ext 9899LIBS=$ac_check_lib_save_LIBS 9900fi 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9902$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9903if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 9904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9905else 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9907$as_echo_n "checking for dld_link in -ldld... " >&6; } 9908if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 ac_check_lib_save_LIBS=$LIBS 9912LIBS="-ldld $LIBS" 9913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915 9916/* Override any GCC internal prototype to avoid an error. 9917 Use char because int might match the return type of a GCC 9918 builtin and then its argument prototype would still apply. */ 9919#ifdef __cplusplus 9920extern "C" 9921#endif 9922char dld_link (); 9923int 9924main () 9925{ 9926return dld_link (); 9927 ; 9928 return 0; 9929} 9930_ACEOF 9931if ac_fn_c_try_link "$LINENO"; then : 9932 ac_cv_lib_dld_dld_link=yes 9933else 9934 ac_cv_lib_dld_dld_link=no 9935fi 9936rm -f core conftest.err conftest.$ac_objext \ 9937 conftest$ac_exeext conftest.$ac_ext 9938LIBS=$ac_check_lib_save_LIBS 9939fi 9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9941$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9942if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 9943 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9944fi 9945 9946 9947fi 9948 9949 9950fi 9951 9952 9953fi 9954 9955 9956fi 9957 9958 9959fi 9960 9961 ;; 9962 esac 9963 9964 if test "x$lt_cv_dlopen" != xno; then 9965 enable_dlopen=yes 9966 else 9967 enable_dlopen=no 9968 fi 9969 9970 case $lt_cv_dlopen in 9971 dlopen) 9972 save_CPPFLAGS="$CPPFLAGS" 9973 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9974 9975 save_LDFLAGS="$LDFLAGS" 9976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9977 9978 save_LIBS="$LIBS" 9979 LIBS="$lt_cv_dlopen_libs $LIBS" 9980 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9982$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9983if test "${lt_cv_dlopen_self+set}" = set; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 if test "$cross_compiling" = yes; then : 9987 lt_cv_dlopen_self=cross 9988else 9989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9990 lt_status=$lt_dlunknown 9991 cat > conftest.$ac_ext <<EOF 9992#line 9992 "configure" 9993#include "confdefs.h" 9994 9995#if HAVE_DLFCN_H 9996#include <dlfcn.h> 9997#endif 9998 9999#include <stdio.h> 10000 10001#ifdef RTLD_GLOBAL 10002# define LT_DLGLOBAL RTLD_GLOBAL 10003#else 10004# ifdef DL_GLOBAL 10005# define LT_DLGLOBAL DL_GLOBAL 10006# else 10007# define LT_DLGLOBAL 0 10008# endif 10009#endif 10010 10011/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10012 find out it does not work in some platform. */ 10013#ifndef LT_DLLAZY_OR_NOW 10014# ifdef RTLD_LAZY 10015# define LT_DLLAZY_OR_NOW RTLD_LAZY 10016# else 10017# ifdef DL_LAZY 10018# define LT_DLLAZY_OR_NOW DL_LAZY 10019# else 10020# ifdef RTLD_NOW 10021# define LT_DLLAZY_OR_NOW RTLD_NOW 10022# else 10023# ifdef DL_NOW 10024# define LT_DLLAZY_OR_NOW DL_NOW 10025# else 10026# define LT_DLLAZY_OR_NOW 0 10027# endif 10028# endif 10029# endif 10030# endif 10031#endif 10032 10033#ifdef __cplusplus 10034extern "C" void exit (int); 10035#endif 10036 10037void fnord() { int i=42;} 10038int main () 10039{ 10040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10041 int status = $lt_dlunknown; 10042 10043 if (self) 10044 { 10045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10047 /* dlclose (self); */ 10048 } 10049 else 10050 puts (dlerror ()); 10051 10052 exit (status); 10053} 10054EOF 10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10056 (eval $ac_link) 2>&5 10057 ac_status=$? 10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10059 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10060 (./conftest; exit; ) >&5 2>/dev/null 10061 lt_status=$? 10062 case x$lt_status in 10063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10065 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10066 esac 10067 else : 10068 # compilation failed 10069 lt_cv_dlopen_self=no 10070 fi 10071fi 10072rm -fr conftest* 10073 10074 10075fi 10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10077$as_echo "$lt_cv_dlopen_self" >&6; } 10078 10079 if test "x$lt_cv_dlopen_self" = xyes; then 10080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10082$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10083if test "${lt_cv_dlopen_self_static+set}" = set; then : 10084 $as_echo_n "(cached) " >&6 10085else 10086 if test "$cross_compiling" = yes; then : 10087 lt_cv_dlopen_self_static=cross 10088else 10089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10090 lt_status=$lt_dlunknown 10091 cat > conftest.$ac_ext <<EOF 10092#line 10092 "configure" 10093#include "confdefs.h" 10094 10095#if HAVE_DLFCN_H 10096#include <dlfcn.h> 10097#endif 10098 10099#include <stdio.h> 10100 10101#ifdef RTLD_GLOBAL 10102# define LT_DLGLOBAL RTLD_GLOBAL 10103#else 10104# ifdef DL_GLOBAL 10105# define LT_DLGLOBAL DL_GLOBAL 10106# else 10107# define LT_DLGLOBAL 0 10108# endif 10109#endif 10110 10111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10112 find out it does not work in some platform. */ 10113#ifndef LT_DLLAZY_OR_NOW 10114# ifdef RTLD_LAZY 10115# define LT_DLLAZY_OR_NOW RTLD_LAZY 10116# else 10117# ifdef DL_LAZY 10118# define LT_DLLAZY_OR_NOW DL_LAZY 10119# else 10120# ifdef RTLD_NOW 10121# define LT_DLLAZY_OR_NOW RTLD_NOW 10122# else 10123# ifdef DL_NOW 10124# define LT_DLLAZY_OR_NOW DL_NOW 10125# else 10126# define LT_DLLAZY_OR_NOW 0 10127# endif 10128# endif 10129# endif 10130# endif 10131#endif 10132 10133#ifdef __cplusplus 10134extern "C" void exit (int); 10135#endif 10136 10137void fnord() { int i=42;} 10138int main () 10139{ 10140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10141 int status = $lt_dlunknown; 10142 10143 if (self) 10144 { 10145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10147 /* dlclose (self); */ 10148 } 10149 else 10150 puts (dlerror ()); 10151 10152 exit (status); 10153} 10154EOF 10155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10156 (eval $ac_link) 2>&5 10157 ac_status=$? 10158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10160 (./conftest; exit; ) >&5 2>/dev/null 10161 lt_status=$? 10162 case x$lt_status in 10163 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10164 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10165 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10166 esac 10167 else : 10168 # compilation failed 10169 lt_cv_dlopen_self_static=no 10170 fi 10171fi 10172rm -fr conftest* 10173 10174 10175fi 10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10177$as_echo "$lt_cv_dlopen_self_static" >&6; } 10178 fi 10179 10180 CPPFLAGS="$save_CPPFLAGS" 10181 LDFLAGS="$save_LDFLAGS" 10182 LIBS="$save_LIBS" 10183 ;; 10184 esac 10185 10186 case $lt_cv_dlopen_self in 10187 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10188 *) enable_dlopen_self=unknown ;; 10189 esac 10190 10191 case $lt_cv_dlopen_self_static in 10192 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10193 *) enable_dlopen_self_static=unknown ;; 10194 esac 10195fi 10196 10197 10198# Report which library types will actually be built 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10200$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10202$as_echo "$can_build_shared" >&6; } 10203 10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10205$as_echo_n "checking whether to build shared libraries... " >&6; } 10206test "$can_build_shared" = "no" && enable_shared=no 10207 10208# On AIX, shared libraries and static libraries use the same namespace, and 10209# are all built from PIC. 10210case $host_os in 10211aix3*) 10212 test "$enable_shared" = yes && enable_static=no 10213 if test -n "$RANLIB"; then 10214 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10215 postinstall_cmds='$RANLIB $lib' 10216 fi 10217 ;; 10218 10219aix[4-9]*) 10220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10221 test "$enable_shared" = yes && enable_static=no 10222 fi 10223 ;; 10224esac 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10226$as_echo "$enable_shared" >&6; } 10227 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10229$as_echo_n "checking whether to build static libraries... " >&6; } 10230# Make sure either enable_shared or enable_static is yes. 10231test "$enable_shared" = yes || enable_static=yes 10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10233$as_echo "$enable_static" >&6; } 10234 10235# The else clause should only fire when bootstrapping the 10236# libtool distribution, otherwise you forgot to ship ltmain.sh 10237# with your package, and you will get complaints that there are 10238# no rules to generate ltmain.sh. 10239if test -f "$ltmain"; then 10240 # See if we are running on zsh, and set the options which allow our commands through 10241 # without removal of \ escapes. 10242 if test -n "${ZSH_VERSION+set}" ; then 10243 setopt NO_GLOB_SUBST 10244 fi 10245 # Now quote all the things that may contain metacharacters while being 10246 # careful not to overquote the AC_SUBSTed values. We take copies of the 10247 # variables and quote the copies for generation of the libtool script. 10248 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10249 SED SHELL STRIP \ 10250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10252 deplibs_check_method reload_flag reload_cmds need_locks \ 10253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10254 lt_cv_sys_global_symbol_to_c_name_address \ 10255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10256 old_postinstall_cmds old_postuninstall_cmds \ 10257 compiler \ 10258 CC \ 10259 LD \ 10260 lt_prog_compiler_wl \ 10261 lt_prog_compiler_pic \ 10262 lt_prog_compiler_static \ 10263 lt_prog_compiler_no_builtin_flag \ 10264 export_dynamic_flag_spec \ 10265 thread_safe_flag_spec \ 10266 whole_archive_flag_spec \ 10267 enable_shared_with_static_runtimes \ 10268 old_archive_cmds \ 10269 old_archive_from_new_cmds \ 10270 predep_objects \ 10271 postdep_objects \ 10272 predeps \ 10273 postdeps \ 10274 compiler_lib_search_path \ 10275 compiler_lib_search_dirs \ 10276 archive_cmds \ 10277 archive_expsym_cmds \ 10278 postinstall_cmds \ 10279 postuninstall_cmds \ 10280 old_archive_from_expsyms_cmds \ 10281 allow_undefined_flag \ 10282 no_undefined_flag \ 10283 export_symbols_cmds \ 10284 hardcode_libdir_flag_spec \ 10285 hardcode_libdir_flag_spec_ld \ 10286 hardcode_libdir_separator \ 10287 hardcode_automatic \ 10288 module_cmds \ 10289 module_expsym_cmds \ 10290 lt_cv_prog_compiler_c_o \ 10291 fix_srcfile_path \ 10292 exclude_expsyms \ 10293 include_expsyms; do 10294 10295 case $var in 10296 old_archive_cmds | \ 10297 old_archive_from_new_cmds | \ 10298 archive_cmds | \ 10299 archive_expsym_cmds | \ 10300 module_cmds | \ 10301 module_expsym_cmds | \ 10302 old_archive_from_expsyms_cmds | \ 10303 export_symbols_cmds | \ 10304 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10305 postinstall_cmds | postuninstall_cmds | \ 10306 old_postinstall_cmds | old_postuninstall_cmds | \ 10307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10308 # Double-quote double-evaled strings. 10309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10310 ;; 10311 *) 10312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10313 ;; 10314 esac 10315 done 10316 10317 case $lt_echo in 10318 *'\$0 --fallback-echo"') 10319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10320 ;; 10321 esac 10322 10323cfgfile="${ofile}T" 10324 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10325 $rm -f "$cfgfile" 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 10327$as_echo "$as_me: creating $ofile" >&6;} 10328 10329 cat <<__EOF__ >> "$cfgfile" 10330#! $SHELL 10331 10332# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10333# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10334# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10335# 10336# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10337# Free Software Foundation, Inc. 10338# 10339# This file is part of GNU Libtool: 10340# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10341# 10342# This program is free software; you can redistribute it and/or modify 10343# it under the terms of the GNU General Public License as published by 10344# the Free Software Foundation; either version 2 of the License, or 10345# (at your option) any later version. 10346# 10347# This program is distributed in the hope that it will be useful, but 10348# WITHOUT ANY WARRANTY; without even the implied warranty of 10349# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10350# General Public License for more details. 10351# 10352# You should have received a copy of the GNU General Public License 10353# along with this program; if not, write to the Free Software 10354# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10355# 10356# As a special exception to the GNU General Public License, if you 10357# distribute this file as part of a program that contains a 10358# configuration script generated by Autoconf, you may include it under 10359# the same distribution terms that you use for the rest of that program. 10360 10361# A sed program that does not truncate output. 10362SED=$lt_SED 10363 10364# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10365Xsed="$SED -e 1s/^X//" 10366 10367# The HP-UX ksh and POSIX shell print the target directory to stdout 10368# if CDPATH is set. 10369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10370 10371# The names of the tagged configurations supported by this script. 10372available_tags= 10373 10374# ### BEGIN LIBTOOL CONFIG 10375 10376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10377 10378# Shell to use when invoking shell scripts. 10379SHELL=$lt_SHELL 10380 10381# Whether or not to build shared libraries. 10382build_libtool_libs=$enable_shared 10383 10384# Whether or not to build static libraries. 10385build_old_libs=$enable_static 10386 10387# Whether or not to add -lc for building shared libraries. 10388build_libtool_need_lc=$archive_cmds_need_lc 10389 10390# Whether or not to disallow shared libs when runtime libs are static 10391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10392 10393# Whether or not to optimize for fast installation. 10394fast_install=$enable_fast_install 10395 10396# The host system. 10397host_alias=$host_alias 10398host=$host 10399host_os=$host_os 10400 10401# The build system. 10402build_alias=$build_alias 10403build=$build 10404build_os=$build_os 10405 10406# An echo program that does not interpret backslashes. 10407echo=$lt_echo 10408 10409# The archiver. 10410AR=$lt_AR 10411AR_FLAGS=$lt_AR_FLAGS 10412 10413# A C compiler. 10414LTCC=$lt_LTCC 10415 10416# LTCC compiler flags. 10417LTCFLAGS=$lt_LTCFLAGS 10418 10419# A language-specific compiler. 10420CC=$lt_compiler 10421 10422# Is the compiler the GNU C compiler? 10423with_gcc=$GCC 10424 10425# An ERE matcher. 10426EGREP=$lt_EGREP 10427 10428# The linker used to build libraries. 10429LD=$lt_LD 10430 10431# Whether we need hard or soft links. 10432LN_S=$lt_LN_S 10433 10434# A BSD-compatible nm program. 10435NM=$lt_NM 10436 10437# A symbol stripping program 10438STRIP=$lt_STRIP 10439 10440# Used to examine libraries when file_magic_cmd begins "file" 10441MAGIC_CMD=$MAGIC_CMD 10442 10443# Used on cygwin: DLL creation program. 10444DLLTOOL="$DLLTOOL" 10445 10446# Used on cygwin: object dumper. 10447OBJDUMP="$OBJDUMP" 10448 10449# Used on cygwin: assembler. 10450AS="$AS" 10451 10452# The name of the directory that contains temporary libtool files. 10453objdir=$objdir 10454 10455# How to create reloadable object files. 10456reload_flag=$lt_reload_flag 10457reload_cmds=$lt_reload_cmds 10458 10459# How to pass a linker flag through the compiler. 10460wl=$lt_lt_prog_compiler_wl 10461 10462# Object file suffix (normally "o"). 10463objext="$ac_objext" 10464 10465# Old archive suffix (normally "a"). 10466libext="$libext" 10467 10468# Shared library suffix (normally ".so"). 10469shrext_cmds='$shrext_cmds' 10470 10471# Executable file suffix (normally ""). 10472exeext="$exeext" 10473 10474# Additional compiler flags for building library objects. 10475pic_flag=$lt_lt_prog_compiler_pic 10476pic_mode=$pic_mode 10477 10478# What is the maximum length of a command? 10479max_cmd_len=$lt_cv_sys_max_cmd_len 10480 10481# Does compiler simultaneously support -c and -o options? 10482compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10483 10484# Must we lock files when doing compilation? 10485need_locks=$lt_need_locks 10486 10487# Do we need the lib prefix for modules? 10488need_lib_prefix=$need_lib_prefix 10489 10490# Do we need a version for libraries? 10491need_version=$need_version 10492 10493# Whether dlopen is supported. 10494dlopen_support=$enable_dlopen 10495 10496# Whether dlopen of programs is supported. 10497dlopen_self=$enable_dlopen_self 10498 10499# Whether dlopen of statically linked programs is supported. 10500dlopen_self_static=$enable_dlopen_self_static 10501 10502# Compiler flag to prevent dynamic linking. 10503link_static_flag=$lt_lt_prog_compiler_static 10504 10505# Compiler flag to turn off builtin functions. 10506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10507 10508# Compiler flag to allow reflexive dlopens. 10509export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10510 10511# Compiler flag to generate shared objects directly from archives. 10512whole_archive_flag_spec=$lt_whole_archive_flag_spec 10513 10514# Compiler flag to generate thread-safe objects. 10515thread_safe_flag_spec=$lt_thread_safe_flag_spec 10516 10517# Library versioning type. 10518version_type=$version_type 10519 10520# Format of library name prefix. 10521libname_spec=$lt_libname_spec 10522 10523# List of archive names. First name is the real one, the rest are links. 10524# The last name is the one that the linker finds with -lNAME. 10525library_names_spec=$lt_library_names_spec 10526 10527# The coded name of the library, if different from the real name. 10528soname_spec=$lt_soname_spec 10529 10530# Commands used to build and install an old-style archive. 10531RANLIB=$lt_RANLIB 10532old_archive_cmds=$lt_old_archive_cmds 10533old_postinstall_cmds=$lt_old_postinstall_cmds 10534old_postuninstall_cmds=$lt_old_postuninstall_cmds 10535 10536# Create an old-style archive from a shared archive. 10537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10538 10539# Create a temporary old-style archive to link instead of a shared archive. 10540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10541 10542# Commands used to build and install a shared archive. 10543archive_cmds=$lt_archive_cmds 10544archive_expsym_cmds=$lt_archive_expsym_cmds 10545postinstall_cmds=$lt_postinstall_cmds 10546postuninstall_cmds=$lt_postuninstall_cmds 10547 10548# Commands used to build a loadable module (assumed same as above if empty) 10549module_cmds=$lt_module_cmds 10550module_expsym_cmds=$lt_module_expsym_cmds 10551 10552# Commands to strip libraries. 10553old_striplib=$lt_old_striplib 10554striplib=$lt_striplib 10555 10556# Dependencies to place before the objects being linked to create a 10557# shared library. 10558predep_objects=$lt_predep_objects 10559 10560# Dependencies to place after the objects being linked to create a 10561# shared library. 10562postdep_objects=$lt_postdep_objects 10563 10564# Dependencies to place before the objects being linked to create a 10565# shared library. 10566predeps=$lt_predeps 10567 10568# Dependencies to place after the objects being linked to create a 10569# shared library. 10570postdeps=$lt_postdeps 10571 10572# The directories searched by this compiler when creating a shared 10573# library 10574compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10575 10576# The library search path used internally by the compiler when linking 10577# a shared library. 10578compiler_lib_search_path=$lt_compiler_lib_search_path 10579 10580# Method to check whether dependent libraries are shared objects. 10581deplibs_check_method=$lt_deplibs_check_method 10582 10583# Command to use when deplibs_check_method == file_magic. 10584file_magic_cmd=$lt_file_magic_cmd 10585 10586# Flag that allows shared libraries with undefined symbols to be built. 10587allow_undefined_flag=$lt_allow_undefined_flag 10588 10589# Flag that forces no undefined symbols. 10590no_undefined_flag=$lt_no_undefined_flag 10591 10592# Commands used to finish a libtool library installation in a directory. 10593finish_cmds=$lt_finish_cmds 10594 10595# Same as above, but a single script fragment to be evaled but not shown. 10596finish_eval=$lt_finish_eval 10597 10598# Take the output of nm and produce a listing of raw symbols and C names. 10599global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10600 10601# Transform the output of nm in a proper C declaration 10602global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10603 10604# Transform the output of nm in a C name address pair 10605global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10606 10607# This is the shared library runtime path variable. 10608runpath_var=$runpath_var 10609 10610# This is the shared library path variable. 10611shlibpath_var=$shlibpath_var 10612 10613# Is shlibpath searched before the hard-coded library search path? 10614shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10615 10616# How to hardcode a shared library path into an executable. 10617hardcode_action=$hardcode_action 10618 10619# Whether we should hardcode library paths into libraries. 10620hardcode_into_libs=$hardcode_into_libs 10621 10622# Flag to hardcode \$libdir into a binary during linking. 10623# This must work even if \$libdir does not exist. 10624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10625 10626# If ld is used when linking, flag to hardcode \$libdir into 10627# a binary during linking. This must work even if \$libdir does 10628# not exist. 10629hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10630 10631# Whether we need a single -rpath flag with a separated argument. 10632hardcode_libdir_separator=$lt_hardcode_libdir_separator 10633 10634# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10635# resulting binary. 10636hardcode_direct=$hardcode_direct 10637 10638# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10639# resulting binary. 10640hardcode_minus_L=$hardcode_minus_L 10641 10642# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10643# the resulting binary. 10644hardcode_shlibpath_var=$hardcode_shlibpath_var 10645 10646# Set to yes if building a shared library automatically hardcodes DIR into the library 10647# and all subsequent libraries and executables linked against it. 10648hardcode_automatic=$hardcode_automatic 10649 10650# Variables whose values should be saved in libtool wrapper scripts and 10651# restored at relink time. 10652variables_saved_for_relink="$variables_saved_for_relink" 10653 10654# Whether libtool must link a program against all its dependency libraries. 10655link_all_deplibs=$link_all_deplibs 10656 10657# Compile-time system search path for libraries 10658sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10659 10660# Run-time system search path for libraries 10661sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10662 10663# Fix the shell variable \$srcfile for the compiler. 10664fix_srcfile_path=$lt_fix_srcfile_path 10665 10666# Set to yes if exported symbols are required. 10667always_export_symbols=$always_export_symbols 10668 10669# The commands to list exported symbols. 10670export_symbols_cmds=$lt_export_symbols_cmds 10671 10672# The commands to extract the exported symbol list from a shared archive. 10673extract_expsyms_cmds=$lt_extract_expsyms_cmds 10674 10675# Symbols that should not be listed in the preloaded symbols. 10676exclude_expsyms=$lt_exclude_expsyms 10677 10678# Symbols that must always be exported. 10679include_expsyms=$lt_include_expsyms 10680 10681# ### END LIBTOOL CONFIG 10682 10683__EOF__ 10684 10685 10686 case $host_os in 10687 aix3*) 10688 cat <<\EOF >> "$cfgfile" 10689 10690# AIX sometimes has problems with the GCC collect2 program. For some 10691# reason, if we set the COLLECT_NAMES environment variable, the problems 10692# vanish in a puff of smoke. 10693if test "X${COLLECT_NAMES+set}" != Xset; then 10694 COLLECT_NAMES= 10695 export COLLECT_NAMES 10696fi 10697EOF 10698 ;; 10699 esac 10700 10701 # We use sed instead of cat because bash on DJGPP gets confused if 10702 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10703 # text mode, it properly converts lines to CR/LF. This bash problem 10704 # is reportedly fixed, but why not run on old versions too? 10705 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10706 10707 mv -f "$cfgfile" "$ofile" || \ 10708 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10709 chmod +x "$ofile" 10710 10711else 10712 # If there is no Makefile yet, we rely on a make rule to execute 10713 # `config.status --recheck' to rerun these tests and create the 10714 # libtool script then. 10715 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10716 if test -f "$ltmain_in"; then 10717 test -f Makefile && make "$ltmain" 10718 fi 10719fi 10720 10721 10722ac_ext=c 10723ac_cpp='$CPP $CPPFLAGS' 10724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10726ac_compiler_gnu=$ac_cv_c_compiler_gnu 10727 10728CC="$lt_save_CC" 10729 10730 10731# Check whether --with-tags was given. 10732if test "${with_tags+set}" = set; then : 10733 withval=$with_tags; tagnames="$withval" 10734fi 10735 10736 10737if test -f "$ltmain" && test -n "$tagnames"; then 10738 if test ! -f "${ofile}"; then 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 10740$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10741 fi 10742 10743 if test -z "$LTCC"; then 10744 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10745 if test -z "$LTCC"; then 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10747$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10748 else 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10750$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10751 fi 10752 fi 10753 if test -z "$LTCFLAGS"; then 10754 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10755 fi 10756 10757 # Extract list of available tagged configurations in $ofile. 10758 # Note that this assumes the entire list is on one line. 10759 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10760 10761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10762 for tagname in $tagnames; do 10763 IFS="$lt_save_ifs" 10764 # Check whether tagname contains only valid characters 10765 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10766 "") ;; 10767 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 10768 ;; 10769 esac 10770 10771 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10772 then 10773 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 10774 fi 10775 10776 # Update the list of available tags. 10777 if test -n "$tagname"; then 10778 echo appending configuration tag \"$tagname\" to $ofile 10779 10780 case $tagname in 10781 CXX) 10782 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10783 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10784 (test "X$CXX" != "Xg++"))) ; then 10785 ac_ext=cpp 10786ac_cpp='$CXXCPP $CPPFLAGS' 10787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10790 10791 10792 10793 10794archive_cmds_need_lc_CXX=no 10795allow_undefined_flag_CXX= 10796always_export_symbols_CXX=no 10797archive_expsym_cmds_CXX= 10798export_dynamic_flag_spec_CXX= 10799hardcode_direct_CXX=no 10800hardcode_libdir_flag_spec_CXX= 10801hardcode_libdir_flag_spec_ld_CXX= 10802hardcode_libdir_separator_CXX= 10803hardcode_minus_L_CXX=no 10804hardcode_shlibpath_var_CXX=unsupported 10805hardcode_automatic_CXX=no 10806module_cmds_CXX= 10807module_expsym_cmds_CXX= 10808link_all_deplibs_CXX=unknown 10809old_archive_cmds_CXX=$old_archive_cmds 10810no_undefined_flag_CXX= 10811whole_archive_flag_spec_CXX= 10812enable_shared_with_static_runtimes_CXX=no 10813 10814# Dependencies to place before and after the object being linked: 10815predep_objects_CXX= 10816postdep_objects_CXX= 10817predeps_CXX= 10818postdeps_CXX= 10819compiler_lib_search_path_CXX= 10820compiler_lib_search_dirs_CXX= 10821 10822# Source file extension for C++ test sources. 10823ac_ext=cpp 10824 10825# Object file extension for compiled C++ test sources. 10826objext=o 10827objext_CXX=$objext 10828 10829# Code to be used in simple compile tests 10830lt_simple_compile_test_code="int some_variable = 0;" 10831 10832# Code to be used in simple link tests 10833lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10834 10835# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10836 10837# If no C compiler was specified, use CC. 10838LTCC=${LTCC-"$CC"} 10839 10840# If no C compiler flags were specified, use CFLAGS. 10841LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10842 10843# Allow CC to be a program name with arguments. 10844compiler=$CC 10845 10846 10847# save warnings/boilerplate of simple test code 10848ac_outfile=conftest.$ac_objext 10849echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10851_lt_compiler_boilerplate=`cat conftest.err` 10852$rm conftest* 10853 10854ac_outfile=conftest.$ac_objext 10855echo "$lt_simple_link_test_code" >conftest.$ac_ext 10856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10857_lt_linker_boilerplate=`cat conftest.err` 10858$rm -r conftest* 10859 10860 10861# Allow CC to be a program name with arguments. 10862lt_save_CC=$CC 10863lt_save_LD=$LD 10864lt_save_GCC=$GCC 10865GCC=$GXX 10866lt_save_with_gnu_ld=$with_gnu_ld 10867lt_save_path_LD=$lt_cv_path_LD 10868if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10869 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10870else 10871 $as_unset lt_cv_prog_gnu_ld 10872fi 10873if test -n "${lt_cv_path_LDCXX+set}"; then 10874 lt_cv_path_LD=$lt_cv_path_LDCXX 10875else 10876 $as_unset lt_cv_path_LD 10877fi 10878test -z "${LDCXX+set}" || LD=$LDCXX 10879CC=${CXX-"c++"} 10880compiler=$CC 10881compiler_CXX=$CC 10882for cc_temp in $compiler""; do 10883 case $cc_temp in 10884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10886 \-*) ;; 10887 *) break;; 10888 esac 10889done 10890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10891 10892 10893# We don't want -fno-exception wen compiling C++ code, so set the 10894# no_builtin_flag separately 10895if test "$GXX" = yes; then 10896 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10897else 10898 lt_prog_compiler_no_builtin_flag_CXX= 10899fi 10900 10901if test "$GXX" = yes; then 10902 # Set up default GNU C++ configuration 10903 10904 10905# Check whether --with-gnu-ld was given. 10906if test "${with_gnu_ld+set}" = set; then : 10907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10908else 10909 with_gnu_ld=no 10910fi 10911 10912ac_prog=ld 10913if test "$GCC" = yes; then 10914 # Check if gcc -print-prog-name=ld gives a path. 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10916$as_echo_n "checking for ld used by $CC... " >&6; } 10917 case $host in 10918 *-*-mingw*) 10919 # gcc leaves a trailing carriage return which upsets mingw 10920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10921 *) 10922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10923 esac 10924 case $ac_prog in 10925 # Accept absolute paths. 10926 [\\/]* | ?:[\\/]*) 10927 re_direlt='/[^/][^/]*/\.\./' 10928 # Canonicalize the pathname of ld 10929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10932 done 10933 test -z "$LD" && LD="$ac_prog" 10934 ;; 10935 "") 10936 # If it fails, then pretend we aren't using GCC. 10937 ac_prog=ld 10938 ;; 10939 *) 10940 # If it is relative, then search for the first ld in PATH. 10941 with_gnu_ld=unknown 10942 ;; 10943 esac 10944elif test "$with_gnu_ld" = yes; then 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10946$as_echo_n "checking for GNU ld... " >&6; } 10947else 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10949$as_echo_n "checking for non-GNU ld... " >&6; } 10950fi 10951if test "${lt_cv_path_LD+set}" = set; then : 10952 $as_echo_n "(cached) " >&6 10953else 10954 if test -z "$LD"; then 10955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10956 for ac_dir in $PATH; do 10957 IFS="$lt_save_ifs" 10958 test -z "$ac_dir" && ac_dir=. 10959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10960 lt_cv_path_LD="$ac_dir/$ac_prog" 10961 # Check to see if the program is GNU ld. I'd rather use --version, 10962 # but apparently some variants of GNU ld only accept -v. 10963 # Break only if it was the GNU/non-GNU ld that we prefer. 10964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10965 *GNU* | *'with BFD'*) 10966 test "$with_gnu_ld" != no && break 10967 ;; 10968 *) 10969 test "$with_gnu_ld" != yes && break 10970 ;; 10971 esac 10972 fi 10973 done 10974 IFS="$lt_save_ifs" 10975else 10976 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10977fi 10978fi 10979 10980LD="$lt_cv_path_LD" 10981if test -n "$LD"; then 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10983$as_echo "$LD" >&6; } 10984else 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10986$as_echo "no" >&6; } 10987fi 10988test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10990$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10991if test "${lt_cv_prog_gnu_ld+set}" = set; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10995case `$LD -v 2>&1 </dev/null` in 10996*GNU* | *'with BFD'*) 10997 lt_cv_prog_gnu_ld=yes 10998 ;; 10999*) 11000 lt_cv_prog_gnu_ld=no 11001 ;; 11002esac 11003fi 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11005$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11006with_gnu_ld=$lt_cv_prog_gnu_ld 11007 11008 11009 11010 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11011 # archiving commands below assume that GNU ld is being used. 11012 if test "$with_gnu_ld" = yes; then 11013 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11014 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11015 11016 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11018 11019 # If archive_cmds runs LD, not CC, wlarc should be empty 11020 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11021 # investigate it a little bit more. (MM) 11022 wlarc='${wl}' 11023 11024 # ancient GNU ld didn't support --whole-archive et. al. 11025 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11026 grep 'no-whole-archive' > /dev/null; then 11027 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11028 else 11029 whole_archive_flag_spec_CXX= 11030 fi 11031 else 11032 with_gnu_ld=no 11033 wlarc= 11034 11035 # A generic and very simple default shared library creation 11036 # command for GNU C++ for the case where it uses the native 11037 # linker, instead of GNU ld. If possible, this setting should 11038 # overridden to take advantage of the native linker features on 11039 # the platform it is being used on. 11040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11041 fi 11042 11043 # Commands to make compiler produce verbose output that lists 11044 # what "hidden" libraries, object files and flags are used when 11045 # linking a shared library. 11046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11047 11048else 11049 GXX=no 11050 with_gnu_ld=no 11051 wlarc= 11052fi 11053 11054# PORTME: fill in a description of your system's C++ link characteristics 11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11056$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11057ld_shlibs_CXX=yes 11058case $host_os in 11059 aix3*) 11060 # FIXME: insert proper C++ library support 11061 ld_shlibs_CXX=no 11062 ;; 11063 aix[4-9]*) 11064 if test "$host_cpu" = ia64; then 11065 # On IA64, the linker does run time linking by default, so we don't 11066 # have to do anything special. 11067 aix_use_runtimelinking=no 11068 exp_sym_flag='-Bexport' 11069 no_entry_flag="" 11070 else 11071 aix_use_runtimelinking=no 11072 11073 # Test if we are trying to use run time linking or normal 11074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11075 # need to do runtime linking. 11076 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11077 for ld_flag in $LDFLAGS; do 11078 case $ld_flag in 11079 *-brtl*) 11080 aix_use_runtimelinking=yes 11081 break 11082 ;; 11083 esac 11084 done 11085 ;; 11086 esac 11087 11088 exp_sym_flag='-bexport' 11089 no_entry_flag='-bnoentry' 11090 fi 11091 11092 # When large executables or shared objects are built, AIX ld can 11093 # have problems creating the table of contents. If linking a library 11094 # or program results in "error TOC overflow" add -mminimal-toc to 11095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11097 11098 archive_cmds_CXX='' 11099 hardcode_direct_CXX=yes 11100 hardcode_libdir_separator_CXX=':' 11101 link_all_deplibs_CXX=yes 11102 11103 if test "$GXX" = yes; then 11104 case $host_os in aix4.[012]|aix4.[012].*) 11105 # We only want to do this on AIX 4.2 and lower, the check 11106 # below for broken collect2 doesn't work under 4.3+ 11107 collect2name=`${CC} -print-prog-name=collect2` 11108 if test -f "$collect2name" && \ 11109 strings "$collect2name" | grep resolve_lib_name >/dev/null 11110 then 11111 # We have reworked collect2 11112 : 11113 else 11114 # We have old collect2 11115 hardcode_direct_CXX=unsupported 11116 # It fails to find uninstalled libraries when the uninstalled 11117 # path is not listed in the libpath. Setting hardcode_minus_L 11118 # to unsupported forces relinking 11119 hardcode_minus_L_CXX=yes 11120 hardcode_libdir_flag_spec_CXX='-L$libdir' 11121 hardcode_libdir_separator_CXX= 11122 fi 11123 ;; 11124 esac 11125 shared_flag='-shared' 11126 if test "$aix_use_runtimelinking" = yes; then 11127 shared_flag="$shared_flag "'${wl}-G' 11128 fi 11129 else 11130 # not using gcc 11131 if test "$host_cpu" = ia64; then 11132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11133 # chokes on -Wl,-G. The following line is correct: 11134 shared_flag='-G' 11135 else 11136 if test "$aix_use_runtimelinking" = yes; then 11137 shared_flag='${wl}-G' 11138 else 11139 shared_flag='${wl}-bM:SRE' 11140 fi 11141 fi 11142 fi 11143 11144 # It seems that -bexpall does not export symbols beginning with 11145 # underscore (_), so it is better to generate a list of symbols to export. 11146 always_export_symbols_CXX=yes 11147 if test "$aix_use_runtimelinking" = yes; then 11148 # Warning - without using the other runtime loading flags (-brtl), 11149 # -berok will link without error, but may produce a broken library. 11150 allow_undefined_flag_CXX='-berok' 11151 # Determine the default libpath from the value encoded in an empty executable. 11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154 11155int 11156main () 11157{ 11158 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163if ac_fn_cxx_try_link "$LINENO"; then : 11164 11165lt_aix_libpath_sed=' 11166 /Import File Strings/,/^$/ { 11167 /^0/ { 11168 s/^0 *\(.*\)$/\1/ 11169 p 11170 } 11171 }' 11172aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11173# Check for a 64-bit object if we didn't find anything. 11174if test -z "$aix_libpath"; then 11175 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11176fi 11177fi 11178rm -f core conftest.err conftest.$ac_objext \ 11179 conftest$ac_exeext conftest.$ac_ext 11180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11181 11182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11183 11184 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11185 else 11186 if test "$host_cpu" = ia64; then 11187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11188 allow_undefined_flag_CXX="-z nodefs" 11189 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" 11190 else 11191 # Determine the default libpath from the value encoded in an empty executable. 11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194 11195int 11196main () 11197{ 11198 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203if ac_fn_cxx_try_link "$LINENO"; then : 11204 11205lt_aix_libpath_sed=' 11206 /Import File Strings/,/^$/ { 11207 /^0/ { 11208 s/^0 *\(.*\)$/\1/ 11209 p 11210 } 11211 }' 11212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11213# Check for a 64-bit object if we didn't find anything. 11214if test -z "$aix_libpath"; then 11215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11216fi 11217fi 11218rm -f core conftest.err conftest.$ac_objext \ 11219 conftest$ac_exeext conftest.$ac_ext 11220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11221 11222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11223 # Warning - without using the other run time loading flags, 11224 # -berok will link without error, but may produce a broken library. 11225 no_undefined_flag_CXX=' ${wl}-bernotok' 11226 allow_undefined_flag_CXX=' ${wl}-berok' 11227 # Exported symbols can be pulled into shared objects from archives 11228 whole_archive_flag_spec_CXX='$convenience' 11229 archive_cmds_need_lc_CXX=yes 11230 # This is similar to how AIX traditionally builds its shared libraries. 11231 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11232 fi 11233 fi 11234 ;; 11235 11236 beos*) 11237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11238 allow_undefined_flag_CXX=unsupported 11239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11240 # support --undefined. This deserves some investigation. FIXME 11241 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11242 else 11243 ld_shlibs_CXX=no 11244 fi 11245 ;; 11246 11247 chorus*) 11248 case $cc_basename in 11249 *) 11250 # FIXME: insert proper C++ library support 11251 ld_shlibs_CXX=no 11252 ;; 11253 esac 11254 ;; 11255 11256 cygwin* | mingw* | pw32*) 11257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11258 # as there is no search path for DLLs. 11259 hardcode_libdir_flag_spec_CXX='-L$libdir' 11260 allow_undefined_flag_CXX=unsupported 11261 always_export_symbols_CXX=no 11262 enable_shared_with_static_runtimes_CXX=yes 11263 11264 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11265 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' 11266 # If the export-symbols file already is a .def file (1st line 11267 # is EXPORTS), use it as is; otherwise, prepend... 11268 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11269 cp $export_symbols $output_objdir/$soname.def; 11270 else 11271 echo EXPORTS > $output_objdir/$soname.def; 11272 cat $export_symbols >> $output_objdir/$soname.def; 11273 fi~ 11274 $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' 11275 else 11276 ld_shlibs_CXX=no 11277 fi 11278 ;; 11279 darwin* | rhapsody*) 11280 archive_cmds_need_lc_CXX=no 11281 hardcode_direct_CXX=no 11282 hardcode_automatic_CXX=yes 11283 hardcode_shlibpath_var_CXX=unsupported 11284 whole_archive_flag_spec_CXX='' 11285 link_all_deplibs_CXX=yes 11286 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11287 if test "$GXX" = yes ; then 11288 output_verbose_link_cmd='echo' 11289 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}" 11290 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11291 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}" 11292 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}" 11293 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11294 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}" 11295 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}" 11296 fi 11297 else 11298 case $cc_basename in 11299 xlc*) 11300 output_verbose_link_cmd='echo' 11301 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11302 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11303 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11304 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11305 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11306 ;; 11307 *) 11308 ld_shlibs_CXX=no 11309 ;; 11310 esac 11311 fi 11312 ;; 11313 11314 dgux*) 11315 case $cc_basename in 11316 ec++*) 11317 # FIXME: insert proper C++ library support 11318 ld_shlibs_CXX=no 11319 ;; 11320 ghcx*) 11321 # Green Hills C++ Compiler 11322 # FIXME: insert proper C++ library support 11323 ld_shlibs_CXX=no 11324 ;; 11325 *) 11326 # FIXME: insert proper C++ library support 11327 ld_shlibs_CXX=no 11328 ;; 11329 esac 11330 ;; 11331 freebsd[12]*) 11332 # C++ shared libraries reported to be fairly broken before switch to ELF 11333 ld_shlibs_CXX=no 11334 ;; 11335 freebsd-elf*) 11336 archive_cmds_need_lc_CXX=no 11337 ;; 11338 freebsd* | dragonfly*) 11339 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11340 # conventions 11341 ld_shlibs_CXX=yes 11342 ;; 11343 gnu*) 11344 ;; 11345 hpux9*) 11346 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11347 hardcode_libdir_separator_CXX=: 11348 export_dynamic_flag_spec_CXX='${wl}-E' 11349 hardcode_direct_CXX=yes 11350 hardcode_minus_L_CXX=yes # Not in the search PATH, 11351 # but as the default 11352 # location of the library. 11353 11354 case $cc_basename in 11355 CC*) 11356 # FIXME: insert proper C++ library support 11357 ld_shlibs_CXX=no 11358 ;; 11359 aCC*) 11360 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11361 # Commands to make compiler produce verbose output that lists 11362 # what "hidden" libraries, object files and flags are used when 11363 # linking a shared library. 11364 # 11365 # There doesn't appear to be a way to prevent this compiler from 11366 # explicitly linking system object files so we need to strip them 11367 # from the output so that they don't get included in the library 11368 # dependencies. 11369 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; echo $list' 11370 ;; 11371 *) 11372 if test "$GXX" = yes; then 11373 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11374 else 11375 # FIXME: insert proper C++ library support 11376 ld_shlibs_CXX=no 11377 fi 11378 ;; 11379 esac 11380 ;; 11381 hpux10*|hpux11*) 11382 if test $with_gnu_ld = no; then 11383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11384 hardcode_libdir_separator_CXX=: 11385 11386 case $host_cpu in 11387 hppa*64*|ia64*) ;; 11388 *) 11389 export_dynamic_flag_spec_CXX='${wl}-E' 11390 ;; 11391 esac 11392 fi 11393 case $host_cpu in 11394 hppa*64*|ia64*) 11395 hardcode_direct_CXX=no 11396 hardcode_shlibpath_var_CXX=no 11397 ;; 11398 *) 11399 hardcode_direct_CXX=yes 11400 hardcode_minus_L_CXX=yes # Not in the search PATH, 11401 # but as the default 11402 # location of the library. 11403 ;; 11404 esac 11405 11406 case $cc_basename in 11407 CC*) 11408 # FIXME: insert proper C++ library support 11409 ld_shlibs_CXX=no 11410 ;; 11411 aCC*) 11412 case $host_cpu in 11413 hppa*64*) 11414 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11415 ;; 11416 ia64*) 11417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11418 ;; 11419 *) 11420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11421 ;; 11422 esac 11423 # Commands to make compiler produce verbose output that lists 11424 # what "hidden" libraries, object files and flags are used when 11425 # linking a shared library. 11426 # 11427 # There doesn't appear to be a way to prevent this compiler from 11428 # explicitly linking system object files so we need to strip them 11429 # from the output so that they don't get included in the library 11430 # dependencies. 11431 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; echo $list' 11432 ;; 11433 *) 11434 if test "$GXX" = yes; then 11435 if test $with_gnu_ld = no; then 11436 case $host_cpu in 11437 hppa*64*) 11438 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11439 ;; 11440 ia64*) 11441 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11442 ;; 11443 *) 11444 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11445 ;; 11446 esac 11447 fi 11448 else 11449 # FIXME: insert proper C++ library support 11450 ld_shlibs_CXX=no 11451 fi 11452 ;; 11453 esac 11454 ;; 11455 interix[3-9]*) 11456 hardcode_direct_CXX=no 11457 hardcode_shlibpath_var_CXX=no 11458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11459 export_dynamic_flag_spec_CXX='${wl}-E' 11460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11461 # Instead, shared libraries are loaded at an image base (0x10000000 by 11462 # default) and relocated if they conflict, which is a slow very memory 11463 # consuming and fragmenting process. To avoid this, we pick a random, 11464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11465 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11466 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' 11467 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' 11468 ;; 11469 irix5* | irix6*) 11470 case $cc_basename in 11471 CC*) 11472 # SGI C++ 11473 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11474 11475 # Archives containing C++ object files must be created using 11476 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11477 # necessary to make sure instantiated templates are included 11478 # in the archive. 11479 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11480 ;; 11481 *) 11482 if test "$GXX" = yes; then 11483 if test "$with_gnu_ld" = no; then 11484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11485 else 11486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11487 fi 11488 fi 11489 link_all_deplibs_CXX=yes 11490 ;; 11491 esac 11492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11493 hardcode_libdir_separator_CXX=: 11494 ;; 11495 linux* | k*bsd*-gnu) 11496 case $cc_basename in 11497 KCC*) 11498 # Kuck and Associates, Inc. (KAI) C++ Compiler 11499 11500 # KCC will only create a shared library if the output file 11501 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11502 # to its proper name (with version) after linking. 11503 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' 11504 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' 11505 # Commands to make compiler produce verbose output that lists 11506 # what "hidden" libraries, object files and flags are used when 11507 # linking a shared library. 11508 # 11509 # There doesn't appear to be a way to prevent this compiler from 11510 # explicitly linking system object files so we need to strip them 11511 # from the output so that they don't get included in the library 11512 # dependencies. 11513 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; echo $list' 11514 11515 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11517 11518 # Archives containing C++ object files must be created using 11519 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11521 ;; 11522 icpc*) 11523 # Intel C++ 11524 with_gnu_ld=yes 11525 # version 8.0 and above of icpc choke on multiply defined symbols 11526 # if we add $predep_objects and $postdep_objects, however 7.1 and 11527 # earlier do not add the objects themselves. 11528 case `$CC -V 2>&1` in 11529 *"Version 7."*) 11530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11531 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' 11532 ;; 11533 *) # Version 8.0 or newer 11534 tmp_idyn= 11535 case $host_cpu in 11536 ia64*) tmp_idyn=' -i_dynamic';; 11537 esac 11538 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11539 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' 11540 ;; 11541 esac 11542 archive_cmds_need_lc_CXX=no 11543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11545 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11546 ;; 11547 pgCC* | pgcpp*) 11548 # Portland Group C++ compiler 11549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11550 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' 11551 11552 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11554 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11555 ;; 11556 cxx*) 11557 # Compaq C++ 11558 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11559 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' 11560 11561 runpath_var=LD_RUN_PATH 11562 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11563 hardcode_libdir_separator_CXX=: 11564 11565 # Commands to make compiler produce verbose output that lists 11566 # what "hidden" libraries, object files and flags are used when 11567 # linking a shared library. 11568 # 11569 # There doesn't appear to be a way to prevent this compiler from 11570 # explicitly linking system object files so we need to strip them 11571 # from the output so that they don't get included in the library 11572 # dependencies. 11573 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list' 11574 ;; 11575 *) 11576 case `$CC -V 2>&1 | sed 5q` in 11577 *Sun\ C*) 11578 # Sun C++ 5.9 11579 no_undefined_flag_CXX=' -zdefs' 11580 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11581 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' 11582 hardcode_libdir_flag_spec_CXX='-R$libdir' 11583 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11584 11585 # Not sure whether something based on 11586 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11587 # would be better. 11588 output_verbose_link_cmd='echo' 11589 11590 # Archives containing C++ object files must be created using 11591 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11592 # necessary to make sure instantiated templates are included 11593 # in the archive. 11594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11595 ;; 11596 esac 11597 ;; 11598 esac 11599 ;; 11600 lynxos*) 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 ;; 11604 m88k*) 11605 # FIXME: insert proper C++ library support 11606 ld_shlibs_CXX=no 11607 ;; 11608 mvs*) 11609 case $cc_basename in 11610 cxx*) 11611 # FIXME: insert proper C++ library support 11612 ld_shlibs_CXX=no 11613 ;; 11614 *) 11615 # FIXME: insert proper C++ library support 11616 ld_shlibs_CXX=no 11617 ;; 11618 esac 11619 ;; 11620 netbsd*) 11621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11622 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11623 wlarc= 11624 hardcode_libdir_flag_spec_CXX='-R$libdir' 11625 hardcode_direct_CXX=yes 11626 hardcode_shlibpath_var_CXX=no 11627 fi 11628 # Workaround some broken pre-1.5 toolchains 11629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11630 ;; 11631 openbsd2*) 11632 # C++ shared libraries are fairly broken 11633 ld_shlibs_CXX=no 11634 ;; 11635 openbsd*) 11636 if test -f /usr/libexec/ld.so; then 11637 hardcode_direct_CXX=yes 11638 hardcode_shlibpath_var_CXX=no 11639 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11642 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11643 export_dynamic_flag_spec_CXX='${wl}-E' 11644 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11645 fi 11646 output_verbose_link_cmd='echo' 11647 else 11648 ld_shlibs_CXX=no 11649 fi 11650 ;; 11651 osf3*) 11652 case $cc_basename in 11653 KCC*) 11654 # Kuck and Associates, Inc. (KAI) C++ Compiler 11655 11656 # KCC will only create a shared library if the output file 11657 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11658 # to its proper name (with version) after linking. 11659 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' 11660 11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11662 hardcode_libdir_separator_CXX=: 11663 11664 # Archives containing C++ object files must be created using 11665 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11666 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11667 11668 ;; 11669 RCC*) 11670 # Rational C++ 2.4.1 11671 # FIXME: insert proper C++ library support 11672 ld_shlibs_CXX=no 11673 ;; 11674 cxx*) 11675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11676 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11677 11678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11679 hardcode_libdir_separator_CXX=: 11680 11681 # Commands to make compiler produce verbose output that lists 11682 # what "hidden" libraries, object files and flags are used when 11683 # linking a shared library. 11684 # 11685 # There doesn't appear to be a way to prevent this compiler from 11686 # explicitly linking system object files so we need to strip them 11687 # from the output so that they don't get included in the library 11688 # dependencies. 11689 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 11690 ;; 11691 *) 11692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11694 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11695 11696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11697 hardcode_libdir_separator_CXX=: 11698 11699 # Commands to make compiler produce verbose output that lists 11700 # what "hidden" libraries, object files and flags are used when 11701 # linking a shared library. 11702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11703 11704 else 11705 # FIXME: insert proper C++ library support 11706 ld_shlibs_CXX=no 11707 fi 11708 ;; 11709 esac 11710 ;; 11711 osf4* | osf5*) 11712 case $cc_basename in 11713 KCC*) 11714 # Kuck and Associates, Inc. (KAI) C++ Compiler 11715 11716 # KCC will only create a shared library if the output file 11717 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11718 # to its proper name (with version) after linking. 11719 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' 11720 11721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11722 hardcode_libdir_separator_CXX=: 11723 11724 # Archives containing C++ object files must be created using 11725 # the KAI C++ compiler. 11726 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11727 ;; 11728 RCC*) 11729 # Rational C++ 2.4.1 11730 # FIXME: insert proper C++ library support 11731 ld_shlibs_CXX=no 11732 ;; 11733 cxx*) 11734 allow_undefined_flag_CXX=' -expect_unresolved \*' 11735 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11736 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11737 echo "-hidden">> $lib.exp~ 11738 $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~ 11739 $rm $lib.exp' 11740 11741 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11742 hardcode_libdir_separator_CXX=: 11743 11744 # Commands to make compiler produce verbose output that lists 11745 # what "hidden" libraries, object files and flags are used when 11746 # linking a shared library. 11747 # 11748 # There doesn't appear to be a way to prevent this compiler from 11749 # explicitly linking system object files so we need to strip them 11750 # from the output so that they don't get included in the library 11751 # dependencies. 11752 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 11753 ;; 11754 *) 11755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11757 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11758 11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11760 hardcode_libdir_separator_CXX=: 11761 11762 # Commands to make compiler produce verbose output that lists 11763 # what "hidden" libraries, object files and flags are used when 11764 # linking a shared library. 11765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11766 11767 else 11768 # FIXME: insert proper C++ library support 11769 ld_shlibs_CXX=no 11770 fi 11771 ;; 11772 esac 11773 ;; 11774 psos*) 11775 # FIXME: insert proper C++ library support 11776 ld_shlibs_CXX=no 11777 ;; 11778 sunos4*) 11779 case $cc_basename in 11780 CC*) 11781 # Sun C++ 4.x 11782 # FIXME: insert proper C++ library support 11783 ld_shlibs_CXX=no 11784 ;; 11785 lcc*) 11786 # Lucid 11787 # FIXME: insert proper C++ library support 11788 ld_shlibs_CXX=no 11789 ;; 11790 *) 11791 # FIXME: insert proper C++ library support 11792 ld_shlibs_CXX=no 11793 ;; 11794 esac 11795 ;; 11796 solaris*) 11797 case $cc_basename in 11798 CC*) 11799 # Sun C++ 4.2, 5.x and Centerline C++ 11800 archive_cmds_need_lc_CXX=yes 11801 no_undefined_flag_CXX=' -zdefs' 11802 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11803 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11804 $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' 11805 11806 hardcode_libdir_flag_spec_CXX='-R$libdir' 11807 hardcode_shlibpath_var_CXX=no 11808 case $host_os in 11809 solaris2.[0-5] | solaris2.[0-5].*) ;; 11810 *) 11811 # The compiler driver will combine and reorder linker options, 11812 # but understands `-z linker_flag'. 11813 # Supported since Solaris 2.6 (maybe 2.5.1?) 11814 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11815 ;; 11816 esac 11817 link_all_deplibs_CXX=yes 11818 11819 output_verbose_link_cmd='echo' 11820 11821 # Archives containing C++ object files must be created using 11822 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11823 # necessary to make sure instantiated templates are included 11824 # in the archive. 11825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11826 ;; 11827 gcx*) 11828 # Green Hills C++ Compiler 11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11830 11831 # The C++ compiler must be used to create the archive. 11832 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11833 ;; 11834 *) 11835 # GNU C++ compiler with Solaris linker 11836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11837 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11838 if $CC --version | grep -v '^2\.7' > /dev/null; then 11839 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11840 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11841 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11842 11843 # Commands to make compiler produce verbose output that lists 11844 # what "hidden" libraries, object files and flags are used when 11845 # linking a shared library. 11846 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11847 else 11848 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11849 # platform. 11850 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11851 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11852 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11853 11854 # Commands to make compiler produce verbose output that lists 11855 # what "hidden" libraries, object files and flags are used when 11856 # linking a shared library. 11857 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11858 fi 11859 11860 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11861 case $host_os in 11862 solaris2.[0-5] | solaris2.[0-5].*) ;; 11863 *) 11864 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11865 ;; 11866 esac 11867 fi 11868 ;; 11869 esac 11870 ;; 11871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11872 no_undefined_flag_CXX='${wl}-z,text' 11873 archive_cmds_need_lc_CXX=no 11874 hardcode_shlibpath_var_CXX=no 11875 runpath_var='LD_RUN_PATH' 11876 11877 case $cc_basename in 11878 CC*) 11879 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11880 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11881 ;; 11882 *) 11883 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11884 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11885 ;; 11886 esac 11887 ;; 11888 sysv5* | sco3.2v5* | sco5v6*) 11889 # Note: We can NOT use -z defs as we might desire, because we do not 11890 # link with -lc, and that would cause any symbols used from libc to 11891 # always be unresolved, which means just about no library would 11892 # ever link correctly. If we're not using GNU ld we use -z text 11893 # though, which does catch some bad symbols but isn't as heavy-handed 11894 # as -z defs. 11895 # For security reasons, it is highly recommended that you always 11896 # use absolute paths for naming shared libraries, and exclude the 11897 # DT_RUNPATH tag from executables and libraries. But doing so 11898 # requires that you compile everything twice, which is a pain. 11899 # So that behaviour is only enabled if SCOABSPATH is set to a 11900 # non-empty value in the environment. Most likely only useful for 11901 # creating official distributions of packages. 11902 # This is a hack until libtool officially supports absolute path 11903 # names for shared libraries. 11904 no_undefined_flag_CXX='${wl}-z,text' 11905 allow_undefined_flag_CXX='${wl}-z,nodefs' 11906 archive_cmds_need_lc_CXX=no 11907 hardcode_shlibpath_var_CXX=no 11908 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11909 hardcode_libdir_separator_CXX=':' 11910 link_all_deplibs_CXX=yes 11911 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11912 runpath_var='LD_RUN_PATH' 11913 11914 case $cc_basename in 11915 CC*) 11916 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11917 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11918 ;; 11919 *) 11920 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11921 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11922 ;; 11923 esac 11924 ;; 11925 tandem*) 11926 case $cc_basename in 11927 NCC*) 11928 # NonStop-UX NCC 3.20 11929 # FIXME: insert proper C++ library support 11930 ld_shlibs_CXX=no 11931 ;; 11932 *) 11933 # FIXME: insert proper C++ library support 11934 ld_shlibs_CXX=no 11935 ;; 11936 esac 11937 ;; 11938 vxworks*) 11939 # FIXME: insert proper C++ library support 11940 ld_shlibs_CXX=no 11941 ;; 11942 *) 11943 # FIXME: insert proper C++ library support 11944 ld_shlibs_CXX=no 11945 ;; 11946esac 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 11948$as_echo "$ld_shlibs_CXX" >&6; } 11949test "$ld_shlibs_CXX" = no && can_build_shared=no 11950 11951GCC_CXX="$GXX" 11952LD_CXX="$LD" 11953 11954cat > conftest.$ac_ext <<EOF 11955class Foo 11956{ 11957public: 11958 Foo (void) { a = 0; } 11959private: 11960 int a; 11961}; 11962EOF 11963 11964if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11965 (eval $ac_compile) 2>&5 11966 ac_status=$? 11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11968 test $ac_status = 0; }; then 11969 # Parse the compiler output and extract the necessary 11970 # objects, libraries and library flags. 11971 11972 # Sentinel used to keep track of whether or not we are before 11973 # the conftest object file. 11974 pre_test_object_deps_done=no 11975 11976 # The `*' in the case matches for architectures that use `case' in 11977 # $output_verbose_cmd can trigger glob expansion during the loop 11978 # eval without this substitution. 11979 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11980 11981 for p in `eval $output_verbose_link_cmd`; do 11982 case $p in 11983 11984 -L* | -R* | -l*) 11985 # Some compilers place space between "-{L,R}" and the path. 11986 # Remove the space. 11987 if test $p = "-L" \ 11988 || test $p = "-R"; then 11989 prev=$p 11990 continue 11991 else 11992 prev= 11993 fi 11994 11995 if test "$pre_test_object_deps_done" = no; then 11996 case $p in 11997 -L* | -R*) 11998 # Internal compiler library paths should come after those 11999 # provided the user. The postdeps already come after the 12000 # user supplied libs so there is no need to process them. 12001 if test -z "$compiler_lib_search_path_CXX"; then 12002 compiler_lib_search_path_CXX="${prev}${p}" 12003 else 12004 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12005 fi 12006 ;; 12007 # The "-l" case would never come before the object being 12008 # linked, so don't bother handling this case. 12009 esac 12010 else 12011 if test -z "$postdeps_CXX"; then 12012 postdeps_CXX="${prev}${p}" 12013 else 12014 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12015 fi 12016 fi 12017 ;; 12018 12019 *.$objext) 12020 # This assumes that the test object file only shows up 12021 # once in the compiler output. 12022 if test "$p" = "conftest.$objext"; then 12023 pre_test_object_deps_done=yes 12024 continue 12025 fi 12026 12027 if test "$pre_test_object_deps_done" = no; then 12028 if test -z "$predep_objects_CXX"; then 12029 predep_objects_CXX="$p" 12030 else 12031 predep_objects_CXX="$predep_objects_CXX $p" 12032 fi 12033 else 12034 if test -z "$postdep_objects_CXX"; then 12035 postdep_objects_CXX="$p" 12036 else 12037 postdep_objects_CXX="$postdep_objects_CXX $p" 12038 fi 12039 fi 12040 ;; 12041 12042 *) ;; # Ignore the rest. 12043 12044 esac 12045 done 12046 12047 # Clean up. 12048 rm -f a.out a.exe 12049else 12050 echo "libtool.m4: error: problem compiling CXX test program" 12051fi 12052 12053$rm -f confest.$objext 12054 12055compiler_lib_search_dirs_CXX= 12056if test -n "$compiler_lib_search_path_CXX"; then 12057 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12058fi 12059 12060# PORTME: override above test on systems where it is broken 12061case $host_os in 12062interix[3-9]*) 12063 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12064 # hack all around it, let's just trust "g++" to DTRT. 12065 predep_objects_CXX= 12066 postdep_objects_CXX= 12067 postdeps_CXX= 12068 ;; 12069 12070linux*) 12071 case `$CC -V 2>&1 | sed 5q` in 12072 *Sun\ C*) 12073 # Sun C++ 5.9 12074 # 12075 # The more standards-conforming stlport4 library is 12076 # incompatible with the Cstd library. Avoid specifying 12077 # it if it's in CXXFLAGS. Ignore libCrun as 12078 # -library=stlport4 depends on it. 12079 case " $CXX $CXXFLAGS " in 12080 *" -library=stlport4 "*) 12081 solaris_use_stlport4=yes 12082 ;; 12083 esac 12084 if test "$solaris_use_stlport4" != yes; then 12085 postdeps_CXX='-library=Cstd -library=Crun' 12086 fi 12087 ;; 12088 esac 12089 ;; 12090 12091solaris*) 12092 case $cc_basename in 12093 CC*) 12094 # The more standards-conforming stlport4 library is 12095 # incompatible with the Cstd library. Avoid specifying 12096 # it if it's in CXXFLAGS. Ignore libCrun as 12097 # -library=stlport4 depends on it. 12098 case " $CXX $CXXFLAGS " in 12099 *" -library=stlport4 "*) 12100 solaris_use_stlport4=yes 12101 ;; 12102 esac 12103 12104 # Adding this requires a known-good setup of shared libraries for 12105 # Sun compiler versions before 5.6, else PIC objects from an old 12106 # archive will be linked into the output, leading to subtle bugs. 12107 if test "$solaris_use_stlport4" != yes; then 12108 postdeps_CXX='-library=Cstd -library=Crun' 12109 fi 12110 ;; 12111 esac 12112 ;; 12113esac 12114 12115case " $postdeps_CXX " in 12116*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12117esac 12118 12119lt_prog_compiler_wl_CXX= 12120lt_prog_compiler_pic_CXX= 12121lt_prog_compiler_static_CXX= 12122 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12124$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12125 12126 # C++ specific cases for pic, static, wl, etc. 12127 if test "$GXX" = yes; then 12128 lt_prog_compiler_wl_CXX='-Wl,' 12129 lt_prog_compiler_static_CXX='-static' 12130 12131 case $host_os in 12132 aix*) 12133 # All AIX code is PIC. 12134 if test "$host_cpu" = ia64; then 12135 # AIX 5 now supports IA64 processor 12136 lt_prog_compiler_static_CXX='-Bstatic' 12137 fi 12138 ;; 12139 amigaos*) 12140 # FIXME: we need at least 68020 code to build shared libraries, but 12141 # adding the `-m68020' flag to GCC prevents building anything better, 12142 # like `-m68040'. 12143 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12144 ;; 12145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12146 # PIC is the default for these OSes. 12147 ;; 12148 mingw* | cygwin* | os2* | pw32*) 12149 # This hack is so that the source file can tell whether it is being 12150 # built for inclusion in a dll (and should export symbols for example). 12151 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12152 # (--disable-auto-import) libraries 12153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12154 ;; 12155 darwin* | rhapsody*) 12156 # PIC is the default on this platform 12157 # Common symbols not allowed in MH_DYLIB files 12158 lt_prog_compiler_pic_CXX='-fno-common' 12159 ;; 12160 *djgpp*) 12161 # DJGPP does not support shared libraries at all 12162 lt_prog_compiler_pic_CXX= 12163 ;; 12164 interix[3-9]*) 12165 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12166 # Instead, we relocate shared libraries at runtime. 12167 ;; 12168 sysv4*MP*) 12169 if test -d /usr/nec; then 12170 lt_prog_compiler_pic_CXX=-Kconform_pic 12171 fi 12172 ;; 12173 hpux*) 12174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12175 # not for PA HP-UX. 12176 case $host_cpu in 12177 hppa*64*|ia64*) 12178 ;; 12179 *) 12180 lt_prog_compiler_pic_CXX='-fPIC' 12181 ;; 12182 esac 12183 ;; 12184 *) 12185 lt_prog_compiler_pic_CXX='-fPIC' 12186 ;; 12187 esac 12188 else 12189 case $host_os in 12190 aix[4-9]*) 12191 # All AIX code is PIC. 12192 if test "$host_cpu" = ia64; then 12193 # AIX 5 now supports IA64 processor 12194 lt_prog_compiler_static_CXX='-Bstatic' 12195 else 12196 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12197 fi 12198 ;; 12199 chorus*) 12200 case $cc_basename in 12201 cxch68*) 12202 # Green Hills C++ Compiler 12203 # _LT_AC_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" 12204 ;; 12205 esac 12206 ;; 12207 darwin*) 12208 # PIC is the default on this platform 12209 # Common symbols not allowed in MH_DYLIB files 12210 case $cc_basename in 12211 xlc*) 12212 lt_prog_compiler_pic_CXX='-qnocommon' 12213 lt_prog_compiler_wl_CXX='-Wl,' 12214 ;; 12215 esac 12216 ;; 12217 dgux*) 12218 case $cc_basename in 12219 ec++*) 12220 lt_prog_compiler_pic_CXX='-KPIC' 12221 ;; 12222 ghcx*) 12223 # Green Hills C++ Compiler 12224 lt_prog_compiler_pic_CXX='-pic' 12225 ;; 12226 *) 12227 ;; 12228 esac 12229 ;; 12230 freebsd* | dragonfly*) 12231 # FreeBSD uses GNU C++ 12232 ;; 12233 hpux9* | hpux10* | hpux11*) 12234 case $cc_basename in 12235 CC*) 12236 lt_prog_compiler_wl_CXX='-Wl,' 12237 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12238 if test "$host_cpu" != ia64; then 12239 lt_prog_compiler_pic_CXX='+Z' 12240 fi 12241 ;; 12242 aCC*) 12243 lt_prog_compiler_wl_CXX='-Wl,' 12244 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12245 case $host_cpu in 12246 hppa*64*|ia64*) 12247 # +Z the default 12248 ;; 12249 *) 12250 lt_prog_compiler_pic_CXX='+Z' 12251 ;; 12252 esac 12253 ;; 12254 *) 12255 ;; 12256 esac 12257 ;; 12258 interix*) 12259 # This is c89, which is MS Visual C++ (no shared libs) 12260 # Anyone wants to do a port? 12261 ;; 12262 irix5* | irix6* | nonstopux*) 12263 case $cc_basename in 12264 CC*) 12265 lt_prog_compiler_wl_CXX='-Wl,' 12266 lt_prog_compiler_static_CXX='-non_shared' 12267 # CC pic flag -KPIC is the default. 12268 ;; 12269 *) 12270 ;; 12271 esac 12272 ;; 12273 linux* | k*bsd*-gnu) 12274 case $cc_basename in 12275 KCC*) 12276 # KAI C++ Compiler 12277 lt_prog_compiler_wl_CXX='--backend -Wl,' 12278 lt_prog_compiler_pic_CXX='-fPIC' 12279 ;; 12280 icpc* | ecpc*) 12281 # Intel C++ 12282 lt_prog_compiler_wl_CXX='-Wl,' 12283 lt_prog_compiler_pic_CXX='-KPIC' 12284 lt_prog_compiler_static_CXX='-static' 12285 ;; 12286 pgCC* | pgcpp*) 12287 # Portland Group C++ compiler. 12288 lt_prog_compiler_wl_CXX='-Wl,' 12289 lt_prog_compiler_pic_CXX='-fpic' 12290 lt_prog_compiler_static_CXX='-Bstatic' 12291 ;; 12292 cxx*) 12293 # Compaq C++ 12294 # Make sure the PIC flag is empty. It appears that all Alpha 12295 # Linux and Compaq Tru64 Unix objects are PIC. 12296 lt_prog_compiler_pic_CXX= 12297 lt_prog_compiler_static_CXX='-non_shared' 12298 ;; 12299 *) 12300 case `$CC -V 2>&1 | sed 5q` in 12301 *Sun\ C*) 12302 # Sun C++ 5.9 12303 lt_prog_compiler_pic_CXX='-KPIC' 12304 lt_prog_compiler_static_CXX='-Bstatic' 12305 lt_prog_compiler_wl_CXX='-Qoption ld ' 12306 ;; 12307 esac 12308 ;; 12309 esac 12310 ;; 12311 lynxos*) 12312 ;; 12313 m88k*) 12314 ;; 12315 mvs*) 12316 case $cc_basename in 12317 cxx*) 12318 lt_prog_compiler_pic_CXX='-W c,exportall' 12319 ;; 12320 *) 12321 ;; 12322 esac 12323 ;; 12324 netbsd*) 12325 ;; 12326 osf3* | osf4* | osf5*) 12327 case $cc_basename in 12328 KCC*) 12329 lt_prog_compiler_wl_CXX='--backend -Wl,' 12330 ;; 12331 RCC*) 12332 # Rational C++ 2.4.1 12333 lt_prog_compiler_pic_CXX='-pic' 12334 ;; 12335 cxx*) 12336 # Digital/Compaq C++ 12337 lt_prog_compiler_wl_CXX='-Wl,' 12338 # Make sure the PIC flag is empty. It appears that all Alpha 12339 # Linux and Compaq Tru64 Unix objects are PIC. 12340 lt_prog_compiler_pic_CXX= 12341 lt_prog_compiler_static_CXX='-non_shared' 12342 ;; 12343 *) 12344 ;; 12345 esac 12346 ;; 12347 psos*) 12348 ;; 12349 solaris*) 12350 case $cc_basename in 12351 CC*) 12352 # Sun C++ 4.2, 5.x and Centerline C++ 12353 lt_prog_compiler_pic_CXX='-KPIC' 12354 lt_prog_compiler_static_CXX='-Bstatic' 12355 lt_prog_compiler_wl_CXX='-Qoption ld ' 12356 ;; 12357 gcx*) 12358 # Green Hills C++ Compiler 12359 lt_prog_compiler_pic_CXX='-PIC' 12360 ;; 12361 *) 12362 ;; 12363 esac 12364 ;; 12365 sunos4*) 12366 case $cc_basename in 12367 CC*) 12368 # Sun C++ 4.x 12369 lt_prog_compiler_pic_CXX='-pic' 12370 lt_prog_compiler_static_CXX='-Bstatic' 12371 ;; 12372 lcc*) 12373 # Lucid 12374 lt_prog_compiler_pic_CXX='-pic' 12375 ;; 12376 *) 12377 ;; 12378 esac 12379 ;; 12380 tandem*) 12381 case $cc_basename in 12382 NCC*) 12383 # NonStop-UX NCC 3.20 12384 lt_prog_compiler_pic_CXX='-KPIC' 12385 ;; 12386 *) 12387 ;; 12388 esac 12389 ;; 12390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12391 case $cc_basename in 12392 CC*) 12393 lt_prog_compiler_wl_CXX='-Wl,' 12394 lt_prog_compiler_pic_CXX='-KPIC' 12395 lt_prog_compiler_static_CXX='-Bstatic' 12396 ;; 12397 esac 12398 ;; 12399 vxworks*) 12400 ;; 12401 *) 12402 lt_prog_compiler_can_build_shared_CXX=no 12403 ;; 12404 esac 12405 fi 12406 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 12408$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12409 12410# 12411# Check to make sure the PIC flag actually works. 12412# 12413if test -n "$lt_prog_compiler_pic_CXX"; then 12414 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12416$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12417if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 12418 $as_echo_n "(cached) " >&6 12419else 12420 lt_cv_prog_compiler_pic_works_CXX=no 12421 ac_outfile=conftest.$ac_objext 12422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12423 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12424 # Insert the option either (1) after the last *FLAGS variable, or 12425 # (2) before a word containing "conftest.", or (3) at the end. 12426 # Note that $ac_compile itself does not contain backslashes and begins 12427 # with a dollar sign (not a hyphen), so the echo should work correctly. 12428 # The option is referenced via a variable to avoid confusing sed. 12429 lt_compile=`echo "$ac_compile" | $SED \ 12430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12432 -e 's:$: $lt_compiler_flag:'` 12433 (eval echo "\"\$as_me:12433: $lt_compile\"" >&5) 12434 (eval "$lt_compile" 2>conftest.err) 12435 ac_status=$? 12436 cat conftest.err >&5 12437 echo "$as_me:12437: \$? = $ac_status" >&5 12438 if (exit $ac_status) && test -s "$ac_outfile"; then 12439 # The compiler can only warn and ignore the option if not recognized 12440 # So say no if there are warnings other than the usual output. 12441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12444 lt_cv_prog_compiler_pic_works_CXX=yes 12445 fi 12446 fi 12447 $rm conftest* 12448 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12451$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12452 12453if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12454 case $lt_prog_compiler_pic_CXX in 12455 "" | " "*) ;; 12456 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12457 esac 12458else 12459 lt_prog_compiler_pic_CXX= 12460 lt_prog_compiler_can_build_shared_CXX=no 12461fi 12462 12463fi 12464case $host_os in 12465 # For platforms which do not support PIC, -DPIC is meaningless: 12466 *djgpp*) 12467 lt_prog_compiler_pic_CXX= 12468 ;; 12469 *) 12470 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12471 ;; 12472esac 12473 12474# 12475# Check to make sure the static flag actually works. 12476# 12477wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12479$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12480if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 lt_cv_prog_compiler_static_works_CXX=no 12484 save_LDFLAGS="$LDFLAGS" 12485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12486 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12488 # The linker can only warn and ignore the option if not recognized 12489 # So say no if there are warnings 12490 if test -s conftest.err; then 12491 # Append any errors to the config.log. 12492 cat conftest.err 1>&5 12493 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12495 if diff conftest.exp conftest.er2 >/dev/null; then 12496 lt_cv_prog_compiler_static_works_CXX=yes 12497 fi 12498 else 12499 lt_cv_prog_compiler_static_works_CXX=yes 12500 fi 12501 fi 12502 $rm -r conftest* 12503 LDFLAGS="$save_LDFLAGS" 12504 12505fi 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12507$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12508 12509if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12510 : 12511else 12512 lt_prog_compiler_static_CXX= 12513fi 12514 12515 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12518if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 12519 $as_echo_n "(cached) " >&6 12520else 12521 lt_cv_prog_compiler_c_o_CXX=no 12522 $rm -r conftest 2>/dev/null 12523 mkdir conftest 12524 cd conftest 12525 mkdir out 12526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12527 12528 lt_compiler_flag="-o out/conftest2.$ac_objext" 12529 # Insert the option either (1) after the last *FLAGS variable, or 12530 # (2) before a word containing "conftest.", or (3) at the end. 12531 # Note that $ac_compile itself does not contain backslashes and begins 12532 # with a dollar sign (not a hyphen), so the echo should work correctly. 12533 lt_compile=`echo "$ac_compile" | $SED \ 12534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12536 -e 's:$: $lt_compiler_flag:'` 12537 (eval echo "\"\$as_me:12537: $lt_compile\"" >&5) 12538 (eval "$lt_compile" 2>out/conftest.err) 12539 ac_status=$? 12540 cat out/conftest.err >&5 12541 echo "$as_me:12541: \$? = $ac_status" >&5 12542 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12543 then 12544 # The compiler can only warn and ignore the option if not recognized 12545 # So say no if there are warnings 12546 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12549 lt_cv_prog_compiler_c_o_CXX=yes 12550 fi 12551 fi 12552 chmod u+w . 2>&5 12553 $rm conftest* 12554 # SGI C++ compiler will create directory out/ii_files/ for 12555 # template instantiation 12556 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12557 $rm out/* && rmdir out 12558 cd .. 12559 rmdir conftest 12560 $rm conftest* 12561 12562fi 12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12564$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12565 12566 12567hard_links="nottested" 12568if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12569 # do not overwrite the value of need_locks provided by the user 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12571$as_echo_n "checking if we can lock with hard links... " >&6; } 12572 hard_links=yes 12573 $rm conftest* 12574 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12575 touch conftest.a 12576 ln conftest.a conftest.b 2>&5 || hard_links=no 12577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12579$as_echo "$hard_links" >&6; } 12580 if test "$hard_links" = no; then 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12582$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12583 need_locks=warn 12584 fi 12585else 12586 need_locks=no 12587fi 12588 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12590$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12591 12592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12593 case $host_os in 12594 aix[4-9]*) 12595 # If we're using GNU nm, then we don't want the "-C" option. 12596 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12597 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12598 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12599 else 12600 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12601 fi 12602 ;; 12603 pw32*) 12604 export_symbols_cmds_CXX="$ltdll_cmds" 12605 ;; 12606 cygwin* | mingw*) 12607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12608 ;; 12609 *) 12610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12611 ;; 12612 esac 12613 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12614 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12616$as_echo "$ld_shlibs_CXX" >&6; } 12617test "$ld_shlibs_CXX" = no && can_build_shared=no 12618 12619# 12620# Do we need to explicitly link libc? 12621# 12622case "x$archive_cmds_need_lc_CXX" in 12623x|xyes) 12624 # Assume -lc should be added 12625 archive_cmds_need_lc_CXX=yes 12626 12627 if test "$enable_shared" = yes && test "$GCC" = yes; then 12628 case $archive_cmds_CXX in 12629 *'~'*) 12630 # FIXME: we may have to deal with multi-command sequences. 12631 ;; 12632 '$CC '*) 12633 # Test whether the compiler implicitly links with -lc since on some 12634 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12635 # to ld, don't add -lc before -lgcc. 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12637$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12638 $rm conftest* 12639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12640 12641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12642 (eval $ac_compile) 2>&5 12643 ac_status=$? 12644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12645 test $ac_status = 0; } 2>conftest.err; then 12646 soname=conftest 12647 lib=conftest 12648 libobjs=conftest.$ac_objext 12649 deplibs= 12650 wl=$lt_prog_compiler_wl_CXX 12651 pic_flag=$lt_prog_compiler_pic_CXX 12652 compiler_flags=-v 12653 linker_flags=-v 12654 verstring= 12655 output_objdir=. 12656 libname=conftest 12657 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12658 allow_undefined_flag_CXX= 12659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12660 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12661 ac_status=$? 12662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12663 test $ac_status = 0; } 12664 then 12665 archive_cmds_need_lc_CXX=no 12666 else 12667 archive_cmds_need_lc_CXX=yes 12668 fi 12669 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12670 else 12671 cat conftest.err 1>&5 12672 fi 12673 $rm conftest* 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 12675$as_echo "$archive_cmds_need_lc_CXX" >&6; } 12676 ;; 12677 esac 12678 fi 12679 ;; 12680esac 12681 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12683$as_echo_n "checking dynamic linker characteristics... " >&6; } 12684library_names_spec= 12685libname_spec='lib$name' 12686soname_spec= 12687shrext_cmds=".so" 12688postinstall_cmds= 12689postuninstall_cmds= 12690finish_cmds= 12691finish_eval= 12692shlibpath_var= 12693shlibpath_overrides_runpath=unknown 12694version_type=none 12695dynamic_linker="$host_os ld.so" 12696sys_lib_dlsearch_path_spec="/lib /usr/lib" 12697 12698need_lib_prefix=unknown 12699hardcode_into_libs=no 12700 12701# when you set need_version to no, make sure it does not cause -set_version 12702# flags to be left without arguments 12703need_version=unknown 12704 12705case $host_os in 12706aix3*) 12707 version_type=linux 12708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12709 shlibpath_var=LIBPATH 12710 12711 # AIX 3 has no versioning support, so we append a major version to the name. 12712 soname_spec='${libname}${release}${shared_ext}$major' 12713 ;; 12714 12715aix[4-9]*) 12716 version_type=linux 12717 need_lib_prefix=no 12718 need_version=no 12719 hardcode_into_libs=yes 12720 if test "$host_cpu" = ia64; then 12721 # AIX 5 supports IA64 12722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12723 shlibpath_var=LD_LIBRARY_PATH 12724 else 12725 # With GCC up to 2.95.x, collect2 would create an import file 12726 # for dependence libraries. The import file would start with 12727 # the line `#! .'. This would cause the generated library to 12728 # depend on `.', always an invalid library. This was fixed in 12729 # development snapshots of GCC prior to 3.0. 12730 case $host_os in 12731 aix4 | aix4.[01] | aix4.[01].*) 12732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12733 echo ' yes ' 12734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12735 : 12736 else 12737 can_build_shared=no 12738 fi 12739 ;; 12740 esac 12741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12742 # soname into executable. Probably we can add versioning support to 12743 # collect2, so additional links can be useful in future. 12744 if test "$aix_use_runtimelinking" = yes; then 12745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12746 # instead of lib<name>.a to let people know that these are not 12747 # typical AIX shared libraries. 12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12749 else 12750 # We preserve .a as extension for shared libraries through AIX4.2 12751 # and later when we are not doing run time linking. 12752 library_names_spec='${libname}${release}.a $libname.a' 12753 soname_spec='${libname}${release}${shared_ext}$major' 12754 fi 12755 shlibpath_var=LIBPATH 12756 fi 12757 ;; 12758 12759amigaos*) 12760 library_names_spec='$libname.ixlibrary $libname.a' 12761 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12762 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12763 ;; 12764 12765beos*) 12766 library_names_spec='${libname}${shared_ext}' 12767 dynamic_linker="$host_os ld.so" 12768 shlibpath_var=LIBRARY_PATH 12769 ;; 12770 12771bsdi[45]*) 12772 version_type=linux 12773 need_version=no 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12775 soname_spec='${libname}${release}${shared_ext}$major' 12776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12777 shlibpath_var=LD_LIBRARY_PATH 12778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12780 # the default ld.so.conf also contains /usr/contrib/lib and 12781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12782 # libtool to hard-code these into programs 12783 ;; 12784 12785cygwin* | mingw* | pw32*) 12786 version_type=windows 12787 shrext_cmds=".dll" 12788 need_version=no 12789 need_lib_prefix=no 12790 12791 case $GCC,$host_os in 12792 yes,cygwin* | yes,mingw* | yes,pw32*) 12793 library_names_spec='$libname.dll.a' 12794 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12795 postinstall_cmds='base_file=`basename \${file}`~ 12796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12797 dldir=$destdir/`dirname \$dlpath`~ 12798 test -d \$dldir || mkdir -p \$dldir~ 12799 $install_prog $dir/$dlname \$dldir/$dlname~ 12800 chmod a+x \$dldir/$dlname' 12801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12802 dlpath=$dir/\$dldll~ 12803 $rm \$dlpath' 12804 shlibpath_overrides_runpath=yes 12805 12806 case $host_os in 12807 cygwin*) 12808 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12811 ;; 12812 mingw*) 12813 # MinGW DLLs use traditional 'lib' prefix 12814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12817 # It is most probably a Windows format PATH printed by 12818 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12819 # path with ; separators, and with drive letters. We can handle the 12820 # drive letters (cygwin fileutils understands them), so leave them, 12821 # especially as we might pass files found there to a mingw objdump, 12822 # which wouldn't understand a cygwinified path. Ahh. 12823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12824 else 12825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12826 fi 12827 ;; 12828 pw32*) 12829 # pw32 DLLs use 'pw' prefix rather than 'lib' 12830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12831 ;; 12832 esac 12833 ;; 12834 12835 *) 12836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12837 ;; 12838 esac 12839 dynamic_linker='Win32 ld.exe' 12840 # FIXME: first we should search . and the directory the executable is in 12841 shlibpath_var=PATH 12842 ;; 12843 12844darwin* | rhapsody*) 12845 dynamic_linker="$host_os dyld" 12846 version_type=darwin 12847 need_lib_prefix=no 12848 need_version=no 12849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12850 soname_spec='${libname}${release}${major}$shared_ext' 12851 shlibpath_overrides_runpath=yes 12852 shlibpath_var=DYLD_LIBRARY_PATH 12853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12854 12855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12856 ;; 12857 12858dgux*) 12859 version_type=linux 12860 need_lib_prefix=no 12861 need_version=no 12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12863 soname_spec='${libname}${release}${shared_ext}$major' 12864 shlibpath_var=LD_LIBRARY_PATH 12865 ;; 12866 12867freebsd1*) 12868 dynamic_linker=no 12869 ;; 12870 12871freebsd* | dragonfly*) 12872 # DragonFly does not have aout. When/if they implement a new 12873 # versioning mechanism, adjust this. 12874 if test -x /usr/bin/objformat; then 12875 objformat=`/usr/bin/objformat` 12876 else 12877 case $host_os in 12878 freebsd[123]*) objformat=aout ;; 12879 *) objformat=elf ;; 12880 esac 12881 fi 12882 version_type=freebsd-$objformat 12883 case $version_type in 12884 freebsd-elf*) 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12886 need_version=no 12887 need_lib_prefix=no 12888 ;; 12889 freebsd-*) 12890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12891 need_version=yes 12892 ;; 12893 esac 12894 shlibpath_var=LD_LIBRARY_PATH 12895 case $host_os in 12896 freebsd2*) 12897 shlibpath_overrides_runpath=yes 12898 ;; 12899 freebsd3.[01]* | freebsdelf3.[01]*) 12900 shlibpath_overrides_runpath=yes 12901 hardcode_into_libs=yes 12902 ;; 12903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12905 shlibpath_overrides_runpath=no 12906 hardcode_into_libs=yes 12907 ;; 12908 *) # from 4.6 on, and DragonFly 12909 shlibpath_overrides_runpath=yes 12910 hardcode_into_libs=yes 12911 ;; 12912 esac 12913 ;; 12914 12915gnu*) 12916 version_type=linux 12917 need_lib_prefix=no 12918 need_version=no 12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12920 soname_spec='${libname}${release}${shared_ext}$major' 12921 shlibpath_var=LD_LIBRARY_PATH 12922 hardcode_into_libs=yes 12923 ;; 12924 12925hpux9* | hpux10* | hpux11*) 12926 # Give a soname corresponding to the major version so that dld.sl refuses to 12927 # link against other versions. 12928 version_type=sunos 12929 need_lib_prefix=no 12930 need_version=no 12931 case $host_cpu in 12932 ia64*) 12933 shrext_cmds='.so' 12934 hardcode_into_libs=yes 12935 dynamic_linker="$host_os dld.so" 12936 shlibpath_var=LD_LIBRARY_PATH 12937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12939 soname_spec='${libname}${release}${shared_ext}$major' 12940 if test "X$HPUX_IA64_MODE" = X32; then 12941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12942 else 12943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12944 fi 12945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12946 ;; 12947 hppa*64*) 12948 shrext_cmds='.sl' 12949 hardcode_into_libs=yes 12950 dynamic_linker="$host_os dld.sl" 12951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12954 soname_spec='${libname}${release}${shared_ext}$major' 12955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12957 ;; 12958 *) 12959 shrext_cmds='.sl' 12960 dynamic_linker="$host_os dld.sl" 12961 shlibpath_var=SHLIB_PATH 12962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12964 soname_spec='${libname}${release}${shared_ext}$major' 12965 ;; 12966 esac 12967 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12968 postinstall_cmds='chmod 555 $lib' 12969 ;; 12970 12971interix[3-9]*) 12972 version_type=linux 12973 need_lib_prefix=no 12974 need_version=no 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12976 soname_spec='${libname}${release}${shared_ext}$major' 12977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12978 shlibpath_var=LD_LIBRARY_PATH 12979 shlibpath_overrides_runpath=no 12980 hardcode_into_libs=yes 12981 ;; 12982 12983irix5* | irix6* | nonstopux*) 12984 case $host_os in 12985 nonstopux*) version_type=nonstopux ;; 12986 *) 12987 if test "$lt_cv_prog_gnu_ld" = yes; then 12988 version_type=linux 12989 else 12990 version_type=irix 12991 fi ;; 12992 esac 12993 need_lib_prefix=no 12994 need_version=no 12995 soname_spec='${libname}${release}${shared_ext}$major' 12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12997 case $host_os in 12998 irix5* | nonstopux*) 12999 libsuff= shlibsuff= 13000 ;; 13001 *) 13002 case $LD in # libtool.m4 will add one of these switches to LD 13003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13004 libsuff= shlibsuff= libmagic=32-bit;; 13005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13006 libsuff=32 shlibsuff=N32 libmagic=N32;; 13007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13008 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13009 *) libsuff= shlibsuff= libmagic=never-match;; 13010 esac 13011 ;; 13012 esac 13013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13014 shlibpath_overrides_runpath=no 13015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13017 hardcode_into_libs=yes 13018 ;; 13019 13020# No shared lib support for Linux oldld, aout, or coff. 13021linux*oldld* | linux*aout* | linux*coff*) 13022 dynamic_linker=no 13023 ;; 13024 13025# This must be Linux ELF. 13026linux* | k*bsd*-gnu) 13027 version_type=linux 13028 need_lib_prefix=no 13029 need_version=no 13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13033 shlibpath_var=LD_LIBRARY_PATH 13034 shlibpath_overrides_runpath=no 13035 # This implies no fast_install, which is unacceptable. 13036 # Some rework will be needed to allow for fast_install 13037 # before this can be enabled. 13038 hardcode_into_libs=yes 13039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13041 13042 # Append ld.so.conf contents to the search path 13043 if test -f /etc/ld.so.conf; then 13044 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;/^$/d' | tr '\n' ' '` 13045 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13046 fi 13047 13048 # We used to test for /lib/ld.so.1 and disable shared libraries on 13049 # powerpc, because MkLinux only supported shared libraries with the 13050 # GNU dynamic linker. Since this was broken with cross compilers, 13051 # most powerpc-linux boxes support dynamic linking these days and 13052 # people can always --disable-shared, the test was removed, and we 13053 # assume the GNU/Linux dynamic linker is in use. 13054 dynamic_linker='GNU/Linux ld.so' 13055 ;; 13056 13057netbsd*) 13058 version_type=sunos 13059 need_lib_prefix=no 13060 need_version=no 13061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13064 dynamic_linker='NetBSD (a.out) ld.so' 13065 else 13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13067 soname_spec='${libname}${release}${shared_ext}$major' 13068 dynamic_linker='NetBSD ld.elf_so' 13069 fi 13070 shlibpath_var=LD_LIBRARY_PATH 13071 shlibpath_overrides_runpath=yes 13072 hardcode_into_libs=yes 13073 ;; 13074 13075newsos6) 13076 version_type=linux 13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13078 shlibpath_var=LD_LIBRARY_PATH 13079 shlibpath_overrides_runpath=yes 13080 ;; 13081 13082nto-qnx*) 13083 version_type=linux 13084 need_lib_prefix=no 13085 need_version=no 13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13087 soname_spec='${libname}${release}${shared_ext}$major' 13088 shlibpath_var=LD_LIBRARY_PATH 13089 shlibpath_overrides_runpath=yes 13090 ;; 13091 13092openbsd*) 13093 version_type=sunos 13094 sys_lib_dlsearch_path_spec="/usr/lib" 13095 need_lib_prefix=no 13096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13097 case $host_os in 13098 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13099 *) need_version=no ;; 13100 esac 13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13103 shlibpath_var=LD_LIBRARY_PATH 13104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13105 case $host_os in 13106 openbsd2.[89] | openbsd2.[89].*) 13107 shlibpath_overrides_runpath=no 13108 ;; 13109 *) 13110 shlibpath_overrides_runpath=yes 13111 ;; 13112 esac 13113 else 13114 shlibpath_overrides_runpath=yes 13115 fi 13116 ;; 13117 13118os2*) 13119 libname_spec='$name' 13120 shrext_cmds=".dll" 13121 need_lib_prefix=no 13122 library_names_spec='$libname${shared_ext} $libname.a' 13123 dynamic_linker='OS/2 ld.exe' 13124 shlibpath_var=LIBPATH 13125 ;; 13126 13127osf3* | osf4* | osf5*) 13128 version_type=osf 13129 need_lib_prefix=no 13130 need_version=no 13131 soname_spec='${libname}${release}${shared_ext}$major' 13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13133 shlibpath_var=LD_LIBRARY_PATH 13134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13136 ;; 13137 13138rdos*) 13139 dynamic_linker=no 13140 ;; 13141 13142solaris*) 13143 version_type=linux 13144 need_lib_prefix=no 13145 need_version=no 13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13147 soname_spec='${libname}${release}${shared_ext}$major' 13148 shlibpath_var=LD_LIBRARY_PATH 13149 shlibpath_overrides_runpath=yes 13150 hardcode_into_libs=yes 13151 # ldd complains unless libraries are executable 13152 postinstall_cmds='chmod +x $lib' 13153 ;; 13154 13155sunos4*) 13156 version_type=sunos 13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13159 shlibpath_var=LD_LIBRARY_PATH 13160 shlibpath_overrides_runpath=yes 13161 if test "$with_gnu_ld" = yes; then 13162 need_lib_prefix=no 13163 fi 13164 need_version=yes 13165 ;; 13166 13167sysv4 | sysv4.3*) 13168 version_type=linux 13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13170 soname_spec='${libname}${release}${shared_ext}$major' 13171 shlibpath_var=LD_LIBRARY_PATH 13172 case $host_vendor in 13173 sni) 13174 shlibpath_overrides_runpath=no 13175 need_lib_prefix=no 13176 export_dynamic_flag_spec='${wl}-Blargedynsym' 13177 runpath_var=LD_RUN_PATH 13178 ;; 13179 siemens) 13180 need_lib_prefix=no 13181 ;; 13182 motorola) 13183 need_lib_prefix=no 13184 need_version=no 13185 shlibpath_overrides_runpath=no 13186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13187 ;; 13188 esac 13189 ;; 13190 13191sysv4*MP*) 13192 if test -d /usr/nec ;then 13193 version_type=linux 13194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13195 soname_spec='$libname${shared_ext}.$major' 13196 shlibpath_var=LD_LIBRARY_PATH 13197 fi 13198 ;; 13199 13200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13201 version_type=freebsd-elf 13202 need_lib_prefix=no 13203 need_version=no 13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13205 soname_spec='${libname}${release}${shared_ext}$major' 13206 shlibpath_var=LD_LIBRARY_PATH 13207 hardcode_into_libs=yes 13208 if test "$with_gnu_ld" = yes; then 13209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13210 shlibpath_overrides_runpath=no 13211 else 13212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13213 shlibpath_overrides_runpath=yes 13214 case $host_os in 13215 sco3.2v5*) 13216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13217 ;; 13218 esac 13219 fi 13220 sys_lib_dlsearch_path_spec='/usr/lib' 13221 ;; 13222 13223uts4*) 13224 version_type=linux 13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13226 soname_spec='${libname}${release}${shared_ext}$major' 13227 shlibpath_var=LD_LIBRARY_PATH 13228 ;; 13229 13230*) 13231 dynamic_linker=no 13232 ;; 13233esac 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13235$as_echo "$dynamic_linker" >&6; } 13236test "$dynamic_linker" = no && can_build_shared=no 13237 13238if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13242fi 13243 13244sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13245if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 13246 $as_echo_n "(cached) " >&6 13247else 13248 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13249fi 13250 13251sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13252 13253variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13254if test "$GCC" = yes; then 13255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13256fi 13257 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13259$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13260hardcode_action_CXX= 13261if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13262 test -n "$runpath_var_CXX" || \ 13263 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13264 13265 # We can hardcode non-existant directories. 13266 if test "$hardcode_direct_CXX" != no && 13267 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13268 # have to relink, otherwise we might link with an installed library 13269 # when we should be linking with a yet-to-be-installed one 13270 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13271 test "$hardcode_minus_L_CXX" != no; then 13272 # Linking always hardcodes the temporary library directory. 13273 hardcode_action_CXX=relink 13274 else 13275 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13276 hardcode_action_CXX=immediate 13277 fi 13278else 13279 # We cannot hardcode anything, or else we can only hardcode existing 13280 # directories. 13281 hardcode_action_CXX=unsupported 13282fi 13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13284$as_echo "$hardcode_action_CXX" >&6; } 13285 13286if test "$hardcode_action_CXX" = relink; then 13287 # Fast installation is not supported 13288 enable_fast_install=no 13289elif test "$shlibpath_overrides_runpath" = yes || 13290 test "$enable_shared" = no; then 13291 # Fast installation is not necessary 13292 enable_fast_install=needless 13293fi 13294 13295 13296# The else clause should only fire when bootstrapping the 13297# libtool distribution, otherwise you forgot to ship ltmain.sh 13298# with your package, and you will get complaints that there are 13299# no rules to generate ltmain.sh. 13300if test -f "$ltmain"; then 13301 # See if we are running on zsh, and set the options which allow our commands through 13302 # without removal of \ escapes. 13303 if test -n "${ZSH_VERSION+set}" ; then 13304 setopt NO_GLOB_SUBST 13305 fi 13306 # Now quote all the things that may contain metacharacters while being 13307 # careful not to overquote the AC_SUBSTed values. We take copies of the 13308 # variables and quote the copies for generation of the libtool script. 13309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13310 SED SHELL STRIP \ 13311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13313 deplibs_check_method reload_flag reload_cmds need_locks \ 13314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13315 lt_cv_sys_global_symbol_to_c_name_address \ 13316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13317 old_postinstall_cmds old_postuninstall_cmds \ 13318 compiler_CXX \ 13319 CC_CXX \ 13320 LD_CXX \ 13321 lt_prog_compiler_wl_CXX \ 13322 lt_prog_compiler_pic_CXX \ 13323 lt_prog_compiler_static_CXX \ 13324 lt_prog_compiler_no_builtin_flag_CXX \ 13325 export_dynamic_flag_spec_CXX \ 13326 thread_safe_flag_spec_CXX \ 13327 whole_archive_flag_spec_CXX \ 13328 enable_shared_with_static_runtimes_CXX \ 13329 old_archive_cmds_CXX \ 13330 old_archive_from_new_cmds_CXX \ 13331 predep_objects_CXX \ 13332 postdep_objects_CXX \ 13333 predeps_CXX \ 13334 postdeps_CXX \ 13335 compiler_lib_search_path_CXX \ 13336 compiler_lib_search_dirs_CXX \ 13337 archive_cmds_CXX \ 13338 archive_expsym_cmds_CXX \ 13339 postinstall_cmds_CXX \ 13340 postuninstall_cmds_CXX \ 13341 old_archive_from_expsyms_cmds_CXX \ 13342 allow_undefined_flag_CXX \ 13343 no_undefined_flag_CXX \ 13344 export_symbols_cmds_CXX \ 13345 hardcode_libdir_flag_spec_CXX \ 13346 hardcode_libdir_flag_spec_ld_CXX \ 13347 hardcode_libdir_separator_CXX \ 13348 hardcode_automatic_CXX \ 13349 module_cmds_CXX \ 13350 module_expsym_cmds_CXX \ 13351 lt_cv_prog_compiler_c_o_CXX \ 13352 fix_srcfile_path_CXX \ 13353 exclude_expsyms_CXX \ 13354 include_expsyms_CXX; do 13355 13356 case $var in 13357 old_archive_cmds_CXX | \ 13358 old_archive_from_new_cmds_CXX | \ 13359 archive_cmds_CXX | \ 13360 archive_expsym_cmds_CXX | \ 13361 module_cmds_CXX | \ 13362 module_expsym_cmds_CXX | \ 13363 old_archive_from_expsyms_cmds_CXX | \ 13364 export_symbols_cmds_CXX | \ 13365 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13366 postinstall_cmds | postuninstall_cmds | \ 13367 old_postinstall_cmds | old_postuninstall_cmds | \ 13368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13369 # Double-quote double-evaled strings. 13370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13371 ;; 13372 *) 13373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13374 ;; 13375 esac 13376 done 13377 13378 case $lt_echo in 13379 *'\$0 --fallback-echo"') 13380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13381 ;; 13382 esac 13383 13384cfgfile="$ofile" 13385 13386 cat <<__EOF__ >> "$cfgfile" 13387# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13388 13389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13390 13391# Shell to use when invoking shell scripts. 13392SHELL=$lt_SHELL 13393 13394# Whether or not to build shared libraries. 13395build_libtool_libs=$enable_shared 13396 13397# Whether or not to build static libraries. 13398build_old_libs=$enable_static 13399 13400# Whether or not to add -lc for building shared libraries. 13401build_libtool_need_lc=$archive_cmds_need_lc_CXX 13402 13403# Whether or not to disallow shared libs when runtime libs are static 13404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13405 13406# Whether or not to optimize for fast installation. 13407fast_install=$enable_fast_install 13408 13409# The host system. 13410host_alias=$host_alias 13411host=$host 13412host_os=$host_os 13413 13414# The build system. 13415build_alias=$build_alias 13416build=$build 13417build_os=$build_os 13418 13419# An echo program that does not interpret backslashes. 13420echo=$lt_echo 13421 13422# The archiver. 13423AR=$lt_AR 13424AR_FLAGS=$lt_AR_FLAGS 13425 13426# A C compiler. 13427LTCC=$lt_LTCC 13428 13429# LTCC compiler flags. 13430LTCFLAGS=$lt_LTCFLAGS 13431 13432# A language-specific compiler. 13433CC=$lt_compiler_CXX 13434 13435# Is the compiler the GNU C compiler? 13436with_gcc=$GCC_CXX 13437 13438# An ERE matcher. 13439EGREP=$lt_EGREP 13440 13441# The linker used to build libraries. 13442LD=$lt_LD_CXX 13443 13444# Whether we need hard or soft links. 13445LN_S=$lt_LN_S 13446 13447# A BSD-compatible nm program. 13448NM=$lt_NM 13449 13450# A symbol stripping program 13451STRIP=$lt_STRIP 13452 13453# Used to examine libraries when file_magic_cmd begins "file" 13454MAGIC_CMD=$MAGIC_CMD 13455 13456# Used on cygwin: DLL creation program. 13457DLLTOOL="$DLLTOOL" 13458 13459# Used on cygwin: object dumper. 13460OBJDUMP="$OBJDUMP" 13461 13462# Used on cygwin: assembler. 13463AS="$AS" 13464 13465# The name of the directory that contains temporary libtool files. 13466objdir=$objdir 13467 13468# How to create reloadable object files. 13469reload_flag=$lt_reload_flag 13470reload_cmds=$lt_reload_cmds 13471 13472# How to pass a linker flag through the compiler. 13473wl=$lt_lt_prog_compiler_wl_CXX 13474 13475# Object file suffix (normally "o"). 13476objext="$ac_objext" 13477 13478# Old archive suffix (normally "a"). 13479libext="$libext" 13480 13481# Shared library suffix (normally ".so"). 13482shrext_cmds='$shrext_cmds' 13483 13484# Executable file suffix (normally ""). 13485exeext="$exeext" 13486 13487# Additional compiler flags for building library objects. 13488pic_flag=$lt_lt_prog_compiler_pic_CXX 13489pic_mode=$pic_mode 13490 13491# What is the maximum length of a command? 13492max_cmd_len=$lt_cv_sys_max_cmd_len 13493 13494# Does compiler simultaneously support -c and -o options? 13495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13496 13497# Must we lock files when doing compilation? 13498need_locks=$lt_need_locks 13499 13500# Do we need the lib prefix for modules? 13501need_lib_prefix=$need_lib_prefix 13502 13503# Do we need a version for libraries? 13504need_version=$need_version 13505 13506# Whether dlopen is supported. 13507dlopen_support=$enable_dlopen 13508 13509# Whether dlopen of programs is supported. 13510dlopen_self=$enable_dlopen_self 13511 13512# Whether dlopen of statically linked programs is supported. 13513dlopen_self_static=$enable_dlopen_self_static 13514 13515# Compiler flag to prevent dynamic linking. 13516link_static_flag=$lt_lt_prog_compiler_static_CXX 13517 13518# Compiler flag to turn off builtin functions. 13519no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13520 13521# Compiler flag to allow reflexive dlopens. 13522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13523 13524# Compiler flag to generate shared objects directly from archives. 13525whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13526 13527# Compiler flag to generate thread-safe objects. 13528thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13529 13530# Library versioning type. 13531version_type=$version_type 13532 13533# Format of library name prefix. 13534libname_spec=$lt_libname_spec 13535 13536# List of archive names. First name is the real one, the rest are links. 13537# The last name is the one that the linker finds with -lNAME. 13538library_names_spec=$lt_library_names_spec 13539 13540# The coded name of the library, if different from the real name. 13541soname_spec=$lt_soname_spec 13542 13543# Commands used to build and install an old-style archive. 13544RANLIB=$lt_RANLIB 13545old_archive_cmds=$lt_old_archive_cmds_CXX 13546old_postinstall_cmds=$lt_old_postinstall_cmds 13547old_postuninstall_cmds=$lt_old_postuninstall_cmds 13548 13549# Create an old-style archive from a shared archive. 13550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13551 13552# Create a temporary old-style archive to link instead of a shared archive. 13553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13554 13555# Commands used to build and install a shared archive. 13556archive_cmds=$lt_archive_cmds_CXX 13557archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13558postinstall_cmds=$lt_postinstall_cmds 13559postuninstall_cmds=$lt_postuninstall_cmds 13560 13561# Commands used to build a loadable module (assumed same as above if empty) 13562module_cmds=$lt_module_cmds_CXX 13563module_expsym_cmds=$lt_module_expsym_cmds_CXX 13564 13565# Commands to strip libraries. 13566old_striplib=$lt_old_striplib 13567striplib=$lt_striplib 13568 13569# Dependencies to place before the objects being linked to create a 13570# shared library. 13571predep_objects=$lt_predep_objects_CXX 13572 13573# Dependencies to place after the objects being linked to create a 13574# shared library. 13575postdep_objects=$lt_postdep_objects_CXX 13576 13577# Dependencies to place before the objects being linked to create a 13578# shared library. 13579predeps=$lt_predeps_CXX 13580 13581# Dependencies to place after the objects being linked to create a 13582# shared library. 13583postdeps=$lt_postdeps_CXX 13584 13585# The directories searched by this compiler when creating a shared 13586# library 13587compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13588 13589# The library search path used internally by the compiler when linking 13590# a shared library. 13591compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13592 13593# Method to check whether dependent libraries are shared objects. 13594deplibs_check_method=$lt_deplibs_check_method 13595 13596# Command to use when deplibs_check_method == file_magic. 13597file_magic_cmd=$lt_file_magic_cmd 13598 13599# Flag that allows shared libraries with undefined symbols to be built. 13600allow_undefined_flag=$lt_allow_undefined_flag_CXX 13601 13602# Flag that forces no undefined symbols. 13603no_undefined_flag=$lt_no_undefined_flag_CXX 13604 13605# Commands used to finish a libtool library installation in a directory. 13606finish_cmds=$lt_finish_cmds 13607 13608# Same as above, but a single script fragment to be evaled but not shown. 13609finish_eval=$lt_finish_eval 13610 13611# Take the output of nm and produce a listing of raw symbols and C names. 13612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13613 13614# Transform the output of nm in a proper C declaration 13615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13616 13617# Transform the output of nm in a C name address pair 13618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13619 13620# This is the shared library runtime path variable. 13621runpath_var=$runpath_var 13622 13623# This is the shared library path variable. 13624shlibpath_var=$shlibpath_var 13625 13626# Is shlibpath searched before the hard-coded library search path? 13627shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13628 13629# How to hardcode a shared library path into an executable. 13630hardcode_action=$hardcode_action_CXX 13631 13632# Whether we should hardcode library paths into libraries. 13633hardcode_into_libs=$hardcode_into_libs 13634 13635# Flag to hardcode \$libdir into a binary during linking. 13636# This must work even if \$libdir does not exist. 13637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13638 13639# If ld is used when linking, flag to hardcode \$libdir into 13640# a binary during linking. This must work even if \$libdir does 13641# not exist. 13642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13643 13644# Whether we need a single -rpath flag with a separated argument. 13645hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13646 13647# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13648# resulting binary. 13649hardcode_direct=$hardcode_direct_CXX 13650 13651# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13652# resulting binary. 13653hardcode_minus_L=$hardcode_minus_L_CXX 13654 13655# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13656# the resulting binary. 13657hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13658 13659# Set to yes if building a shared library automatically hardcodes DIR into the library 13660# and all subsequent libraries and executables linked against it. 13661hardcode_automatic=$hardcode_automatic_CXX 13662 13663# Variables whose values should be saved in libtool wrapper scripts and 13664# restored at relink time. 13665variables_saved_for_relink="$variables_saved_for_relink" 13666 13667# Whether libtool must link a program against all its dependency libraries. 13668link_all_deplibs=$link_all_deplibs_CXX 13669 13670# Compile-time system search path for libraries 13671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13672 13673# Run-time system search path for libraries 13674sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13675 13676# Fix the shell variable \$srcfile for the compiler. 13677fix_srcfile_path=$lt_fix_srcfile_path 13678 13679# Set to yes if exported symbols are required. 13680always_export_symbols=$always_export_symbols_CXX 13681 13682# The commands to list exported symbols. 13683export_symbols_cmds=$lt_export_symbols_cmds_CXX 13684 13685# The commands to extract the exported symbol list from a shared archive. 13686extract_expsyms_cmds=$lt_extract_expsyms_cmds 13687 13688# Symbols that should not be listed in the preloaded symbols. 13689exclude_expsyms=$lt_exclude_expsyms_CXX 13690 13691# Symbols that must always be exported. 13692include_expsyms=$lt_include_expsyms_CXX 13693 13694# ### END LIBTOOL TAG CONFIG: $tagname 13695 13696__EOF__ 13697 13698 13699else 13700 # If there is no Makefile yet, we rely on a make rule to execute 13701 # `config.status --recheck' to rerun these tests and create the 13702 # libtool script then. 13703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13704 if test -f "$ltmain_in"; then 13705 test -f Makefile && make "$ltmain" 13706 fi 13707fi 13708 13709 13710ac_ext=c 13711ac_cpp='$CPP $CPPFLAGS' 13712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13714ac_compiler_gnu=$ac_cv_c_compiler_gnu 13715 13716CC=$lt_save_CC 13717LDCXX=$LD 13718LD=$lt_save_LD 13719GCC=$lt_save_GCC 13720with_gnu_ldcxx=$with_gnu_ld 13721with_gnu_ld=$lt_save_with_gnu_ld 13722lt_cv_path_LDCXX=$lt_cv_path_LD 13723lt_cv_path_LD=$lt_save_path_LD 13724lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13725lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13726 13727 else 13728 tagname="" 13729 fi 13730 ;; 13731 13732 F77) 13733 if test -n "$F77" && test "X$F77" != "Xno"; then 13734 13735ac_ext=f 13736ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13737ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13738ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13739 13740 13741archive_cmds_need_lc_F77=no 13742allow_undefined_flag_F77= 13743always_export_symbols_F77=no 13744archive_expsym_cmds_F77= 13745export_dynamic_flag_spec_F77= 13746hardcode_direct_F77=no 13747hardcode_libdir_flag_spec_F77= 13748hardcode_libdir_flag_spec_ld_F77= 13749hardcode_libdir_separator_F77= 13750hardcode_minus_L_F77=no 13751hardcode_automatic_F77=no 13752module_cmds_F77= 13753module_expsym_cmds_F77= 13754link_all_deplibs_F77=unknown 13755old_archive_cmds_F77=$old_archive_cmds 13756no_undefined_flag_F77= 13757whole_archive_flag_spec_F77= 13758enable_shared_with_static_runtimes_F77=no 13759 13760# Source file extension for f77 test sources. 13761ac_ext=f 13762 13763# Object file extension for compiled f77 test sources. 13764objext=o 13765objext_F77=$objext 13766 13767# Code to be used in simple compile tests 13768lt_simple_compile_test_code="\ 13769 subroutine t 13770 return 13771 end 13772" 13773 13774# Code to be used in simple link tests 13775lt_simple_link_test_code="\ 13776 program t 13777 end 13778" 13779 13780# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13781 13782# If no C compiler was specified, use CC. 13783LTCC=${LTCC-"$CC"} 13784 13785# If no C compiler flags were specified, use CFLAGS. 13786LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13787 13788# Allow CC to be a program name with arguments. 13789compiler=$CC 13790 13791 13792# save warnings/boilerplate of simple test code 13793ac_outfile=conftest.$ac_objext 13794echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13795eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13796_lt_compiler_boilerplate=`cat conftest.err` 13797$rm conftest* 13798 13799ac_outfile=conftest.$ac_objext 13800echo "$lt_simple_link_test_code" >conftest.$ac_ext 13801eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13802_lt_linker_boilerplate=`cat conftest.err` 13803$rm -r conftest* 13804 13805 13806# Allow CC to be a program name with arguments. 13807lt_save_CC="$CC" 13808CC=${F77-"f77"} 13809compiler=$CC 13810compiler_F77=$CC 13811for cc_temp in $compiler""; do 13812 case $cc_temp in 13813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13815 \-*) ;; 13816 *) break;; 13817 esac 13818done 13819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13820 13821 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13823$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13825$as_echo "$can_build_shared" >&6; } 13826 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13828$as_echo_n "checking whether to build shared libraries... " >&6; } 13829test "$can_build_shared" = "no" && enable_shared=no 13830 13831# On AIX, shared libraries and static libraries use the same namespace, and 13832# are all built from PIC. 13833case $host_os in 13834aix3*) 13835 test "$enable_shared" = yes && enable_static=no 13836 if test -n "$RANLIB"; then 13837 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13838 postinstall_cmds='$RANLIB $lib' 13839 fi 13840 ;; 13841aix[4-9]*) 13842 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13843 test "$enable_shared" = yes && enable_static=no 13844 fi 13845 ;; 13846esac 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13848$as_echo "$enable_shared" >&6; } 13849 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13851$as_echo_n "checking whether to build static libraries... " >&6; } 13852# Make sure either enable_shared or enable_static is yes. 13853test "$enable_shared" = yes || enable_static=yes 13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13855$as_echo "$enable_static" >&6; } 13856 13857GCC_F77="$G77" 13858LD_F77="$LD" 13859 13860lt_prog_compiler_wl_F77= 13861lt_prog_compiler_pic_F77= 13862lt_prog_compiler_static_F77= 13863 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13865$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13866 13867 if test "$GCC" = yes; then 13868 lt_prog_compiler_wl_F77='-Wl,' 13869 lt_prog_compiler_static_F77='-static' 13870 13871 case $host_os in 13872 aix*) 13873 # All AIX code is PIC. 13874 if test "$host_cpu" = ia64; then 13875 # AIX 5 now supports IA64 processor 13876 lt_prog_compiler_static_F77='-Bstatic' 13877 fi 13878 ;; 13879 13880 amigaos*) 13881 # FIXME: we need at least 68020 code to build shared libraries, but 13882 # adding the `-m68020' flag to GCC prevents building anything better, 13883 # like `-m68040'. 13884 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13885 ;; 13886 13887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13888 # PIC is the default for these OSes. 13889 ;; 13890 13891 mingw* | cygwin* | pw32* | os2*) 13892 # This hack is so that the source file can tell whether it is being 13893 # built for inclusion in a dll (and should export symbols for example). 13894 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13895 # (--disable-auto-import) libraries 13896 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13897 ;; 13898 13899 darwin* | rhapsody*) 13900 # PIC is the default on this platform 13901 # Common symbols not allowed in MH_DYLIB files 13902 lt_prog_compiler_pic_F77='-fno-common' 13903 ;; 13904 13905 interix[3-9]*) 13906 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13907 # Instead, we relocate shared libraries at runtime. 13908 ;; 13909 13910 msdosdjgpp*) 13911 # Just because we use GCC doesn't mean we suddenly get shared libraries 13912 # on systems that don't support them. 13913 lt_prog_compiler_can_build_shared_F77=no 13914 enable_shared=no 13915 ;; 13916 13917 sysv4*MP*) 13918 if test -d /usr/nec; then 13919 lt_prog_compiler_pic_F77=-Kconform_pic 13920 fi 13921 ;; 13922 13923 hpux*) 13924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13925 # not for PA HP-UX. 13926 case $host_cpu in 13927 hppa*64*|ia64*) 13928 # +Z the default 13929 ;; 13930 *) 13931 lt_prog_compiler_pic_F77='-fPIC' 13932 ;; 13933 esac 13934 ;; 13935 13936 *) 13937 lt_prog_compiler_pic_F77='-fPIC' 13938 ;; 13939 esac 13940 else 13941 # PORTME Check for flag to pass linker flags through the system compiler. 13942 case $host_os in 13943 aix*) 13944 lt_prog_compiler_wl_F77='-Wl,' 13945 if test "$host_cpu" = ia64; then 13946 # AIX 5 now supports IA64 processor 13947 lt_prog_compiler_static_F77='-Bstatic' 13948 else 13949 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13950 fi 13951 ;; 13952 darwin*) 13953 # PIC is the default on this platform 13954 # Common symbols not allowed in MH_DYLIB files 13955 case $cc_basename in 13956 xlc*) 13957 lt_prog_compiler_pic_F77='-qnocommon' 13958 lt_prog_compiler_wl_F77='-Wl,' 13959 ;; 13960 esac 13961 ;; 13962 13963 mingw* | cygwin* | pw32* | os2*) 13964 # This hack is so that the source file can tell whether it is being 13965 # built for inclusion in a dll (and should export symbols for example). 13966 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13967 ;; 13968 13969 hpux9* | hpux10* | hpux11*) 13970 lt_prog_compiler_wl_F77='-Wl,' 13971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13972 # not for PA HP-UX. 13973 case $host_cpu in 13974 hppa*64*|ia64*) 13975 # +Z the default 13976 ;; 13977 *) 13978 lt_prog_compiler_pic_F77='+Z' 13979 ;; 13980 esac 13981 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13982 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13983 ;; 13984 13985 irix5* | irix6* | nonstopux*) 13986 lt_prog_compiler_wl_F77='-Wl,' 13987 # PIC (with -KPIC) is the default. 13988 lt_prog_compiler_static_F77='-non_shared' 13989 ;; 13990 13991 newsos6) 13992 lt_prog_compiler_pic_F77='-KPIC' 13993 lt_prog_compiler_static_F77='-Bstatic' 13994 ;; 13995 13996 linux* | k*bsd*-gnu) 13997 case $cc_basename in 13998 icc* | ecc*) 13999 lt_prog_compiler_wl_F77='-Wl,' 14000 lt_prog_compiler_pic_F77='-KPIC' 14001 lt_prog_compiler_static_F77='-static' 14002 ;; 14003 pgcc* | pgf77* | pgf90* | pgf95*) 14004 # Portland Group compilers (*not* the Pentium gcc compiler, 14005 # which looks to be a dead project) 14006 lt_prog_compiler_wl_F77='-Wl,' 14007 lt_prog_compiler_pic_F77='-fpic' 14008 lt_prog_compiler_static_F77='-Bstatic' 14009 ;; 14010 ccc*) 14011 lt_prog_compiler_wl_F77='-Wl,' 14012 # All Alpha code is PIC. 14013 lt_prog_compiler_static_F77='-non_shared' 14014 ;; 14015 *) 14016 case `$CC -V 2>&1 | sed 5q` in 14017 *Sun\ C*) 14018 # Sun C 5.9 14019 lt_prog_compiler_pic_F77='-KPIC' 14020 lt_prog_compiler_static_F77='-Bstatic' 14021 lt_prog_compiler_wl_F77='-Wl,' 14022 ;; 14023 *Sun\ F*) 14024 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14025 lt_prog_compiler_pic_F77='-KPIC' 14026 lt_prog_compiler_static_F77='-Bstatic' 14027 lt_prog_compiler_wl_F77='' 14028 ;; 14029 esac 14030 ;; 14031 esac 14032 ;; 14033 14034 osf3* | osf4* | osf5*) 14035 lt_prog_compiler_wl_F77='-Wl,' 14036 # All OSF/1 code is PIC. 14037 lt_prog_compiler_static_F77='-non_shared' 14038 ;; 14039 14040 rdos*) 14041 lt_prog_compiler_static_F77='-non_shared' 14042 ;; 14043 14044 solaris*) 14045 lt_prog_compiler_pic_F77='-KPIC' 14046 lt_prog_compiler_static_F77='-Bstatic' 14047 case $cc_basename in 14048 f77* | f90* | f95*) 14049 lt_prog_compiler_wl_F77='-Qoption ld ';; 14050 *) 14051 lt_prog_compiler_wl_F77='-Wl,';; 14052 esac 14053 ;; 14054 14055 sunos4*) 14056 lt_prog_compiler_wl_F77='-Qoption ld ' 14057 lt_prog_compiler_pic_F77='-PIC' 14058 lt_prog_compiler_static_F77='-Bstatic' 14059 ;; 14060 14061 sysv4 | sysv4.2uw2* | sysv4.3*) 14062 lt_prog_compiler_wl_F77='-Wl,' 14063 lt_prog_compiler_pic_F77='-KPIC' 14064 lt_prog_compiler_static_F77='-Bstatic' 14065 ;; 14066 14067 sysv4*MP*) 14068 if test -d /usr/nec ;then 14069 lt_prog_compiler_pic_F77='-Kconform_pic' 14070 lt_prog_compiler_static_F77='-Bstatic' 14071 fi 14072 ;; 14073 14074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14075 lt_prog_compiler_wl_F77='-Wl,' 14076 lt_prog_compiler_pic_F77='-KPIC' 14077 lt_prog_compiler_static_F77='-Bstatic' 14078 ;; 14079 14080 unicos*) 14081 lt_prog_compiler_wl_F77='-Wl,' 14082 lt_prog_compiler_can_build_shared_F77=no 14083 ;; 14084 14085 uts4*) 14086 lt_prog_compiler_pic_F77='-pic' 14087 lt_prog_compiler_static_F77='-Bstatic' 14088 ;; 14089 14090 *) 14091 lt_prog_compiler_can_build_shared_F77=no 14092 ;; 14093 esac 14094 fi 14095 14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 14097$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14098 14099# 14100# Check to make sure the PIC flag actually works. 14101# 14102if test -n "$lt_prog_compiler_pic_F77"; then 14103 14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14105$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14106if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 14107 $as_echo_n "(cached) " >&6 14108else 14109 lt_cv_prog_compiler_pic_works_F77=no 14110 ac_outfile=conftest.$ac_objext 14111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14112 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14113 # Insert the option either (1) after the last *FLAGS variable, or 14114 # (2) before a word containing "conftest.", or (3) at the end. 14115 # Note that $ac_compile itself does not contain backslashes and begins 14116 # with a dollar sign (not a hyphen), so the echo should work correctly. 14117 # The option is referenced via a variable to avoid confusing sed. 14118 lt_compile=`echo "$ac_compile" | $SED \ 14119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14121 -e 's:$: $lt_compiler_flag:'` 14122 (eval echo "\"\$as_me:14122: $lt_compile\"" >&5) 14123 (eval "$lt_compile" 2>conftest.err) 14124 ac_status=$? 14125 cat conftest.err >&5 14126 echo "$as_me:14126: \$? = $ac_status" >&5 14127 if (exit $ac_status) && test -s "$ac_outfile"; then 14128 # The compiler can only warn and ignore the option if not recognized 14129 # So say no if there are warnings other than the usual output. 14130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14133 lt_cv_prog_compiler_pic_works_F77=yes 14134 fi 14135 fi 14136 $rm conftest* 14137 14138fi 14139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14140$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14141 14142if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14143 case $lt_prog_compiler_pic_F77 in 14144 "" | " "*) ;; 14145 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14146 esac 14147else 14148 lt_prog_compiler_pic_F77= 14149 lt_prog_compiler_can_build_shared_F77=no 14150fi 14151 14152fi 14153case $host_os in 14154 # For platforms which do not support PIC, -DPIC is meaningless: 14155 *djgpp*) 14156 lt_prog_compiler_pic_F77= 14157 ;; 14158 *) 14159 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14160 ;; 14161esac 14162 14163# 14164# Check to make sure the static flag actually works. 14165# 14166wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14168$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14169if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 lt_cv_prog_compiler_static_works_F77=no 14173 save_LDFLAGS="$LDFLAGS" 14174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14175 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14177 # The linker can only warn and ignore the option if not recognized 14178 # So say no if there are warnings 14179 if test -s conftest.err; then 14180 # Append any errors to the config.log. 14181 cat conftest.err 1>&5 14182 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14184 if diff conftest.exp conftest.er2 >/dev/null; then 14185 lt_cv_prog_compiler_static_works_F77=yes 14186 fi 14187 else 14188 lt_cv_prog_compiler_static_works_F77=yes 14189 fi 14190 fi 14191 $rm -r conftest* 14192 LDFLAGS="$save_LDFLAGS" 14193 14194fi 14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 14196$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14197 14198if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14199 : 14200else 14201 lt_prog_compiler_static_F77= 14202fi 14203 14204 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14206$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14207if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 14208 $as_echo_n "(cached) " >&6 14209else 14210 lt_cv_prog_compiler_c_o_F77=no 14211 $rm -r conftest 2>/dev/null 14212 mkdir conftest 14213 cd conftest 14214 mkdir out 14215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14216 14217 lt_compiler_flag="-o out/conftest2.$ac_objext" 14218 # Insert the option either (1) after the last *FLAGS variable, or 14219 # (2) before a word containing "conftest.", or (3) at the end. 14220 # Note that $ac_compile itself does not contain backslashes and begins 14221 # with a dollar sign (not a hyphen), so the echo should work correctly. 14222 lt_compile=`echo "$ac_compile" | $SED \ 14223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14225 -e 's:$: $lt_compiler_flag:'` 14226 (eval echo "\"\$as_me:14226: $lt_compile\"" >&5) 14227 (eval "$lt_compile" 2>out/conftest.err) 14228 ac_status=$? 14229 cat out/conftest.err >&5 14230 echo "$as_me:14230: \$? = $ac_status" >&5 14231 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14232 then 14233 # The compiler can only warn and ignore the option if not recognized 14234 # So say no if there are warnings 14235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14238 lt_cv_prog_compiler_c_o_F77=yes 14239 fi 14240 fi 14241 chmod u+w . 2>&5 14242 $rm conftest* 14243 # SGI C++ compiler will create directory out/ii_files/ for 14244 # template instantiation 14245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14246 $rm out/* && rmdir out 14247 cd .. 14248 rmdir conftest 14249 $rm conftest* 14250 14251fi 14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14253$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14254 14255 14256hard_links="nottested" 14257if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14258 # do not overwrite the value of need_locks provided by the user 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14260$as_echo_n "checking if we can lock with hard links... " >&6; } 14261 hard_links=yes 14262 $rm conftest* 14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14264 touch conftest.a 14265 ln conftest.a conftest.b 2>&5 || hard_links=no 14266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14268$as_echo "$hard_links" >&6; } 14269 if test "$hard_links" = no; then 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14271$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14272 need_locks=warn 14273 fi 14274else 14275 need_locks=no 14276fi 14277 14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14279$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14280 14281 runpath_var= 14282 allow_undefined_flag_F77= 14283 enable_shared_with_static_runtimes_F77=no 14284 archive_cmds_F77= 14285 archive_expsym_cmds_F77= 14286 old_archive_From_new_cmds_F77= 14287 old_archive_from_expsyms_cmds_F77= 14288 export_dynamic_flag_spec_F77= 14289 whole_archive_flag_spec_F77= 14290 thread_safe_flag_spec_F77= 14291 hardcode_libdir_flag_spec_F77= 14292 hardcode_libdir_flag_spec_ld_F77= 14293 hardcode_libdir_separator_F77= 14294 hardcode_direct_F77=no 14295 hardcode_minus_L_F77=no 14296 hardcode_shlibpath_var_F77=unsupported 14297 link_all_deplibs_F77=unknown 14298 hardcode_automatic_F77=no 14299 module_cmds_F77= 14300 module_expsym_cmds_F77= 14301 always_export_symbols_F77=no 14302 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14303 # include_expsyms should be a list of space-separated symbols to be *always* 14304 # included in the symbol list 14305 include_expsyms_F77= 14306 # exclude_expsyms can be an extended regexp of symbols to exclude 14307 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14309 # as well as any symbol that contains `d'. 14310 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14312 # platforms (ab)use it in PIC code, but their linkers get confused if 14313 # the symbol is explicitly referenced. Since portable code cannot 14314 # rely on this symbol name, it's probably fine to never include it in 14315 # preloaded symbol tables. 14316 # Exclude shared library initialization/finalization symbols. 14317 extract_expsyms_cmds= 14318 # Just being paranoid about ensuring that cc_basename is set. 14319 for cc_temp in $compiler""; do 14320 case $cc_temp in 14321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14323 \-*) ;; 14324 *) break;; 14325 esac 14326done 14327cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14328 14329 case $host_os in 14330 cygwin* | mingw* | pw32*) 14331 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14332 # When not using gcc, we currently assume that we are using 14333 # Microsoft Visual C++. 14334 if test "$GCC" != yes; then 14335 with_gnu_ld=no 14336 fi 14337 ;; 14338 interix*) 14339 # we just hope/assume this is gcc and not c89 (= MSVC++) 14340 with_gnu_ld=yes 14341 ;; 14342 openbsd*) 14343 with_gnu_ld=no 14344 ;; 14345 esac 14346 14347 ld_shlibs_F77=yes 14348 if test "$with_gnu_ld" = yes; then 14349 # If archive_cmds runs LD, not CC, wlarc should be empty 14350 wlarc='${wl}' 14351 14352 # Set some defaults for GNU ld with shared library support. These 14353 # are reset later if shared libraries are not supported. Putting them 14354 # here allows them to be overridden if necessary. 14355 runpath_var=LD_RUN_PATH 14356 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14357 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14358 # ancient GNU ld didn't support --whole-archive et. al. 14359 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14360 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14361 else 14362 whole_archive_flag_spec_F77= 14363 fi 14364 supports_anon_versioning=no 14365 case `$LD -v 2>/dev/null` in 14366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14369 *\ 2.11.*) ;; # other 2.11 versions 14370 *) supports_anon_versioning=yes ;; 14371 esac 14372 14373 # See if GNU ld supports shared libraries. 14374 case $host_os in 14375 aix[3-9]*) 14376 # On AIX/PPC, the GNU linker is very broken 14377 if test "$host_cpu" != ia64; then 14378 ld_shlibs_F77=no 14379 cat <<EOF 1>&2 14380 14381*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14382*** to be unable to reliably create shared libraries on AIX. 14383*** Therefore, libtool is disabling shared libraries support. If you 14384*** really care for shared libraries, you may want to modify your PATH 14385*** so that a non-GNU linker is found, and then restart. 14386 14387EOF 14388 fi 14389 ;; 14390 14391 amigaos*) 14392 archive_cmds_F77='$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)' 14393 hardcode_libdir_flag_spec_F77='-L$libdir' 14394 hardcode_minus_L_F77=yes 14395 14396 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14397 # that the semantics of dynamic libraries on AmigaOS, at least up 14398 # to version 4, is to share data among multiple programs linked 14399 # with the same dynamic library. Since this doesn't match the 14400 # behavior of shared libraries on other platforms, we can't use 14401 # them. 14402 ld_shlibs_F77=no 14403 ;; 14404 14405 beos*) 14406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14407 allow_undefined_flag_F77=unsupported 14408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14409 # support --undefined. This deserves some investigation. FIXME 14410 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14411 else 14412 ld_shlibs_F77=no 14413 fi 14414 ;; 14415 14416 cygwin* | mingw* | pw32*) 14417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14418 # as there is no search path for DLLs. 14419 hardcode_libdir_flag_spec_F77='-L$libdir' 14420 allow_undefined_flag_F77=unsupported 14421 always_export_symbols_F77=no 14422 enable_shared_with_static_runtimes_F77=yes 14423 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14424 14425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14427 # If the export-symbols file already is a .def file (1st line 14428 # is EXPORTS), use it as is; otherwise, prepend... 14429 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14430 cp $export_symbols $output_objdir/$soname.def; 14431 else 14432 echo EXPORTS > $output_objdir/$soname.def; 14433 cat $export_symbols >> $output_objdir/$soname.def; 14434 fi~ 14435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14436 else 14437 ld_shlibs_F77=no 14438 fi 14439 ;; 14440 14441 interix[3-9]*) 14442 hardcode_direct_F77=no 14443 hardcode_shlibpath_var_F77=no 14444 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14445 export_dynamic_flag_spec_F77='${wl}-E' 14446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14447 # Instead, shared libraries are loaded at an image base (0x10000000 by 14448 # default) and relocated if they conflict, which is a slow very memory 14449 # consuming and fragmenting process. To avoid this, we pick a random, 14450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14451 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14452 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14453 archive_expsym_cmds_F77='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' 14454 ;; 14455 14456 gnu* | linux* | k*bsd*-gnu) 14457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14458 tmp_addflag= 14459 case $cc_basename,$host_cpu in 14460 pgcc*) # Portland Group C compiler 14461 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14462 tmp_addflag=' $pic_flag' 14463 ;; 14464 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14465 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14466 tmp_addflag=' $pic_flag -Mnomain' ;; 14467 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14468 tmp_addflag=' -i_dynamic' ;; 14469 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14470 tmp_addflag=' -i_dynamic -nofor_main' ;; 14471 ifc* | ifort*) # Intel Fortran compiler 14472 tmp_addflag=' -nofor_main' ;; 14473 esac 14474 case `$CC -V 2>&1 | sed 5q` in 14475 *Sun\ C*) # Sun C 5.9 14476 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14477 tmp_sharedflag='-G' ;; 14478 *Sun\ F*) # Sun Fortran 8.3 14479 tmp_sharedflag='-G' ;; 14480 *) 14481 tmp_sharedflag='-shared' ;; 14482 esac 14483 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14484 14485 if test $supports_anon_versioning = yes; then 14486 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14488 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14489 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14490 fi 14491 else 14492 ld_shlibs_F77=no 14493 fi 14494 ;; 14495 14496 netbsd*) 14497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14498 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14499 wlarc= 14500 else 14501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14503 fi 14504 ;; 14505 14506 solaris*) 14507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14508 ld_shlibs_F77=no 14509 cat <<EOF 1>&2 14510 14511*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14512*** create shared libraries on Solaris systems. Therefore, libtool 14513*** is disabling shared libraries support. We urge you to upgrade GNU 14514*** binutils to release 2.9.1 or newer. Another option is to modify 14515*** your PATH or compiler configuration so that the native linker is 14516*** used, and then restart. 14517 14518EOF 14519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14522 else 14523 ld_shlibs_F77=no 14524 fi 14525 ;; 14526 14527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14528 case `$LD -v 2>&1` in 14529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14530 ld_shlibs_F77=no 14531 cat <<_LT_EOF 1>&2 14532 14533*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14534*** reliably create shared libraries on SCO systems. Therefore, libtool 14535*** is disabling shared libraries support. We urge you to upgrade GNU 14536*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14537*** your PATH or compiler configuration so that the native linker is 14538*** used, and then restart. 14539 14540_LT_EOF 14541 ;; 14542 *) 14543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14544 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14547 else 14548 ld_shlibs_F77=no 14549 fi 14550 ;; 14551 esac 14552 ;; 14553 14554 sunos4*) 14555 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14556 wlarc= 14557 hardcode_direct_F77=yes 14558 hardcode_shlibpath_var_F77=no 14559 ;; 14560 14561 *) 14562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14563 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14564 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14565 else 14566 ld_shlibs_F77=no 14567 fi 14568 ;; 14569 esac 14570 14571 if test "$ld_shlibs_F77" = no; then 14572 runpath_var= 14573 hardcode_libdir_flag_spec_F77= 14574 export_dynamic_flag_spec_F77= 14575 whole_archive_flag_spec_F77= 14576 fi 14577 else 14578 # PORTME fill in a description of your system's linker (not GNU ld) 14579 case $host_os in 14580 aix3*) 14581 allow_undefined_flag_F77=unsupported 14582 always_export_symbols_F77=yes 14583 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14584 # Note: this linker hardcodes the directories in LIBPATH if there 14585 # are no directories specified by -L. 14586 hardcode_minus_L_F77=yes 14587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14588 # Neither direct hardcoding nor static linking is supported with a 14589 # broken collect2. 14590 hardcode_direct_F77=unsupported 14591 fi 14592 ;; 14593 14594 aix[4-9]*) 14595 if test "$host_cpu" = ia64; then 14596 # On IA64, the linker does run time linking by default, so we don't 14597 # have to do anything special. 14598 aix_use_runtimelinking=no 14599 exp_sym_flag='-Bexport' 14600 no_entry_flag="" 14601 else 14602 # If we're using GNU nm, then we don't want the "-C" option. 14603 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14605 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14606 else 14607 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14608 fi 14609 aix_use_runtimelinking=no 14610 14611 # Test if we are trying to use run time linking or normal 14612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14613 # need to do runtime linking. 14614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14615 for ld_flag in $LDFLAGS; do 14616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14617 aix_use_runtimelinking=yes 14618 break 14619 fi 14620 done 14621 ;; 14622 esac 14623 14624 exp_sym_flag='-bexport' 14625 no_entry_flag='-bnoentry' 14626 fi 14627 14628 # When large executables or shared objects are built, AIX ld can 14629 # have problems creating the table of contents. If linking a library 14630 # or program results in "error TOC overflow" add -mminimal-toc to 14631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14633 14634 archive_cmds_F77='' 14635 hardcode_direct_F77=yes 14636 hardcode_libdir_separator_F77=':' 14637 link_all_deplibs_F77=yes 14638 14639 if test "$GCC" = yes; then 14640 case $host_os in aix4.[012]|aix4.[012].*) 14641 # We only want to do this on AIX 4.2 and lower, the check 14642 # below for broken collect2 doesn't work under 4.3+ 14643 collect2name=`${CC} -print-prog-name=collect2` 14644 if test -f "$collect2name" && \ 14645 strings "$collect2name" | grep resolve_lib_name >/dev/null 14646 then 14647 # We have reworked collect2 14648 : 14649 else 14650 # We have old collect2 14651 hardcode_direct_F77=unsupported 14652 # It fails to find uninstalled libraries when the uninstalled 14653 # path is not listed in the libpath. Setting hardcode_minus_L 14654 # to unsupported forces relinking 14655 hardcode_minus_L_F77=yes 14656 hardcode_libdir_flag_spec_F77='-L$libdir' 14657 hardcode_libdir_separator_F77= 14658 fi 14659 ;; 14660 esac 14661 shared_flag='-shared' 14662 if test "$aix_use_runtimelinking" = yes; then 14663 shared_flag="$shared_flag "'${wl}-G' 14664 fi 14665 else 14666 # not using gcc 14667 if test "$host_cpu" = ia64; then 14668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14669 # chokes on -Wl,-G. The following line is correct: 14670 shared_flag='-G' 14671 else 14672 if test "$aix_use_runtimelinking" = yes; then 14673 shared_flag='${wl}-G' 14674 else 14675 shared_flag='${wl}-bM:SRE' 14676 fi 14677 fi 14678 fi 14679 14680 # It seems that -bexpall does not export symbols beginning with 14681 # underscore (_), so it is better to generate a list of symbols to export. 14682 always_export_symbols_F77=yes 14683 if test "$aix_use_runtimelinking" = yes; then 14684 # Warning - without using the other runtime loading flags (-brtl), 14685 # -berok will link without error, but may produce a broken library. 14686 allow_undefined_flag_F77='-berok' 14687 # Determine the default libpath from the value encoded in an empty executable. 14688 cat > conftest.$ac_ext <<_ACEOF 14689 program main 14690 14691 end 14692_ACEOF 14693if ac_fn_f77_try_link "$LINENO"; then : 14694 14695lt_aix_libpath_sed=' 14696 /Import File Strings/,/^$/ { 14697 /^0/ { 14698 s/^0 *\(.*\)$/\1/ 14699 p 14700 } 14701 }' 14702aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14703# Check for a 64-bit object if we didn't find anything. 14704if test -z "$aix_libpath"; then 14705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14706fi 14707fi 14708rm -f core conftest.err conftest.$ac_objext \ 14709 conftest$ac_exeext conftest.$ac_ext 14710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14711 14712 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14713 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14714 else 14715 if test "$host_cpu" = ia64; then 14716 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14717 allow_undefined_flag_F77="-z nodefs" 14718 archive_expsym_cmds_F77="\$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" 14719 else 14720 # Determine the default libpath from the value encoded in an empty executable. 14721 cat > conftest.$ac_ext <<_ACEOF 14722 program main 14723 14724 end 14725_ACEOF 14726if ac_fn_f77_try_link "$LINENO"; then : 14727 14728lt_aix_libpath_sed=' 14729 /Import File Strings/,/^$/ { 14730 /^0/ { 14731 s/^0 *\(.*\)$/\1/ 14732 p 14733 } 14734 }' 14735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14736# Check for a 64-bit object if we didn't find anything. 14737if test -z "$aix_libpath"; then 14738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14739fi 14740fi 14741rm -f core conftest.err conftest.$ac_objext \ 14742 conftest$ac_exeext conftest.$ac_ext 14743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14744 14745 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14746 # Warning - without using the other run time loading flags, 14747 # -berok will link without error, but may produce a broken library. 14748 no_undefined_flag_F77=' ${wl}-bernotok' 14749 allow_undefined_flag_F77=' ${wl}-berok' 14750 # Exported symbols can be pulled into shared objects from archives 14751 whole_archive_flag_spec_F77='$convenience' 14752 archive_cmds_need_lc_F77=yes 14753 # This is similar to how AIX traditionally builds its shared libraries. 14754 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14755 fi 14756 fi 14757 ;; 14758 14759 amigaos*) 14760 archive_cmds_F77='$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)' 14761 hardcode_libdir_flag_spec_F77='-L$libdir' 14762 hardcode_minus_L_F77=yes 14763 # see comment about different semantics on the GNU ld section 14764 ld_shlibs_F77=no 14765 ;; 14766 14767 bsdi[45]*) 14768 export_dynamic_flag_spec_F77=-rdynamic 14769 ;; 14770 14771 cygwin* | mingw* | pw32*) 14772 # When not using gcc, we currently assume that we are using 14773 # Microsoft Visual C++. 14774 # hardcode_libdir_flag_spec is actually meaningless, as there is 14775 # no search path for DLLs. 14776 hardcode_libdir_flag_spec_F77=' ' 14777 allow_undefined_flag_F77=unsupported 14778 # Tell ltmain to make .lib files, not .a files. 14779 libext=lib 14780 # Tell ltmain to make .dll files, not .so files. 14781 shrext_cmds=".dll" 14782 # FIXME: Setting linknames here is a bad hack. 14783 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14784 # The linker will automatically build a .lib file if we build a DLL. 14785 old_archive_From_new_cmds_F77='true' 14786 # FIXME: Should let the user specify the lib program. 14787 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14788 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14789 enable_shared_with_static_runtimes_F77=yes 14790 ;; 14791 14792 darwin* | rhapsody*) 14793 case $host_os in 14794 rhapsody* | darwin1.[012]) 14795 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14796 ;; 14797 *) # Darwin 1.3 on 14798 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14799 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14800 else 14801 case ${MACOSX_DEPLOYMENT_TARGET} in 14802 10.[012]) 14803 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14804 ;; 14805 10.*) 14806 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14807 ;; 14808 esac 14809 fi 14810 ;; 14811 esac 14812 archive_cmds_need_lc_F77=no 14813 hardcode_direct_F77=no 14814 hardcode_automatic_F77=yes 14815 hardcode_shlibpath_var_F77=unsupported 14816 whole_archive_flag_spec_F77='' 14817 link_all_deplibs_F77=yes 14818 if test "$GCC" = yes ; then 14819 output_verbose_link_cmd='echo' 14820 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14821 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14822 archive_expsym_cmds_F77="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}" 14823 module_expsym_cmds_F77="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}" 14824 else 14825 case $cc_basename in 14826 xlc*) 14827 output_verbose_link_cmd='echo' 14828 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14829 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14831 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14832 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14833 ;; 14834 *) 14835 ld_shlibs_F77=no 14836 ;; 14837 esac 14838 fi 14839 ;; 14840 14841 dgux*) 14842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14843 hardcode_libdir_flag_spec_F77='-L$libdir' 14844 hardcode_shlibpath_var_F77=no 14845 ;; 14846 14847 freebsd1*) 14848 ld_shlibs_F77=no 14849 ;; 14850 14851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14852 # support. Future versions do this automatically, but an explicit c++rt0.o 14853 # does not break anything, and helps significantly (at the cost of a little 14854 # extra space). 14855 freebsd2.2*) 14856 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14857 hardcode_libdir_flag_spec_F77='-R$libdir' 14858 hardcode_direct_F77=yes 14859 hardcode_shlibpath_var_F77=no 14860 ;; 14861 14862 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14863 freebsd2*) 14864 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14865 hardcode_direct_F77=yes 14866 hardcode_minus_L_F77=yes 14867 hardcode_shlibpath_var_F77=no 14868 ;; 14869 14870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14871 freebsd* | dragonfly*) 14872 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14873 hardcode_libdir_flag_spec_F77='-R$libdir' 14874 hardcode_direct_F77=yes 14875 hardcode_shlibpath_var_F77=no 14876 ;; 14877 14878 hpux9*) 14879 if test "$GCC" = yes; then 14880 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14881 else 14882 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14883 fi 14884 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14885 hardcode_libdir_separator_F77=: 14886 hardcode_direct_F77=yes 14887 14888 # hardcode_minus_L: Not really in the search PATH, 14889 # but as the default location of the library. 14890 hardcode_minus_L_F77=yes 14891 export_dynamic_flag_spec_F77='${wl}-E' 14892 ;; 14893 14894 hpux10*) 14895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14896 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14897 else 14898 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14899 fi 14900 if test "$with_gnu_ld" = no; then 14901 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14902 hardcode_libdir_separator_F77=: 14903 14904 hardcode_direct_F77=yes 14905 export_dynamic_flag_spec_F77='${wl}-E' 14906 14907 # hardcode_minus_L: Not really in the search PATH, 14908 # but as the default location of the library. 14909 hardcode_minus_L_F77=yes 14910 fi 14911 ;; 14912 14913 hpux11*) 14914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14915 case $host_cpu in 14916 hppa*64*) 14917 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14918 ;; 14919 ia64*) 14920 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14921 ;; 14922 *) 14923 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14924 ;; 14925 esac 14926 else 14927 case $host_cpu in 14928 hppa*64*) 14929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14930 ;; 14931 ia64*) 14932 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14933 ;; 14934 *) 14935 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14936 ;; 14937 esac 14938 fi 14939 if test "$with_gnu_ld" = no; then 14940 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14941 hardcode_libdir_separator_F77=: 14942 14943 case $host_cpu in 14944 hppa*64*|ia64*) 14945 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14946 hardcode_direct_F77=no 14947 hardcode_shlibpath_var_F77=no 14948 ;; 14949 *) 14950 hardcode_direct_F77=yes 14951 export_dynamic_flag_spec_F77='${wl}-E' 14952 14953 # hardcode_minus_L: Not really in the search PATH, 14954 # but as the default location of the library. 14955 hardcode_minus_L_F77=yes 14956 ;; 14957 esac 14958 fi 14959 ;; 14960 14961 irix5* | irix6* | nonstopux*) 14962 if test "$GCC" = yes; then 14963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14964 else 14965 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14966 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14967 fi 14968 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14969 hardcode_libdir_separator_F77=: 14970 link_all_deplibs_F77=yes 14971 ;; 14972 14973 netbsd*) 14974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14976 else 14977 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14978 fi 14979 hardcode_libdir_flag_spec_F77='-R$libdir' 14980 hardcode_direct_F77=yes 14981 hardcode_shlibpath_var_F77=no 14982 ;; 14983 14984 newsos6) 14985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14986 hardcode_direct_F77=yes 14987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14988 hardcode_libdir_separator_F77=: 14989 hardcode_shlibpath_var_F77=no 14990 ;; 14991 14992 openbsd*) 14993 if test -f /usr/libexec/ld.so; then 14994 hardcode_direct_F77=yes 14995 hardcode_shlibpath_var_F77=no 14996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14997 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14998 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15000 export_dynamic_flag_spec_F77='${wl}-E' 15001 else 15002 case $host_os in 15003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15005 hardcode_libdir_flag_spec_F77='-R$libdir' 15006 ;; 15007 *) 15008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15009 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15010 ;; 15011 esac 15012 fi 15013 else 15014 ld_shlibs_F77=no 15015 fi 15016 ;; 15017 15018 os2*) 15019 hardcode_libdir_flag_spec_F77='-L$libdir' 15020 hardcode_minus_L_F77=yes 15021 allow_undefined_flag_F77=unsupported 15022 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15023 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15024 ;; 15025 15026 osf3*) 15027 if test "$GCC" = yes; then 15028 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15029 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15030 else 15031 allow_undefined_flag_F77=' -expect_unresolved \*' 15032 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15033 fi 15034 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15035 hardcode_libdir_separator_F77=: 15036 ;; 15037 15038 osf4* | osf5*) # as osf3* with the addition of -msym flag 15039 if test "$GCC" = yes; then 15040 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15041 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15043 else 15044 allow_undefined_flag_F77=' -expect_unresolved \*' 15045 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15046 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15047 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15048 15049 # Both c and cxx compiler support -rpath directly 15050 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15051 fi 15052 hardcode_libdir_separator_F77=: 15053 ;; 15054 15055 solaris*) 15056 no_undefined_flag_F77=' -z text' 15057 if test "$GCC" = yes; then 15058 wlarc='${wl}' 15059 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15060 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15061 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15062 else 15063 wlarc='' 15064 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15065 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15067 fi 15068 hardcode_libdir_flag_spec_F77='-R$libdir' 15069 hardcode_shlibpath_var_F77=no 15070 case $host_os in 15071 solaris2.[0-5] | solaris2.[0-5].*) ;; 15072 *) 15073 # The compiler driver will combine and reorder linker options, 15074 # but understands `-z linker_flag'. GCC discards it without `$wl', 15075 # but is careful enough not to reorder. 15076 # Supported since Solaris 2.6 (maybe 2.5.1?) 15077 if test "$GCC" = yes; then 15078 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15079 else 15080 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15081 fi 15082 ;; 15083 esac 15084 link_all_deplibs_F77=yes 15085 ;; 15086 15087 sunos4*) 15088 if test "x$host_vendor" = xsequent; then 15089 # Use $CC to link under sequent, because it throws in some extra .o 15090 # files that make .init and .fini sections work. 15091 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15092 else 15093 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15094 fi 15095 hardcode_libdir_flag_spec_F77='-L$libdir' 15096 hardcode_direct_F77=yes 15097 hardcode_minus_L_F77=yes 15098 hardcode_shlibpath_var_F77=no 15099 ;; 15100 15101 sysv4) 15102 case $host_vendor in 15103 sni) 15104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15105 hardcode_direct_F77=yes # is this really true??? 15106 ;; 15107 siemens) 15108 ## LD is ld it makes a PLAMLIB 15109 ## CC just makes a GrossModule. 15110 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15111 reload_cmds_F77='$CC -r -o $output$reload_objs' 15112 hardcode_direct_F77=no 15113 ;; 15114 motorola) 15115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15116 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15117 ;; 15118 esac 15119 runpath_var='LD_RUN_PATH' 15120 hardcode_shlibpath_var_F77=no 15121 ;; 15122 15123 sysv4.3*) 15124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15125 hardcode_shlibpath_var_F77=no 15126 export_dynamic_flag_spec_F77='-Bexport' 15127 ;; 15128 15129 sysv4*MP*) 15130 if test -d /usr/nec; then 15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15132 hardcode_shlibpath_var_F77=no 15133 runpath_var=LD_RUN_PATH 15134 hardcode_runpath_var=yes 15135 ld_shlibs_F77=yes 15136 fi 15137 ;; 15138 15139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15140 no_undefined_flag_F77='${wl}-z,text' 15141 archive_cmds_need_lc_F77=no 15142 hardcode_shlibpath_var_F77=no 15143 runpath_var='LD_RUN_PATH' 15144 15145 if test "$GCC" = yes; then 15146 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15148 else 15149 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15150 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15151 fi 15152 ;; 15153 15154 sysv5* | sco3.2v5* | sco5v6*) 15155 # Note: We can NOT use -z defs as we might desire, because we do not 15156 # link with -lc, and that would cause any symbols used from libc to 15157 # always be unresolved, which means just about no library would 15158 # ever link correctly. If we're not using GNU ld we use -z text 15159 # though, which does catch some bad symbols but isn't as heavy-handed 15160 # as -z defs. 15161 no_undefined_flag_F77='${wl}-z,text' 15162 allow_undefined_flag_F77='${wl}-z,nodefs' 15163 archive_cmds_need_lc_F77=no 15164 hardcode_shlibpath_var_F77=no 15165 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15166 hardcode_libdir_separator_F77=':' 15167 link_all_deplibs_F77=yes 15168 export_dynamic_flag_spec_F77='${wl}-Bexport' 15169 runpath_var='LD_RUN_PATH' 15170 15171 if test "$GCC" = yes; then 15172 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15173 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15174 else 15175 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15176 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15177 fi 15178 ;; 15179 15180 uts4*) 15181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15182 hardcode_libdir_flag_spec_F77='-L$libdir' 15183 hardcode_shlibpath_var_F77=no 15184 ;; 15185 15186 *) 15187 ld_shlibs_F77=no 15188 ;; 15189 esac 15190 fi 15191 15192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15193$as_echo "$ld_shlibs_F77" >&6; } 15194test "$ld_shlibs_F77" = no && can_build_shared=no 15195 15196# 15197# Do we need to explicitly link libc? 15198# 15199case "x$archive_cmds_need_lc_F77" in 15200x|xyes) 15201 # Assume -lc should be added 15202 archive_cmds_need_lc_F77=yes 15203 15204 if test "$enable_shared" = yes && test "$GCC" = yes; then 15205 case $archive_cmds_F77 in 15206 *'~'*) 15207 # FIXME: we may have to deal with multi-command sequences. 15208 ;; 15209 '$CC '*) 15210 # Test whether the compiler implicitly links with -lc since on some 15211 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15212 # to ld, don't add -lc before -lgcc. 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15214$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15215 $rm conftest* 15216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15217 15218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15219 (eval $ac_compile) 2>&5 15220 ac_status=$? 15221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15222 test $ac_status = 0; } 2>conftest.err; then 15223 soname=conftest 15224 lib=conftest 15225 libobjs=conftest.$ac_objext 15226 deplibs= 15227 wl=$lt_prog_compiler_wl_F77 15228 pic_flag=$lt_prog_compiler_pic_F77 15229 compiler_flags=-v 15230 linker_flags=-v 15231 verstring= 15232 output_objdir=. 15233 libname=conftest 15234 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15235 allow_undefined_flag_F77= 15236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15237 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15238 ac_status=$? 15239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15240 test $ac_status = 0; } 15241 then 15242 archive_cmds_need_lc_F77=no 15243 else 15244 archive_cmds_need_lc_F77=yes 15245 fi 15246 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15247 else 15248 cat conftest.err 1>&5 15249 fi 15250 $rm conftest* 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 15252$as_echo "$archive_cmds_need_lc_F77" >&6; } 15253 ;; 15254 esac 15255 fi 15256 ;; 15257esac 15258 15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15260$as_echo_n "checking dynamic linker characteristics... " >&6; } 15261library_names_spec= 15262libname_spec='lib$name' 15263soname_spec= 15264shrext_cmds=".so" 15265postinstall_cmds= 15266postuninstall_cmds= 15267finish_cmds= 15268finish_eval= 15269shlibpath_var= 15270shlibpath_overrides_runpath=unknown 15271version_type=none 15272dynamic_linker="$host_os ld.so" 15273sys_lib_dlsearch_path_spec="/lib /usr/lib" 15274 15275need_lib_prefix=unknown 15276hardcode_into_libs=no 15277 15278# when you set need_version to no, make sure it does not cause -set_version 15279# flags to be left without arguments 15280need_version=unknown 15281 15282case $host_os in 15283aix3*) 15284 version_type=linux 15285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15286 shlibpath_var=LIBPATH 15287 15288 # AIX 3 has no versioning support, so we append a major version to the name. 15289 soname_spec='${libname}${release}${shared_ext}$major' 15290 ;; 15291 15292aix[4-9]*) 15293 version_type=linux 15294 need_lib_prefix=no 15295 need_version=no 15296 hardcode_into_libs=yes 15297 if test "$host_cpu" = ia64; then 15298 # AIX 5 supports IA64 15299 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15300 shlibpath_var=LD_LIBRARY_PATH 15301 else 15302 # With GCC up to 2.95.x, collect2 would create an import file 15303 # for dependence libraries. The import file would start with 15304 # the line `#! .'. This would cause the generated library to 15305 # depend on `.', always an invalid library. This was fixed in 15306 # development snapshots of GCC prior to 3.0. 15307 case $host_os in 15308 aix4 | aix4.[01] | aix4.[01].*) 15309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15310 echo ' yes ' 15311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15312 : 15313 else 15314 can_build_shared=no 15315 fi 15316 ;; 15317 esac 15318 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15319 # soname into executable. Probably we can add versioning support to 15320 # collect2, so additional links can be useful in future. 15321 if test "$aix_use_runtimelinking" = yes; then 15322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15323 # instead of lib<name>.a to let people know that these are not 15324 # typical AIX shared libraries. 15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15326 else 15327 # We preserve .a as extension for shared libraries through AIX4.2 15328 # and later when we are not doing run time linking. 15329 library_names_spec='${libname}${release}.a $libname.a' 15330 soname_spec='${libname}${release}${shared_ext}$major' 15331 fi 15332 shlibpath_var=LIBPATH 15333 fi 15334 ;; 15335 15336amigaos*) 15337 library_names_spec='$libname.ixlibrary $libname.a' 15338 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15339 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15340 ;; 15341 15342beos*) 15343 library_names_spec='${libname}${shared_ext}' 15344 dynamic_linker="$host_os ld.so" 15345 shlibpath_var=LIBRARY_PATH 15346 ;; 15347 15348bsdi[45]*) 15349 version_type=linux 15350 need_version=no 15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15352 soname_spec='${libname}${release}${shared_ext}$major' 15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15354 shlibpath_var=LD_LIBRARY_PATH 15355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15357 # the default ld.so.conf also contains /usr/contrib/lib and 15358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15359 # libtool to hard-code these into programs 15360 ;; 15361 15362cygwin* | mingw* | pw32*) 15363 version_type=windows 15364 shrext_cmds=".dll" 15365 need_version=no 15366 need_lib_prefix=no 15367 15368 case $GCC,$host_os in 15369 yes,cygwin* | yes,mingw* | yes,pw32*) 15370 library_names_spec='$libname.dll.a' 15371 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15372 postinstall_cmds='base_file=`basename \${file}`~ 15373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15374 dldir=$destdir/`dirname \$dlpath`~ 15375 test -d \$dldir || mkdir -p \$dldir~ 15376 $install_prog $dir/$dlname \$dldir/$dlname~ 15377 chmod a+x \$dldir/$dlname' 15378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15379 dlpath=$dir/\$dldll~ 15380 $rm \$dlpath' 15381 shlibpath_overrides_runpath=yes 15382 15383 case $host_os in 15384 cygwin*) 15385 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15387 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15388 ;; 15389 mingw*) 15390 # MinGW DLLs use traditional 'lib' prefix 15391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15393 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15394 # It is most probably a Windows format PATH printed by 15395 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15396 # path with ; separators, and with drive letters. We can handle the 15397 # drive letters (cygwin fileutils understands them), so leave them, 15398 # especially as we might pass files found there to a mingw objdump, 15399 # which wouldn't understand a cygwinified path. Ahh. 15400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15401 else 15402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15403 fi 15404 ;; 15405 pw32*) 15406 # pw32 DLLs use 'pw' prefix rather than 'lib' 15407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15408 ;; 15409 esac 15410 ;; 15411 15412 *) 15413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15414 ;; 15415 esac 15416 dynamic_linker='Win32 ld.exe' 15417 # FIXME: first we should search . and the directory the executable is in 15418 shlibpath_var=PATH 15419 ;; 15420 15421darwin* | rhapsody*) 15422 dynamic_linker="$host_os dyld" 15423 version_type=darwin 15424 need_lib_prefix=no 15425 need_version=no 15426 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15427 soname_spec='${libname}${release}${major}$shared_ext' 15428 shlibpath_overrides_runpath=yes 15429 shlibpath_var=DYLD_LIBRARY_PATH 15430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15431 15432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15433 ;; 15434 15435dgux*) 15436 version_type=linux 15437 need_lib_prefix=no 15438 need_version=no 15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15440 soname_spec='${libname}${release}${shared_ext}$major' 15441 shlibpath_var=LD_LIBRARY_PATH 15442 ;; 15443 15444freebsd1*) 15445 dynamic_linker=no 15446 ;; 15447 15448freebsd* | dragonfly*) 15449 # DragonFly does not have aout. When/if they implement a new 15450 # versioning mechanism, adjust this. 15451 if test -x /usr/bin/objformat; then 15452 objformat=`/usr/bin/objformat` 15453 else 15454 case $host_os in 15455 freebsd[123]*) objformat=aout ;; 15456 *) objformat=elf ;; 15457 esac 15458 fi 15459 version_type=freebsd-$objformat 15460 case $version_type in 15461 freebsd-elf*) 15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15463 need_version=no 15464 need_lib_prefix=no 15465 ;; 15466 freebsd-*) 15467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15468 need_version=yes 15469 ;; 15470 esac 15471 shlibpath_var=LD_LIBRARY_PATH 15472 case $host_os in 15473 freebsd2*) 15474 shlibpath_overrides_runpath=yes 15475 ;; 15476 freebsd3.[01]* | freebsdelf3.[01]*) 15477 shlibpath_overrides_runpath=yes 15478 hardcode_into_libs=yes 15479 ;; 15480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15482 shlibpath_overrides_runpath=no 15483 hardcode_into_libs=yes 15484 ;; 15485 *) # from 4.6 on, and DragonFly 15486 shlibpath_overrides_runpath=yes 15487 hardcode_into_libs=yes 15488 ;; 15489 esac 15490 ;; 15491 15492gnu*) 15493 version_type=linux 15494 need_lib_prefix=no 15495 need_version=no 15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15497 soname_spec='${libname}${release}${shared_ext}$major' 15498 shlibpath_var=LD_LIBRARY_PATH 15499 hardcode_into_libs=yes 15500 ;; 15501 15502hpux9* | hpux10* | hpux11*) 15503 # Give a soname corresponding to the major version so that dld.sl refuses to 15504 # link against other versions. 15505 version_type=sunos 15506 need_lib_prefix=no 15507 need_version=no 15508 case $host_cpu in 15509 ia64*) 15510 shrext_cmds='.so' 15511 hardcode_into_libs=yes 15512 dynamic_linker="$host_os dld.so" 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15516 soname_spec='${libname}${release}${shared_ext}$major' 15517 if test "X$HPUX_IA64_MODE" = X32; then 15518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15519 else 15520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15521 fi 15522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15523 ;; 15524 hppa*64*) 15525 shrext_cmds='.sl' 15526 hardcode_into_libs=yes 15527 dynamic_linker="$host_os dld.sl" 15528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15531 soname_spec='${libname}${release}${shared_ext}$major' 15532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15534 ;; 15535 *) 15536 shrext_cmds='.sl' 15537 dynamic_linker="$host_os dld.sl" 15538 shlibpath_var=SHLIB_PATH 15539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15541 soname_spec='${libname}${release}${shared_ext}$major' 15542 ;; 15543 esac 15544 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15545 postinstall_cmds='chmod 555 $lib' 15546 ;; 15547 15548interix[3-9]*) 15549 version_type=linux 15550 need_lib_prefix=no 15551 need_version=no 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15553 soname_spec='${libname}${release}${shared_ext}$major' 15554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15555 shlibpath_var=LD_LIBRARY_PATH 15556 shlibpath_overrides_runpath=no 15557 hardcode_into_libs=yes 15558 ;; 15559 15560irix5* | irix6* | nonstopux*) 15561 case $host_os in 15562 nonstopux*) version_type=nonstopux ;; 15563 *) 15564 if test "$lt_cv_prog_gnu_ld" = yes; then 15565 version_type=linux 15566 else 15567 version_type=irix 15568 fi ;; 15569 esac 15570 need_lib_prefix=no 15571 need_version=no 15572 soname_spec='${libname}${release}${shared_ext}$major' 15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15574 case $host_os in 15575 irix5* | nonstopux*) 15576 libsuff= shlibsuff= 15577 ;; 15578 *) 15579 case $LD in # libtool.m4 will add one of these switches to LD 15580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15581 libsuff= shlibsuff= libmagic=32-bit;; 15582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15583 libsuff=32 shlibsuff=N32 libmagic=N32;; 15584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15585 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15586 *) libsuff= shlibsuff= libmagic=never-match;; 15587 esac 15588 ;; 15589 esac 15590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15591 shlibpath_overrides_runpath=no 15592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15594 hardcode_into_libs=yes 15595 ;; 15596 15597# No shared lib support for Linux oldld, aout, or coff. 15598linux*oldld* | linux*aout* | linux*coff*) 15599 dynamic_linker=no 15600 ;; 15601 15602# This must be Linux ELF. 15603linux* | k*bsd*-gnu) 15604 version_type=linux 15605 need_lib_prefix=no 15606 need_version=no 15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15608 soname_spec='${libname}${release}${shared_ext}$major' 15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15610 shlibpath_var=LD_LIBRARY_PATH 15611 shlibpath_overrides_runpath=no 15612 # This implies no fast_install, which is unacceptable. 15613 # Some rework will be needed to allow for fast_install 15614 # before this can be enabled. 15615 hardcode_into_libs=yes 15616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15618 15619 # Append ld.so.conf contents to the search path 15620 if test -f /etc/ld.so.conf; then 15621 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;/^$/d' | tr '\n' ' '` 15622 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15623 fi 15624 15625 # We used to test for /lib/ld.so.1 and disable shared libraries on 15626 # powerpc, because MkLinux only supported shared libraries with the 15627 # GNU dynamic linker. Since this was broken with cross compilers, 15628 # most powerpc-linux boxes support dynamic linking these days and 15629 # people can always --disable-shared, the test was removed, and we 15630 # assume the GNU/Linux dynamic linker is in use. 15631 dynamic_linker='GNU/Linux ld.so' 15632 ;; 15633 15634netbsd*) 15635 version_type=sunos 15636 need_lib_prefix=no 15637 need_version=no 15638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15641 dynamic_linker='NetBSD (a.out) ld.so' 15642 else 15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15644 soname_spec='${libname}${release}${shared_ext}$major' 15645 dynamic_linker='NetBSD ld.elf_so' 15646 fi 15647 shlibpath_var=LD_LIBRARY_PATH 15648 shlibpath_overrides_runpath=yes 15649 hardcode_into_libs=yes 15650 ;; 15651 15652newsos6) 15653 version_type=linux 15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 shlibpath_overrides_runpath=yes 15657 ;; 15658 15659nto-qnx*) 15660 version_type=linux 15661 need_lib_prefix=no 15662 need_version=no 15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15664 soname_spec='${libname}${release}${shared_ext}$major' 15665 shlibpath_var=LD_LIBRARY_PATH 15666 shlibpath_overrides_runpath=yes 15667 ;; 15668 15669openbsd*) 15670 version_type=sunos 15671 sys_lib_dlsearch_path_spec="/usr/lib" 15672 need_lib_prefix=no 15673 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15674 case $host_os in 15675 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15676 *) need_version=no ;; 15677 esac 15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15680 shlibpath_var=LD_LIBRARY_PATH 15681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15682 case $host_os in 15683 openbsd2.[89] | openbsd2.[89].*) 15684 shlibpath_overrides_runpath=no 15685 ;; 15686 *) 15687 shlibpath_overrides_runpath=yes 15688 ;; 15689 esac 15690 else 15691 shlibpath_overrides_runpath=yes 15692 fi 15693 ;; 15694 15695os2*) 15696 libname_spec='$name' 15697 shrext_cmds=".dll" 15698 need_lib_prefix=no 15699 library_names_spec='$libname${shared_ext} $libname.a' 15700 dynamic_linker='OS/2 ld.exe' 15701 shlibpath_var=LIBPATH 15702 ;; 15703 15704osf3* | osf4* | osf5*) 15705 version_type=osf 15706 need_lib_prefix=no 15707 need_version=no 15708 soname_spec='${libname}${release}${shared_ext}$major' 15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15710 shlibpath_var=LD_LIBRARY_PATH 15711 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15712 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15713 ;; 15714 15715rdos*) 15716 dynamic_linker=no 15717 ;; 15718 15719solaris*) 15720 version_type=linux 15721 need_lib_prefix=no 15722 need_version=no 15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15724 soname_spec='${libname}${release}${shared_ext}$major' 15725 shlibpath_var=LD_LIBRARY_PATH 15726 shlibpath_overrides_runpath=yes 15727 hardcode_into_libs=yes 15728 # ldd complains unless libraries are executable 15729 postinstall_cmds='chmod +x $lib' 15730 ;; 15731 15732sunos4*) 15733 version_type=sunos 15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15736 shlibpath_var=LD_LIBRARY_PATH 15737 shlibpath_overrides_runpath=yes 15738 if test "$with_gnu_ld" = yes; then 15739 need_lib_prefix=no 15740 fi 15741 need_version=yes 15742 ;; 15743 15744sysv4 | sysv4.3*) 15745 version_type=linux 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 shlibpath_var=LD_LIBRARY_PATH 15749 case $host_vendor in 15750 sni) 15751 shlibpath_overrides_runpath=no 15752 need_lib_prefix=no 15753 export_dynamic_flag_spec='${wl}-Blargedynsym' 15754 runpath_var=LD_RUN_PATH 15755 ;; 15756 siemens) 15757 need_lib_prefix=no 15758 ;; 15759 motorola) 15760 need_lib_prefix=no 15761 need_version=no 15762 shlibpath_overrides_runpath=no 15763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15764 ;; 15765 esac 15766 ;; 15767 15768sysv4*MP*) 15769 if test -d /usr/nec ;then 15770 version_type=linux 15771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15772 soname_spec='$libname${shared_ext}.$major' 15773 shlibpath_var=LD_LIBRARY_PATH 15774 fi 15775 ;; 15776 15777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15778 version_type=freebsd-elf 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 shlibpath_var=LD_LIBRARY_PATH 15784 hardcode_into_libs=yes 15785 if test "$with_gnu_ld" = yes; then 15786 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15787 shlibpath_overrides_runpath=no 15788 else 15789 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15790 shlibpath_overrides_runpath=yes 15791 case $host_os in 15792 sco3.2v5*) 15793 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15794 ;; 15795 esac 15796 fi 15797 sys_lib_dlsearch_path_spec='/usr/lib' 15798 ;; 15799 15800uts4*) 15801 version_type=linux 15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15803 soname_spec='${libname}${release}${shared_ext}$major' 15804 shlibpath_var=LD_LIBRARY_PATH 15805 ;; 15806 15807*) 15808 dynamic_linker=no 15809 ;; 15810esac 15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15812$as_echo "$dynamic_linker" >&6; } 15813test "$dynamic_linker" = no && can_build_shared=no 15814 15815if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 15816 $as_echo_n "(cached) " >&6 15817else 15818 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 15819fi 15820 15821sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15822if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 15826fi 15827 15828sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15829 15830variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15831if test "$GCC" = yes; then 15832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15833fi 15834 15835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15836$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15837hardcode_action_F77= 15838if test -n "$hardcode_libdir_flag_spec_F77" || \ 15839 test -n "$runpath_var_F77" || \ 15840 test "X$hardcode_automatic_F77" = "Xyes" ; then 15841 15842 # We can hardcode non-existant directories. 15843 if test "$hardcode_direct_F77" != no && 15844 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15845 # have to relink, otherwise we might link with an installed library 15846 # when we should be linking with a yet-to-be-installed one 15847 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15848 test "$hardcode_minus_L_F77" != no; then 15849 # Linking always hardcodes the temporary library directory. 15850 hardcode_action_F77=relink 15851 else 15852 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15853 hardcode_action_F77=immediate 15854 fi 15855else 15856 # We cannot hardcode anything, or else we can only hardcode existing 15857 # directories. 15858 hardcode_action_F77=unsupported 15859fi 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 15861$as_echo "$hardcode_action_F77" >&6; } 15862 15863if test "$hardcode_action_F77" = relink; then 15864 # Fast installation is not supported 15865 enable_fast_install=no 15866elif test "$shlibpath_overrides_runpath" = yes || 15867 test "$enable_shared" = no; then 15868 # Fast installation is not necessary 15869 enable_fast_install=needless 15870fi 15871 15872 15873# The else clause should only fire when bootstrapping the 15874# libtool distribution, otherwise you forgot to ship ltmain.sh 15875# with your package, and you will get complaints that there are 15876# no rules to generate ltmain.sh. 15877if test -f "$ltmain"; then 15878 # See if we are running on zsh, and set the options which allow our commands through 15879 # without removal of \ escapes. 15880 if test -n "${ZSH_VERSION+set}" ; then 15881 setopt NO_GLOB_SUBST 15882 fi 15883 # Now quote all the things that may contain metacharacters while being 15884 # careful not to overquote the AC_SUBSTed values. We take copies of the 15885 # variables and quote the copies for generation of the libtool script. 15886 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15887 SED SHELL STRIP \ 15888 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15889 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15890 deplibs_check_method reload_flag reload_cmds need_locks \ 15891 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15892 lt_cv_sys_global_symbol_to_c_name_address \ 15893 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15894 old_postinstall_cmds old_postuninstall_cmds \ 15895 compiler_F77 \ 15896 CC_F77 \ 15897 LD_F77 \ 15898 lt_prog_compiler_wl_F77 \ 15899 lt_prog_compiler_pic_F77 \ 15900 lt_prog_compiler_static_F77 \ 15901 lt_prog_compiler_no_builtin_flag_F77 \ 15902 export_dynamic_flag_spec_F77 \ 15903 thread_safe_flag_spec_F77 \ 15904 whole_archive_flag_spec_F77 \ 15905 enable_shared_with_static_runtimes_F77 \ 15906 old_archive_cmds_F77 \ 15907 old_archive_from_new_cmds_F77 \ 15908 predep_objects_F77 \ 15909 postdep_objects_F77 \ 15910 predeps_F77 \ 15911 postdeps_F77 \ 15912 compiler_lib_search_path_F77 \ 15913 compiler_lib_search_dirs_F77 \ 15914 archive_cmds_F77 \ 15915 archive_expsym_cmds_F77 \ 15916 postinstall_cmds_F77 \ 15917 postuninstall_cmds_F77 \ 15918 old_archive_from_expsyms_cmds_F77 \ 15919 allow_undefined_flag_F77 \ 15920 no_undefined_flag_F77 \ 15921 export_symbols_cmds_F77 \ 15922 hardcode_libdir_flag_spec_F77 \ 15923 hardcode_libdir_flag_spec_ld_F77 \ 15924 hardcode_libdir_separator_F77 \ 15925 hardcode_automatic_F77 \ 15926 module_cmds_F77 \ 15927 module_expsym_cmds_F77 \ 15928 lt_cv_prog_compiler_c_o_F77 \ 15929 fix_srcfile_path_F77 \ 15930 exclude_expsyms_F77 \ 15931 include_expsyms_F77; do 15932 15933 case $var in 15934 old_archive_cmds_F77 | \ 15935 old_archive_from_new_cmds_F77 | \ 15936 archive_cmds_F77 | \ 15937 archive_expsym_cmds_F77 | \ 15938 module_cmds_F77 | \ 15939 module_expsym_cmds_F77 | \ 15940 old_archive_from_expsyms_cmds_F77 | \ 15941 export_symbols_cmds_F77 | \ 15942 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15943 postinstall_cmds | postuninstall_cmds | \ 15944 old_postinstall_cmds | old_postuninstall_cmds | \ 15945 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15946 # Double-quote double-evaled strings. 15947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15948 ;; 15949 *) 15950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15951 ;; 15952 esac 15953 done 15954 15955 case $lt_echo in 15956 *'\$0 --fallback-echo"') 15957 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15958 ;; 15959 esac 15960 15961cfgfile="$ofile" 15962 15963 cat <<__EOF__ >> "$cfgfile" 15964# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15965 15966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15967 15968# Shell to use when invoking shell scripts. 15969SHELL=$lt_SHELL 15970 15971# Whether or not to build shared libraries. 15972build_libtool_libs=$enable_shared 15973 15974# Whether or not to build static libraries. 15975build_old_libs=$enable_static 15976 15977# Whether or not to add -lc for building shared libraries. 15978build_libtool_need_lc=$archive_cmds_need_lc_F77 15979 15980# Whether or not to disallow shared libs when runtime libs are static 15981allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15982 15983# Whether or not to optimize for fast installation. 15984fast_install=$enable_fast_install 15985 15986# The host system. 15987host_alias=$host_alias 15988host=$host 15989host_os=$host_os 15990 15991# The build system. 15992build_alias=$build_alias 15993build=$build 15994build_os=$build_os 15995 15996# An echo program that does not interpret backslashes. 15997echo=$lt_echo 15998 15999# The archiver. 16000AR=$lt_AR 16001AR_FLAGS=$lt_AR_FLAGS 16002 16003# A C compiler. 16004LTCC=$lt_LTCC 16005 16006# LTCC compiler flags. 16007LTCFLAGS=$lt_LTCFLAGS 16008 16009# A language-specific compiler. 16010CC=$lt_compiler_F77 16011 16012# Is the compiler the GNU C compiler? 16013with_gcc=$GCC_F77 16014 16015# An ERE matcher. 16016EGREP=$lt_EGREP 16017 16018# The linker used to build libraries. 16019LD=$lt_LD_F77 16020 16021# Whether we need hard or soft links. 16022LN_S=$lt_LN_S 16023 16024# A BSD-compatible nm program. 16025NM=$lt_NM 16026 16027# A symbol stripping program 16028STRIP=$lt_STRIP 16029 16030# Used to examine libraries when file_magic_cmd begins "file" 16031MAGIC_CMD=$MAGIC_CMD 16032 16033# Used on cygwin: DLL creation program. 16034DLLTOOL="$DLLTOOL" 16035 16036# Used on cygwin: object dumper. 16037OBJDUMP="$OBJDUMP" 16038 16039# Used on cygwin: assembler. 16040AS="$AS" 16041 16042# The name of the directory that contains temporary libtool files. 16043objdir=$objdir 16044 16045# How to create reloadable object files. 16046reload_flag=$lt_reload_flag 16047reload_cmds=$lt_reload_cmds 16048 16049# How to pass a linker flag through the compiler. 16050wl=$lt_lt_prog_compiler_wl_F77 16051 16052# Object file suffix (normally "o"). 16053objext="$ac_objext" 16054 16055# Old archive suffix (normally "a"). 16056libext="$libext" 16057 16058# Shared library suffix (normally ".so"). 16059shrext_cmds='$shrext_cmds' 16060 16061# Executable file suffix (normally ""). 16062exeext="$exeext" 16063 16064# Additional compiler flags for building library objects. 16065pic_flag=$lt_lt_prog_compiler_pic_F77 16066pic_mode=$pic_mode 16067 16068# What is the maximum length of a command? 16069max_cmd_len=$lt_cv_sys_max_cmd_len 16070 16071# Does compiler simultaneously support -c and -o options? 16072compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16073 16074# Must we lock files when doing compilation? 16075need_locks=$lt_need_locks 16076 16077# Do we need the lib prefix for modules? 16078need_lib_prefix=$need_lib_prefix 16079 16080# Do we need a version for libraries? 16081need_version=$need_version 16082 16083# Whether dlopen is supported. 16084dlopen_support=$enable_dlopen 16085 16086# Whether dlopen of programs is supported. 16087dlopen_self=$enable_dlopen_self 16088 16089# Whether dlopen of statically linked programs is supported. 16090dlopen_self_static=$enable_dlopen_self_static 16091 16092# Compiler flag to prevent dynamic linking. 16093link_static_flag=$lt_lt_prog_compiler_static_F77 16094 16095# Compiler flag to turn off builtin functions. 16096no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16097 16098# Compiler flag to allow reflexive dlopens. 16099export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16100 16101# Compiler flag to generate shared objects directly from archives. 16102whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16103 16104# Compiler flag to generate thread-safe objects. 16105thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16106 16107# Library versioning type. 16108version_type=$version_type 16109 16110# Format of library name prefix. 16111libname_spec=$lt_libname_spec 16112 16113# List of archive names. First name is the real one, the rest are links. 16114# The last name is the one that the linker finds with -lNAME. 16115library_names_spec=$lt_library_names_spec 16116 16117# The coded name of the library, if different from the real name. 16118soname_spec=$lt_soname_spec 16119 16120# Commands used to build and install an old-style archive. 16121RANLIB=$lt_RANLIB 16122old_archive_cmds=$lt_old_archive_cmds_F77 16123old_postinstall_cmds=$lt_old_postinstall_cmds 16124old_postuninstall_cmds=$lt_old_postuninstall_cmds 16125 16126# Create an old-style archive from a shared archive. 16127old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16128 16129# Create a temporary old-style archive to link instead of a shared archive. 16130old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16131 16132# Commands used to build and install a shared archive. 16133archive_cmds=$lt_archive_cmds_F77 16134archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16135postinstall_cmds=$lt_postinstall_cmds 16136postuninstall_cmds=$lt_postuninstall_cmds 16137 16138# Commands used to build a loadable module (assumed same as above if empty) 16139module_cmds=$lt_module_cmds_F77 16140module_expsym_cmds=$lt_module_expsym_cmds_F77 16141 16142# Commands to strip libraries. 16143old_striplib=$lt_old_striplib 16144striplib=$lt_striplib 16145 16146# Dependencies to place before the objects being linked to create a 16147# shared library. 16148predep_objects=$lt_predep_objects_F77 16149 16150# Dependencies to place after the objects being linked to create a 16151# shared library. 16152postdep_objects=$lt_postdep_objects_F77 16153 16154# Dependencies to place before the objects being linked to create a 16155# shared library. 16156predeps=$lt_predeps_F77 16157 16158# Dependencies to place after the objects being linked to create a 16159# shared library. 16160postdeps=$lt_postdeps_F77 16161 16162# The directories searched by this compiler when creating a shared 16163# library 16164compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16165 16166# The library search path used internally by the compiler when linking 16167# a shared library. 16168compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16169 16170# Method to check whether dependent libraries are shared objects. 16171deplibs_check_method=$lt_deplibs_check_method 16172 16173# Command to use when deplibs_check_method == file_magic. 16174file_magic_cmd=$lt_file_magic_cmd 16175 16176# Flag that allows shared libraries with undefined symbols to be built. 16177allow_undefined_flag=$lt_allow_undefined_flag_F77 16178 16179# Flag that forces no undefined symbols. 16180no_undefined_flag=$lt_no_undefined_flag_F77 16181 16182# Commands used to finish a libtool library installation in a directory. 16183finish_cmds=$lt_finish_cmds 16184 16185# Same as above, but a single script fragment to be evaled but not shown. 16186finish_eval=$lt_finish_eval 16187 16188# Take the output of nm and produce a listing of raw symbols and C names. 16189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16190 16191# Transform the output of nm in a proper C declaration 16192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16193 16194# Transform the output of nm in a C name address pair 16195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16196 16197# This is the shared library runtime path variable. 16198runpath_var=$runpath_var 16199 16200# This is the shared library path variable. 16201shlibpath_var=$shlibpath_var 16202 16203# Is shlibpath searched before the hard-coded library search path? 16204shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16205 16206# How to hardcode a shared library path into an executable. 16207hardcode_action=$hardcode_action_F77 16208 16209# Whether we should hardcode library paths into libraries. 16210hardcode_into_libs=$hardcode_into_libs 16211 16212# Flag to hardcode \$libdir into a binary during linking. 16213# This must work even if \$libdir does not exist. 16214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16215 16216# If ld is used when linking, flag to hardcode \$libdir into 16217# a binary during linking. This must work even if \$libdir does 16218# not exist. 16219hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16220 16221# Whether we need a single -rpath flag with a separated argument. 16222hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16223 16224# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16225# resulting binary. 16226hardcode_direct=$hardcode_direct_F77 16227 16228# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16229# resulting binary. 16230hardcode_minus_L=$hardcode_minus_L_F77 16231 16232# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16233# the resulting binary. 16234hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16235 16236# Set to yes if building a shared library automatically hardcodes DIR into the library 16237# and all subsequent libraries and executables linked against it. 16238hardcode_automatic=$hardcode_automatic_F77 16239 16240# Variables whose values should be saved in libtool wrapper scripts and 16241# restored at relink time. 16242variables_saved_for_relink="$variables_saved_for_relink" 16243 16244# Whether libtool must link a program against all its dependency libraries. 16245link_all_deplibs=$link_all_deplibs_F77 16246 16247# Compile-time system search path for libraries 16248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16249 16250# Run-time system search path for libraries 16251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16252 16253# Fix the shell variable \$srcfile for the compiler. 16254fix_srcfile_path=$lt_fix_srcfile_path 16255 16256# Set to yes if exported symbols are required. 16257always_export_symbols=$always_export_symbols_F77 16258 16259# The commands to list exported symbols. 16260export_symbols_cmds=$lt_export_symbols_cmds_F77 16261 16262# The commands to extract the exported symbol list from a shared archive. 16263extract_expsyms_cmds=$lt_extract_expsyms_cmds 16264 16265# Symbols that should not be listed in the preloaded symbols. 16266exclude_expsyms=$lt_exclude_expsyms_F77 16267 16268# Symbols that must always be exported. 16269include_expsyms=$lt_include_expsyms_F77 16270 16271# ### END LIBTOOL TAG CONFIG: $tagname 16272 16273__EOF__ 16274 16275 16276else 16277 # If there is no Makefile yet, we rely on a make rule to execute 16278 # `config.status --recheck' to rerun these tests and create the 16279 # libtool script then. 16280 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16281 if test -f "$ltmain_in"; then 16282 test -f Makefile && make "$ltmain" 16283 fi 16284fi 16285 16286 16287ac_ext=c 16288ac_cpp='$CPP $CPPFLAGS' 16289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16291ac_compiler_gnu=$ac_cv_c_compiler_gnu 16292 16293CC="$lt_save_CC" 16294 16295 else 16296 tagname="" 16297 fi 16298 ;; 16299 16300 GCJ) 16301 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16302 16303 16304# Source file extension for Java test sources. 16305ac_ext=java 16306 16307# Object file extension for compiled Java test sources. 16308objext=o 16309objext_GCJ=$objext 16310 16311# Code to be used in simple compile tests 16312lt_simple_compile_test_code="class foo {}" 16313 16314# Code to be used in simple link tests 16315lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16316 16317# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16318 16319# If no C compiler was specified, use CC. 16320LTCC=${LTCC-"$CC"} 16321 16322# If no C compiler flags were specified, use CFLAGS. 16323LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16324 16325# Allow CC to be a program name with arguments. 16326compiler=$CC 16327 16328 16329# save warnings/boilerplate of simple test code 16330ac_outfile=conftest.$ac_objext 16331echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16332eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16333_lt_compiler_boilerplate=`cat conftest.err` 16334$rm conftest* 16335 16336ac_outfile=conftest.$ac_objext 16337echo "$lt_simple_link_test_code" >conftest.$ac_ext 16338eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16339_lt_linker_boilerplate=`cat conftest.err` 16340$rm -r conftest* 16341 16342 16343# Allow CC to be a program name with arguments. 16344lt_save_CC="$CC" 16345CC=${GCJ-"gcj"} 16346compiler=$CC 16347compiler_GCJ=$CC 16348for cc_temp in $compiler""; do 16349 case $cc_temp in 16350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16352 \-*) ;; 16353 *) break;; 16354 esac 16355done 16356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16357 16358 16359# GCJ did not exist at the time GCC didn't implicitly link libc in. 16360archive_cmds_need_lc_GCJ=no 16361 16362old_archive_cmds_GCJ=$old_archive_cmds 16363 16364 16365lt_prog_compiler_no_builtin_flag_GCJ= 16366 16367if test "$GCC" = yes; then 16368 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16369 16370 16371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16372$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16373if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 16374 $as_echo_n "(cached) " >&6 16375else 16376 lt_cv_prog_compiler_rtti_exceptions=no 16377 ac_outfile=conftest.$ac_objext 16378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16379 lt_compiler_flag="-fno-rtti -fno-exceptions" 16380 # Insert the option either (1) after the last *FLAGS variable, or 16381 # (2) before a word containing "conftest.", or (3) at the end. 16382 # Note that $ac_compile itself does not contain backslashes and begins 16383 # with a dollar sign (not a hyphen), so the echo should work correctly. 16384 # The option is referenced via a variable to avoid confusing sed. 16385 lt_compile=`echo "$ac_compile" | $SED \ 16386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16388 -e 's:$: $lt_compiler_flag:'` 16389 (eval echo "\"\$as_me:16389: $lt_compile\"" >&5) 16390 (eval "$lt_compile" 2>conftest.err) 16391 ac_status=$? 16392 cat conftest.err >&5 16393 echo "$as_me:16393: \$? = $ac_status" >&5 16394 if (exit $ac_status) && test -s "$ac_outfile"; then 16395 # The compiler can only warn and ignore the option if not recognized 16396 # So say no if there are warnings other than the usual output. 16397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16400 lt_cv_prog_compiler_rtti_exceptions=yes 16401 fi 16402 fi 16403 $rm conftest* 16404 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16407$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16408 16409if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16410 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16411else 16412 : 16413fi 16414 16415fi 16416 16417lt_prog_compiler_wl_GCJ= 16418lt_prog_compiler_pic_GCJ= 16419lt_prog_compiler_static_GCJ= 16420 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16422$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16423 16424 if test "$GCC" = yes; then 16425 lt_prog_compiler_wl_GCJ='-Wl,' 16426 lt_prog_compiler_static_GCJ='-static' 16427 16428 case $host_os in 16429 aix*) 16430 # All AIX code is PIC. 16431 if test "$host_cpu" = ia64; then 16432 # AIX 5 now supports IA64 processor 16433 lt_prog_compiler_static_GCJ='-Bstatic' 16434 fi 16435 ;; 16436 16437 amigaos*) 16438 # FIXME: we need at least 68020 code to build shared libraries, but 16439 # adding the `-m68020' flag to GCC prevents building anything better, 16440 # like `-m68040'. 16441 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16442 ;; 16443 16444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16445 # PIC is the default for these OSes. 16446 ;; 16447 16448 mingw* | cygwin* | pw32* | os2*) 16449 # This hack is so that the source file can tell whether it is being 16450 # built for inclusion in a dll (and should export symbols for example). 16451 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16452 # (--disable-auto-import) libraries 16453 16454 ;; 16455 16456 darwin* | rhapsody*) 16457 # PIC is the default on this platform 16458 # Common symbols not allowed in MH_DYLIB files 16459 lt_prog_compiler_pic_GCJ='-fno-common' 16460 ;; 16461 16462 interix[3-9]*) 16463 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16464 # Instead, we relocate shared libraries at runtime. 16465 ;; 16466 16467 msdosdjgpp*) 16468 # Just because we use GCC doesn't mean we suddenly get shared libraries 16469 # on systems that don't support them. 16470 lt_prog_compiler_can_build_shared_GCJ=no 16471 enable_shared=no 16472 ;; 16473 16474 sysv4*MP*) 16475 if test -d /usr/nec; then 16476 lt_prog_compiler_pic_GCJ=-Kconform_pic 16477 fi 16478 ;; 16479 16480 hpux*) 16481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16482 # not for PA HP-UX. 16483 case $host_cpu in 16484 hppa*64*|ia64*) 16485 # +Z the default 16486 ;; 16487 *) 16488 lt_prog_compiler_pic_GCJ='-fPIC' 16489 ;; 16490 esac 16491 ;; 16492 16493 *) 16494 lt_prog_compiler_pic_GCJ='-fPIC' 16495 ;; 16496 esac 16497 else 16498 # PORTME Check for flag to pass linker flags through the system compiler. 16499 case $host_os in 16500 aix*) 16501 lt_prog_compiler_wl_GCJ='-Wl,' 16502 if test "$host_cpu" = ia64; then 16503 # AIX 5 now supports IA64 processor 16504 lt_prog_compiler_static_GCJ='-Bstatic' 16505 else 16506 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16507 fi 16508 ;; 16509 darwin*) 16510 # PIC is the default on this platform 16511 # Common symbols not allowed in MH_DYLIB files 16512 case $cc_basename in 16513 xlc*) 16514 lt_prog_compiler_pic_GCJ='-qnocommon' 16515 lt_prog_compiler_wl_GCJ='-Wl,' 16516 ;; 16517 esac 16518 ;; 16519 16520 mingw* | cygwin* | pw32* | os2*) 16521 # This hack is so that the source file can tell whether it is being 16522 # built for inclusion in a dll (and should export symbols for example). 16523 16524 ;; 16525 16526 hpux9* | hpux10* | hpux11*) 16527 lt_prog_compiler_wl_GCJ='-Wl,' 16528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16529 # not for PA HP-UX. 16530 case $host_cpu in 16531 hppa*64*|ia64*) 16532 # +Z the default 16533 ;; 16534 *) 16535 lt_prog_compiler_pic_GCJ='+Z' 16536 ;; 16537 esac 16538 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16539 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16540 ;; 16541 16542 irix5* | irix6* | nonstopux*) 16543 lt_prog_compiler_wl_GCJ='-Wl,' 16544 # PIC (with -KPIC) is the default. 16545 lt_prog_compiler_static_GCJ='-non_shared' 16546 ;; 16547 16548 newsos6) 16549 lt_prog_compiler_pic_GCJ='-KPIC' 16550 lt_prog_compiler_static_GCJ='-Bstatic' 16551 ;; 16552 16553 linux* | k*bsd*-gnu) 16554 case $cc_basename in 16555 icc* | ecc*) 16556 lt_prog_compiler_wl_GCJ='-Wl,' 16557 lt_prog_compiler_pic_GCJ='-KPIC' 16558 lt_prog_compiler_static_GCJ='-static' 16559 ;; 16560 pgcc* | pgf77* | pgf90* | pgf95*) 16561 # Portland Group compilers (*not* the Pentium gcc compiler, 16562 # which looks to be a dead project) 16563 lt_prog_compiler_wl_GCJ='-Wl,' 16564 lt_prog_compiler_pic_GCJ='-fpic' 16565 lt_prog_compiler_static_GCJ='-Bstatic' 16566 ;; 16567 ccc*) 16568 lt_prog_compiler_wl_GCJ='-Wl,' 16569 # All Alpha code is PIC. 16570 lt_prog_compiler_static_GCJ='-non_shared' 16571 ;; 16572 *) 16573 case `$CC -V 2>&1 | sed 5q` in 16574 *Sun\ C*) 16575 # Sun C 5.9 16576 lt_prog_compiler_pic_GCJ='-KPIC' 16577 lt_prog_compiler_static_GCJ='-Bstatic' 16578 lt_prog_compiler_wl_GCJ='-Wl,' 16579 ;; 16580 *Sun\ F*) 16581 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16582 lt_prog_compiler_pic_GCJ='-KPIC' 16583 lt_prog_compiler_static_GCJ='-Bstatic' 16584 lt_prog_compiler_wl_GCJ='' 16585 ;; 16586 esac 16587 ;; 16588 esac 16589 ;; 16590 16591 osf3* | osf4* | osf5*) 16592 lt_prog_compiler_wl_GCJ='-Wl,' 16593 # All OSF/1 code is PIC. 16594 lt_prog_compiler_static_GCJ='-non_shared' 16595 ;; 16596 16597 rdos*) 16598 lt_prog_compiler_static_GCJ='-non_shared' 16599 ;; 16600 16601 solaris*) 16602 lt_prog_compiler_pic_GCJ='-KPIC' 16603 lt_prog_compiler_static_GCJ='-Bstatic' 16604 case $cc_basename in 16605 f77* | f90* | f95*) 16606 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16607 *) 16608 lt_prog_compiler_wl_GCJ='-Wl,';; 16609 esac 16610 ;; 16611 16612 sunos4*) 16613 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16614 lt_prog_compiler_pic_GCJ='-PIC' 16615 lt_prog_compiler_static_GCJ='-Bstatic' 16616 ;; 16617 16618 sysv4 | sysv4.2uw2* | sysv4.3*) 16619 lt_prog_compiler_wl_GCJ='-Wl,' 16620 lt_prog_compiler_pic_GCJ='-KPIC' 16621 lt_prog_compiler_static_GCJ='-Bstatic' 16622 ;; 16623 16624 sysv4*MP*) 16625 if test -d /usr/nec ;then 16626 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16627 lt_prog_compiler_static_GCJ='-Bstatic' 16628 fi 16629 ;; 16630 16631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16632 lt_prog_compiler_wl_GCJ='-Wl,' 16633 lt_prog_compiler_pic_GCJ='-KPIC' 16634 lt_prog_compiler_static_GCJ='-Bstatic' 16635 ;; 16636 16637 unicos*) 16638 lt_prog_compiler_wl_GCJ='-Wl,' 16639 lt_prog_compiler_can_build_shared_GCJ=no 16640 ;; 16641 16642 uts4*) 16643 lt_prog_compiler_pic_GCJ='-pic' 16644 lt_prog_compiler_static_GCJ='-Bstatic' 16645 ;; 16646 16647 *) 16648 lt_prog_compiler_can_build_shared_GCJ=no 16649 ;; 16650 esac 16651 fi 16652 16653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 16654$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 16655 16656# 16657# Check to make sure the PIC flag actually works. 16658# 16659if test -n "$lt_prog_compiler_pic_GCJ"; then 16660 16661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16662$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 16663if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : 16664 $as_echo_n "(cached) " >&6 16665else 16666 lt_cv_prog_compiler_pic_works_GCJ=no 16667 ac_outfile=conftest.$ac_objext 16668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16669 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16670 # Insert the option either (1) after the last *FLAGS variable, or 16671 # (2) before a word containing "conftest.", or (3) at the end. 16672 # Note that $ac_compile itself does not contain backslashes and begins 16673 # with a dollar sign (not a hyphen), so the echo should work correctly. 16674 # The option is referenced via a variable to avoid confusing sed. 16675 lt_compile=`echo "$ac_compile" | $SED \ 16676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16678 -e 's:$: $lt_compiler_flag:'` 16679 (eval echo "\"\$as_me:16679: $lt_compile\"" >&5) 16680 (eval "$lt_compile" 2>conftest.err) 16681 ac_status=$? 16682 cat conftest.err >&5 16683 echo "$as_me:16683: \$? = $ac_status" >&5 16684 if (exit $ac_status) && test -s "$ac_outfile"; then 16685 # The compiler can only warn and ignore the option if not recognized 16686 # So say no if there are warnings other than the usual output. 16687 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16690 lt_cv_prog_compiler_pic_works_GCJ=yes 16691 fi 16692 fi 16693 $rm conftest* 16694 16695fi 16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 16697$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 16698 16699if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 16700 case $lt_prog_compiler_pic_GCJ in 16701 "" | " "*) ;; 16702 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16703 esac 16704else 16705 lt_prog_compiler_pic_GCJ= 16706 lt_prog_compiler_can_build_shared_GCJ=no 16707fi 16708 16709fi 16710case $host_os in 16711 # For platforms which do not support PIC, -DPIC is meaningless: 16712 *djgpp*) 16713 lt_prog_compiler_pic_GCJ= 16714 ;; 16715 *) 16716 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16717 ;; 16718esac 16719 16720# 16721# Check to make sure the static flag actually works. 16722# 16723wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16725$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16726if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : 16727 $as_echo_n "(cached) " >&6 16728else 16729 lt_cv_prog_compiler_static_works_GCJ=no 16730 save_LDFLAGS="$LDFLAGS" 16731 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16732 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16734 # The linker can only warn and ignore the option if not recognized 16735 # So say no if there are warnings 16736 if test -s conftest.err; then 16737 # Append any errors to the config.log. 16738 cat conftest.err 1>&5 16739 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16741 if diff conftest.exp conftest.er2 >/dev/null; then 16742 lt_cv_prog_compiler_static_works_GCJ=yes 16743 fi 16744 else 16745 lt_cv_prog_compiler_static_works_GCJ=yes 16746 fi 16747 fi 16748 $rm -r conftest* 16749 LDFLAGS="$save_LDFLAGS" 16750 16751fi 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 16753$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 16754 16755if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 16756 : 16757else 16758 lt_prog_compiler_static_GCJ= 16759fi 16760 16761 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16763$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16764if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 16765 $as_echo_n "(cached) " >&6 16766else 16767 lt_cv_prog_compiler_c_o_GCJ=no 16768 $rm -r conftest 2>/dev/null 16769 mkdir conftest 16770 cd conftest 16771 mkdir out 16772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16773 16774 lt_compiler_flag="-o out/conftest2.$ac_objext" 16775 # Insert the option either (1) after the last *FLAGS variable, or 16776 # (2) before a word containing "conftest.", or (3) at the end. 16777 # Note that $ac_compile itself does not contain backslashes and begins 16778 # with a dollar sign (not a hyphen), so the echo should work correctly. 16779 lt_compile=`echo "$ac_compile" | $SED \ 16780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16782 -e 's:$: $lt_compiler_flag:'` 16783 (eval echo "\"\$as_me:16783: $lt_compile\"" >&5) 16784 (eval "$lt_compile" 2>out/conftest.err) 16785 ac_status=$? 16786 cat out/conftest.err >&5 16787 echo "$as_me:16787: \$? = $ac_status" >&5 16788 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16789 then 16790 # The compiler can only warn and ignore the option if not recognized 16791 # So say no if there are warnings 16792 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16795 lt_cv_prog_compiler_c_o_GCJ=yes 16796 fi 16797 fi 16798 chmod u+w . 2>&5 16799 $rm conftest* 16800 # SGI C++ compiler will create directory out/ii_files/ for 16801 # template instantiation 16802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16803 $rm out/* && rmdir out 16804 cd .. 16805 rmdir conftest 16806 $rm conftest* 16807 16808fi 16809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16810$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16811 16812 16813hard_links="nottested" 16814if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16815 # do not overwrite the value of need_locks provided by the user 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16817$as_echo_n "checking if we can lock with hard links... " >&6; } 16818 hard_links=yes 16819 $rm conftest* 16820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16821 touch conftest.a 16822 ln conftest.a conftest.b 2>&5 || hard_links=no 16823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16825$as_echo "$hard_links" >&6; } 16826 if test "$hard_links" = no; then 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16828$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16829 need_locks=warn 16830 fi 16831else 16832 need_locks=no 16833fi 16834 16835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16836$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16837 16838 runpath_var= 16839 allow_undefined_flag_GCJ= 16840 enable_shared_with_static_runtimes_GCJ=no 16841 archive_cmds_GCJ= 16842 archive_expsym_cmds_GCJ= 16843 old_archive_From_new_cmds_GCJ= 16844 old_archive_from_expsyms_cmds_GCJ= 16845 export_dynamic_flag_spec_GCJ= 16846 whole_archive_flag_spec_GCJ= 16847 thread_safe_flag_spec_GCJ= 16848 hardcode_libdir_flag_spec_GCJ= 16849 hardcode_libdir_flag_spec_ld_GCJ= 16850 hardcode_libdir_separator_GCJ= 16851 hardcode_direct_GCJ=no 16852 hardcode_minus_L_GCJ=no 16853 hardcode_shlibpath_var_GCJ=unsupported 16854 link_all_deplibs_GCJ=unknown 16855 hardcode_automatic_GCJ=no 16856 module_cmds_GCJ= 16857 module_expsym_cmds_GCJ= 16858 always_export_symbols_GCJ=no 16859 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16860 # include_expsyms should be a list of space-separated symbols to be *always* 16861 # included in the symbol list 16862 include_expsyms_GCJ= 16863 # exclude_expsyms can be an extended regexp of symbols to exclude 16864 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16866 # as well as any symbol that contains `d'. 16867 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16869 # platforms (ab)use it in PIC code, but their linkers get confused if 16870 # the symbol is explicitly referenced. Since portable code cannot 16871 # rely on this symbol name, it's probably fine to never include it in 16872 # preloaded symbol tables. 16873 # Exclude shared library initialization/finalization symbols. 16874 extract_expsyms_cmds= 16875 # Just being paranoid about ensuring that cc_basename is set. 16876 for cc_temp in $compiler""; do 16877 case $cc_temp in 16878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16880 \-*) ;; 16881 *) break;; 16882 esac 16883done 16884cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16885 16886 case $host_os in 16887 cygwin* | mingw* | pw32*) 16888 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16889 # When not using gcc, we currently assume that we are using 16890 # Microsoft Visual C++. 16891 if test "$GCC" != yes; then 16892 with_gnu_ld=no 16893 fi 16894 ;; 16895 interix*) 16896 # we just hope/assume this is gcc and not c89 (= MSVC++) 16897 with_gnu_ld=yes 16898 ;; 16899 openbsd*) 16900 with_gnu_ld=no 16901 ;; 16902 esac 16903 16904 ld_shlibs_GCJ=yes 16905 if test "$with_gnu_ld" = yes; then 16906 # If archive_cmds runs LD, not CC, wlarc should be empty 16907 wlarc='${wl}' 16908 16909 # Set some defaults for GNU ld with shared library support. These 16910 # are reset later if shared libraries are not supported. Putting them 16911 # here allows them to be overridden if necessary. 16912 runpath_var=LD_RUN_PATH 16913 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16914 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16915 # ancient GNU ld didn't support --whole-archive et. al. 16916 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16917 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16918 else 16919 whole_archive_flag_spec_GCJ= 16920 fi 16921 supports_anon_versioning=no 16922 case `$LD -v 2>/dev/null` in 16923 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16924 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16925 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16926 *\ 2.11.*) ;; # other 2.11 versions 16927 *) supports_anon_versioning=yes ;; 16928 esac 16929 16930 # See if GNU ld supports shared libraries. 16931 case $host_os in 16932 aix[3-9]*) 16933 # On AIX/PPC, the GNU linker is very broken 16934 if test "$host_cpu" != ia64; then 16935 ld_shlibs_GCJ=no 16936 cat <<EOF 1>&2 16937 16938*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16939*** to be unable to reliably create shared libraries on AIX. 16940*** Therefore, libtool is disabling shared libraries support. If you 16941*** really care for shared libraries, you may want to modify your PATH 16942*** so that a non-GNU linker is found, and then restart. 16943 16944EOF 16945 fi 16946 ;; 16947 16948 amigaos*) 16949 archive_cmds_GCJ='$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)' 16950 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16951 hardcode_minus_L_GCJ=yes 16952 16953 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16954 # that the semantics of dynamic libraries on AmigaOS, at least up 16955 # to version 4, is to share data among multiple programs linked 16956 # with the same dynamic library. Since this doesn't match the 16957 # behavior of shared libraries on other platforms, we can't use 16958 # them. 16959 ld_shlibs_GCJ=no 16960 ;; 16961 16962 beos*) 16963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16964 allow_undefined_flag_GCJ=unsupported 16965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16966 # support --undefined. This deserves some investigation. FIXME 16967 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16968 else 16969 ld_shlibs_GCJ=no 16970 fi 16971 ;; 16972 16973 cygwin* | mingw* | pw32*) 16974 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16975 # as there is no search path for DLLs. 16976 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16977 allow_undefined_flag_GCJ=unsupported 16978 always_export_symbols_GCJ=no 16979 enable_shared_with_static_runtimes_GCJ=yes 16980 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16981 16982 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16984 # If the export-symbols file already is a .def file (1st line 16985 # is EXPORTS), use it as is; otherwise, prepend... 16986 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16987 cp $export_symbols $output_objdir/$soname.def; 16988 else 16989 echo EXPORTS > $output_objdir/$soname.def; 16990 cat $export_symbols >> $output_objdir/$soname.def; 16991 fi~ 16992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16993 else 16994 ld_shlibs_GCJ=no 16995 fi 16996 ;; 16997 16998 interix[3-9]*) 16999 hardcode_direct_GCJ=no 17000 hardcode_shlibpath_var_GCJ=no 17001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17002 export_dynamic_flag_spec_GCJ='${wl}-E' 17003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17004 # Instead, shared libraries are loaded at an image base (0x10000000 by 17005 # default) and relocated if they conflict, which is a slow very memory 17006 # consuming and fragmenting process. To avoid this, we pick a random, 17007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17008 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17009 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17010 archive_expsym_cmds_GCJ='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' 17011 ;; 17012 17013 gnu* | linux* | k*bsd*-gnu) 17014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17015 tmp_addflag= 17016 case $cc_basename,$host_cpu in 17017 pgcc*) # Portland Group C compiler 17018 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17019 tmp_addflag=' $pic_flag' 17020 ;; 17021 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17022 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17023 tmp_addflag=' $pic_flag -Mnomain' ;; 17024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17025 tmp_addflag=' -i_dynamic' ;; 17026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17027 tmp_addflag=' -i_dynamic -nofor_main' ;; 17028 ifc* | ifort*) # Intel Fortran compiler 17029 tmp_addflag=' -nofor_main' ;; 17030 esac 17031 case `$CC -V 2>&1 | sed 5q` in 17032 *Sun\ C*) # Sun C 5.9 17033 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17034 tmp_sharedflag='-G' ;; 17035 *Sun\ F*) # Sun Fortran 8.3 17036 tmp_sharedflag='-G' ;; 17037 *) 17038 tmp_sharedflag='-shared' ;; 17039 esac 17040 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17041 17042 if test $supports_anon_versioning = yes; then 17043 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17044 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17045 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17046 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17047 fi 17048 else 17049 ld_shlibs_GCJ=no 17050 fi 17051 ;; 17052 17053 netbsd*) 17054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17055 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17056 wlarc= 17057 else 17058 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17059 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17060 fi 17061 ;; 17062 17063 solaris*) 17064 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17065 ld_shlibs_GCJ=no 17066 cat <<EOF 1>&2 17067 17068*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17069*** create shared libraries on Solaris systems. Therefore, libtool 17070*** is disabling shared libraries support. We urge you to upgrade GNU 17071*** binutils to release 2.9.1 or newer. Another option is to modify 17072*** your PATH or compiler configuration so that the native linker is 17073*** used, and then restart. 17074 17075EOF 17076 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17079 else 17080 ld_shlibs_GCJ=no 17081 fi 17082 ;; 17083 17084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17085 case `$LD -v 2>&1` in 17086 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17087 ld_shlibs_GCJ=no 17088 cat <<_LT_EOF 1>&2 17089 17090*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17091*** reliably create shared libraries on SCO systems. Therefore, libtool 17092*** is disabling shared libraries support. We urge you to upgrade GNU 17093*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17094*** your PATH or compiler configuration so that the native linker is 17095*** used, and then restart. 17096 17097_LT_EOF 17098 ;; 17099 *) 17100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17101 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17103 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17104 else 17105 ld_shlibs_GCJ=no 17106 fi 17107 ;; 17108 esac 17109 ;; 17110 17111 sunos4*) 17112 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17113 wlarc= 17114 hardcode_direct_GCJ=yes 17115 hardcode_shlibpath_var_GCJ=no 17116 ;; 17117 17118 *) 17119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17120 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17121 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17122 else 17123 ld_shlibs_GCJ=no 17124 fi 17125 ;; 17126 esac 17127 17128 if test "$ld_shlibs_GCJ" = no; then 17129 runpath_var= 17130 hardcode_libdir_flag_spec_GCJ= 17131 export_dynamic_flag_spec_GCJ= 17132 whole_archive_flag_spec_GCJ= 17133 fi 17134 else 17135 # PORTME fill in a description of your system's linker (not GNU ld) 17136 case $host_os in 17137 aix3*) 17138 allow_undefined_flag_GCJ=unsupported 17139 always_export_symbols_GCJ=yes 17140 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17141 # Note: this linker hardcodes the directories in LIBPATH if there 17142 # are no directories specified by -L. 17143 hardcode_minus_L_GCJ=yes 17144 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17145 # Neither direct hardcoding nor static linking is supported with a 17146 # broken collect2. 17147 hardcode_direct_GCJ=unsupported 17148 fi 17149 ;; 17150 17151 aix[4-9]*) 17152 if test "$host_cpu" = ia64; then 17153 # On IA64, the linker does run time linking by default, so we don't 17154 # have to do anything special. 17155 aix_use_runtimelinking=no 17156 exp_sym_flag='-Bexport' 17157 no_entry_flag="" 17158 else 17159 # If we're using GNU nm, then we don't want the "-C" option. 17160 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17161 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17162 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17163 else 17164 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17165 fi 17166 aix_use_runtimelinking=no 17167 17168 # Test if we are trying to use run time linking or normal 17169 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17170 # need to do runtime linking. 17171 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17172 for ld_flag in $LDFLAGS; do 17173 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17174 aix_use_runtimelinking=yes 17175 break 17176 fi 17177 done 17178 ;; 17179 esac 17180 17181 exp_sym_flag='-bexport' 17182 no_entry_flag='-bnoentry' 17183 fi 17184 17185 # When large executables or shared objects are built, AIX ld can 17186 # have problems creating the table of contents. If linking a library 17187 # or program results in "error TOC overflow" add -mminimal-toc to 17188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17190 17191 archive_cmds_GCJ='' 17192 hardcode_direct_GCJ=yes 17193 hardcode_libdir_separator_GCJ=':' 17194 link_all_deplibs_GCJ=yes 17195 17196 if test "$GCC" = yes; then 17197 case $host_os in aix4.[012]|aix4.[012].*) 17198 # We only want to do this on AIX 4.2 and lower, the check 17199 # below for broken collect2 doesn't work under 4.3+ 17200 collect2name=`${CC} -print-prog-name=collect2` 17201 if test -f "$collect2name" && \ 17202 strings "$collect2name" | grep resolve_lib_name >/dev/null 17203 then 17204 # We have reworked collect2 17205 : 17206 else 17207 # We have old collect2 17208 hardcode_direct_GCJ=unsupported 17209 # It fails to find uninstalled libraries when the uninstalled 17210 # path is not listed in the libpath. Setting hardcode_minus_L 17211 # to unsupported forces relinking 17212 hardcode_minus_L_GCJ=yes 17213 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17214 hardcode_libdir_separator_GCJ= 17215 fi 17216 ;; 17217 esac 17218 shared_flag='-shared' 17219 if test "$aix_use_runtimelinking" = yes; then 17220 shared_flag="$shared_flag "'${wl}-G' 17221 fi 17222 else 17223 # not using gcc 17224 if test "$host_cpu" = ia64; then 17225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17226 # chokes on -Wl,-G. The following line is correct: 17227 shared_flag='-G' 17228 else 17229 if test "$aix_use_runtimelinking" = yes; then 17230 shared_flag='${wl}-G' 17231 else 17232 shared_flag='${wl}-bM:SRE' 17233 fi 17234 fi 17235 fi 17236 17237 # It seems that -bexpall does not export symbols beginning with 17238 # underscore (_), so it is better to generate a list of symbols to export. 17239 always_export_symbols_GCJ=yes 17240 if test "$aix_use_runtimelinking" = yes; then 17241 # Warning - without using the other runtime loading flags (-brtl), 17242 # -berok will link without error, but may produce a broken library. 17243 allow_undefined_flag_GCJ='-berok' 17244 # Determine the default libpath from the value encoded in an empty executable. 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247 17248int 17249main () 17250{ 17251 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_link "$LINENO"; then : 17257 17258lt_aix_libpath_sed=' 17259 /Import File Strings/,/^$/ { 17260 /^0/ { 17261 s/^0 *\(.*\)$/\1/ 17262 p 17263 } 17264 }' 17265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17266# Check for a 64-bit object if we didn't find anything. 17267if test -z "$aix_libpath"; then 17268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17269fi 17270fi 17271rm -f core conftest.err conftest.$ac_objext \ 17272 conftest$ac_exeext conftest.$ac_ext 17273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17274 17275 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17276 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17277 else 17278 if test "$host_cpu" = ia64; then 17279 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17280 allow_undefined_flag_GCJ="-z nodefs" 17281 archive_expsym_cmds_GCJ="\$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" 17282 else 17283 # Determine the default libpath from the value encoded in an empty executable. 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286 17287int 17288main () 17289{ 17290 17291 ; 17292 return 0; 17293} 17294_ACEOF 17295if ac_fn_c_try_link "$LINENO"; then : 17296 17297lt_aix_libpath_sed=' 17298 /Import File Strings/,/^$/ { 17299 /^0/ { 17300 s/^0 *\(.*\)$/\1/ 17301 p 17302 } 17303 }' 17304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17305# Check for a 64-bit object if we didn't find anything. 17306if test -z "$aix_libpath"; then 17307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17308fi 17309fi 17310rm -f core conftest.err conftest.$ac_objext \ 17311 conftest$ac_exeext conftest.$ac_ext 17312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17313 17314 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17315 # Warning - without using the other run time loading flags, 17316 # -berok will link without error, but may produce a broken library. 17317 no_undefined_flag_GCJ=' ${wl}-bernotok' 17318 allow_undefined_flag_GCJ=' ${wl}-berok' 17319 # Exported symbols can be pulled into shared objects from archives 17320 whole_archive_flag_spec_GCJ='$convenience' 17321 archive_cmds_need_lc_GCJ=yes 17322 # This is similar to how AIX traditionally builds its shared libraries. 17323 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17324 fi 17325 fi 17326 ;; 17327 17328 amigaos*) 17329 archive_cmds_GCJ='$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)' 17330 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17331 hardcode_minus_L_GCJ=yes 17332 # see comment about different semantics on the GNU ld section 17333 ld_shlibs_GCJ=no 17334 ;; 17335 17336 bsdi[45]*) 17337 export_dynamic_flag_spec_GCJ=-rdynamic 17338 ;; 17339 17340 cygwin* | mingw* | pw32*) 17341 # When not using gcc, we currently assume that we are using 17342 # Microsoft Visual C++. 17343 # hardcode_libdir_flag_spec is actually meaningless, as there is 17344 # no search path for DLLs. 17345 hardcode_libdir_flag_spec_GCJ=' ' 17346 allow_undefined_flag_GCJ=unsupported 17347 # Tell ltmain to make .lib files, not .a files. 17348 libext=lib 17349 # Tell ltmain to make .dll files, not .so files. 17350 shrext_cmds=".dll" 17351 # FIXME: Setting linknames here is a bad hack. 17352 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17353 # The linker will automatically build a .lib file if we build a DLL. 17354 old_archive_From_new_cmds_GCJ='true' 17355 # FIXME: Should let the user specify the lib program. 17356 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17357 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17358 enable_shared_with_static_runtimes_GCJ=yes 17359 ;; 17360 17361 darwin* | rhapsody*) 17362 case $host_os in 17363 rhapsody* | darwin1.[012]) 17364 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17365 ;; 17366 *) # Darwin 1.3 on 17367 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17368 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17369 else 17370 case ${MACOSX_DEPLOYMENT_TARGET} in 17371 10.[012]) 17372 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17373 ;; 17374 10.*) 17375 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17376 ;; 17377 esac 17378 fi 17379 ;; 17380 esac 17381 archive_cmds_need_lc_GCJ=no 17382 hardcode_direct_GCJ=no 17383 hardcode_automatic_GCJ=yes 17384 hardcode_shlibpath_var_GCJ=unsupported 17385 whole_archive_flag_spec_GCJ='' 17386 link_all_deplibs_GCJ=yes 17387 if test "$GCC" = yes ; then 17388 output_verbose_link_cmd='echo' 17389 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17390 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17391 archive_expsym_cmds_GCJ="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}" 17392 module_expsym_cmds_GCJ="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}" 17393 else 17394 case $cc_basename in 17395 xlc*) 17396 output_verbose_link_cmd='echo' 17397 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17398 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17400 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17401 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17402 ;; 17403 *) 17404 ld_shlibs_GCJ=no 17405 ;; 17406 esac 17407 fi 17408 ;; 17409 17410 dgux*) 17411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17412 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17413 hardcode_shlibpath_var_GCJ=no 17414 ;; 17415 17416 freebsd1*) 17417 ld_shlibs_GCJ=no 17418 ;; 17419 17420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17421 # support. Future versions do this automatically, but an explicit c++rt0.o 17422 # does not break anything, and helps significantly (at the cost of a little 17423 # extra space). 17424 freebsd2.2*) 17425 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17426 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17427 hardcode_direct_GCJ=yes 17428 hardcode_shlibpath_var_GCJ=no 17429 ;; 17430 17431 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17432 freebsd2*) 17433 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17434 hardcode_direct_GCJ=yes 17435 hardcode_minus_L_GCJ=yes 17436 hardcode_shlibpath_var_GCJ=no 17437 ;; 17438 17439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17440 freebsd* | dragonfly*) 17441 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17442 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17443 hardcode_direct_GCJ=yes 17444 hardcode_shlibpath_var_GCJ=no 17445 ;; 17446 17447 hpux9*) 17448 if test "$GCC" = yes; then 17449 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17450 else 17451 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17452 fi 17453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17454 hardcode_libdir_separator_GCJ=: 17455 hardcode_direct_GCJ=yes 17456 17457 # hardcode_minus_L: Not really in the search PATH, 17458 # but as the default location of the library. 17459 hardcode_minus_L_GCJ=yes 17460 export_dynamic_flag_spec_GCJ='${wl}-E' 17461 ;; 17462 17463 hpux10*) 17464 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17465 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17466 else 17467 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17468 fi 17469 if test "$with_gnu_ld" = no; then 17470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17471 hardcode_libdir_separator_GCJ=: 17472 17473 hardcode_direct_GCJ=yes 17474 export_dynamic_flag_spec_GCJ='${wl}-E' 17475 17476 # hardcode_minus_L: Not really in the search PATH, 17477 # but as the default location of the library. 17478 hardcode_minus_L_GCJ=yes 17479 fi 17480 ;; 17481 17482 hpux11*) 17483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17484 case $host_cpu in 17485 hppa*64*) 17486 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17487 ;; 17488 ia64*) 17489 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17490 ;; 17491 *) 17492 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17493 ;; 17494 esac 17495 else 17496 case $host_cpu in 17497 hppa*64*) 17498 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17499 ;; 17500 ia64*) 17501 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17502 ;; 17503 *) 17504 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17505 ;; 17506 esac 17507 fi 17508 if test "$with_gnu_ld" = no; then 17509 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17510 hardcode_libdir_separator_GCJ=: 17511 17512 case $host_cpu in 17513 hppa*64*|ia64*) 17514 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17515 hardcode_direct_GCJ=no 17516 hardcode_shlibpath_var_GCJ=no 17517 ;; 17518 *) 17519 hardcode_direct_GCJ=yes 17520 export_dynamic_flag_spec_GCJ='${wl}-E' 17521 17522 # hardcode_minus_L: Not really in the search PATH, 17523 # but as the default location of the library. 17524 hardcode_minus_L_GCJ=yes 17525 ;; 17526 esac 17527 fi 17528 ;; 17529 17530 irix5* | irix6* | nonstopux*) 17531 if test "$GCC" = yes; then 17532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17533 else 17534 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17535 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17536 fi 17537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17538 hardcode_libdir_separator_GCJ=: 17539 link_all_deplibs_GCJ=yes 17540 ;; 17541 17542 netbsd*) 17543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17545 else 17546 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17547 fi 17548 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17549 hardcode_direct_GCJ=yes 17550 hardcode_shlibpath_var_GCJ=no 17551 ;; 17552 17553 newsos6) 17554 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17555 hardcode_direct_GCJ=yes 17556 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17557 hardcode_libdir_separator_GCJ=: 17558 hardcode_shlibpath_var_GCJ=no 17559 ;; 17560 17561 openbsd*) 17562 if test -f /usr/libexec/ld.so; then 17563 hardcode_direct_GCJ=yes 17564 hardcode_shlibpath_var_GCJ=no 17565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17566 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17567 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17569 export_dynamic_flag_spec_GCJ='${wl}-E' 17570 else 17571 case $host_os in 17572 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17574 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17575 ;; 17576 *) 17577 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17578 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17579 ;; 17580 esac 17581 fi 17582 else 17583 ld_shlibs_GCJ=no 17584 fi 17585 ;; 17586 17587 os2*) 17588 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17589 hardcode_minus_L_GCJ=yes 17590 allow_undefined_flag_GCJ=unsupported 17591 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 17592 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17593 ;; 17594 17595 osf3*) 17596 if test "$GCC" = yes; then 17597 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17598 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17599 else 17600 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17601 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17602 fi 17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17604 hardcode_libdir_separator_GCJ=: 17605 ;; 17606 17607 osf4* | osf5*) # as osf3* with the addition of -msym flag 17608 if test "$GCC" = yes; then 17609 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17610 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17612 else 17613 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17614 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17615 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17616 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17617 17618 # Both c and cxx compiler support -rpath directly 17619 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17620 fi 17621 hardcode_libdir_separator_GCJ=: 17622 ;; 17623 17624 solaris*) 17625 no_undefined_flag_GCJ=' -z text' 17626 if test "$GCC" = yes; then 17627 wlarc='${wl}' 17628 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17629 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17630 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17631 else 17632 wlarc='' 17633 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17634 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17636 fi 17637 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17638 hardcode_shlibpath_var_GCJ=no 17639 case $host_os in 17640 solaris2.[0-5] | solaris2.[0-5].*) ;; 17641 *) 17642 # The compiler driver will combine and reorder linker options, 17643 # but understands `-z linker_flag'. GCC discards it without `$wl', 17644 # but is careful enough not to reorder. 17645 # Supported since Solaris 2.6 (maybe 2.5.1?) 17646 if test "$GCC" = yes; then 17647 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17648 else 17649 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17650 fi 17651 ;; 17652 esac 17653 link_all_deplibs_GCJ=yes 17654 ;; 17655 17656 sunos4*) 17657 if test "x$host_vendor" = xsequent; then 17658 # Use $CC to link under sequent, because it throws in some extra .o 17659 # files that make .init and .fini sections work. 17660 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17661 else 17662 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17663 fi 17664 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17665 hardcode_direct_GCJ=yes 17666 hardcode_minus_L_GCJ=yes 17667 hardcode_shlibpath_var_GCJ=no 17668 ;; 17669 17670 sysv4) 17671 case $host_vendor in 17672 sni) 17673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17674 hardcode_direct_GCJ=yes # is this really true??? 17675 ;; 17676 siemens) 17677 ## LD is ld it makes a PLAMLIB 17678 ## CC just makes a GrossModule. 17679 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17680 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17681 hardcode_direct_GCJ=no 17682 ;; 17683 motorola) 17684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17685 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17686 ;; 17687 esac 17688 runpath_var='LD_RUN_PATH' 17689 hardcode_shlibpath_var_GCJ=no 17690 ;; 17691 17692 sysv4.3*) 17693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17694 hardcode_shlibpath_var_GCJ=no 17695 export_dynamic_flag_spec_GCJ='-Bexport' 17696 ;; 17697 17698 sysv4*MP*) 17699 if test -d /usr/nec; then 17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17701 hardcode_shlibpath_var_GCJ=no 17702 runpath_var=LD_RUN_PATH 17703 hardcode_runpath_var=yes 17704 ld_shlibs_GCJ=yes 17705 fi 17706 ;; 17707 17708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17709 no_undefined_flag_GCJ='${wl}-z,text' 17710 archive_cmds_need_lc_GCJ=no 17711 hardcode_shlibpath_var_GCJ=no 17712 runpath_var='LD_RUN_PATH' 17713 17714 if test "$GCC" = yes; then 17715 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17716 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17717 else 17718 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17719 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17720 fi 17721 ;; 17722 17723 sysv5* | sco3.2v5* | sco5v6*) 17724 # Note: We can NOT use -z defs as we might desire, because we do not 17725 # link with -lc, and that would cause any symbols used from libc to 17726 # always be unresolved, which means just about no library would 17727 # ever link correctly. If we're not using GNU ld we use -z text 17728 # though, which does catch some bad symbols but isn't as heavy-handed 17729 # as -z defs. 17730 no_undefined_flag_GCJ='${wl}-z,text' 17731 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17732 archive_cmds_need_lc_GCJ=no 17733 hardcode_shlibpath_var_GCJ=no 17734 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17735 hardcode_libdir_separator_GCJ=':' 17736 link_all_deplibs_GCJ=yes 17737 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17738 runpath_var='LD_RUN_PATH' 17739 17740 if test "$GCC" = yes; then 17741 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17742 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17743 else 17744 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17745 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17746 fi 17747 ;; 17748 17749 uts4*) 17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17751 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17752 hardcode_shlibpath_var_GCJ=no 17753 ;; 17754 17755 *) 17756 ld_shlibs_GCJ=no 17757 ;; 17758 esac 17759 fi 17760 17761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 17762$as_echo "$ld_shlibs_GCJ" >&6; } 17763test "$ld_shlibs_GCJ" = no && can_build_shared=no 17764 17765# 17766# Do we need to explicitly link libc? 17767# 17768case "x$archive_cmds_need_lc_GCJ" in 17769x|xyes) 17770 # Assume -lc should be added 17771 archive_cmds_need_lc_GCJ=yes 17772 17773 if test "$enable_shared" = yes && test "$GCC" = yes; then 17774 case $archive_cmds_GCJ in 17775 *'~'*) 17776 # FIXME: we may have to deal with multi-command sequences. 17777 ;; 17778 '$CC '*) 17779 # Test whether the compiler implicitly links with -lc since on some 17780 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17781 # to ld, don't add -lc before -lgcc. 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17783$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17784 $rm conftest* 17785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17786 17787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17788 (eval $ac_compile) 2>&5 17789 ac_status=$? 17790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17791 test $ac_status = 0; } 2>conftest.err; then 17792 soname=conftest 17793 lib=conftest 17794 libobjs=conftest.$ac_objext 17795 deplibs= 17796 wl=$lt_prog_compiler_wl_GCJ 17797 pic_flag=$lt_prog_compiler_pic_GCJ 17798 compiler_flags=-v 17799 linker_flags=-v 17800 verstring= 17801 output_objdir=. 17802 libname=conftest 17803 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17804 allow_undefined_flag_GCJ= 17805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17806 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17807 ac_status=$? 17808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17809 test $ac_status = 0; } 17810 then 17811 archive_cmds_need_lc_GCJ=no 17812 else 17813 archive_cmds_need_lc_GCJ=yes 17814 fi 17815 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17816 else 17817 cat conftest.err 1>&5 17818 fi 17819 $rm conftest* 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 17821$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 17822 ;; 17823 esac 17824 fi 17825 ;; 17826esac 17827 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17829$as_echo_n "checking dynamic linker characteristics... " >&6; } 17830library_names_spec= 17831libname_spec='lib$name' 17832soname_spec= 17833shrext_cmds=".so" 17834postinstall_cmds= 17835postuninstall_cmds= 17836finish_cmds= 17837finish_eval= 17838shlibpath_var= 17839shlibpath_overrides_runpath=unknown 17840version_type=none 17841dynamic_linker="$host_os ld.so" 17842sys_lib_dlsearch_path_spec="/lib /usr/lib" 17843 17844need_lib_prefix=unknown 17845hardcode_into_libs=no 17846 17847# when you set need_version to no, make sure it does not cause -set_version 17848# flags to be left without arguments 17849need_version=unknown 17850 17851case $host_os in 17852aix3*) 17853 version_type=linux 17854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17855 shlibpath_var=LIBPATH 17856 17857 # AIX 3 has no versioning support, so we append a major version to the name. 17858 soname_spec='${libname}${release}${shared_ext}$major' 17859 ;; 17860 17861aix[4-9]*) 17862 version_type=linux 17863 need_lib_prefix=no 17864 need_version=no 17865 hardcode_into_libs=yes 17866 if test "$host_cpu" = ia64; then 17867 # AIX 5 supports IA64 17868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17869 shlibpath_var=LD_LIBRARY_PATH 17870 else 17871 # With GCC up to 2.95.x, collect2 would create an import file 17872 # for dependence libraries. The import file would start with 17873 # the line `#! .'. This would cause the generated library to 17874 # depend on `.', always an invalid library. This was fixed in 17875 # development snapshots of GCC prior to 3.0. 17876 case $host_os in 17877 aix4 | aix4.[01] | aix4.[01].*) 17878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17879 echo ' yes ' 17880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17881 : 17882 else 17883 can_build_shared=no 17884 fi 17885 ;; 17886 esac 17887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17888 # soname into executable. Probably we can add versioning support to 17889 # collect2, so additional links can be useful in future. 17890 if test "$aix_use_runtimelinking" = yes; then 17891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17892 # instead of lib<name>.a to let people know that these are not 17893 # typical AIX shared libraries. 17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17895 else 17896 # We preserve .a as extension for shared libraries through AIX4.2 17897 # and later when we are not doing run time linking. 17898 library_names_spec='${libname}${release}.a $libname.a' 17899 soname_spec='${libname}${release}${shared_ext}$major' 17900 fi 17901 shlibpath_var=LIBPATH 17902 fi 17903 ;; 17904 17905amigaos*) 17906 library_names_spec='$libname.ixlibrary $libname.a' 17907 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17908 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17909 ;; 17910 17911beos*) 17912 library_names_spec='${libname}${shared_ext}' 17913 dynamic_linker="$host_os ld.so" 17914 shlibpath_var=LIBRARY_PATH 17915 ;; 17916 17917bsdi[45]*) 17918 version_type=linux 17919 need_version=no 17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17921 soname_spec='${libname}${release}${shared_ext}$major' 17922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17923 shlibpath_var=LD_LIBRARY_PATH 17924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17926 # the default ld.so.conf also contains /usr/contrib/lib and 17927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17928 # libtool to hard-code these into programs 17929 ;; 17930 17931cygwin* | mingw* | pw32*) 17932 version_type=windows 17933 shrext_cmds=".dll" 17934 need_version=no 17935 need_lib_prefix=no 17936 17937 case $GCC,$host_os in 17938 yes,cygwin* | yes,mingw* | yes,pw32*) 17939 library_names_spec='$libname.dll.a' 17940 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17941 postinstall_cmds='base_file=`basename \${file}`~ 17942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17943 dldir=$destdir/`dirname \$dlpath`~ 17944 test -d \$dldir || mkdir -p \$dldir~ 17945 $install_prog $dir/$dlname \$dldir/$dlname~ 17946 chmod a+x \$dldir/$dlname' 17947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17948 dlpath=$dir/\$dldll~ 17949 $rm \$dlpath' 17950 shlibpath_overrides_runpath=yes 17951 17952 case $host_os in 17953 cygwin*) 17954 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17957 ;; 17958 mingw*) 17959 # MinGW DLLs use traditional 'lib' prefix 17960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17963 # It is most probably a Windows format PATH printed by 17964 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17965 # path with ; separators, and with drive letters. We can handle the 17966 # drive letters (cygwin fileutils understands them), so leave them, 17967 # especially as we might pass files found there to a mingw objdump, 17968 # which wouldn't understand a cygwinified path. Ahh. 17969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17970 else 17971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17972 fi 17973 ;; 17974 pw32*) 17975 # pw32 DLLs use 'pw' prefix rather than 'lib' 17976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17977 ;; 17978 esac 17979 ;; 17980 17981 *) 17982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17983 ;; 17984 esac 17985 dynamic_linker='Win32 ld.exe' 17986 # FIXME: first we should search . and the directory the executable is in 17987 shlibpath_var=PATH 17988 ;; 17989 17990darwin* | rhapsody*) 17991 dynamic_linker="$host_os dyld" 17992 version_type=darwin 17993 need_lib_prefix=no 17994 need_version=no 17995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17996 soname_spec='${libname}${release}${major}$shared_ext' 17997 shlibpath_overrides_runpath=yes 17998 shlibpath_var=DYLD_LIBRARY_PATH 17999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18000 18001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18002 ;; 18003 18004dgux*) 18005 version_type=linux 18006 need_lib_prefix=no 18007 need_version=no 18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18009 soname_spec='${libname}${release}${shared_ext}$major' 18010 shlibpath_var=LD_LIBRARY_PATH 18011 ;; 18012 18013freebsd1*) 18014 dynamic_linker=no 18015 ;; 18016 18017freebsd* | dragonfly*) 18018 # DragonFly does not have aout. When/if they implement a new 18019 # versioning mechanism, adjust this. 18020 if test -x /usr/bin/objformat; then 18021 objformat=`/usr/bin/objformat` 18022 else 18023 case $host_os in 18024 freebsd[123]*) objformat=aout ;; 18025 *) objformat=elf ;; 18026 esac 18027 fi 18028 version_type=freebsd-$objformat 18029 case $version_type in 18030 freebsd-elf*) 18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18032 need_version=no 18033 need_lib_prefix=no 18034 ;; 18035 freebsd-*) 18036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18037 need_version=yes 18038 ;; 18039 esac 18040 shlibpath_var=LD_LIBRARY_PATH 18041 case $host_os in 18042 freebsd2*) 18043 shlibpath_overrides_runpath=yes 18044 ;; 18045 freebsd3.[01]* | freebsdelf3.[01]*) 18046 shlibpath_overrides_runpath=yes 18047 hardcode_into_libs=yes 18048 ;; 18049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18051 shlibpath_overrides_runpath=no 18052 hardcode_into_libs=yes 18053 ;; 18054 *) # from 4.6 on, and DragonFly 18055 shlibpath_overrides_runpath=yes 18056 hardcode_into_libs=yes 18057 ;; 18058 esac 18059 ;; 18060 18061gnu*) 18062 version_type=linux 18063 need_lib_prefix=no 18064 need_version=no 18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18066 soname_spec='${libname}${release}${shared_ext}$major' 18067 shlibpath_var=LD_LIBRARY_PATH 18068 hardcode_into_libs=yes 18069 ;; 18070 18071hpux9* | hpux10* | hpux11*) 18072 # Give a soname corresponding to the major version so that dld.sl refuses to 18073 # link against other versions. 18074 version_type=sunos 18075 need_lib_prefix=no 18076 need_version=no 18077 case $host_cpu in 18078 ia64*) 18079 shrext_cmds='.so' 18080 hardcode_into_libs=yes 18081 dynamic_linker="$host_os dld.so" 18082 shlibpath_var=LD_LIBRARY_PATH 18083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18085 soname_spec='${libname}${release}${shared_ext}$major' 18086 if test "X$HPUX_IA64_MODE" = X32; then 18087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18088 else 18089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18090 fi 18091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18092 ;; 18093 hppa*64*) 18094 shrext_cmds='.sl' 18095 hardcode_into_libs=yes 18096 dynamic_linker="$host_os dld.sl" 18097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18100 soname_spec='${libname}${release}${shared_ext}$major' 18101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18103 ;; 18104 *) 18105 shrext_cmds='.sl' 18106 dynamic_linker="$host_os dld.sl" 18107 shlibpath_var=SHLIB_PATH 18108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18110 soname_spec='${libname}${release}${shared_ext}$major' 18111 ;; 18112 esac 18113 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18114 postinstall_cmds='chmod 555 $lib' 18115 ;; 18116 18117interix[3-9]*) 18118 version_type=linux 18119 need_lib_prefix=no 18120 need_version=no 18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18122 soname_spec='${libname}${release}${shared_ext}$major' 18123 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18124 shlibpath_var=LD_LIBRARY_PATH 18125 shlibpath_overrides_runpath=no 18126 hardcode_into_libs=yes 18127 ;; 18128 18129irix5* | irix6* | nonstopux*) 18130 case $host_os in 18131 nonstopux*) version_type=nonstopux ;; 18132 *) 18133 if test "$lt_cv_prog_gnu_ld" = yes; then 18134 version_type=linux 18135 else 18136 version_type=irix 18137 fi ;; 18138 esac 18139 need_lib_prefix=no 18140 need_version=no 18141 soname_spec='${libname}${release}${shared_ext}$major' 18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18143 case $host_os in 18144 irix5* | nonstopux*) 18145 libsuff= shlibsuff= 18146 ;; 18147 *) 18148 case $LD in # libtool.m4 will add one of these switches to LD 18149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18150 libsuff= shlibsuff= libmagic=32-bit;; 18151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18152 libsuff=32 shlibsuff=N32 libmagic=N32;; 18153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18154 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18155 *) libsuff= shlibsuff= libmagic=never-match;; 18156 esac 18157 ;; 18158 esac 18159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18160 shlibpath_overrides_runpath=no 18161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18163 hardcode_into_libs=yes 18164 ;; 18165 18166# No shared lib support for Linux oldld, aout, or coff. 18167linux*oldld* | linux*aout* | linux*coff*) 18168 dynamic_linker=no 18169 ;; 18170 18171# This must be Linux ELF. 18172linux* | k*bsd*-gnu) 18173 version_type=linux 18174 need_lib_prefix=no 18175 need_version=no 18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18177 soname_spec='${libname}${release}${shared_ext}$major' 18178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18179 shlibpath_var=LD_LIBRARY_PATH 18180 shlibpath_overrides_runpath=no 18181 # This implies no fast_install, which is unacceptable. 18182 # Some rework will be needed to allow for fast_install 18183 # before this can be enabled. 18184 hardcode_into_libs=yes 18185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18187 18188 # Append ld.so.conf contents to the search path 18189 if test -f /etc/ld.so.conf; then 18190 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;/^$/d' | tr '\n' ' '` 18191 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18192 fi 18193 18194 # We used to test for /lib/ld.so.1 and disable shared libraries on 18195 # powerpc, because MkLinux only supported shared libraries with the 18196 # GNU dynamic linker. Since this was broken with cross compilers, 18197 # most powerpc-linux boxes support dynamic linking these days and 18198 # people can always --disable-shared, the test was removed, and we 18199 # assume the GNU/Linux dynamic linker is in use. 18200 dynamic_linker='GNU/Linux ld.so' 18201 ;; 18202 18203netbsd*) 18204 version_type=sunos 18205 need_lib_prefix=no 18206 need_version=no 18207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18210 dynamic_linker='NetBSD (a.out) ld.so' 18211 else 18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18213 soname_spec='${libname}${release}${shared_ext}$major' 18214 dynamic_linker='NetBSD ld.elf_so' 18215 fi 18216 shlibpath_var=LD_LIBRARY_PATH 18217 shlibpath_overrides_runpath=yes 18218 hardcode_into_libs=yes 18219 ;; 18220 18221newsos6) 18222 version_type=linux 18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18224 shlibpath_var=LD_LIBRARY_PATH 18225 shlibpath_overrides_runpath=yes 18226 ;; 18227 18228nto-qnx*) 18229 version_type=linux 18230 need_lib_prefix=no 18231 need_version=no 18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18233 soname_spec='${libname}${release}${shared_ext}$major' 18234 shlibpath_var=LD_LIBRARY_PATH 18235 shlibpath_overrides_runpath=yes 18236 ;; 18237 18238openbsd*) 18239 version_type=sunos 18240 sys_lib_dlsearch_path_spec="/usr/lib" 18241 need_lib_prefix=no 18242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18243 case $host_os in 18244 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18245 *) need_version=no ;; 18246 esac 18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18249 shlibpath_var=LD_LIBRARY_PATH 18250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18251 case $host_os in 18252 openbsd2.[89] | openbsd2.[89].*) 18253 shlibpath_overrides_runpath=no 18254 ;; 18255 *) 18256 shlibpath_overrides_runpath=yes 18257 ;; 18258 esac 18259 else 18260 shlibpath_overrides_runpath=yes 18261 fi 18262 ;; 18263 18264os2*) 18265 libname_spec='$name' 18266 shrext_cmds=".dll" 18267 need_lib_prefix=no 18268 library_names_spec='$libname${shared_ext} $libname.a' 18269 dynamic_linker='OS/2 ld.exe' 18270 shlibpath_var=LIBPATH 18271 ;; 18272 18273osf3* | osf4* | osf5*) 18274 version_type=osf 18275 need_lib_prefix=no 18276 need_version=no 18277 soname_spec='${libname}${release}${shared_ext}$major' 18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18279 shlibpath_var=LD_LIBRARY_PATH 18280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18282 ;; 18283 18284rdos*) 18285 dynamic_linker=no 18286 ;; 18287 18288solaris*) 18289 version_type=linux 18290 need_lib_prefix=no 18291 need_version=no 18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18293 soname_spec='${libname}${release}${shared_ext}$major' 18294 shlibpath_var=LD_LIBRARY_PATH 18295 shlibpath_overrides_runpath=yes 18296 hardcode_into_libs=yes 18297 # ldd complains unless libraries are executable 18298 postinstall_cmds='chmod +x $lib' 18299 ;; 18300 18301sunos4*) 18302 version_type=sunos 18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18305 shlibpath_var=LD_LIBRARY_PATH 18306 shlibpath_overrides_runpath=yes 18307 if test "$with_gnu_ld" = yes; then 18308 need_lib_prefix=no 18309 fi 18310 need_version=yes 18311 ;; 18312 18313sysv4 | sysv4.3*) 18314 version_type=linux 18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18316 soname_spec='${libname}${release}${shared_ext}$major' 18317 shlibpath_var=LD_LIBRARY_PATH 18318 case $host_vendor in 18319 sni) 18320 shlibpath_overrides_runpath=no 18321 need_lib_prefix=no 18322 export_dynamic_flag_spec='${wl}-Blargedynsym' 18323 runpath_var=LD_RUN_PATH 18324 ;; 18325 siemens) 18326 need_lib_prefix=no 18327 ;; 18328 motorola) 18329 need_lib_prefix=no 18330 need_version=no 18331 shlibpath_overrides_runpath=no 18332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18333 ;; 18334 esac 18335 ;; 18336 18337sysv4*MP*) 18338 if test -d /usr/nec ;then 18339 version_type=linux 18340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18341 soname_spec='$libname${shared_ext}.$major' 18342 shlibpath_var=LD_LIBRARY_PATH 18343 fi 18344 ;; 18345 18346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18347 version_type=freebsd-elf 18348 need_lib_prefix=no 18349 need_version=no 18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18351 soname_spec='${libname}${release}${shared_ext}$major' 18352 shlibpath_var=LD_LIBRARY_PATH 18353 hardcode_into_libs=yes 18354 if test "$with_gnu_ld" = yes; then 18355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18356 shlibpath_overrides_runpath=no 18357 else 18358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18359 shlibpath_overrides_runpath=yes 18360 case $host_os in 18361 sco3.2v5*) 18362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18363 ;; 18364 esac 18365 fi 18366 sys_lib_dlsearch_path_spec='/usr/lib' 18367 ;; 18368 18369uts4*) 18370 version_type=linux 18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18372 soname_spec='${libname}${release}${shared_ext}$major' 18373 shlibpath_var=LD_LIBRARY_PATH 18374 ;; 18375 18376*) 18377 dynamic_linker=no 18378 ;; 18379esac 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18381$as_echo "$dynamic_linker" >&6; } 18382test "$dynamic_linker" = no && can_build_shared=no 18383 18384if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 18385 $as_echo_n "(cached) " >&6 18386else 18387 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18388fi 18389 18390sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18391if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 18392 $as_echo_n "(cached) " >&6 18393else 18394 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18395fi 18396 18397sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18398 18399variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18400if test "$GCC" = yes; then 18401 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18402fi 18403 18404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18405$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18406hardcode_action_GCJ= 18407if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18408 test -n "$runpath_var_GCJ" || \ 18409 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18410 18411 # We can hardcode non-existant directories. 18412 if test "$hardcode_direct_GCJ" != no && 18413 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18414 # have to relink, otherwise we might link with an installed library 18415 # when we should be linking with a yet-to-be-installed one 18416 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18417 test "$hardcode_minus_L_GCJ" != no; then 18418 # Linking always hardcodes the temporary library directory. 18419 hardcode_action_GCJ=relink 18420 else 18421 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18422 hardcode_action_GCJ=immediate 18423 fi 18424else 18425 # We cannot hardcode anything, or else we can only hardcode existing 18426 # directories. 18427 hardcode_action_GCJ=unsupported 18428fi 18429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 18430$as_echo "$hardcode_action_GCJ" >&6; } 18431 18432if test "$hardcode_action_GCJ" = relink; then 18433 # Fast installation is not supported 18434 enable_fast_install=no 18435elif test "$shlibpath_overrides_runpath" = yes || 18436 test "$enable_shared" = no; then 18437 # Fast installation is not necessary 18438 enable_fast_install=needless 18439fi 18440 18441 18442# The else clause should only fire when bootstrapping the 18443# libtool distribution, otherwise you forgot to ship ltmain.sh 18444# with your package, and you will get complaints that there are 18445# no rules to generate ltmain.sh. 18446if test -f "$ltmain"; then 18447 # See if we are running on zsh, and set the options which allow our commands through 18448 # without removal of \ escapes. 18449 if test -n "${ZSH_VERSION+set}" ; then 18450 setopt NO_GLOB_SUBST 18451 fi 18452 # Now quote all the things that may contain metacharacters while being 18453 # careful not to overquote the AC_SUBSTed values. We take copies of the 18454 # variables and quote the copies for generation of the libtool script. 18455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18456 SED SHELL STRIP \ 18457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18459 deplibs_check_method reload_flag reload_cmds need_locks \ 18460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18461 lt_cv_sys_global_symbol_to_c_name_address \ 18462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18463 old_postinstall_cmds old_postuninstall_cmds \ 18464 compiler_GCJ \ 18465 CC_GCJ \ 18466 LD_GCJ \ 18467 lt_prog_compiler_wl_GCJ \ 18468 lt_prog_compiler_pic_GCJ \ 18469 lt_prog_compiler_static_GCJ \ 18470 lt_prog_compiler_no_builtin_flag_GCJ \ 18471 export_dynamic_flag_spec_GCJ \ 18472 thread_safe_flag_spec_GCJ \ 18473 whole_archive_flag_spec_GCJ \ 18474 enable_shared_with_static_runtimes_GCJ \ 18475 old_archive_cmds_GCJ \ 18476 old_archive_from_new_cmds_GCJ \ 18477 predep_objects_GCJ \ 18478 postdep_objects_GCJ \ 18479 predeps_GCJ \ 18480 postdeps_GCJ \ 18481 compiler_lib_search_path_GCJ \ 18482 compiler_lib_search_dirs_GCJ \ 18483 archive_cmds_GCJ \ 18484 archive_expsym_cmds_GCJ \ 18485 postinstall_cmds_GCJ \ 18486 postuninstall_cmds_GCJ \ 18487 old_archive_from_expsyms_cmds_GCJ \ 18488 allow_undefined_flag_GCJ \ 18489 no_undefined_flag_GCJ \ 18490 export_symbols_cmds_GCJ \ 18491 hardcode_libdir_flag_spec_GCJ \ 18492 hardcode_libdir_flag_spec_ld_GCJ \ 18493 hardcode_libdir_separator_GCJ \ 18494 hardcode_automatic_GCJ \ 18495 module_cmds_GCJ \ 18496 module_expsym_cmds_GCJ \ 18497 lt_cv_prog_compiler_c_o_GCJ \ 18498 fix_srcfile_path_GCJ \ 18499 exclude_expsyms_GCJ \ 18500 include_expsyms_GCJ; do 18501 18502 case $var in 18503 old_archive_cmds_GCJ | \ 18504 old_archive_from_new_cmds_GCJ | \ 18505 archive_cmds_GCJ | \ 18506 archive_expsym_cmds_GCJ | \ 18507 module_cmds_GCJ | \ 18508 module_expsym_cmds_GCJ | \ 18509 old_archive_from_expsyms_cmds_GCJ | \ 18510 export_symbols_cmds_GCJ | \ 18511 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18512 postinstall_cmds | postuninstall_cmds | \ 18513 old_postinstall_cmds | old_postuninstall_cmds | \ 18514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18515 # Double-quote double-evaled strings. 18516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18517 ;; 18518 *) 18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18520 ;; 18521 esac 18522 done 18523 18524 case $lt_echo in 18525 *'\$0 --fallback-echo"') 18526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18527 ;; 18528 esac 18529 18530cfgfile="$ofile" 18531 18532 cat <<__EOF__ >> "$cfgfile" 18533# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18534 18535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18536 18537# Shell to use when invoking shell scripts. 18538SHELL=$lt_SHELL 18539 18540# Whether or not to build shared libraries. 18541build_libtool_libs=$enable_shared 18542 18543# Whether or not to build static libraries. 18544build_old_libs=$enable_static 18545 18546# Whether or not to add -lc for building shared libraries. 18547build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18548 18549# Whether or not to disallow shared libs when runtime libs are static 18550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18551 18552# Whether or not to optimize for fast installation. 18553fast_install=$enable_fast_install 18554 18555# The host system. 18556host_alias=$host_alias 18557host=$host 18558host_os=$host_os 18559 18560# The build system. 18561build_alias=$build_alias 18562build=$build 18563build_os=$build_os 18564 18565# An echo program that does not interpret backslashes. 18566echo=$lt_echo 18567 18568# The archiver. 18569AR=$lt_AR 18570AR_FLAGS=$lt_AR_FLAGS 18571 18572# A C compiler. 18573LTCC=$lt_LTCC 18574 18575# LTCC compiler flags. 18576LTCFLAGS=$lt_LTCFLAGS 18577 18578# A language-specific compiler. 18579CC=$lt_compiler_GCJ 18580 18581# Is the compiler the GNU C compiler? 18582with_gcc=$GCC_GCJ 18583 18584# An ERE matcher. 18585EGREP=$lt_EGREP 18586 18587# The linker used to build libraries. 18588LD=$lt_LD_GCJ 18589 18590# Whether we need hard or soft links. 18591LN_S=$lt_LN_S 18592 18593# A BSD-compatible nm program. 18594NM=$lt_NM 18595 18596# A symbol stripping program 18597STRIP=$lt_STRIP 18598 18599# Used to examine libraries when file_magic_cmd begins "file" 18600MAGIC_CMD=$MAGIC_CMD 18601 18602# Used on cygwin: DLL creation program. 18603DLLTOOL="$DLLTOOL" 18604 18605# Used on cygwin: object dumper. 18606OBJDUMP="$OBJDUMP" 18607 18608# Used on cygwin: assembler. 18609AS="$AS" 18610 18611# The name of the directory that contains temporary libtool files. 18612objdir=$objdir 18613 18614# How to create reloadable object files. 18615reload_flag=$lt_reload_flag 18616reload_cmds=$lt_reload_cmds 18617 18618# How to pass a linker flag through the compiler. 18619wl=$lt_lt_prog_compiler_wl_GCJ 18620 18621# Object file suffix (normally "o"). 18622objext="$ac_objext" 18623 18624# Old archive suffix (normally "a"). 18625libext="$libext" 18626 18627# Shared library suffix (normally ".so"). 18628shrext_cmds='$shrext_cmds' 18629 18630# Executable file suffix (normally ""). 18631exeext="$exeext" 18632 18633# Additional compiler flags for building library objects. 18634pic_flag=$lt_lt_prog_compiler_pic_GCJ 18635pic_mode=$pic_mode 18636 18637# What is the maximum length of a command? 18638max_cmd_len=$lt_cv_sys_max_cmd_len 18639 18640# Does compiler simultaneously support -c and -o options? 18641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18642 18643# Must we lock files when doing compilation? 18644need_locks=$lt_need_locks 18645 18646# Do we need the lib prefix for modules? 18647need_lib_prefix=$need_lib_prefix 18648 18649# Do we need a version for libraries? 18650need_version=$need_version 18651 18652# Whether dlopen is supported. 18653dlopen_support=$enable_dlopen 18654 18655# Whether dlopen of programs is supported. 18656dlopen_self=$enable_dlopen_self 18657 18658# Whether dlopen of statically linked programs is supported. 18659dlopen_self_static=$enable_dlopen_self_static 18660 18661# Compiler flag to prevent dynamic linking. 18662link_static_flag=$lt_lt_prog_compiler_static_GCJ 18663 18664# Compiler flag to turn off builtin functions. 18665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18666 18667# Compiler flag to allow reflexive dlopens. 18668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18669 18670# Compiler flag to generate shared objects directly from archives. 18671whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18672 18673# Compiler flag to generate thread-safe objects. 18674thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18675 18676# Library versioning type. 18677version_type=$version_type 18678 18679# Format of library name prefix. 18680libname_spec=$lt_libname_spec 18681 18682# List of archive names. First name is the real one, the rest are links. 18683# The last name is the one that the linker finds with -lNAME. 18684library_names_spec=$lt_library_names_spec 18685 18686# The coded name of the library, if different from the real name. 18687soname_spec=$lt_soname_spec 18688 18689# Commands used to build and install an old-style archive. 18690RANLIB=$lt_RANLIB 18691old_archive_cmds=$lt_old_archive_cmds_GCJ 18692old_postinstall_cmds=$lt_old_postinstall_cmds 18693old_postuninstall_cmds=$lt_old_postuninstall_cmds 18694 18695# Create an old-style archive from a shared archive. 18696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18697 18698# Create a temporary old-style archive to link instead of a shared archive. 18699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18700 18701# Commands used to build and install a shared archive. 18702archive_cmds=$lt_archive_cmds_GCJ 18703archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18704postinstall_cmds=$lt_postinstall_cmds 18705postuninstall_cmds=$lt_postuninstall_cmds 18706 18707# Commands used to build a loadable module (assumed same as above if empty) 18708module_cmds=$lt_module_cmds_GCJ 18709module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18710 18711# Commands to strip libraries. 18712old_striplib=$lt_old_striplib 18713striplib=$lt_striplib 18714 18715# Dependencies to place before the objects being linked to create a 18716# shared library. 18717predep_objects=$lt_predep_objects_GCJ 18718 18719# Dependencies to place after the objects being linked to create a 18720# shared library. 18721postdep_objects=$lt_postdep_objects_GCJ 18722 18723# Dependencies to place before the objects being linked to create a 18724# shared library. 18725predeps=$lt_predeps_GCJ 18726 18727# Dependencies to place after the objects being linked to create a 18728# shared library. 18729postdeps=$lt_postdeps_GCJ 18730 18731# The directories searched by this compiler when creating a shared 18732# library 18733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 18734 18735# The library search path used internally by the compiler when linking 18736# a shared library. 18737compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18738 18739# Method to check whether dependent libraries are shared objects. 18740deplibs_check_method=$lt_deplibs_check_method 18741 18742# Command to use when deplibs_check_method == file_magic. 18743file_magic_cmd=$lt_file_magic_cmd 18744 18745# Flag that allows shared libraries with undefined symbols to be built. 18746allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18747 18748# Flag that forces no undefined symbols. 18749no_undefined_flag=$lt_no_undefined_flag_GCJ 18750 18751# Commands used to finish a libtool library installation in a directory. 18752finish_cmds=$lt_finish_cmds 18753 18754# Same as above, but a single script fragment to be evaled but not shown. 18755finish_eval=$lt_finish_eval 18756 18757# Take the output of nm and produce a listing of raw symbols and C names. 18758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18759 18760# Transform the output of nm in a proper C declaration 18761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18762 18763# Transform the output of nm in a C name address pair 18764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18765 18766# This is the shared library runtime path variable. 18767runpath_var=$runpath_var 18768 18769# This is the shared library path variable. 18770shlibpath_var=$shlibpath_var 18771 18772# Is shlibpath searched before the hard-coded library search path? 18773shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18774 18775# How to hardcode a shared library path into an executable. 18776hardcode_action=$hardcode_action_GCJ 18777 18778# Whether we should hardcode library paths into libraries. 18779hardcode_into_libs=$hardcode_into_libs 18780 18781# Flag to hardcode \$libdir into a binary during linking. 18782# This must work even if \$libdir does not exist. 18783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18784 18785# If ld is used when linking, flag to hardcode \$libdir into 18786# a binary during linking. This must work even if \$libdir does 18787# not exist. 18788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18789 18790# Whether we need a single -rpath flag with a separated argument. 18791hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18792 18793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18794# resulting binary. 18795hardcode_direct=$hardcode_direct_GCJ 18796 18797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18798# resulting binary. 18799hardcode_minus_L=$hardcode_minus_L_GCJ 18800 18801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18802# the resulting binary. 18803hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18804 18805# Set to yes if building a shared library automatically hardcodes DIR into the library 18806# and all subsequent libraries and executables linked against it. 18807hardcode_automatic=$hardcode_automatic_GCJ 18808 18809# Variables whose values should be saved in libtool wrapper scripts and 18810# restored at relink time. 18811variables_saved_for_relink="$variables_saved_for_relink" 18812 18813# Whether libtool must link a program against all its dependency libraries. 18814link_all_deplibs=$link_all_deplibs_GCJ 18815 18816# Compile-time system search path for libraries 18817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18818 18819# Run-time system search path for libraries 18820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18821 18822# Fix the shell variable \$srcfile for the compiler. 18823fix_srcfile_path=$lt_fix_srcfile_path 18824 18825# Set to yes if exported symbols are required. 18826always_export_symbols=$always_export_symbols_GCJ 18827 18828# The commands to list exported symbols. 18829export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18830 18831# The commands to extract the exported symbol list from a shared archive. 18832extract_expsyms_cmds=$lt_extract_expsyms_cmds 18833 18834# Symbols that should not be listed in the preloaded symbols. 18835exclude_expsyms=$lt_exclude_expsyms_GCJ 18836 18837# Symbols that must always be exported. 18838include_expsyms=$lt_include_expsyms_GCJ 18839 18840# ### END LIBTOOL TAG CONFIG: $tagname 18841 18842__EOF__ 18843 18844 18845else 18846 # If there is no Makefile yet, we rely on a make rule to execute 18847 # `config.status --recheck' to rerun these tests and create the 18848 # libtool script then. 18849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18850 if test -f "$ltmain_in"; then 18851 test -f Makefile && make "$ltmain" 18852 fi 18853fi 18854 18855 18856ac_ext=c 18857ac_cpp='$CPP $CPPFLAGS' 18858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18860ac_compiler_gnu=$ac_cv_c_compiler_gnu 18861 18862CC="$lt_save_CC" 18863 18864 else 18865 tagname="" 18866 fi 18867 ;; 18868 18869 RC) 18870 18871 18872# Source file extension for RC test sources. 18873ac_ext=rc 18874 18875# Object file extension for compiled RC test sources. 18876objext=o 18877objext_RC=$objext 18878 18879# Code to be used in simple compile tests 18880lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18881 18882# Code to be used in simple link tests 18883lt_simple_link_test_code="$lt_simple_compile_test_code" 18884 18885# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18886 18887# If no C compiler was specified, use CC. 18888LTCC=${LTCC-"$CC"} 18889 18890# If no C compiler flags were specified, use CFLAGS. 18891LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18892 18893# Allow CC to be a program name with arguments. 18894compiler=$CC 18895 18896 18897# save warnings/boilerplate of simple test code 18898ac_outfile=conftest.$ac_objext 18899echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18901_lt_compiler_boilerplate=`cat conftest.err` 18902$rm conftest* 18903 18904ac_outfile=conftest.$ac_objext 18905echo "$lt_simple_link_test_code" >conftest.$ac_ext 18906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18907_lt_linker_boilerplate=`cat conftest.err` 18908$rm -r conftest* 18909 18910 18911# Allow CC to be a program name with arguments. 18912lt_save_CC="$CC" 18913CC=${RC-"windres"} 18914compiler=$CC 18915compiler_RC=$CC 18916for cc_temp in $compiler""; do 18917 case $cc_temp in 18918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18920 \-*) ;; 18921 *) break;; 18922 esac 18923done 18924cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18925 18926lt_cv_prog_compiler_c_o_RC=yes 18927 18928# The else clause should only fire when bootstrapping the 18929# libtool distribution, otherwise you forgot to ship ltmain.sh 18930# with your package, and you will get complaints that there are 18931# no rules to generate ltmain.sh. 18932if test -f "$ltmain"; then 18933 # See if we are running on zsh, and set the options which allow our commands through 18934 # without removal of \ escapes. 18935 if test -n "${ZSH_VERSION+set}" ; then 18936 setopt NO_GLOB_SUBST 18937 fi 18938 # Now quote all the things that may contain metacharacters while being 18939 # careful not to overquote the AC_SUBSTed values. We take copies of the 18940 # variables and quote the copies for generation of the libtool script. 18941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18942 SED SHELL STRIP \ 18943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18945 deplibs_check_method reload_flag reload_cmds need_locks \ 18946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18947 lt_cv_sys_global_symbol_to_c_name_address \ 18948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18949 old_postinstall_cmds old_postuninstall_cmds \ 18950 compiler_RC \ 18951 CC_RC \ 18952 LD_RC \ 18953 lt_prog_compiler_wl_RC \ 18954 lt_prog_compiler_pic_RC \ 18955 lt_prog_compiler_static_RC \ 18956 lt_prog_compiler_no_builtin_flag_RC \ 18957 export_dynamic_flag_spec_RC \ 18958 thread_safe_flag_spec_RC \ 18959 whole_archive_flag_spec_RC \ 18960 enable_shared_with_static_runtimes_RC \ 18961 old_archive_cmds_RC \ 18962 old_archive_from_new_cmds_RC \ 18963 predep_objects_RC \ 18964 postdep_objects_RC \ 18965 predeps_RC \ 18966 postdeps_RC \ 18967 compiler_lib_search_path_RC \ 18968 compiler_lib_search_dirs_RC \ 18969 archive_cmds_RC \ 18970 archive_expsym_cmds_RC \ 18971 postinstall_cmds_RC \ 18972 postuninstall_cmds_RC \ 18973 old_archive_from_expsyms_cmds_RC \ 18974 allow_undefined_flag_RC \ 18975 no_undefined_flag_RC \ 18976 export_symbols_cmds_RC \ 18977 hardcode_libdir_flag_spec_RC \ 18978 hardcode_libdir_flag_spec_ld_RC \ 18979 hardcode_libdir_separator_RC \ 18980 hardcode_automatic_RC \ 18981 module_cmds_RC \ 18982 module_expsym_cmds_RC \ 18983 lt_cv_prog_compiler_c_o_RC \ 18984 fix_srcfile_path_RC \ 18985 exclude_expsyms_RC \ 18986 include_expsyms_RC; do 18987 18988 case $var in 18989 old_archive_cmds_RC | \ 18990 old_archive_from_new_cmds_RC | \ 18991 archive_cmds_RC | \ 18992 archive_expsym_cmds_RC | \ 18993 module_cmds_RC | \ 18994 module_expsym_cmds_RC | \ 18995 old_archive_from_expsyms_cmds_RC | \ 18996 export_symbols_cmds_RC | \ 18997 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18998 postinstall_cmds | postuninstall_cmds | \ 18999 old_postinstall_cmds | old_postuninstall_cmds | \ 19000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19001 # Double-quote double-evaled strings. 19002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19003 ;; 19004 *) 19005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19006 ;; 19007 esac 19008 done 19009 19010 case $lt_echo in 19011 *'\$0 --fallback-echo"') 19012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19013 ;; 19014 esac 19015 19016cfgfile="$ofile" 19017 19018 cat <<__EOF__ >> "$cfgfile" 19019# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19020 19021# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19022 19023# Shell to use when invoking shell scripts. 19024SHELL=$lt_SHELL 19025 19026# Whether or not to build shared libraries. 19027build_libtool_libs=$enable_shared 19028 19029# Whether or not to build static libraries. 19030build_old_libs=$enable_static 19031 19032# Whether or not to add -lc for building shared libraries. 19033build_libtool_need_lc=$archive_cmds_need_lc_RC 19034 19035# Whether or not to disallow shared libs when runtime libs are static 19036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19037 19038# Whether or not to optimize for fast installation. 19039fast_install=$enable_fast_install 19040 19041# The host system. 19042host_alias=$host_alias 19043host=$host 19044host_os=$host_os 19045 19046# The build system. 19047build_alias=$build_alias 19048build=$build 19049build_os=$build_os 19050 19051# An echo program that does not interpret backslashes. 19052echo=$lt_echo 19053 19054# The archiver. 19055AR=$lt_AR 19056AR_FLAGS=$lt_AR_FLAGS 19057 19058# A C compiler. 19059LTCC=$lt_LTCC 19060 19061# LTCC compiler flags. 19062LTCFLAGS=$lt_LTCFLAGS 19063 19064# A language-specific compiler. 19065CC=$lt_compiler_RC 19066 19067# Is the compiler the GNU C compiler? 19068with_gcc=$GCC_RC 19069 19070# An ERE matcher. 19071EGREP=$lt_EGREP 19072 19073# The linker used to build libraries. 19074LD=$lt_LD_RC 19075 19076# Whether we need hard or soft links. 19077LN_S=$lt_LN_S 19078 19079# A BSD-compatible nm program. 19080NM=$lt_NM 19081 19082# A symbol stripping program 19083STRIP=$lt_STRIP 19084 19085# Used to examine libraries when file_magic_cmd begins "file" 19086MAGIC_CMD=$MAGIC_CMD 19087 19088# Used on cygwin: DLL creation program. 19089DLLTOOL="$DLLTOOL" 19090 19091# Used on cygwin: object dumper. 19092OBJDUMP="$OBJDUMP" 19093 19094# Used on cygwin: assembler. 19095AS="$AS" 19096 19097# The name of the directory that contains temporary libtool files. 19098objdir=$objdir 19099 19100# How to create reloadable object files. 19101reload_flag=$lt_reload_flag 19102reload_cmds=$lt_reload_cmds 19103 19104# How to pass a linker flag through the compiler. 19105wl=$lt_lt_prog_compiler_wl_RC 19106 19107# Object file suffix (normally "o"). 19108objext="$ac_objext" 19109 19110# Old archive suffix (normally "a"). 19111libext="$libext" 19112 19113# Shared library suffix (normally ".so"). 19114shrext_cmds='$shrext_cmds' 19115 19116# Executable file suffix (normally ""). 19117exeext="$exeext" 19118 19119# Additional compiler flags for building library objects. 19120pic_flag=$lt_lt_prog_compiler_pic_RC 19121pic_mode=$pic_mode 19122 19123# What is the maximum length of a command? 19124max_cmd_len=$lt_cv_sys_max_cmd_len 19125 19126# Does compiler simultaneously support -c and -o options? 19127compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19128 19129# Must we lock files when doing compilation? 19130need_locks=$lt_need_locks 19131 19132# Do we need the lib prefix for modules? 19133need_lib_prefix=$need_lib_prefix 19134 19135# Do we need a version for libraries? 19136need_version=$need_version 19137 19138# Whether dlopen is supported. 19139dlopen_support=$enable_dlopen 19140 19141# Whether dlopen of programs is supported. 19142dlopen_self=$enable_dlopen_self 19143 19144# Whether dlopen of statically linked programs is supported. 19145dlopen_self_static=$enable_dlopen_self_static 19146 19147# Compiler flag to prevent dynamic linking. 19148link_static_flag=$lt_lt_prog_compiler_static_RC 19149 19150# Compiler flag to turn off builtin functions. 19151no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19152 19153# Compiler flag to allow reflexive dlopens. 19154export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19155 19156# Compiler flag to generate shared objects directly from archives. 19157whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19158 19159# Compiler flag to generate thread-safe objects. 19160thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19161 19162# Library versioning type. 19163version_type=$version_type 19164 19165# Format of library name prefix. 19166libname_spec=$lt_libname_spec 19167 19168# List of archive names. First name is the real one, the rest are links. 19169# The last name is the one that the linker finds with -lNAME. 19170library_names_spec=$lt_library_names_spec 19171 19172# The coded name of the library, if different from the real name. 19173soname_spec=$lt_soname_spec 19174 19175# Commands used to build and install an old-style archive. 19176RANLIB=$lt_RANLIB 19177old_archive_cmds=$lt_old_archive_cmds_RC 19178old_postinstall_cmds=$lt_old_postinstall_cmds 19179old_postuninstall_cmds=$lt_old_postuninstall_cmds 19180 19181# Create an old-style archive from a shared archive. 19182old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19183 19184# Create a temporary old-style archive to link instead of a shared archive. 19185old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19186 19187# Commands used to build and install a shared archive. 19188archive_cmds=$lt_archive_cmds_RC 19189archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19190postinstall_cmds=$lt_postinstall_cmds 19191postuninstall_cmds=$lt_postuninstall_cmds 19192 19193# Commands used to build a loadable module (assumed same as above if empty) 19194module_cmds=$lt_module_cmds_RC 19195module_expsym_cmds=$lt_module_expsym_cmds_RC 19196 19197# Commands to strip libraries. 19198old_striplib=$lt_old_striplib 19199striplib=$lt_striplib 19200 19201# Dependencies to place before the objects being linked to create a 19202# shared library. 19203predep_objects=$lt_predep_objects_RC 19204 19205# Dependencies to place after the objects being linked to create a 19206# shared library. 19207postdep_objects=$lt_postdep_objects_RC 19208 19209# Dependencies to place before the objects being linked to create a 19210# shared library. 19211predeps=$lt_predeps_RC 19212 19213# Dependencies to place after the objects being linked to create a 19214# shared library. 19215postdeps=$lt_postdeps_RC 19216 19217# The directories searched by this compiler when creating a shared 19218# library 19219compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19220 19221# The library search path used internally by the compiler when linking 19222# a shared library. 19223compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19224 19225# Method to check whether dependent libraries are shared objects. 19226deplibs_check_method=$lt_deplibs_check_method 19227 19228# Command to use when deplibs_check_method == file_magic. 19229file_magic_cmd=$lt_file_magic_cmd 19230 19231# Flag that allows shared libraries with undefined symbols to be built. 19232allow_undefined_flag=$lt_allow_undefined_flag_RC 19233 19234# Flag that forces no undefined symbols. 19235no_undefined_flag=$lt_no_undefined_flag_RC 19236 19237# Commands used to finish a libtool library installation in a directory. 19238finish_cmds=$lt_finish_cmds 19239 19240# Same as above, but a single script fragment to be evaled but not shown. 19241finish_eval=$lt_finish_eval 19242 19243# Take the output of nm and produce a listing of raw symbols and C names. 19244global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19245 19246# Transform the output of nm in a proper C declaration 19247global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19248 19249# Transform the output of nm in a C name address pair 19250global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19251 19252# This is the shared library runtime path variable. 19253runpath_var=$runpath_var 19254 19255# This is the shared library path variable. 19256shlibpath_var=$shlibpath_var 19257 19258# Is shlibpath searched before the hard-coded library search path? 19259shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19260 19261# How to hardcode a shared library path into an executable. 19262hardcode_action=$hardcode_action_RC 19263 19264# Whether we should hardcode library paths into libraries. 19265hardcode_into_libs=$hardcode_into_libs 19266 19267# Flag to hardcode \$libdir into a binary during linking. 19268# This must work even if \$libdir does not exist. 19269hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19270 19271# If ld is used when linking, flag to hardcode \$libdir into 19272# a binary during linking. This must work even if \$libdir does 19273# not exist. 19274hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19275 19276# Whether we need a single -rpath flag with a separated argument. 19277hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19278 19279# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19280# resulting binary. 19281hardcode_direct=$hardcode_direct_RC 19282 19283# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19284# resulting binary. 19285hardcode_minus_L=$hardcode_minus_L_RC 19286 19287# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19288# the resulting binary. 19289hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19290 19291# Set to yes if building a shared library automatically hardcodes DIR into the library 19292# and all subsequent libraries and executables linked against it. 19293hardcode_automatic=$hardcode_automatic_RC 19294 19295# Variables whose values should be saved in libtool wrapper scripts and 19296# restored at relink time. 19297variables_saved_for_relink="$variables_saved_for_relink" 19298 19299# Whether libtool must link a program against all its dependency libraries. 19300link_all_deplibs=$link_all_deplibs_RC 19301 19302# Compile-time system search path for libraries 19303sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19304 19305# Run-time system search path for libraries 19306sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19307 19308# Fix the shell variable \$srcfile for the compiler. 19309fix_srcfile_path=$lt_fix_srcfile_path 19310 19311# Set to yes if exported symbols are required. 19312always_export_symbols=$always_export_symbols_RC 19313 19314# The commands to list exported symbols. 19315export_symbols_cmds=$lt_export_symbols_cmds_RC 19316 19317# The commands to extract the exported symbol list from a shared archive. 19318extract_expsyms_cmds=$lt_extract_expsyms_cmds 19319 19320# Symbols that should not be listed in the preloaded symbols. 19321exclude_expsyms=$lt_exclude_expsyms_RC 19322 19323# Symbols that must always be exported. 19324include_expsyms=$lt_include_expsyms_RC 19325 19326# ### END LIBTOOL TAG CONFIG: $tagname 19327 19328__EOF__ 19329 19330 19331else 19332 # If there is no Makefile yet, we rely on a make rule to execute 19333 # `config.status --recheck' to rerun these tests and create the 19334 # libtool script then. 19335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19336 if test -f "$ltmain_in"; then 19337 test -f Makefile && make "$ltmain" 19338 fi 19339fi 19340 19341 19342ac_ext=c 19343ac_cpp='$CPP $CPPFLAGS' 19344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19346ac_compiler_gnu=$ac_cv_c_compiler_gnu 19347 19348CC="$lt_save_CC" 19349 19350 ;; 19351 19352 *) 19353 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 19354 ;; 19355 esac 19356 19357 # Append the new tag name to the list of available tags. 19358 if test -n "$tagname" ; then 19359 available_tags="$available_tags $tagname" 19360 fi 19361 fi 19362 done 19363 IFS="$lt_save_ifs" 19364 19365 # Now substitute the updated list of available tags. 19366 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19367 mv "${ofile}T" "$ofile" 19368 chmod +x "$ofile" 19369 else 19370 rm -f "${ofile}T" 19371 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 19372 fi 19373fi 19374 19375 19376 19377# This can be used to rebuild libtool when needed 19378LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19379 19380# Always use our own libtool. 19381LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19382 19383# Prevent multiple expansion 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404if test "x$CC" != xcc; then 19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 19406$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 19407else 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 19409$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 19410fi 19411set dummy $CC; ac_cc=`$as_echo "$2" | 19412 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 19413if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 19414 $as_echo_n "(cached) " >&6 19415else 19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19417/* end confdefs.h. */ 19418 19419int 19420main () 19421{ 19422 19423 ; 19424 return 0; 19425} 19426_ACEOF 19427# Make sure it works both with $CC and with simple cc. 19428# We do the test twice because some compilers refuse to overwrite an 19429# existing .o file with -o, though they will create one. 19430ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 19431rm -f conftest2.* 19432if { { case "(($ac_try" in 19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19434 *) ac_try_echo=$ac_try;; 19435esac 19436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19437$as_echo "$ac_try_echo"; } >&5 19438 (eval "$ac_try") 2>&5 19439 ac_status=$? 19440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19441 test $ac_status = 0; } && 19442 test -f conftest2.$ac_objext && { { case "(($ac_try" in 19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19444 *) ac_try_echo=$ac_try;; 19445esac 19446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19447$as_echo "$ac_try_echo"; } >&5 19448 (eval "$ac_try") 2>&5 19449 ac_status=$? 19450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19451 test $ac_status = 0; }; 19452then 19453 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 19454 if test "x$CC" != xcc; then 19455 # Test first that cc exists at all. 19456 if { ac_try='cc -c conftest.$ac_ext >&5' 19457 { { case "(($ac_try" in 19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19459 *) ac_try_echo=$ac_try;; 19460esac 19461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19462$as_echo "$ac_try_echo"; } >&5 19463 (eval "$ac_try") 2>&5 19464 ac_status=$? 19465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19466 test $ac_status = 0; }; }; then 19467 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 19468 rm -f conftest2.* 19469 if { { case "(($ac_try" in 19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19471 *) ac_try_echo=$ac_try;; 19472esac 19473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19474$as_echo "$ac_try_echo"; } >&5 19475 (eval "$ac_try") 2>&5 19476 ac_status=$? 19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19478 test $ac_status = 0; } && 19479 test -f conftest2.$ac_objext && { { case "(($ac_try" in 19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19481 *) ac_try_echo=$ac_try;; 19482esac 19483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19484$as_echo "$ac_try_echo"; } >&5 19485 (eval "$ac_try") 2>&5 19486 ac_status=$? 19487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19488 test $ac_status = 0; }; 19489 then 19490 # cc works too. 19491 : 19492 else 19493 # cc exists but doesn't like -o. 19494 eval ac_cv_prog_cc_${ac_cc}_c_o=no 19495 fi 19496 fi 19497 fi 19498else 19499 eval ac_cv_prog_cc_${ac_cc}_c_o=no 19500fi 19501rm -f core conftest* 19502 19503fi 19504if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19506$as_echo "yes" >&6; } 19507else 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19509$as_echo "no" >&6; } 19510 19511$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 19512 19513fi 19514 19515# FIXME: we rely on the cache variable name because 19516# there is no other way. 19517set dummy $CC 19518ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 19519if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 19520 # Losing compiler, so override with the script. 19521 # FIXME: It is wrong to rewrite CC. 19522 # But if we don't then we get into trouble of one sort or another. 19523 # A longer-term fix would be to have automake use am__CC in this case, 19524 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 19525 CC="$am_aux_dir/compile $CC" 19526fi 19527 19528 19529 19530# Check whether --enable-docs was given. 19531if test "${enable_docs+set}" = set; then : 19532 enableval=$enable_docs; 19533fi 19534 19535 19536if test "x$enable_docs" = xyes; then 19537 for ac_prog in pdflatex 19538do 19539 # Extract the first word of "$ac_prog", so it can be a program name with args. 19540set dummy $ac_prog; ac_word=$2 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19542$as_echo_n "checking for $ac_word... " >&6; } 19543if test "${ac_cv_prog_PDFLATEX+set}" = set; then : 19544 $as_echo_n "(cached) " >&6 19545else 19546 if test -n "$PDFLATEX"; then 19547 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. 19548else 19549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19550for as_dir in $PATH 19551do 19552 IFS=$as_save_IFS 19553 test -z "$as_dir" && as_dir=. 19554 for ac_exec_ext in '' $ac_executable_extensions; do 19555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19556 ac_cv_prog_PDFLATEX="$ac_prog" 19557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19558 break 2 19559 fi 19560done 19561 done 19562IFS=$as_save_IFS 19563 19564fi 19565fi 19566PDFLATEX=$ac_cv_prog_PDFLATEX 19567if test -n "$PDFLATEX"; then 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 19569$as_echo "$PDFLATEX" >&6; } 19570else 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19572$as_echo "no" >&6; } 19573fi 19574 19575 19576 test -n "$PDFLATEX" && break 19577done 19578test -n "$PDFLATEX" || PDFLATEX="/bin/false" 19579 19580 for ac_prog in htlatex 19581do 19582 # Extract the first word of "$ac_prog", so it can be a program name with args. 19583set dummy $ac_prog; ac_word=$2 19584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19585$as_echo_n "checking for $ac_word... " >&6; } 19586if test "${ac_cv_prog_HTLATEX+set}" = set; then : 19587 $as_echo_n "(cached) " >&6 19588else 19589 if test -n "$HTLATEX"; then 19590 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test. 19591else 19592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19593for as_dir in $PATH 19594do 19595 IFS=$as_save_IFS 19596 test -z "$as_dir" && as_dir=. 19597 for ac_exec_ext in '' $ac_executable_extensions; do 19598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19599 ac_cv_prog_HTLATEX="$ac_prog" 19600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19601 break 2 19602 fi 19603done 19604 done 19605IFS=$as_save_IFS 19606 19607fi 19608fi 19609HTLATEX=$ac_cv_prog_HTLATEX 19610if test -n "$HTLATEX"; then 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5 19612$as_echo "$HTLATEX" >&6; } 19613else 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19615$as_echo "no" >&6; } 19616fi 19617 19618 19619 test -n "$HTLATEX" && break 19620done 19621test -n "$HTLATEX" || HTLATEX="/bin/false" 19622 19623 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then 19624 enable_docs=no 19625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5 19626$as_echo "$as_me: WARNING: Documentation will not be built!" >&2;} 19627 fi 19628fi 19629 19630 if test "x$enable_docs" = xyes; then 19631 BUILD_DOCS_TRUE= 19632 BUILD_DOCS_FALSE='#' 19633else 19634 BUILD_DOCS_TRUE='#' 19635 BUILD_DOCS_FALSE= 19636fi 19637 19638 19639 19640 19641cflags_save="$CFLAGS" 19642if test -z "$GCC"; then 19643 case $host in 19644 *-*-irix*) 19645 if test -z "$CC"; then 19646 CC=cc 19647 fi 19648 DEBUG="-g -signed" 19649 CFLAGS="-O2 -w -signed" 19650 PROFILE="-p -g3 -O2 -signed" ;; 19651 sparc-sun-solaris*) 19652 DEBUG="-v -g" 19653 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92" 19654 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;; 19655 *) 19656 DEBUG="-g" 19657 CFLAGS="-O" 19658 PROFILE="-g -p" ;; 19659 esac 19660else 19661 19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5 19663$as_echo_n "checking GCC version... " >&6; } 19664 GCC_VERSION=`$CC -dumpversion` 19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5 19666$as_echo "$GCC_VERSION" >&6; } 19667 case $host in 19668 *86-*-linux*) 19669 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" 19670 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" 19671# PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" 19672 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" 19673 19674 # glibc < 2.1.3 has a serious FP bug in the math inline header 19675 # that will cripple Vorbis. Look to see if the magic FP stack 19676 # clobber is missing in the mathinline header, thus indicating 19677 # the buggy version 19678 19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19680/* end confdefs.h. */ 19681 19682 #define __LIBC_INTERNAL_MATH_INLINES 1 19683 #define __OPTIMIZE__ 19684 #include <math.h> 19685 19686_ACEOF 19687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19688 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then : 19689 bad=maybe 19690else 19691 bad=no 19692fi 19693rm -f conftest* 19694 19695 if test ${bad} = "maybe" ;then 19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19697/* end confdefs.h. */ 19698 19699 #define __LIBC_INTERNAL_MATH_INLINES 1 19700 #define __OPTIMIZE__ 19701 #include <math.h> 19702 19703_ACEOF 19704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19705 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then : 19706 bad=no 19707else 19708 bad=yes 19709fi 19710rm -f conftest* 19711 19712 fi 19713 if test ${bad} = "yes" ;then 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 19715$as_echo "$as_me: WARNING: " >&2;} 19716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 19717$as_echo "$as_me: WARNING: ********************************************************" >&2;} 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5 19719$as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;} 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5 19721$as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;} 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5 19723$as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;} 19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5 19725$as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;} 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5 19727$as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;} 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5 19729$as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;} 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time time bug. *" >&5 19731$as_echo "$as_me: WARNING: * a compile-time time bug. *" >&2;} 19732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5 19733$as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;} 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5 19735$as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;} 19736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5 19737$as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;} 19738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5 19739$as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;} 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5 19741$as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;} 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 19743$as_echo "$as_me: WARNING: ********************************************************" >&2;} 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 19745$as_echo "$as_me: WARNING: " >&2;} 19746 19747 CFLAGS=${OPT}" -D__NO_MATH_INLINES" 19748 PROFILE=${PROFILE}" -D__NO_MATH_INLINES" 19749 fi;; 19750 powerpc-*-linux*) 19751 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" 19752 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT" 19753 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";; 19754 *-*-linux*) 19755 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" 19756 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char" 19757 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; 19758 sparc-sun-*) 19759 sparc_cpu="" 19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5 19761$as_echo_n "checking if gcc supports -mv8... " >&6; } 19762 old_cflags="$CFLAGS" 19763 CFLAGS="$CFLAGS -mv8" 19764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19765/* end confdefs.h. */ 19766 19767int 19768main () 19769{ 19770return 0; 19771 ; 19772 return 0; 19773} 19774_ACEOF 19775if ac_fn_c_try_compile "$LINENO"; then : 19776 19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19778$as_echo "yes" >&6; } 19779 sparc_cpu="-mv8" 19780 19781fi 19782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19783 CFLAGS="$old_cflags" 19784 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" 19785 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" 19786 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;; 19787 *-*-darwin*) 19788 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char" 19789 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char" 19790 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";; 19791 *-*-os2*) 19792 # Use -W instead of -Wextra because gcc on OS/2 is an old version. 19793 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" 19794 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char" 19795 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";; 19796 *) 19797 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" 19798 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char" 19799 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;; 19800 esac 19801 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5 19803$as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; } 19804 ac_add_cflags__old_cflags="$CFLAGS" 19805 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19807/* end confdefs.h. */ 19808#include <stdio.h> 19809int 19810main () 19811{ 19812puts("Hello, World!"); return 0; 19813 ; 19814 return 0; 19815} 19816_ACEOF 19817if ac_fn_c_try_link "$LINENO"; then : 19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19819$as_echo "yes" >&6; } 19820else 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19822$as_echo "no" >&6; } 19823 CFLAGS="$ac_add_cflags__old_cflags" 19824fi 19825rm -f core conftest.err conftest.$ac_objext \ 19826 conftest$ac_exeext conftest.$ac_ext 19827 19828fi 19829CFLAGS="$CFLAGS $cflags_save" 19830 19831 19832ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" 19833if test "x$ac_cv_header_memory_h" = x""yes; then : 19834 CFLAGS="$CFLAGS -DUSE_MEMORY_H" 19835else 19836 : 19837fi 19838 19839 19840 19841 19842 19843 19844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 19845$as_echo_n "checking for cos in -lm... " >&6; } 19846if test "${ac_cv_lib_m_cos+set}" = set; then : 19847 $as_echo_n "(cached) " >&6 19848else 19849 ac_check_lib_save_LIBS=$LIBS 19850LIBS="-lm $LIBS" 19851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19852/* end confdefs.h. */ 19853 19854/* Override any GCC internal prototype to avoid an error. 19855 Use char because int might match the return type of a GCC 19856 builtin and then its argument prototype would still apply. */ 19857#ifdef __cplusplus 19858extern "C" 19859#endif 19860char cos (); 19861int 19862main () 19863{ 19864return cos (); 19865 ; 19866 return 0; 19867} 19868_ACEOF 19869if ac_fn_c_try_link "$LINENO"; then : 19870 ac_cv_lib_m_cos=yes 19871else 19872 ac_cv_lib_m_cos=no 19873fi 19874rm -f core conftest.err conftest.$ac_objext \ 19875 conftest$ac_exeext conftest.$ac_ext 19876LIBS=$ac_check_lib_save_LIBS 19877fi 19878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 19879$as_echo "$ac_cv_lib_m_cos" >&6; } 19880if test "x$ac_cv_lib_m_cos" = x""yes; then : 19881 VORBIS_LIBS="-lm" 19882else 19883 VORBIS_LIBS="" 19884fi 19885 19886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 19887$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 19888if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 19889 $as_echo_n "(cached) " >&6 19890else 19891 ac_check_lib_save_LIBS=$LIBS 19892LIBS="-lpthread $LIBS" 19893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19894/* end confdefs.h. */ 19895 19896/* Override any GCC internal prototype to avoid an error. 19897 Use char because int might match the return type of a GCC 19898 builtin and then its argument prototype would still apply. */ 19899#ifdef __cplusplus 19900extern "C" 19901#endif 19902char pthread_create (); 19903int 19904main () 19905{ 19906return pthread_create (); 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911if ac_fn_c_try_link "$LINENO"; then : 19912 ac_cv_lib_pthread_pthread_create=yes 19913else 19914 ac_cv_lib_pthread_pthread_create=no 19915fi 19916rm -f core conftest.err conftest.$ac_objext \ 19917 conftest$ac_exeext conftest.$ac_ext 19918LIBS=$ac_check_lib_save_LIBS 19919fi 19920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 19921$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 19922if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 19923 pthread_lib="-lpthread" 19924else 19925 : 19926fi 19927 19928 19929 19930 19931if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19932 if test -n "$ac_tool_prefix"; then 19933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19936$as_echo_n "checking for $ac_word... " >&6; } 19937if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 19938 $as_echo_n "(cached) " >&6 19939else 19940 case $PKG_CONFIG in 19941 [\\/]* | ?:[\\/]*) 19942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19943 ;; 19944 *) 19945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19946for as_dir in $PATH 19947do 19948 IFS=$as_save_IFS 19949 test -z "$as_dir" && as_dir=. 19950 for ac_exec_ext in '' $ac_executable_extensions; do 19951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19954 break 2 19955 fi 19956done 19957 done 19958IFS=$as_save_IFS 19959 19960 ;; 19961esac 19962fi 19963PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19964if test -n "$PKG_CONFIG"; then 19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19966$as_echo "$PKG_CONFIG" >&6; } 19967else 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19969$as_echo "no" >&6; } 19970fi 19971 19972 19973fi 19974if test -z "$ac_cv_path_PKG_CONFIG"; then 19975 ac_pt_PKG_CONFIG=$PKG_CONFIG 19976 # Extract the first word of "pkg-config", so it can be a program name with args. 19977set dummy pkg-config; ac_word=$2 19978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19979$as_echo_n "checking for $ac_word... " >&6; } 19980if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 19981 $as_echo_n "(cached) " >&6 19982else 19983 case $ac_pt_PKG_CONFIG in 19984 [\\/]* | ?:[\\/]*) 19985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19986 ;; 19987 *) 19988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19989for as_dir in $PATH 19990do 19991 IFS=$as_save_IFS 19992 test -z "$as_dir" && as_dir=. 19993 for ac_exec_ext in '' $ac_executable_extensions; do 19994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19997 break 2 19998 fi 19999done 20000 done 20001IFS=$as_save_IFS 20002 20003 ;; 20004esac 20005fi 20006ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20007if test -n "$ac_pt_PKG_CONFIG"; then 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20009$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20010else 20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20012$as_echo "no" >&6; } 20013fi 20014 20015 if test "x$ac_pt_PKG_CONFIG" = x; then 20016 PKG_CONFIG="" 20017 else 20018 case $cross_compiling:$ac_tool_warned in 20019yes:) 20020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20022ac_tool_warned=yes ;; 20023esac 20024 PKG_CONFIG=$ac_pt_PKG_CONFIG 20025 fi 20026else 20027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20028fi 20029 20030fi 20031if test -n "$PKG_CONFIG"; then 20032 _pkg_min_version=0.9.0 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20034$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20037$as_echo "yes" >&6; } 20038 else 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20040$as_echo "no" >&6; } 20041 PKG_CONFIG="" 20042 fi 20043 20044fi 20045 20046HAVE_OGG=no 20047if test "x$PKG_CONFIG" != "x" 20048then 20049 20050pkg_failed=no 20051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5 20052$as_echo_n "checking for OGG... " >&6; } 20053 20054if test -n "$OGG_CFLAGS"; then 20055 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS" 20056 elif test -n "$PKG_CONFIG"; then 20057 if test -n "$PKG_CONFIG" && \ 20058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5 20059 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 20060 ac_status=$? 20061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20062 test $ac_status = 0; }; then 20063 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null` 20064else 20065 pkg_failed=yes 20066fi 20067 else 20068 pkg_failed=untried 20069fi 20070if test -n "$OGG_LIBS"; then 20071 pkg_cv_OGG_LIBS="$OGG_LIBS" 20072 elif test -n "$PKG_CONFIG"; then 20073 if test -n "$PKG_CONFIG" && \ 20074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5 20075 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5 20076 ac_status=$? 20077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20078 test $ac_status = 0; }; then 20079 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null` 20080else 20081 pkg_failed=yes 20082fi 20083 else 20084 pkg_failed=untried 20085fi 20086 20087 20088 20089if test $pkg_failed = yes; then 20090 20091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20092 _pkg_short_errors_supported=yes 20093else 20094 _pkg_short_errors_supported=no 20095fi 20096 if test $_pkg_short_errors_supported = yes; then 20097 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ogg >= 1.0" 2>&1` 20098 else 20099 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors "ogg >= 1.0" 2>&1` 20100 fi 20101 # Put the nasty error message in config.log where it belongs 20102 echo "$OGG_PKG_ERRORS" >&5 20103 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20105$as_echo "no" >&6; } 20106 HAVE_OGG=no 20107elif test $pkg_failed = untried; then 20108 HAVE_OGG=no 20109else 20110 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS 20111 OGG_LIBS=$pkg_cv_OGG_LIBS 20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20113$as_echo "yes" >&6; } 20114 HAVE_OGG=yes 20115fi 20116fi 20117if test "x$HAVE_OGG" = "xno" 20118then 20119 20120# Check whether --with-ogg was given. 20121if test "${with_ogg+set}" = set; then : 20122 withval=$with_ogg; ogg_prefix="$withval" 20123else 20124 ogg_prefix="" 20125fi 20126 20127 20128# Check whether --with-ogg-libraries was given. 20129if test "${with_ogg_libraries+set}" = set; then : 20130 withval=$with_ogg_libraries; ogg_libraries="$withval" 20131else 20132 ogg_libraries="" 20133fi 20134 20135 20136# Check whether --with-ogg-includes was given. 20137if test "${with_ogg_includes+set}" = set; then : 20138 withval=$with_ogg_includes; ogg_includes="$withval" 20139else 20140 ogg_includes="" 20141fi 20142 20143# Check whether --enable-oggtest was given. 20144if test "${enable_oggtest+set}" = set; then : 20145 enableval=$enable_oggtest; 20146else 20147 enable_oggtest=yes 20148fi 20149 20150 20151 if test "x$ogg_libraries" != "x" ; then 20152 OGG_LIBS="-L$ogg_libraries" 20153 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 20154 OGG_LIBS="" 20155 elif test "x$ogg_prefix" != "x" ; then 20156 OGG_LIBS="-L$ogg_prefix/lib" 20157 elif test "x$prefix" != "xNONE" ; then 20158 OGG_LIBS="-L$prefix/lib" 20159 fi 20160 20161 if test "x$ogg_prefix" != "xno" ; then 20162 OGG_LIBS="$OGG_LIBS -logg" 20163 fi 20164 20165 if test "x$ogg_includes" != "x" ; then 20166 OGG_CFLAGS="-I$ogg_includes" 20167 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 20168 OGG_CFLAGS="" 20169 elif test "x$ogg_prefix" != "x" ; then 20170 OGG_CFLAGS="-I$ogg_prefix/include" 20171 elif test "x$prefix" != "xNONE"; then 20172 OGG_CFLAGS="-I$prefix/include" 20173 fi 20174 20175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5 20176$as_echo_n "checking for Ogg... " >&6; } 20177 if test "x$ogg_prefix" = "xno" ; then 20178 no_ogg="disabled" 20179 enable_oggtest="no" 20180 else 20181 no_ogg="" 20182 fi 20183 20184 20185 if test "x$enable_oggtest" = "xyes" ; then 20186 ac_save_CFLAGS="$CFLAGS" 20187 ac_save_LIBS="$LIBS" 20188 CFLAGS="$CFLAGS $OGG_CFLAGS" 20189 LIBS="$LIBS $OGG_LIBS" 20190 rm -f conf.oggtest 20191 if test "$cross_compiling" = yes; then : 20192 echo $ac_n "cross compiling; assumed OK... $ac_c" 20193else 20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20195/* end confdefs.h. */ 20196 20197#include <stdio.h> 20198#include <stdlib.h> 20199#include <string.h> 20200#include <ogg/ogg.h> 20201 20202int main () 20203{ 20204 system("touch conf.oggtest"); 20205 return 0; 20206} 20207 20208 20209_ACEOF 20210if ac_fn_c_try_run "$LINENO"; then : 20211 20212else 20213 no_ogg=yes 20214fi 20215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20216 conftest.$ac_objext conftest.beam conftest.$ac_ext 20217fi 20218 20219 CFLAGS="$ac_save_CFLAGS" 20220 LIBS="$ac_save_LIBS" 20221 fi 20222 20223 if test "x$no_ogg" = "xdisabled" ; then 20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20225$as_echo "no" >&6; } 20226 as_fn_error "must have Ogg installed!" "$LINENO" 5 20227 elif test "x$no_ogg" = "x" ; then 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20229$as_echo "yes" >&6; } 20230 : 20231 else 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20233$as_echo "no" >&6; } 20234 if test -f conf.oggtest ; then 20235 : 20236 else 20237 echo "*** Could not run Ogg test program, checking why..." 20238 CFLAGS="$CFLAGS $OGG_CFLAGS" 20239 LIBS="$LIBS $OGG_LIBS" 20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20241/* end confdefs.h. */ 20242 20243#include <stdio.h> 20244#include <ogg/ogg.h> 20245 20246int 20247main () 20248{ 20249 return 0; 20250 ; 20251 return 0; 20252} 20253_ACEOF 20254if ac_fn_c_try_link "$LINENO"; then : 20255 echo "*** The test program compiled, but did not run. This usually means" 20256 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 20257 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 20258 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 20259 echo "*** to the installed location Also, make sure you have run ldconfig if that" 20260 echo "*** is required on your system" 20261 echo "***" 20262 echo "*** If you have an old version installed, it is best to remove it, although" 20263 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 20264else 20265 echo "*** The test program failed to compile or link. See the file config.log for the" 20266 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 20267 echo "*** or that you have moved Ogg since it was installed." 20268fi 20269rm -f core conftest.err conftest.$ac_objext \ 20270 conftest$ac_exeext conftest.$ac_ext 20271 CFLAGS="$ac_save_CFLAGS" 20272 LIBS="$ac_save_LIBS" 20273 fi 20274 OGG_CFLAGS="" 20275 OGG_LIBS="" 20276 as_fn_error "must have Ogg installed!" "$LINENO" 5 20277 fi 20278 20279 20280 rm -f conf.oggtest 20281 20282 libs_save=$LIBS 20283 LIBS="$OGG_LIBS $VORBIS_LIBS" 20284 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign" 20285if test "x$ac_cv_func_oggpack_writealign" = x""yes; then : 20286 20287else 20288 as_fn_error "Ogg >= 1.0 required !" "$LINENO" 5 20289fi 20290 20291 LIBS=$libs_save 20292fi 20293 20294 20295# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20296# for constant arguments. Useless! 20297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 20298$as_echo_n "checking for working alloca.h... " >&6; } 20299if test "${ac_cv_working_alloca_h+set}" = set; then : 20300 $as_echo_n "(cached) " >&6 20301else 20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20303/* end confdefs.h. */ 20304#include <alloca.h> 20305int 20306main () 20307{ 20308char *p = (char *) alloca (2 * sizeof (int)); 20309 if (p) return 0; 20310 ; 20311 return 0; 20312} 20313_ACEOF 20314if ac_fn_c_try_link "$LINENO"; then : 20315 ac_cv_working_alloca_h=yes 20316else 20317 ac_cv_working_alloca_h=no 20318fi 20319rm -f core conftest.err conftest.$ac_objext \ 20320 conftest$ac_exeext conftest.$ac_ext 20321fi 20322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 20323$as_echo "$ac_cv_working_alloca_h" >&6; } 20324if test $ac_cv_working_alloca_h = yes; then 20325 20326$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 20327 20328fi 20329 20330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 20331$as_echo_n "checking for alloca... " >&6; } 20332if test "${ac_cv_func_alloca_works+set}" = set; then : 20333 $as_echo_n "(cached) " >&6 20334else 20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20336/* end confdefs.h. */ 20337#ifdef __GNUC__ 20338# define alloca __builtin_alloca 20339#else 20340# ifdef _MSC_VER 20341# include <malloc.h> 20342# define alloca _alloca 20343# else 20344# ifdef HAVE_ALLOCA_H 20345# include <alloca.h> 20346# else 20347# ifdef _AIX 20348 #pragma alloca 20349# else 20350# ifndef alloca /* predefined by HP cc +Olibcalls */ 20351char *alloca (); 20352# endif 20353# endif 20354# endif 20355# endif 20356#endif 20357 20358int 20359main () 20360{ 20361char *p = (char *) alloca (1); 20362 if (p) return 0; 20363 ; 20364 return 0; 20365} 20366_ACEOF 20367if ac_fn_c_try_link "$LINENO"; then : 20368 ac_cv_func_alloca_works=yes 20369else 20370 ac_cv_func_alloca_works=no 20371fi 20372rm -f core conftest.err conftest.$ac_objext \ 20373 conftest$ac_exeext conftest.$ac_ext 20374fi 20375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 20376$as_echo "$ac_cv_func_alloca_works" >&6; } 20377 20378if test $ac_cv_func_alloca_works = yes; then 20379 20380$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 20381 20382else 20383 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20384# that cause trouble. Some versions do not even contain alloca or 20385# contain a buggy version. If you still want to use their alloca, 20386# use ar to extract alloca.o from them instead of compiling alloca.c. 20387 20388ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 20389 20390$as_echo "#define C_ALLOCA 1" >>confdefs.h 20391 20392 20393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 20394$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 20395if test "${ac_cv_os_cray+set}" = set; then : 20396 $as_echo_n "(cached) " >&6 20397else 20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20399/* end confdefs.h. */ 20400#if defined CRAY && ! defined CRAY2 20401webecray 20402#else 20403wenotbecray 20404#endif 20405 20406_ACEOF 20407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20408 $EGREP "webecray" >/dev/null 2>&1; then : 20409 ac_cv_os_cray=yes 20410else 20411 ac_cv_os_cray=no 20412fi 20413rm -f conftest* 20414 20415fi 20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 20417$as_echo "$ac_cv_os_cray" >&6; } 20418if test $ac_cv_os_cray = yes; then 20419 for ac_func in _getb67 GETB67 getb67; do 20420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20421ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20422eval as_val=\$$as_ac_var 20423 if test "x$as_val" = x""yes; then : 20424 20425cat >>confdefs.h <<_ACEOF 20426#define CRAY_STACKSEG_END $ac_func 20427_ACEOF 20428 20429 break 20430fi 20431 20432 done 20433fi 20434 20435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 20436$as_echo_n "checking stack direction for C alloca... " >&6; } 20437if test "${ac_cv_c_stack_direction+set}" = set; then : 20438 $as_echo_n "(cached) " >&6 20439else 20440 if test "$cross_compiling" = yes; then : 20441 ac_cv_c_stack_direction=0 20442else 20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20444/* end confdefs.h. */ 20445$ac_includes_default 20446int 20447find_stack_direction () 20448{ 20449 static char *addr = 0; 20450 auto char dummy; 20451 if (addr == 0) 20452 { 20453 addr = &dummy; 20454 return find_stack_direction (); 20455 } 20456 else 20457 return (&dummy > addr) ? 1 : -1; 20458} 20459 20460int 20461main () 20462{ 20463 return find_stack_direction () < 0; 20464} 20465_ACEOF 20466if ac_fn_c_try_run "$LINENO"; then : 20467 ac_cv_c_stack_direction=1 20468else 20469 ac_cv_c_stack_direction=-1 20470fi 20471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20472 conftest.$ac_objext conftest.beam conftest.$ac_ext 20473fi 20474 20475fi 20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 20477$as_echo "$ac_cv_c_stack_direction" >&6; } 20478cat >>confdefs.h <<_ACEOF 20479#define STACK_DIRECTION $ac_cv_c_stack_direction 20480_ACEOF 20481 20482 20483fi 20484 20485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 20486$as_echo_n "checking for working memcmp... " >&6; } 20487if test "${ac_cv_func_memcmp_working+set}" = set; then : 20488 $as_echo_n "(cached) " >&6 20489else 20490 if test "$cross_compiling" = yes; then : 20491 ac_cv_func_memcmp_working=no 20492else 20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20494/* end confdefs.h. */ 20495$ac_includes_default 20496int 20497main () 20498{ 20499 20500 /* Some versions of memcmp are not 8-bit clean. */ 20501 char c0 = '\100', c1 = '\200', c2 = '\201'; 20502 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 20503 return 1; 20504 20505 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 20506 or more and with at least one buffer not starting on a 4-byte boundary. 20507 William Lewis provided this test program. */ 20508 { 20509 char foo[21]; 20510 char bar[21]; 20511 int i; 20512 for (i = 0; i < 4; i++) 20513 { 20514 char *a = foo + i; 20515 char *b = bar + i; 20516 strcpy (a, "--------01111111"); 20517 strcpy (b, "--------10000000"); 20518 if (memcmp (a, b, 16) >= 0) 20519 return 1; 20520 } 20521 return 0; 20522 } 20523 20524 ; 20525 return 0; 20526} 20527_ACEOF 20528if ac_fn_c_try_run "$LINENO"; then : 20529 ac_cv_func_memcmp_working=yes 20530else 20531 ac_cv_func_memcmp_working=no 20532fi 20533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20534 conftest.$ac_objext conftest.beam conftest.$ac_ext 20535fi 20536 20537fi 20538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 20539$as_echo "$ac_cv_func_memcmp_working" >&6; } 20540test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 20541 *" memcmp.$ac_objext "* ) ;; 20542 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 20543 ;; 20544esac 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc" 20557 20558cat >confcache <<\_ACEOF 20559# This file is a shell script that caches the results of configure 20560# tests run on this system so they can be shared between configure 20561# scripts and configure runs, see configure's option --config-cache. 20562# It is not useful on other systems. If it contains results you don't 20563# want to keep, you may remove or edit it. 20564# 20565# config.status only pays attention to the cache file if you give it 20566# the --recheck option to rerun configure. 20567# 20568# `ac_cv_env_foo' variables (set or unset) will be overridden when 20569# loading this file, other *unset* `ac_cv_foo' will be assigned the 20570# following values. 20571 20572_ACEOF 20573 20574# The following way of writing the cache mishandles newlines in values, 20575# but we know of no workaround that is simple, portable, and efficient. 20576# So, we kill variables containing newlines. 20577# Ultrix sh set writes to stderr and can't be redirected directly, 20578# and sets the high bit in the cache file unless we assign to the vars. 20579( 20580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20581 eval ac_val=\$$ac_var 20582 case $ac_val in #( 20583 *${as_nl}*) 20584 case $ac_var in #( 20585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20586$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20587 esac 20588 case $ac_var in #( 20589 _ | IFS | as_nl) ;; #( 20590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20591 *) { eval $ac_var=; unset $ac_var;} ;; 20592 esac ;; 20593 esac 20594 done 20595 20596 (set) 2>&1 | 20597 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20598 *${as_nl}ac_space=\ *) 20599 # `set' does not quote correctly, so add quotes: double-quote 20600 # substitution turns \\\\ into \\, and sed turns \\ into \. 20601 sed -n \ 20602 "s/'/'\\\\''/g; 20603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20604 ;; #( 20605 *) 20606 # `set' quotes correctly as required by POSIX, so do not add quotes. 20607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20608 ;; 20609 esac | 20610 sort 20611) | 20612 sed ' 20613 /^ac_cv_env_/b end 20614 t clear 20615 :clear 20616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20617 t end 20618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20619 :end' >>confcache 20620if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20621 if test -w "$cache_file"; then 20622 test "x$cache_file" != "x/dev/null" && 20623 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20624$as_echo "$as_me: updating cache $cache_file" >&6;} 20625 cat confcache >$cache_file 20626 else 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20628$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20629 fi 20630fi 20631rm -f confcache 20632 20633test "x$prefix" = xNONE && prefix=$ac_default_prefix 20634# Let make expand exec_prefix. 20635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20636 20637DEFS=-DHAVE_CONFIG_H 20638 20639ac_libobjs= 20640ac_ltlibobjs= 20641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20642 # 1. Remove the extension, and $U if already installed. 20643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20644 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20646 # will be set to the directory where LIBOBJS objects are built. 20647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20649done 20650LIBOBJS=$ac_libobjs 20651 20652LTLIBOBJS=$ac_ltlibobjs 20653 20654 20655if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20656 as_fn_error "conditional \"AMDEP\" was never defined. 20657Usually this means the macro was only invoked conditionally." "$LINENO" 5 20658fi 20659if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20660 as_fn_error "conditional \"am__fastdepCC\" was never defined. 20661Usually this means the macro was only invoked conditionally." "$LINENO" 5 20662fi 20663if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20664 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 20665Usually this means the macro was only invoked conditionally." "$LINENO" 5 20666fi 20667if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 20668 as_fn_error "conditional \"BUILD_DOCS\" was never defined. 20669Usually this means the macro was only invoked conditionally." "$LINENO" 5 20670fi 20671 20672: ${CONFIG_STATUS=./config.status} 20673ac_write_fail=0 20674ac_clean_files_save=$ac_clean_files 20675ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20676{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20677$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20678as_write_fail=0 20679cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20680#! $SHELL 20681# Generated by $as_me. 20682# Run this file to recreate the current configuration. 20683# Compiler output produced by configure, useful for debugging 20684# configure, is in config.log if it exists. 20685 20686debug=false 20687ac_cs_recheck=false 20688ac_cs_silent=false 20689 20690SHELL=\${CONFIG_SHELL-$SHELL} 20691export SHELL 20692_ASEOF 20693cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20694## -------------------- ## 20695## M4sh Initialization. ## 20696## -------------------- ## 20697 20698# Be more Bourne compatible 20699DUALCASE=1; export DUALCASE # for MKS sh 20700if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20701 emulate sh 20702 NULLCMD=: 20703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20704 # is contrary to our usage. Disable this feature. 20705 alias -g '${1+"$@"}'='"$@"' 20706 setopt NO_GLOB_SUBST 20707else 20708 case `(set -o) 2>/dev/null` in #( 20709 *posix*) : 20710 set -o posix ;; #( 20711 *) : 20712 ;; 20713esac 20714fi 20715 20716 20717as_nl=' 20718' 20719export as_nl 20720# Printing a long string crashes Solaris 7 /usr/bin/printf. 20721as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20724# Prefer a ksh shell builtin over an external printf program on Solaris, 20725# but without wasting forks for bash or zsh. 20726if test -z "$BASH_VERSION$ZSH_VERSION" \ 20727 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20728 as_echo='print -r --' 20729 as_echo_n='print -rn --' 20730elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20731 as_echo='printf %s\n' 20732 as_echo_n='printf %s' 20733else 20734 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20735 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20736 as_echo_n='/usr/ucb/echo -n' 20737 else 20738 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20739 as_echo_n_body='eval 20740 arg=$1; 20741 case $arg in #( 20742 *"$as_nl"*) 20743 expr "X$arg" : "X\\(.*\\)$as_nl"; 20744 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20745 esac; 20746 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20747 ' 20748 export as_echo_n_body 20749 as_echo_n='sh -c $as_echo_n_body as_echo' 20750 fi 20751 export as_echo_body 20752 as_echo='sh -c $as_echo_body as_echo' 20753fi 20754 20755# The user is always right. 20756if test "${PATH_SEPARATOR+set}" != set; then 20757 PATH_SEPARATOR=: 20758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20760 PATH_SEPARATOR=';' 20761 } 20762fi 20763 20764 20765# IFS 20766# We need space, tab and new line, in precisely that order. Quoting is 20767# there to prevent editors from complaining about space-tab. 20768# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20769# splitting by setting IFS to empty value.) 20770IFS=" "" $as_nl" 20771 20772# Find who we are. Look in the path if we contain no directory separator. 20773case $0 in #(( 20774 *[\\/]* ) as_myself=$0 ;; 20775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20776for as_dir in $PATH 20777do 20778 IFS=$as_save_IFS 20779 test -z "$as_dir" && as_dir=. 20780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20781 done 20782IFS=$as_save_IFS 20783 20784 ;; 20785esac 20786# We did not find ourselves, most probably we were run as `sh COMMAND' 20787# in which case we are not to be found in the path. 20788if test "x$as_myself" = x; then 20789 as_myself=$0 20790fi 20791if test ! -f "$as_myself"; then 20792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20793 exit 1 20794fi 20795 20796# Unset variables that we do not need and which cause bugs (e.g. in 20797# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20798# suppresses any "Segmentation fault" message there. '((' could 20799# trigger a bug in pdksh 5.2.14. 20800for as_var in BASH_ENV ENV MAIL MAILPATH 20801do eval test x\${$as_var+set} = xset \ 20802 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20803done 20804PS1='$ ' 20805PS2='> ' 20806PS4='+ ' 20807 20808# NLS nuisances. 20809LC_ALL=C 20810export LC_ALL 20811LANGUAGE=C 20812export LANGUAGE 20813 20814# CDPATH. 20815(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20816 20817 20818# as_fn_error ERROR [LINENO LOG_FD] 20819# --------------------------------- 20820# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20821# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20822# script with status $?, using 1 if that was 0. 20823as_fn_error () 20824{ 20825 as_status=$?; test $as_status -eq 0 && as_status=1 20826 if test "$3"; then 20827 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20828 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 20829 fi 20830 $as_echo "$as_me: error: $1" >&2 20831 as_fn_exit $as_status 20832} # as_fn_error 20833 20834 20835# as_fn_set_status STATUS 20836# ----------------------- 20837# Set $? to STATUS, without forking. 20838as_fn_set_status () 20839{ 20840 return $1 20841} # as_fn_set_status 20842 20843# as_fn_exit STATUS 20844# ----------------- 20845# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20846as_fn_exit () 20847{ 20848 set +e 20849 as_fn_set_status $1 20850 exit $1 20851} # as_fn_exit 20852 20853# as_fn_unset VAR 20854# --------------- 20855# Portably unset VAR. 20856as_fn_unset () 20857{ 20858 { eval $1=; unset $1;} 20859} 20860as_unset=as_fn_unset 20861# as_fn_append VAR VALUE 20862# ---------------------- 20863# Append the text in VALUE to the end of the definition contained in VAR. Take 20864# advantage of any shell optimizations that allow amortized linear growth over 20865# repeated appends, instead of the typical quadratic growth present in naive 20866# implementations. 20867if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20868 eval 'as_fn_append () 20869 { 20870 eval $1+=\$2 20871 }' 20872else 20873 as_fn_append () 20874 { 20875 eval $1=\$$1\$2 20876 } 20877fi # as_fn_append 20878 20879# as_fn_arith ARG... 20880# ------------------ 20881# Perform arithmetic evaluation on the ARGs, and store the result in the 20882# global $as_val. Take advantage of shells that can avoid forks. The arguments 20883# must be portable across $(()) and expr. 20884if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20885 eval 'as_fn_arith () 20886 { 20887 as_val=$(( $* )) 20888 }' 20889else 20890 as_fn_arith () 20891 { 20892 as_val=`expr "$@" || test $? -eq 1` 20893 } 20894fi # as_fn_arith 20895 20896 20897if expr a : '\(a\)' >/dev/null 2>&1 && 20898 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20899 as_expr=expr 20900else 20901 as_expr=false 20902fi 20903 20904if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20905 as_basename=basename 20906else 20907 as_basename=false 20908fi 20909 20910if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20911 as_dirname=dirname 20912else 20913 as_dirname=false 20914fi 20915 20916as_me=`$as_basename -- "$0" || 20917$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20918 X"$0" : 'X\(//\)$' \| \ 20919 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20920$as_echo X/"$0" | 20921 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20922 s//\1/ 20923 q 20924 } 20925 /^X\/\(\/\/\)$/{ 20926 s//\1/ 20927 q 20928 } 20929 /^X\/\(\/\).*/{ 20930 s//\1/ 20931 q 20932 } 20933 s/.*/./; q'` 20934 20935# Avoid depending upon Character Ranges. 20936as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20937as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20938as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20939as_cr_digits='0123456789' 20940as_cr_alnum=$as_cr_Letters$as_cr_digits 20941 20942ECHO_C= ECHO_N= ECHO_T= 20943case `echo -n x` in #((((( 20944-n*) 20945 case `echo 'xy\c'` in 20946 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20947 xy) ECHO_C='\c';; 20948 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20949 ECHO_T=' ';; 20950 esac;; 20951*) 20952 ECHO_N='-n';; 20953esac 20954 20955rm -f conf$$ conf$$.exe conf$$.file 20956if test -d conf$$.dir; then 20957 rm -f conf$$.dir/conf$$.file 20958else 20959 rm -f conf$$.dir 20960 mkdir conf$$.dir 2>/dev/null 20961fi 20962if (echo >conf$$.file) 2>/dev/null; then 20963 if ln -s conf$$.file conf$$ 2>/dev/null; then 20964 as_ln_s='ln -s' 20965 # ... but there are two gotchas: 20966 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20967 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20968 # In both cases, we have to default to `cp -p'. 20969 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20970 as_ln_s='cp -p' 20971 elif ln conf$$.file conf$$ 2>/dev/null; then 20972 as_ln_s=ln 20973 else 20974 as_ln_s='cp -p' 20975 fi 20976else 20977 as_ln_s='cp -p' 20978fi 20979rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20980rmdir conf$$.dir 2>/dev/null 20981 20982 20983# as_fn_mkdir_p 20984# ------------- 20985# Create "$as_dir" as a directory, including parents if necessary. 20986as_fn_mkdir_p () 20987{ 20988 20989 case $as_dir in #( 20990 -*) as_dir=./$as_dir;; 20991 esac 20992 test -d "$as_dir" || eval $as_mkdir_p || { 20993 as_dirs= 20994 while :; do 20995 case $as_dir in #( 20996 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20997 *) as_qdir=$as_dir;; 20998 esac 20999 as_dirs="'$as_qdir' $as_dirs" 21000 as_dir=`$as_dirname -- "$as_dir" || 21001$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21002 X"$as_dir" : 'X\(//\)[^/]' \| \ 21003 X"$as_dir" : 'X\(//\)$' \| \ 21004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21005$as_echo X"$as_dir" | 21006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21007 s//\1/ 21008 q 21009 } 21010 /^X\(\/\/\)[^/].*/{ 21011 s//\1/ 21012 q 21013 } 21014 /^X\(\/\/\)$/{ 21015 s//\1/ 21016 q 21017 } 21018 /^X\(\/\).*/{ 21019 s//\1/ 21020 q 21021 } 21022 s/.*/./; q'` 21023 test -d "$as_dir" && break 21024 done 21025 test -z "$as_dirs" || eval "mkdir $as_dirs" 21026 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 21027 21028 21029} # as_fn_mkdir_p 21030if mkdir -p . 2>/dev/null; then 21031 as_mkdir_p='mkdir -p "$as_dir"' 21032else 21033 test -d ./-p && rmdir ./-p 21034 as_mkdir_p=false 21035fi 21036 21037if test -x / >/dev/null 2>&1; then 21038 as_test_x='test -x' 21039else 21040 if ls -dL / >/dev/null 2>&1; then 21041 as_ls_L_option=L 21042 else 21043 as_ls_L_option= 21044 fi 21045 as_test_x=' 21046 eval sh -c '\'' 21047 if test -d "$1"; then 21048 test -d "$1/."; 21049 else 21050 case $1 in #( 21051 -*)set "./$1";; 21052 esac; 21053 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 21054 ???[sx]*):;;*)false;;esac;fi 21055 '\'' sh 21056 ' 21057fi 21058as_executable_p=$as_test_x 21059 21060# Sed expression to map a string onto a valid CPP name. 21061as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21062 21063# Sed expression to map a string onto a valid variable name. 21064as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21065 21066 21067exec 6>&1 21068## ----------------------------------- ## 21069## Main body of $CONFIG_STATUS script. ## 21070## ----------------------------------- ## 21071_ASEOF 21072test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21073 21074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21075# Save the log message, to keep $0 and so on meaningful, and to 21076# report actual input values of CONFIG_FILES etc. instead of their 21077# values after options handling. 21078ac_log=" 21079This file was extended by libvorbis $as_me 1.2.3, which was 21080generated by GNU Autoconf 2.65. Invocation command line was 21081 21082 CONFIG_FILES = $CONFIG_FILES 21083 CONFIG_HEADERS = $CONFIG_HEADERS 21084 CONFIG_LINKS = $CONFIG_LINKS 21085 CONFIG_COMMANDS = $CONFIG_COMMANDS 21086 $ $0 $@ 21087 21088on `(hostname || uname -n) 2>/dev/null | sed 1q` 21089" 21090 21091_ACEOF 21092 21093case $ac_config_files in *" 21094"*) set x $ac_config_files; shift; ac_config_files=$*;; 21095esac 21096 21097case $ac_config_headers in *" 21098"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21099esac 21100 21101 21102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21103# Files that config.status was made for. 21104config_files="$ac_config_files" 21105config_headers="$ac_config_headers" 21106config_commands="$ac_config_commands" 21107 21108_ACEOF 21109 21110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21111ac_cs_usage="\ 21112\`$as_me' instantiates files and other configuration actions 21113from templates according to the current configuration. Unless the files 21114and actions are specified as TAGs, all are instantiated by default. 21115 21116Usage: $0 [OPTION]... [TAG]... 21117 21118 -h, --help print this help, then exit 21119 -V, --version print version number and configuration settings, then exit 21120 --config print configuration, then exit 21121 -q, --quiet, --silent 21122 do not print progress messages 21123 -d, --debug don't remove temporary files 21124 --recheck update $as_me by reconfiguring in the same conditions 21125 --file=FILE[:TEMPLATE] 21126 instantiate the configuration file FILE 21127 --header=FILE[:TEMPLATE] 21128 instantiate the configuration header FILE 21129 21130Configuration files: 21131$config_files 21132 21133Configuration headers: 21134$config_headers 21135 21136Configuration commands: 21137$config_commands 21138 21139Report bugs to <vorbis-dev@xiph.org>." 21140 21141_ACEOF 21142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21143ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21144ac_cs_version="\\ 21145libvorbis config.status 1.2.3 21146configured by $0, generated by GNU Autoconf 2.65, 21147 with options \\"\$ac_cs_config\\" 21148 21149Copyright (C) 2009 Free Software Foundation, Inc. 21150This config.status script is free software; the Free Software Foundation 21151gives unlimited permission to copy, distribute and modify it." 21152 21153ac_pwd='$ac_pwd' 21154srcdir='$srcdir' 21155INSTALL='$INSTALL' 21156MKDIR_P='$MKDIR_P' 21157AWK='$AWK' 21158test -n "\$AWK" || AWK=awk 21159_ACEOF 21160 21161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21162# The default lists apply if the user does not specify any file. 21163ac_need_defaults=: 21164while test $# != 0 21165do 21166 case $1 in 21167 --*=*) 21168 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21170 ac_shift=: 21171 ;; 21172 *) 21173 ac_option=$1 21174 ac_optarg=$2 21175 ac_shift=shift 21176 ;; 21177 esac 21178 21179 case $ac_option in 21180 # Handling of the options. 21181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21182 ac_cs_recheck=: ;; 21183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21184 $as_echo "$ac_cs_version"; exit ;; 21185 --config | --confi | --conf | --con | --co | --c ) 21186 $as_echo "$ac_cs_config"; exit ;; 21187 --debug | --debu | --deb | --de | --d | -d ) 21188 debug=: ;; 21189 --file | --fil | --fi | --f ) 21190 $ac_shift 21191 case $ac_optarg in 21192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21193 esac 21194 as_fn_append CONFIG_FILES " '$ac_optarg'" 21195 ac_need_defaults=false;; 21196 --header | --heade | --head | --hea ) 21197 $ac_shift 21198 case $ac_optarg in 21199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21200 esac 21201 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21202 ac_need_defaults=false;; 21203 --he | --h) 21204 # Conflict between --help and --header 21205 as_fn_error "ambiguous option: \`$1' 21206Try \`$0 --help' for more information.";; 21207 --help | --hel | -h ) 21208 $as_echo "$ac_cs_usage"; exit ;; 21209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21210 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21211 ac_cs_silent=: ;; 21212 21213 # This is an error. 21214 -*) as_fn_error "unrecognized option: \`$1' 21215Try \`$0 --help' for more information." ;; 21216 21217 *) as_fn_append ac_config_targets " $1" 21218 ac_need_defaults=false ;; 21219 21220 esac 21221 shift 21222done 21223 21224ac_configure_extra_args= 21225 21226if $ac_cs_silent; then 21227 exec 6>/dev/null 21228 ac_configure_extra_args="$ac_configure_extra_args --silent" 21229fi 21230 21231_ACEOF 21232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21233if \$ac_cs_recheck; then 21234 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21235 shift 21236 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21237 CONFIG_SHELL='$SHELL' 21238 export CONFIG_SHELL 21239 exec "\$@" 21240fi 21241 21242_ACEOF 21243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21244exec 5>>config.log 21245{ 21246 echo 21247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21248## Running $as_me. ## 21249_ASBOX 21250 $as_echo "$ac_log" 21251} >&5 21252 21253_ACEOF 21254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21255# 21256# INIT-COMMANDS 21257# 21258AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21259 21260_ACEOF 21261 21262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21263 21264# Handling of arguments. 21265for ac_config_target in $ac_config_targets 21266do 21267 case $ac_config_target in 21268 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21269 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21271 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 21272 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 21273 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;; 21274 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;; 21275 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;; 21276 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;; 21277 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;; 21278 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21279 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;; 21280 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;; 21281 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21282 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;; 21283 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21284 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21285 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;; 21286 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;; 21287 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;; 21288 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;; 21289 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;; 21290 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;; 21291 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;; 21292 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;; 21293 21294 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21295 esac 21296done 21297 21298 21299# If the user did not use the arguments to specify the items to instantiate, 21300# then the envvar interface is used. Set only those that are not. 21301# We use the long form for the default assignment because of an extremely 21302# bizarre bug on SunOS 4.1.3. 21303if $ac_need_defaults; then 21304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21307fi 21308 21309# Have a temporary directory for convenience. Make it in the build tree 21310# simply because there is no reason against having it here, and in addition, 21311# creating and moving files from /tmp can sometimes cause problems. 21312# Hook for its removal unless debugging. 21313# Note that there is a small window in which the directory will not be cleaned: 21314# after its creation but before its name has been assigned to `$tmp'. 21315$debug || 21316{ 21317 tmp= 21318 trap 'exit_status=$? 21319 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21320' 0 21321 trap 'as_fn_exit 1' 1 2 13 15 21322} 21323# Create a (secure) tmp directory for tmp files. 21324 21325{ 21326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21327 test -n "$tmp" && test -d "$tmp" 21328} || 21329{ 21330 tmp=./conf$$-$RANDOM 21331 (umask 077 && mkdir "$tmp") 21332} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 21333 21334# Set up the scripts for CONFIG_FILES section. 21335# No need to generate them if there are no CONFIG_FILES. 21336# This happens for instance with `./config.status config.h'. 21337if test -n "$CONFIG_FILES"; then 21338 21339 21340ac_cr=`echo X | tr X '\015'` 21341# On cygwin, bash can eat \r inside `` if the user requested igncr. 21342# But we know of no other shell where ac_cr would be empty at this 21343# point, so we can use a bashism as a fallback. 21344if test "x$ac_cr" = x; then 21345 eval ac_cr=\$\'\\r\' 21346fi 21347ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21348if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21349 ac_cs_awk_cr='\r' 21350else 21351 ac_cs_awk_cr=$ac_cr 21352fi 21353 21354echo 'BEGIN {' >"$tmp/subs1.awk" && 21355_ACEOF 21356 21357 21358{ 21359 echo "cat >conf$$subs.awk <<_ACEOF" && 21360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21361 echo "_ACEOF" 21362} >conf$$subs.sh || 21363 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 21364ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21365ac_delim='%!_!# ' 21366for ac_last_try in false false false false false :; do 21367 . ./conf$$subs.sh || 21368 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 21369 21370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21371 if test $ac_delim_n = $ac_delim_num; then 21372 break 21373 elif $ac_last_try; then 21374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 21375 else 21376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21377 fi 21378done 21379rm -f conf$$subs.sh 21380 21381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21382cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21383_ACEOF 21384sed -n ' 21385h 21386s/^/S["/; s/!.*/"]=/ 21387p 21388g 21389s/^[^!]*!// 21390:repl 21391t repl 21392s/'"$ac_delim"'$// 21393t delim 21394:nl 21395h 21396s/\(.\{148\}\)..*/\1/ 21397t more1 21398s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21399p 21400n 21401b repl 21402:more1 21403s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21404p 21405g 21406s/.\{148\}// 21407t nl 21408:delim 21409h 21410s/\(.\{148\}\)..*/\1/ 21411t more2 21412s/["\\]/\\&/g; s/^/"/; s/$/"/ 21413p 21414b 21415:more2 21416s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21417p 21418g 21419s/.\{148\}// 21420t delim 21421' <conf$$subs.awk | sed ' 21422/^[^""]/{ 21423 N 21424 s/\n// 21425} 21426' >>$CONFIG_STATUS || ac_write_fail=1 21427rm -f conf$$subs.awk 21428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21429_ACAWK 21430cat >>"\$tmp/subs1.awk" <<_ACAWK && 21431 for (key in S) S_is_set[key] = 1 21432 FS = "" 21433 21434} 21435{ 21436 line = $ 0 21437 nfields = split(line, field, "@") 21438 substed = 0 21439 len = length(field[1]) 21440 for (i = 2; i < nfields; i++) { 21441 key = field[i] 21442 keylen = length(key) 21443 if (S_is_set[key]) { 21444 value = S[key] 21445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21446 len += length(value) + length(field[++i]) 21447 substed = 1 21448 } else 21449 len += 1 + keylen 21450 } 21451 21452 print line 21453} 21454 21455_ACAWK 21456_ACEOF 21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21458if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21460else 21461 cat 21462fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21463 || as_fn_error "could not setup config files machinery" "$LINENO" 5 21464_ACEOF 21465 21466# VPATH may cause trouble with some makes, so we remove $(srcdir), 21467# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21468# trailing colons and then remove the whole line if VPATH becomes empty 21469# (actually we leave an empty line to preserve line numbers). 21470if test "x$srcdir" = x.; then 21471 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21472s/:*\$(srcdir):*/:/ 21473s/:*\${srcdir}:*/:/ 21474s/:*@srcdir@:*/:/ 21475s/^\([^=]*=[ ]*\):*/\1/ 21476s/:*$// 21477s/^[^=]*=[ ]*$// 21478}' 21479fi 21480 21481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21482fi # test -n "$CONFIG_FILES" 21483 21484# Set up the scripts for CONFIG_HEADERS section. 21485# No need to generate them if there are no CONFIG_HEADERS. 21486# This happens for instance with `./config.status Makefile'. 21487if test -n "$CONFIG_HEADERS"; then 21488cat >"$tmp/defines.awk" <<\_ACAWK || 21489BEGIN { 21490_ACEOF 21491 21492# Transform confdefs.h into an awk script `defines.awk', embedded as 21493# here-document in config.status, that substitutes the proper values into 21494# config.h.in to produce config.h. 21495 21496# Create a delimiter string that does not exist in confdefs.h, to ease 21497# handling of long lines. 21498ac_delim='%!_!# ' 21499for ac_last_try in false false :; do 21500 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 21501 if test -z "$ac_t"; then 21502 break 21503 elif $ac_last_try; then 21504 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 21505 else 21506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21507 fi 21508done 21509 21510# For the awk script, D is an array of macro values keyed by name, 21511# likewise P contains macro parameters if any. Preserve backslash 21512# newline sequences. 21513 21514ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21515sed -n ' 21516s/.\{148\}/&'"$ac_delim"'/g 21517t rset 21518:rset 21519s/^[ ]*#[ ]*define[ ][ ]*/ / 21520t def 21521d 21522:def 21523s/\\$// 21524t bsnl 21525s/["\\]/\\&/g 21526s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21527D["\1"]=" \3"/p 21528s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21529d 21530:bsnl 21531s/["\\]/\\&/g 21532s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21533D["\1"]=" \3\\\\\\n"\\/p 21534t cont 21535s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21536t cont 21537d 21538:cont 21539n 21540s/.\{148\}/&'"$ac_delim"'/g 21541t clear 21542:clear 21543s/\\$// 21544t bsnlc 21545s/["\\]/\\&/g; s/^/"/; s/$/"/p 21546d 21547:bsnlc 21548s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21549b cont 21550' <confdefs.h | sed ' 21551s/'"$ac_delim"'/"\\\ 21552"/g' >>$CONFIG_STATUS || ac_write_fail=1 21553 21554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21555 for (key in D) D_is_set[key] = 1 21556 FS = "" 21557} 21558/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21559 line = \$ 0 21560 split(line, arg, " ") 21561 if (arg[1] == "#") { 21562 defundef = arg[2] 21563 mac1 = arg[3] 21564 } else { 21565 defundef = substr(arg[1], 2) 21566 mac1 = arg[2] 21567 } 21568 split(mac1, mac2, "(") #) 21569 macro = mac2[1] 21570 prefix = substr(line, 1, index(line, defundef) - 1) 21571 if (D_is_set[macro]) { 21572 # Preserve the white space surrounding the "#". 21573 print prefix "define", macro P[macro] D[macro] 21574 next 21575 } else { 21576 # Replace #undef with comments. This is necessary, for example, 21577 # in the case of _POSIX_SOURCE, which is predefined and required 21578 # on some systems where configure will not decide to define it. 21579 if (defundef == "undef") { 21580 print "/*", prefix defundef, macro, "*/" 21581 next 21582 } 21583 } 21584} 21585{ print } 21586_ACAWK 21587_ACEOF 21588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21589 as_fn_error "could not setup config headers machinery" "$LINENO" 5 21590fi # test -n "$CONFIG_HEADERS" 21591 21592 21593eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21594shift 21595for ac_tag 21596do 21597 case $ac_tag in 21598 :[FHLC]) ac_mode=$ac_tag; continue;; 21599 esac 21600 case $ac_mode$ac_tag in 21601 :[FHL]*:*);; 21602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 21603 :[FH]-) ac_tag=-:-;; 21604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21605 esac 21606 ac_save_IFS=$IFS 21607 IFS=: 21608 set x $ac_tag 21609 IFS=$ac_save_IFS 21610 shift 21611 ac_file=$1 21612 shift 21613 21614 case $ac_mode in 21615 :L) ac_source=$1;; 21616 :[FH]) 21617 ac_file_inputs= 21618 for ac_f 21619 do 21620 case $ac_f in 21621 -) ac_f="$tmp/stdin";; 21622 *) # Look for the file first in the build tree, then in the source tree 21623 # (if the path is not absolute). The absolute path cannot be DOS-style, 21624 # because $ac_f cannot contain `:'. 21625 test -f "$ac_f" || 21626 case $ac_f in 21627 [\\/$]*) false;; 21628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21629 esac || 21630 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21631 esac 21632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21633 as_fn_append ac_file_inputs " '$ac_f'" 21634 done 21635 21636 # Let's still pretend it is `configure' which instantiates (i.e., don't 21637 # use $as_me), people would be surprised to read: 21638 # /* config.h. Generated by config.status. */ 21639 configure_input='Generated from '` 21640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21641 `' by configure.' 21642 if test x"$ac_file" != x-; then 21643 configure_input="$ac_file. $configure_input" 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21645$as_echo "$as_me: creating $ac_file" >&6;} 21646 fi 21647 # Neutralize special characters interpreted by sed in replacement strings. 21648 case $configure_input in #( 21649 *\&* | *\|* | *\\* ) 21650 ac_sed_conf_input=`$as_echo "$configure_input" | 21651 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21652 *) ac_sed_conf_input=$configure_input;; 21653 esac 21654 21655 case $ac_tag in 21656 *:-:* | *:-) cat >"$tmp/stdin" \ 21657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 21658 esac 21659 ;; 21660 esac 21661 21662 ac_dir=`$as_dirname -- "$ac_file" || 21663$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21664 X"$ac_file" : 'X\(//\)[^/]' \| \ 21665 X"$ac_file" : 'X\(//\)$' \| \ 21666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21667$as_echo X"$ac_file" | 21668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21669 s//\1/ 21670 q 21671 } 21672 /^X\(\/\/\)[^/].*/{ 21673 s//\1/ 21674 q 21675 } 21676 /^X\(\/\/\)$/{ 21677 s//\1/ 21678 q 21679 } 21680 /^X\(\/\).*/{ 21681 s//\1/ 21682 q 21683 } 21684 s/.*/./; q'` 21685 as_dir="$ac_dir"; as_fn_mkdir_p 21686 ac_builddir=. 21687 21688case "$ac_dir" in 21689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21690*) 21691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21692 # A ".." for each directory in $ac_dir_suffix. 21693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21694 case $ac_top_builddir_sub in 21695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21697 esac ;; 21698esac 21699ac_abs_top_builddir=$ac_pwd 21700ac_abs_builddir=$ac_pwd$ac_dir_suffix 21701# for backward compatibility: 21702ac_top_builddir=$ac_top_build_prefix 21703 21704case $srcdir in 21705 .) # We are building in place. 21706 ac_srcdir=. 21707 ac_top_srcdir=$ac_top_builddir_sub 21708 ac_abs_top_srcdir=$ac_pwd ;; 21709 [\\/]* | ?:[\\/]* ) # Absolute name. 21710 ac_srcdir=$srcdir$ac_dir_suffix; 21711 ac_top_srcdir=$srcdir 21712 ac_abs_top_srcdir=$srcdir ;; 21713 *) # Relative name. 21714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21715 ac_top_srcdir=$ac_top_build_prefix$srcdir 21716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21717esac 21718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21719 21720 21721 case $ac_mode in 21722 :F) 21723 # 21724 # CONFIG_FILE 21725 # 21726 21727 case $INSTALL in 21728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21730 esac 21731 ac_MKDIR_P=$MKDIR_P 21732 case $MKDIR_P in 21733 [\\/$]* | ?:[\\/]* ) ;; 21734 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21735 esac 21736_ACEOF 21737 21738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21739# If the template does not know about datarootdir, expand it. 21740# FIXME: This hack should be removed a few years after 2.60. 21741ac_datarootdir_hack=; ac_datarootdir_seen= 21742ac_sed_dataroot=' 21743/datarootdir/ { 21744 p 21745 q 21746} 21747/@datadir@/p 21748/@docdir@/p 21749/@infodir@/p 21750/@localedir@/p 21751/@mandir@/p' 21752case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21753*datarootdir*) ac_datarootdir_seen=yes;; 21754*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21756$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21757_ACEOF 21758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21759 ac_datarootdir_hack=' 21760 s&@datadir@&$datadir&g 21761 s&@docdir@&$docdir&g 21762 s&@infodir@&$infodir&g 21763 s&@localedir@&$localedir&g 21764 s&@mandir@&$mandir&g 21765 s&\\\${datarootdir}&$datarootdir&g' ;; 21766esac 21767_ACEOF 21768 21769# Neutralize VPATH when `$srcdir' = `.'. 21770# Shell code in configure.ac might set extrasub. 21771# FIXME: do we really want to maintain this feature? 21772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21773ac_sed_extra="$ac_vpsub 21774$extrasub 21775_ACEOF 21776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21777:t 21778/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21779s|@configure_input@|$ac_sed_conf_input|;t t 21780s&@top_builddir@&$ac_top_builddir_sub&;t t 21781s&@top_build_prefix@&$ac_top_build_prefix&;t t 21782s&@srcdir@&$ac_srcdir&;t t 21783s&@abs_srcdir@&$ac_abs_srcdir&;t t 21784s&@top_srcdir@&$ac_top_srcdir&;t t 21785s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21786s&@builddir@&$ac_builddir&;t t 21787s&@abs_builddir@&$ac_abs_builddir&;t t 21788s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21789s&@INSTALL@&$ac_INSTALL&;t t 21790s&@MKDIR_P@&$ac_MKDIR_P&;t t 21791$ac_datarootdir_hack 21792" 21793eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 21794 || as_fn_error "could not create $ac_file" "$LINENO" 5 21795 21796test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21797 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21800which seems to be undefined. Please make sure it is defined." >&5 21801$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21802which seems to be undefined. Please make sure it is defined." >&2;} 21803 21804 rm -f "$tmp/stdin" 21805 case $ac_file in 21806 -) cat "$tmp/out" && rm -f "$tmp/out";; 21807 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 21808 esac \ 21809 || as_fn_error "could not create $ac_file" "$LINENO" 5 21810 ;; 21811 :H) 21812 # 21813 # CONFIG_HEADER 21814 # 21815 if test x"$ac_file" != x-; then 21816 { 21817 $as_echo "/* $configure_input */" \ 21818 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 21819 } >"$tmp/config.h" \ 21820 || as_fn_error "could not create $ac_file" "$LINENO" 5 21821 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21823$as_echo "$as_me: $ac_file is unchanged" >&6;} 21824 else 21825 rm -f "$ac_file" 21826 mv "$tmp/config.h" "$ac_file" \ 21827 || as_fn_error "could not create $ac_file" "$LINENO" 5 21828 fi 21829 else 21830 $as_echo "/* $configure_input */" \ 21831 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 21832 || as_fn_error "could not create -" "$LINENO" 5 21833 fi 21834# Compute "$ac_file"'s index in $config_headers. 21835_am_arg="$ac_file" 21836_am_stamp_count=1 21837for _am_header in $config_headers :; do 21838 case $_am_header in 21839 $_am_arg | $_am_arg:* ) 21840 break ;; 21841 * ) 21842 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21843 esac 21844done 21845echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21846$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21847 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21848 X"$_am_arg" : 'X\(//\)$' \| \ 21849 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21850$as_echo X"$_am_arg" | 21851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21852 s//\1/ 21853 q 21854 } 21855 /^X\(\/\/\)[^/].*/{ 21856 s//\1/ 21857 q 21858 } 21859 /^X\(\/\/\)$/{ 21860 s//\1/ 21861 q 21862 } 21863 /^X\(\/\).*/{ 21864 s//\1/ 21865 q 21866 } 21867 s/.*/./; q'`/stamp-h$_am_stamp_count 21868 ;; 21869 21870 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21871$as_echo "$as_me: executing $ac_file commands" >&6;} 21872 ;; 21873 esac 21874 21875 21876 case $ac_file$ac_mode in 21877 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21878 # Strip MF so we end up with the name of the file. 21879 mf=`echo "$mf" | sed -e 's/:.*$//'` 21880 # Check whether this is an Automake generated Makefile or not. 21881 # We used to match only the files named `Makefile.in', but 21882 # some people rename them; so instead we look at the file content. 21883 # Grep'ing the first line is not enough: some people post-process 21884 # each Makefile.in and add a new line on top of each file to say so. 21885 # Grep'ing the whole file is not good either: AIX grep has a line 21886 # limit of 2048, but all sed's we know have understand at least 4000. 21887 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21888 dirpart=`$as_dirname -- "$mf" || 21889$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21890 X"$mf" : 'X\(//\)[^/]' \| \ 21891 X"$mf" : 'X\(//\)$' \| \ 21892 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21893$as_echo X"$mf" | 21894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21895 s//\1/ 21896 q 21897 } 21898 /^X\(\/\/\)[^/].*/{ 21899 s//\1/ 21900 q 21901 } 21902 /^X\(\/\/\)$/{ 21903 s//\1/ 21904 q 21905 } 21906 /^X\(\/\).*/{ 21907 s//\1/ 21908 q 21909 } 21910 s/.*/./; q'` 21911 else 21912 continue 21913 fi 21914 # Extract the definition of DEPDIR, am__include, and am__quote 21915 # from the Makefile without running `make'. 21916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21917 test -z "$DEPDIR" && continue 21918 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21919 test -z "am__include" && continue 21920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21921 # When using ansi2knr, U may be empty or an underscore; expand it 21922 U=`sed -n 's/^U = //p' < "$mf"` 21923 # Find all dependency output files, they are included files with 21924 # $(DEPDIR) in their names. We invoke sed twice because it is the 21925 # simplest approach to changing $(DEPDIR) to its actual value in the 21926 # expansion. 21927 for file in `sed -n " 21928 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21929 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21930 # Make sure the directory exists. 21931 test -f "$dirpart/$file" && continue 21932 fdir=`$as_dirname -- "$file" || 21933$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21934 X"$file" : 'X\(//\)[^/]' \| \ 21935 X"$file" : 'X\(//\)$' \| \ 21936 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21937$as_echo X"$file" | 21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21939 s//\1/ 21940 q 21941 } 21942 /^X\(\/\/\)[^/].*/{ 21943 s//\1/ 21944 q 21945 } 21946 /^X\(\/\/\)$/{ 21947 s//\1/ 21948 q 21949 } 21950 /^X\(\/\).*/{ 21951 s//\1/ 21952 q 21953 } 21954 s/.*/./; q'` 21955 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21956 # echo "creating $dirpart/$file" 21957 echo '# dummy' > "$dirpart/$file" 21958 done 21959done 21960 ;; 21961 21962 esac 21963done # for ac_tag 21964 21965 21966as_fn_exit 0 21967_ACEOF 21968ac_clean_files=$ac_clean_files_save 21969 21970test $ac_write_fail = 0 || 21971 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 21972 21973 21974# configure is writing to config.log, and then calls config.status. 21975# config.status does its own redirection, appending to config.log. 21976# Unfortunately, on DOS this fails, as config.log is still kept open 21977# by configure, so config.status won't be able to write to it; its 21978# output is simply discarded. So we exec the FD to /dev/null, 21979# effectively closing config.log, so it can be properly (re)opened and 21980# appended to by config.status. When coming back to configure, we 21981# need to make the FD available again. 21982if test "$no_create" != yes; then 21983 ac_cs_success=: 21984 ac_config_status_args= 21985 test "$silent" = yes && 21986 ac_config_status_args="$ac_config_status_args --quiet" 21987 exec 5>/dev/null 21988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21989 exec 5>>config.log 21990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21991 # would make configure fail if this is the last instruction. 21992 $ac_cs_success || as_fn_exit $? 21993fi 21994if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21996$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21997fi 21998 21999