1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for wv 1.2.9. 4# 5# Report bugs to <wvware-devel@sourceforge.net>. 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: wvware-devel@sourceforge.net about your system, 235$0: including any error possibly output before this 236$0: message. Then install a modern shell, or manually run 237$0: the script under such a 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$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_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 <<_LT_EOF 562$* 563_LT_EOF 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 "$lt_ECHO"; then 572 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='wv' 703PACKAGE_TARNAME='wv' 704PACKAGE_VERSION='1.2.9' 705PACKAGE_STRING='wv 1.2.9' 706PACKAGE_BUGREPORT='wvware-devel@sourceforge.net' 707PACKAGE_URL='' 708 709ac_unique_file="wvWare.c" 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_header_list= 747ac_subst_vars='am__EXEEXT_FALSE 748am__EXEEXT_TRUE 749LTLIBOBJS 750LIBOBJS 751OPT_LIBS 752OPT_CFLAGS 753LIBWMF_CONFIG 754DLLWRAP 755HAVE_LIBXML2 756DEPS_PKGS 757DEPS_LIBS 758DEPS_CFLAGS 759PKG_CONFIG 760OTOOL64 761OTOOL 762LIPO 763NMEDIT 764DSYMUTIL 765lt_ECHO 766RANLIB 767AR 768OBJDUMP 769NM 770ac_ct_DUMPBIN 771DUMPBIN 772LD 773FGREP 774EGREP 775GREP 776SED 777LIBTOOL 778LN_S 779CPP 780ANSI_CFLAGS 781am__fastdepCC_FALSE 782am__fastdepCC_TRUE 783CCDEPMODE 784AMDEPBACKSLASH 785AMDEP_FALSE 786AMDEP_TRUE 787am__quote 788am__include 789DEPDIR 790OBJEXT 791EXEEXT 792ac_ct_CC 793CPPFLAGS 794LDFLAGS 795CFLAGS 796CC 797am__untar 798am__tar 799AMTAR 800am__leading_dot 801SET_MAKE 802AWK 803mkdir_p 804MKDIR_P 805INSTALL_STRIP_PROGRAM 806STRIP 807install_sh 808MAKEINFO 809AUTOHEADER 810AUTOMAKE 811AUTOCONF 812ACLOCAL 813VERSION 814PACKAGE 815CYGPATH_W 816am__isrc 817INSTALL_DATA 818INSTALL_SCRIPT 819INSTALL_PROGRAM 820LT_AGE 821LT_REVISION 822LT_CURRENT 823LT_RELEASE 824WV_VERSION 825WV_BINARY_AGE 826WV_INTERFACE_AGE 827WV_MICRO_VERSION 828WV_MINOR_VERSION 829WV_MAJOR_VERSION 830host_os 831host_vendor 832host_cpu 833host 834build_os 835build_vendor 836build_cpu 837build 838target_alias 839host_alias 840build_alias 841LIBS 842ECHO_T 843ECHO_N 844ECHO_C 845DEFS 846mandir 847localedir 848libdir 849psdir 850pdfdir 851dvidir 852htmldir 853infodir 854docdir 855oldincludedir 856includedir 857localstatedir 858sharedstatedir 859sysconfdir 860datadir 861datarootdir 862libexecdir 863sbindir 864bindir 865program_transform_name 866prefix 867exec_prefix 868PACKAGE_URL 869PACKAGE_BUGREPORT 870PACKAGE_STRING 871PACKAGE_VERSION 872PACKAGE_TARNAME 873PACKAGE_NAME 874PATH_SEPARATOR 875SHELL' 876ac_subst_files='' 877ac_user_opts=' 878enable_option_checking 879enable_dependency_tracking 880enable_shared 881enable_static 882with_pic 883enable_fast_install 884with_gnu_ld 885enable_libtool_lock 886with_zlib 887with_png 888with_libwmf 889' 890 ac_precious_vars='build_alias 891host_alias 892target_alias 893CC 894CFLAGS 895LDFLAGS 896LIBS 897CPPFLAGS 898CPP 899PKG_CONFIG 900DEPS_CFLAGS 901DEPS_LIBS' 902 903 904# Initialize some variables set by options. 905ac_init_help= 906ac_init_version=false 907ac_unrecognized_opts= 908ac_unrecognized_sep= 909# The variables have the same names as the options, with 910# dashes changed to underlines. 911cache_file=/dev/null 912exec_prefix=NONE 913no_create= 914no_recursion= 915prefix=NONE 916program_prefix=NONE 917program_suffix=NONE 918program_transform_name=s,x,x, 919silent= 920site= 921srcdir= 922verbose= 923x_includes=NONE 924x_libraries=NONE 925 926# Installation directory options. 927# These are left unexpanded so users can "make install exec_prefix=/foo" 928# and all the variables that are supposed to be based on exec_prefix 929# by default will actually change. 930# Use braces instead of parens because sh, perl, etc. also accept them. 931# (The list follows the same order as the GNU Coding Standards.) 932bindir='${exec_prefix}/bin' 933sbindir='${exec_prefix}/sbin' 934libexecdir='${exec_prefix}/libexec' 935datarootdir='${prefix}/share' 936datadir='${datarootdir}' 937sysconfdir='${prefix}/etc' 938sharedstatedir='${prefix}/com' 939localstatedir='${prefix}/var' 940includedir='${prefix}/include' 941oldincludedir='/usr/include' 942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 943infodir='${datarootdir}/info' 944htmldir='${docdir}' 945dvidir='${docdir}' 946pdfdir='${docdir}' 947psdir='${docdir}' 948libdir='${exec_prefix}/lib' 949localedir='${datarootdir}/locale' 950mandir='${datarootdir}/man' 951 952ac_prev= 953ac_dashdash= 954for ac_option 955do 956 # If the previous option needs an argument, assign it. 957 if test -n "$ac_prev"; then 958 eval $ac_prev=\$ac_option 959 ac_prev= 960 continue 961 fi 962 963 case $ac_option in 964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 965 *) ac_optarg=yes ;; 966 esac 967 968 # Accept the important Cygnus configure options, so we can diagnose typos. 969 970 case $ac_dashdash$ac_option in 971 --) 972 ac_dashdash=yes ;; 973 974 -bindir | --bindir | --bindi | --bind | --bin | --bi) 975 ac_prev=bindir ;; 976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 977 bindir=$ac_optarg ;; 978 979 -build | --build | --buil | --bui | --bu) 980 ac_prev=build_alias ;; 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 982 build_alias=$ac_optarg ;; 983 984 -cache-file | --cache-file | --cache-fil | --cache-fi \ 985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 986 ac_prev=cache_file ;; 987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 989 cache_file=$ac_optarg ;; 990 991 --config-cache | -C) 992 cache_file=config.cache ;; 993 994 -datadir | --datadir | --datadi | --datad) 995 ac_prev=datadir ;; 996 -datadir=* | --datadir=* | --datadi=* | --datad=*) 997 datadir=$ac_optarg ;; 998 999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1000 | --dataroo | --dataro | --datar) 1001 ac_prev=datarootdir ;; 1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1004 datarootdir=$ac_optarg ;; 1005 1006 -disable-* | --disable-*) 1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1008 # Reject names that are not valid shell variable names. 1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1010 as_fn_error "invalid feature name: $ac_useropt" 1011 ac_useropt_orig=$ac_useropt 1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1013 case $ac_user_opts in 1014 *" 1015"enable_$ac_useropt" 1016"*) ;; 1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1018 ac_unrecognized_sep=', ';; 1019 esac 1020 eval enable_$ac_useropt=no ;; 1021 1022 -docdir | --docdir | --docdi | --doc | --do) 1023 ac_prev=docdir ;; 1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1025 docdir=$ac_optarg ;; 1026 1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1028 ac_prev=dvidir ;; 1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1030 dvidir=$ac_optarg ;; 1031 1032 -enable-* | --enable-*) 1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1036 as_fn_error "invalid feature name: $ac_useropt" 1037 ac_useropt_orig=$ac_useropt 1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1039 case $ac_user_opts in 1040 *" 1041"enable_$ac_useropt" 1042"*) ;; 1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1044 ac_unrecognized_sep=', ';; 1045 esac 1046 eval enable_$ac_useropt=\$ac_optarg ;; 1047 1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1050 | --exec | --exe | --ex) 1051 ac_prev=exec_prefix ;; 1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1054 | --exec=* | --exe=* | --ex=*) 1055 exec_prefix=$ac_optarg ;; 1056 1057 -gas | --gas | --ga | --g) 1058 # Obsolete; use --with-gas. 1059 with_gas=yes ;; 1060 1061 -help | --help | --hel | --he | -h) 1062 ac_init_help=long ;; 1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1064 ac_init_help=recursive ;; 1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1066 ac_init_help=short ;; 1067 1068 -host | --host | --hos | --ho) 1069 ac_prev=host_alias ;; 1070 -host=* | --host=* | --hos=* | --ho=*) 1071 host_alias=$ac_optarg ;; 1072 1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1074 ac_prev=htmldir ;; 1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1076 | --ht=*) 1077 htmldir=$ac_optarg ;; 1078 1079 -includedir | --includedir | --includedi | --included | --include \ 1080 | --includ | --inclu | --incl | --inc) 1081 ac_prev=includedir ;; 1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1083 | --includ=* | --inclu=* | --incl=* | --inc=*) 1084 includedir=$ac_optarg ;; 1085 1086 -infodir | --infodir | --infodi | --infod | --info | --inf) 1087 ac_prev=infodir ;; 1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1089 infodir=$ac_optarg ;; 1090 1091 -libdir | --libdir | --libdi | --libd) 1092 ac_prev=libdir ;; 1093 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1094 libdir=$ac_optarg ;; 1095 1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1097 | --libexe | --libex | --libe) 1098 ac_prev=libexecdir ;; 1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1100 | --libexe=* | --libex=* | --libe=*) 1101 libexecdir=$ac_optarg ;; 1102 1103 -localedir | --localedir | --localedi | --localed | --locale) 1104 ac_prev=localedir ;; 1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1106 localedir=$ac_optarg ;; 1107 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1109 | --localstate | --localstat | --localsta | --localst | --locals) 1110 ac_prev=localstatedir ;; 1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1113 localstatedir=$ac_optarg ;; 1114 1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1116 ac_prev=mandir ;; 1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1118 mandir=$ac_optarg ;; 1119 1120 -nfp | --nfp | --nf) 1121 # Obsolete; use --without-fp. 1122 with_fp=no ;; 1123 1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1125 | --no-cr | --no-c | -n) 1126 no_create=yes ;; 1127 1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1130 no_recursion=yes ;; 1131 1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1134 | --oldin | --oldi | --old | --ol | --o) 1135 ac_prev=oldincludedir ;; 1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1139 oldincludedir=$ac_optarg ;; 1140 1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1142 ac_prev=prefix ;; 1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1144 prefix=$ac_optarg ;; 1145 1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1147 | --program-pre | --program-pr | --program-p) 1148 ac_prev=program_prefix ;; 1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1151 program_prefix=$ac_optarg ;; 1152 1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1154 | --program-suf | --program-su | --program-s) 1155 ac_prev=program_suffix ;; 1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1158 program_suffix=$ac_optarg ;; 1159 1160 -program-transform-name | --program-transform-name \ 1161 | --program-transform-nam | --program-transform-na \ 1162 | --program-transform-n | --program-transform- \ 1163 | --program-transform | --program-transfor \ 1164 | --program-transfo | --program-transf \ 1165 | --program-trans | --program-tran \ 1166 | --progr-tra | --program-tr | --program-t) 1167 ac_prev=program_transform_name ;; 1168 -program-transform-name=* | --program-transform-name=* \ 1169 | --program-transform-nam=* | --program-transform-na=* \ 1170 | --program-transform-n=* | --program-transform-=* \ 1171 | --program-transform=* | --program-transfor=* \ 1172 | --program-transfo=* | --program-transf=* \ 1173 | --program-trans=* | --program-tran=* \ 1174 | --progr-tra=* | --program-tr=* | --program-t=*) 1175 program_transform_name=$ac_optarg ;; 1176 1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1178 ac_prev=pdfdir ;; 1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1180 pdfdir=$ac_optarg ;; 1181 1182 -psdir | --psdir | --psdi | --psd | --ps) 1183 ac_prev=psdir ;; 1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1185 psdir=$ac_optarg ;; 1186 1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1188 | -silent | --silent | --silen | --sile | --sil) 1189 silent=yes ;; 1190 1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1192 ac_prev=sbindir ;; 1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1194 | --sbi=* | --sb=*) 1195 sbindir=$ac_optarg ;; 1196 1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1199 | --sharedst | --shareds | --shared | --share | --shar \ 1200 | --sha | --sh) 1201 ac_prev=sharedstatedir ;; 1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1205 | --sha=* | --sh=*) 1206 sharedstatedir=$ac_optarg ;; 1207 1208 -site | --site | --sit) 1209 ac_prev=site ;; 1210 -site=* | --site=* | --sit=*) 1211 site=$ac_optarg ;; 1212 1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1214 ac_prev=srcdir ;; 1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1216 srcdir=$ac_optarg ;; 1217 1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1219 | --syscon | --sysco | --sysc | --sys | --sy) 1220 ac_prev=sysconfdir ;; 1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1223 sysconfdir=$ac_optarg ;; 1224 1225 -target | --target | --targe | --targ | --tar | --ta | --t) 1226 ac_prev=target_alias ;; 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1228 target_alias=$ac_optarg ;; 1229 1230 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1231 verbose=yes ;; 1232 1233 -version | --version | --versio | --versi | --vers | -V) 1234 ac_init_version=: ;; 1235 1236 -with-* | --with-*) 1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1240 as_fn_error "invalid package name: $ac_useropt" 1241 ac_useropt_orig=$ac_useropt 1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1243 case $ac_user_opts in 1244 *" 1245"with_$ac_useropt" 1246"*) ;; 1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1248 ac_unrecognized_sep=', ';; 1249 esac 1250 eval with_$ac_useropt=\$ac_optarg ;; 1251 1252 -without-* | --without-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 as_fn_error "invalid package name: $ac_useropt" 1257 ac_useropt_orig=$ac_useropt 1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1259 case $ac_user_opts in 1260 *" 1261"with_$ac_useropt" 1262"*) ;; 1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1264 ac_unrecognized_sep=', ';; 1265 esac 1266 eval with_$ac_useropt=no ;; 1267 1268 --x) 1269 # Obsolete; use --with-x. 1270 with_x=yes ;; 1271 1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1273 | --x-incl | --x-inc | --x-in | --x-i) 1274 ac_prev=x_includes ;; 1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1277 x_includes=$ac_optarg ;; 1278 1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1281 ac_prev=x_libraries ;; 1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1284 x_libraries=$ac_optarg ;; 1285 1286 -*) as_fn_error "unrecognized option: \`$ac_option' 1287Try \`$0 --help' for more information." 1288 ;; 1289 1290 *=*) 1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1292 # Reject names that are not valid shell variable names. 1293 case $ac_envvar in #( 1294 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1295 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1296 esac 1297 eval $ac_envvar=\$ac_optarg 1298 export $ac_envvar ;; 1299 1300 *) 1301 # FIXME: should be removed in autoconf 3.0. 1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1306 ;; 1307 1308 esac 1309done 1310 1311if test -n "$ac_prev"; then 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1313 as_fn_error "missing argument to $ac_option" 1314fi 1315 1316if test -n "$ac_unrecognized_opts"; then 1317 case $enable_option_checking in 1318 no) ;; 1319 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1321 esac 1322fi 1323 1324# Check all directory arguments for consistency. 1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1326 datadir sysconfdir sharedstatedir localstatedir includedir \ 1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1328 libdir localedir mandir 1329do 1330 eval ac_val=\$$ac_var 1331 # Remove trailing slashes. 1332 case $ac_val in 1333 */ ) 1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1335 eval $ac_var=\$ac_val;; 1336 esac 1337 # Be sure to have absolute directory names. 1338 case $ac_val in 1339 [\\/$]* | ?:[\\/]* ) continue;; 1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1341 esac 1342 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1343done 1344 1345# There might be people who depend on the old broken behavior: `$host' 1346# used to hold the argument of --host etc. 1347# FIXME: To remove some day. 1348build=$build_alias 1349host=$host_alias 1350target=$target_alias 1351 1352# FIXME: To remove some day. 1353if test "x$host_alias" != x; then 1354 if test "x$build_alias" = x; then 1355 cross_compiling=maybe 1356 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1357 If a cross compiler is detected then cross compile mode will be used." >&2 1358 elif test "x$build_alias" != "x$host_alias"; then 1359 cross_compiling=yes 1360 fi 1361fi 1362 1363ac_tool_prefix= 1364test -n "$host_alias" && ac_tool_prefix=$host_alias- 1365 1366test "$silent" = yes && exec 6>/dev/null 1367 1368 1369ac_pwd=`pwd` && test -n "$ac_pwd" && 1370ac_ls_di=`ls -di .` && 1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1372 as_fn_error "working directory cannot be determined" 1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1374 as_fn_error "pwd does not report name of working directory" 1375 1376 1377# Find the source files, if location was not specified. 1378if test -z "$srcdir"; then 1379 ac_srcdir_defaulted=yes 1380 # Try the directory containing this script, then the parent directory. 1381 ac_confdir=`$as_dirname -- "$as_myself" || 1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1383 X"$as_myself" : 'X\(//\)[^/]' \| \ 1384 X"$as_myself" : 'X\(//\)$' \| \ 1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1386$as_echo X"$as_myself" | 1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)[^/].*/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\/\)$/{ 1396 s//\1/ 1397 q 1398 } 1399 /^X\(\/\).*/{ 1400 s//\1/ 1401 q 1402 } 1403 s/.*/./; q'` 1404 srcdir=$ac_confdir 1405 if test ! -r "$srcdir/$ac_unique_file"; then 1406 srcdir=.. 1407 fi 1408else 1409 ac_srcdir_defaulted=no 1410fi 1411if test ! -r "$srcdir/$ac_unique_file"; then 1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1413 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1414fi 1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1416ac_abs_confdir=`( 1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1418 pwd)` 1419# When building in place, set srcdir=. 1420if test "$ac_abs_confdir" = "$ac_pwd"; then 1421 srcdir=. 1422fi 1423# Remove unnecessary trailing slashes from srcdir. 1424# Double slashes in file names in object file debugging info 1425# mess up M-x gdb in Emacs. 1426case $srcdir in 1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1428esac 1429for ac_var in $ac_precious_vars; do 1430 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1431 eval ac_env_${ac_var}_value=\$${ac_var} 1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1433 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1434done 1435 1436# 1437# Report the --help message. 1438# 1439if test "$ac_init_help" = "long"; then 1440 # Omit some internal or obsolete options to make the list less imposing. 1441 # This message is too long to be a string in the A/UX 3.1 sh. 1442 cat <<_ACEOF 1443\`configure' configures wv 1.2.9 to adapt to many kinds of systems. 1444 1445Usage: $0 [OPTION]... [VAR=VALUE]... 1446 1447To assign environment variables (e.g., CC, CFLAGS...), specify them as 1448VAR=VALUE. See below for descriptions of some of the useful variables. 1449 1450Defaults for the options are specified in brackets. 1451 1452Configuration: 1453 -h, --help display this help and exit 1454 --help=short display options specific to this package 1455 --help=recursive display the short help of all the included packages 1456 -V, --version display version information and exit 1457 -q, --quiet, --silent do not print \`checking...' messages 1458 --cache-file=FILE cache test results in FILE [disabled] 1459 -C, --config-cache alias for \`--cache-file=config.cache' 1460 -n, --no-create do not create output files 1461 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1462 1463Installation directories: 1464 --prefix=PREFIX install architecture-independent files in PREFIX 1465 [$ac_default_prefix] 1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1467 [PREFIX] 1468 1469By default, \`make install' will install all the files in 1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1471an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1472for instance \`--prefix=\$HOME'. 1473 1474For better control, use the options below. 1475 1476Fine tuning of the installation directories: 1477 --bindir=DIR user executables [EPREFIX/bin] 1478 --sbindir=DIR system admin executables [EPREFIX/sbin] 1479 --libexecdir=DIR program executables [EPREFIX/libexec] 1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1483 --libdir=DIR object code libraries [EPREFIX/lib] 1484 --includedir=DIR C header files [PREFIX/include] 1485 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1488 --infodir=DIR info documentation [DATAROOTDIR/info] 1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1490 --mandir=DIR man documentation [DATAROOTDIR/man] 1491 --docdir=DIR documentation root [DATAROOTDIR/doc/wv] 1492 --htmldir=DIR html documentation [DOCDIR] 1493 --dvidir=DIR dvi documentation [DOCDIR] 1494 --pdfdir=DIR pdf documentation [DOCDIR] 1495 --psdir=DIR ps documentation [DOCDIR] 1496_ACEOF 1497 1498 cat <<\_ACEOF 1499 1500Program names: 1501 --program-prefix=PREFIX prepend PREFIX to installed program names 1502 --program-suffix=SUFFIX append SUFFIX to installed program names 1503 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1504 1505System types: 1506 --build=BUILD configure for building on BUILD [guessed] 1507 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1508_ACEOF 1509fi 1510 1511if test -n "$ac_init_help"; then 1512 case $ac_init_help in 1513 short | recursive ) echo "Configuration of wv 1.2.9:";; 1514 esac 1515 cat <<\_ACEOF 1516 1517Optional Features: 1518 --disable-option-checking ignore unrecognized --enable/--with options 1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1521 --disable-dependency-tracking speeds up one-time build 1522 --enable-dependency-tracking do not reject slow dependency extractors 1523 --enable-shared[=PKGS] build shared libraries [default=yes] 1524 --enable-static[=PKGS] build static libraries [default=yes] 1525 --enable-fast-install[=PKGS] 1526 optimize for fast installation [default=yes] 1527 --disable-libtool-lock avoid locking (might break parallel builds) 1528 1529Optional Packages: 1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1532 --with-pic try to use only PIC/non-PIC objects [default=use 1533 both] 1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1535 --with-zlib=DIR use libz in DIR 1536 --with-png=DIR use png library in DIR 1537 --with-libwmf=DIR use libwmf(2) in DIR 1538 1539Some influential environment variables: 1540 CC C compiler command 1541 CFLAGS C compiler flags 1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1543 nonstandard directory <lib dir> 1544 LIBS libraries to pass to the linker, e.g. -l<library> 1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1546 you have headers in a nonstandard directory <include dir> 1547 CPP C preprocessor 1548 PKG_CONFIG path to pkg-config utility 1549 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config 1550 DEPS_LIBS linker flags for DEPS, overriding pkg-config 1551 1552Use these variables to override the choices made by `configure' or to help 1553it to find libraries and programs with nonstandard names/locations. 1554 1555Report bugs to <wvware-devel@sourceforge.net>. 1556_ACEOF 1557ac_status=$? 1558fi 1559 1560if test "$ac_init_help" = "recursive"; then 1561 # If there are subdirs, report their specific --help. 1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1563 test -d "$ac_dir" || 1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1565 continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618wv configure 1.2.9 1619generated by GNU Autoconf 2.65 1620 1621Copyright (C) 2009 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624_ACEOF 1625 exit 1626fi 1627 1628## ------------------------ ## 1629## Autoconf initialization. ## 1630## ------------------------ ## 1631 1632# ac_fn_c_try_compile LINENO 1633# -------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_compile 1669 1670# ac_fn_c_try_cpp LINENO 1671# ---------------------- 1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_cpp () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 if { { ac_try="$ac_cpp conftest.$ac_ext" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } >/dev/null && { 1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_cpp 1706 1707# ac_fn_c_try_link LINENO 1708# ----------------------- 1709# Try to link conftest.$ac_ext, and return whether this succeeded. 1710ac_fn_c_try_link () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 rm -f conftest.$ac_objext conftest$ac_exeext 1714 if { { ac_try="$ac_link" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_link") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { 1730 test -z "$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 } && test -s conftest$ac_exeext && { 1733 test "$cross_compiling" = yes || 1734 $as_test_x conftest$ac_exeext 1735 }; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: failed program was:" >&5 1739sed 's/^/| /' conftest.$ac_ext >&5 1740 1741 ac_retval=1 1742fi 1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1745 # interfere with the next link command; also delete a directory that is 1746 # left behind by Apple's compiler. We do this before executing the actions. 1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1749 as_fn_set_status $ac_retval 1750 1751} # ac_fn_c_try_link 1752 1753# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1754# ------------------------------------------------------- 1755# Tests whether HEADER exists and can be compiled using the include files in 1756# INCLUDES, setting the cache variable VAR accordingly. 1757ac_fn_c_check_header_compile () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1761$as_echo_n "checking for $2... " >&6; } 1762if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1763 $as_echo_n "(cached) " >&6 1764else 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767$4 1768#include <$2> 1769_ACEOF 1770if ac_fn_c_try_compile "$LINENO"; then : 1771 eval "$3=yes" 1772else 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1776fi 1777eval ac_res=\$$3 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1779$as_echo "$ac_res" >&6; } 1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1781 1782} # ac_fn_c_check_header_compile 1783 1784# ac_fn_c_try_run LINENO 1785# ---------------------- 1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1787# that executables *can* be run. 1788ac_fn_c_try_run () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_link" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_link") 2>&5 1799 ac_status=$? 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1802 { { case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_try") 2>&5 1809 ac_status=$? 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; }; }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: program exited with status $ac_status" >&5 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=$ac_status 1819fi 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_run 1825 1826# ac_fn_c_check_func LINENO FUNC VAR 1827# ---------------------------------- 1828# Tests whether FUNC exists, setting the cache variable VAR accordingly 1829ac_fn_c_check_func () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1841#define $2 innocuous_$2 1842 1843/* System header to define __stub macros and hopefully few prototypes, 1844 which can conflict with char $2 (); below. 1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1846 <limits.h> exists even on freestanding compilers. */ 1847 1848#ifdef __STDC__ 1849# include <limits.h> 1850#else 1851# include <assert.h> 1852#endif 1853 1854#undef $2 1855 1856/* Override any GCC internal prototype to avoid an error. 1857 Use char because int might match the return type of a GCC 1858 builtin and then its argument prototype would still apply. */ 1859#ifdef __cplusplus 1860extern "C" 1861#endif 1862char $2 (); 1863/* The GNU C library defines this for functions which it implements 1864 to always fail with ENOSYS. Some functions are actually named 1865 something starting with __ and the normal name is an alias. */ 1866#if defined __stub_$2 || defined __stub___$2 1867choke me 1868#endif 1869 1870int 1871main () 1872{ 1873return $2 (); 1874 ; 1875 return 0; 1876} 1877_ACEOF 1878if ac_fn_c_try_link "$LINENO"; then : 1879 eval "$3=yes" 1880else 1881 eval "$3=no" 1882fi 1883rm -f core conftest.err conftest.$ac_objext \ 1884 conftest$ac_exeext conftest.$ac_ext 1885fi 1886eval ac_res=\$$3 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888$as_echo "$ac_res" >&6; } 1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1890 1891} # ac_fn_c_check_func 1892 1893# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1894# ------------------------------------------------------- 1895# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1896# the include files in INCLUDES and setting the cache variable VAR 1897# accordingly. 1898ac_fn_c_check_header_mongrel () 1899{ 1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1903$as_echo_n "checking for $2... " >&6; } 1904if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1905 $as_echo_n "(cached) " >&6 1906fi 1907eval ac_res=\$$3 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909$as_echo "$ac_res" >&6; } 1910else 1911 # Is the header compilable? 1912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1913$as_echo_n "checking $2 usability... " >&6; } 1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916$4 1917#include <$2> 1918_ACEOF 1919if ac_fn_c_try_compile "$LINENO"; then : 1920 ac_header_compiler=yes 1921else 1922 ac_header_compiler=no 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1926$as_echo "$ac_header_compiler" >&6; } 1927 1928# Is the header present? 1929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1930$as_echo_n "checking $2 presence... " >&6; } 1931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933#include <$2> 1934_ACEOF 1935if ac_fn_c_try_cpp "$LINENO"; then : 1936 ac_header_preproc=yes 1937else 1938 ac_header_preproc=no 1939fi 1940rm -f conftest.err conftest.$ac_ext 1941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1942$as_echo "$ac_header_preproc" >&6; } 1943 1944# So? What about this header? 1945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1946 yes:no: ) 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1948$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1950$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1951 ;; 1952 no:yes:* ) 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1954$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1956$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1958$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1960$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1962$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1963( cat <<\_ASBOX 1964## ------------------------------------------- ## 1965## Report this to wvware-devel@sourceforge.net ## 1966## ------------------------------------------- ## 1967_ASBOX 1968 ) | sed "s/^/$as_me: WARNING: /" >&2 1969 ;; 1970esac 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1972$as_echo_n "checking for $2... " >&6; } 1973if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1974 $as_echo_n "(cached) " >&6 1975else 1976 eval "$3=\$ac_header_compiler" 1977fi 1978eval ac_res=\$$3 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980$as_echo "$ac_res" >&6; } 1981fi 1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1983 1984} # ac_fn_c_check_header_mongrel 1985 1986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1987# -------------------------------------------- 1988# Tries to find the compile-time value of EXPR in a program that includes 1989# INCLUDES, setting VAR accordingly. Returns whether the value could be 1990# computed 1991ac_fn_c_compute_int () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 if test "$cross_compiling" = yes; then 1995 # Depending upon the size, compute the lo and hi bounds. 1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002static int test_array [1 - 2 * !(($2) >= 0)]; 2003test_array [0] = 0 2004 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 ac_lo=0 ac_mid=0 2011 while :; do 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2019test_array [0] = 0 2020 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025if ac_fn_c_try_compile "$LINENO"; then : 2026 ac_hi=$ac_mid; break 2027else 2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2029 if test $ac_lo -le $ac_mid; then 2030 ac_lo= ac_hi= 2031 break 2032 fi 2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036 done 2037else 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044static int test_array [1 - 2 * !(($2) < 0)]; 2045test_array [0] = 0 2046 2047 ; 2048 return 0; 2049} 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 ac_hi=-1 ac_mid=-1 2053 while :; do 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main () 2059{ 2060static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2061test_array [0] = 0 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 ac_lo=$ac_mid; break 2069else 2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2071 if test $ac_mid -le $ac_hi; then 2072 ac_lo= ac_hi= 2073 break 2074 fi 2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078 done 2079else 2080 ac_lo= ac_hi= 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085# Binary search between lo and hi bounds. 2086while test "x$ac_lo" != "x$ac_hi"; do 2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091int 2092main () 2093{ 2094static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2095test_array [0] = 0 2096 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101if ac_fn_c_try_compile "$LINENO"; then : 2102 ac_hi=$ac_mid 2103else 2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107done 2108case $ac_lo in #(( 2109?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2110'') ac_retval=1 ;; 2111esac 2112 else 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116static long int longval () { return $2; } 2117static unsigned long int ulongval () { return $2; } 2118#include <stdio.h> 2119#include <stdlib.h> 2120int 2121main () 2122{ 2123 2124 FILE *f = fopen ("conftest.val", "w"); 2125 if (! f) 2126 return 1; 2127 if (($2) < 0) 2128 { 2129 long int i = longval (); 2130 if (i != ($2)) 2131 return 1; 2132 fprintf (f, "%ld", i); 2133 } 2134 else 2135 { 2136 unsigned long int i = ulongval (); 2137 if (i != ($2)) 2138 return 1; 2139 fprintf (f, "%lu", i); 2140 } 2141 /* Do not output a trailing newline, as this causes \r\n confusion 2142 on some platforms. */ 2143 return ferror (f) || fclose (f) != 0; 2144 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_run "$LINENO"; then : 2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2151else 2152 ac_retval=1 2153fi 2154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2155 conftest.$ac_objext conftest.beam conftest.$ac_ext 2156rm -f conftest.val 2157 2158 fi 2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2160 as_fn_set_status $ac_retval 2161 2162} # ac_fn_c_compute_int 2163cat >config.log <<_ACEOF 2164This file contains any messages produced by compilers while 2165running configure, to aid debugging if configure makes a mistake. 2166 2167It was created by wv $as_me 1.2.9, which was 2168generated by GNU Autoconf 2.65. Invocation command line was 2169 2170 $ $0 $@ 2171 2172_ACEOF 2173exec 5>>config.log 2174{ 2175cat <<_ASUNAME 2176## --------- ## 2177## Platform. ## 2178## --------- ## 2179 2180hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2181uname -m = `(uname -m) 2>/dev/null || echo unknown` 2182uname -r = `(uname -r) 2>/dev/null || echo unknown` 2183uname -s = `(uname -s) 2>/dev/null || echo unknown` 2184uname -v = `(uname -v) 2>/dev/null || echo unknown` 2185 2186/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2187/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2188 2189/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2190/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2191/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2192/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2193/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2194/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2195/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2196 2197_ASUNAME 2198 2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2200for as_dir in $PATH 2201do 2202 IFS=$as_save_IFS 2203 test -z "$as_dir" && as_dir=. 2204 $as_echo "PATH: $as_dir" 2205 done 2206IFS=$as_save_IFS 2207 2208} >&5 2209 2210cat >&5 <<_ACEOF 2211 2212 2213## ----------- ## 2214## Core tests. ## 2215## ----------- ## 2216 2217_ACEOF 2218 2219 2220# Keep a trace of the command line. 2221# Strip out --no-create and --no-recursion so they do not pile up. 2222# Strip out --silent because we don't want to record it for future runs. 2223# Also quote any args containing shell meta-characters. 2224# Make two passes to allow for proper duplicate-argument suppression. 2225ac_configure_args= 2226ac_configure_args0= 2227ac_configure_args1= 2228ac_must_keep_next=false 2229for ac_pass in 1 2 2230do 2231 for ac_arg 2232 do 2233 case $ac_arg in 2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2236 | -silent | --silent | --silen | --sile | --sil) 2237 continue ;; 2238 *\'*) 2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2240 esac 2241 case $ac_pass in 2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2243 2) 2244 as_fn_append ac_configure_args1 " '$ac_arg'" 2245 if test $ac_must_keep_next = true; then 2246 ac_must_keep_next=false # Got value, back to normal. 2247 else 2248 case $ac_arg in 2249 *=* | --config-cache | -C | -disable-* | --disable-* \ 2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2252 | -with-* | --with-* | -without-* | --without-* | --x) 2253 case "$ac_configure_args0 " in 2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2255 esac 2256 ;; 2257 -* ) ac_must_keep_next=true ;; 2258 esac 2259 fi 2260 as_fn_append ac_configure_args " '$ac_arg'" 2261 ;; 2262 esac 2263 done 2264done 2265{ ac_configure_args0=; unset ac_configure_args0;} 2266{ ac_configure_args1=; unset ac_configure_args1;} 2267 2268# When interrupted or exit'd, cleanup temporary files, and complete 2269# config.log. We remove comments because anyway the quotes in there 2270# would cause problems or look ugly. 2271# WARNING: Use '\'' to represent an apostrophe within the trap. 2272# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2273trap 'exit_status=$? 2274 # Save into config.log some information that might help in debugging. 2275 { 2276 echo 2277 2278 cat <<\_ASBOX 2279## ---------------- ## 2280## Cache variables. ## 2281## ---------------- ## 2282_ASBOX 2283 echo 2284 # The following way of writing the cache mishandles newlines in values, 2285( 2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2287 eval ac_val=\$$ac_var 2288 case $ac_val in #( 2289 *${as_nl}*) 2290 case $ac_var in #( 2291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2293 esac 2294 case $ac_var in #( 2295 _ | IFS | as_nl) ;; #( 2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2297 *) { eval $ac_var=; unset $ac_var;} ;; 2298 esac ;; 2299 esac 2300 done 2301 (set) 2>&1 | 2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2303 *${as_nl}ac_space=\ *) 2304 sed -n \ 2305 "s/'\''/'\''\\\\'\'''\''/g; 2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2307 ;; #( 2308 *) 2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2310 ;; 2311 esac | 2312 sort 2313) 2314 echo 2315 2316 cat <<\_ASBOX 2317## ----------------- ## 2318## Output variables. ## 2319## ----------------- ## 2320_ASBOX 2321 echo 2322 for ac_var in $ac_subst_vars 2323 do 2324 eval ac_val=\$$ac_var 2325 case $ac_val in 2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2327 esac 2328 $as_echo "$ac_var='\''$ac_val'\''" 2329 done | sort 2330 echo 2331 2332 if test -n "$ac_subst_files"; then 2333 cat <<\_ASBOX 2334## ------------------- ## 2335## File substitutions. ## 2336## ------------------- ## 2337_ASBOX 2338 echo 2339 for ac_var in $ac_subst_files 2340 do 2341 eval ac_val=\$$ac_var 2342 case $ac_val in 2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2344 esac 2345 $as_echo "$ac_var='\''$ac_val'\''" 2346 done | sort 2347 echo 2348 fi 2349 2350 if test -s confdefs.h; then 2351 cat <<\_ASBOX 2352## ----------- ## 2353## confdefs.h. ## 2354## ----------- ## 2355_ASBOX 2356 echo 2357 cat confdefs.h 2358 echo 2359 fi 2360 test "$ac_signal" != 0 && 2361 $as_echo "$as_me: caught signal $ac_signal" 2362 $as_echo "$as_me: exit $exit_status" 2363 } >&5 2364 rm -f core *.core core.conftest.* && 2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2366 exit $exit_status 2367' 0 2368for ac_signal in 1 2 13 15; do 2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2370done 2371ac_signal=0 2372 2373# confdefs.h avoids OS command line length limits that DEFS can exceed. 2374rm -f -r conftest* confdefs.h 2375 2376$as_echo "/* confdefs.h */" > confdefs.h 2377 2378# Predefined preprocessor variables. 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE_NAME "$PACKAGE_NAME" 2382_ACEOF 2383 2384cat >>confdefs.h <<_ACEOF 2385#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2386_ACEOF 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_VERSION "$PACKAGE_VERSION" 2390_ACEOF 2391 2392cat >>confdefs.h <<_ACEOF 2393#define PACKAGE_STRING "$PACKAGE_STRING" 2394_ACEOF 2395 2396cat >>confdefs.h <<_ACEOF 2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2398_ACEOF 2399 2400cat >>confdefs.h <<_ACEOF 2401#define PACKAGE_URL "$PACKAGE_URL" 2402_ACEOF 2403 2404 2405# Let the site file select an alternate cache file if it wants to. 2406# Prefer an explicitly selected file to automatically selected ones. 2407ac_site_file1=NONE 2408ac_site_file2=NONE 2409if test -n "$CONFIG_SITE"; then 2410 ac_site_file1=$CONFIG_SITE 2411elif test "x$prefix" != xNONE; then 2412 ac_site_file1=$prefix/share/config.site 2413 ac_site_file2=$prefix/etc/config.site 2414else 2415 ac_site_file1=$ac_default_prefix/share/config.site 2416 ac_site_file2=$ac_default_prefix/etc/config.site 2417fi 2418for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2419do 2420 test "x$ac_site_file" = xNONE && continue 2421 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2423$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2424 sed 's/^/| /' "$ac_site_file" >&5 2425 . "$ac_site_file" 2426 fi 2427done 2428 2429if test -r "$cache_file"; then 2430 # Some versions of bash will fail to source /dev/null (special files 2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2434$as_echo "$as_me: loading cache $cache_file" >&6;} 2435 case $cache_file in 2436 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2437 *) . "./$cache_file";; 2438 esac 2439 fi 2440else 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2442$as_echo "$as_me: creating cache $cache_file" >&6;} 2443 >$cache_file 2444fi 2445 2446as_fn_append ac_header_list " stdlib.h" 2447as_fn_append ac_header_list " unistd.h" 2448as_fn_append ac_header_list " sys/param.h" 2449# Check that the precious variables saved in the cache have kept the same 2450# value. 2451ac_cache_corrupted=false 2452for ac_var in $ac_precious_vars; do 2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2454 eval ac_new_set=\$ac_env_${ac_var}_set 2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2456 eval ac_new_val=\$ac_env_${ac_var}_value 2457 case $ac_old_set,$ac_new_set in 2458 set,) 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2460$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,set) 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2464$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2465 ac_cache_corrupted=: ;; 2466 ,);; 2467 *) 2468 if test "x$ac_old_val" != "x$ac_new_val"; then 2469 # differences in whitespace do not lead to failure. 2470 ac_old_val_w=`echo x $ac_old_val` 2471 ac_new_val_w=`echo x $ac_new_val` 2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2474$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2475 ac_cache_corrupted=: 2476 else 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2478$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2479 eval $ac_var=\$ac_old_val 2480 fi 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2482$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2484$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2485 fi;; 2486 esac 2487 # Pass precious variables to config.status. 2488 if test "$ac_new_set" = set; then 2489 case $ac_new_val in 2490 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2491 *) ac_arg=$ac_var=$ac_new_val ;; 2492 esac 2493 case " $ac_configure_args " in 2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2496 esac 2497 fi 2498done 2499if $ac_cache_corrupted; then 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2503$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2504 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2505fi 2506## -------------------- ## 2507## Main body of script. ## 2508## -------------------- ## 2509 2510ac_ext=c 2511ac_cpp='$CPP $CPPFLAGS' 2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2514ac_compiler_gnu=$ac_cv_c_compiler_gnu 2515 2516 2517 2518# Making releases: 2519# WV_MICRO_VERSION += 1; 2520# WV_INTERFACE_AGE += 1; 2521# WV_BINARY_AGE += 1; 2522# if any functions have been added, set WV_INTERFACE_AGE to 0. 2523# if backwards compatibility has been broken, 2524# set WV_BINARY_AGE and WV_INTERFACE_AGE to 0. 2525# 2526WV_MAJOR_VERSION=1 2527WV_MINOR_VERSION=2 2528WV_MICRO_VERSION=9 2529WV_INTERFACE_AGE=5 2530WV_BINARY_AGE=5 2531WV_VERSION=$WV_MAJOR_VERSION.$WV_MINOR_VERSION.$WV_MICRO_VERSION 2532 2533 2534 2535ac_aux_dir= 2536for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2537 for ac_t in install-sh install.sh shtool; do 2538 if test -f "$ac_dir/$ac_t"; then 2539 ac_aux_dir=$ac_dir 2540 ac_install_sh="$ac_aux_dir/$ac_t -c" 2541 break 2 2542 fi 2543 done 2544done 2545if test -z "$ac_aux_dir"; then 2546 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2547fi 2548 2549# These three variables are undocumented and unsupported, 2550# and are intended to be withdrawn in a future Autoconf release. 2551# They can cause serious problems if a builder's source tree is in a directory 2552# whose full name contains unusual characters. 2553ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2554ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2555ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2556 2557 2558# Make sure we can run config.sub. 2559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2560 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2563$as_echo_n "checking build system type... " >&6; } 2564if test "${ac_cv_build+set}" = set; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 ac_build_alias=$build_alias 2568test "x$ac_build_alias" = x && 2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2570test "x$ac_build_alias" = x && 2571 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2574 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2577$as_echo "$ac_cv_build" >&6; } 2578case $ac_cv_build in 2579*-*-*) ;; 2580*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2581esac 2582build=$ac_cv_build 2583ac_save_IFS=$IFS; IFS='-' 2584set x $ac_cv_build 2585shift 2586build_cpu=$1 2587build_vendor=$2 2588shift; shift 2589# Remember, the first character of IFS is used to create $*, 2590# except with old shells: 2591build_os=$* 2592IFS=$ac_save_IFS 2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2594 2595 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2597$as_echo_n "checking host system type... " >&6; } 2598if test "${ac_cv_host+set}" = set; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test "x$host_alias" = x; then 2602 ac_cv_host=$ac_cv_build 2603else 2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2606fi 2607 2608fi 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2610$as_echo "$ac_cv_host" >&6; } 2611case $ac_cv_host in 2612*-*-*) ;; 2613*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2614esac 2615host=$ac_cv_host 2616ac_save_IFS=$IFS; IFS='-' 2617set x $ac_cv_host 2618shift 2619host_cpu=$1 2620host_vendor=$2 2621shift; shift 2622# Remember, the first character of IFS is used to create $*, 2623# except with old shells: 2624host_os=$* 2625IFS=$ac_save_IFS 2626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639# libtool versioning 2640LT_RELEASE=$WV_MAJOR_VERSION.$WV_MINOR_VERSION 2641LT_CURRENT=`expr $WV_MICRO_VERSION - $WV_INTERFACE_AGE` 2642LT_REVISION=$WV_INTERFACE_AGE 2643LT_AGE=`expr $WV_BINARY_AGE - $WV_INTERFACE_AGE` 2644 2645 2646 2647 2648 2649# For automake. 2650VERSION=$WV_VERSION 2651PACKAGE=wv 2652 2653am__api_version='1.11' 2654 2655# Find a good install program. We prefer a C program (faster), 2656# so one script is as good as another. But avoid the broken or 2657# incompatible versions: 2658# SysV /etc/install, /usr/sbin/install 2659# SunOS /usr/etc/install 2660# IRIX /sbin/install 2661# AIX /bin/install 2662# AmigaOS /C/install, which installs bootblocks on floppy discs 2663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2664# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2666# OS/2's system install, which has a completely different semantic 2667# ./install, which can be erroneously created by make from ./install.sh. 2668# Reject install programs that cannot install multiple files. 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2670$as_echo_n "checking for a BSD-compatible install... " >&6; } 2671if test -z "$INSTALL"; then 2672if test "${ac_cv_path_install+set}" = set; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 # Account for people who put trailing slashes in PATH elements. 2681case $as_dir/ in #(( 2682 ./ | .// | /[cC]/* | \ 2683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2685 /usr/ucb/* ) ;; 2686 *) 2687 # OSF1 and SCO ODT 3.0 have their own names for install. 2688 # Don't use installbsd from OSF since it installs stuff as root 2689 # by default. 2690 for ac_prog in ginstall scoinst install; do 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2693 if test $ac_prog = install && 2694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # AIX install. It has an incompatible calling convention. 2696 : 2697 elif test $ac_prog = install && 2698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # program-specific install script used by HP pwplus--don't use. 2700 : 2701 else 2702 rm -rf conftest.one conftest.two conftest.dir 2703 echo one > conftest.one 2704 echo two > conftest.two 2705 mkdir conftest.dir 2706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2707 test -s conftest.one && test -s conftest.two && 2708 test -s conftest.dir/conftest.one && 2709 test -s conftest.dir/conftest.two 2710 then 2711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2712 break 3 2713 fi 2714 fi 2715 fi 2716 done 2717 done 2718 ;; 2719esac 2720 2721 done 2722IFS=$as_save_IFS 2723 2724rm -rf conftest.one conftest.two conftest.dir 2725 2726fi 2727 if test "${ac_cv_path_install+set}" = set; then 2728 INSTALL=$ac_cv_path_install 2729 else 2730 # As a last resort, use the slow shell script. Don't cache a 2731 # value for INSTALL within a source directory, because that will 2732 # break other packages using the cache if that directory is 2733 # removed, or if the value is a relative name. 2734 INSTALL=$ac_install_sh 2735 fi 2736fi 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2738$as_echo "$INSTALL" >&6; } 2739 2740# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2741# It thinks the first close brace ends the variable substitution. 2742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2743 2744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2745 2746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2747 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2749$as_echo_n "checking whether build environment is sane... " >&6; } 2750# Just in case 2751sleep 1 2752echo timestamp > conftest.file 2753# Reject unsafe characters in $srcdir or the absolute working directory 2754# name. Accept space and tab only in the latter. 2755am_lf=' 2756' 2757case `pwd` in 2758 *[\\\"\#\$\&\'\`$am_lf]*) 2759 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2760esac 2761case $srcdir in 2762 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2763 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2764esac 2765 2766# Do `set' in a subshell so we don't clobber the current shell's 2767# arguments. Must try -L first in case configure is actually a 2768# symlink; some systems play weird games with the mod time of symlinks 2769# (eg FreeBSD returns the mod time of the symlink's containing 2770# directory). 2771if ( 2772 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2773 if test "$*" = "X"; then 2774 # -L didn't work. 2775 set X `ls -t "$srcdir/configure" conftest.file` 2776 fi 2777 rm -f conftest.file 2778 if test "$*" != "X $srcdir/configure conftest.file" \ 2779 && test "$*" != "X conftest.file $srcdir/configure"; then 2780 2781 # If neither matched, then we have a broken ls. This can happen 2782 # if, for instance, CONFIG_SHELL is bash and it inherits a 2783 # broken ls alias from the environment. This has actually 2784 # happened. Such a system could not be considered "sane". 2785 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2786alias in your environment" "$LINENO" 5 2787 fi 2788 2789 test "$2" = conftest.file 2790 ) 2791then 2792 # Ok. 2793 : 2794else 2795 as_fn_error "newly created file is older than distributed files! 2796Check your system clock" "$LINENO" 5 2797fi 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2799$as_echo "yes" >&6; } 2800test "$program_prefix" != NONE && 2801 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2802# Use a double $ so make ignores it. 2803test "$program_suffix" != NONE && 2804 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2805# Double any \ or $. 2806# By default was `s,x,x', remove it if useless. 2807ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2808program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2809 2810# expand $ac_aux_dir to an absolute path 2811am_aux_dir=`cd $ac_aux_dir && pwd` 2812 2813if test x"${MISSING+set}" != xset; then 2814 case $am_aux_dir in 2815 *\ * | *\ *) 2816 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2817 *) 2818 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2819 esac 2820fi 2821# Use eval to expand $SHELL 2822if eval "$MISSING --run true"; then 2823 am_missing_run="$MISSING --run " 2824else 2825 am_missing_run= 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2827$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2828fi 2829 2830if test x"${install_sh}" != xset; then 2831 case $am_aux_dir in 2832 *\ * | *\ *) 2833 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2834 *) 2835 install_sh="\${SHELL} $am_aux_dir/install-sh" 2836 esac 2837fi 2838 2839# Installed binaries are usually stripped using `strip' when the user 2840# run `make install-strip'. However `strip' might not be the right 2841# tool to use in cross-compilation environments, therefore Automake 2842# will honor the `STRIP' environment variable to overrule this program. 2843if test "$cross_compiling" != no; then 2844 if test -n "$ac_tool_prefix"; then 2845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2846set dummy ${ac_tool_prefix}strip; ac_word=$2 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848$as_echo_n "checking for $ac_word... " >&6; } 2849if test "${ac_cv_prog_STRIP+set}" = set; then : 2850 $as_echo_n "(cached) " >&6 2851else 2852 if test -n "$STRIP"; then 2853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2854else 2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH 2857do 2858 IFS=$as_save_IFS 2859 test -z "$as_dir" && as_dir=. 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2862 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2864 break 2 2865 fi 2866done 2867 done 2868IFS=$as_save_IFS 2869 2870fi 2871fi 2872STRIP=$ac_cv_prog_STRIP 2873if test -n "$STRIP"; then 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2875$as_echo "$STRIP" >&6; } 2876else 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878$as_echo "no" >&6; } 2879fi 2880 2881 2882fi 2883if test -z "$ac_cv_prog_STRIP"; then 2884 ac_ct_STRIP=$STRIP 2885 # Extract the first word of "strip", so it can be a program name with args. 2886set dummy strip; ac_word=$2 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888$as_echo_n "checking for $ac_word... " >&6; } 2889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 if test -n "$ac_ct_STRIP"; then 2893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2902 ac_cv_prog_ac_ct_STRIP="strip" 2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911fi 2912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2913if test -n "$ac_ct_STRIP"; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2915$as_echo "$ac_ct_STRIP" >&6; } 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918$as_echo "no" >&6; } 2919fi 2920 2921 if test "x$ac_ct_STRIP" = x; then 2922 STRIP=":" 2923 else 2924 case $cross_compiling:$ac_tool_warned in 2925yes:) 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2928ac_tool_warned=yes ;; 2929esac 2930 STRIP=$ac_ct_STRIP 2931 fi 2932else 2933 STRIP="$ac_cv_prog_STRIP" 2934fi 2935 2936fi 2937INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2938 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2940$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2941if test -z "$MKDIR_P"; then 2942 if test "${ac_cv_path_mkdir+set}" = set; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_prog in mkdir gmkdir; do 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2953 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2954 'mkdir (GNU coreutils) '* | \ 2955 'mkdir (coreutils) '* | \ 2956 'mkdir (fileutils) '4.1*) 2957 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2958 break 3;; 2959 esac 2960 done 2961 done 2962 done 2963IFS=$as_save_IFS 2964 2965fi 2966 2967 test -d ./--version && rmdir ./--version 2968 if test "${ac_cv_path_mkdir+set}" = set; then 2969 MKDIR_P="$ac_cv_path_mkdir -p" 2970 else 2971 # As a last resort, use the slow shell script. Don't cache a 2972 # value for MKDIR_P within a source directory, because that will 2973 # break other packages using the cache if that directory is 2974 # removed, or if the value is a relative name. 2975 MKDIR_P="$ac_install_sh -d" 2976 fi 2977fi 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2979$as_echo "$MKDIR_P" >&6; } 2980 2981mkdir_p="$MKDIR_P" 2982case $mkdir_p in 2983 [\\/$]* | ?:[\\/]*) ;; 2984 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2985esac 2986 2987for ac_prog in gawk mawk nawk awk 2988do 2989 # Extract the first word of "$ac_prog", so it can be a program name with args. 2990set dummy $ac_prog; ac_word=$2 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if test "${ac_cv_prog_AWK+set}" = set; then : 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$AWK"; then 2997 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_AWK="$ac_prog" 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011 done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016AWK=$ac_cv_prog_AWK 3017if test -n "$AWK"; then 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3019$as_echo "$AWK" >&6; } 3020else 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026 test -n "$AWK" && break 3027done 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3030$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3031set x ${MAKE-make} 3032ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3033if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 cat >conftest.make <<\_ACEOF 3037SHELL = /bin/sh 3038all: 3039 @echo '@@@%%%=$(MAKE)=@@@%%%' 3040_ACEOF 3041# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3042case `${MAKE-make} -f conftest.make 2>/dev/null` in 3043 *@@@%%%=?*=@@@%%%*) 3044 eval ac_cv_prog_make_${ac_make}_set=yes;; 3045 *) 3046 eval ac_cv_prog_make_${ac_make}_set=no;; 3047esac 3048rm -f conftest.make 3049fi 3050if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3052$as_echo "yes" >&6; } 3053 SET_MAKE= 3054else 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056$as_echo "no" >&6; } 3057 SET_MAKE="MAKE=${MAKE-make}" 3058fi 3059 3060rm -rf .tst 2>/dev/null 3061mkdir .tst 2>/dev/null 3062if test -d .tst; then 3063 am__leading_dot=. 3064else 3065 am__leading_dot=_ 3066fi 3067rmdir .tst 2>/dev/null 3068 3069if test "`cd $srcdir && pwd`" != "`pwd`"; then 3070 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3071 # is not polluted with repeated "-I." 3072 am__isrc=' -I$(srcdir)' 3073 # test to see if srcdir already configured 3074 if test -f $srcdir/config.status; then 3075 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3076 fi 3077fi 3078 3079# test whether we have cygpath 3080if test -z "$CYGPATH_W"; then 3081 if (cygpath --version) >/dev/null 2>/dev/null; then 3082 CYGPATH_W='cygpath -w' 3083 else 3084 CYGPATH_W=echo 3085 fi 3086fi 3087 3088 3089# Define the identity of the package. 3090 PACKAGE=$PACKAGE 3091 VERSION=$VERSION 3092 3093 3094cat >>confdefs.h <<_ACEOF 3095#define PACKAGE "$PACKAGE" 3096_ACEOF 3097 3098 3099cat >>confdefs.h <<_ACEOF 3100#define VERSION "$VERSION" 3101_ACEOF 3102 3103# Some tools Automake needs. 3104 3105ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3106 3107 3108AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3109 3110 3111AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3112 3113 3114AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3115 3116 3117MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3118 3119# We need awk for the "check" target. The system "awk" is bad on 3120# some platforms. 3121# Always define AMTAR for backward compatibility. 3122 3123AMTAR=${AMTAR-"${am_missing_run}tar"} 3124 3125am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3126 3127 3128 3129 3130 3131 3132# Specify a configuration file 3133ac_config_headers="$ac_config_headers config.h" 3134 3135 3136 3137 3138 3139ac_ext=c 3140ac_cpp='$CPP $CPPFLAGS' 3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3143ac_compiler_gnu=$ac_cv_c_compiler_gnu 3144if test -n "$ac_tool_prefix"; then 3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3146set dummy ${ac_tool_prefix}gcc; ac_word=$2 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3148$as_echo_n "checking for $ac_word... " >&6; } 3149if test "${ac_cv_prog_CC+set}" = set; then : 3150 $as_echo_n "(cached) " >&6 3151else 3152 if test -n "$CC"; then 3153 ac_cv_prog_CC="$CC" # Let the user override the test. 3154else 3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156for as_dir in $PATH 3157do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3162 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166done 3167 done 3168IFS=$as_save_IFS 3169 3170fi 3171fi 3172CC=$ac_cv_prog_CC 3173if test -n "$CC"; then 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3175$as_echo "$CC" >&6; } 3176else 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3178$as_echo "no" >&6; } 3179fi 3180 3181 3182fi 3183if test -z "$ac_cv_prog_CC"; then 3184 ac_ct_CC=$CC 3185 # Extract the first word of "gcc", so it can be a program name with args. 3186set dummy gcc; ac_word=$2 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188$as_echo_n "checking for $ac_word... " >&6; } 3189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3190 $as_echo_n "(cached) " >&6 3191else 3192 if test -n "$ac_ct_CC"; then 3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3194else 3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3196for as_dir in $PATH 3197do 3198 IFS=$as_save_IFS 3199 test -z "$as_dir" && as_dir=. 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3202 ac_cv_prog_ac_ct_CC="gcc" 3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206done 3207 done 3208IFS=$as_save_IFS 3209 3210fi 3211fi 3212ac_ct_CC=$ac_cv_prog_ac_ct_CC 3213if test -n "$ac_ct_CC"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3215$as_echo "$ac_ct_CC" >&6; } 3216else 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218$as_echo "no" >&6; } 3219fi 3220 3221 if test "x$ac_ct_CC" = x; then 3222 CC="" 3223 else 3224 case $cross_compiling:$ac_tool_warned in 3225yes:) 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3228ac_tool_warned=yes ;; 3229esac 3230 CC=$ac_ct_CC 3231 fi 3232else 3233 CC="$ac_cv_prog_CC" 3234fi 3235 3236if test -z "$CC"; then 3237 if test -n "$ac_tool_prefix"; then 3238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3239set dummy ${ac_tool_prefix}cc; ac_word=$2 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241$as_echo_n "checking for $ac_word... " >&6; } 3242if test "${ac_cv_prog_CC+set}" = set; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test -n "$CC"; then 3246 ac_cv_prog_CC="$CC" # Let the user override the test. 3247else 3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3255 ac_cv_prog_CC="${ac_tool_prefix}cc" 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259done 3260 done 3261IFS=$as_save_IFS 3262 3263fi 3264fi 3265CC=$ac_cv_prog_CC 3266if test -n "$CC"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268$as_echo "$CC" >&6; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272fi 3273 3274 3275 fi 3276fi 3277if test -z "$CC"; then 3278 # Extract the first word of "cc", so it can be a program name with args. 3279set dummy cc; ac_word=$2 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281$as_echo_n "checking for $ac_word... " >&6; } 3282if test "${ac_cv_prog_CC+set}" = set; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 if test -n "$CC"; then 3286 ac_cv_prog_CC="$CC" # Let the user override the test. 3287else 3288 ac_prog_rejected=no 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3297 ac_prog_rejected=yes 3298 continue 3299 fi 3300 ac_cv_prog_CC="cc" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308if test $ac_prog_rejected = yes; then 3309 # We found a bogon in the path, so make sure we never use it. 3310 set dummy $ac_cv_prog_CC 3311 shift 3312 if test $# != 0; then 3313 # We chose a different compiler from the bogus one. 3314 # However, it has the same basename, so the bogon will be chosen 3315 # first if we set CC to just the basename; use the full file name. 3316 shift 3317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3318 fi 3319fi 3320fi 3321fi 3322CC=$ac_cv_prog_CC 3323if test -n "$CC"; then 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3325$as_echo "$CC" >&6; } 3326else 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328$as_echo "no" >&6; } 3329fi 3330 3331 3332fi 3333if test -z "$CC"; then 3334 if test -n "$ac_tool_prefix"; then 3335 for ac_prog in cl.exe 3336 do 3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3338set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340$as_echo_n "checking for $ac_word... " >&6; } 3341if test "${ac_cv_prog_CC+set}" = set; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test -n "$CC"; then 3345 ac_cv_prog_CC="$CC" # Let the user override the test. 3346else 3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348for as_dir in $PATH 3349do 3350 IFS=$as_save_IFS 3351 test -z "$as_dir" && as_dir=. 3352 for ac_exec_ext in '' $ac_executable_extensions; do 3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358done 3359 done 3360IFS=$as_save_IFS 3361 3362fi 3363fi 3364CC=$ac_cv_prog_CC 3365if test -n "$CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3367$as_echo "$CC" >&6; } 3368else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371fi 3372 3373 3374 test -n "$CC" && break 3375 done 3376fi 3377if test -z "$CC"; then 3378 ac_ct_CC=$CC 3379 for ac_prog in cl.exe 3380do 3381 # Extract the first word of "$ac_prog", so it can be a program name with args. 3382set dummy $ac_prog; ac_word=$2 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384$as_echo_n "checking for $ac_word... " >&6; } 3385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3386 $as_echo_n "(cached) " >&6 3387else 3388 if test -n "$ac_ct_CC"; then 3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3390else 3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392for as_dir in $PATH 3393do 3394 IFS=$as_save_IFS 3395 test -z "$as_dir" && as_dir=. 3396 for ac_exec_ext in '' $ac_executable_extensions; do 3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3398 ac_cv_prog_ac_ct_CC="$ac_prog" 3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402done 3403 done 3404IFS=$as_save_IFS 3405 3406fi 3407fi 3408ac_ct_CC=$ac_cv_prog_ac_ct_CC 3409if test -n "$ac_ct_CC"; then 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3411$as_echo "$ac_ct_CC" >&6; } 3412else 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3414$as_echo "no" >&6; } 3415fi 3416 3417 3418 test -n "$ac_ct_CC" && break 3419done 3420 3421 if test "x$ac_ct_CC" = x; then 3422 CC="" 3423 else 3424 case $cross_compiling:$ac_tool_warned in 3425yes:) 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3428ac_tool_warned=yes ;; 3429esac 3430 CC=$ac_ct_CC 3431 fi 3432fi 3433 3434fi 3435 3436 3437test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3439as_fn_error "no acceptable C compiler found in \$PATH 3440See \`config.log' for more details." "$LINENO" 5; } 3441 3442# Provide some information about the compiler. 3443$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3444set X $ac_compile 3445ac_compiler=$2 3446for ac_option in --version -v -V -qversion; do 3447 { { ac_try="$ac_compiler $ac_option >&5" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453$as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3455 ac_status=$? 3456 if test -s conftest.err; then 3457 sed '10a\ 3458... rest of stderr output deleted ... 3459 10q' conftest.err >conftest.er1 3460 cat conftest.er1 >&5 3461 fi 3462 rm -f conftest.er1 conftest.err 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; } 3465done 3466 3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468/* end confdefs.h. */ 3469 3470int 3471main () 3472{ 3473 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478ac_clean_files_save=$ac_clean_files 3479ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3480# Try to create an executable without -o first, disregard a.out. 3481# It will help us diagnose broken compilers, and finding out an intuition 3482# of exeext. 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3484$as_echo_n "checking whether the C compiler works... " >&6; } 3485ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3486 3487# The possible output files: 3488ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3489 3490ac_rmfiles= 3491for ac_file in $ac_files 3492do 3493 case $ac_file in 3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3495 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3496 esac 3497done 3498rm -f $ac_rmfiles 3499 3500if { { ac_try="$ac_link_default" 3501case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504esac 3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506$as_echo "$ac_try_echo"; } >&5 3507 (eval "$ac_link_default") 2>&5 3508 ac_status=$? 3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; }; then : 3511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3512# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3513# in a Makefile. We should not override ac_cv_exeext if it was cached, 3514# so that the user can short-circuit this test for compilers unknown to 3515# Autoconf. 3516for ac_file in $ac_files '' 3517do 3518 test -f "$ac_file" || continue 3519 case $ac_file in 3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3521 ;; 3522 [ab].out ) 3523 # We found the default executable, but exeext='' is most 3524 # certainly right. 3525 break;; 3526 *.* ) 3527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3528 then :; else 3529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3530 fi 3531 # We set ac_cv_exeext here because the later test for it is not 3532 # safe: cross compilers may not add the suffix if given an `-o' 3533 # argument, so we may need to know it at that point already. 3534 # Even if this section looks crufty: it has the advantage of 3535 # actually working. 3536 break;; 3537 * ) 3538 break;; 3539 esac 3540done 3541test "$ac_cv_exeext" = no && ac_cv_exeext= 3542 3543else 3544 ac_file='' 3545fi 3546if test -z "$ac_file"; then : 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548$as_echo "no" >&6; } 3549$as_echo "$as_me: failed program was:" >&5 3550sed 's/^/| /' conftest.$ac_ext >&5 3551 3552{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3554{ as_fn_set_status 77 3555as_fn_error "C compiler cannot create executables 3556See \`config.log' for more details." "$LINENO" 5; }; } 3557else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3559$as_echo "yes" >&6; } 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3562$as_echo_n "checking for C compiler default output file name... " >&6; } 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3564$as_echo "$ac_file" >&6; } 3565ac_exeext=$ac_cv_exeext 3566 3567rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3568ac_clean_files=$ac_clean_files_save 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3570$as_echo_n "checking for suffix of executables... " >&6; } 3571if { { ac_try="$ac_link" 3572case "(($ac_try" in 3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *) ac_try_echo=$ac_try;; 3575esac 3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3577$as_echo "$ac_try_echo"; } >&5 3578 (eval "$ac_link") 2>&5 3579 ac_status=$? 3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3581 test $ac_status = 0; }; then : 3582 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3583# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3584# work properly (i.e., refer to `conftest.exe'), while it won't with 3585# `rm'. 3586for ac_file in conftest.exe conftest conftest.*; do 3587 test -f "$ac_file" || continue 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3591 break;; 3592 * ) break;; 3593 esac 3594done 3595else 3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598as_fn_error "cannot compute suffix of executables: cannot compile and link 3599See \`config.log' for more details." "$LINENO" 5; } 3600fi 3601rm -f conftest conftest$ac_cv_exeext 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3603$as_echo "$ac_cv_exeext" >&6; } 3604 3605rm -f conftest.$ac_ext 3606EXEEXT=$ac_cv_exeext 3607ac_exeext=$EXEEXT 3608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610#include <stdio.h> 3611int 3612main () 3613{ 3614FILE *f = fopen ("conftest.out", "w"); 3615 return ferror (f) || fclose (f) != 0; 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621ac_clean_files="$ac_clean_files conftest.out" 3622# Check that the compiler produces executables we can run. If not, either 3623# the compiler is broken, or we cross compile. 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3625$as_echo_n "checking whether we are cross compiling... " >&6; } 3626if test "$cross_compiling" != yes; then 3627 { { ac_try="$ac_link" 3628case "(($ac_try" in 3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3630 *) ac_try_echo=$ac_try;; 3631esac 3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3633$as_echo "$ac_try_echo"; } >&5 3634 (eval "$ac_link") 2>&5 3635 ac_status=$? 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; } 3638 if { ac_try='./conftest$ac_cv_exeext' 3639 { { case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3644$as_echo "$ac_try_echo"; } >&5 3645 (eval "$ac_try") 2>&5 3646 ac_status=$? 3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3648 test $ac_status = 0; }; }; then 3649 cross_compiling=no 3650 else 3651 if test "$cross_compiling" = maybe; then 3652 cross_compiling=yes 3653 else 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656as_fn_error "cannot run C compiled programs. 3657If you meant to cross compile, use \`--host'. 3658See \`config.log' for more details." "$LINENO" 5; } 3659 fi 3660 fi 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3663$as_echo "$cross_compiling" >&6; } 3664 3665rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3666ac_clean_files=$ac_clean_files_save 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3668$as_echo_n "checking for suffix of object files... " >&6; } 3669if test "${ac_cv_objext+set}" = set; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683rm -f conftest.o conftest.obj 3684if { { ac_try="$ac_compile" 3685case "(($ac_try" in 3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3687 *) ac_try_echo=$ac_try;; 3688esac 3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3690$as_echo "$ac_try_echo"; } >&5 3691 (eval "$ac_compile") 2>&5 3692 ac_status=$? 3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3694 test $ac_status = 0; }; then : 3695 for ac_file in conftest.o conftest.obj conftest.*; do 3696 test -f "$ac_file" || continue; 3697 case $ac_file in 3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3700 break;; 3701 esac 3702done 3703else 3704 $as_echo "$as_me: failed program was:" >&5 3705sed 's/^/| /' conftest.$ac_ext >&5 3706 3707{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error "cannot compute suffix of object files: cannot compile 3710See \`config.log' for more details." "$LINENO" 5; } 3711fi 3712rm -f conftest.$ac_cv_objext conftest.$ac_ext 3713fi 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3715$as_echo "$ac_cv_objext" >&6; } 3716OBJEXT=$ac_cv_objext 3717ac_objext=$OBJEXT 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3719$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3720if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main () 3728{ 3729#ifndef __GNUC__ 3730 choke me 3731#endif 3732 3733 ; 3734 return 0; 3735} 3736_ACEOF 3737if ac_fn_c_try_compile "$LINENO"; then : 3738 ac_compiler_gnu=yes 3739else 3740 ac_compiler_gnu=no 3741fi 3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3743ac_cv_c_compiler_gnu=$ac_compiler_gnu 3744 3745fi 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3747$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3748if test $ac_compiler_gnu = yes; then 3749 GCC=yes 3750else 3751 GCC= 3752fi 3753ac_test_CFLAGS=${CFLAGS+set} 3754ac_save_CFLAGS=$CFLAGS 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3756$as_echo_n "checking whether $CC accepts -g... " >&6; } 3757if test "${ac_cv_prog_cc_g+set}" = set; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 ac_save_c_werror_flag=$ac_c_werror_flag 3761 ac_c_werror_flag=yes 3762 ac_cv_prog_cc_g=no 3763 CFLAGS="-g" 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766 3767int 3768main () 3769{ 3770 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775if ac_fn_c_try_compile "$LINENO"; then : 3776 ac_cv_prog_cc_g=yes 3777else 3778 CFLAGS="" 3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO"; then : 3791 3792else 3793 ac_c_werror_flag=$ac_save_c_werror_flag 3794 CFLAGS="-g" 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797 3798int 3799main () 3800{ 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806if ac_fn_c_try_compile "$LINENO"; then : 3807 ac_cv_prog_cc_g=yes 3808fi 3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810fi 3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3812fi 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3814 ac_c_werror_flag=$ac_save_c_werror_flag 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3817$as_echo "$ac_cv_prog_cc_g" >&6; } 3818if test "$ac_test_CFLAGS" = set; then 3819 CFLAGS=$ac_save_CFLAGS 3820elif test $ac_cv_prog_cc_g = yes; then 3821 if test "$GCC" = yes; then 3822 CFLAGS="-g -O2" 3823 else 3824 CFLAGS="-g" 3825 fi 3826else 3827 if test "$GCC" = yes; then 3828 CFLAGS="-O2" 3829 else 3830 CFLAGS= 3831 fi 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3835if test "${ac_cv_prog_cc_c89+set}" = set; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 ac_cv_prog_cc_c89=no 3839ac_save_CC=$CC 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#include <stdarg.h> 3843#include <stdio.h> 3844#include <sys/types.h> 3845#include <sys/stat.h> 3846/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3847struct buf { int x; }; 3848FILE * (*rcsopen) (struct buf *, struct stat *, int); 3849static char *e (p, i) 3850 char **p; 3851 int i; 3852{ 3853 return p[i]; 3854} 3855static char *f (char * (*g) (char **, int), char **p, ...) 3856{ 3857 char *s; 3858 va_list v; 3859 va_start (v,p); 3860 s = g (p, va_arg (v,int)); 3861 va_end (v); 3862 return s; 3863} 3864 3865/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3866 function prototypes and stuff, but not '\xHH' hex character constants. 3867 These don't provoke an error unfortunately, instead are silently treated 3868 as 'x'. The following induces an error, until -std is added to get 3869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3870 array size at least. It's necessary to write '\x00'==0 to get something 3871 that's true only with -std. */ 3872int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3873 3874/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3875 inside strings and character constants. */ 3876#define FOO(x) 'x' 3877int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3878 3879int test (int i, double x); 3880struct s1 {int (*f) (int a);}; 3881struct s2 {int (*f) (double a);}; 3882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3883int argc; 3884char **argv; 3885int 3886main () 3887{ 3888return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3895do 3896 CC="$ac_save_CC $ac_arg" 3897 if ac_fn_c_try_compile "$LINENO"; then : 3898 ac_cv_prog_cc_c89=$ac_arg 3899fi 3900rm -f core conftest.err conftest.$ac_objext 3901 test "x$ac_cv_prog_cc_c89" != "xno" && break 3902done 3903rm -f conftest.$ac_ext 3904CC=$ac_save_CC 3905 3906fi 3907# AC_CACHE_VAL 3908case "x$ac_cv_prog_cc_c89" in 3909 x) 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3911$as_echo "none needed" >&6; } ;; 3912 xno) 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3914$as_echo "unsupported" >&6; } ;; 3915 *) 3916 CC="$CC $ac_cv_prog_cc_c89" 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3918$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3919esac 3920if test "x$ac_cv_prog_cc_c89" != xno; then : 3921 3922fi 3923 3924ac_ext=c 3925ac_cpp='$CPP $CPPFLAGS' 3926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3928ac_compiler_gnu=$ac_cv_c_compiler_gnu 3929DEPDIR="${am__leading_dot}deps" 3930 3931ac_config_commands="$ac_config_commands depfiles" 3932 3933 3934am_make=${MAKE-make} 3935cat > confinc << 'END' 3936am__doit: 3937 @echo this is the am__doit target 3938.PHONY: am__doit 3939END 3940# If we don't find an include directive, just comment out the code. 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3942$as_echo_n "checking for style of include used by $am_make... " >&6; } 3943am__include="#" 3944am__quote= 3945_am_result=none 3946# First try GNU make style include. 3947echo "include confinc" > confmf 3948# Ignore all kinds of additional output from `make'. 3949case `$am_make -s -f confmf 2> /dev/null` in #( 3950*the\ am__doit\ target*) 3951 am__include=include 3952 am__quote= 3953 _am_result=GNU 3954 ;; 3955esac 3956# Now try BSD make style include. 3957if test "$am__include" = "#"; then 3958 echo '.include "confinc"' > confmf 3959 case `$am_make -s -f confmf 2> /dev/null` in #( 3960 *the\ am__doit\ target*) 3961 am__include=.include 3962 am__quote="\"" 3963 _am_result=BSD 3964 ;; 3965 esac 3966fi 3967 3968 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3970$as_echo "$_am_result" >&6; } 3971rm -f confinc confmf 3972 3973# Check whether --enable-dependency-tracking was given. 3974if test "${enable_dependency_tracking+set}" = set; then : 3975 enableval=$enable_dependency_tracking; 3976fi 3977 3978if test "x$enable_dependency_tracking" != xno; then 3979 am_depcomp="$ac_aux_dir/depcomp" 3980 AMDEPBACKSLASH='\' 3981fi 3982 if test "x$enable_dependency_tracking" != xno; then 3983 AMDEP_TRUE= 3984 AMDEP_FALSE='#' 3985else 3986 AMDEP_TRUE='#' 3987 AMDEP_FALSE= 3988fi 3989 3990 3991 3992depcc="$CC" am_compiler_list= 3993 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3995$as_echo_n "checking dependency style of $depcc... " >&6; } 3996if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3997 $as_echo_n "(cached) " >&6 3998else 3999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4000 # We make a subdir and do the tests there. Otherwise we can end up 4001 # making bogus files that we don't know about and never remove. For 4002 # instance it was reported that on HP-UX the gcc test will end up 4003 # making a dummy file named `D' -- because `-MD' means `put the output 4004 # in D'. 4005 mkdir conftest.dir 4006 # Copy depcomp to subdir because otherwise we won't find it if we're 4007 # using a relative directory. 4008 cp "$am_depcomp" conftest.dir 4009 cd conftest.dir 4010 # We will build objects and dependencies in a subdirectory because 4011 # it helps to detect inapplicable dependency modes. For instance 4012 # both Tru64's cc and ICC support -MD to output dependencies as a 4013 # side effect of compilation, but ICC will put the dependencies in 4014 # the current directory while Tru64 will put them in the object 4015 # directory. 4016 mkdir sub 4017 4018 am_cv_CC_dependencies_compiler_type=none 4019 if test "$am_compiler_list" = ""; then 4020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4021 fi 4022 am__universal=false 4023 case " $depcc " in #( 4024 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4025 esac 4026 4027 for depmode in $am_compiler_list; do 4028 # Setup a source with many dependencies, because some compilers 4029 # like to wrap large dependency lists on column 80 (with \), and 4030 # we should not choose a depcomp mode which is confused by this. 4031 # 4032 # We need to recreate these files for each test, as the compiler may 4033 # overwrite some of them when testing with obscure command lines. 4034 # This happens at least with the AIX C compiler. 4035 : > sub/conftest.c 4036 for i in 1 2 3 4 5 6; do 4037 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4039 # Solaris 8's {/usr,}/bin/sh. 4040 touch sub/conftst$i.h 4041 done 4042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4043 4044 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4045 # mode. It turns out that the SunPro C++ compiler does not properly 4046 # handle `-M -o', and we need to detect this. Also, some Intel 4047 # versions had trouble with output in subdirs 4048 am__obj=sub/conftest.${OBJEXT-o} 4049 am__minus_obj="-o $am__obj" 4050 case $depmode in 4051 gcc) 4052 # This depmode causes a compiler race in universal mode. 4053 test "$am__universal" = false || continue 4054 ;; 4055 nosideeffect) 4056 # after this tag, mechanisms are not by side-effect, so they'll 4057 # only be used when explicitly requested 4058 if test "x$enable_dependency_tracking" = xyes; then 4059 continue 4060 else 4061 break 4062 fi 4063 ;; 4064 msvisualcpp | msvcmsys) 4065 # This compiler won't grok `-c -o', but also, the minuso test has 4066 # not run yet. These depmodes are late enough in the game, and 4067 # so weak that their functioning should not be impacted. 4068 am__obj=conftest.${OBJEXT-o} 4069 am__minus_obj= 4070 ;; 4071 none) break ;; 4072 esac 4073 if depmode=$depmode \ 4074 source=sub/conftest.c object=$am__obj \ 4075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4077 >/dev/null 2>conftest.err && 4078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4082 # icc doesn't choke on unknown options, it will just issue warnings 4083 # or remarks (even with -Werror). So we grep stderr for any message 4084 # that says an option was ignored or not supported. 4085 # When given -MP, icc 7.0 and 7.1 complain thusly: 4086 # icc: Command line warning: ignoring option '-M'; no argument required 4087 # The diagnosis changed in icc 8.0: 4088 # icc: Command line remark: option '-MP' not supported 4089 if (grep 'ignoring option' conftest.err || 4090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4091 am_cv_CC_dependencies_compiler_type=$depmode 4092 break 4093 fi 4094 fi 4095 done 4096 4097 cd .. 4098 rm -rf conftest.dir 4099else 4100 am_cv_CC_dependencies_compiler_type=none 4101fi 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4105$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4106CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4107 4108 if 4109 test "x$enable_dependency_tracking" != xno \ 4110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4111 am__fastdepCC_TRUE= 4112 am__fastdepCC_FALSE='#' 4113else 4114 am__fastdepCC_TRUE='#' 4115 am__fastdepCC_FALSE= 4116fi 4117 4118 4119if test "x$GCC" = "xyes"; then 4120 ANSI_CFLAGS="-ansi" 4121else 4122 ANSI_CFLAGS="" 4123fi 4124 4125 4126ac_ext=c 4127ac_cpp='$CPP $CPPFLAGS' 4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4130ac_compiler_gnu=$ac_cv_c_compiler_gnu 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4132$as_echo_n "checking how to run the C preprocessor... " >&6; } 4133# On Suns, sometimes $CPP names a directory. 4134if test -n "$CPP" && test -d "$CPP"; then 4135 CPP= 4136fi 4137if test -z "$CPP"; then 4138 if test "${ac_cv_prog_CPP+set}" = set; then : 4139 $as_echo_n "(cached) " >&6 4140else 4141 # Double quotes because CPP needs to be expanded 4142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4143 do 4144 ac_preproc_ok=false 4145for ac_c_preproc_warn_flag in '' yes 4146do 4147 # Use a header file that comes with gcc, so configuring glibc 4148 # with a fresh cross-compiler works. 4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4150 # <limits.h> exists even on freestanding compilers. 4151 # On the NeXT, cc -E runs the code through the compiler's parser, 4152 # not just through cpp. "Syntax error" is here to catch this case. 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155#ifdef __STDC__ 4156# include <limits.h> 4157#else 4158# include <assert.h> 4159#endif 4160 Syntax error 4161_ACEOF 4162if ac_fn_c_try_cpp "$LINENO"; then : 4163 4164else 4165 # Broken: fails on valid input. 4166continue 4167fi 4168rm -f conftest.err conftest.$ac_ext 4169 4170 # OK, works on sane cases. Now check whether nonexistent headers 4171 # can be detected and how. 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174#include <ac_nonexistent.h> 4175_ACEOF 4176if ac_fn_c_try_cpp "$LINENO"; then : 4177 # Broken: success on invalid input. 4178continue 4179else 4180 # Passes both tests. 4181ac_preproc_ok=: 4182break 4183fi 4184rm -f conftest.err conftest.$ac_ext 4185 4186done 4187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4188rm -f conftest.err conftest.$ac_ext 4189if $ac_preproc_ok; then : 4190 break 4191fi 4192 4193 done 4194 ac_cv_prog_CPP=$CPP 4195 4196fi 4197 CPP=$ac_cv_prog_CPP 4198else 4199 ac_cv_prog_CPP=$CPP 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4202$as_echo "$CPP" >&6; } 4203ac_preproc_ok=false 4204for ac_c_preproc_warn_flag in '' yes 4205do 4206 # Use a header file that comes with gcc, so configuring glibc 4207 # with a fresh cross-compiler works. 4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4209 # <limits.h> exists even on freestanding compilers. 4210 # On the NeXT, cc -E runs the code through the compiler's parser, 4211 # not just through cpp. "Syntax error" is here to catch this case. 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214#ifdef __STDC__ 4215# include <limits.h> 4216#else 4217# include <assert.h> 4218#endif 4219 Syntax error 4220_ACEOF 4221if ac_fn_c_try_cpp "$LINENO"; then : 4222 4223else 4224 # Broken: fails on valid input. 4225continue 4226fi 4227rm -f conftest.err conftest.$ac_ext 4228 4229 # OK, works on sane cases. Now check whether nonexistent headers 4230 # can be detected and how. 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <ac_nonexistent.h> 4234_ACEOF 4235if ac_fn_c_try_cpp "$LINENO"; then : 4236 # Broken: success on invalid input. 4237continue 4238else 4239 # Passes both tests. 4240ac_preproc_ok=: 4241break 4242fi 4243rm -f conftest.err conftest.$ac_ext 4244 4245done 4246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4247rm -f conftest.err conftest.$ac_ext 4248if $ac_preproc_ok; then : 4249 4250else 4251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4253as_fn_error "C preprocessor \"$CPP\" fails sanity check 4254See \`config.log' for more details." "$LINENO" 5; } 4255fi 4256 4257ac_ext=c 4258ac_cpp='$CPP $CPPFLAGS' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu 4262 4263for ac_prog in gawk mawk nawk awk 4264do 4265 # Extract the first word of "$ac_prog", so it can be a program name with args. 4266set dummy $ac_prog; ac_word=$2 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268$as_echo_n "checking for $ac_word... " >&6; } 4269if test "${ac_cv_prog_AWK+set}" = set; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -n "$AWK"; then 4273 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4274else 4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4282 ac_cv_prog_AWK="$ac_prog" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286done 4287 done 4288IFS=$as_save_IFS 4289 4290fi 4291fi 4292AWK=$ac_cv_prog_AWK 4293if test -n "$AWK"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4295$as_echo "$AWK" >&6; } 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299fi 4300 4301 4302 test -n "$AWK" && break 4303done 4304 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4307$as_echo_n "checking whether ln -s works... " >&6; } 4308LN_S=$as_ln_s 4309if test "$LN_S" = "ln -s"; then 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4311$as_echo "yes" >&6; } 4312else 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4314$as_echo "no, using $LN_S" >&6; } 4315fi 4316 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4318$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4319set x ${MAKE-make} 4320ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4321if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 cat >conftest.make <<\_ACEOF 4325SHELL = /bin/sh 4326all: 4327 @echo '@@@%%%=$(MAKE)=@@@%%%' 4328_ACEOF 4329# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4330case `${MAKE-make} -f conftest.make 2>/dev/null` in 4331 *@@@%%%=?*=@@@%%%*) 4332 eval ac_cv_prog_make_${ac_make}_set=yes;; 4333 *) 4334 eval ac_cv_prog_make_${ac_make}_set=no;; 4335esac 4336rm -f conftest.make 4337fi 4338if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4340$as_echo "yes" >&6; } 4341 SET_MAKE= 4342else 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4344$as_echo "no" >&6; } 4345 SET_MAKE="MAKE=${MAKE-make}" 4346fi 4347 4348 4349case `pwd` in 4350 *\ * | *\ *) 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4352$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4353esac 4354 4355 4356 4357macro_version='2.2.6b' 4358macro_revision='1.3017' 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372ltmain="$ac_aux_dir/ltmain.sh" 4373 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4375$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4376if test "${ac_cv_path_SED+set}" = set; then : 4377 $as_echo_n "(cached) " >&6 4378else 4379 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4380 for ac_i in 1 2 3 4 5 6 7; do 4381 ac_script="$ac_script$as_nl$ac_script" 4382 done 4383 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4384 { ac_script=; unset ac_script;} 4385 if test -z "$SED"; then 4386 ac_path_SED_found=false 4387 # Loop through the user's path and test for each of PROGNAME-LIST 4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_prog in sed gsed; do 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4396 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4397# Check for GNU ac_path_SED and select it if it is found. 4398 # Check for GNU $ac_path_SED 4399case `"$ac_path_SED" --version 2>&1` in 4400*GNU*) 4401 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4402*) 4403 ac_count=0 4404 $as_echo_n 0123456789 >"conftest.in" 4405 while : 4406 do 4407 cat "conftest.in" "conftest.in" >"conftest.tmp" 4408 mv "conftest.tmp" "conftest.in" 4409 cp "conftest.in" "conftest.nl" 4410 $as_echo '' >> "conftest.nl" 4411 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4413 as_fn_arith $ac_count + 1 && ac_count=$as_val 4414 if test $ac_count -gt ${ac_path_SED_max-0}; then 4415 # Best one so far, save it but keep looking for a better one 4416 ac_cv_path_SED="$ac_path_SED" 4417 ac_path_SED_max=$ac_count 4418 fi 4419 # 10*(2^10) chars as input seems more than enough 4420 test $ac_count -gt 10 && break 4421 done 4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4423esac 4424 4425 $ac_path_SED_found && break 3 4426 done 4427 done 4428 done 4429IFS=$as_save_IFS 4430 if test -z "$ac_cv_path_SED"; then 4431 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4432 fi 4433else 4434 ac_cv_path_SED=$SED 4435fi 4436 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4439$as_echo "$ac_cv_path_SED" >&6; } 4440 SED="$ac_cv_path_SED" 4441 rm -f conftest.sed 4442 4443test -z "$SED" && SED=sed 4444Xsed="$SED -e 1s/^X//" 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4457$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4458if test "${ac_cv_path_GREP+set}" = set; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -z "$GREP"; then 4462 ac_path_GREP_found=false 4463 # Loop through the user's path and test for each of PROGNAME-LIST 4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4466do 4467 IFS=$as_save_IFS 4468 test -z "$as_dir" && as_dir=. 4469 for ac_prog in grep ggrep; do 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4473# Check for GNU ac_path_GREP and select it if it is found. 4474 # Check for GNU $ac_path_GREP 4475case `"$ac_path_GREP" --version 2>&1` in 4476*GNU*) 4477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4478*) 4479 ac_count=0 4480 $as_echo_n 0123456789 >"conftest.in" 4481 while : 4482 do 4483 cat "conftest.in" "conftest.in" >"conftest.tmp" 4484 mv "conftest.tmp" "conftest.in" 4485 cp "conftest.in" "conftest.nl" 4486 $as_echo 'GREP' >> "conftest.nl" 4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4489 as_fn_arith $ac_count + 1 && ac_count=$as_val 4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4491 # Best one so far, save it but keep looking for a better one 4492 ac_cv_path_GREP="$ac_path_GREP" 4493 ac_path_GREP_max=$ac_count 4494 fi 4495 # 10*(2^10) chars as input seems more than enough 4496 test $ac_count -gt 10 && break 4497 done 4498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4499esac 4500 4501 $ac_path_GREP_found && break 3 4502 done 4503 done 4504 done 4505IFS=$as_save_IFS 4506 if test -z "$ac_cv_path_GREP"; then 4507 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4508 fi 4509else 4510 ac_cv_path_GREP=$GREP 4511fi 4512 4513fi 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4515$as_echo "$ac_cv_path_GREP" >&6; } 4516 GREP="$ac_cv_path_GREP" 4517 4518 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4520$as_echo_n "checking for egrep... " >&6; } 4521if test "${ac_cv_path_EGREP+set}" = set; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4525 then ac_cv_path_EGREP="$GREP -E" 4526 else 4527 if test -z "$EGREP"; then 4528 ac_path_EGREP_found=false 4529 # Loop through the user's path and test for each of PROGNAME-LIST 4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4532do 4533 IFS=$as_save_IFS 4534 test -z "$as_dir" && as_dir=. 4535 for ac_prog in egrep; do 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4538 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4539# Check for GNU ac_path_EGREP and select it if it is found. 4540 # Check for GNU $ac_path_EGREP 4541case `"$ac_path_EGREP" --version 2>&1` in 4542*GNU*) 4543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4544*) 4545 ac_count=0 4546 $as_echo_n 0123456789 >"conftest.in" 4547 while : 4548 do 4549 cat "conftest.in" "conftest.in" >"conftest.tmp" 4550 mv "conftest.tmp" "conftest.in" 4551 cp "conftest.in" "conftest.nl" 4552 $as_echo 'EGREP' >> "conftest.nl" 4553 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4555 as_fn_arith $ac_count + 1 && ac_count=$as_val 4556 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4557 # Best one so far, save it but keep looking for a better one 4558 ac_cv_path_EGREP="$ac_path_EGREP" 4559 ac_path_EGREP_max=$ac_count 4560 fi 4561 # 10*(2^10) chars as input seems more than enough 4562 test $ac_count -gt 10 && break 4563 done 4564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4565esac 4566 4567 $ac_path_EGREP_found && break 3 4568 done 4569 done 4570 done 4571IFS=$as_save_IFS 4572 if test -z "$ac_cv_path_EGREP"; then 4573 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4574 fi 4575else 4576 ac_cv_path_EGREP=$EGREP 4577fi 4578 4579 fi 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4582$as_echo "$ac_cv_path_EGREP" >&6; } 4583 EGREP="$ac_cv_path_EGREP" 4584 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4587$as_echo_n "checking for fgrep... " >&6; } 4588if test "${ac_cv_path_FGREP+set}" = set; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4592 then ac_cv_path_FGREP="$GREP -F" 4593 else 4594 if test -z "$FGREP"; then 4595 ac_path_FGREP_found=false 4596 # Loop through the user's path and test for each of PROGNAME-LIST 4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4599do 4600 IFS=$as_save_IFS 4601 test -z "$as_dir" && as_dir=. 4602 for ac_prog in fgrep; do 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4605 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4606# Check for GNU ac_path_FGREP and select it if it is found. 4607 # Check for GNU $ac_path_FGREP 4608case `"$ac_path_FGREP" --version 2>&1` in 4609*GNU*) 4610 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4611*) 4612 ac_count=0 4613 $as_echo_n 0123456789 >"conftest.in" 4614 while : 4615 do 4616 cat "conftest.in" "conftest.in" >"conftest.tmp" 4617 mv "conftest.tmp" "conftest.in" 4618 cp "conftest.in" "conftest.nl" 4619 $as_echo 'FGREP' >> "conftest.nl" 4620 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4622 as_fn_arith $ac_count + 1 && ac_count=$as_val 4623 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4624 # Best one so far, save it but keep looking for a better one 4625 ac_cv_path_FGREP="$ac_path_FGREP" 4626 ac_path_FGREP_max=$ac_count 4627 fi 4628 # 10*(2^10) chars as input seems more than enough 4629 test $ac_count -gt 10 && break 4630 done 4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4632esac 4633 4634 $ac_path_FGREP_found && break 3 4635 done 4636 done 4637 done 4638IFS=$as_save_IFS 4639 if test -z "$ac_cv_path_FGREP"; then 4640 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4641 fi 4642else 4643 ac_cv_path_FGREP=$FGREP 4644fi 4645 4646 fi 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4649$as_echo "$ac_cv_path_FGREP" >&6; } 4650 FGREP="$ac_cv_path_FGREP" 4651 4652 4653test -z "$GREP" && GREP=grep 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673# Check whether --with-gnu-ld was given. 4674if test "${with_gnu_ld+set}" = set; then : 4675 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4676else 4677 with_gnu_ld=no 4678fi 4679 4680ac_prog=ld 4681if test "$GCC" = yes; then 4682 # Check if gcc -print-prog-name=ld gives a path. 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4684$as_echo_n "checking for ld used by $CC... " >&6; } 4685 case $host in 4686 *-*-mingw*) 4687 # gcc leaves a trailing carriage return which upsets mingw 4688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4689 *) 4690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4691 esac 4692 case $ac_prog in 4693 # Accept absolute paths. 4694 [\\/]* | ?:[\\/]*) 4695 re_direlt='/[^/][^/]*/\.\./' 4696 # Canonicalize the pathname of ld 4697 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4698 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4699 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4700 done 4701 test -z "$LD" && LD="$ac_prog" 4702 ;; 4703 "") 4704 # If it fails, then pretend we aren't using GCC. 4705 ac_prog=ld 4706 ;; 4707 *) 4708 # If it is relative, then search for the first ld in PATH. 4709 with_gnu_ld=unknown 4710 ;; 4711 esac 4712elif test "$with_gnu_ld" = yes; then 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4714$as_echo_n "checking for GNU ld... " >&6; } 4715else 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4717$as_echo_n "checking for non-GNU ld... " >&6; } 4718fi 4719if test "${lt_cv_path_LD+set}" = set; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 if test -z "$LD"; then 4723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4724 for ac_dir in $PATH; do 4725 IFS="$lt_save_ifs" 4726 test -z "$ac_dir" && ac_dir=. 4727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4728 lt_cv_path_LD="$ac_dir/$ac_prog" 4729 # Check to see if the program is GNU ld. I'd rather use --version, 4730 # but apparently some variants of GNU ld only accept -v. 4731 # Break only if it was the GNU/non-GNU ld that we prefer. 4732 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4733 *GNU* | *'with BFD'*) 4734 test "$with_gnu_ld" != no && break 4735 ;; 4736 *) 4737 test "$with_gnu_ld" != yes && break 4738 ;; 4739 esac 4740 fi 4741 done 4742 IFS="$lt_save_ifs" 4743else 4744 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4745fi 4746fi 4747 4748LD="$lt_cv_path_LD" 4749if test -n "$LD"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4751$as_echo "$LD" >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754$as_echo "no" >&6; } 4755fi 4756test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4758$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4759if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4763case `$LD -v 2>&1 </dev/null` in 4764*GNU* | *'with BFD'*) 4765 lt_cv_prog_gnu_ld=yes 4766 ;; 4767*) 4768 lt_cv_prog_gnu_ld=no 4769 ;; 4770esac 4771fi 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4773$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4774with_gnu_ld=$lt_cv_prog_gnu_ld 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4785$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4786if test "${lt_cv_path_NM+set}" = set; then : 4787 $as_echo_n "(cached) " >&6 4788else 4789 if test -n "$NM"; then 4790 # Let the user override the test. 4791 lt_cv_path_NM="$NM" 4792else 4793 lt_nm_to_check="${ac_tool_prefix}nm" 4794 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4795 lt_nm_to_check="$lt_nm_to_check nm" 4796 fi 4797 for lt_tmp_nm in $lt_nm_to_check; do 4798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4799 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4800 IFS="$lt_save_ifs" 4801 test -z "$ac_dir" && ac_dir=. 4802 tmp_nm="$ac_dir/$lt_tmp_nm" 4803 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4804 # Check to see if the nm accepts a BSD-compat flag. 4805 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4806 # nm: unknown option "B" ignored 4807 # Tru64's nm complains that /dev/null is an invalid object file 4808 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4809 */dev/null* | *'Invalid file or object type'*) 4810 lt_cv_path_NM="$tmp_nm -B" 4811 break 4812 ;; 4813 *) 4814 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4815 */dev/null*) 4816 lt_cv_path_NM="$tmp_nm -p" 4817 break 4818 ;; 4819 *) 4820 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4821 continue # so that we can try to find one that supports BSD flags 4822 ;; 4823 esac 4824 ;; 4825 esac 4826 fi 4827 done 4828 IFS="$lt_save_ifs" 4829 done 4830 : ${lt_cv_path_NM=no} 4831fi 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4834$as_echo "$lt_cv_path_NM" >&6; } 4835if test "$lt_cv_path_NM" != "no"; then 4836 NM="$lt_cv_path_NM" 4837else 4838 # Didn't find any BSD compatible name lister, look for dumpbin. 4839 if test -n "$ac_tool_prefix"; then 4840 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4841 do 4842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4843set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4845$as_echo_n "checking for $ac_word... " >&6; } 4846if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test -n "$DUMPBIN"; then 4850 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4851else 4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 test -z "$as_dir" && as_dir=. 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4859 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4861 break 2 4862 fi 4863done 4864 done 4865IFS=$as_save_IFS 4866 4867fi 4868fi 4869DUMPBIN=$ac_cv_prog_DUMPBIN 4870if test -n "$DUMPBIN"; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4872$as_echo "$DUMPBIN" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876fi 4877 4878 4879 test -n "$DUMPBIN" && break 4880 done 4881fi 4882if test -z "$DUMPBIN"; then 4883 ac_ct_DUMPBIN=$DUMPBIN 4884 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4885do 4886 # Extract the first word of "$ac_prog", so it can be a program name with args. 4887set dummy $ac_prog; ac_word=$2 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4889$as_echo_n "checking for $ac_word... " >&6; } 4890if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 if test -n "$ac_ct_DUMPBIN"; then 4894 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4895else 4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4897for as_dir in $PATH 4898do 4899 IFS=$as_save_IFS 4900 test -z "$as_dir" && as_dir=. 4901 for ac_exec_ext in '' $ac_executable_extensions; do 4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4903 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4905 break 2 4906 fi 4907done 4908 done 4909IFS=$as_save_IFS 4910 4911fi 4912fi 4913ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4914if test -n "$ac_ct_DUMPBIN"; then 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4916$as_echo "$ac_ct_DUMPBIN" >&6; } 4917else 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919$as_echo "no" >&6; } 4920fi 4921 4922 4923 test -n "$ac_ct_DUMPBIN" && break 4924done 4925 4926 if test "x$ac_ct_DUMPBIN" = x; then 4927 DUMPBIN=":" 4928 else 4929 case $cross_compiling:$ac_tool_warned in 4930yes:) 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4933ac_tool_warned=yes ;; 4934esac 4935 DUMPBIN=$ac_ct_DUMPBIN 4936 fi 4937fi 4938 4939 4940 if test "$DUMPBIN" != ":"; then 4941 NM="$DUMPBIN" 4942 fi 4943fi 4944test -z "$NM" && NM=nm 4945 4946 4947 4948 4949 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4952$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4953if test "${lt_cv_nm_interface+set}" = set; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 lt_cv_nm_interface="BSD nm" 4957 echo "int some_variable = 0;" > conftest.$ac_ext 4958 (eval echo "\"\$as_me:4958: $ac_compile\"" >&5) 4959 (eval "$ac_compile" 2>conftest.err) 4960 cat conftest.err >&5 4961 (eval echo "\"\$as_me:4961: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4963 cat conftest.err >&5 4964 (eval echo "\"\$as_me:4964: output\"" >&5) 4965 cat conftest.out >&5 4966 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4967 lt_cv_nm_interface="MS dumpbin" 4968 fi 4969 rm -f conftest* 4970fi 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4972$as_echo "$lt_cv_nm_interface" >&6; } 4973 4974# find the maximum length of command line arguments 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4976$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4977if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 i=0 4981 teststring="ABCD" 4982 4983 case $build_os in 4984 msdosdjgpp*) 4985 # On DJGPP, this test can blow up pretty badly due to problems in libc 4986 # (any single argument exceeding 2000 bytes causes a buffer overrun 4987 # during glob expansion). Even if it were fixed, the result of this 4988 # check would be larger than it should be. 4989 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4990 ;; 4991 4992 gnu*) 4993 # Under GNU Hurd, this test is not required because there is 4994 # no limit to the length of command line arguments. 4995 # Libtool will interpret -1 as no limit whatsoever 4996 lt_cv_sys_max_cmd_len=-1; 4997 ;; 4998 4999 cygwin* | mingw* | cegcc*) 5000 # On Win9x/ME, this test blows up -- it succeeds, but takes 5001 # about 5 minutes as the teststring grows exponentially. 5002 # Worse, since 9x/ME are not pre-emptively multitasking, 5003 # you end up with a "frozen" computer, even though with patience 5004 # the test eventually succeeds (with a max line length of 256k). 5005 # Instead, let's just punt: use the minimum linelength reported by 5006 # all of the supported platforms: 8192 (on NT/2K/XP). 5007 lt_cv_sys_max_cmd_len=8192; 5008 ;; 5009 5010 amigaos*) 5011 # On AmigaOS with pdksh, this test takes hours, literally. 5012 # So we just punt and use a minimum line length of 8192. 5013 lt_cv_sys_max_cmd_len=8192; 5014 ;; 5015 5016 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5017 # This has been around since 386BSD, at least. Likely further. 5018 if test -x /sbin/sysctl; then 5019 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5020 elif test -x /usr/sbin/sysctl; then 5021 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5022 else 5023 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5024 fi 5025 # And add a safety zone 5026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5028 ;; 5029 5030 interix*) 5031 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5032 lt_cv_sys_max_cmd_len=196608 5033 ;; 5034 5035 osf*) 5036 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5037 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5038 # nice to cause kernel panics so lets avoid the loop below. 5039 # First set a reasonable default. 5040 lt_cv_sys_max_cmd_len=16384 5041 # 5042 if test -x /sbin/sysconfig; then 5043 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5044 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5045 esac 5046 fi 5047 ;; 5048 sco3.2v5*) 5049 lt_cv_sys_max_cmd_len=102400 5050 ;; 5051 sysv5* | sco5v6* | sysv4.2uw2*) 5052 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5053 if test -n "$kargmax"; then 5054 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5055 else 5056 lt_cv_sys_max_cmd_len=32768 5057 fi 5058 ;; 5059 *) 5060 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5061 if test -n "$lt_cv_sys_max_cmd_len"; then 5062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5064 else 5065 # Make teststring a little bigger before we do anything with it. 5066 # a 1K string should be a reasonable start. 5067 for i in 1 2 3 4 5 6 7 8 ; do 5068 teststring=$teststring$teststring 5069 done 5070 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5071 # If test is not a shell built-in, we'll probably end up computing a 5072 # maximum length that is only half of the actual maximum length, but 5073 # we can't tell. 5074 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5075 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5076 test $i != 17 # 1/2 MB should be enough 5077 do 5078 i=`expr $i + 1` 5079 teststring=$teststring$teststring 5080 done 5081 # Only check the string length outside the loop. 5082 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5083 teststring= 5084 # Add a significant safety factor because C++ compilers can tack on 5085 # massive amounts of additional arguments before passing them to the 5086 # linker. It appears as though 1/2 is a usable value. 5087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5088 fi 5089 ;; 5090 esac 5091 5092fi 5093 5094if test -n $lt_cv_sys_max_cmd_len ; then 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5096$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5097else 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5099$as_echo "none" >&6; } 5100fi 5101max_cmd_len=$lt_cv_sys_max_cmd_len 5102 5103 5104 5105 5106 5107 5108: ${CP="cp -f"} 5109: ${MV="mv -f"} 5110: ${RM="rm -f"} 5111 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5113$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5114# Try some XSI features 5115xsi_shell=no 5116( _lt_dummy="a/b/c" 5117 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5118 = c,a/b,, \ 5119 && eval 'test $(( 1 + 1 )) -eq 2 \ 5120 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5121 && xsi_shell=yes 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5123$as_echo "$xsi_shell" >&6; } 5124 5125 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5127$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5128lt_shell_append=no 5129( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5130 >/dev/null 2>&1 \ 5131 && lt_shell_append=yes 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5133$as_echo "$lt_shell_append" >&6; } 5134 5135 5136if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5137 lt_unset=unset 5138else 5139 lt_unset=false 5140fi 5141 5142 5143 5144 5145 5146# test EBCDIC or ASCII 5147case `echo X|tr X '\101'` in 5148 A) # ASCII based system 5149 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5150 lt_SP2NL='tr \040 \012' 5151 lt_NL2SP='tr \015\012 \040\040' 5152 ;; 5153 *) # EBCDIC based system 5154 lt_SP2NL='tr \100 \n' 5155 lt_NL2SP='tr \r\n \100\100' 5156 ;; 5157esac 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5168$as_echo_n "checking for $LD option to reload object files... " >&6; } 5169if test "${lt_cv_ld_reload_flag+set}" = set; then : 5170 $as_echo_n "(cached) " >&6 5171else 5172 lt_cv_ld_reload_flag='-r' 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5175$as_echo "$lt_cv_ld_reload_flag" >&6; } 5176reload_flag=$lt_cv_ld_reload_flag 5177case $reload_flag in 5178"" | " "*) ;; 5179*) reload_flag=" $reload_flag" ;; 5180esac 5181reload_cmds='$LD$reload_flag -o $output$reload_objs' 5182case $host_os in 5183 darwin*) 5184 if test "$GCC" = yes; then 5185 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5186 else 5187 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5188 fi 5189 ;; 5190esac 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200if test -n "$ac_tool_prefix"; then 5201 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5202set dummy ${ac_tool_prefix}objdump; ac_word=$2 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204$as_echo_n "checking for $ac_word... " >&6; } 5205if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -n "$OBJDUMP"; then 5209 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5218 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223 done 5224IFS=$as_save_IFS 5225 5226fi 5227fi 5228OBJDUMP=$ac_cv_prog_OBJDUMP 5229if test -n "$OBJDUMP"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5231$as_echo "$OBJDUMP" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5234$as_echo "no" >&6; } 5235fi 5236 5237 5238fi 5239if test -z "$ac_cv_prog_OBJDUMP"; then 5240 ac_ct_OBJDUMP=$OBJDUMP 5241 # Extract the first word of "objdump", so it can be a program name with args. 5242set dummy objdump; ac_word=$2 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5244$as_echo_n "checking for $ac_word... " >&6; } 5245if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 if test -n "$ac_ct_OBJDUMP"; then 5249 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5250else 5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252for as_dir in $PATH 5253do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_exec_ext in '' $ac_executable_extensions; do 5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5258 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5260 break 2 5261 fi 5262done 5263 done 5264IFS=$as_save_IFS 5265 5266fi 5267fi 5268ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5269if test -n "$ac_ct_OBJDUMP"; then 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5271$as_echo "$ac_ct_OBJDUMP" >&6; } 5272else 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5274$as_echo "no" >&6; } 5275fi 5276 5277 if test "x$ac_ct_OBJDUMP" = x; then 5278 OBJDUMP="false" 5279 else 5280 case $cross_compiling:$ac_tool_warned in 5281yes:) 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5284ac_tool_warned=yes ;; 5285esac 5286 OBJDUMP=$ac_ct_OBJDUMP 5287 fi 5288else 5289 OBJDUMP="$ac_cv_prog_OBJDUMP" 5290fi 5291 5292test -z "$OBJDUMP" && OBJDUMP=objdump 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5303$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5304if test "${lt_cv_deplibs_check_method+set}" = set; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 lt_cv_file_magic_cmd='$MAGIC_CMD' 5308lt_cv_file_magic_test_file= 5309lt_cv_deplibs_check_method='unknown' 5310# Need to set the preceding variable on all platforms that support 5311# interlibrary dependencies. 5312# 'none' -- dependencies not supported. 5313# `unknown' -- same as none, but documents that we really don't know. 5314# 'pass_all' -- all dependencies passed with no checks. 5315# 'test_compile' -- check by making test program. 5316# 'file_magic [[regex]]' -- check by looking for files in library path 5317# which responds to the $file_magic_cmd with a given extended regex. 5318# If you have `file' or equivalent on your system and you're not sure 5319# whether `pass_all' will *always* work, you probably want this one. 5320 5321case $host_os in 5322aix[4-9]*) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 5326beos*) 5327 lt_cv_deplibs_check_method=pass_all 5328 ;; 5329 5330bsdi[45]*) 5331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5332 lt_cv_file_magic_cmd='/usr/bin/file -L' 5333 lt_cv_file_magic_test_file=/shlib/libc.so 5334 ;; 5335 5336cygwin*) 5337 # func_win32_libid is a shell function defined in ltmain.sh 5338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5339 lt_cv_file_magic_cmd='func_win32_libid' 5340 ;; 5341 5342mingw* | pw32*) 5343 # Base MSYS/MinGW do not provide the 'file' command needed by 5344 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5345 # unless we find 'file', for example because we are cross-compiling. 5346 if ( file / ) >/dev/null 2>&1; then 5347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5348 lt_cv_file_magic_cmd='func_win32_libid' 5349 else 5350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5351 lt_cv_file_magic_cmd='$OBJDUMP -f' 5352 fi 5353 ;; 5354 5355cegcc) 5356 # use the weaker test based on 'objdump'. See mingw*. 5357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5358 lt_cv_file_magic_cmd='$OBJDUMP -f' 5359 ;; 5360 5361darwin* | rhapsody*) 5362 lt_cv_deplibs_check_method=pass_all 5363 ;; 5364 5365freebsd* | dragonfly*) 5366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5367 case $host_cpu in 5368 i*86 ) 5369 # Not sure whether the presence of OpenBSD here was a mistake. 5370 # Let's accept both of them until this is cleared up. 5371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5372 lt_cv_file_magic_cmd=/usr/bin/file 5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5374 ;; 5375 esac 5376 else 5377 lt_cv_deplibs_check_method=pass_all 5378 fi 5379 ;; 5380 5381gnu*) 5382 lt_cv_deplibs_check_method=pass_all 5383 ;; 5384 5385hpux10.20* | hpux11*) 5386 lt_cv_file_magic_cmd=/usr/bin/file 5387 case $host_cpu in 5388 ia64*) 5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5391 ;; 5392 hppa*64*) 5393 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]' 5394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5395 ;; 5396 *) 5397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5398 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5399 ;; 5400 esac 5401 ;; 5402 5403interix[3-9]*) 5404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5406 ;; 5407 5408irix5* | irix6* | nonstopux*) 5409 case $LD in 5410 *-32|*"-32 ") libmagic=32-bit;; 5411 *-n32|*"-n32 ") libmagic=N32;; 5412 *-64|*"-64 ") libmagic=64-bit;; 5413 *) libmagic=never-match;; 5414 esac 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 5418# This must be Linux ELF. 5419linux* | k*bsd*-gnu) 5420 lt_cv_deplibs_check_method=pass_all 5421 ;; 5422 5423netbsd*) 5424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5426 else 5427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5428 fi 5429 ;; 5430 5431newos6*) 5432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5433 lt_cv_file_magic_cmd=/usr/bin/file 5434 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5435 ;; 5436 5437*nto* | *qnx*) 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440 5441openbsd*) 5442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5444 else 5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5446 fi 5447 ;; 5448 5449osf3* | osf4* | osf5*) 5450 lt_cv_deplibs_check_method=pass_all 5451 ;; 5452 5453rdos*) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 5457solaris*) 5458 lt_cv_deplibs_check_method=pass_all 5459 ;; 5460 5461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 5465sysv4 | sysv4.3*) 5466 case $host_vendor in 5467 motorola) 5468 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]' 5469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5470 ;; 5471 ncr) 5472 lt_cv_deplibs_check_method=pass_all 5473 ;; 5474 sequent) 5475 lt_cv_file_magic_cmd='/bin/file' 5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5477 ;; 5478 sni) 5479 lt_cv_file_magic_cmd='/bin/file' 5480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5481 lt_cv_file_magic_test_file=/lib/libc.so 5482 ;; 5483 siemens) 5484 lt_cv_deplibs_check_method=pass_all 5485 ;; 5486 pc) 5487 lt_cv_deplibs_check_method=pass_all 5488 ;; 5489 esac 5490 ;; 5491 5492tpf*) 5493 lt_cv_deplibs_check_method=pass_all 5494 ;; 5495esac 5496 5497fi 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5499$as_echo "$lt_cv_deplibs_check_method" >&6; } 5500file_magic_cmd=$lt_cv_file_magic_cmd 5501deplibs_check_method=$lt_cv_deplibs_check_method 5502test -z "$deplibs_check_method" && deplibs_check_method=unknown 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515if test -n "$ac_tool_prefix"; then 5516 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5517set dummy ${ac_tool_prefix}ar; ac_word=$2 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5519$as_echo_n "checking for $ac_word... " >&6; } 5520if test "${ac_cv_prog_AR+set}" = set; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 if test -n "$AR"; then 5524 ac_cv_prog_AR="$AR" # Let the user override the test. 5525else 5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527for as_dir in $PATH 5528do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5533 ac_cv_prog_AR="${ac_tool_prefix}ar" 5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5535 break 2 5536 fi 5537done 5538 done 5539IFS=$as_save_IFS 5540 5541fi 5542fi 5543AR=$ac_cv_prog_AR 5544if test -n "$AR"; then 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5546$as_echo "$AR" >&6; } 5547else 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5549$as_echo "no" >&6; } 5550fi 5551 5552 5553fi 5554if test -z "$ac_cv_prog_AR"; then 5555 ac_ct_AR=$AR 5556 # Extract the first word of "ar", so it can be a program name with args. 5557set dummy ar; ac_word=$2 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5559$as_echo_n "checking for $ac_word... " >&6; } 5560if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5561 $as_echo_n "(cached) " >&6 5562else 5563 if test -n "$ac_ct_AR"; then 5564 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5565else 5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5567for as_dir in $PATH 5568do 5569 IFS=$as_save_IFS 5570 test -z "$as_dir" && as_dir=. 5571 for ac_exec_ext in '' $ac_executable_extensions; do 5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5573 ac_cv_prog_ac_ct_AR="ar" 5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5575 break 2 5576 fi 5577done 5578 done 5579IFS=$as_save_IFS 5580 5581fi 5582fi 5583ac_ct_AR=$ac_cv_prog_ac_ct_AR 5584if test -n "$ac_ct_AR"; then 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5586$as_echo "$ac_ct_AR" >&6; } 5587else 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5589$as_echo "no" >&6; } 5590fi 5591 5592 if test "x$ac_ct_AR" = x; then 5593 AR="false" 5594 else 5595 case $cross_compiling:$ac_tool_warned in 5596yes:) 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5599ac_tool_warned=yes ;; 5600esac 5601 AR=$ac_ct_AR 5602 fi 5603else 5604 AR="$ac_cv_prog_AR" 5605fi 5606 5607test -z "$AR" && AR=ar 5608test -z "$AR_FLAGS" && AR_FLAGS=cru 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620if test -n "$ac_tool_prefix"; then 5621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5622set dummy ${ac_tool_prefix}strip; ac_word=$2 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5624$as_echo_n "checking for $ac_word... " >&6; } 5625if test "${ac_cv_prog_STRIP+set}" = set; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 if test -n "$STRIP"; then 5629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 test -z "$as_dir" && as_dir=. 5636 for ac_exec_ext in '' $ac_executable_extensions; do 5637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5638 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5640 break 2 5641 fi 5642done 5643 done 5644IFS=$as_save_IFS 5645 5646fi 5647fi 5648STRIP=$ac_cv_prog_STRIP 5649if test -n "$STRIP"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5651$as_echo "$STRIP" >&6; } 5652else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5654$as_echo "no" >&6; } 5655fi 5656 5657 5658fi 5659if test -z "$ac_cv_prog_STRIP"; then 5660 ac_ct_STRIP=$STRIP 5661 # Extract the first word of "strip", so it can be a program name with args. 5662set dummy strip; ac_word=$2 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664$as_echo_n "checking for $ac_word... " >&6; } 5665if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 if test -n "$ac_ct_STRIP"; then 5669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5670else 5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5678 ac_cv_prog_ac_ct_STRIP="strip" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686fi 5687fi 5688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5689if test -n "$ac_ct_STRIP"; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5691$as_echo "$ac_ct_STRIP" >&6; } 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695fi 5696 5697 if test "x$ac_ct_STRIP" = x; then 5698 STRIP=":" 5699 else 5700 case $cross_compiling:$ac_tool_warned in 5701yes:) 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5704ac_tool_warned=yes ;; 5705esac 5706 STRIP=$ac_ct_STRIP 5707 fi 5708else 5709 STRIP="$ac_cv_prog_STRIP" 5710fi 5711 5712test -z "$STRIP" && STRIP=: 5713 5714 5715 5716 5717 5718 5719if test -n "$ac_tool_prefix"; then 5720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5721set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if test "${ac_cv_prog_RANLIB+set}" = set; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$RANLIB"; then 5728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747RANLIB=$ac_cv_prog_RANLIB 5748if test -n "$RANLIB"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5750$as_echo "$RANLIB" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 5757fi 5758if test -z "$ac_cv_prog_RANLIB"; then 5759 ac_ct_RANLIB=$RANLIB 5760 # Extract the first word of "ranlib", so it can be a program name with args. 5761set dummy ranlib; ac_word=$2 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5763$as_echo_n "checking for $ac_word... " >&6; } 5764if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 if test -n "$ac_ct_RANLIB"; then 5768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5769else 5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5771for as_dir in $PATH 5772do 5773 IFS=$as_save_IFS 5774 test -z "$as_dir" && as_dir=. 5775 for ac_exec_ext in '' $ac_executable_extensions; do 5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5777 ac_cv_prog_ac_ct_RANLIB="ranlib" 5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5779 break 2 5780 fi 5781done 5782 done 5783IFS=$as_save_IFS 5784 5785fi 5786fi 5787ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5788if test -n "$ac_ct_RANLIB"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5790$as_echo "$ac_ct_RANLIB" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794fi 5795 5796 if test "x$ac_ct_RANLIB" = x; then 5797 RANLIB=":" 5798 else 5799 case $cross_compiling:$ac_tool_warned in 5800yes:) 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5803ac_tool_warned=yes ;; 5804esac 5805 RANLIB=$ac_ct_RANLIB 5806 fi 5807else 5808 RANLIB="$ac_cv_prog_RANLIB" 5809fi 5810 5811test -z "$RANLIB" && RANLIB=: 5812 5813 5814 5815 5816 5817 5818# Determine commands to create old-style static archives. 5819old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5820old_postinstall_cmds='chmod 644 $oldlib' 5821old_postuninstall_cmds= 5822 5823if test -n "$RANLIB"; then 5824 case $host_os in 5825 openbsd*) 5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5827 ;; 5828 *) 5829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5830 ;; 5831 esac 5832 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5833fi 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868# If no C compiler was specified, use CC. 5869LTCC=${LTCC-"$CC"} 5870 5871# If no C compiler flags were specified, use CFLAGS. 5872LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5873 5874# Allow CC to be a program name with arguments. 5875compiler=$CC 5876 5877 5878# Check for command to grab the raw symbol name followed by C symbol from nm. 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5880$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5881if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 5885# These are sane defaults that work on at least a few old systems. 5886# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5887 5888# Character class describing NM global symbol codes. 5889symcode='[BCDEGRST]' 5890 5891# Regexp to match symbols that can be accessed directly from C. 5892sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5893 5894# Define system-specific variables. 5895case $host_os in 5896aix*) 5897 symcode='[BCDT]' 5898 ;; 5899cygwin* | mingw* | pw32* | cegcc*) 5900 symcode='[ABCDGISTW]' 5901 ;; 5902hpux*) 5903 if test "$host_cpu" = ia64; then 5904 symcode='[ABCDEGRST]' 5905 fi 5906 ;; 5907irix* | nonstopux*) 5908 symcode='[BCDEGRST]' 5909 ;; 5910osf*) 5911 symcode='[BCDEGQRST]' 5912 ;; 5913solaris*) 5914 symcode='[BDRT]' 5915 ;; 5916sco3.2v5*) 5917 symcode='[DT]' 5918 ;; 5919sysv4.2uw2*) 5920 symcode='[DT]' 5921 ;; 5922sysv5* | sco5v6* | unixware* | OpenUNIX*) 5923 symcode='[ABDT]' 5924 ;; 5925sysv4) 5926 symcode='[DFNSTU]' 5927 ;; 5928esac 5929 5930# If we're using GNU nm, then use its standard symbol codes. 5931case `$NM -V 2>&1` in 5932*GNU* | *'with BFD'*) 5933 symcode='[ABCDGIRSTW]' ;; 5934esac 5935 5936# Transform an extracted symbol line into a proper C declaration. 5937# Some systems (esp. on ia64) link data and code symbols differently, 5938# so use this general approach. 5939lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5940 5941# Transform an extracted symbol line into symbol name and symbol address 5942lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5944 5945# Handle CRLF in mingw tool chain 5946opt_cr= 5947case $build_os in 5948mingw*) 5949 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5950 ;; 5951esac 5952 5953# Try without a prefix underscore, then with it. 5954for ac_symprfx in "" "_"; do 5955 5956 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5957 symxfrm="\\1 $ac_symprfx\\2 \\2" 5958 5959 # Write the raw and C identifiers. 5960 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5961 # Fake it for dumpbin and say T for any non-static function 5962 # and D for any global variable. 5963 # Also find C++ and __fastcall symbols from MSVC++, 5964 # which start with @ or ?. 5965 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5966" {last_section=section; section=\$ 3};"\ 5967" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5968" \$ 0!~/External *\|/{next};"\ 5969" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5970" {if(hide[section]) next};"\ 5971" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5972" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5973" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5974" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5975" ' prfx=^$ac_symprfx" 5976 else 5977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5978 fi 5979 5980 # Check to see that the pipe works correctly. 5981 pipe_works=no 5982 5983 rm -f conftest* 5984 cat > conftest.$ac_ext <<_LT_EOF 5985#ifdef __cplusplus 5986extern "C" { 5987#endif 5988char nm_test_var; 5989void nm_test_func(void); 5990void nm_test_func(void){} 5991#ifdef __cplusplus 5992} 5993#endif 5994int main(){nm_test_var='a';nm_test_func();return(0);} 5995_LT_EOF 5996 5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5998 (eval $ac_compile) 2>&5 5999 ac_status=$? 6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6001 test $ac_status = 0; }; then 6002 # Now try to grab the symbols. 6003 nlist=conftest.nm 6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6005 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6006 ac_status=$? 6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6008 test $ac_status = 0; } && test -s "$nlist"; then 6009 # Try sorting and uniquifying the output. 6010 if sort "$nlist" | uniq > "$nlist"T; then 6011 mv -f "$nlist"T "$nlist" 6012 else 6013 rm -f "$nlist"T 6014 fi 6015 6016 # Make sure that we snagged all the symbols we need. 6017 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6018 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6019 cat <<_LT_EOF > conftest.$ac_ext 6020#ifdef __cplusplus 6021extern "C" { 6022#endif 6023 6024_LT_EOF 6025 # Now generate the symbol file. 6026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6027 6028 cat <<_LT_EOF >> conftest.$ac_ext 6029 6030/* The mapping between symbol names and symbols. */ 6031const struct { 6032 const char *name; 6033 void *address; 6034} 6035lt__PROGRAM__LTX_preloaded_symbols[] = 6036{ 6037 { "@PROGRAM@", (void *) 0 }, 6038_LT_EOF 6039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6040 cat <<\_LT_EOF >> conftest.$ac_ext 6041 {0, (void *) 0} 6042}; 6043 6044/* This works around a problem in FreeBSD linker */ 6045#ifdef FREEBSD_WORKAROUND 6046static const void *lt_preloaded_setup() { 6047 return lt__PROGRAM__LTX_preloaded_symbols; 6048} 6049#endif 6050 6051#ifdef __cplusplus 6052} 6053#endif 6054_LT_EOF 6055 # Now try linking the two files. 6056 mv conftest.$ac_objext conftstm.$ac_objext 6057 lt_save_LIBS="$LIBS" 6058 lt_save_CFLAGS="$CFLAGS" 6059 LIBS="conftstm.$ac_objext" 6060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6062 (eval $ac_link) 2>&5 6063 ac_status=$? 6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6065 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6066 pipe_works=yes 6067 fi 6068 LIBS="$lt_save_LIBS" 6069 CFLAGS="$lt_save_CFLAGS" 6070 else 6071 echo "cannot find nm_test_func in $nlist" >&5 6072 fi 6073 else 6074 echo "cannot find nm_test_var in $nlist" >&5 6075 fi 6076 else 6077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6078 fi 6079 else 6080 echo "$progname: failed program was:" >&5 6081 cat conftest.$ac_ext >&5 6082 fi 6083 rm -rf conftest* conftst* 6084 6085 # Do not use the global_symbol_pipe unless it works. 6086 if test "$pipe_works" = yes; then 6087 break 6088 else 6089 lt_cv_sys_global_symbol_pipe= 6090 fi 6091done 6092 6093fi 6094 6095if test -z "$lt_cv_sys_global_symbol_pipe"; then 6096 lt_cv_sys_global_symbol_to_cdecl= 6097fi 6098if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6100$as_echo "failed" >&6; } 6101else 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6103$as_echo "ok" >&6; } 6104fi 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128# Check whether --enable-libtool-lock was given. 6129if test "${enable_libtool_lock+set}" = set; then : 6130 enableval=$enable_libtool_lock; 6131fi 6132 6133test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6134 6135# Some flags need to be propagated to the compiler or linker for good 6136# libtool support. 6137case $host in 6138ia64-*-hpux*) 6139 # Find out which ABI we are using. 6140 echo 'int i;' > conftest.$ac_ext 6141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6142 (eval $ac_compile) 2>&5 6143 ac_status=$? 6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6145 test $ac_status = 0; }; then 6146 case `/usr/bin/file conftest.$ac_objext` in 6147 *ELF-32*) 6148 HPUX_IA64_MODE="32" 6149 ;; 6150 *ELF-64*) 6151 HPUX_IA64_MODE="64" 6152 ;; 6153 esac 6154 fi 6155 rm -rf conftest* 6156 ;; 6157*-*-irix6*) 6158 # Find out which ABI we are using. 6159 echo '#line 6159 "configure"' > conftest.$ac_ext 6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6161 (eval $ac_compile) 2>&5 6162 ac_status=$? 6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6164 test $ac_status = 0; }; then 6165 if test "$lt_cv_prog_gnu_ld" = yes; then 6166 case `/usr/bin/file conftest.$ac_objext` in 6167 *32-bit*) 6168 LD="${LD-ld} -melf32bsmip" 6169 ;; 6170 *N32*) 6171 LD="${LD-ld} -melf32bmipn32" 6172 ;; 6173 *64-bit*) 6174 LD="${LD-ld} -melf64bmip" 6175 ;; 6176 esac 6177 else 6178 case `/usr/bin/file conftest.$ac_objext` in 6179 *32-bit*) 6180 LD="${LD-ld} -32" 6181 ;; 6182 *N32*) 6183 LD="${LD-ld} -n32" 6184 ;; 6185 *64-bit*) 6186 LD="${LD-ld} -64" 6187 ;; 6188 esac 6189 fi 6190 fi 6191 rm -rf conftest* 6192 ;; 6193 6194x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6195s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6196 # Find out which ABI we are using. 6197 echo 'int i;' > conftest.$ac_ext 6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6199 (eval $ac_compile) 2>&5 6200 ac_status=$? 6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6202 test $ac_status = 0; }; then 6203 case `/usr/bin/file conftest.o` in 6204 *32-bit*) 6205 case $host in 6206 x86_64-*kfreebsd*-gnu) 6207 LD="${LD-ld} -m elf_i386_fbsd" 6208 ;; 6209 x86_64-*linux*) 6210 LD="${LD-ld} -m elf_i386" 6211 ;; 6212 ppc64-*linux*|powerpc64-*linux*) 6213 LD="${LD-ld} -m elf32ppclinux" 6214 ;; 6215 s390x-*linux*) 6216 LD="${LD-ld} -m elf_s390" 6217 ;; 6218 sparc64-*linux*) 6219 LD="${LD-ld} -m elf32_sparc" 6220 ;; 6221 esac 6222 ;; 6223 *64-bit*) 6224 case $host in 6225 x86_64-*kfreebsd*-gnu) 6226 LD="${LD-ld} -m elf_x86_64_fbsd" 6227 ;; 6228 x86_64-*linux*) 6229 LD="${LD-ld} -m elf_x86_64" 6230 ;; 6231 ppc*-*linux*|powerpc*-*linux*) 6232 LD="${LD-ld} -m elf64ppc" 6233 ;; 6234 s390*-*linux*|s390*-*tpf*) 6235 LD="${LD-ld} -m elf64_s390" 6236 ;; 6237 sparc*-*linux*) 6238 LD="${LD-ld} -m elf64_sparc" 6239 ;; 6240 esac 6241 ;; 6242 esac 6243 fi 6244 rm -rf conftest* 6245 ;; 6246 6247*-*-sco3.2v5*) 6248 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6249 SAVE_CFLAGS="$CFLAGS" 6250 CFLAGS="$CFLAGS -belf" 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6252$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6253if test "${lt_cv_cc_needs_belf+set}" = set; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 ac_ext=c 6257ac_cpp='$CPP $CPPFLAGS' 6258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6260ac_compiler_gnu=$ac_cv_c_compiler_gnu 6261 6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6263/* end confdefs.h. */ 6264 6265int 6266main () 6267{ 6268 6269 ; 6270 return 0; 6271} 6272_ACEOF 6273if ac_fn_c_try_link "$LINENO"; then : 6274 lt_cv_cc_needs_belf=yes 6275else 6276 lt_cv_cc_needs_belf=no 6277fi 6278rm -f core conftest.err conftest.$ac_objext \ 6279 conftest$ac_exeext conftest.$ac_ext 6280 ac_ext=c 6281ac_cpp='$CPP $CPPFLAGS' 6282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6284ac_compiler_gnu=$ac_cv_c_compiler_gnu 6285 6286fi 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6288$as_echo "$lt_cv_cc_needs_belf" >&6; } 6289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6291 CFLAGS="$SAVE_CFLAGS" 6292 fi 6293 ;; 6294sparc*-*solaris*) 6295 # Find out which ABI we are using. 6296 echo 'int i;' > conftest.$ac_ext 6297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6298 (eval $ac_compile) 2>&5 6299 ac_status=$? 6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6301 test $ac_status = 0; }; then 6302 case `/usr/bin/file conftest.o` in 6303 *64-bit*) 6304 case $lt_cv_prog_gnu_ld in 6305 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6306 *) 6307 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6308 LD="${LD-ld} -64" 6309 fi 6310 ;; 6311 esac 6312 ;; 6313 esac 6314 fi 6315 rm -rf conftest* 6316 ;; 6317esac 6318 6319need_locks="$enable_libtool_lock" 6320 6321 6322 case $host_os in 6323 rhapsody* | darwin*) 6324 if test -n "$ac_tool_prefix"; then 6325 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6326set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6328$as_echo_n "checking for $ac_word... " >&6; } 6329if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 if test -n "$DSYMUTIL"; then 6333 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6342 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352DSYMUTIL=$ac_cv_prog_DSYMUTIL 6353if test -n "$DSYMUTIL"; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6355$as_echo "$DSYMUTIL" >&6; } 6356else 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358$as_echo "no" >&6; } 6359fi 6360 6361 6362fi 6363if test -z "$ac_cv_prog_DSYMUTIL"; then 6364 ac_ct_DSYMUTIL=$DSYMUTIL 6365 # Extract the first word of "dsymutil", so it can be a program name with args. 6366set dummy dsymutil; ac_word=$2 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6368$as_echo_n "checking for $ac_word... " >&6; } 6369if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -n "$ac_ct_DSYMUTIL"; then 6373 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6374else 6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376for as_dir in $PATH 6377do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6382 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386done 6387 done 6388IFS=$as_save_IFS 6389 6390fi 6391fi 6392ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6393if test -n "$ac_ct_DSYMUTIL"; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6395$as_echo "$ac_ct_DSYMUTIL" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399fi 6400 6401 if test "x$ac_ct_DSYMUTIL" = x; then 6402 DSYMUTIL=":" 6403 else 6404 case $cross_compiling:$ac_tool_warned in 6405yes:) 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6408ac_tool_warned=yes ;; 6409esac 6410 DSYMUTIL=$ac_ct_DSYMUTIL 6411 fi 6412else 6413 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6414fi 6415 6416 if test -n "$ac_tool_prefix"; then 6417 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6418set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420$as_echo_n "checking for $ac_word... " >&6; } 6421if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 if test -n "$NMEDIT"; then 6425 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6426else 6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6428for as_dir in $PATH 6429do 6430 IFS=$as_save_IFS 6431 test -z "$as_dir" && as_dir=. 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6434 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi 6443fi 6444NMEDIT=$ac_cv_prog_NMEDIT 6445if test -n "$NMEDIT"; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6447$as_echo "$NMEDIT" >&6; } 6448else 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6450$as_echo "no" >&6; } 6451fi 6452 6453 6454fi 6455if test -z "$ac_cv_prog_NMEDIT"; then 6456 ac_ct_NMEDIT=$NMEDIT 6457 # Extract the first word of "nmedit", so it can be a program name with args. 6458set dummy nmedit; ac_word=$2 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6460$as_echo_n "checking for $ac_word... " >&6; } 6461if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 if test -n "$ac_ct_NMEDIT"; then 6465 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6466else 6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6468for as_dir in $PATH 6469do 6470 IFS=$as_save_IFS 6471 test -z "$as_dir" && as_dir=. 6472 for ac_exec_ext in '' $ac_executable_extensions; do 6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6474 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6476 break 2 6477 fi 6478done 6479 done 6480IFS=$as_save_IFS 6481 6482fi 6483fi 6484ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6485if test -n "$ac_ct_NMEDIT"; then 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6487$as_echo "$ac_ct_NMEDIT" >&6; } 6488else 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6490$as_echo "no" >&6; } 6491fi 6492 6493 if test "x$ac_ct_NMEDIT" = x; then 6494 NMEDIT=":" 6495 else 6496 case $cross_compiling:$ac_tool_warned in 6497yes:) 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6500ac_tool_warned=yes ;; 6501esac 6502 NMEDIT=$ac_ct_NMEDIT 6503 fi 6504else 6505 NMEDIT="$ac_cv_prog_NMEDIT" 6506fi 6507 6508 if test -n "$ac_tool_prefix"; then 6509 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6510set dummy ${ac_tool_prefix}lipo; ac_word=$2 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6512$as_echo_n "checking for $ac_word... " >&6; } 6513if test "${ac_cv_prog_LIPO+set}" = set; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test -n "$LIPO"; then 6517 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6526 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531 done 6532IFS=$as_save_IFS 6533 6534fi 6535fi 6536LIPO=$ac_cv_prog_LIPO 6537if test -n "$LIPO"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6539$as_echo "$LIPO" >&6; } 6540else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542$as_echo "no" >&6; } 6543fi 6544 6545 6546fi 6547if test -z "$ac_cv_prog_LIPO"; then 6548 ac_ct_LIPO=$LIPO 6549 # Extract the first word of "lipo", so it can be a program name with args. 6550set dummy lipo; ac_word=$2 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6552$as_echo_n "checking for $ac_word... " >&6; } 6553if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 if test -n "$ac_ct_LIPO"; then 6557 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6558else 6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560for as_dir in $PATH 6561do 6562 IFS=$as_save_IFS 6563 test -z "$as_dir" && as_dir=. 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6566 ac_cv_prog_ac_ct_LIPO="lipo" 6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570done 6571 done 6572IFS=$as_save_IFS 6573 6574fi 6575fi 6576ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6577if test -n "$ac_ct_LIPO"; then 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6579$as_echo "$ac_ct_LIPO" >&6; } 6580else 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6582$as_echo "no" >&6; } 6583fi 6584 6585 if test "x$ac_ct_LIPO" = x; then 6586 LIPO=":" 6587 else 6588 case $cross_compiling:$ac_tool_warned in 6589yes:) 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6592ac_tool_warned=yes ;; 6593esac 6594 LIPO=$ac_ct_LIPO 6595 fi 6596else 6597 LIPO="$ac_cv_prog_LIPO" 6598fi 6599 6600 if test -n "$ac_tool_prefix"; then 6601 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6602set dummy ${ac_tool_prefix}otool; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if test "${ac_cv_prog_OTOOL+set}" = set; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$OTOOL"; then 6609 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6618 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628OTOOL=$ac_cv_prog_OTOOL 6629if test -n "$OTOOL"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6631$as_echo "$OTOOL" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 6638fi 6639if test -z "$ac_cv_prog_OTOOL"; then 6640 ac_ct_OTOOL=$OTOOL 6641 # Extract the first word of "otool", so it can be a program name with args. 6642set dummy otool; ac_word=$2 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644$as_echo_n "checking for $ac_word... " >&6; } 6645if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 if test -n "$ac_ct_OTOOL"; then 6649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6658 ac_cv_prog_ac_ct_OTOOL="otool" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6669if test -n "$ac_ct_OTOOL"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6671$as_echo "$ac_ct_OTOOL" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676 6677 if test "x$ac_ct_OTOOL" = x; then 6678 OTOOL=":" 6679 else 6680 case $cross_compiling:$ac_tool_warned in 6681yes:) 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6684ac_tool_warned=yes ;; 6685esac 6686 OTOOL=$ac_ct_OTOOL 6687 fi 6688else 6689 OTOOL="$ac_cv_prog_OTOOL" 6690fi 6691 6692 if test -n "$ac_tool_prefix"; then 6693 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6694set dummy ${ac_tool_prefix}otool64; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$OTOOL64"; then 6701 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6710 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720OTOOL64=$ac_cv_prog_OTOOL64 6721if test -n "$OTOOL64"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6723$as_echo "$OTOOL64" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 6730fi 6731if test -z "$ac_cv_prog_OTOOL64"; then 6732 ac_ct_OTOOL64=$OTOOL64 6733 # Extract the first word of "otool64", so it can be a program name with args. 6734set dummy otool64; ac_word=$2 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736$as_echo_n "checking for $ac_word... " >&6; } 6737if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 if test -n "$ac_ct_OTOOL64"; then 6741 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6742else 6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6750 ac_cv_prog_ac_ct_OTOOL64="otool64" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754done 6755 done 6756IFS=$as_save_IFS 6757 6758fi 6759fi 6760ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6761if test -n "$ac_ct_OTOOL64"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6763$as_echo "$ac_ct_OTOOL64" >&6; } 6764else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6766$as_echo "no" >&6; } 6767fi 6768 6769 if test "x$ac_ct_OTOOL64" = x; then 6770 OTOOL64=":" 6771 else 6772 case $cross_compiling:$ac_tool_warned in 6773yes:) 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6776ac_tool_warned=yes ;; 6777esac 6778 OTOOL64=$ac_ct_OTOOL64 6779 fi 6780else 6781 OTOOL64="$ac_cv_prog_OTOOL64" 6782fi 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6811$as_echo_n "checking for -single_module linker flag... " >&6; } 6812if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 lt_cv_apple_cc_single_mod=no 6816 if test -z "${LT_MULTI_MODULE}"; then 6817 # By default we will add the -single_module flag. You can override 6818 # by either setting the environment variable LT_MULTI_MODULE 6819 # non-empty at configure time, or by adding -multi_module to the 6820 # link flags. 6821 rm -rf libconftest.dylib* 6822 echo "int foo(void){return 1;}" > conftest.c 6823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6824-dynamiclib -Wl,-single_module conftest.c" >&5 6825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6827 _lt_result=$? 6828 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6829 lt_cv_apple_cc_single_mod=yes 6830 else 6831 cat conftest.err >&5 6832 fi 6833 rm -rf libconftest.dylib* 6834 rm -f conftest.* 6835 fi 6836fi 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6838$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6840$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6841if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 lt_cv_ld_exported_symbols_list=no 6845 save_LDFLAGS=$LDFLAGS 6846 echo "_main" > conftest.sym 6847 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850 6851int 6852main () 6853{ 6854 6855 ; 6856 return 0; 6857} 6858_ACEOF 6859if ac_fn_c_try_link "$LINENO"; then : 6860 lt_cv_ld_exported_symbols_list=yes 6861else 6862 lt_cv_ld_exported_symbols_list=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext \ 6865 conftest$ac_exeext conftest.$ac_ext 6866 LDFLAGS="$save_LDFLAGS" 6867 6868fi 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6870$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6871 case $host_os in 6872 rhapsody* | darwin1.[012]) 6873 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6874 darwin1.*) 6875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6876 darwin*) # darwin 5.x on 6877 # if running on 10.5 or later, the deployment target defaults 6878 # to the OS version, if on x86, and 10.4, the deployment 6879 # target defaults to 10.4. Don't you love it? 6880 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6881 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6882 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6883 10.[012]*) 6884 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6885 10.*) 6886 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6887 esac 6888 ;; 6889 esac 6890 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6891 _lt_dar_single_mod='$single_module' 6892 fi 6893 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6894 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6895 else 6896 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6897 fi 6898 if test "$DSYMUTIL" != ":"; then 6899 _lt_dsymutil='~$DSYMUTIL $lib || :' 6900 else 6901 _lt_dsymutil= 6902 fi 6903 ;; 6904 esac 6905 6906 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6908$as_echo_n "checking for ANSI C header files... " >&6; } 6909if test "${ac_cv_header_stdc+set}" = set; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914#include <stdlib.h> 6915#include <stdarg.h> 6916#include <string.h> 6917#include <float.h> 6918 6919int 6920main () 6921{ 6922 6923 ; 6924 return 0; 6925} 6926_ACEOF 6927if ac_fn_c_try_compile "$LINENO"; then : 6928 ac_cv_header_stdc=yes 6929else 6930 ac_cv_header_stdc=no 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6933 6934if test $ac_cv_header_stdc = yes; then 6935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938#include <string.h> 6939 6940_ACEOF 6941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6942 $EGREP "memchr" >/dev/null 2>&1; then : 6943 6944else 6945 ac_cv_header_stdc=no 6946fi 6947rm -f conftest* 6948 6949fi 6950 6951if test $ac_cv_header_stdc = yes; then 6952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955#include <stdlib.h> 6956 6957_ACEOF 6958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6959 $EGREP "free" >/dev/null 2>&1; then : 6960 6961else 6962 ac_cv_header_stdc=no 6963fi 6964rm -f conftest* 6965 6966fi 6967 6968if test $ac_cv_header_stdc = yes; then 6969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6970 if test "$cross_compiling" = yes; then : 6971 : 6972else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975#include <ctype.h> 6976#include <stdlib.h> 6977#if ((' ' & 0x0FF) == 0x020) 6978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6980#else 6981# define ISLOWER(c) \ 6982 (('a' <= (c) && (c) <= 'i') \ 6983 || ('j' <= (c) && (c) <= 'r') \ 6984 || ('s' <= (c) && (c) <= 'z')) 6985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6986#endif 6987 6988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6989int 6990main () 6991{ 6992 int i; 6993 for (i = 0; i < 256; i++) 6994 if (XOR (islower (i), ISLOWER (i)) 6995 || toupper (i) != TOUPPER (i)) 6996 return 2; 6997 return 0; 6998} 6999_ACEOF 7000if ac_fn_c_try_run "$LINENO"; then : 7001 7002else 7003 ac_cv_header_stdc=no 7004fi 7005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7006 conftest.$ac_objext conftest.beam conftest.$ac_ext 7007fi 7008 7009fi 7010fi 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7012$as_echo "$ac_cv_header_stdc" >&6; } 7013if test $ac_cv_header_stdc = yes; then 7014 7015$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7016 7017fi 7018 7019# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7021 inttypes.h stdint.h unistd.h 7022do : 7023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7025" 7026eval as_val=\$$as_ac_Header 7027 if test "x$as_val" = x""yes; then : 7028 cat >>confdefs.h <<_ACEOF 7029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7030_ACEOF 7031 7032fi 7033 7034done 7035 7036 7037for ac_header in dlfcn.h 7038do : 7039 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7040" 7041if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7042 cat >>confdefs.h <<_ACEOF 7043#define HAVE_DLFCN_H 1 7044_ACEOF 7045 7046fi 7047 7048done 7049 7050 7051 7052# Set options 7053 7054 7055 7056 enable_dlopen=no 7057 7058 7059 enable_win32_dll=no 7060 7061 7062 # Check whether --enable-shared was given. 7063if test "${enable_shared+set}" = set; then : 7064 enableval=$enable_shared; p=${PACKAGE-default} 7065 case $enableval in 7066 yes) enable_shared=yes ;; 7067 no) enable_shared=no ;; 7068 *) 7069 enable_shared=no 7070 # Look at the argument we got. We use all the common list separators. 7071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7072 for pkg in $enableval; do 7073 IFS="$lt_save_ifs" 7074 if test "X$pkg" = "X$p"; then 7075 enable_shared=yes 7076 fi 7077 done 7078 IFS="$lt_save_ifs" 7079 ;; 7080 esac 7081else 7082 enable_shared=yes 7083fi 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 # Check whether --enable-static was given. 7094if test "${enable_static+set}" = set; then : 7095 enableval=$enable_static; p=${PACKAGE-default} 7096 case $enableval in 7097 yes) enable_static=yes ;; 7098 no) enable_static=no ;; 7099 *) 7100 enable_static=no 7101 # Look at the argument we got. We use all the common list separators. 7102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7103 for pkg in $enableval; do 7104 IFS="$lt_save_ifs" 7105 if test "X$pkg" = "X$p"; then 7106 enable_static=yes 7107 fi 7108 done 7109 IFS="$lt_save_ifs" 7110 ;; 7111 esac 7112else 7113 enable_static=yes 7114fi 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125# Check whether --with-pic was given. 7126if test "${with_pic+set}" = set; then : 7127 withval=$with_pic; pic_mode="$withval" 7128else 7129 pic_mode=default 7130fi 7131 7132 7133test -z "$pic_mode" && pic_mode=default 7134 7135 7136 7137 7138 7139 7140 7141 # Check whether --enable-fast-install was given. 7142if test "${enable_fast_install+set}" = set; then : 7143 enableval=$enable_fast_install; p=${PACKAGE-default} 7144 case $enableval in 7145 yes) enable_fast_install=yes ;; 7146 no) enable_fast_install=no ;; 7147 *) 7148 enable_fast_install=no 7149 # Look at the argument we got. We use all the common list separators. 7150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7151 for pkg in $enableval; do 7152 IFS="$lt_save_ifs" 7153 if test "X$pkg" = "X$p"; then 7154 enable_fast_install=yes 7155 fi 7156 done 7157 IFS="$lt_save_ifs" 7158 ;; 7159 esac 7160else 7161 enable_fast_install=yes 7162fi 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174# This can be used to rebuild libtool when needed 7175LIBTOOL_DEPS="$ltmain" 7176 7177# Always use our own libtool. 7178LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204test -z "$LN_S" && LN_S="ln -s" 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219if test -n "${ZSH_VERSION+set}" ; then 7220 setopt NO_GLOB_SUBST 7221fi 7222 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7224$as_echo_n "checking for objdir... " >&6; } 7225if test "${lt_cv_objdir+set}" = set; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 rm -f .libs 2>/dev/null 7229mkdir .libs 2>/dev/null 7230if test -d .libs; then 7231 lt_cv_objdir=.libs 7232else 7233 # MS-DOS does not allow filenames that begin with a dot. 7234 lt_cv_objdir=_libs 7235fi 7236rmdir .libs 2>/dev/null 7237fi 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7239$as_echo "$lt_cv_objdir" >&6; } 7240objdir=$lt_cv_objdir 7241 7242 7243 7244 7245 7246cat >>confdefs.h <<_ACEOF 7247#define LT_OBJDIR "$lt_cv_objdir/" 7248_ACEOF 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266case $host_os in 7267aix3*) 7268 # AIX sometimes has problems with the GCC collect2 program. For some 7269 # reason, if we set the COLLECT_NAMES environment variable, the problems 7270 # vanish in a puff of smoke. 7271 if test "X${COLLECT_NAMES+set}" != Xset; then 7272 COLLECT_NAMES= 7273 export COLLECT_NAMES 7274 fi 7275 ;; 7276esac 7277 7278# Sed substitution that helps us do robust quoting. It backslashifies 7279# metacharacters that are still active within double-quoted strings. 7280sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7281 7282# Same as above, but do not quote variable references. 7283double_quote_subst='s/\(["`\\]\)/\\\1/g' 7284 7285# Sed substitution to delay expansion of an escaped shell variable in a 7286# double_quote_subst'ed string. 7287delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7288 7289# Sed substitution to delay expansion of an escaped single quote. 7290delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7291 7292# Sed substitution to avoid accidental globbing in evaled expressions 7293no_glob_subst='s/\*/\\\*/g' 7294 7295# Global variables: 7296ofile=libtool 7297can_build_shared=yes 7298 7299# All known linkers require a `.a' archive for static linking (except MSVC, 7300# which needs '.lib'). 7301libext=a 7302 7303with_gnu_ld="$lt_cv_prog_gnu_ld" 7304 7305old_CC="$CC" 7306old_CFLAGS="$CFLAGS" 7307 7308# Set sane defaults for various variables 7309test -z "$CC" && CC=cc 7310test -z "$LTCC" && LTCC=$CC 7311test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7312test -z "$LD" && LD=ld 7313test -z "$ac_objext" && ac_objext=o 7314 7315for cc_temp in $compiler""; do 7316 case $cc_temp in 7317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7319 \-*) ;; 7320 *) break;; 7321 esac 7322done 7323cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7324 7325 7326# Only perform the check for file, if the check method requires it 7327test -z "$MAGIC_CMD" && MAGIC_CMD=file 7328case $deplibs_check_method in 7329file_magic*) 7330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7332$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7333if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 case $MAGIC_CMD in 7337[\\/*] | ?:[\\/]*) 7338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7339 ;; 7340*) 7341 lt_save_MAGIC_CMD="$MAGIC_CMD" 7342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7344 for ac_dir in $ac_dummy; do 7345 IFS="$lt_save_ifs" 7346 test -z "$ac_dir" && ac_dir=. 7347 if test -f $ac_dir/${ac_tool_prefix}file; then 7348 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7349 if test -n "$file_magic_test_file"; then 7350 case $deplibs_check_method in 7351 "file_magic "*) 7352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7355 $EGREP "$file_magic_regex" > /dev/null; then 7356 : 7357 else 7358 cat <<_LT_EOF 1>&2 7359 7360*** Warning: the command libtool uses to detect shared libraries, 7361*** $file_magic_cmd, produces output that libtool cannot recognize. 7362*** The result is that libtool may fail to recognize shared libraries 7363*** as such. This will affect the creation of libtool libraries that 7364*** depend on shared libraries, but programs linked with such libtool 7365*** libraries will work regardless of this problem. Nevertheless, you 7366*** may want to report the problem to your system manager and/or to 7367*** bug-libtool@gnu.org 7368 7369_LT_EOF 7370 fi ;; 7371 esac 7372 fi 7373 break 7374 fi 7375 done 7376 IFS="$lt_save_ifs" 7377 MAGIC_CMD="$lt_save_MAGIC_CMD" 7378 ;; 7379esac 7380fi 7381 7382MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7383if test -n "$MAGIC_CMD"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7385$as_echo "$MAGIC_CMD" >&6; } 7386else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388$as_echo "no" >&6; } 7389fi 7390 7391 7392 7393 7394 7395if test -z "$lt_cv_path_MAGIC_CMD"; then 7396 if test -n "$ac_tool_prefix"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7398$as_echo_n "checking for file... " >&6; } 7399if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 case $MAGIC_CMD in 7403[\\/*] | ?:[\\/]*) 7404 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7405 ;; 7406*) 7407 lt_save_MAGIC_CMD="$MAGIC_CMD" 7408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7410 for ac_dir in $ac_dummy; do 7411 IFS="$lt_save_ifs" 7412 test -z "$ac_dir" && ac_dir=. 7413 if test -f $ac_dir/file; then 7414 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7415 if test -n "$file_magic_test_file"; then 7416 case $deplibs_check_method in 7417 "file_magic "*) 7418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7421 $EGREP "$file_magic_regex" > /dev/null; then 7422 : 7423 else 7424 cat <<_LT_EOF 1>&2 7425 7426*** Warning: the command libtool uses to detect shared libraries, 7427*** $file_magic_cmd, produces output that libtool cannot recognize. 7428*** The result is that libtool may fail to recognize shared libraries 7429*** as such. This will affect the creation of libtool libraries that 7430*** depend on shared libraries, but programs linked with such libtool 7431*** libraries will work regardless of this problem. Nevertheless, you 7432*** may want to report the problem to your system manager and/or to 7433*** bug-libtool@gnu.org 7434 7435_LT_EOF 7436 fi ;; 7437 esac 7438 fi 7439 break 7440 fi 7441 done 7442 IFS="$lt_save_ifs" 7443 MAGIC_CMD="$lt_save_MAGIC_CMD" 7444 ;; 7445esac 7446fi 7447 7448MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7449if test -n "$MAGIC_CMD"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7451$as_echo "$MAGIC_CMD" >&6; } 7452else 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7454$as_echo "no" >&6; } 7455fi 7456 7457 7458 else 7459 MAGIC_CMD=: 7460 fi 7461fi 7462 7463 fi 7464 ;; 7465esac 7466 7467# Use C for the default configuration in the libtool script 7468 7469lt_save_CC="$CC" 7470ac_ext=c 7471ac_cpp='$CPP $CPPFLAGS' 7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7474ac_compiler_gnu=$ac_cv_c_compiler_gnu 7475 7476 7477# Source file extension for C test sources. 7478ac_ext=c 7479 7480# Object file extension for compiled C test sources. 7481objext=o 7482objext=$objext 7483 7484# Code to be used in simple compile tests 7485lt_simple_compile_test_code="int some_variable = 0;" 7486 7487# Code to be used in simple link tests 7488lt_simple_link_test_code='int main(){return(0);}' 7489 7490 7491 7492 7493 7494 7495 7496# If no C compiler was specified, use CC. 7497LTCC=${LTCC-"$CC"} 7498 7499# If no C compiler flags were specified, use CFLAGS. 7500LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7501 7502# Allow CC to be a program name with arguments. 7503compiler=$CC 7504 7505# Save the default compiler, since it gets overwritten when the other 7506# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7507compiler_DEFAULT=$CC 7508 7509# save warnings/boilerplate of simple test code 7510ac_outfile=conftest.$ac_objext 7511echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7512eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7513_lt_compiler_boilerplate=`cat conftest.err` 7514$RM conftest* 7515 7516ac_outfile=conftest.$ac_objext 7517echo "$lt_simple_link_test_code" >conftest.$ac_ext 7518eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7519_lt_linker_boilerplate=`cat conftest.err` 7520$RM -r conftest* 7521 7522 7523if test -n "$compiler"; then 7524 7525lt_prog_compiler_no_builtin_flag= 7526 7527if test "$GCC" = yes; then 7528 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7529 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7531$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7532if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 lt_cv_prog_compiler_rtti_exceptions=no 7536 ac_outfile=conftest.$ac_objext 7537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7538 lt_compiler_flag="-fno-rtti -fno-exceptions" 7539 # Insert the option either (1) after the last *FLAGS variable, or 7540 # (2) before a word containing "conftest.", or (3) at the end. 7541 # Note that $ac_compile itself does not contain backslashes and begins 7542 # with a dollar sign (not a hyphen), so the echo should work correctly. 7543 # The option is referenced via a variable to avoid confusing sed. 7544 lt_compile=`echo "$ac_compile" | $SED \ 7545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7547 -e 's:$: $lt_compiler_flag:'` 7548 (eval echo "\"\$as_me:7548: $lt_compile\"" >&5) 7549 (eval "$lt_compile" 2>conftest.err) 7550 ac_status=$? 7551 cat conftest.err >&5 7552 echo "$as_me:7552: \$? = $ac_status" >&5 7553 if (exit $ac_status) && test -s "$ac_outfile"; then 7554 # The compiler can only warn and ignore the option if not recognized 7555 # So say no if there are warnings other than the usual output. 7556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7559 lt_cv_prog_compiler_rtti_exceptions=yes 7560 fi 7561 fi 7562 $RM conftest* 7563 7564fi 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7566$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7567 7568if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7569 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7570else 7571 : 7572fi 7573 7574fi 7575 7576 7577 7578 7579 7580 7581 lt_prog_compiler_wl= 7582lt_prog_compiler_pic= 7583lt_prog_compiler_static= 7584 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7586$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7587 7588 if test "$GCC" = yes; then 7589 lt_prog_compiler_wl='-Wl,' 7590 lt_prog_compiler_static='-static' 7591 7592 case $host_os in 7593 aix*) 7594 # All AIX code is PIC. 7595 if test "$host_cpu" = ia64; then 7596 # AIX 5 now supports IA64 processor 7597 lt_prog_compiler_static='-Bstatic' 7598 fi 7599 ;; 7600 7601 amigaos*) 7602 case $host_cpu in 7603 powerpc) 7604 # see comment about AmigaOS4 .so support 7605 lt_prog_compiler_pic='-fPIC' 7606 ;; 7607 m68k) 7608 # FIXME: we need at least 68020 code to build shared libraries, but 7609 # adding the `-m68020' flag to GCC prevents building anything better, 7610 # like `-m68040'. 7611 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7612 ;; 7613 esac 7614 ;; 7615 7616 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7617 # PIC is the default for these OSes. 7618 ;; 7619 7620 mingw* | cygwin* | pw32* | os2* | cegcc*) 7621 # This hack is so that the source file can tell whether it is being 7622 # built for inclusion in a dll (and should export symbols for example). 7623 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7624 # (--disable-auto-import) libraries 7625 lt_prog_compiler_pic='-DDLL_EXPORT' 7626 ;; 7627 7628 darwin* | rhapsody*) 7629 # PIC is the default on this platform 7630 # Common symbols not allowed in MH_DYLIB files 7631 lt_prog_compiler_pic='-fno-common' 7632 ;; 7633 7634 hpux*) 7635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7637 # sets the default TLS model and affects inlining. 7638 case $host_cpu in 7639 hppa*64*) 7640 # +Z the default 7641 ;; 7642 *) 7643 lt_prog_compiler_pic='-fPIC' 7644 ;; 7645 esac 7646 ;; 7647 7648 interix[3-9]*) 7649 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7650 # Instead, we relocate shared libraries at runtime. 7651 ;; 7652 7653 msdosdjgpp*) 7654 # Just because we use GCC doesn't mean we suddenly get shared libraries 7655 # on systems that don't support them. 7656 lt_prog_compiler_can_build_shared=no 7657 enable_shared=no 7658 ;; 7659 7660 *nto* | *qnx*) 7661 # QNX uses GNU C++, but need to define -shared option too, otherwise 7662 # it will coredump. 7663 lt_prog_compiler_pic='-fPIC -shared' 7664 ;; 7665 7666 sysv4*MP*) 7667 if test -d /usr/nec; then 7668 lt_prog_compiler_pic=-Kconform_pic 7669 fi 7670 ;; 7671 7672 *) 7673 lt_prog_compiler_pic='-fPIC' 7674 ;; 7675 esac 7676 else 7677 # PORTME Check for flag to pass linker flags through the system compiler. 7678 case $host_os in 7679 aix*) 7680 lt_prog_compiler_wl='-Wl,' 7681 if test "$host_cpu" = ia64; then 7682 # AIX 5 now supports IA64 processor 7683 lt_prog_compiler_static='-Bstatic' 7684 else 7685 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7686 fi 7687 ;; 7688 7689 mingw* | cygwin* | pw32* | os2* | cegcc*) 7690 # This hack is so that the source file can tell whether it is being 7691 # built for inclusion in a dll (and should export symbols for example). 7692 lt_prog_compiler_pic='-DDLL_EXPORT' 7693 ;; 7694 7695 hpux9* | hpux10* | hpux11*) 7696 lt_prog_compiler_wl='-Wl,' 7697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7698 # not for PA HP-UX. 7699 case $host_cpu in 7700 hppa*64*|ia64*) 7701 # +Z the default 7702 ;; 7703 *) 7704 lt_prog_compiler_pic='+Z' 7705 ;; 7706 esac 7707 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7708 lt_prog_compiler_static='${wl}-a ${wl}archive' 7709 ;; 7710 7711 irix5* | irix6* | nonstopux*) 7712 lt_prog_compiler_wl='-Wl,' 7713 # PIC (with -KPIC) is the default. 7714 lt_prog_compiler_static='-non_shared' 7715 ;; 7716 7717 linux* | k*bsd*-gnu) 7718 case $cc_basename in 7719 # old Intel for x86_64 which still supported -KPIC. 7720 ecc*) 7721 lt_prog_compiler_wl='-Wl,' 7722 lt_prog_compiler_pic='-KPIC' 7723 lt_prog_compiler_static='-static' 7724 ;; 7725 # icc used to be incompatible with GCC. 7726 # ICC 10 doesn't accept -KPIC any more. 7727 icc* | ifort*) 7728 lt_prog_compiler_wl='-Wl,' 7729 lt_prog_compiler_pic='-fPIC' 7730 lt_prog_compiler_static='-static' 7731 ;; 7732 # Lahey Fortran 8.1. 7733 lf95*) 7734 lt_prog_compiler_wl='-Wl,' 7735 lt_prog_compiler_pic='--shared' 7736 lt_prog_compiler_static='--static' 7737 ;; 7738 pgcc* | pgf77* | pgf90* | pgf95*) 7739 # Portland Group compilers (*not* the Pentium gcc compiler, 7740 # which looks to be a dead project) 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_pic='-fpic' 7743 lt_prog_compiler_static='-Bstatic' 7744 ;; 7745 ccc*) 7746 lt_prog_compiler_wl='-Wl,' 7747 # All Alpha code is PIC. 7748 lt_prog_compiler_static='-non_shared' 7749 ;; 7750 xl*) 7751 # IBM XL C 8.0/Fortran 10.1 on PPC 7752 lt_prog_compiler_wl='-Wl,' 7753 lt_prog_compiler_pic='-qpic' 7754 lt_prog_compiler_static='-qstaticlink' 7755 ;; 7756 *) 7757 case `$CC -V 2>&1 | sed 5q` in 7758 *Sun\ C*) 7759 # Sun C 5.9 7760 lt_prog_compiler_pic='-KPIC' 7761 lt_prog_compiler_static='-Bstatic' 7762 lt_prog_compiler_wl='-Wl,' 7763 ;; 7764 *Sun\ F*) 7765 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7766 lt_prog_compiler_pic='-KPIC' 7767 lt_prog_compiler_static='-Bstatic' 7768 lt_prog_compiler_wl='' 7769 ;; 7770 esac 7771 ;; 7772 esac 7773 ;; 7774 7775 newsos6) 7776 lt_prog_compiler_pic='-KPIC' 7777 lt_prog_compiler_static='-Bstatic' 7778 ;; 7779 7780 *nto* | *qnx*) 7781 # QNX uses GNU C++, but need to define -shared option too, otherwise 7782 # it will coredump. 7783 lt_prog_compiler_pic='-fPIC -shared' 7784 ;; 7785 7786 osf3* | osf4* | osf5*) 7787 lt_prog_compiler_wl='-Wl,' 7788 # All OSF/1 code is PIC. 7789 lt_prog_compiler_static='-non_shared' 7790 ;; 7791 7792 rdos*) 7793 lt_prog_compiler_static='-non_shared' 7794 ;; 7795 7796 solaris*) 7797 lt_prog_compiler_pic='-KPIC' 7798 lt_prog_compiler_static='-Bstatic' 7799 case $cc_basename in 7800 f77* | f90* | f95*) 7801 lt_prog_compiler_wl='-Qoption ld ';; 7802 *) 7803 lt_prog_compiler_wl='-Wl,';; 7804 esac 7805 ;; 7806 7807 sunos4*) 7808 lt_prog_compiler_wl='-Qoption ld ' 7809 lt_prog_compiler_pic='-PIC' 7810 lt_prog_compiler_static='-Bstatic' 7811 ;; 7812 7813 sysv4 | sysv4.2uw2* | sysv4.3*) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 sysv4*MP*) 7820 if test -d /usr/nec ;then 7821 lt_prog_compiler_pic='-Kconform_pic' 7822 lt_prog_compiler_static='-Bstatic' 7823 fi 7824 ;; 7825 7826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7827 lt_prog_compiler_wl='-Wl,' 7828 lt_prog_compiler_pic='-KPIC' 7829 lt_prog_compiler_static='-Bstatic' 7830 ;; 7831 7832 unicos*) 7833 lt_prog_compiler_wl='-Wl,' 7834 lt_prog_compiler_can_build_shared=no 7835 ;; 7836 7837 uts4*) 7838 lt_prog_compiler_pic='-pic' 7839 lt_prog_compiler_static='-Bstatic' 7840 ;; 7841 7842 *) 7843 lt_prog_compiler_can_build_shared=no 7844 ;; 7845 esac 7846 fi 7847 7848case $host_os in 7849 # For platforms which do not support PIC, -DPIC is meaningless: 7850 *djgpp*) 7851 lt_prog_compiler_pic= 7852 ;; 7853 *) 7854 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7855 ;; 7856esac 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7858$as_echo "$lt_prog_compiler_pic" >&6; } 7859 7860 7861 7862 7863 7864 7865# 7866# Check to make sure the PIC flag actually works. 7867# 7868if test -n "$lt_prog_compiler_pic"; then 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7870$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7871if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 lt_cv_prog_compiler_pic_works=no 7875 ac_outfile=conftest.$ac_objext 7876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7878 # Insert the option either (1) after the last *FLAGS variable, or 7879 # (2) before a word containing "conftest.", or (3) at the end. 7880 # Note that $ac_compile itself does not contain backslashes and begins 7881 # with a dollar sign (not a hyphen), so the echo should work correctly. 7882 # The option is referenced via a variable to avoid confusing sed. 7883 lt_compile=`echo "$ac_compile" | $SED \ 7884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7886 -e 's:$: $lt_compiler_flag:'` 7887 (eval echo "\"\$as_me:7887: $lt_compile\"" >&5) 7888 (eval "$lt_compile" 2>conftest.err) 7889 ac_status=$? 7890 cat conftest.err >&5 7891 echo "$as_me:7891: \$? = $ac_status" >&5 7892 if (exit $ac_status) && test -s "$ac_outfile"; then 7893 # The compiler can only warn and ignore the option if not recognized 7894 # So say no if there are warnings other than the usual output. 7895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7898 lt_cv_prog_compiler_pic_works=yes 7899 fi 7900 fi 7901 $RM conftest* 7902 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7905$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7906 7907if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7908 case $lt_prog_compiler_pic in 7909 "" | " "*) ;; 7910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7911 esac 7912else 7913 lt_prog_compiler_pic= 7914 lt_prog_compiler_can_build_shared=no 7915fi 7916 7917fi 7918 7919 7920 7921 7922 7923 7924# 7925# Check to make sure the static flag actually works. 7926# 7927wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7929$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7930if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 lt_cv_prog_compiler_static_works=no 7934 save_LDFLAGS="$LDFLAGS" 7935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7936 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7938 # The linker can only warn and ignore the option if not recognized 7939 # So say no if there are warnings 7940 if test -s conftest.err; then 7941 # Append any errors to the config.log. 7942 cat conftest.err 1>&5 7943 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7945 if diff conftest.exp conftest.er2 >/dev/null; then 7946 lt_cv_prog_compiler_static_works=yes 7947 fi 7948 else 7949 lt_cv_prog_compiler_static_works=yes 7950 fi 7951 fi 7952 $RM -r conftest* 7953 LDFLAGS="$save_LDFLAGS" 7954 7955fi 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7957$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7958 7959if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7960 : 7961else 7962 lt_prog_compiler_static= 7963fi 7964 7965 7966 7967 7968 7969 7970 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7972$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7973if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 lt_cv_prog_compiler_c_o=no 7977 $RM -r conftest 2>/dev/null 7978 mkdir conftest 7979 cd conftest 7980 mkdir out 7981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7982 7983 lt_compiler_flag="-o out/conftest2.$ac_objext" 7984 # Insert the option either (1) after the last *FLAGS variable, or 7985 # (2) before a word containing "conftest.", or (3) at the end. 7986 # Note that $ac_compile itself does not contain backslashes and begins 7987 # with a dollar sign (not a hyphen), so the echo should work correctly. 7988 lt_compile=`echo "$ac_compile" | $SED \ 7989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7991 -e 's:$: $lt_compiler_flag:'` 7992 (eval echo "\"\$as_me:7992: $lt_compile\"" >&5) 7993 (eval "$lt_compile" 2>out/conftest.err) 7994 ac_status=$? 7995 cat out/conftest.err >&5 7996 echo "$as_me:7996: \$? = $ac_status" >&5 7997 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7998 then 7999 # The compiler can only warn and ignore the option if not recognized 8000 # So say no if there are warnings 8001 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8004 lt_cv_prog_compiler_c_o=yes 8005 fi 8006 fi 8007 chmod u+w . 2>&5 8008 $RM conftest* 8009 # SGI C++ compiler will create directory out/ii_files/ for 8010 # template instantiation 8011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8012 $RM out/* && rmdir out 8013 cd .. 8014 $RM -r conftest 8015 $RM conftest* 8016 8017fi 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8019$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8020 8021 8022 8023 8024 8025 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8027$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8028if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8029 $as_echo_n "(cached) " >&6 8030else 8031 lt_cv_prog_compiler_c_o=no 8032 $RM -r conftest 2>/dev/null 8033 mkdir conftest 8034 cd conftest 8035 mkdir out 8036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8037 8038 lt_compiler_flag="-o out/conftest2.$ac_objext" 8039 # Insert the option either (1) after the last *FLAGS variable, or 8040 # (2) before a word containing "conftest.", or (3) at the end. 8041 # Note that $ac_compile itself does not contain backslashes and begins 8042 # with a dollar sign (not a hyphen), so the echo should work correctly. 8043 lt_compile=`echo "$ac_compile" | $SED \ 8044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8046 -e 's:$: $lt_compiler_flag:'` 8047 (eval echo "\"\$as_me:8047: $lt_compile\"" >&5) 8048 (eval "$lt_compile" 2>out/conftest.err) 8049 ac_status=$? 8050 cat out/conftest.err >&5 8051 echo "$as_me:8051: \$? = $ac_status" >&5 8052 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8053 then 8054 # The compiler can only warn and ignore the option if not recognized 8055 # So say no if there are warnings 8056 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8059 lt_cv_prog_compiler_c_o=yes 8060 fi 8061 fi 8062 chmod u+w . 2>&5 8063 $RM conftest* 8064 # SGI C++ compiler will create directory out/ii_files/ for 8065 # template instantiation 8066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8067 $RM out/* && rmdir out 8068 cd .. 8069 $RM -r conftest 8070 $RM conftest* 8071 8072fi 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8074$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8075 8076 8077 8078 8079hard_links="nottested" 8080if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8081 # do not overwrite the value of need_locks provided by the user 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8083$as_echo_n "checking if we can lock with hard links... " >&6; } 8084 hard_links=yes 8085 $RM conftest* 8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8087 touch conftest.a 8088 ln conftest.a conftest.b 2>&5 || hard_links=no 8089 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8091$as_echo "$hard_links" >&6; } 8092 if test "$hard_links" = no; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8094$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8095 need_locks=warn 8096 fi 8097else 8098 need_locks=no 8099fi 8100 8101 8102 8103 8104 8105 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8107$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8108 8109 runpath_var= 8110 allow_undefined_flag= 8111 always_export_symbols=no 8112 archive_cmds= 8113 archive_expsym_cmds= 8114 compiler_needs_object=no 8115 enable_shared_with_static_runtimes=no 8116 export_dynamic_flag_spec= 8117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8118 hardcode_automatic=no 8119 hardcode_direct=no 8120 hardcode_direct_absolute=no 8121 hardcode_libdir_flag_spec= 8122 hardcode_libdir_flag_spec_ld= 8123 hardcode_libdir_separator= 8124 hardcode_minus_L=no 8125 hardcode_shlibpath_var=unsupported 8126 inherit_rpath=no 8127 link_all_deplibs=unknown 8128 module_cmds= 8129 module_expsym_cmds= 8130 old_archive_from_new_cmds= 8131 old_archive_from_expsyms_cmds= 8132 thread_safe_flag_spec= 8133 whole_archive_flag_spec= 8134 # include_expsyms should be a list of space-separated symbols to be *always* 8135 # included in the symbol list 8136 include_expsyms= 8137 # exclude_expsyms can be an extended regexp of symbols to exclude 8138 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8140 # as well as any symbol that contains `d'. 8141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8143 # platforms (ab)use it in PIC code, but their linkers get confused if 8144 # the symbol is explicitly referenced. Since portable code cannot 8145 # rely on this symbol name, it's probably fine to never include it in 8146 # preloaded symbol tables. 8147 # Exclude shared library initialization/finalization symbols. 8148 extract_expsyms_cmds= 8149 8150 case $host_os in 8151 cygwin* | mingw* | pw32* | cegcc*) 8152 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8153 # When not using gcc, we currently assume that we are using 8154 # Microsoft Visual C++. 8155 if test "$GCC" != yes; then 8156 with_gnu_ld=no 8157 fi 8158 ;; 8159 interix*) 8160 # we just hope/assume this is gcc and not c89 (= MSVC++) 8161 with_gnu_ld=yes 8162 ;; 8163 openbsd*) 8164 with_gnu_ld=no 8165 ;; 8166 esac 8167 8168 ld_shlibs=yes 8169 if test "$with_gnu_ld" = yes; then 8170 # If archive_cmds runs LD, not CC, wlarc should be empty 8171 wlarc='${wl}' 8172 8173 # Set some defaults for GNU ld with shared library support. These 8174 # are reset later if shared libraries are not supported. Putting them 8175 # here allows them to be overridden if necessary. 8176 runpath_var=LD_RUN_PATH 8177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8178 export_dynamic_flag_spec='${wl}--export-dynamic' 8179 # ancient GNU ld didn't support --whole-archive et. al. 8180 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8181 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8182 else 8183 whole_archive_flag_spec= 8184 fi 8185 supports_anon_versioning=no 8186 case `$LD -v 2>&1` in 8187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8190 *\ 2.11.*) ;; # other 2.11 versions 8191 *) supports_anon_versioning=yes ;; 8192 esac 8193 8194 # See if GNU ld supports shared libraries. 8195 case $host_os in 8196 aix[3-9]*) 8197 # On AIX/PPC, the GNU linker is very broken 8198 if test "$host_cpu" != ia64; then 8199 ld_shlibs=no 8200 cat <<_LT_EOF 1>&2 8201 8202*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8203*** to be unable to reliably create shared libraries on AIX. 8204*** Therefore, libtool is disabling shared libraries support. If you 8205*** really care for shared libraries, you may want to modify your PATH 8206*** so that a non-GNU linker is found, and then restart. 8207 8208_LT_EOF 8209 fi 8210 ;; 8211 8212 amigaos*) 8213 case $host_cpu in 8214 powerpc) 8215 # see comment about AmigaOS4 .so support 8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8217 archive_expsym_cmds='' 8218 ;; 8219 m68k) 8220 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)' 8221 hardcode_libdir_flag_spec='-L$libdir' 8222 hardcode_minus_L=yes 8223 ;; 8224 esac 8225 ;; 8226 8227 beos*) 8228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8229 allow_undefined_flag=unsupported 8230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8231 # support --undefined. This deserves some investigation. FIXME 8232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8233 else 8234 ld_shlibs=no 8235 fi 8236 ;; 8237 8238 cygwin* | mingw* | pw32* | cegcc*) 8239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8240 # as there is no search path for DLLs. 8241 hardcode_libdir_flag_spec='-L$libdir' 8242 allow_undefined_flag=unsupported 8243 always_export_symbols=no 8244 enable_shared_with_static_runtimes=yes 8245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8246 8247 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8249 # If the export-symbols file already is a .def file (1st line 8250 # is EXPORTS), use it as is; otherwise, prepend... 8251 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8252 cp $export_symbols $output_objdir/$soname.def; 8253 else 8254 echo EXPORTS > $output_objdir/$soname.def; 8255 cat $export_symbols >> $output_objdir/$soname.def; 8256 fi~ 8257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8258 else 8259 ld_shlibs=no 8260 fi 8261 ;; 8262 8263 interix[3-9]*) 8264 hardcode_direct=no 8265 hardcode_shlibpath_var=no 8266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8267 export_dynamic_flag_spec='${wl}-E' 8268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8269 # Instead, shared libraries are loaded at an image base (0x10000000 by 8270 # default) and relocated if they conflict, which is a slow very memory 8271 # consuming and fragmenting process. To avoid this, we pick a random, 8272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8273 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8275 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' 8276 ;; 8277 8278 gnu* | linux* | tpf* | k*bsd*-gnu) 8279 tmp_diet=no 8280 if test "$host_os" = linux-dietlibc; then 8281 case $cc_basename in 8282 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8283 esac 8284 fi 8285 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8286 && test "$tmp_diet" = no 8287 then 8288 tmp_addflag= 8289 tmp_sharedflag='-shared' 8290 case $cc_basename,$host_cpu in 8291 pgcc*) # Portland Group C compiler 8292 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' 8293 tmp_addflag=' $pic_flag' 8294 ;; 8295 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8296 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' 8297 tmp_addflag=' $pic_flag -Mnomain' ;; 8298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8299 tmp_addflag=' -i_dynamic' ;; 8300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8301 tmp_addflag=' -i_dynamic -nofor_main' ;; 8302 ifc* | ifort*) # Intel Fortran compiler 8303 tmp_addflag=' -nofor_main' ;; 8304 lf95*) # Lahey Fortran 8.1 8305 whole_archive_flag_spec= 8306 tmp_sharedflag='--shared' ;; 8307 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8308 tmp_sharedflag='-qmkshrobj' 8309 tmp_addflag= ;; 8310 esac 8311 case `$CC -V 2>&1 | sed 5q` in 8312 *Sun\ C*) # Sun C 5.9 8313 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' 8314 compiler_needs_object=yes 8315 tmp_sharedflag='-G' ;; 8316 *Sun\ F*) # Sun Fortran 8.3 8317 tmp_sharedflag='-G' ;; 8318 esac 8319 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8320 8321 if test "x$supports_anon_versioning" = xyes; then 8322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8324 echo "local: *; };" >> $output_objdir/$libname.ver~ 8325 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8326 fi 8327 8328 case $cc_basename in 8329 xlf*) 8330 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8331 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8332 hardcode_libdir_flag_spec= 8333 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8334 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8335 if test "x$supports_anon_versioning" = xyes; then 8336 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8338 echo "local: *; };" >> $output_objdir/$libname.ver~ 8339 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8340 fi 8341 ;; 8342 esac 8343 else 8344 ld_shlibs=no 8345 fi 8346 ;; 8347 8348 netbsd*) 8349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8351 wlarc= 8352 else 8353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8355 fi 8356 ;; 8357 8358 solaris*) 8359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8360 ld_shlibs=no 8361 cat <<_LT_EOF 1>&2 8362 8363*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8364*** create shared libraries on Solaris systems. Therefore, libtool 8365*** is disabling shared libraries support. We urge you to upgrade GNU 8366*** binutils to release 2.9.1 or newer. Another option is to modify 8367*** your PATH or compiler configuration so that the native linker is 8368*** used, and then restart. 8369 8370_LT_EOF 8371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8374 else 8375 ld_shlibs=no 8376 fi 8377 ;; 8378 8379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8380 case `$LD -v 2>&1` in 8381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8382 ld_shlibs=no 8383 cat <<_LT_EOF 1>&2 8384 8385*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8386*** reliably create shared libraries on SCO systems. Therefore, libtool 8387*** is disabling shared libraries support. We urge you to upgrade GNU 8388*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8389*** your PATH or compiler configuration so that the native linker is 8390*** used, and then restart. 8391 8392_LT_EOF 8393 ;; 8394 *) 8395 # For security reasons, it is highly recommended that you always 8396 # use absolute paths for naming shared libraries, and exclude the 8397 # DT_RUNPATH tag from executables and libraries. But doing so 8398 # requires that you compile everything twice, which is a pain. 8399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8403 else 8404 ld_shlibs=no 8405 fi 8406 ;; 8407 esac 8408 ;; 8409 8410 sunos4*) 8411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8412 wlarc= 8413 hardcode_direct=yes 8414 hardcode_shlibpath_var=no 8415 ;; 8416 8417 *) 8418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8421 else 8422 ld_shlibs=no 8423 fi 8424 ;; 8425 esac 8426 8427 if test "$ld_shlibs" = no; then 8428 runpath_var= 8429 hardcode_libdir_flag_spec= 8430 export_dynamic_flag_spec= 8431 whole_archive_flag_spec= 8432 fi 8433 else 8434 # PORTME fill in a description of your system's linker (not GNU ld) 8435 case $host_os in 8436 aix3*) 8437 allow_undefined_flag=unsupported 8438 always_export_symbols=yes 8439 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' 8440 # Note: this linker hardcodes the directories in LIBPATH if there 8441 # are no directories specified by -L. 8442 hardcode_minus_L=yes 8443 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8444 # Neither direct hardcoding nor static linking is supported with a 8445 # broken collect2. 8446 hardcode_direct=unsupported 8447 fi 8448 ;; 8449 8450 aix[4-9]*) 8451 if test "$host_cpu" = ia64; then 8452 # On IA64, the linker does run time linking by default, so we don't 8453 # have to do anything special. 8454 aix_use_runtimelinking=no 8455 exp_sym_flag='-Bexport' 8456 no_entry_flag="" 8457 else 8458 # If we're using GNU nm, then we don't want the "-C" option. 8459 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8460 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8461 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' 8462 else 8463 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' 8464 fi 8465 aix_use_runtimelinking=no 8466 8467 # Test if we are trying to use run time linking or normal 8468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8469 # need to do runtime linking. 8470 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8471 for ld_flag in $LDFLAGS; do 8472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8473 aix_use_runtimelinking=yes 8474 break 8475 fi 8476 done 8477 ;; 8478 esac 8479 8480 exp_sym_flag='-bexport' 8481 no_entry_flag='-bnoentry' 8482 fi 8483 8484 # When large executables or shared objects are built, AIX ld can 8485 # have problems creating the table of contents. If linking a library 8486 # or program results in "error TOC overflow" add -mminimal-toc to 8487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8489 8490 archive_cmds='' 8491 hardcode_direct=yes 8492 hardcode_direct_absolute=yes 8493 hardcode_libdir_separator=':' 8494 link_all_deplibs=yes 8495 file_list_spec='${wl}-f,' 8496 8497 if test "$GCC" = yes; then 8498 case $host_os in aix4.[012]|aix4.[012].*) 8499 # We only want to do this on AIX 4.2 and lower, the check 8500 # below for broken collect2 doesn't work under 4.3+ 8501 collect2name=`${CC} -print-prog-name=collect2` 8502 if test -f "$collect2name" && 8503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8504 then 8505 # We have reworked collect2 8506 : 8507 else 8508 # We have old collect2 8509 hardcode_direct=unsupported 8510 # It fails to find uninstalled libraries when the uninstalled 8511 # path is not listed in the libpath. Setting hardcode_minus_L 8512 # to unsupported forces relinking 8513 hardcode_minus_L=yes 8514 hardcode_libdir_flag_spec='-L$libdir' 8515 hardcode_libdir_separator= 8516 fi 8517 ;; 8518 esac 8519 shared_flag='-shared' 8520 if test "$aix_use_runtimelinking" = yes; then 8521 shared_flag="$shared_flag "'${wl}-G' 8522 fi 8523 else 8524 # not using gcc 8525 if test "$host_cpu" = ia64; then 8526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8527 # chokes on -Wl,-G. The following line is correct: 8528 shared_flag='-G' 8529 else 8530 if test "$aix_use_runtimelinking" = yes; then 8531 shared_flag='${wl}-G' 8532 else 8533 shared_flag='${wl}-bM:SRE' 8534 fi 8535 fi 8536 fi 8537 8538 export_dynamic_flag_spec='${wl}-bexpall' 8539 # It seems that -bexpall does not export symbols beginning with 8540 # underscore (_), so it is better to generate a list of symbols to export. 8541 always_export_symbols=yes 8542 if test "$aix_use_runtimelinking" = yes; then 8543 # Warning - without using the other runtime loading flags (-brtl), 8544 # -berok will link without error, but may produce a broken library. 8545 allow_undefined_flag='-berok' 8546 # Determine the default libpath from the value encoded in an 8547 # empty executable. 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8549/* end confdefs.h. */ 8550 8551int 8552main () 8553{ 8554 8555 ; 8556 return 0; 8557} 8558_ACEOF 8559if ac_fn_c_try_link "$LINENO"; then : 8560 8561lt_aix_libpath_sed=' 8562 /Import File Strings/,/^$/ { 8563 /^0/ { 8564 s/^0 *\(.*\)$/\1/ 8565 p 8566 } 8567 }' 8568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8569# Check for a 64-bit object if we didn't find anything. 8570if test -z "$aix_libpath"; then 8571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8572fi 8573fi 8574rm -f core conftest.err conftest.$ac_objext \ 8575 conftest$ac_exeext conftest.$ac_ext 8576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8577 8578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8579 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8580 else 8581 if test "$host_cpu" = ia64; then 8582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8583 allow_undefined_flag="-z nodefs" 8584 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" 8585 else 8586 # Determine the default libpath from the value encoded in an 8587 # empty executable. 8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8589/* end confdefs.h. */ 8590 8591int 8592main () 8593{ 8594 8595 ; 8596 return 0; 8597} 8598_ACEOF 8599if ac_fn_c_try_link "$LINENO"; then : 8600 8601lt_aix_libpath_sed=' 8602 /Import File Strings/,/^$/ { 8603 /^0/ { 8604 s/^0 *\(.*\)$/\1/ 8605 p 8606 } 8607 }' 8608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8609# Check for a 64-bit object if we didn't find anything. 8610if test -z "$aix_libpath"; then 8611 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8612fi 8613fi 8614rm -f core conftest.err conftest.$ac_objext \ 8615 conftest$ac_exeext conftest.$ac_ext 8616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8617 8618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8619 # Warning - without using the other run time loading flags, 8620 # -berok will link without error, but may produce a broken library. 8621 no_undefined_flag=' ${wl}-bernotok' 8622 allow_undefined_flag=' ${wl}-berok' 8623 # Exported symbols can be pulled into shared objects from archives 8624 whole_archive_flag_spec='$convenience' 8625 archive_cmds_need_lc=yes 8626 # This is similar to how AIX traditionally builds its shared libraries. 8627 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' 8628 fi 8629 fi 8630 ;; 8631 8632 amigaos*) 8633 case $host_cpu in 8634 powerpc) 8635 # see comment about AmigaOS4 .so support 8636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8637 archive_expsym_cmds='' 8638 ;; 8639 m68k) 8640 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)' 8641 hardcode_libdir_flag_spec='-L$libdir' 8642 hardcode_minus_L=yes 8643 ;; 8644 esac 8645 ;; 8646 8647 bsdi[45]*) 8648 export_dynamic_flag_spec=-rdynamic 8649 ;; 8650 8651 cygwin* | mingw* | pw32* | cegcc*) 8652 # When not using gcc, we currently assume that we are using 8653 # Microsoft Visual C++. 8654 # hardcode_libdir_flag_spec is actually meaningless, as there is 8655 # no search path for DLLs. 8656 hardcode_libdir_flag_spec=' ' 8657 allow_undefined_flag=unsupported 8658 # Tell ltmain to make .lib files, not .a files. 8659 libext=lib 8660 # Tell ltmain to make .dll files, not .so files. 8661 shrext_cmds=".dll" 8662 # FIXME: Setting linknames here is a bad hack. 8663 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8664 # The linker will automatically build a .lib file if we build a DLL. 8665 old_archive_from_new_cmds='true' 8666 # FIXME: Should let the user specify the lib program. 8667 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8668 fix_srcfile_path='`cygpath -w "$srcfile"`' 8669 enable_shared_with_static_runtimes=yes 8670 ;; 8671 8672 darwin* | rhapsody*) 8673 8674 8675 archive_cmds_need_lc=no 8676 hardcode_direct=no 8677 hardcode_automatic=yes 8678 hardcode_shlibpath_var=unsupported 8679 whole_archive_flag_spec='' 8680 link_all_deplibs=yes 8681 allow_undefined_flag="$_lt_dar_allow_undefined" 8682 case $cc_basename in 8683 ifort*) _lt_dar_can_shared=yes ;; 8684 *) _lt_dar_can_shared=$GCC ;; 8685 esac 8686 if test "$_lt_dar_can_shared" = "yes"; then 8687 output_verbose_link_cmd=echo 8688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8690 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}" 8691 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}" 8692 8693 else 8694 ld_shlibs=no 8695 fi 8696 8697 ;; 8698 8699 dgux*) 8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8701 hardcode_libdir_flag_spec='-L$libdir' 8702 hardcode_shlibpath_var=no 8703 ;; 8704 8705 freebsd1*) 8706 ld_shlibs=no 8707 ;; 8708 8709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8710 # support. Future versions do this automatically, but an explicit c++rt0.o 8711 # does not break anything, and helps significantly (at the cost of a little 8712 # extra space). 8713 freebsd2.2*) 8714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8715 hardcode_libdir_flag_spec='-R$libdir' 8716 hardcode_direct=yes 8717 hardcode_shlibpath_var=no 8718 ;; 8719 8720 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8721 freebsd2*) 8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8723 hardcode_direct=yes 8724 hardcode_minus_L=yes 8725 hardcode_shlibpath_var=no 8726 ;; 8727 8728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8729 freebsd* | dragonfly*) 8730 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8731 hardcode_libdir_flag_spec='-R$libdir' 8732 hardcode_direct=yes 8733 hardcode_shlibpath_var=no 8734 ;; 8735 8736 hpux9*) 8737 if test "$GCC" = yes; then 8738 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' 8739 else 8740 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' 8741 fi 8742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8743 hardcode_libdir_separator=: 8744 hardcode_direct=yes 8745 8746 # hardcode_minus_L: Not really in the search PATH, 8747 # but as the default location of the library. 8748 hardcode_minus_L=yes 8749 export_dynamic_flag_spec='${wl}-E' 8750 ;; 8751 8752 hpux10*) 8753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8755 else 8756 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8757 fi 8758 if test "$with_gnu_ld" = no; then 8759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8760 hardcode_libdir_flag_spec_ld='+b $libdir' 8761 hardcode_libdir_separator=: 8762 hardcode_direct=yes 8763 hardcode_direct_absolute=yes 8764 export_dynamic_flag_spec='${wl}-E' 8765 # hardcode_minus_L: Not really in the search PATH, 8766 # but as the default location of the library. 8767 hardcode_minus_L=yes 8768 fi 8769 ;; 8770 8771 hpux11*) 8772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8773 case $host_cpu in 8774 hppa*64*) 8775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8776 ;; 8777 ia64*) 8778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8779 ;; 8780 *) 8781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8782 ;; 8783 esac 8784 else 8785 case $host_cpu in 8786 hppa*64*) 8787 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8788 ;; 8789 ia64*) 8790 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8791 ;; 8792 *) 8793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8794 ;; 8795 esac 8796 fi 8797 if test "$with_gnu_ld" = no; then 8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8799 hardcode_libdir_separator=: 8800 8801 case $host_cpu in 8802 hppa*64*|ia64*) 8803 hardcode_direct=no 8804 hardcode_shlibpath_var=no 8805 ;; 8806 *) 8807 hardcode_direct=yes 8808 hardcode_direct_absolute=yes 8809 export_dynamic_flag_spec='${wl}-E' 8810 8811 # hardcode_minus_L: Not really in the search PATH, 8812 # but as the default location of the library. 8813 hardcode_minus_L=yes 8814 ;; 8815 esac 8816 fi 8817 ;; 8818 8819 irix5* | irix6* | nonstopux*) 8820 if test "$GCC" = yes; then 8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8822 # Try to use the -exported_symbol ld option, if it does not 8823 # work, assume that -exports_file does not work either and 8824 # implicitly export all symbols. 8825 save_LDFLAGS="$LDFLAGS" 8826 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829int foo(void) {} 8830_ACEOF 8831if ac_fn_c_try_link "$LINENO"; then : 8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8833 8834fi 8835rm -f core conftest.err conftest.$ac_objext \ 8836 conftest$ac_exeext conftest.$ac_ext 8837 LDFLAGS="$save_LDFLAGS" 8838 else 8839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8840 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8841 fi 8842 archive_cmds_need_lc='no' 8843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8844 hardcode_libdir_separator=: 8845 inherit_rpath=yes 8846 link_all_deplibs=yes 8847 ;; 8848 8849 netbsd*) 8850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8852 else 8853 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8854 fi 8855 hardcode_libdir_flag_spec='-R$libdir' 8856 hardcode_direct=yes 8857 hardcode_shlibpath_var=no 8858 ;; 8859 8860 newsos6) 8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8862 hardcode_direct=yes 8863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8864 hardcode_libdir_separator=: 8865 hardcode_shlibpath_var=no 8866 ;; 8867 8868 *nto* | *qnx*) 8869 ;; 8870 8871 openbsd*) 8872 if test -f /usr/libexec/ld.so; then 8873 hardcode_direct=yes 8874 hardcode_shlibpath_var=no 8875 hardcode_direct_absolute=yes 8876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8878 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8880 export_dynamic_flag_spec='${wl}-E' 8881 else 8882 case $host_os in 8883 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8885 hardcode_libdir_flag_spec='-R$libdir' 8886 ;; 8887 *) 8888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8890 ;; 8891 esac 8892 fi 8893 else 8894 ld_shlibs=no 8895 fi 8896 ;; 8897 8898 os2*) 8899 hardcode_libdir_flag_spec='-L$libdir' 8900 hardcode_minus_L=yes 8901 allow_undefined_flag=unsupported 8902 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' 8903 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8904 ;; 8905 8906 osf3*) 8907 if test "$GCC" = yes; then 8908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8909 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8910 else 8911 allow_undefined_flag=' -expect_unresolved \*' 8912 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8913 fi 8914 archive_cmds_need_lc='no' 8915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8916 hardcode_libdir_separator=: 8917 ;; 8918 8919 osf4* | osf5*) # as osf3* with the addition of -msym flag 8920 if test "$GCC" = yes; then 8921 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8922 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8924 else 8925 allow_undefined_flag=' -expect_unresolved \*' 8926 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8927 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8928 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8929 8930 # Both c and cxx compiler support -rpath directly 8931 hardcode_libdir_flag_spec='-rpath $libdir' 8932 fi 8933 archive_cmds_need_lc='no' 8934 hardcode_libdir_separator=: 8935 ;; 8936 8937 solaris*) 8938 no_undefined_flag=' -z defs' 8939 if test "$GCC" = yes; then 8940 wlarc='${wl}' 8941 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8943 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8944 else 8945 case `$CC -V 2>&1` in 8946 *"Compilers 5.0"*) 8947 wlarc='' 8948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8951 ;; 8952 *) 8953 wlarc='${wl}' 8954 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8956 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8957 ;; 8958 esac 8959 fi 8960 hardcode_libdir_flag_spec='-R$libdir' 8961 hardcode_shlibpath_var=no 8962 case $host_os in 8963 solaris2.[0-5] | solaris2.[0-5].*) ;; 8964 *) 8965 # The compiler driver will combine and reorder linker options, 8966 # but understands `-z linker_flag'. GCC discards it without `$wl', 8967 # but is careful enough not to reorder. 8968 # Supported since Solaris 2.6 (maybe 2.5.1?) 8969 if test "$GCC" = yes; then 8970 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8971 else 8972 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8973 fi 8974 ;; 8975 esac 8976 link_all_deplibs=yes 8977 ;; 8978 8979 sunos4*) 8980 if test "x$host_vendor" = xsequent; then 8981 # Use $CC to link under sequent, because it throws in some extra .o 8982 # files that make .init and .fini sections work. 8983 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8984 else 8985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8986 fi 8987 hardcode_libdir_flag_spec='-L$libdir' 8988 hardcode_direct=yes 8989 hardcode_minus_L=yes 8990 hardcode_shlibpath_var=no 8991 ;; 8992 8993 sysv4) 8994 case $host_vendor in 8995 sni) 8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8997 hardcode_direct=yes # is this really true??? 8998 ;; 8999 siemens) 9000 ## LD is ld it makes a PLAMLIB 9001 ## CC just makes a GrossModule. 9002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9003 reload_cmds='$CC -r -o $output$reload_objs' 9004 hardcode_direct=no 9005 ;; 9006 motorola) 9007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9009 ;; 9010 esac 9011 runpath_var='LD_RUN_PATH' 9012 hardcode_shlibpath_var=no 9013 ;; 9014 9015 sysv4.3*) 9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9017 hardcode_shlibpath_var=no 9018 export_dynamic_flag_spec='-Bexport' 9019 ;; 9020 9021 sysv4*MP*) 9022 if test -d /usr/nec; then 9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9024 hardcode_shlibpath_var=no 9025 runpath_var=LD_RUN_PATH 9026 hardcode_runpath_var=yes 9027 ld_shlibs=yes 9028 fi 9029 ;; 9030 9031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9032 no_undefined_flag='${wl}-z,text' 9033 archive_cmds_need_lc=no 9034 hardcode_shlibpath_var=no 9035 runpath_var='LD_RUN_PATH' 9036 9037 if test "$GCC" = yes; then 9038 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9040 else 9041 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9043 fi 9044 ;; 9045 9046 sysv5* | sco3.2v5* | sco5v6*) 9047 # Note: We can NOT use -z defs as we might desire, because we do not 9048 # link with -lc, and that would cause any symbols used from libc to 9049 # always be unresolved, which means just about no library would 9050 # ever link correctly. If we're not using GNU ld we use -z text 9051 # though, which does catch some bad symbols but isn't as heavy-handed 9052 # as -z defs. 9053 no_undefined_flag='${wl}-z,text' 9054 allow_undefined_flag='${wl}-z,nodefs' 9055 archive_cmds_need_lc=no 9056 hardcode_shlibpath_var=no 9057 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9058 hardcode_libdir_separator=':' 9059 link_all_deplibs=yes 9060 export_dynamic_flag_spec='${wl}-Bexport' 9061 runpath_var='LD_RUN_PATH' 9062 9063 if test "$GCC" = yes; then 9064 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9066 else 9067 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9069 fi 9070 ;; 9071 9072 uts4*) 9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9074 hardcode_libdir_flag_spec='-L$libdir' 9075 hardcode_shlibpath_var=no 9076 ;; 9077 9078 *) 9079 ld_shlibs=no 9080 ;; 9081 esac 9082 9083 if test x$host_vendor = xsni; then 9084 case $host in 9085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9086 export_dynamic_flag_spec='${wl}-Blargedynsym' 9087 ;; 9088 esac 9089 fi 9090 fi 9091 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9093$as_echo "$ld_shlibs" >&6; } 9094test "$ld_shlibs" = no && can_build_shared=no 9095 9096with_gnu_ld=$with_gnu_ld 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112# 9113# Do we need to explicitly link libc? 9114# 9115case "x$archive_cmds_need_lc" in 9116x|xyes) 9117 # Assume -lc should be added 9118 archive_cmds_need_lc=yes 9119 9120 if test "$enable_shared" = yes && test "$GCC" = yes; then 9121 case $archive_cmds in 9122 *'~'*) 9123 # FIXME: we may have to deal with multi-command sequences. 9124 ;; 9125 '$CC '*) 9126 # Test whether the compiler implicitly links with -lc since on some 9127 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9128 # to ld, don't add -lc before -lgcc. 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9130$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9131 $RM conftest* 9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9133 9134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9135 (eval $ac_compile) 2>&5 9136 ac_status=$? 9137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9138 test $ac_status = 0; } 2>conftest.err; then 9139 soname=conftest 9140 lib=conftest 9141 libobjs=conftest.$ac_objext 9142 deplibs= 9143 wl=$lt_prog_compiler_wl 9144 pic_flag=$lt_prog_compiler_pic 9145 compiler_flags=-v 9146 linker_flags=-v 9147 verstring= 9148 output_objdir=. 9149 libname=conftest 9150 lt_save_allow_undefined_flag=$allow_undefined_flag 9151 allow_undefined_flag= 9152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9153 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9154 ac_status=$? 9155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9156 test $ac_status = 0; } 9157 then 9158 archive_cmds_need_lc=no 9159 else 9160 archive_cmds_need_lc=yes 9161 fi 9162 allow_undefined_flag=$lt_save_allow_undefined_flag 9163 else 9164 cat conftest.err 1>&5 9165 fi 9166 $RM conftest* 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9168$as_echo "$archive_cmds_need_lc" >&6; } 9169 ;; 9170 esac 9171 fi 9172 ;; 9173esac 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9332$as_echo_n "checking dynamic linker characteristics... " >&6; } 9333 9334if test "$GCC" = yes; then 9335 case $host_os in 9336 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9337 *) lt_awk_arg="/^libraries:/" ;; 9338 esac 9339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9340 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9341 # if the path contains ";" then we assume it to be the separator 9342 # otherwise default to the standard path separator (i.e. ":") - it is 9343 # assumed that no part of a normal pathname contains ";" but that should 9344 # okay in the real world where ";" in dirpaths is itself problematic. 9345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9346 else 9347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9348 fi 9349 # Ok, now we have the path, separated by spaces, we can step through it 9350 # and add multilib dir if necessary. 9351 lt_tmp_lt_search_path_spec= 9352 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9353 for lt_sys_path in $lt_search_path_spec; do 9354 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9356 else 9357 test -d "$lt_sys_path" && \ 9358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9359 fi 9360 done 9361 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9362BEGIN {RS=" "; FS="/|\n";} { 9363 lt_foo=""; 9364 lt_count=0; 9365 for (lt_i = NF; lt_i > 0; lt_i--) { 9366 if ($lt_i != "" && $lt_i != ".") { 9367 if ($lt_i == "..") { 9368 lt_count++; 9369 } else { 9370 if (lt_count == 0) { 9371 lt_foo="/" $lt_i lt_foo; 9372 } else { 9373 lt_count--; 9374 } 9375 } 9376 } 9377 } 9378 if (lt_foo != "") { lt_freq[lt_foo]++; } 9379 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9380}'` 9381 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9382else 9383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9384fi 9385library_names_spec= 9386libname_spec='lib$name' 9387soname_spec= 9388shrext_cmds=".so" 9389postinstall_cmds= 9390postuninstall_cmds= 9391finish_cmds= 9392finish_eval= 9393shlibpath_var= 9394shlibpath_overrides_runpath=unknown 9395version_type=none 9396dynamic_linker="$host_os ld.so" 9397sys_lib_dlsearch_path_spec="/lib /usr/lib" 9398need_lib_prefix=unknown 9399hardcode_into_libs=no 9400 9401# when you set need_version to no, make sure it does not cause -set_version 9402# flags to be left without arguments 9403need_version=unknown 9404 9405case $host_os in 9406aix3*) 9407 version_type=linux 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9409 shlibpath_var=LIBPATH 9410 9411 # AIX 3 has no versioning support, so we append a major version to the name. 9412 soname_spec='${libname}${release}${shared_ext}$major' 9413 ;; 9414 9415aix[4-9]*) 9416 version_type=linux 9417 need_lib_prefix=no 9418 need_version=no 9419 hardcode_into_libs=yes 9420 if test "$host_cpu" = ia64; then 9421 # AIX 5 supports IA64 9422 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9423 shlibpath_var=LD_LIBRARY_PATH 9424 else 9425 # With GCC up to 2.95.x, collect2 would create an import file 9426 # for dependence libraries. The import file would start with 9427 # the line `#! .'. This would cause the generated library to 9428 # depend on `.', always an invalid library. This was fixed in 9429 # development snapshots of GCC prior to 3.0. 9430 case $host_os in 9431 aix4 | aix4.[01] | aix4.[01].*) 9432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9433 echo ' yes ' 9434 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9435 : 9436 else 9437 can_build_shared=no 9438 fi 9439 ;; 9440 esac 9441 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9442 # soname into executable. Probably we can add versioning support to 9443 # collect2, so additional links can be useful in future. 9444 if test "$aix_use_runtimelinking" = yes; then 9445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9446 # instead of lib<name>.a to let people know that these are not 9447 # typical AIX shared libraries. 9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9449 else 9450 # We preserve .a as extension for shared libraries through AIX4.2 9451 # and later when we are not doing run time linking. 9452 library_names_spec='${libname}${release}.a $libname.a' 9453 soname_spec='${libname}${release}${shared_ext}$major' 9454 fi 9455 shlibpath_var=LIBPATH 9456 fi 9457 ;; 9458 9459amigaos*) 9460 case $host_cpu in 9461 powerpc) 9462 # Since July 2007 AmigaOS4 officially supports .so libraries. 9463 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9465 ;; 9466 m68k) 9467 library_names_spec='$libname.ixlibrary $libname.a' 9468 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9469 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' 9470 ;; 9471 esac 9472 ;; 9473 9474beos*) 9475 library_names_spec='${libname}${shared_ext}' 9476 dynamic_linker="$host_os ld.so" 9477 shlibpath_var=LIBRARY_PATH 9478 ;; 9479 9480bsdi[45]*) 9481 version_type=linux 9482 need_version=no 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9484 soname_spec='${libname}${release}${shared_ext}$major' 9485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9486 shlibpath_var=LD_LIBRARY_PATH 9487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9489 # the default ld.so.conf also contains /usr/contrib/lib and 9490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9491 # libtool to hard-code these into programs 9492 ;; 9493 9494cygwin* | mingw* | pw32* | cegcc*) 9495 version_type=windows 9496 shrext_cmds=".dll" 9497 need_version=no 9498 need_lib_prefix=no 9499 9500 case $GCC,$host_os in 9501 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9502 library_names_spec='$libname.dll.a' 9503 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9504 postinstall_cmds='base_file=`basename \${file}`~ 9505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9506 dldir=$destdir/`dirname \$dlpath`~ 9507 test -d \$dldir || mkdir -p \$dldir~ 9508 $install_prog $dir/$dlname \$dldir/$dlname~ 9509 chmod a+x \$dldir/$dlname~ 9510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9512 fi' 9513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9514 dlpath=$dir/\$dldll~ 9515 $RM \$dlpath' 9516 shlibpath_overrides_runpath=yes 9517 9518 case $host_os in 9519 cygwin*) 9520 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9523 ;; 9524 mingw* | cegcc*) 9525 # MinGW DLLs use traditional 'lib' prefix 9526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9527 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9528 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9529 # It is most probably a Windows format PATH printed by 9530 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9531 # path with ; separators, and with drive letters. We can handle the 9532 # drive letters (cygwin fileutils understands them), so leave them, 9533 # especially as we might pass files found there to a mingw objdump, 9534 # which wouldn't understand a cygwinified path. Ahh. 9535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9536 else 9537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9538 fi 9539 ;; 9540 pw32*) 9541 # pw32 DLLs use 'pw' prefix rather than 'lib' 9542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9543 ;; 9544 esac 9545 ;; 9546 9547 *) 9548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9549 ;; 9550 esac 9551 dynamic_linker='Win32 ld.exe' 9552 # FIXME: first we should search . and the directory the executable is in 9553 shlibpath_var=PATH 9554 ;; 9555 9556darwin* | rhapsody*) 9557 dynamic_linker="$host_os dyld" 9558 version_type=darwin 9559 need_lib_prefix=no 9560 need_version=no 9561 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9562 soname_spec='${libname}${release}${major}$shared_ext' 9563 shlibpath_overrides_runpath=yes 9564 shlibpath_var=DYLD_LIBRARY_PATH 9565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9566 9567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9569 ;; 9570 9571dgux*) 9572 version_type=linux 9573 need_lib_prefix=no 9574 need_version=no 9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9576 soname_spec='${libname}${release}${shared_ext}$major' 9577 shlibpath_var=LD_LIBRARY_PATH 9578 ;; 9579 9580freebsd1*) 9581 dynamic_linker=no 9582 ;; 9583 9584freebsd* | dragonfly*) 9585 # DragonFly does not have aout. When/if they implement a new 9586 # versioning mechanism, adjust this. 9587 if test -x /usr/bin/objformat; then 9588 objformat=`/usr/bin/objformat` 9589 else 9590 case $host_os in 9591 freebsd[123]*) objformat=aout ;; 9592 *) objformat=elf ;; 9593 esac 9594 fi 9595 version_type=freebsd-$objformat 9596 case $version_type in 9597 freebsd-elf*) 9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9599 need_version=no 9600 need_lib_prefix=no 9601 ;; 9602 freebsd-*) 9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9604 need_version=yes 9605 ;; 9606 esac 9607 shlibpath_var=LD_LIBRARY_PATH 9608 case $host_os in 9609 freebsd2*) 9610 shlibpath_overrides_runpath=yes 9611 ;; 9612 freebsd3.[01]* | freebsdelf3.[01]*) 9613 shlibpath_overrides_runpath=yes 9614 hardcode_into_libs=yes 9615 ;; 9616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9618 shlibpath_overrides_runpath=no 9619 hardcode_into_libs=yes 9620 ;; 9621 *) # from 4.6 on, and DragonFly 9622 shlibpath_overrides_runpath=yes 9623 hardcode_into_libs=yes 9624 ;; 9625 esac 9626 ;; 9627 9628gnu*) 9629 version_type=linux 9630 need_lib_prefix=no 9631 need_version=no 9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9633 soname_spec='${libname}${release}${shared_ext}$major' 9634 shlibpath_var=LD_LIBRARY_PATH 9635 hardcode_into_libs=yes 9636 ;; 9637 9638hpux9* | hpux10* | hpux11*) 9639 # Give a soname corresponding to the major version so that dld.sl refuses to 9640 # link against other versions. 9641 version_type=sunos 9642 need_lib_prefix=no 9643 need_version=no 9644 case $host_cpu in 9645 ia64*) 9646 shrext_cmds='.so' 9647 hardcode_into_libs=yes 9648 dynamic_linker="$host_os dld.so" 9649 shlibpath_var=LD_LIBRARY_PATH 9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9652 soname_spec='${libname}${release}${shared_ext}$major' 9653 if test "X$HPUX_IA64_MODE" = X32; then 9654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9655 else 9656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9657 fi 9658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9659 ;; 9660 hppa*64*) 9661 shrext_cmds='.sl' 9662 hardcode_into_libs=yes 9663 dynamic_linker="$host_os dld.sl" 9664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9667 soname_spec='${libname}${release}${shared_ext}$major' 9668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9670 ;; 9671 *) 9672 shrext_cmds='.sl' 9673 dynamic_linker="$host_os dld.sl" 9674 shlibpath_var=SHLIB_PATH 9675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9677 soname_spec='${libname}${release}${shared_ext}$major' 9678 ;; 9679 esac 9680 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9681 postinstall_cmds='chmod 555 $lib' 9682 ;; 9683 9684interix[3-9]*) 9685 version_type=linux 9686 need_lib_prefix=no 9687 need_version=no 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9689 soname_spec='${libname}${release}${shared_ext}$major' 9690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9691 shlibpath_var=LD_LIBRARY_PATH 9692 shlibpath_overrides_runpath=no 9693 hardcode_into_libs=yes 9694 ;; 9695 9696irix5* | irix6* | nonstopux*) 9697 case $host_os in 9698 nonstopux*) version_type=nonstopux ;; 9699 *) 9700 if test "$lt_cv_prog_gnu_ld" = yes; then 9701 version_type=linux 9702 else 9703 version_type=irix 9704 fi ;; 9705 esac 9706 need_lib_prefix=no 9707 need_version=no 9708 soname_spec='${libname}${release}${shared_ext}$major' 9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9710 case $host_os in 9711 irix5* | nonstopux*) 9712 libsuff= shlibsuff= 9713 ;; 9714 *) 9715 case $LD in # libtool.m4 will add one of these switches to LD 9716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9717 libsuff= shlibsuff= libmagic=32-bit;; 9718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9719 libsuff=32 shlibsuff=N32 libmagic=N32;; 9720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9721 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9722 *) libsuff= shlibsuff= libmagic=never-match;; 9723 esac 9724 ;; 9725 esac 9726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9727 shlibpath_overrides_runpath=no 9728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9730 hardcode_into_libs=yes 9731 ;; 9732 9733# No shared lib support for Linux oldld, aout, or coff. 9734linux*oldld* | linux*aout* | linux*coff*) 9735 dynamic_linker=no 9736 ;; 9737 9738# This must be Linux ELF. 9739linux* | k*bsd*-gnu) 9740 version_type=linux 9741 need_lib_prefix=no 9742 need_version=no 9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9744 soname_spec='${libname}${release}${shared_ext}$major' 9745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9746 shlibpath_var=LD_LIBRARY_PATH 9747 shlibpath_overrides_runpath=no 9748 # Some binutils ld are patched to set DT_RUNPATH 9749 save_LDFLAGS=$LDFLAGS 9750 save_libdir=$libdir 9751 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9752 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755 9756int 9757main () 9758{ 9759 9760 ; 9761 return 0; 9762} 9763_ACEOF 9764if ac_fn_c_try_link "$LINENO"; then : 9765 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9766 shlibpath_overrides_runpath=yes 9767fi 9768fi 9769rm -f core conftest.err conftest.$ac_objext \ 9770 conftest$ac_exeext conftest.$ac_ext 9771 LDFLAGS=$save_LDFLAGS 9772 libdir=$save_libdir 9773 9774 # This implies no fast_install, which is unacceptable. 9775 # Some rework will be needed to allow for fast_install 9776 # before this can be enabled. 9777 hardcode_into_libs=yes 9778 9779 # Add ABI-specific directories to the system library path. 9780 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9781 9782 # Append ld.so.conf contents to the search path 9783 if test -f /etc/ld.so.conf; then 9784 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' ' '` 9785 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9786 fi 9787 9788 # We used to test for /lib/ld.so.1 and disable shared libraries on 9789 # powerpc, because MkLinux only supported shared libraries with the 9790 # GNU dynamic linker. Since this was broken with cross compilers, 9791 # most powerpc-linux boxes support dynamic linking these days and 9792 # people can always --disable-shared, the test was removed, and we 9793 # assume the GNU/Linux dynamic linker is in use. 9794 dynamic_linker='GNU/Linux ld.so' 9795 ;; 9796 9797netbsd*) 9798 version_type=sunos 9799 need_lib_prefix=no 9800 need_version=no 9801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9804 dynamic_linker='NetBSD (a.out) ld.so' 9805 else 9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9807 soname_spec='${libname}${release}${shared_ext}$major' 9808 dynamic_linker='NetBSD ld.elf_so' 9809 fi 9810 shlibpath_var=LD_LIBRARY_PATH 9811 shlibpath_overrides_runpath=yes 9812 hardcode_into_libs=yes 9813 ;; 9814 9815newsos6) 9816 version_type=linux 9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9818 shlibpath_var=LD_LIBRARY_PATH 9819 shlibpath_overrides_runpath=yes 9820 ;; 9821 9822*nto* | *qnx*) 9823 version_type=qnx 9824 need_lib_prefix=no 9825 need_version=no 9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9827 soname_spec='${libname}${release}${shared_ext}$major' 9828 shlibpath_var=LD_LIBRARY_PATH 9829 shlibpath_overrides_runpath=no 9830 hardcode_into_libs=yes 9831 dynamic_linker='ldqnx.so' 9832 ;; 9833 9834openbsd*) 9835 version_type=sunos 9836 sys_lib_dlsearch_path_spec="/usr/lib" 9837 need_lib_prefix=no 9838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9839 case $host_os in 9840 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9841 *) need_version=no ;; 9842 esac 9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9845 shlibpath_var=LD_LIBRARY_PATH 9846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9847 case $host_os in 9848 openbsd2.[89] | openbsd2.[89].*) 9849 shlibpath_overrides_runpath=no 9850 ;; 9851 *) 9852 shlibpath_overrides_runpath=yes 9853 ;; 9854 esac 9855 else 9856 shlibpath_overrides_runpath=yes 9857 fi 9858 ;; 9859 9860os2*) 9861 libname_spec='$name' 9862 shrext_cmds=".dll" 9863 need_lib_prefix=no 9864 library_names_spec='$libname${shared_ext} $libname.a' 9865 dynamic_linker='OS/2 ld.exe' 9866 shlibpath_var=LIBPATH 9867 ;; 9868 9869osf3* | osf4* | osf5*) 9870 version_type=osf 9871 need_lib_prefix=no 9872 need_version=no 9873 soname_spec='${libname}${release}${shared_ext}$major' 9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9875 shlibpath_var=LD_LIBRARY_PATH 9876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9878 ;; 9879 9880rdos*) 9881 dynamic_linker=no 9882 ;; 9883 9884solaris*) 9885 version_type=linux 9886 need_lib_prefix=no 9887 need_version=no 9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9889 soname_spec='${libname}${release}${shared_ext}$major' 9890 shlibpath_var=LD_LIBRARY_PATH 9891 shlibpath_overrides_runpath=yes 9892 hardcode_into_libs=yes 9893 # ldd complains unless libraries are executable 9894 postinstall_cmds='chmod +x $lib' 9895 ;; 9896 9897sunos4*) 9898 version_type=sunos 9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9901 shlibpath_var=LD_LIBRARY_PATH 9902 shlibpath_overrides_runpath=yes 9903 if test "$with_gnu_ld" = yes; then 9904 need_lib_prefix=no 9905 fi 9906 need_version=yes 9907 ;; 9908 9909sysv4 | sysv4.3*) 9910 version_type=linux 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9912 soname_spec='${libname}${release}${shared_ext}$major' 9913 shlibpath_var=LD_LIBRARY_PATH 9914 case $host_vendor in 9915 sni) 9916 shlibpath_overrides_runpath=no 9917 need_lib_prefix=no 9918 runpath_var=LD_RUN_PATH 9919 ;; 9920 siemens) 9921 need_lib_prefix=no 9922 ;; 9923 motorola) 9924 need_lib_prefix=no 9925 need_version=no 9926 shlibpath_overrides_runpath=no 9927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9928 ;; 9929 esac 9930 ;; 9931 9932sysv4*MP*) 9933 if test -d /usr/nec ;then 9934 version_type=linux 9935 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9936 soname_spec='$libname${shared_ext}.$major' 9937 shlibpath_var=LD_LIBRARY_PATH 9938 fi 9939 ;; 9940 9941sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9942 version_type=freebsd-elf 9943 need_lib_prefix=no 9944 need_version=no 9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9946 soname_spec='${libname}${release}${shared_ext}$major' 9947 shlibpath_var=LD_LIBRARY_PATH 9948 shlibpath_overrides_runpath=yes 9949 hardcode_into_libs=yes 9950 if test "$with_gnu_ld" = yes; then 9951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9952 else 9953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9954 case $host_os in 9955 sco3.2v5*) 9956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9957 ;; 9958 esac 9959 fi 9960 sys_lib_dlsearch_path_spec='/usr/lib' 9961 ;; 9962 9963tpf*) 9964 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9965 version_type=linux 9966 need_lib_prefix=no 9967 need_version=no 9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9969 shlibpath_var=LD_LIBRARY_PATH 9970 shlibpath_overrides_runpath=no 9971 hardcode_into_libs=yes 9972 ;; 9973 9974uts4*) 9975 version_type=linux 9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9977 soname_spec='${libname}${release}${shared_ext}$major' 9978 shlibpath_var=LD_LIBRARY_PATH 9979 ;; 9980 9981*) 9982 dynamic_linker=no 9983 ;; 9984esac 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9986$as_echo "$dynamic_linker" >&6; } 9987test "$dynamic_linker" = no && can_build_shared=no 9988 9989variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9990if test "$GCC" = yes; then 9991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9992fi 9993 9994if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9995 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9996fi 9997if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9998 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9999fi 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10088$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10089hardcode_action= 10090if test -n "$hardcode_libdir_flag_spec" || 10091 test -n "$runpath_var" || 10092 test "X$hardcode_automatic" = "Xyes" ; then 10093 10094 # We can hardcode non-existent directories. 10095 if test "$hardcode_direct" != no && 10096 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10097 # have to relink, otherwise we might link with an installed library 10098 # when we should be linking with a yet-to-be-installed one 10099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10100 test "$hardcode_minus_L" != no; then 10101 # Linking always hardcodes the temporary library directory. 10102 hardcode_action=relink 10103 else 10104 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10105 hardcode_action=immediate 10106 fi 10107else 10108 # We cannot hardcode anything, or else we can only hardcode existing 10109 # directories. 10110 hardcode_action=unsupported 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10113$as_echo "$hardcode_action" >&6; } 10114 10115if test "$hardcode_action" = relink || 10116 test "$inherit_rpath" = yes; then 10117 # Fast installation is not supported 10118 enable_fast_install=no 10119elif test "$shlibpath_overrides_runpath" = yes || 10120 test "$enable_shared" = no; then 10121 # Fast installation is not necessary 10122 enable_fast_install=needless 10123fi 10124 10125 10126 10127 10128 10129 10130 if test "x$enable_dlopen" != xyes; then 10131 enable_dlopen=unknown 10132 enable_dlopen_self=unknown 10133 enable_dlopen_self_static=unknown 10134else 10135 lt_cv_dlopen=no 10136 lt_cv_dlopen_libs= 10137 10138 case $host_os in 10139 beos*) 10140 lt_cv_dlopen="load_add_on" 10141 lt_cv_dlopen_libs= 10142 lt_cv_dlopen_self=yes 10143 ;; 10144 10145 mingw* | pw32* | cegcc*) 10146 lt_cv_dlopen="LoadLibrary" 10147 lt_cv_dlopen_libs= 10148 ;; 10149 10150 cygwin*) 10151 lt_cv_dlopen="dlopen" 10152 lt_cv_dlopen_libs= 10153 ;; 10154 10155 darwin*) 10156 # if libdl is installed we need to link against it 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10158$as_echo_n "checking for dlopen in -ldl... " >&6; } 10159if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 ac_check_lib_save_LIBS=$LIBS 10163LIBS="-ldl $LIBS" 10164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10165/* end confdefs.h. */ 10166 10167/* Override any GCC internal prototype to avoid an error. 10168 Use char because int might match the return type of a GCC 10169 builtin and then its argument prototype would still apply. */ 10170#ifdef __cplusplus 10171extern "C" 10172#endif 10173char dlopen (); 10174int 10175main () 10176{ 10177return dlopen (); 10178 ; 10179 return 0; 10180} 10181_ACEOF 10182if ac_fn_c_try_link "$LINENO"; then : 10183 ac_cv_lib_dl_dlopen=yes 10184else 10185 ac_cv_lib_dl_dlopen=no 10186fi 10187rm -f core conftest.err conftest.$ac_objext \ 10188 conftest$ac_exeext conftest.$ac_ext 10189LIBS=$ac_check_lib_save_LIBS 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10192$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10193if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10195else 10196 10197 lt_cv_dlopen="dyld" 10198 lt_cv_dlopen_libs= 10199 lt_cv_dlopen_self=yes 10200 10201fi 10202 10203 ;; 10204 10205 *) 10206 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10207if test "x$ac_cv_func_shl_load" = x""yes; then : 10208 lt_cv_dlopen="shl_load" 10209else 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10211$as_echo_n "checking for shl_load in -ldld... " >&6; } 10212if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 ac_check_lib_save_LIBS=$LIBS 10216LIBS="-ldld $LIBS" 10217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220/* Override any GCC internal prototype to avoid an error. 10221 Use char because int might match the return type of a GCC 10222 builtin and then its argument prototype would still apply. */ 10223#ifdef __cplusplus 10224extern "C" 10225#endif 10226char shl_load (); 10227int 10228main () 10229{ 10230return shl_load (); 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_link "$LINENO"; then : 10236 ac_cv_lib_dld_shl_load=yes 10237else 10238 ac_cv_lib_dld_shl_load=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext \ 10241 conftest$ac_exeext conftest.$ac_ext 10242LIBS=$ac_check_lib_save_LIBS 10243fi 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10245$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10246if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10247 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10248else 10249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10250if test "x$ac_cv_func_dlopen" = x""yes; then : 10251 lt_cv_dlopen="dlopen" 10252else 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10254$as_echo_n "checking for dlopen in -ldl... " >&6; } 10255if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 ac_check_lib_save_LIBS=$LIBS 10259LIBS="-ldl $LIBS" 10260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10261/* end confdefs.h. */ 10262 10263/* Override any GCC internal prototype to avoid an error. 10264 Use char because int might match the return type of a GCC 10265 builtin and then its argument prototype would still apply. */ 10266#ifdef __cplusplus 10267extern "C" 10268#endif 10269char dlopen (); 10270int 10271main () 10272{ 10273return dlopen (); 10274 ; 10275 return 0; 10276} 10277_ACEOF 10278if ac_fn_c_try_link "$LINENO"; then : 10279 ac_cv_lib_dl_dlopen=yes 10280else 10281 ac_cv_lib_dl_dlopen=no 10282fi 10283rm -f core conftest.err conftest.$ac_objext \ 10284 conftest$ac_exeext conftest.$ac_ext 10285LIBS=$ac_check_lib_save_LIBS 10286fi 10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10288$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10289if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10291else 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10293$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10294if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 ac_check_lib_save_LIBS=$LIBS 10298LIBS="-lsvld $LIBS" 10299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301 10302/* Override any GCC internal prototype to avoid an error. 10303 Use char because int might match the return type of a GCC 10304 builtin and then its argument prototype would still apply. */ 10305#ifdef __cplusplus 10306extern "C" 10307#endif 10308char dlopen (); 10309int 10310main () 10311{ 10312return dlopen (); 10313 ; 10314 return 0; 10315} 10316_ACEOF 10317if ac_fn_c_try_link "$LINENO"; then : 10318 ac_cv_lib_svld_dlopen=yes 10319else 10320 ac_cv_lib_svld_dlopen=no 10321fi 10322rm -f core conftest.err conftest.$ac_objext \ 10323 conftest$ac_exeext conftest.$ac_ext 10324LIBS=$ac_check_lib_save_LIBS 10325fi 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10327$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10328if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10330else 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10332$as_echo_n "checking for dld_link in -ldld... " >&6; } 10333if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10334 $as_echo_n "(cached) " >&6 10335else 10336 ac_check_lib_save_LIBS=$LIBS 10337LIBS="-ldld $LIBS" 10338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340 10341/* Override any GCC internal prototype to avoid an error. 10342 Use char because int might match the return type of a GCC 10343 builtin and then its argument prototype would still apply. */ 10344#ifdef __cplusplus 10345extern "C" 10346#endif 10347char dld_link (); 10348int 10349main () 10350{ 10351return dld_link (); 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356if ac_fn_c_try_link "$LINENO"; then : 10357 ac_cv_lib_dld_dld_link=yes 10358else 10359 ac_cv_lib_dld_dld_link=no 10360fi 10361rm -f core conftest.err conftest.$ac_objext \ 10362 conftest$ac_exeext conftest.$ac_ext 10363LIBS=$ac_check_lib_save_LIBS 10364fi 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10366$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10367if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10368 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10369fi 10370 10371 10372fi 10373 10374 10375fi 10376 10377 10378fi 10379 10380 10381fi 10382 10383 10384fi 10385 10386 ;; 10387 esac 10388 10389 if test "x$lt_cv_dlopen" != xno; then 10390 enable_dlopen=yes 10391 else 10392 enable_dlopen=no 10393 fi 10394 10395 case $lt_cv_dlopen in 10396 dlopen) 10397 save_CPPFLAGS="$CPPFLAGS" 10398 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10399 10400 save_LDFLAGS="$LDFLAGS" 10401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10402 10403 save_LIBS="$LIBS" 10404 LIBS="$lt_cv_dlopen_libs $LIBS" 10405 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10407$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10408if test "${lt_cv_dlopen_self+set}" = set; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 if test "$cross_compiling" = yes; then : 10412 lt_cv_dlopen_self=cross 10413else 10414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10415 lt_status=$lt_dlunknown 10416 cat > conftest.$ac_ext <<_LT_EOF 10417#line 10417 "configure" 10418#include "confdefs.h" 10419 10420#if HAVE_DLFCN_H 10421#include <dlfcn.h> 10422#endif 10423 10424#include <stdio.h> 10425 10426#ifdef RTLD_GLOBAL 10427# define LT_DLGLOBAL RTLD_GLOBAL 10428#else 10429# ifdef DL_GLOBAL 10430# define LT_DLGLOBAL DL_GLOBAL 10431# else 10432# define LT_DLGLOBAL 0 10433# endif 10434#endif 10435 10436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10437 find out it does not work in some platform. */ 10438#ifndef LT_DLLAZY_OR_NOW 10439# ifdef RTLD_LAZY 10440# define LT_DLLAZY_OR_NOW RTLD_LAZY 10441# else 10442# ifdef DL_LAZY 10443# define LT_DLLAZY_OR_NOW DL_LAZY 10444# else 10445# ifdef RTLD_NOW 10446# define LT_DLLAZY_OR_NOW RTLD_NOW 10447# else 10448# ifdef DL_NOW 10449# define LT_DLLAZY_OR_NOW DL_NOW 10450# else 10451# define LT_DLLAZY_OR_NOW 0 10452# endif 10453# endif 10454# endif 10455# endif 10456#endif 10457 10458void fnord() { int i=42;} 10459int main () 10460{ 10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10462 int status = $lt_dlunknown; 10463 10464 if (self) 10465 { 10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10468 /* dlclose (self); */ 10469 } 10470 else 10471 puts (dlerror ()); 10472 10473 return status; 10474} 10475_LT_EOF 10476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10477 (eval $ac_link) 2>&5 10478 ac_status=$? 10479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10480 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10481 (./conftest; exit; ) >&5 2>/dev/null 10482 lt_status=$? 10483 case x$lt_status in 10484 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10485 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10486 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10487 esac 10488 else : 10489 # compilation failed 10490 lt_cv_dlopen_self=no 10491 fi 10492fi 10493rm -fr conftest* 10494 10495 10496fi 10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10498$as_echo "$lt_cv_dlopen_self" >&6; } 10499 10500 if test "x$lt_cv_dlopen_self" = xyes; then 10501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10503$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10504if test "${lt_cv_dlopen_self_static+set}" = set; then : 10505 $as_echo_n "(cached) " >&6 10506else 10507 if test "$cross_compiling" = yes; then : 10508 lt_cv_dlopen_self_static=cross 10509else 10510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10511 lt_status=$lt_dlunknown 10512 cat > conftest.$ac_ext <<_LT_EOF 10513#line 10513 "configure" 10514#include "confdefs.h" 10515 10516#if HAVE_DLFCN_H 10517#include <dlfcn.h> 10518#endif 10519 10520#include <stdio.h> 10521 10522#ifdef RTLD_GLOBAL 10523# define LT_DLGLOBAL RTLD_GLOBAL 10524#else 10525# ifdef DL_GLOBAL 10526# define LT_DLGLOBAL DL_GLOBAL 10527# else 10528# define LT_DLGLOBAL 0 10529# endif 10530#endif 10531 10532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10533 find out it does not work in some platform. */ 10534#ifndef LT_DLLAZY_OR_NOW 10535# ifdef RTLD_LAZY 10536# define LT_DLLAZY_OR_NOW RTLD_LAZY 10537# else 10538# ifdef DL_LAZY 10539# define LT_DLLAZY_OR_NOW DL_LAZY 10540# else 10541# ifdef RTLD_NOW 10542# define LT_DLLAZY_OR_NOW RTLD_NOW 10543# else 10544# ifdef DL_NOW 10545# define LT_DLLAZY_OR_NOW DL_NOW 10546# else 10547# define LT_DLLAZY_OR_NOW 0 10548# endif 10549# endif 10550# endif 10551# endif 10552#endif 10553 10554void fnord() { int i=42;} 10555int main () 10556{ 10557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10558 int status = $lt_dlunknown; 10559 10560 if (self) 10561 { 10562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10564 /* dlclose (self); */ 10565 } 10566 else 10567 puts (dlerror ()); 10568 10569 return status; 10570} 10571_LT_EOF 10572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10573 (eval $ac_link) 2>&5 10574 ac_status=$? 10575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10576 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10577 (./conftest; exit; ) >&5 2>/dev/null 10578 lt_status=$? 10579 case x$lt_status in 10580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10582 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10583 esac 10584 else : 10585 # compilation failed 10586 lt_cv_dlopen_self_static=no 10587 fi 10588fi 10589rm -fr conftest* 10590 10591 10592fi 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10594$as_echo "$lt_cv_dlopen_self_static" >&6; } 10595 fi 10596 10597 CPPFLAGS="$save_CPPFLAGS" 10598 LDFLAGS="$save_LDFLAGS" 10599 LIBS="$save_LIBS" 10600 ;; 10601 esac 10602 10603 case $lt_cv_dlopen_self in 10604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10605 *) enable_dlopen_self=unknown ;; 10606 esac 10607 10608 case $lt_cv_dlopen_self_static in 10609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10610 *) enable_dlopen_self_static=unknown ;; 10611 esac 10612fi 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630striplib= 10631old_striplib= 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10633$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10634if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10635 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10636 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10638$as_echo "yes" >&6; } 10639else 10640# FIXME - insert some real tests, host_os isn't really good enough 10641 case $host_os in 10642 darwin*) 10643 if test -n "$STRIP" ; then 10644 striplib="$STRIP -x" 10645 old_striplib="$STRIP -S" 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10647$as_echo "yes" >&6; } 10648 else 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10650$as_echo "no" >&6; } 10651 fi 10652 ;; 10653 *) 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10655$as_echo "no" >&6; } 10656 ;; 10657 esac 10658fi 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 # Report which library types will actually be built 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10673$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10675$as_echo "$can_build_shared" >&6; } 10676 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10678$as_echo_n "checking whether to build shared libraries... " >&6; } 10679 test "$can_build_shared" = "no" && enable_shared=no 10680 10681 # On AIX, shared libraries and static libraries use the same namespace, and 10682 # are all built from PIC. 10683 case $host_os in 10684 aix3*) 10685 test "$enable_shared" = yes && enable_static=no 10686 if test -n "$RANLIB"; then 10687 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10688 postinstall_cmds='$RANLIB $lib' 10689 fi 10690 ;; 10691 10692 aix[4-9]*) 10693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10694 test "$enable_shared" = yes && enable_static=no 10695 fi 10696 ;; 10697 esac 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10699$as_echo "$enable_shared" >&6; } 10700 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10702$as_echo_n "checking whether to build static libraries... " >&6; } 10703 # Make sure either enable_shared or enable_static is yes. 10704 test "$enable_shared" = yes || enable_static=yes 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10706$as_echo "$enable_static" >&6; } 10707 10708 10709 10710 10711fi 10712ac_ext=c 10713ac_cpp='$CPP $CPPFLAGS' 10714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10716ac_compiler_gnu=$ac_cv_c_compiler_gnu 10717 10718CC="$lt_save_CC" 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 ac_config_commands="$ac_config_commands libtool" 10733 10734 10735 10736 10737# Only expand once: 10738 10739 10740 10741# Extract the first word of "pkg-config", so it can be a program name with args. 10742set dummy pkg-config; ac_word=$2 10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10744$as_echo_n "checking for $ac_word... " >&6; } 10745if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10746 $as_echo_n "(cached) " >&6 10747else 10748 case $PKG_CONFIG in 10749 [\\/]* | ?:[\\/]*) 10750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10751 ;; 10752 *) 10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10754for as_dir in $PATH 10755do 10756 IFS=$as_save_IFS 10757 test -z "$as_dir" && as_dir=. 10758 for ac_exec_ext in '' $ac_executable_extensions; do 10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10762 break 2 10763 fi 10764done 10765 done 10766IFS=$as_save_IFS 10767 10768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 10769 ;; 10770esac 10771fi 10772PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10773if test -n "$PKG_CONFIG"; then 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10775$as_echo "$PKG_CONFIG" >&6; } 10776else 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10778$as_echo "no" >&6; } 10779fi 10780 10781 10782 10783# libgsf depends on glib and libxml2, so we should be fine 10784libgsf_req='libgsf-1 >= 1.13.0' 10785DEPS_PKGS="$libgsf_req" 10786 10787# required, pkg-config'd packages 10788 10789 10790if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10791 if test -n "$ac_tool_prefix"; then 10792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10793set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10795$as_echo_n "checking for $ac_word... " >&6; } 10796if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10797 $as_echo_n "(cached) " >&6 10798else 10799 case $PKG_CONFIG in 10800 [\\/]* | ?:[\\/]*) 10801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10802 ;; 10803 *) 10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10805for as_dir in $PATH 10806do 10807 IFS=$as_save_IFS 10808 test -z "$as_dir" && as_dir=. 10809 for ac_exec_ext in '' $ac_executable_extensions; do 10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10813 break 2 10814 fi 10815done 10816 done 10817IFS=$as_save_IFS 10818 10819 ;; 10820esac 10821fi 10822PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10823if test -n "$PKG_CONFIG"; then 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10825$as_echo "$PKG_CONFIG" >&6; } 10826else 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10828$as_echo "no" >&6; } 10829fi 10830 10831 10832fi 10833if test -z "$ac_cv_path_PKG_CONFIG"; then 10834 ac_pt_PKG_CONFIG=$PKG_CONFIG 10835 # Extract the first word of "pkg-config", so it can be a program name with args. 10836set dummy pkg-config; ac_word=$2 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10838$as_echo_n "checking for $ac_word... " >&6; } 10839if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 10840 $as_echo_n "(cached) " >&6 10841else 10842 case $ac_pt_PKG_CONFIG in 10843 [\\/]* | ?:[\\/]*) 10844 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10845 ;; 10846 *) 10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10848for as_dir in $PATH 10849do 10850 IFS=$as_save_IFS 10851 test -z "$as_dir" && as_dir=. 10852 for ac_exec_ext in '' $ac_executable_extensions; do 10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10854 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10856 break 2 10857 fi 10858done 10859 done 10860IFS=$as_save_IFS 10861 10862 ;; 10863esac 10864fi 10865ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10866if test -n "$ac_pt_PKG_CONFIG"; then 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10868$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10869else 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10871$as_echo "no" >&6; } 10872fi 10873 10874 if test "x$ac_pt_PKG_CONFIG" = x; then 10875 PKG_CONFIG="" 10876 else 10877 case $cross_compiling:$ac_tool_warned in 10878yes:) 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10881ac_tool_warned=yes ;; 10882esac 10883 PKG_CONFIG=$ac_pt_PKG_CONFIG 10884 fi 10885else 10886 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10887fi 10888 10889fi 10890if test -n "$PKG_CONFIG"; then 10891 _pkg_min_version=0.9.0 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10893$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10894 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10896$as_echo "yes" >&6; } 10897 else 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10899$as_echo "no" >&6; } 10900 PKG_CONFIG="" 10901 fi 10902 10903fi 10904 10905pkg_failed=no 10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 10907$as_echo_n "checking for DEPS... " >&6; } 10908 10909if test -n "$DEPS_CFLAGS"; then 10910 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" 10911 elif test -n "$PKG_CONFIG"; then 10912 if test -n "$PKG_CONFIG" && \ 10913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$DEPS_PKGS \""; } >&5 10914 ($PKG_CONFIG --exists --print-errors " $DEPS_PKGS ") 2>&5 10915 ac_status=$? 10916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10917 test $ac_status = 0; }; then 10918 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " $DEPS_PKGS " 2>/dev/null` 10919else 10920 pkg_failed=yes 10921fi 10922 else 10923 pkg_failed=untried 10924fi 10925if test -n "$DEPS_LIBS"; then 10926 pkg_cv_DEPS_LIBS="$DEPS_LIBS" 10927 elif test -n "$PKG_CONFIG"; then 10928 if test -n "$PKG_CONFIG" && \ 10929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$DEPS_PKGS \""; } >&5 10930 ($PKG_CONFIG --exists --print-errors " $DEPS_PKGS ") 2>&5 10931 ac_status=$? 10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10933 test $ac_status = 0; }; then 10934 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " $DEPS_PKGS " 2>/dev/null` 10935else 10936 pkg_failed=yes 10937fi 10938 else 10939 pkg_failed=untried 10940fi 10941 10942 10943 10944if test $pkg_failed = yes; then 10945 10946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10947 _pkg_short_errors_supported=yes 10948else 10949 _pkg_short_errors_supported=no 10950fi 10951 if test $_pkg_short_errors_supported = yes; then 10952 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " $DEPS_PKGS " 2>&1` 10953 else 10954 DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors " $DEPS_PKGS " 2>&1` 10955 fi 10956 # Put the nasty error message in config.log where it belongs 10957 echo "$DEPS_PKG_ERRORS" >&5 10958 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10960$as_echo "no" >&6; } 10961 as_fn_error "$DEPS_PKG_ERRORS" "$LINENO" 5 10962elif test $pkg_failed = untried; then 10963 as_fn_error "$DEPS_PKG_ERRORS" "$LINENO" 5 10964else 10965 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS 10966 DEPS_LIBS=$pkg_cv_DEPS_LIBS 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10968$as_echo "yes" >&6; } 10969 : 10970fi 10971 10972 10973 10974 10975# optional deps 10976OPT_CFLAGS= 10977OPT_LIBS= 10978 10979# these conditionals are still used, albeit libxml2 seems to be unconditionally required 10980 10981$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 10982 10983 10984 10985 10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10987$as_echo_n "checking for ANSI C header files... " >&6; } 10988if test "${ac_cv_header_stdc+set}" = set; then : 10989 $as_echo_n "(cached) " >&6 10990else 10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10992/* end confdefs.h. */ 10993#include <stdlib.h> 10994#include <stdarg.h> 10995#include <string.h> 10996#include <float.h> 10997 10998int 10999main () 11000{ 11001 11002 ; 11003 return 0; 11004} 11005_ACEOF 11006if ac_fn_c_try_compile "$LINENO"; then : 11007 ac_cv_header_stdc=yes 11008else 11009 ac_cv_header_stdc=no 11010fi 11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11012 11013if test $ac_cv_header_stdc = yes; then 11014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016/* end confdefs.h. */ 11017#include <string.h> 11018 11019_ACEOF 11020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11021 $EGREP "memchr" >/dev/null 2>&1; then : 11022 11023else 11024 ac_cv_header_stdc=no 11025fi 11026rm -f conftest* 11027 11028fi 11029 11030if test $ac_cv_header_stdc = yes; then 11031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11033/* end confdefs.h. */ 11034#include <stdlib.h> 11035 11036_ACEOF 11037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11038 $EGREP "free" >/dev/null 2>&1; then : 11039 11040else 11041 ac_cv_header_stdc=no 11042fi 11043rm -f conftest* 11044 11045fi 11046 11047if test $ac_cv_header_stdc = yes; then 11048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11049 if test "$cross_compiling" = yes; then : 11050 : 11051else 11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11053/* end confdefs.h. */ 11054#include <ctype.h> 11055#include <stdlib.h> 11056#if ((' ' & 0x0FF) == 0x020) 11057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11059#else 11060# define ISLOWER(c) \ 11061 (('a' <= (c) && (c) <= 'i') \ 11062 || ('j' <= (c) && (c) <= 'r') \ 11063 || ('s' <= (c) && (c) <= 'z')) 11064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11065#endif 11066 11067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11068int 11069main () 11070{ 11071 int i; 11072 for (i = 0; i < 256; i++) 11073 if (XOR (islower (i), ISLOWER (i)) 11074 || toupper (i) != TOUPPER (i)) 11075 return 2; 11076 return 0; 11077} 11078_ACEOF 11079if ac_fn_c_try_run "$LINENO"; then : 11080 11081else 11082 ac_cv_header_stdc=no 11083fi 11084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11085 conftest.$ac_objext conftest.beam conftest.$ac_ext 11086fi 11087 11088fi 11089fi 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11091$as_echo "$ac_cv_header_stdc" >&6; } 11092if test $ac_cv_header_stdc = yes; then 11093 11094$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11095 11096fi 11097 11098 11099for ac_header in fcntl.h io.h malloc.h sys/file.h sys/ioctl.h unistd.h 11100do : 11101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11103eval as_val=\$$as_ac_Header 11104 if test "x$as_val" = x""yes; then : 11105 cat >>confdefs.h <<_ACEOF 11106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11107_ACEOF 11108 11109fi 11110 11111done 11112 11113 11114case ${host_os} in 11115 *mingw*) 11116 link_win32_dll="yes" 11117 ;; 11118 *) 11119 link_win32_dll="no" 11120 ;; 11121esac 11122if test "$cross_compiling" = "yes"; then 11123 dllwrap="dllwrap" 11124else 11125 dllwrap=${host}-"dllwrap" 11126fi 11127# Extract the first word of "$dllwrap", so it can be a program name with args. 11128set dummy $dllwrap; ac_word=$2 11129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11130$as_echo_n "checking for $ac_word... " >&6; } 11131if test "${ac_cv_path_DLLWRAP+set}" = set; then : 11132 $as_echo_n "(cached) " >&6 11133else 11134 case $DLLWRAP in 11135 [\\/]* | ?:[\\/]*) 11136 ac_cv_path_DLLWRAP="$DLLWRAP" # Let the user override the test with a path. 11137 ;; 11138 *) 11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11140for as_dir in $PATH 11141do 11142 IFS=$as_save_IFS 11143 test -z "$as_dir" && as_dir=. 11144 for ac_exec_ext in '' $ac_executable_extensions; do 11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11146 ac_cv_path_DLLWRAP="$as_dir/$ac_word$ac_exec_ext" 11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11148 break 2 11149 fi 11150done 11151 done 11152IFS=$as_save_IFS 11153 11154 ;; 11155esac 11156fi 11157DLLWRAP=$ac_cv_path_DLLWRAP 11158if test -n "$DLLWRAP"; then 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 11160$as_echo "$DLLWRAP" >&6; } 11161else 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11163$as_echo "no" >&6; } 11164fi 11165 11166 11167 11168 11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11170$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11171if test "${ac_cv_c_const+set}" = set; then : 11172 $as_echo_n "(cached) " >&6 11173else 11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177int 11178main () 11179{ 11180/* FIXME: Include the comments suggested by Paul. */ 11181#ifndef __cplusplus 11182 /* Ultrix mips cc rejects this. */ 11183 typedef int charset[2]; 11184 const charset cs; 11185 /* SunOS 4.1.1 cc rejects this. */ 11186 char const *const *pcpcc; 11187 char **ppc; 11188 /* NEC SVR4.0.2 mips cc rejects this. */ 11189 struct point {int x, y;}; 11190 static struct point const zero = {0,0}; 11191 /* AIX XL C 1.02.0.0 rejects this. 11192 It does not let you subtract one const X* pointer from another in 11193 an arm of an if-expression whose if-part is not a constant 11194 expression */ 11195 const char *g = "string"; 11196 pcpcc = &g + (g ? g-g : 0); 11197 /* HPUX 7.0 cc rejects these. */ 11198 ++pcpcc; 11199 ppc = (char**) pcpcc; 11200 pcpcc = (char const *const *) ppc; 11201 { /* SCO 3.2v4 cc rejects this. */ 11202 char *t; 11203 char const *s = 0 ? (char *) 0 : (char const *) 0; 11204 11205 *t++ = 0; 11206 if (s) return 0; 11207 } 11208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11209 int x[] = {25, 17}; 11210 const int *foo = &x[0]; 11211 ++foo; 11212 } 11213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11214 typedef const int *iptr; 11215 iptr p = 0; 11216 ++p; 11217 } 11218 { /* AIX XL C 1.02.0.0 rejects this saying 11219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11220 struct s { int j; const int *ap[3]; }; 11221 struct s *b; b->j = 5; 11222 } 11223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11224 const int foo = 10; 11225 if (!foo) return 0; 11226 } 11227 return !cs[0] && !zero.x; 11228#endif 11229 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234if ac_fn_c_try_compile "$LINENO"; then : 11235 ac_cv_c_const=yes 11236else 11237 ac_cv_c_const=no 11238fi 11239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11240fi 11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11242$as_echo "$ac_cv_c_const" >&6; } 11243if test $ac_cv_c_const = no; then 11244 11245$as_echo "#define const /**/" >>confdefs.h 11246 11247fi 11248 11249 11250 11251_cppflags=$CPPFLAGS 11252_ldflags=$LDFLAGS 11253 11254 11255# Check whether --with-zlib was given. 11256if test "${with_zlib+set}" = set; then : 11257 withval=$with_zlib; 11258 if test "x$withval" = "xyes"; then 11259 ZLIB_DIR="" 11260 elif test "x$withval" != "xno"; then 11261 ZLIB_DIR="$withval" 11262 CPPFLAGS="$CPPFLAGS -I$withval/include" 11263 LDFLAGS="$LDFLAGS -L$withval/lib" 11264 else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No zlib? Are you sure? I think I'll look for it anyway..." >&5 11266$as_echo "$as_me: WARNING: No zlib? Are you sure? I think I'll look for it anyway..." >&2;} 11267 ZLIB_DIR="" 11268 fi 11269 11270else 11271 ZLIB_DIR="" 11272 11273fi 11274 11275 11276ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11277if test "x$ac_cv_header_zlib_h" = x""yes; then : 11278 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 11280$as_echo_n "checking for gzread in -lz... " >&6; } 11281if test "${ac_cv_lib_z_gzread+set}" = set; then : 11282 $as_echo_n "(cached) " >&6 11283else 11284 ac_check_lib_save_LIBS=$LIBS 11285LIBS="-lz $LIBS" 11286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287/* end confdefs.h. */ 11288 11289/* Override any GCC internal prototype to avoid an error. 11290 Use char because int might match the return type of a GCC 11291 builtin and then its argument prototype would still apply. */ 11292#ifdef __cplusplus 11293extern "C" 11294#endif 11295char gzread (); 11296int 11297main () 11298{ 11299return gzread (); 11300 ; 11301 return 0; 11302} 11303_ACEOF 11304if ac_fn_c_try_link "$LINENO"; then : 11305 ac_cv_lib_z_gzread=yes 11306else 11307 ac_cv_lib_z_gzread=no 11308fi 11309rm -f core conftest.err conftest.$ac_objext \ 11310 conftest$ac_exeext conftest.$ac_ext 11311LIBS=$ac_check_lib_save_LIBS 11312fi 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 11314$as_echo "$ac_cv_lib_z_gzread" >&6; } 11315if test "x$ac_cv_lib_z_gzread" = x""yes; then : 11316 11317 11318$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 11319 11320 HAVE_ZLIB=1 11321 if test "x$ZLIB_DIR" != "x"; then 11322 ZLIB_CFLAGS="-I$ZLIB_DIR/include" 11323 ZLIB_LIBS="-L$ZLIB_DIR/lib -lz" 11324 else 11325 ZLIB_CFLAGS="" 11326 ZLIB_LIBS="-lz" 11327 fi 11328 11329else 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lgz" >&5 11331$as_echo_n "checking for gzread in -lgz... " >&6; } 11332if test "${ac_cv_lib_gz_gzread+set}" = set; then : 11333 $as_echo_n "(cached) " >&6 11334else 11335 ac_check_lib_save_LIBS=$LIBS 11336LIBS="-lgz $LIBS" 11337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11338/* end confdefs.h. */ 11339 11340/* Override any GCC internal prototype to avoid an error. 11341 Use char because int might match the return type of a GCC 11342 builtin and then its argument prototype would still apply. */ 11343#ifdef __cplusplus 11344extern "C" 11345#endif 11346char gzread (); 11347int 11348main () 11349{ 11350return gzread (); 11351 ; 11352 return 0; 11353} 11354_ACEOF 11355if ac_fn_c_try_link "$LINENO"; then : 11356 ac_cv_lib_gz_gzread=yes 11357else 11358 ac_cv_lib_gz_gzread=no 11359fi 11360rm -f core conftest.err conftest.$ac_objext \ 11361 conftest$ac_exeext conftest.$ac_ext 11362LIBS=$ac_check_lib_save_LIBS 11363fi 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gz_gzread" >&5 11365$as_echo "$ac_cv_lib_gz_gzread" >&6; } 11366if test "x$ac_cv_lib_gz_gzread" = x""yes; then : 11367 11368 11369$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 11370 11371 HAVE_ZLIB=1 11372 if test "x$ZLIB_DIR" != "x"; then 11373 ZLIB_CFLAGS="-I$ZLIB_DIR/include" 11374 ZLIB_LIBS="-L$ZLIB_DIR/lib -lgz" 11375 else 11376 ZLIB_CFLAGS="" 11377 ZLIB_LIBS="-lgz" 11378 fi 11379 11380else 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Unable to find zlib, which is kinda necessary. * * *" >&5 11382$as_echo "$as_me: WARNING: * * * Unable to find zlib, which is kinda necessary. * * *" >&2;} 11383 HAVE_ZLIB=0 11384 ZLIB_CFLAGS="" 11385 ZLIB_LIBS="" 11386 11387fi 11388 11389 11390fi 11391 11392 11393fi 11394 11395 11396 11397OPT_CFLAGS="$OPT_CFLAGS $ZLIB_CFLAGS" 11398OPT_LIBS="$OPT_LIBS $ZLIB_LIBS" 11399 11400CPPFLAGS=$_cppflags 11401LDFLAGS=$_ldflags 11402 11403 11404_cppflags=$CPPFLAGS 11405_ldflags=$LDFLAGS 11406 11407CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" 11408 11409 11410# Check whether --with-png was given. 11411if test "${with_png+set}" = set; then : 11412 withval=$with_png; 11413 if test "x$withval" = "xyes"; then 11414 PNG_DIR="" 11415 elif test "x$withval" != "xno"; then 11416 PNG_DIR=$withval 11417 CPPFLAGS="$CPPFLAGS -I$withval/include" 11418 LDFLAGS="$LDFLAGS -L$withval/lib" 11419 else 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No libpng? Are you sure? I think I'll look for it anyway..." >&5 11421$as_echo "$as_me: WARNING: No libpng? Are you sure? I think I'll look for it anyway..." >&2;} 11422 PNG_DIR="" 11423 fi 11424 11425else 11426 PNG_DIR="" 11427 11428fi 11429 11430 11431ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 11432if test "x$ac_cv_header_png_h" = x""yes; then : 11433 11434 ac_fn_c_check_header_compile "$LINENO" "pngconf.h" "ac_cv_header_pngconf_h" "#if HAVE_ZLIB 11435#include <zlib.h> 11436#endif 11437 11438" 11439if test "x$ac_cv_header_pngconf_h" = x""yes; then : 11440 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_free in -lpng" >&5 11442$as_echo_n "checking for png_free in -lpng... " >&6; } 11443if test "${ac_cv_lib_png_png_free+set}" = set; then : 11444 $as_echo_n "(cached) " >&6 11445else 11446 ac_check_lib_save_LIBS=$LIBS 11447LIBS="-lpng $ZLIB_LIBS -lm $LIBS" 11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11449/* end confdefs.h. */ 11450 11451/* Override any GCC internal prototype to avoid an error. 11452 Use char because int might match the return type of a GCC 11453 builtin and then its argument prototype would still apply. */ 11454#ifdef __cplusplus 11455extern "C" 11456#endif 11457char png_free (); 11458int 11459main () 11460{ 11461return png_free (); 11462 ; 11463 return 0; 11464} 11465_ACEOF 11466if ac_fn_c_try_link "$LINENO"; then : 11467 ac_cv_lib_png_png_free=yes 11468else 11469 ac_cv_lib_png_png_free=no 11470fi 11471rm -f core conftest.err conftest.$ac_objext \ 11472 conftest$ac_exeext conftest.$ac_ext 11473LIBS=$ac_check_lib_save_LIBS 11474fi 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_free" >&5 11476$as_echo "$ac_cv_lib_png_png_free" >&6; } 11477if test "x$ac_cv_lib_png_png_free" = x""yes; then : 11478 11479 11480$as_echo "#define HasPNG 1" >>confdefs.h 11481 11482 HAVE_PNG=1 11483 if test "x$PNG_DIR" != "x"; then 11484 PNG_CFLAGS="-I$PNG_DIR/include" 11485 PNG_LIBS="-L$PNG_DIR/lib -lpng" 11486 else 11487 PNG_CFLAGS="" 11488 PNG_LIBS="-lpng" 11489 fi 11490 11491else 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Unable to find libpng, which is kinda necessary. * * *" >&5 11493$as_echo "$as_me: WARNING: * * * Unable to find libpng, which is kinda necessary. * * *" >&2;} 11494 HAVE_PNG=0 11495 PNG_CFLAGS="" 11496 PNG_LIBS="" 11497 11498fi 11499 11500 11501else 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Missing \"pngconf.h\" header file * * *" >&5 11503$as_echo "$as_me: WARNING: * * * Missing \"pngconf.h\" header file * * *" >&2;} 11504 HAVE_PNG=0 11505 PNG_CFLAGS="" 11506 PNG_LIBS="" 11507 11508fi 11509 11510 11511 11512else 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Missing \"png.h\" header file * * *" >&5 11514$as_echo "$as_me: WARNING: * * * Missing \"png.h\" header file * * *" >&2;} 11515 HAVE_PNG=0 11516 PNG_CFLAGS="" 11517 PNG_LIBS="" 11518 11519fi 11520 11521 11522 11523OPT_CFLAGS="$OPT_CFLAGS $PNG_CFLAGS" 11524OPT_LIBS="$OPT_LIBS $PNG_LIBS" 11525 11526CPPFLAGS=$_cppflags 11527LDFLAGS=$_ldflags 11528 11529 11530 11531_cppflags=$CPPFLAGS 11532_ldflags=$LDFLAGS 11533 11534have_libwmf=no 11535 11536 11537# Check whether --with-libwmf was given. 11538if test "${with_libwmf+set}" = set; then : 11539 withval=$with_libwmf; 11540 if test "x$withval" != "xno" ; then 11541 if test "x$withval" != "xyes" ; then 11542 LIBWMF_DIR=$withval 11543 fi 11544 search_for_libwmf=yes 11545 else 11546 search_for_libwmf=no 11547 fi 11548 11549else 11550 search_for_libwmf=no 11551 11552fi 11553 11554 11555if test $search_for_libwmf != no ; then 11556 if test -n "$LIBWMF_DIR" ; then 11557 # Extract the first word of "libwmf-config", so it can be a program name with args. 11558set dummy libwmf-config; ac_word=$2 11559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11560$as_echo_n "checking for $ac_word... " >&6; } 11561if test "${ac_cv_path_LIBWMF_CONFIG+set}" = set; then : 11562 $as_echo_n "(cached) " >&6 11563else 11564 case $LIBWMF_CONFIG in 11565 [\\/]* | ?:[\\/]*) 11566 ac_cv_path_LIBWMF_CONFIG="$LIBWMF_CONFIG" # Let the user override the test with a path. 11567 ;; 11568 *) 11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11570as_dummy="$LIBWMF_DIR/bin:$PATH" 11571for as_dir in $as_dummy 11572do 11573 IFS=$as_save_IFS 11574 test -z "$as_dir" && as_dir=. 11575 for ac_exec_ext in '' $ac_executable_extensions; do 11576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11577 ac_cv_path_LIBWMF_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11579 break 2 11580 fi 11581done 11582 done 11583IFS=$as_save_IFS 11584 11585 ;; 11586esac 11587fi 11588LIBWMF_CONFIG=$ac_cv_path_LIBWMF_CONFIG 11589if test -n "$LIBWMF_CONFIG"; then 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWMF_CONFIG" >&5 11591$as_echo "$LIBWMF_CONFIG" >&6; } 11592else 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11594$as_echo "no" >&6; } 11595fi 11596 11597 11598 else 11599 # Extract the first word of "libwmf-config", so it can be a program name with args. 11600set dummy libwmf-config; ac_word=$2 11601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11602$as_echo_n "checking for $ac_word... " >&6; } 11603if test "${ac_cv_path_LIBWMF_CONFIG+set}" = set; then : 11604 $as_echo_n "(cached) " >&6 11605else 11606 case $LIBWMF_CONFIG in 11607 [\\/]* | ?:[\\/]*) 11608 ac_cv_path_LIBWMF_CONFIG="$LIBWMF_CONFIG" # Let the user override the test with a path. 11609 ;; 11610 *) 11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11612for as_dir in $PATH 11613do 11614 IFS=$as_save_IFS 11615 test -z "$as_dir" && as_dir=. 11616 for ac_exec_ext in '' $ac_executable_extensions; do 11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11618 ac_cv_path_LIBWMF_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11620 break 2 11621 fi 11622done 11623 done 11624IFS=$as_save_IFS 11625 11626 ;; 11627esac 11628fi 11629LIBWMF_CONFIG=$ac_cv_path_LIBWMF_CONFIG 11630if test -n "$LIBWMF_CONFIG"; then 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWMF_CONFIG" >&5 11632$as_echo "$LIBWMF_CONFIG" >&6; } 11633else 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11635$as_echo "no" >&6; } 11636fi 11637 11638 11639 fi 11640 11641 if test -n "$LIBWMF_CONFIG" ; then 11642 libwmf_cflags=`$LIBWMF_CONFIG --cflags` 11643 libwmf_libs=`$LIBWMF_CONFIG --libs` 11644 else 11645 as_fn_error "* * * unable to find libwmf-config; unable to continue * * *" "$LINENO" 5 11646 fi 11647 11648 CPPFLAGS="$CPPFLAGS $libwmf_cflags" 11649 LDFLAGS="$LDFLAGS $libwmf_libs" 11650 11651 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/api.h" "ac_cv_header_libwmf_api_h" "$ac_includes_default" 11652if test "x$ac_cv_header_libwmf_api_h" = x""yes; then : 11653 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_stream_create in -lwmf" >&5 11655$as_echo_n "checking for wmf_stream_create in -lwmf... " >&6; } 11656if test "${ac_cv_lib_wmf_wmf_stream_create+set}" = set; then : 11657 $as_echo_n "(cached) " >&6 11658else 11659 ac_check_lib_save_LIBS=$LIBS 11660LIBS="-lwmf $libwmf_libs $LIBS" 11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11662/* end confdefs.h. */ 11663 11664/* Override any GCC internal prototype to avoid an error. 11665 Use char because int might match the return type of a GCC 11666 builtin and then its argument prototype would still apply. */ 11667#ifdef __cplusplus 11668extern "C" 11669#endif 11670char wmf_stream_create (); 11671int 11672main () 11673{ 11674return wmf_stream_create (); 11675 ; 11676 return 0; 11677} 11678_ACEOF 11679if ac_fn_c_try_link "$LINENO"; then : 11680 ac_cv_lib_wmf_wmf_stream_create=yes 11681else 11682 ac_cv_lib_wmf_wmf_stream_create=no 11683fi 11684rm -f core conftest.err conftest.$ac_objext \ 11685 conftest$ac_exeext conftest.$ac_ext 11686LIBS=$ac_check_lib_save_LIBS 11687fi 11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_stream_create" >&5 11689$as_echo "$ac_cv_lib_wmf_wmf_stream_create" >&6; } 11690if test "x$ac_cv_lib_wmf_wmf_stream_create" = x""yes; then : 11691 have_libwmf=yes 11692else 11693 11694 as_fn_error "* * * libwmf >= 0.2.1 required * * *" "$LINENO" 5 11695 11696fi 11697 11698 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/foreign.h" "ac_cv_header_libwmf_foreign_h" "$ac_includes_default" 11699if test "x$ac_cv_header_libwmf_foreign_h" = x""yes; then : 11700 11701 11702$as_echo "#define HAVE_LIBWMF_FOREIGN_H 1" >>confdefs.h 11703 11704 11705else 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * libwmf >= 0.2.2 recommended * * *" >&5 11707$as_echo "$as_me: WARNING: * * * libwmf >= 0.2.2 recommended * * *" >&2;} 11708 11709fi 11710 11711 11712 11713fi 11714 11715 11716 11717 if test $have_libwmf != no; then 11718 11719$as_echo "#define HAVE_LIBWMF 1" >>confdefs.h 11720 11721 11722 WMF_CFLAGS="$libwmf_cflags" 11723 WMF_LIBS="$libwmf_libs" 11724 fi 11725fi 11726 11727CPPFLAGS=$_cppflags 11728LDFLAGS=$_ldflags 11729 11730OPT_CFLAGS="$OPT_CFLAGS $WMF_CFLAGS" 11731OPT_LIBS="$OPT_LIBS $WMF_LIBS" 11732 11733 11734 11735 11736ac_ext=c 11737ac_cpp='$CPP $CPPFLAGS' 11738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11740ac_compiler_gnu=$ac_cv_c_compiler_gnu 11741 11742 11743CPPFLAGS=$_cppflags 11744LDFLAGS=$_ldflags 11745 11746 11747# The cast to long int works around a bug in the HP C Compiler 11748# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11749# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11750# This bug is HP SR number 8606223364. 11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 11752$as_echo_n "checking size of char... " >&6; } 11753if test "${ac_cv_sizeof_char+set}" = set; then : 11754 $as_echo_n "(cached) " >&6 11755else 11756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 11757 11758else 11759 if test "$ac_cv_type_char" = yes; then 11760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11762{ as_fn_set_status 77 11763as_fn_error "cannot compute sizeof (char) 11764See \`config.log' for more details." "$LINENO" 5; }; } 11765 else 11766 ac_cv_sizeof_char=0 11767 fi 11768fi 11769 11770fi 11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 11772$as_echo "$ac_cv_sizeof_char" >&6; } 11773 11774 11775 11776cat >>confdefs.h <<_ACEOF 11777#define SIZEOF_CHAR $ac_cv_sizeof_char 11778_ACEOF 11779 11780 11781# The cast to long int works around a bug in the HP C Compiler 11782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11784# This bug is HP SR number 8606223364. 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 11786$as_echo_n "checking size of short... " >&6; } 11787if test "${ac_cv_sizeof_short+set}" = set; then : 11788 $as_echo_n "(cached) " >&6 11789else 11790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 11791 11792else 11793 if test "$ac_cv_type_short" = yes; then 11794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11796{ as_fn_set_status 77 11797as_fn_error "cannot compute sizeof (short) 11798See \`config.log' for more details." "$LINENO" 5; }; } 11799 else 11800 ac_cv_sizeof_short=0 11801 fi 11802fi 11803 11804fi 11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 11806$as_echo "$ac_cv_sizeof_short" >&6; } 11807 11808 11809 11810cat >>confdefs.h <<_ACEOF 11811#define SIZEOF_SHORT $ac_cv_sizeof_short 11812_ACEOF 11813 11814 11815# The cast to long int works around a bug in the HP C Compiler 11816# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11817# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11818# This bug is HP SR number 8606223364. 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11820$as_echo_n "checking size of int... " >&6; } 11821if test "${ac_cv_sizeof_int+set}" = set; then : 11822 $as_echo_n "(cached) " >&6 11823else 11824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 11825 11826else 11827 if test "$ac_cv_type_int" = yes; then 11828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11830{ as_fn_set_status 77 11831as_fn_error "cannot compute sizeof (int) 11832See \`config.log' for more details." "$LINENO" 5; }; } 11833 else 11834 ac_cv_sizeof_int=0 11835 fi 11836fi 11837 11838fi 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11840$as_echo "$ac_cv_sizeof_int" >&6; } 11841 11842 11843 11844cat >>confdefs.h <<_ACEOF 11845#define SIZEOF_INT $ac_cv_sizeof_int 11846_ACEOF 11847 11848 11849# The cast to long int works around a bug in the HP C Compiler 11850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11852# This bug is HP SR number 8606223364. 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11854$as_echo_n "checking size of long... " >&6; } 11855if test "${ac_cv_sizeof_long+set}" = set; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11859 11860else 11861 if test "$ac_cv_type_long" = yes; then 11862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11864{ as_fn_set_status 77 11865as_fn_error "cannot compute sizeof (long) 11866See \`config.log' for more details." "$LINENO" 5; }; } 11867 else 11868 ac_cv_sizeof_long=0 11869 fi 11870fi 11871 11872fi 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11874$as_echo "$ac_cv_sizeof_long" >&6; } 11875 11876 11877 11878cat >>confdefs.h <<_ACEOF 11879#define SIZEOF_LONG $ac_cv_sizeof_long 11880_ACEOF 11881 11882 11883 11884if test "$SIZEOF_CHAR" != "1" ; then 11885 if test "$SIZEOF_SHORT" != "2" ; then 11886 if test "$SIZEOF_INT" != "4" ; then 11887 11888$as_echo "#define MATCHED_TYPE 1" >>confdefs.h 11889 11890 fi 11891 fi 11892fi 11893 11894if test "$cross_compiling" != "yes" ; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11896$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11897if test "${ac_cv_c_bigendian+set}" = set; then : 11898 $as_echo_n "(cached) " >&6 11899else 11900 ac_cv_c_bigendian=unknown 11901 # See if we're dealing with a universal compiler. 11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11903/* end confdefs.h. */ 11904#ifndef __APPLE_CC__ 11905 not a universal capable compiler 11906 #endif 11907 typedef int dummy; 11908 11909_ACEOF 11910if ac_fn_c_try_compile "$LINENO"; then : 11911 11912 # Check for potential -arch flags. It is not universal unless 11913 # there are at least two -arch flags with different values. 11914 ac_arch= 11915 ac_prev= 11916 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11917 if test -n "$ac_prev"; then 11918 case $ac_word in 11919 i?86 | x86_64 | ppc | ppc64) 11920 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11921 ac_arch=$ac_word 11922 else 11923 ac_cv_c_bigendian=universal 11924 break 11925 fi 11926 ;; 11927 esac 11928 ac_prev= 11929 elif test "x$ac_word" = "x-arch"; then 11930 ac_prev=arch 11931 fi 11932 done 11933fi 11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11935 if test $ac_cv_c_bigendian = unknown; then 11936 # See if sys/param.h defines the BYTE_ORDER macro. 11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939#include <sys/types.h> 11940 #include <sys/param.h> 11941 11942int 11943main () 11944{ 11945#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11946 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11947 && LITTLE_ENDIAN) 11948 bogus endian macros 11949 #endif 11950 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955if ac_fn_c_try_compile "$LINENO"; then : 11956 # It does; now see whether it defined to BIG_ENDIAN or not. 11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11958/* end confdefs.h. */ 11959#include <sys/types.h> 11960 #include <sys/param.h> 11961 11962int 11963main () 11964{ 11965#if BYTE_ORDER != BIG_ENDIAN 11966 not big endian 11967 #endif 11968 11969 ; 11970 return 0; 11971} 11972_ACEOF 11973if ac_fn_c_try_compile "$LINENO"; then : 11974 ac_cv_c_bigendian=yes 11975else 11976 ac_cv_c_bigendian=no 11977fi 11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11979fi 11980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11981 fi 11982 if test $ac_cv_c_bigendian = unknown; then 11983 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985/* end confdefs.h. */ 11986#include <limits.h> 11987 11988int 11989main () 11990{ 11991#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11992 bogus endian macros 11993 #endif 11994 11995 ; 11996 return 0; 11997} 11998_ACEOF 11999if ac_fn_c_try_compile "$LINENO"; then : 12000 # It does; now see whether it defined to _BIG_ENDIAN or not. 12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12002/* end confdefs.h. */ 12003#include <limits.h> 12004 12005int 12006main () 12007{ 12008#ifndef _BIG_ENDIAN 12009 not big endian 12010 #endif 12011 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_compile "$LINENO"; then : 12017 ac_cv_c_bigendian=yes 12018else 12019 ac_cv_c_bigendian=no 12020fi 12021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12022fi 12023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12024 fi 12025 if test $ac_cv_c_bigendian = unknown; then 12026 # Compile a test program. 12027 if test "$cross_compiling" = yes; then : 12028 # Try to guess by grepping values from an object file. 12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12030/* end confdefs.h. */ 12031short int ascii_mm[] = 12032 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12033 short int ascii_ii[] = 12034 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12035 int use_ascii (int i) { 12036 return ascii_mm[i] + ascii_ii[i]; 12037 } 12038 short int ebcdic_ii[] = 12039 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12040 short int ebcdic_mm[] = 12041 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12042 int use_ebcdic (int i) { 12043 return ebcdic_mm[i] + ebcdic_ii[i]; 12044 } 12045 extern int foo; 12046 12047int 12048main () 12049{ 12050return use_ascii (foo) == use_ebcdic (foo); 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055if ac_fn_c_try_compile "$LINENO"; then : 12056 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12057 ac_cv_c_bigendian=yes 12058 fi 12059 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12060 if test "$ac_cv_c_bigendian" = unknown; then 12061 ac_cv_c_bigendian=no 12062 else 12063 # finding both strings is unlikely to happen, but who knows? 12064 ac_cv_c_bigendian=unknown 12065 fi 12066 fi 12067fi 12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12069else 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12071/* end confdefs.h. */ 12072$ac_includes_default 12073int 12074main () 12075{ 12076 12077 /* Are we little or big endian? From Harbison&Steele. */ 12078 union 12079 { 12080 long int l; 12081 char c[sizeof (long int)]; 12082 } u; 12083 u.l = 1; 12084 return u.c[sizeof (long int) - 1] == 1; 12085 12086 ; 12087 return 0; 12088} 12089_ACEOF 12090if ac_fn_c_try_run "$LINENO"; then : 12091 ac_cv_c_bigendian=no 12092else 12093 ac_cv_c_bigendian=yes 12094fi 12095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12096 conftest.$ac_objext conftest.beam conftest.$ac_ext 12097fi 12098 12099 fi 12100fi 12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12102$as_echo "$ac_cv_c_bigendian" >&6; } 12103 case $ac_cv_c_bigendian in #( 12104 yes) 12105 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12106;; #( 12107 no) 12108 ;; #( 12109 universal) 12110 12111$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12112 12113 ;; #( 12114 *) 12115 as_fn_error "unknown endianness 12116 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12117 esac 12118 12119 if test "$ac_cv_c_bigendian" = "no" ; then 12120 12121$as_echo "#define XML_BYTE_ORDER 12" >>confdefs.h 12122 12123 else 12124 if test "$ac_cv_c_bigendian" = "yes" ; then 12125 12126$as_echo "#define XML_BYTE_ORDER 21" >>confdefs.h 12127 12128 fi 12129 fi 12130else 12131 12132$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12133 12134fi 12135 12136 12137 12138 12139ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 12140if test "x$ac_cv_func_getopt_long" = x""yes; then : 12141 12142else 12143 12144 case " $LIBOBJS " in 12145 *" getopt1.$ac_objext "* ) ;; 12146 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" 12147 ;; 12148esac 12149 12150 case " $LIBOBJS " in 12151 *" getopt.$ac_objext "* ) ;; 12152 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 12153 ;; 12154esac 12155 12156 12157fi 12158 12159 12160ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 12161if test "x$ac_cv_func_strcasecmp" = x""yes; then : 12162 12163else 12164 12165 case " $LIBOBJS " in 12166 *" strcasecmp.$ac_objext "* ) ;; 12167 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 12168 ;; 12169esac 12170 12171 12172fi 12173 12174 12175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12176/* end confdefs.h. */ 12177#include <string.h> 12178 12179_ACEOF 12180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12181 $EGREP "strcasecmp" >/dev/null 2>&1; then : 12182 12183else 12184 12185 12186$as_echo "#define DEFINE_STRCASECMP 1" >>confdefs.h 12187 12188 12189fi 12190rm -f conftest* 12191 12192 12193for ac_func in memcpy 12194do : 12195 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" 12196if test "x$ac_cv_func_memcpy" = x""yes; then : 12197 cat >>confdefs.h <<_ACEOF 12198#define HAVE_MEMCPY 1 12199_ACEOF 12200 12201fi 12202done 12203 12204 12205 12206 12207 12208 for ac_header in $ac_header_list 12209do : 12210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12211ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12212" 12213eval as_val=\$$as_ac_Header 12214 if test "x$as_val" = x""yes; then : 12215 cat >>confdefs.h <<_ACEOF 12216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12217_ACEOF 12218 12219fi 12220 12221done 12222 12223 12224 12225 12226 12227 12228 12229 12230for ac_func in getpagesize 12231do : 12232 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12233if test "x$ac_cv_func_getpagesize" = x""yes; then : 12234 cat >>confdefs.h <<_ACEOF 12235#define HAVE_GETPAGESIZE 1 12236_ACEOF 12237 12238fi 12239done 12240 12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12242$as_echo_n "checking for working mmap... " >&6; } 12243if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 12244 $as_echo_n "(cached) " >&6 12245else 12246 if test "$cross_compiling" = yes; then : 12247 ac_cv_func_mmap_fixed_mapped=no 12248else 12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12250/* end confdefs.h. */ 12251$ac_includes_default 12252/* malloc might have been renamed as rpl_malloc. */ 12253#undef malloc 12254 12255/* Thanks to Mike Haertel and Jim Avera for this test. 12256 Here is a matrix of mmap possibilities: 12257 mmap private not fixed 12258 mmap private fixed at somewhere currently unmapped 12259 mmap private fixed at somewhere already mapped 12260 mmap shared not fixed 12261 mmap shared fixed at somewhere currently unmapped 12262 mmap shared fixed at somewhere already mapped 12263 For private mappings, we should verify that changes cannot be read() 12264 back from the file, nor mmap's back from the file at a different 12265 address. (There have been systems where private was not correctly 12266 implemented like the infamous i386 svr4.0, and systems where the 12267 VM page cache was not coherent with the file system buffer cache 12268 like early versions of FreeBSD and possibly contemporary NetBSD.) 12269 For shared mappings, we should conversely verify that changes get 12270 propagated back to all the places they're supposed to be. 12271 12272 Grep wants private fixed already mapped. 12273 The main things grep needs to know about mmap are: 12274 * does it exist and is it safe to write into the mmap'd area 12275 * how to use it (BSD variants) */ 12276 12277#include <fcntl.h> 12278#include <sys/mman.h> 12279 12280#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12281char *malloc (); 12282#endif 12283 12284/* This mess was copied from the GNU getpagesize.h. */ 12285#ifndef HAVE_GETPAGESIZE 12286# ifdef _SC_PAGESIZE 12287# define getpagesize() sysconf(_SC_PAGESIZE) 12288# else /* no _SC_PAGESIZE */ 12289# ifdef HAVE_SYS_PARAM_H 12290# include <sys/param.h> 12291# ifdef EXEC_PAGESIZE 12292# define getpagesize() EXEC_PAGESIZE 12293# else /* no EXEC_PAGESIZE */ 12294# ifdef NBPG 12295# define getpagesize() NBPG * CLSIZE 12296# ifndef CLSIZE 12297# define CLSIZE 1 12298# endif /* no CLSIZE */ 12299# else /* no NBPG */ 12300# ifdef NBPC 12301# define getpagesize() NBPC 12302# else /* no NBPC */ 12303# ifdef PAGESIZE 12304# define getpagesize() PAGESIZE 12305# endif /* PAGESIZE */ 12306# endif /* no NBPC */ 12307# endif /* no NBPG */ 12308# endif /* no EXEC_PAGESIZE */ 12309# else /* no HAVE_SYS_PARAM_H */ 12310# define getpagesize() 8192 /* punt totally */ 12311# endif /* no HAVE_SYS_PARAM_H */ 12312# endif /* no _SC_PAGESIZE */ 12313 12314#endif /* no HAVE_GETPAGESIZE */ 12315 12316int 12317main () 12318{ 12319 char *data, *data2, *data3; 12320 const char *cdata2; 12321 int i, pagesize; 12322 int fd, fd2; 12323 12324 pagesize = getpagesize (); 12325 12326 /* First, make a file with some known garbage in it. */ 12327 data = (char *) malloc (pagesize); 12328 if (!data) 12329 return 1; 12330 for (i = 0; i < pagesize; ++i) 12331 *(data + i) = rand (); 12332 umask (0); 12333 fd = creat ("conftest.mmap", 0600); 12334 if (fd < 0) 12335 return 2; 12336 if (write (fd, data, pagesize) != pagesize) 12337 return 3; 12338 close (fd); 12339 12340 /* Next, check that the tail of a page is zero-filled. File must have 12341 non-zero length, otherwise we risk SIGBUS for entire page. */ 12342 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12343 if (fd2 < 0) 12344 return 4; 12345 cdata2 = ""; 12346 if (write (fd2, cdata2, 1) != 1) 12347 return 5; 12348 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12349 if (data2 == MAP_FAILED) 12350 return 6; 12351 for (i = 0; i < pagesize; ++i) 12352 if (*(data2 + i)) 12353 return 7; 12354 close (fd2); 12355 if (munmap (data2, pagesize)) 12356 return 8; 12357 12358 /* Next, try to mmap the file at a fixed address which already has 12359 something else allocated at it. If we can, also make sure that 12360 we see the same garbage. */ 12361 fd = open ("conftest.mmap", O_RDWR); 12362 if (fd < 0) 12363 return 9; 12364 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12365 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12366 return 10; 12367 for (i = 0; i < pagesize; ++i) 12368 if (*(data + i) != *(data2 + i)) 12369 return 11; 12370 12371 /* Finally, make sure that changes to the mapped area do not 12372 percolate back to the file as seen by read(). (This is a bug on 12373 some variants of i386 svr4.0.) */ 12374 for (i = 0; i < pagesize; ++i) 12375 *(data2 + i) = *(data2 + i) + 1; 12376 data3 = (char *) malloc (pagesize); 12377 if (!data3) 12378 return 12; 12379 if (read (fd, data3, pagesize) != pagesize) 12380 return 13; 12381 for (i = 0; i < pagesize; ++i) 12382 if (*(data + i) != *(data3 + i)) 12383 return 14; 12384 close (fd); 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_run "$LINENO"; then : 12389 ac_cv_func_mmap_fixed_mapped=yes 12390else 12391 ac_cv_func_mmap_fixed_mapped=no 12392fi 12393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12394 conftest.$ac_objext conftest.beam conftest.$ac_ext 12395fi 12396 12397fi 12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12399$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12400if test $ac_cv_func_mmap_fixed_mapped = yes; then 12401 12402$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12403 12404fi 12405rm -f conftest.mmap conftest.txt 12406 12407 12408 12409 12410ac_config_files="$ac_config_files wvAbw wvDVI wvPS wvPDF wvHtml wvDocBook wvLatex wvCleanLatex wvText wvWml wv-1.0.pc version.c GNUmakefile xml/GNUmakefile help/GNUmakefile help/man/GNUmakefile patterns/GNUmakefile wingdingfont/GNUmakefile" 12411 12412cat >confcache <<\_ACEOF 12413# This file is a shell script that caches the results of configure 12414# tests run on this system so they can be shared between configure 12415# scripts and configure runs, see configure's option --config-cache. 12416# It is not useful on other systems. If it contains results you don't 12417# want to keep, you may remove or edit it. 12418# 12419# config.status only pays attention to the cache file if you give it 12420# the --recheck option to rerun configure. 12421# 12422# `ac_cv_env_foo' variables (set or unset) will be overridden when 12423# loading this file, other *unset* `ac_cv_foo' will be assigned the 12424# following values. 12425 12426_ACEOF 12427 12428# The following way of writing the cache mishandles newlines in values, 12429# but we know of no workaround that is simple, portable, and efficient. 12430# So, we kill variables containing newlines. 12431# Ultrix sh set writes to stderr and can't be redirected directly, 12432# and sets the high bit in the cache file unless we assign to the vars. 12433( 12434 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12435 eval ac_val=\$$ac_var 12436 case $ac_val in #( 12437 *${as_nl}*) 12438 case $ac_var in #( 12439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12441 esac 12442 case $ac_var in #( 12443 _ | IFS | as_nl) ;; #( 12444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12445 *) { eval $ac_var=; unset $ac_var;} ;; 12446 esac ;; 12447 esac 12448 done 12449 12450 (set) 2>&1 | 12451 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12452 *${as_nl}ac_space=\ *) 12453 # `set' does not quote correctly, so add quotes: double-quote 12454 # substitution turns \\\\ into \\, and sed turns \\ into \. 12455 sed -n \ 12456 "s/'/'\\\\''/g; 12457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12458 ;; #( 12459 *) 12460 # `set' quotes correctly as required by POSIX, so do not add quotes. 12461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12462 ;; 12463 esac | 12464 sort 12465) | 12466 sed ' 12467 /^ac_cv_env_/b end 12468 t clear 12469 :clear 12470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12471 t end 12472 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12473 :end' >>confcache 12474if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12475 if test -w "$cache_file"; then 12476 test "x$cache_file" != "x/dev/null" && 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12478$as_echo "$as_me: updating cache $cache_file" >&6;} 12479 cat confcache >$cache_file 12480 else 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12482$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12483 fi 12484fi 12485rm -f confcache 12486 12487test "x$prefix" = xNONE && prefix=$ac_default_prefix 12488# Let make expand exec_prefix. 12489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12490 12491DEFS=-DHAVE_CONFIG_H 12492 12493ac_libobjs= 12494ac_ltlibobjs= 12495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12496 # 1. Remove the extension, and $U if already installed. 12497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12500 # will be set to the directory where LIBOBJS objects are built. 12501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12503done 12504LIBOBJS=$ac_libobjs 12505 12506LTLIBOBJS=$ac_ltlibobjs 12507 12508 12509 if test -n "$EXEEXT"; then 12510 am__EXEEXT_TRUE= 12511 am__EXEEXT_FALSE='#' 12512else 12513 am__EXEEXT_TRUE='#' 12514 am__EXEEXT_FALSE= 12515fi 12516 12517if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12518 as_fn_error "conditional \"AMDEP\" was never defined. 12519Usually this means the macro was only invoked conditionally." "$LINENO" 5 12520fi 12521if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12522 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12523Usually this means the macro was only invoked conditionally." "$LINENO" 5 12524fi 12525 12526 12527: ${CONFIG_STATUS=./config.status} 12528ac_write_fail=0 12529ac_clean_files_save=$ac_clean_files 12530ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12532$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12533as_write_fail=0 12534cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12535#! $SHELL 12536# Generated by $as_me. 12537# Run this file to recreate the current configuration. 12538# Compiler output produced by configure, useful for debugging 12539# configure, is in config.log if it exists. 12540 12541debug=false 12542ac_cs_recheck=false 12543ac_cs_silent=false 12544 12545SHELL=\${CONFIG_SHELL-$SHELL} 12546export SHELL 12547_ASEOF 12548cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12549## -------------------- ## 12550## M4sh Initialization. ## 12551## -------------------- ## 12552 12553# Be more Bourne compatible 12554DUALCASE=1; export DUALCASE # for MKS sh 12555if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12556 emulate sh 12557 NULLCMD=: 12558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12559 # is contrary to our usage. Disable this feature. 12560 alias -g '${1+"$@"}'='"$@"' 12561 setopt NO_GLOB_SUBST 12562else 12563 case `(set -o) 2>/dev/null` in #( 12564 *posix*) : 12565 set -o posix ;; #( 12566 *) : 12567 ;; 12568esac 12569fi 12570 12571 12572as_nl=' 12573' 12574export as_nl 12575# Printing a long string crashes Solaris 7 /usr/bin/printf. 12576as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12577as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12578as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12579# Prefer a ksh shell builtin over an external printf program on Solaris, 12580# but without wasting forks for bash or zsh. 12581if test -z "$BASH_VERSION$ZSH_VERSION" \ 12582 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12583 as_echo='print -r --' 12584 as_echo_n='print -rn --' 12585elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12586 as_echo='printf %s\n' 12587 as_echo_n='printf %s' 12588else 12589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12591 as_echo_n='/usr/ucb/echo -n' 12592 else 12593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12594 as_echo_n_body='eval 12595 arg=$1; 12596 case $arg in #( 12597 *"$as_nl"*) 12598 expr "X$arg" : "X\\(.*\\)$as_nl"; 12599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12600 esac; 12601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12602 ' 12603 export as_echo_n_body 12604 as_echo_n='sh -c $as_echo_n_body as_echo' 12605 fi 12606 export as_echo_body 12607 as_echo='sh -c $as_echo_body as_echo' 12608fi 12609 12610# The user is always right. 12611if test "${PATH_SEPARATOR+set}" != set; then 12612 PATH_SEPARATOR=: 12613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12615 PATH_SEPARATOR=';' 12616 } 12617fi 12618 12619 12620# IFS 12621# We need space, tab and new line, in precisely that order. Quoting is 12622# there to prevent editors from complaining about space-tab. 12623# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12624# splitting by setting IFS to empty value.) 12625IFS=" "" $as_nl" 12626 12627# Find who we are. Look in the path if we contain no directory separator. 12628case $0 in #(( 12629 *[\\/]* ) as_myself=$0 ;; 12630 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12631for as_dir in $PATH 12632do 12633 IFS=$as_save_IFS 12634 test -z "$as_dir" && as_dir=. 12635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12636 done 12637IFS=$as_save_IFS 12638 12639 ;; 12640esac 12641# We did not find ourselves, most probably we were run as `sh COMMAND' 12642# in which case we are not to be found in the path. 12643if test "x$as_myself" = x; then 12644 as_myself=$0 12645fi 12646if test ! -f "$as_myself"; then 12647 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12648 exit 1 12649fi 12650 12651# Unset variables that we do not need and which cause bugs (e.g. in 12652# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12653# suppresses any "Segmentation fault" message there. '((' could 12654# trigger a bug in pdksh 5.2.14. 12655for as_var in BASH_ENV ENV MAIL MAILPATH 12656do eval test x\${$as_var+set} = xset \ 12657 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12658done 12659PS1='$ ' 12660PS2='> ' 12661PS4='+ ' 12662 12663# NLS nuisances. 12664LC_ALL=C 12665export LC_ALL 12666LANGUAGE=C 12667export LANGUAGE 12668 12669# CDPATH. 12670(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12671 12672 12673# as_fn_error ERROR [LINENO LOG_FD] 12674# --------------------------------- 12675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12677# script with status $?, using 1 if that was 0. 12678as_fn_error () 12679{ 12680 as_status=$?; test $as_status -eq 0 && as_status=1 12681 if test "$3"; then 12682 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12683 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12684 fi 12685 $as_echo "$as_me: error: $1" >&2 12686 as_fn_exit $as_status 12687} # as_fn_error 12688 12689 12690# as_fn_set_status STATUS 12691# ----------------------- 12692# Set $? to STATUS, without forking. 12693as_fn_set_status () 12694{ 12695 return $1 12696} # as_fn_set_status 12697 12698# as_fn_exit STATUS 12699# ----------------- 12700# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12701as_fn_exit () 12702{ 12703 set +e 12704 as_fn_set_status $1 12705 exit $1 12706} # as_fn_exit 12707 12708# as_fn_unset VAR 12709# --------------- 12710# Portably unset VAR. 12711as_fn_unset () 12712{ 12713 { eval $1=; unset $1;} 12714} 12715as_unset=as_fn_unset 12716# as_fn_append VAR VALUE 12717# ---------------------- 12718# Append the text in VALUE to the end of the definition contained in VAR. Take 12719# advantage of any shell optimizations that allow amortized linear growth over 12720# repeated appends, instead of the typical quadratic growth present in naive 12721# implementations. 12722if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12723 eval 'as_fn_append () 12724 { 12725 eval $1+=\$2 12726 }' 12727else 12728 as_fn_append () 12729 { 12730 eval $1=\$$1\$2 12731 } 12732fi # as_fn_append 12733 12734# as_fn_arith ARG... 12735# ------------------ 12736# Perform arithmetic evaluation on the ARGs, and store the result in the 12737# global $as_val. Take advantage of shells that can avoid forks. The arguments 12738# must be portable across $(()) and expr. 12739if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12740 eval 'as_fn_arith () 12741 { 12742 as_val=$(( $* )) 12743 }' 12744else 12745 as_fn_arith () 12746 { 12747 as_val=`expr "$@" || test $? -eq 1` 12748 } 12749fi # as_fn_arith 12750 12751 12752if expr a : '\(a\)' >/dev/null 2>&1 && 12753 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12754 as_expr=expr 12755else 12756 as_expr=false 12757fi 12758 12759if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12760 as_basename=basename 12761else 12762 as_basename=false 12763fi 12764 12765if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12766 as_dirname=dirname 12767else 12768 as_dirname=false 12769fi 12770 12771as_me=`$as_basename -- "$0" || 12772$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12773 X"$0" : 'X\(//\)$' \| \ 12774 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12775$as_echo X/"$0" | 12776 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12777 s//\1/ 12778 q 12779 } 12780 /^X\/\(\/\/\)$/{ 12781 s//\1/ 12782 q 12783 } 12784 /^X\/\(\/\).*/{ 12785 s//\1/ 12786 q 12787 } 12788 s/.*/./; q'` 12789 12790# Avoid depending upon Character Ranges. 12791as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12793as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12794as_cr_digits='0123456789' 12795as_cr_alnum=$as_cr_Letters$as_cr_digits 12796 12797ECHO_C= ECHO_N= ECHO_T= 12798case `echo -n x` in #((((( 12799-n*) 12800 case `echo 'xy\c'` in 12801 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12802 xy) ECHO_C='\c';; 12803 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12804 ECHO_T=' ';; 12805 esac;; 12806*) 12807 ECHO_N='-n';; 12808esac 12809 12810rm -f conf$$ conf$$.exe conf$$.file 12811if test -d conf$$.dir; then 12812 rm -f conf$$.dir/conf$$.file 12813else 12814 rm -f conf$$.dir 12815 mkdir conf$$.dir 2>/dev/null 12816fi 12817if (echo >conf$$.file) 2>/dev/null; then 12818 if ln -s conf$$.file conf$$ 2>/dev/null; then 12819 as_ln_s='ln -s' 12820 # ... but there are two gotchas: 12821 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12822 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12823 # In both cases, we have to default to `cp -p'. 12824 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12825 as_ln_s='cp -p' 12826 elif ln conf$$.file conf$$ 2>/dev/null; then 12827 as_ln_s=ln 12828 else 12829 as_ln_s='cp -p' 12830 fi 12831else 12832 as_ln_s='cp -p' 12833fi 12834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12835rmdir conf$$.dir 2>/dev/null 12836 12837 12838# as_fn_mkdir_p 12839# ------------- 12840# Create "$as_dir" as a directory, including parents if necessary. 12841as_fn_mkdir_p () 12842{ 12843 12844 case $as_dir in #( 12845 -*) as_dir=./$as_dir;; 12846 esac 12847 test -d "$as_dir" || eval $as_mkdir_p || { 12848 as_dirs= 12849 while :; do 12850 case $as_dir in #( 12851 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12852 *) as_qdir=$as_dir;; 12853 esac 12854 as_dirs="'$as_qdir' $as_dirs" 12855 as_dir=`$as_dirname -- "$as_dir" || 12856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12857 X"$as_dir" : 'X\(//\)[^/]' \| \ 12858 X"$as_dir" : 'X\(//\)$' \| \ 12859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12860$as_echo X"$as_dir" | 12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12862 s//\1/ 12863 q 12864 } 12865 /^X\(\/\/\)[^/].*/{ 12866 s//\1/ 12867 q 12868 } 12869 /^X\(\/\/\)$/{ 12870 s//\1/ 12871 q 12872 } 12873 /^X\(\/\).*/{ 12874 s//\1/ 12875 q 12876 } 12877 s/.*/./; q'` 12878 test -d "$as_dir" && break 12879 done 12880 test -z "$as_dirs" || eval "mkdir $as_dirs" 12881 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12882 12883 12884} # as_fn_mkdir_p 12885if mkdir -p . 2>/dev/null; then 12886 as_mkdir_p='mkdir -p "$as_dir"' 12887else 12888 test -d ./-p && rmdir ./-p 12889 as_mkdir_p=false 12890fi 12891 12892if test -x / >/dev/null 2>&1; then 12893 as_test_x='test -x' 12894else 12895 if ls -dL / >/dev/null 2>&1; then 12896 as_ls_L_option=L 12897 else 12898 as_ls_L_option= 12899 fi 12900 as_test_x=' 12901 eval sh -c '\'' 12902 if test -d "$1"; then 12903 test -d "$1/."; 12904 else 12905 case $1 in #( 12906 -*)set "./$1";; 12907 esac; 12908 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12909 ???[sx]*):;;*)false;;esac;fi 12910 '\'' sh 12911 ' 12912fi 12913as_executable_p=$as_test_x 12914 12915# Sed expression to map a string onto a valid CPP name. 12916as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12917 12918# Sed expression to map a string onto a valid variable name. 12919as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12920 12921 12922exec 6>&1 12923## ----------------------------------- ## 12924## Main body of $CONFIG_STATUS script. ## 12925## ----------------------------------- ## 12926_ASEOF 12927test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12928 12929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12930# Save the log message, to keep $0 and so on meaningful, and to 12931# report actual input values of CONFIG_FILES etc. instead of their 12932# values after options handling. 12933ac_log=" 12934This file was extended by wv $as_me 1.2.9, which was 12935generated by GNU Autoconf 2.65. Invocation command line was 12936 12937 CONFIG_FILES = $CONFIG_FILES 12938 CONFIG_HEADERS = $CONFIG_HEADERS 12939 CONFIG_LINKS = $CONFIG_LINKS 12940 CONFIG_COMMANDS = $CONFIG_COMMANDS 12941 $ $0 $@ 12942 12943on `(hostname || uname -n) 2>/dev/null | sed 1q` 12944" 12945 12946_ACEOF 12947 12948case $ac_config_files in *" 12949"*) set x $ac_config_files; shift; ac_config_files=$*;; 12950esac 12951 12952case $ac_config_headers in *" 12953"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12954esac 12955 12956 12957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12958# Files that config.status was made for. 12959config_files="$ac_config_files" 12960config_headers="$ac_config_headers" 12961config_commands="$ac_config_commands" 12962 12963_ACEOF 12964 12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12966ac_cs_usage="\ 12967\`$as_me' instantiates files and other configuration actions 12968from templates according to the current configuration. Unless the files 12969and actions are specified as TAGs, all are instantiated by default. 12970 12971Usage: $0 [OPTION]... [TAG]... 12972 12973 -h, --help print this help, then exit 12974 -V, --version print version number and configuration settings, then exit 12975 --config print configuration, then exit 12976 -q, --quiet, --silent 12977 do not print progress messages 12978 -d, --debug don't remove temporary files 12979 --recheck update $as_me by reconfiguring in the same conditions 12980 --file=FILE[:TEMPLATE] 12981 instantiate the configuration file FILE 12982 --header=FILE[:TEMPLATE] 12983 instantiate the configuration header FILE 12984 12985Configuration files: 12986$config_files 12987 12988Configuration headers: 12989$config_headers 12990 12991Configuration commands: 12992$config_commands 12993 12994Report bugs to <wvware-devel@sourceforge.net>." 12995 12996_ACEOF 12997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12998ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12999ac_cs_version="\\ 13000wv config.status 1.2.9 13001configured by $0, generated by GNU Autoconf 2.65, 13002 with options \\"\$ac_cs_config\\" 13003 13004Copyright (C) 2009 Free Software Foundation, Inc. 13005This config.status script is free software; the Free Software Foundation 13006gives unlimited permission to copy, distribute and modify it." 13007 13008ac_pwd='$ac_pwd' 13009srcdir='$srcdir' 13010INSTALL='$INSTALL' 13011MKDIR_P='$MKDIR_P' 13012AWK='$AWK' 13013test -n "\$AWK" || AWK=awk 13014_ACEOF 13015 13016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13017# The default lists apply if the user does not specify any file. 13018ac_need_defaults=: 13019while test $# != 0 13020do 13021 case $1 in 13022 --*=*) 13023 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13024 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13025 ac_shift=: 13026 ;; 13027 *) 13028 ac_option=$1 13029 ac_optarg=$2 13030 ac_shift=shift 13031 ;; 13032 esac 13033 13034 case $ac_option in 13035 # Handling of the options. 13036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13037 ac_cs_recheck=: ;; 13038 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13039 $as_echo "$ac_cs_version"; exit ;; 13040 --config | --confi | --conf | --con | --co | --c ) 13041 $as_echo "$ac_cs_config"; exit ;; 13042 --debug | --debu | --deb | --de | --d | -d ) 13043 debug=: ;; 13044 --file | --fil | --fi | --f ) 13045 $ac_shift 13046 case $ac_optarg in 13047 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13048 esac 13049 as_fn_append CONFIG_FILES " '$ac_optarg'" 13050 ac_need_defaults=false;; 13051 --header | --heade | --head | --hea ) 13052 $ac_shift 13053 case $ac_optarg in 13054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13055 esac 13056 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13057 ac_need_defaults=false;; 13058 --he | --h) 13059 # Conflict between --help and --header 13060 as_fn_error "ambiguous option: \`$1' 13061Try \`$0 --help' for more information.";; 13062 --help | --hel | -h ) 13063 $as_echo "$ac_cs_usage"; exit ;; 13064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13065 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13066 ac_cs_silent=: ;; 13067 13068 # This is an error. 13069 -*) as_fn_error "unrecognized option: \`$1' 13070Try \`$0 --help' for more information." ;; 13071 13072 *) as_fn_append ac_config_targets " $1" 13073 ac_need_defaults=false ;; 13074 13075 esac 13076 shift 13077done 13078 13079ac_configure_extra_args= 13080 13081if $ac_cs_silent; then 13082 exec 6>/dev/null 13083 ac_configure_extra_args="$ac_configure_extra_args --silent" 13084fi 13085 13086_ACEOF 13087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13088if \$ac_cs_recheck; then 13089 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13090 shift 13091 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13092 CONFIG_SHELL='$SHELL' 13093 export CONFIG_SHELL 13094 exec "\$@" 13095fi 13096 13097_ACEOF 13098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13099exec 5>>config.log 13100{ 13101 echo 13102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13103## Running $as_me. ## 13104_ASBOX 13105 $as_echo "$ac_log" 13106} >&5 13107 13108_ACEOF 13109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13110# 13111# INIT-COMMANDS 13112# 13113AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13114 13115 13116# The HP-UX ksh and POSIX shell print the target directory to stdout 13117# if CDPATH is set. 13118(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13119 13120sed_quote_subst='$sed_quote_subst' 13121double_quote_subst='$double_quote_subst' 13122delay_variable_subst='$delay_variable_subst' 13123macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13124macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13125enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13126enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13127pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13128enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13129host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13130host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13131host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13132build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13133build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13134build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13135SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13136Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13137GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13138EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13139FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13140LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13141NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13142LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13143max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13144ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13145exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13146lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13147lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13148lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13149reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13150reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13151OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13152deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13153file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13154AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13155AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13156STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13157RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13158old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13159old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13160old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13161CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13162CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13163compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13164GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13165lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13166lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13167lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13168lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13169objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13170SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13171ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13172MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13173lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13174lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13175lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13176lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13177lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13178need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13179DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13180NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13181LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13182OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13183OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13184libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13185shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13186extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13187archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13188enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13189export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13190whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13191compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13192old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13193old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13194archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13195archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13196module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13197module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13198with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13199allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13200no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13201hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13202hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13203hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13204hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13205hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13206hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13207hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13208hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13209inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13210link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13211fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13212always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13213export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13214exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13215include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13216prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13217file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13218variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13219need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13220need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13221version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13222runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13223shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13224shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13225libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13226library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13227soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13228postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13229postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13230finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13231finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13232hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13233sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13234sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13235hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13236enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13237enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13238enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13239old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13240striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13241 13242LTCC='$LTCC' 13243LTCFLAGS='$LTCFLAGS' 13244compiler='$compiler_DEFAULT' 13245 13246# Quote evaled strings. 13247for var in SED \ 13248GREP \ 13249EGREP \ 13250FGREP \ 13251LD \ 13252NM \ 13253LN_S \ 13254lt_SP2NL \ 13255lt_NL2SP \ 13256reload_flag \ 13257OBJDUMP \ 13258deplibs_check_method \ 13259file_magic_cmd \ 13260AR \ 13261AR_FLAGS \ 13262STRIP \ 13263RANLIB \ 13264CC \ 13265CFLAGS \ 13266compiler \ 13267lt_cv_sys_global_symbol_pipe \ 13268lt_cv_sys_global_symbol_to_cdecl \ 13269lt_cv_sys_global_symbol_to_c_name_address \ 13270lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13271SHELL \ 13272ECHO \ 13273lt_prog_compiler_no_builtin_flag \ 13274lt_prog_compiler_wl \ 13275lt_prog_compiler_pic \ 13276lt_prog_compiler_static \ 13277lt_cv_prog_compiler_c_o \ 13278need_locks \ 13279DSYMUTIL \ 13280NMEDIT \ 13281LIPO \ 13282OTOOL \ 13283OTOOL64 \ 13284shrext_cmds \ 13285export_dynamic_flag_spec \ 13286whole_archive_flag_spec \ 13287compiler_needs_object \ 13288with_gnu_ld \ 13289allow_undefined_flag \ 13290no_undefined_flag \ 13291hardcode_libdir_flag_spec \ 13292hardcode_libdir_flag_spec_ld \ 13293hardcode_libdir_separator \ 13294fix_srcfile_path \ 13295exclude_expsyms \ 13296include_expsyms \ 13297file_list_spec \ 13298variables_saved_for_relink \ 13299libname_spec \ 13300library_names_spec \ 13301soname_spec \ 13302finish_eval \ 13303old_striplib \ 13304striplib; do 13305 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13306 *[\\\\\\\`\\"\\\$]*) 13307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13308 ;; 13309 *) 13310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13311 ;; 13312 esac 13313done 13314 13315# Double-quote double-evaled strings. 13316for var in reload_cmds \ 13317old_postinstall_cmds \ 13318old_postuninstall_cmds \ 13319old_archive_cmds \ 13320extract_expsyms_cmds \ 13321old_archive_from_new_cmds \ 13322old_archive_from_expsyms_cmds \ 13323archive_cmds \ 13324archive_expsym_cmds \ 13325module_cmds \ 13326module_expsym_cmds \ 13327export_symbols_cmds \ 13328prelink_cmds \ 13329postinstall_cmds \ 13330postuninstall_cmds \ 13331finish_cmds \ 13332sys_lib_search_path_spec \ 13333sys_lib_dlsearch_path_spec; do 13334 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13335 *[\\\\\\\`\\"\\\$]*) 13336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13337 ;; 13338 *) 13339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13340 ;; 13341 esac 13342done 13343 13344# Fix-up fallback echo if it was mangled by the above quoting rules. 13345case \$lt_ECHO in 13346*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13347 ;; 13348esac 13349 13350ac_aux_dir='$ac_aux_dir' 13351xsi_shell='$xsi_shell' 13352lt_shell_append='$lt_shell_append' 13353 13354# See if we are running on zsh, and set the options which allow our 13355# commands through without removal of \ escapes INIT. 13356if test -n "\${ZSH_VERSION+set}" ; then 13357 setopt NO_GLOB_SUBST 13358fi 13359 13360 13361 PACKAGE='$PACKAGE' 13362 VERSION='$VERSION' 13363 TIMESTAMP='$TIMESTAMP' 13364 RM='$RM' 13365 ofile='$ofile' 13366 13367 13368 13369 13370_ACEOF 13371 13372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13373 13374# Handling of arguments. 13375for ac_config_target in $ac_config_targets 13376do 13377 case $ac_config_target in 13378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13379 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13380 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13381 "wvAbw") CONFIG_FILES="$CONFIG_FILES wvAbw" ;; 13382 "wvDVI") CONFIG_FILES="$CONFIG_FILES wvDVI" ;; 13383 "wvPS") CONFIG_FILES="$CONFIG_FILES wvPS" ;; 13384 "wvPDF") CONFIG_FILES="$CONFIG_FILES wvPDF" ;; 13385 "wvHtml") CONFIG_FILES="$CONFIG_FILES wvHtml" ;; 13386 "wvDocBook") CONFIG_FILES="$CONFIG_FILES wvDocBook" ;; 13387 "wvLatex") CONFIG_FILES="$CONFIG_FILES wvLatex" ;; 13388 "wvCleanLatex") CONFIG_FILES="$CONFIG_FILES wvCleanLatex" ;; 13389 "wvText") CONFIG_FILES="$CONFIG_FILES wvText" ;; 13390 "wvWml") CONFIG_FILES="$CONFIG_FILES wvWml" ;; 13391 "wv-1.0.pc") CONFIG_FILES="$CONFIG_FILES wv-1.0.pc" ;; 13392 "version.c") CONFIG_FILES="$CONFIG_FILES version.c" ;; 13393 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; 13394 "xml/GNUmakefile") CONFIG_FILES="$CONFIG_FILES xml/GNUmakefile" ;; 13395 "help/GNUmakefile") CONFIG_FILES="$CONFIG_FILES help/GNUmakefile" ;; 13396 "help/man/GNUmakefile") CONFIG_FILES="$CONFIG_FILES help/man/GNUmakefile" ;; 13397 "patterns/GNUmakefile") CONFIG_FILES="$CONFIG_FILES patterns/GNUmakefile" ;; 13398 "wingdingfont/GNUmakefile") CONFIG_FILES="$CONFIG_FILES wingdingfont/GNUmakefile" ;; 13399 13400 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13401 esac 13402done 13403 13404 13405# If the user did not use the arguments to specify the items to instantiate, 13406# then the envvar interface is used. Set only those that are not. 13407# We use the long form for the default assignment because of an extremely 13408# bizarre bug on SunOS 4.1.3. 13409if $ac_need_defaults; then 13410 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13411 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13412 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13413fi 13414 13415# Have a temporary directory for convenience. Make it in the build tree 13416# simply because there is no reason against having it here, and in addition, 13417# creating and moving files from /tmp can sometimes cause problems. 13418# Hook for its removal unless debugging. 13419# Note that there is a small window in which the directory will not be cleaned: 13420# after its creation but before its name has been assigned to `$tmp'. 13421$debug || 13422{ 13423 tmp= 13424 trap 'exit_status=$? 13425 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13426' 0 13427 trap 'as_fn_exit 1' 1 2 13 15 13428} 13429# Create a (secure) tmp directory for tmp files. 13430 13431{ 13432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13433 test -n "$tmp" && test -d "$tmp" 13434} || 13435{ 13436 tmp=./conf$$-$RANDOM 13437 (umask 077 && mkdir "$tmp") 13438} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13439 13440# Set up the scripts for CONFIG_FILES section. 13441# No need to generate them if there are no CONFIG_FILES. 13442# This happens for instance with `./config.status config.h'. 13443if test -n "$CONFIG_FILES"; then 13444 13445 13446ac_cr=`echo X | tr X '\015'` 13447# On cygwin, bash can eat \r inside `` if the user requested igncr. 13448# But we know of no other shell where ac_cr would be empty at this 13449# point, so we can use a bashism as a fallback. 13450if test "x$ac_cr" = x; then 13451 eval ac_cr=\$\'\\r\' 13452fi 13453ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13454if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13455 ac_cs_awk_cr='\r' 13456else 13457 ac_cs_awk_cr=$ac_cr 13458fi 13459 13460echo 'BEGIN {' >"$tmp/subs1.awk" && 13461_ACEOF 13462 13463 13464{ 13465 echo "cat >conf$$subs.awk <<_ACEOF" && 13466 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13467 echo "_ACEOF" 13468} >conf$$subs.sh || 13469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13470ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13471ac_delim='%!_!# ' 13472for ac_last_try in false false false false false :; do 13473 . ./conf$$subs.sh || 13474 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13475 13476 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13477 if test $ac_delim_n = $ac_delim_num; then 13478 break 13479 elif $ac_last_try; then 13480 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13481 else 13482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13483 fi 13484done 13485rm -f conf$$subs.sh 13486 13487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13488cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13489_ACEOF 13490sed -n ' 13491h 13492s/^/S["/; s/!.*/"]=/ 13493p 13494g 13495s/^[^!]*!// 13496:repl 13497t repl 13498s/'"$ac_delim"'$// 13499t delim 13500:nl 13501h 13502s/\(.\{148\}\)..*/\1/ 13503t more1 13504s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13505p 13506n 13507b repl 13508:more1 13509s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13510p 13511g 13512s/.\{148\}// 13513t nl 13514:delim 13515h 13516s/\(.\{148\}\)..*/\1/ 13517t more2 13518s/["\\]/\\&/g; s/^/"/; s/$/"/ 13519p 13520b 13521:more2 13522s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13523p 13524g 13525s/.\{148\}// 13526t delim 13527' <conf$$subs.awk | sed ' 13528/^[^""]/{ 13529 N 13530 s/\n// 13531} 13532' >>$CONFIG_STATUS || ac_write_fail=1 13533rm -f conf$$subs.awk 13534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13535_ACAWK 13536cat >>"\$tmp/subs1.awk" <<_ACAWK && 13537 for (key in S) S_is_set[key] = 1 13538 FS = "" 13539 13540} 13541{ 13542 line = $ 0 13543 nfields = split(line, field, "@") 13544 substed = 0 13545 len = length(field[1]) 13546 for (i = 2; i < nfields; i++) { 13547 key = field[i] 13548 keylen = length(key) 13549 if (S_is_set[key]) { 13550 value = S[key] 13551 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13552 len += length(value) + length(field[++i]) 13553 substed = 1 13554 } else 13555 len += 1 + keylen 13556 } 13557 13558 print line 13559} 13560 13561_ACAWK 13562_ACEOF 13563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13564if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13565 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13566else 13567 cat 13568fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13569 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13570_ACEOF 13571 13572# VPATH may cause trouble with some makes, so we remove $(srcdir), 13573# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13574# trailing colons and then remove the whole line if VPATH becomes empty 13575# (actually we leave an empty line to preserve line numbers). 13576if test "x$srcdir" = x.; then 13577 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13578s/:*\$(srcdir):*/:/ 13579s/:*\${srcdir}:*/:/ 13580s/:*@srcdir@:*/:/ 13581s/^\([^=]*=[ ]*\):*/\1/ 13582s/:*$// 13583s/^[^=]*=[ ]*$// 13584}' 13585fi 13586 13587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13588fi # test -n "$CONFIG_FILES" 13589 13590# Set up the scripts for CONFIG_HEADERS section. 13591# No need to generate them if there are no CONFIG_HEADERS. 13592# This happens for instance with `./config.status Makefile'. 13593if test -n "$CONFIG_HEADERS"; then 13594cat >"$tmp/defines.awk" <<\_ACAWK || 13595BEGIN { 13596_ACEOF 13597 13598# Transform confdefs.h into an awk script `defines.awk', embedded as 13599# here-document in config.status, that substitutes the proper values into 13600# config.h.in to produce config.h. 13601 13602# Create a delimiter string that does not exist in confdefs.h, to ease 13603# handling of long lines. 13604ac_delim='%!_!# ' 13605for ac_last_try in false false :; do 13606 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13607 if test -z "$ac_t"; then 13608 break 13609 elif $ac_last_try; then 13610 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13611 else 13612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13613 fi 13614done 13615 13616# For the awk script, D is an array of macro values keyed by name, 13617# likewise P contains macro parameters if any. Preserve backslash 13618# newline sequences. 13619 13620ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13621sed -n ' 13622s/.\{148\}/&'"$ac_delim"'/g 13623t rset 13624:rset 13625s/^[ ]*#[ ]*define[ ][ ]*/ / 13626t def 13627d 13628:def 13629s/\\$// 13630t bsnl 13631s/["\\]/\\&/g 13632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13633D["\1"]=" \3"/p 13634s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13635d 13636:bsnl 13637s/["\\]/\\&/g 13638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13639D["\1"]=" \3\\\\\\n"\\/p 13640t cont 13641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13642t cont 13643d 13644:cont 13645n 13646s/.\{148\}/&'"$ac_delim"'/g 13647t clear 13648:clear 13649s/\\$// 13650t bsnlc 13651s/["\\]/\\&/g; s/^/"/; s/$/"/p 13652d 13653:bsnlc 13654s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13655b cont 13656' <confdefs.h | sed ' 13657s/'"$ac_delim"'/"\\\ 13658"/g' >>$CONFIG_STATUS || ac_write_fail=1 13659 13660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13661 for (key in D) D_is_set[key] = 1 13662 FS = "" 13663} 13664/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13665 line = \$ 0 13666 split(line, arg, " ") 13667 if (arg[1] == "#") { 13668 defundef = arg[2] 13669 mac1 = arg[3] 13670 } else { 13671 defundef = substr(arg[1], 2) 13672 mac1 = arg[2] 13673 } 13674 split(mac1, mac2, "(") #) 13675 macro = mac2[1] 13676 prefix = substr(line, 1, index(line, defundef) - 1) 13677 if (D_is_set[macro]) { 13678 # Preserve the white space surrounding the "#". 13679 print prefix "define", macro P[macro] D[macro] 13680 next 13681 } else { 13682 # Replace #undef with comments. This is necessary, for example, 13683 # in the case of _POSIX_SOURCE, which is predefined and required 13684 # on some systems where configure will not decide to define it. 13685 if (defundef == "undef") { 13686 print "/*", prefix defundef, macro, "*/" 13687 next 13688 } 13689 } 13690} 13691{ print } 13692_ACAWK 13693_ACEOF 13694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13695 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13696fi # test -n "$CONFIG_HEADERS" 13697 13698 13699eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13700shift 13701for ac_tag 13702do 13703 case $ac_tag in 13704 :[FHLC]) ac_mode=$ac_tag; continue;; 13705 esac 13706 case $ac_mode$ac_tag in 13707 :[FHL]*:*);; 13708 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13709 :[FH]-) ac_tag=-:-;; 13710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13711 esac 13712 ac_save_IFS=$IFS 13713 IFS=: 13714 set x $ac_tag 13715 IFS=$ac_save_IFS 13716 shift 13717 ac_file=$1 13718 shift 13719 13720 case $ac_mode in 13721 :L) ac_source=$1;; 13722 :[FH]) 13723 ac_file_inputs= 13724 for ac_f 13725 do 13726 case $ac_f in 13727 -) ac_f="$tmp/stdin";; 13728 *) # Look for the file first in the build tree, then in the source tree 13729 # (if the path is not absolute). The absolute path cannot be DOS-style, 13730 # because $ac_f cannot contain `:'. 13731 test -f "$ac_f" || 13732 case $ac_f in 13733 [\\/$]*) false;; 13734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13735 esac || 13736 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13737 esac 13738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13739 as_fn_append ac_file_inputs " '$ac_f'" 13740 done 13741 13742 # Let's still pretend it is `configure' which instantiates (i.e., don't 13743 # use $as_me), people would be surprised to read: 13744 # /* config.h. Generated by config.status. */ 13745 configure_input='Generated from '` 13746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13747 `' by configure.' 13748 if test x"$ac_file" != x-; then 13749 configure_input="$ac_file. $configure_input" 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13751$as_echo "$as_me: creating $ac_file" >&6;} 13752 fi 13753 # Neutralize special characters interpreted by sed in replacement strings. 13754 case $configure_input in #( 13755 *\&* | *\|* | *\\* ) 13756 ac_sed_conf_input=`$as_echo "$configure_input" | 13757 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13758 *) ac_sed_conf_input=$configure_input;; 13759 esac 13760 13761 case $ac_tag in 13762 *:-:* | *:-) cat >"$tmp/stdin" \ 13763 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13764 esac 13765 ;; 13766 esac 13767 13768 ac_dir=`$as_dirname -- "$ac_file" || 13769$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13770 X"$ac_file" : 'X\(//\)[^/]' \| \ 13771 X"$ac_file" : 'X\(//\)$' \| \ 13772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13773$as_echo X"$ac_file" | 13774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13775 s//\1/ 13776 q 13777 } 13778 /^X\(\/\/\)[^/].*/{ 13779 s//\1/ 13780 q 13781 } 13782 /^X\(\/\/\)$/{ 13783 s//\1/ 13784 q 13785 } 13786 /^X\(\/\).*/{ 13787 s//\1/ 13788 q 13789 } 13790 s/.*/./; q'` 13791 as_dir="$ac_dir"; as_fn_mkdir_p 13792 ac_builddir=. 13793 13794case "$ac_dir" in 13795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13796*) 13797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13798 # A ".." for each directory in $ac_dir_suffix. 13799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13800 case $ac_top_builddir_sub in 13801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13803 esac ;; 13804esac 13805ac_abs_top_builddir=$ac_pwd 13806ac_abs_builddir=$ac_pwd$ac_dir_suffix 13807# for backward compatibility: 13808ac_top_builddir=$ac_top_build_prefix 13809 13810case $srcdir in 13811 .) # We are building in place. 13812 ac_srcdir=. 13813 ac_top_srcdir=$ac_top_builddir_sub 13814 ac_abs_top_srcdir=$ac_pwd ;; 13815 [\\/]* | ?:[\\/]* ) # Absolute name. 13816 ac_srcdir=$srcdir$ac_dir_suffix; 13817 ac_top_srcdir=$srcdir 13818 ac_abs_top_srcdir=$srcdir ;; 13819 *) # Relative name. 13820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13821 ac_top_srcdir=$ac_top_build_prefix$srcdir 13822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13823esac 13824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13825 13826 13827 case $ac_mode in 13828 :F) 13829 # 13830 # CONFIG_FILE 13831 # 13832 13833 case $INSTALL in 13834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13836 esac 13837 ac_MKDIR_P=$MKDIR_P 13838 case $MKDIR_P in 13839 [\\/$]* | ?:[\\/]* ) ;; 13840 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13841 esac 13842_ACEOF 13843 13844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13845# If the template does not know about datarootdir, expand it. 13846# FIXME: This hack should be removed a few years after 2.60. 13847ac_datarootdir_hack=; ac_datarootdir_seen= 13848ac_sed_dataroot=' 13849/datarootdir/ { 13850 p 13851 q 13852} 13853/@datadir@/p 13854/@docdir@/p 13855/@infodir@/p 13856/@localedir@/p 13857/@mandir@/p' 13858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13859*datarootdir*) ac_datarootdir_seen=yes;; 13860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13862$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13863_ACEOF 13864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13865 ac_datarootdir_hack=' 13866 s&@datadir@&$datadir&g 13867 s&@docdir@&$docdir&g 13868 s&@infodir@&$infodir&g 13869 s&@localedir@&$localedir&g 13870 s&@mandir@&$mandir&g 13871 s&\\\${datarootdir}&$datarootdir&g' ;; 13872esac 13873_ACEOF 13874 13875# Neutralize VPATH when `$srcdir' = `.'. 13876# Shell code in configure.ac might set extrasub. 13877# FIXME: do we really want to maintain this feature? 13878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13879ac_sed_extra="$ac_vpsub 13880$extrasub 13881_ACEOF 13882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13883:t 13884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13885s|@configure_input@|$ac_sed_conf_input|;t t 13886s&@top_builddir@&$ac_top_builddir_sub&;t t 13887s&@top_build_prefix@&$ac_top_build_prefix&;t t 13888s&@srcdir@&$ac_srcdir&;t t 13889s&@abs_srcdir@&$ac_abs_srcdir&;t t 13890s&@top_srcdir@&$ac_top_srcdir&;t t 13891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13892s&@builddir@&$ac_builddir&;t t 13893s&@abs_builddir@&$ac_abs_builddir&;t t 13894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13895s&@INSTALL@&$ac_INSTALL&;t t 13896s&@MKDIR_P@&$ac_MKDIR_P&;t t 13897$ac_datarootdir_hack 13898" 13899eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13900 || as_fn_error "could not create $ac_file" "$LINENO" 5 13901 13902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13903 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13904 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13906which seems to be undefined. Please make sure it is defined." >&5 13907$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13908which seems to be undefined. Please make sure it is defined." >&2;} 13909 13910 rm -f "$tmp/stdin" 13911 case $ac_file in 13912 -) cat "$tmp/out" && rm -f "$tmp/out";; 13913 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13914 esac \ 13915 || as_fn_error "could not create $ac_file" "$LINENO" 5 13916 ;; 13917 :H) 13918 # 13919 # CONFIG_HEADER 13920 # 13921 if test x"$ac_file" != x-; then 13922 { 13923 $as_echo "/* $configure_input */" \ 13924 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13925 } >"$tmp/config.h" \ 13926 || as_fn_error "could not create $ac_file" "$LINENO" 5 13927 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13929$as_echo "$as_me: $ac_file is unchanged" >&6;} 13930 else 13931 rm -f "$ac_file" 13932 mv "$tmp/config.h" "$ac_file" \ 13933 || as_fn_error "could not create $ac_file" "$LINENO" 5 13934 fi 13935 else 13936 $as_echo "/* $configure_input */" \ 13937 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13938 || as_fn_error "could not create -" "$LINENO" 5 13939 fi 13940# Compute "$ac_file"'s index in $config_headers. 13941_am_arg="$ac_file" 13942_am_stamp_count=1 13943for _am_header in $config_headers :; do 13944 case $_am_header in 13945 $_am_arg | $_am_arg:* ) 13946 break ;; 13947 * ) 13948 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13949 esac 13950done 13951echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13952$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13953 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13954 X"$_am_arg" : 'X\(//\)$' \| \ 13955 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13956$as_echo X"$_am_arg" | 13957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13958 s//\1/ 13959 q 13960 } 13961 /^X\(\/\/\)[^/].*/{ 13962 s//\1/ 13963 q 13964 } 13965 /^X\(\/\/\)$/{ 13966 s//\1/ 13967 q 13968 } 13969 /^X\(\/\).*/{ 13970 s//\1/ 13971 q 13972 } 13973 s/.*/./; q'`/stamp-h$_am_stamp_count 13974 ;; 13975 13976 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13977$as_echo "$as_me: executing $ac_file commands" >&6;} 13978 ;; 13979 esac 13980 13981 13982 case $ac_file$ac_mode in 13983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13984 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13985 # are listed without --file. Let's play safe and only enable the eval 13986 # if we detect the quoting. 13987 case $CONFIG_FILES in 13988 *\'*) eval set x "$CONFIG_FILES" ;; 13989 *) set x $CONFIG_FILES ;; 13990 esac 13991 shift 13992 for mf 13993 do 13994 # Strip MF so we end up with the name of the file. 13995 mf=`echo "$mf" | sed -e 's/:.*$//'` 13996 # Check whether this is an Automake generated Makefile or not. 13997 # We used to match only the files named `Makefile.in', but 13998 # some people rename them; so instead we look at the file content. 13999 # Grep'ing the first line is not enough: some people post-process 14000 # each Makefile.in and add a new line on top of each file to say so. 14001 # Grep'ing the whole file is not good either: AIX grep has a line 14002 # limit of 2048, but all sed's we know have understand at least 4000. 14003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14004 dirpart=`$as_dirname -- "$mf" || 14005$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14006 X"$mf" : 'X\(//\)[^/]' \| \ 14007 X"$mf" : 'X\(//\)$' \| \ 14008 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14009$as_echo X"$mf" | 14010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14011 s//\1/ 14012 q 14013 } 14014 /^X\(\/\/\)[^/].*/{ 14015 s//\1/ 14016 q 14017 } 14018 /^X\(\/\/\)$/{ 14019 s//\1/ 14020 q 14021 } 14022 /^X\(\/\).*/{ 14023 s//\1/ 14024 q 14025 } 14026 s/.*/./; q'` 14027 else 14028 continue 14029 fi 14030 # Extract the definition of DEPDIR, am__include, and am__quote 14031 # from the Makefile without running `make'. 14032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14033 test -z "$DEPDIR" && continue 14034 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14035 test -z "am__include" && continue 14036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14037 # When using ansi2knr, U may be empty or an underscore; expand it 14038 U=`sed -n 's/^U = //p' < "$mf"` 14039 # Find all dependency output files, they are included files with 14040 # $(DEPDIR) in their names. We invoke sed twice because it is the 14041 # simplest approach to changing $(DEPDIR) to its actual value in the 14042 # expansion. 14043 for file in `sed -n " 14044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14046 # Make sure the directory exists. 14047 test -f "$dirpart/$file" && continue 14048 fdir=`$as_dirname -- "$file" || 14049$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14050 X"$file" : 'X\(//\)[^/]' \| \ 14051 X"$file" : 'X\(//\)$' \| \ 14052 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14053$as_echo X"$file" | 14054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14055 s//\1/ 14056 q 14057 } 14058 /^X\(\/\/\)[^/].*/{ 14059 s//\1/ 14060 q 14061 } 14062 /^X\(\/\/\)$/{ 14063 s//\1/ 14064 q 14065 } 14066 /^X\(\/\).*/{ 14067 s//\1/ 14068 q 14069 } 14070 s/.*/./; q'` 14071 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14072 # echo "creating $dirpart/$file" 14073 echo '# dummy' > "$dirpart/$file" 14074 done 14075 done 14076} 14077 ;; 14078 "libtool":C) 14079 14080 # See if we are running on zsh, and set the options which allow our 14081 # commands through without removal of \ escapes. 14082 if test -n "${ZSH_VERSION+set}" ; then 14083 setopt NO_GLOB_SUBST 14084 fi 14085 14086 cfgfile="${ofile}T" 14087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14088 $RM "$cfgfile" 14089 14090 cat <<_LT_EOF >> "$cfgfile" 14091#! $SHELL 14092 14093# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14094# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14096# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14097# 14098# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14099# 2006, 2007, 2008 Free Software Foundation, Inc. 14100# Written by Gordon Matzigkeit, 1996 14101# 14102# This file is part of GNU Libtool. 14103# 14104# GNU Libtool is free software; you can redistribute it and/or 14105# modify it under the terms of the GNU General Public License as 14106# published by the Free Software Foundation; either version 2 of 14107# the License, or (at your option) any later version. 14108# 14109# As a special exception to the GNU General Public License, 14110# if you distribute this file as part of a program or library that 14111# is built using GNU Libtool, you may include this file under the 14112# same distribution terms that you use for the rest of that program. 14113# 14114# GNU Libtool is distributed in the hope that it will be useful, 14115# but WITHOUT ANY WARRANTY; without even the implied warranty of 14116# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14117# GNU General Public License for more details. 14118# 14119# You should have received a copy of the GNU General Public License 14120# along with GNU Libtool; see the file COPYING. If not, a copy 14121# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14122# obtained by writing to the Free Software Foundation, Inc., 14123# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14124 14125 14126# The names of the tagged configurations supported by this script. 14127available_tags="" 14128 14129# ### BEGIN LIBTOOL CONFIG 14130 14131# Which release of libtool.m4 was used? 14132macro_version=$macro_version 14133macro_revision=$macro_revision 14134 14135# Whether or not to build shared libraries. 14136build_libtool_libs=$enable_shared 14137 14138# Whether or not to build static libraries. 14139build_old_libs=$enable_static 14140 14141# What type of objects to build. 14142pic_mode=$pic_mode 14143 14144# Whether or not to optimize for fast installation. 14145fast_install=$enable_fast_install 14146 14147# The host system. 14148host_alias=$host_alias 14149host=$host 14150host_os=$host_os 14151 14152# The build system. 14153build_alias=$build_alias 14154build=$build 14155build_os=$build_os 14156 14157# A sed program that does not truncate output. 14158SED=$lt_SED 14159 14160# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14161Xsed="\$SED -e 1s/^X//" 14162 14163# A grep program that handles long lines. 14164GREP=$lt_GREP 14165 14166# An ERE matcher. 14167EGREP=$lt_EGREP 14168 14169# A literal string matcher. 14170FGREP=$lt_FGREP 14171 14172# A BSD- or MS-compatible name lister. 14173NM=$lt_NM 14174 14175# Whether we need soft or hard links. 14176LN_S=$lt_LN_S 14177 14178# What is the maximum length of a command? 14179max_cmd_len=$max_cmd_len 14180 14181# Object file suffix (normally "o"). 14182objext=$ac_objext 14183 14184# Executable file suffix (normally ""). 14185exeext=$exeext 14186 14187# whether the shell understands "unset". 14188lt_unset=$lt_unset 14189 14190# turn spaces into newlines. 14191SP2NL=$lt_lt_SP2NL 14192 14193# turn newlines into spaces. 14194NL2SP=$lt_lt_NL2SP 14195 14196# How to create reloadable object files. 14197reload_flag=$lt_reload_flag 14198reload_cmds=$lt_reload_cmds 14199 14200# An object symbol dumper. 14201OBJDUMP=$lt_OBJDUMP 14202 14203# Method to check whether dependent libraries are shared objects. 14204deplibs_check_method=$lt_deplibs_check_method 14205 14206# Command to use when deplibs_check_method == "file_magic". 14207file_magic_cmd=$lt_file_magic_cmd 14208 14209# The archiver. 14210AR=$lt_AR 14211AR_FLAGS=$lt_AR_FLAGS 14212 14213# A symbol stripping program. 14214STRIP=$lt_STRIP 14215 14216# Commands used to install an old-style archive. 14217RANLIB=$lt_RANLIB 14218old_postinstall_cmds=$lt_old_postinstall_cmds 14219old_postuninstall_cmds=$lt_old_postuninstall_cmds 14220 14221# A C compiler. 14222LTCC=$lt_CC 14223 14224# LTCC compiler flags. 14225LTCFLAGS=$lt_CFLAGS 14226 14227# Take the output of nm and produce a listing of raw symbols and C names. 14228global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14229 14230# Transform the output of nm in a proper C declaration. 14231global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14232 14233# Transform the output of nm in a C name address pair. 14234global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14235 14236# Transform the output of nm in a C name address pair when lib prefix is needed. 14237global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14238 14239# The name of the directory that contains temporary libtool files. 14240objdir=$objdir 14241 14242# Shell to use when invoking shell scripts. 14243SHELL=$lt_SHELL 14244 14245# An echo program that does not interpret backslashes. 14246ECHO=$lt_ECHO 14247 14248# Used to examine libraries when file_magic_cmd begins with "file". 14249MAGIC_CMD=$MAGIC_CMD 14250 14251# Must we lock files when doing compilation? 14252need_locks=$lt_need_locks 14253 14254# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14255DSYMUTIL=$lt_DSYMUTIL 14256 14257# Tool to change global to local symbols on Mac OS X. 14258NMEDIT=$lt_NMEDIT 14259 14260# Tool to manipulate fat objects and archives on Mac OS X. 14261LIPO=$lt_LIPO 14262 14263# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14264OTOOL=$lt_OTOOL 14265 14266# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14267OTOOL64=$lt_OTOOL64 14268 14269# Old archive suffix (normally "a"). 14270libext=$libext 14271 14272# Shared library suffix (normally ".so"). 14273shrext_cmds=$lt_shrext_cmds 14274 14275# The commands to extract the exported symbol list from a shared archive. 14276extract_expsyms_cmds=$lt_extract_expsyms_cmds 14277 14278# Variables whose values should be saved in libtool wrapper scripts and 14279# restored at link time. 14280variables_saved_for_relink=$lt_variables_saved_for_relink 14281 14282# Do we need the "lib" prefix for modules? 14283need_lib_prefix=$need_lib_prefix 14284 14285# Do we need a version for libraries? 14286need_version=$need_version 14287 14288# Library versioning type. 14289version_type=$version_type 14290 14291# Shared library runtime path variable. 14292runpath_var=$runpath_var 14293 14294# Shared library path variable. 14295shlibpath_var=$shlibpath_var 14296 14297# Is shlibpath searched before the hard-coded library search path? 14298shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14299 14300# Format of library name prefix. 14301libname_spec=$lt_libname_spec 14302 14303# List of archive names. First name is the real one, the rest are links. 14304# The last name is the one that the linker finds with -lNAME 14305library_names_spec=$lt_library_names_spec 14306 14307# The coded name of the library, if different from the real name. 14308soname_spec=$lt_soname_spec 14309 14310# Command to use after installation of a shared archive. 14311postinstall_cmds=$lt_postinstall_cmds 14312 14313# Command to use after uninstallation of a shared archive. 14314postuninstall_cmds=$lt_postuninstall_cmds 14315 14316# Commands used to finish a libtool library installation in a directory. 14317finish_cmds=$lt_finish_cmds 14318 14319# As "finish_cmds", except a single script fragment to be evaled but 14320# not shown. 14321finish_eval=$lt_finish_eval 14322 14323# Whether we should hardcode library paths into libraries. 14324hardcode_into_libs=$hardcode_into_libs 14325 14326# Compile-time system search path for libraries. 14327sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14328 14329# Run-time system search path for libraries. 14330sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14331 14332# Whether dlopen is supported. 14333dlopen_support=$enable_dlopen 14334 14335# Whether dlopen of programs is supported. 14336dlopen_self=$enable_dlopen_self 14337 14338# Whether dlopen of statically linked programs is supported. 14339dlopen_self_static=$enable_dlopen_self_static 14340 14341# Commands to strip libraries. 14342old_striplib=$lt_old_striplib 14343striplib=$lt_striplib 14344 14345 14346# The linker used to build libraries. 14347LD=$lt_LD 14348 14349# Commands used to build an old-style archive. 14350old_archive_cmds=$lt_old_archive_cmds 14351 14352# A language specific compiler. 14353CC=$lt_compiler 14354 14355# Is the compiler the GNU compiler? 14356with_gcc=$GCC 14357 14358# Compiler flag to turn off builtin functions. 14359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14360 14361# How to pass a linker flag through the compiler. 14362wl=$lt_lt_prog_compiler_wl 14363 14364# Additional compiler flags for building library objects. 14365pic_flag=$lt_lt_prog_compiler_pic 14366 14367# Compiler flag to prevent dynamic linking. 14368link_static_flag=$lt_lt_prog_compiler_static 14369 14370# Does compiler simultaneously support -c and -o options? 14371compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14372 14373# Whether or not to add -lc for building shared libraries. 14374build_libtool_need_lc=$archive_cmds_need_lc 14375 14376# Whether or not to disallow shared libs when runtime libs are static. 14377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14378 14379# Compiler flag to allow reflexive dlopens. 14380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14381 14382# Compiler flag to generate shared objects directly from archives. 14383whole_archive_flag_spec=$lt_whole_archive_flag_spec 14384 14385# Whether the compiler copes with passing no objects directly. 14386compiler_needs_object=$lt_compiler_needs_object 14387 14388# Create an old-style archive from a shared archive. 14389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14390 14391# Create a temporary old-style archive to link instead of a shared archive. 14392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14393 14394# Commands used to build a shared archive. 14395archive_cmds=$lt_archive_cmds 14396archive_expsym_cmds=$lt_archive_expsym_cmds 14397 14398# Commands used to build a loadable module if different from building 14399# a shared archive. 14400module_cmds=$lt_module_cmds 14401module_expsym_cmds=$lt_module_expsym_cmds 14402 14403# Whether we are building with GNU ld or not. 14404with_gnu_ld=$lt_with_gnu_ld 14405 14406# Flag that allows shared libraries with undefined symbols to be built. 14407allow_undefined_flag=$lt_allow_undefined_flag 14408 14409# Flag that enforces no undefined symbols. 14410no_undefined_flag=$lt_no_undefined_flag 14411 14412# Flag to hardcode \$libdir into a binary during linking. 14413# This must work even if \$libdir does not exist 14414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14415 14416# If ld is used when linking, flag to hardcode \$libdir into a binary 14417# during linking. This must work even if \$libdir does not exist. 14418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14419 14420# Whether we need a single "-rpath" flag with a separated argument. 14421hardcode_libdir_separator=$lt_hardcode_libdir_separator 14422 14423# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14424# DIR into the resulting binary. 14425hardcode_direct=$hardcode_direct 14426 14427# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14428# DIR into the resulting binary and the resulting library dependency is 14429# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14430# library is relocated. 14431hardcode_direct_absolute=$hardcode_direct_absolute 14432 14433# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14434# into the resulting binary. 14435hardcode_minus_L=$hardcode_minus_L 14436 14437# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14438# into the resulting binary. 14439hardcode_shlibpath_var=$hardcode_shlibpath_var 14440 14441# Set to "yes" if building a shared library automatically hardcodes DIR 14442# into the library and all subsequent libraries and executables linked 14443# against it. 14444hardcode_automatic=$hardcode_automatic 14445 14446# Set to yes if linker adds runtime paths of dependent libraries 14447# to runtime path list. 14448inherit_rpath=$inherit_rpath 14449 14450# Whether libtool must link a program against all its dependency libraries. 14451link_all_deplibs=$link_all_deplibs 14452 14453# Fix the shell variable \$srcfile for the compiler. 14454fix_srcfile_path=$lt_fix_srcfile_path 14455 14456# Set to "yes" if exported symbols are required. 14457always_export_symbols=$always_export_symbols 14458 14459# The commands to list exported symbols. 14460export_symbols_cmds=$lt_export_symbols_cmds 14461 14462# Symbols that should not be listed in the preloaded symbols. 14463exclude_expsyms=$lt_exclude_expsyms 14464 14465# Symbols that must always be exported. 14466include_expsyms=$lt_include_expsyms 14467 14468# Commands necessary for linking programs (against libraries) with templates. 14469prelink_cmds=$lt_prelink_cmds 14470 14471# Specify filename containing input files. 14472file_list_spec=$lt_file_list_spec 14473 14474# How to hardcode a shared library path into an executable. 14475hardcode_action=$hardcode_action 14476 14477# ### END LIBTOOL CONFIG 14478 14479_LT_EOF 14480 14481 case $host_os in 14482 aix3*) 14483 cat <<\_LT_EOF >> "$cfgfile" 14484# AIX sometimes has problems with the GCC collect2 program. For some 14485# reason, if we set the COLLECT_NAMES environment variable, the problems 14486# vanish in a puff of smoke. 14487if test "X${COLLECT_NAMES+set}" != Xset; then 14488 COLLECT_NAMES= 14489 export COLLECT_NAMES 14490fi 14491_LT_EOF 14492 ;; 14493 esac 14494 14495 14496ltmain="$ac_aux_dir/ltmain.sh" 14497 14498 14499 # We use sed instead of cat because bash on DJGPP gets confused if 14500 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14501 # text mode, it properly converts lines to CR/LF. This bash problem 14502 # is reportedly fixed, but why not run on old versions too? 14503 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14504 || (rm -f "$cfgfile"; exit 1) 14505 14506 case $xsi_shell in 14507 yes) 14508 cat << \_LT_EOF >> "$cfgfile" 14509 14510# func_dirname file append nondir_replacement 14511# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14512# otherwise set result to NONDIR_REPLACEMENT. 14513func_dirname () 14514{ 14515 case ${1} in 14516 */*) func_dirname_result="${1%/*}${2}" ;; 14517 * ) func_dirname_result="${3}" ;; 14518 esac 14519} 14520 14521# func_basename file 14522func_basename () 14523{ 14524 func_basename_result="${1##*/}" 14525} 14526 14527# func_dirname_and_basename file append nondir_replacement 14528# perform func_basename and func_dirname in a single function 14529# call: 14530# dirname: Compute the dirname of FILE. If nonempty, 14531# add APPEND to the result, otherwise set result 14532# to NONDIR_REPLACEMENT. 14533# value returned in "$func_dirname_result" 14534# basename: Compute filename of FILE. 14535# value retuned in "$func_basename_result" 14536# Implementation must be kept synchronized with func_dirname 14537# and func_basename. For efficiency, we do not delegate to 14538# those functions but instead duplicate the functionality here. 14539func_dirname_and_basename () 14540{ 14541 case ${1} in 14542 */*) func_dirname_result="${1%/*}${2}" ;; 14543 * ) func_dirname_result="${3}" ;; 14544 esac 14545 func_basename_result="${1##*/}" 14546} 14547 14548# func_stripname prefix suffix name 14549# strip PREFIX and SUFFIX off of NAME. 14550# PREFIX and SUFFIX must not contain globbing or regex special 14551# characters, hashes, percent signs, but SUFFIX may contain a leading 14552# dot (in which case that matches only a dot). 14553func_stripname () 14554{ 14555 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14556 # positional parameters, so assign one to ordinary parameter first. 14557 func_stripname_result=${3} 14558 func_stripname_result=${func_stripname_result#"${1}"} 14559 func_stripname_result=${func_stripname_result%"${2}"} 14560} 14561 14562# func_opt_split 14563func_opt_split () 14564{ 14565 func_opt_split_opt=${1%%=*} 14566 func_opt_split_arg=${1#*=} 14567} 14568 14569# func_lo2o object 14570func_lo2o () 14571{ 14572 case ${1} in 14573 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14574 *) func_lo2o_result=${1} ;; 14575 esac 14576} 14577 14578# func_xform libobj-or-source 14579func_xform () 14580{ 14581 func_xform_result=${1%.*}.lo 14582} 14583 14584# func_arith arithmetic-term... 14585func_arith () 14586{ 14587 func_arith_result=$(( $* )) 14588} 14589 14590# func_len string 14591# STRING may not start with a hyphen. 14592func_len () 14593{ 14594 func_len_result=${#1} 14595} 14596 14597_LT_EOF 14598 ;; 14599 *) # Bourne compatible functions. 14600 cat << \_LT_EOF >> "$cfgfile" 14601 14602# func_dirname file append nondir_replacement 14603# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14604# otherwise set result to NONDIR_REPLACEMENT. 14605func_dirname () 14606{ 14607 # Extract subdirectory from the argument. 14608 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14609 if test "X$func_dirname_result" = "X${1}"; then 14610 func_dirname_result="${3}" 14611 else 14612 func_dirname_result="$func_dirname_result${2}" 14613 fi 14614} 14615 14616# func_basename file 14617func_basename () 14618{ 14619 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14620} 14621 14622 14623# func_stripname prefix suffix name 14624# strip PREFIX and SUFFIX off of NAME. 14625# PREFIX and SUFFIX must not contain globbing or regex special 14626# characters, hashes, percent signs, but SUFFIX may contain a leading 14627# dot (in which case that matches only a dot). 14628# func_strip_suffix prefix name 14629func_stripname () 14630{ 14631 case ${2} in 14632 .*) func_stripname_result=`$ECHO "X${3}" \ 14633 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14634 *) func_stripname_result=`$ECHO "X${3}" \ 14635 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14636 esac 14637} 14638 14639# sed scripts: 14640my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14641my_sed_long_arg='1s/^-[^=]*=//' 14642 14643# func_opt_split 14644func_opt_split () 14645{ 14646 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14647 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14648} 14649 14650# func_lo2o object 14651func_lo2o () 14652{ 14653 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14654} 14655 14656# func_xform libobj-or-source 14657func_xform () 14658{ 14659 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14660} 14661 14662# func_arith arithmetic-term... 14663func_arith () 14664{ 14665 func_arith_result=`expr "$@"` 14666} 14667 14668# func_len string 14669# STRING may not start with a hyphen. 14670func_len () 14671{ 14672 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14673} 14674 14675_LT_EOF 14676esac 14677 14678case $lt_shell_append in 14679 yes) 14680 cat << \_LT_EOF >> "$cfgfile" 14681 14682# func_append var value 14683# Append VALUE to the end of shell variable VAR. 14684func_append () 14685{ 14686 eval "$1+=\$2" 14687} 14688_LT_EOF 14689 ;; 14690 *) 14691 cat << \_LT_EOF >> "$cfgfile" 14692 14693# func_append var value 14694# Append VALUE to the end of shell variable VAR. 14695func_append () 14696{ 14697 eval "$1=\$$1\$2" 14698} 14699 14700_LT_EOF 14701 ;; 14702 esac 14703 14704 14705 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14706 || (rm -f "$cfgfile"; exit 1) 14707 14708 mv -f "$cfgfile" "$ofile" || 14709 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14710 chmod +x "$ofile" 14711 14712 ;; 14713 14714 esac 14715done # for ac_tag 14716 14717 14718as_fn_exit 0 14719_ACEOF 14720ac_clean_files=$ac_clean_files_save 14721 14722test $ac_write_fail = 0 || 14723 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14724 14725 14726# configure is writing to config.log, and then calls config.status. 14727# config.status does its own redirection, appending to config.log. 14728# Unfortunately, on DOS this fails, as config.log is still kept open 14729# by configure, so config.status won't be able to write to it; its 14730# output is simply discarded. So we exec the FD to /dev/null, 14731# effectively closing config.log, so it can be properly (re)opened and 14732# appended to by config.status. When coming back to configure, we 14733# need to make the FD available again. 14734if test "$no_create" != yes; then 14735 ac_cs_success=: 14736 ac_config_status_args= 14737 test "$silent" = yes && 14738 ac_config_status_args="$ac_config_status_args --quiet" 14739 exec 5>/dev/null 14740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14741 exec 5>>config.log 14742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14743 # would make configure fail if this is the last instruction. 14744 $ac_cs_success || as_fn_exit $? 14745fi 14746if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14748$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14749fi 14750 14751