1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for api 0.5.0. 4# 5# Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, 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: https://sourceforge.net/apps/trac/razorbacktm/ about 235$0: your system, including any error possibly output before 236$0: this message. Then install a modern shell, or manually 237$0: run 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&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, old GNU/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='api' 703PACKAGE_TARNAME='api' 704PACKAGE_VERSION='0.5.0' 705PACKAGE_STRING='api 0.5.0' 706PACKAGE_BUGREPORT='https://sourceforge.net/apps/trac/razorbacktm/' 707PACKAGE_URL='' 708 709ac_unique_file="src/thread.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 750extra_incl 751APIVERSION 752XCCFLAGS 753LIBOBJS 754JSON_LIBS 755JSON_CFLAGS 756LIBCONFIG_LIBS 757LIBCONFIG_CFLAGS 758PKG_CONFIG_LIBDIR 759PKG_CONFIG_PATH 760PKG_CONFIG 761LIBEXECDIR 762SYSCONFDIR 763PLATFORM_FREEBSD_FALSE 764PLATFORM_FREEBSD_TRUE 765PLATFORM_LINUX_FALSE 766PLATFORM_LINUX_TRUE 767CPP 768OTOOL64 769OTOOL 770LIPO 771NMEDIT 772DSYMUTIL 773lt_ECHO 774RANLIB 775AR 776OBJDUMP 777LN_S 778NM 779ac_ct_DUMPBIN 780DUMPBIN 781LD 782FGREP 783EGREP 784GREP 785SED 786LIBTOOL 787am__fastdepCC_FALSE 788am__fastdepCC_TRUE 789CCDEPMODE 790AMDEPBACKSLASH 791AMDEP_FALSE 792AMDEP_TRUE 793am__quote 794am__include 795DEPDIR 796OBJEXT 797EXEEXT 798ac_ct_CC 799CPPFLAGS 800LDFLAGS 801CFLAGS 802CC 803host_os 804host_vendor 805host_cpu 806host 807build_os 808build_vendor 809build_cpu 810build 811am__untar 812am__tar 813AMTAR 814am__leading_dot 815SET_MAKE 816AWK 817mkdir_p 818MKDIR_P 819INSTALL_STRIP_PROGRAM 820STRIP 821install_sh 822MAKEINFO 823AUTOHEADER 824AUTOMAKE 825AUTOCONF 826ACLOCAL 827VERSION 828PACKAGE 829CYGPATH_W 830am__isrc 831INSTALL_DATA 832INSTALL_SCRIPT 833INSTALL_PROGRAM 834target_alias 835host_alias 836build_alias 837LIBS 838ECHO_T 839ECHO_N 840ECHO_C 841DEFS 842mandir 843localedir 844libdir 845psdir 846pdfdir 847dvidir 848htmldir 849infodir 850docdir 851oldincludedir 852includedir 853localstatedir 854sharedstatedir 855sysconfdir 856datadir 857datarootdir 858libexecdir 859sbindir 860bindir 861program_transform_name 862prefix 863exec_prefix 864PACKAGE_URL 865PACKAGE_BUGREPORT 866PACKAGE_STRING 867PACKAGE_VERSION 868PACKAGE_TARNAME 869PACKAGE_NAME 870PATH_SEPARATOR 871SHELL' 872ac_subst_files='' 873ac_user_opts=' 874enable_option_checking 875enable_dependency_tracking 876enable_shared 877enable_static 878with_pic 879enable_fast_install 880with_gnu_ld 881enable_libtool_lock 882enable_debug 883enable_assert 884enable_unimplemented 885enable_inline 886enable_perf 887enable_profile 888enable_cnc_debug 889enable_stomp_debug 890enable_magic_debug 891' 892 ac_precious_vars='build_alias 893host_alias 894target_alias 895CC 896CFLAGS 897LDFLAGS 898LIBS 899CPPFLAGS 900CPP 901PKG_CONFIG 902PKG_CONFIG_PATH 903PKG_CONFIG_LIBDIR 904LIBCONFIG_CFLAGS 905LIBCONFIG_LIBS 906JSON_CFLAGS 907JSON_LIBS' 908 909 910# Initialize some variables set by options. 911ac_init_help= 912ac_init_version=false 913ac_unrecognized_opts= 914ac_unrecognized_sep= 915# The variables have the same names as the options, with 916# dashes changed to underlines. 917cache_file=/dev/null 918exec_prefix=NONE 919no_create= 920no_recursion= 921prefix=NONE 922program_prefix=NONE 923program_suffix=NONE 924program_transform_name=s,x,x, 925silent= 926site= 927srcdir= 928verbose= 929x_includes=NONE 930x_libraries=NONE 931 932# Installation directory options. 933# These are left unexpanded so users can "make install exec_prefix=/foo" 934# and all the variables that are supposed to be based on exec_prefix 935# by default will actually change. 936# Use braces instead of parens because sh, perl, etc. also accept them. 937# (The list follows the same order as the GNU Coding Standards.) 938bindir='${exec_prefix}/bin' 939sbindir='${exec_prefix}/sbin' 940libexecdir='${exec_prefix}/libexec' 941datarootdir='${prefix}/share' 942datadir='${datarootdir}' 943sysconfdir='${prefix}/etc' 944sharedstatedir='${prefix}/com' 945localstatedir='${prefix}/var' 946includedir='${prefix}/include' 947oldincludedir='/usr/include' 948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 949infodir='${datarootdir}/info' 950htmldir='${docdir}' 951dvidir='${docdir}' 952pdfdir='${docdir}' 953psdir='${docdir}' 954libdir='${exec_prefix}/lib' 955localedir='${datarootdir}/locale' 956mandir='${datarootdir}/man' 957 958ac_prev= 959ac_dashdash= 960for ac_option 961do 962 # If the previous option needs an argument, assign it. 963 if test -n "$ac_prev"; then 964 eval $ac_prev=\$ac_option 965 ac_prev= 966 continue 967 fi 968 969 case $ac_option in 970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971 *=) ac_optarg= ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 # Accept the important Cygnus configure options, so we can diagnose typos. 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error $? "invalid feature name: $ac_useropt" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error $? "invalid feature name: $ac_useropt" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1199 ac_prev=sbindir ;; 1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1201 | --sbi=* | --sb=*) 1202 sbindir=$ac_optarg ;; 1203 1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1206 | --sharedst | --shareds | --shared | --share | --shar \ 1207 | --sha | --sh) 1208 ac_prev=sharedstatedir ;; 1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1212 | --sha=* | --sh=*) 1213 sharedstatedir=$ac_optarg ;; 1214 1215 -site | --site | --sit) 1216 ac_prev=site ;; 1217 -site=* | --site=* | --sit=*) 1218 site=$ac_optarg ;; 1219 1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1221 ac_prev=srcdir ;; 1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1223 srcdir=$ac_optarg ;; 1224 1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1226 | --syscon | --sysco | --sysc | --sys | --sy) 1227 ac_prev=sysconfdir ;; 1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1230 sysconfdir=$ac_optarg ;; 1231 1232 -target | --target | --targe | --targ | --tar | --ta | --t) 1233 ac_prev=target_alias ;; 1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1235 target_alias=$ac_optarg ;; 1236 1237 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1238 verbose=yes ;; 1239 1240 -version | --version | --versio | --versi | --vers | -V) 1241 ac_init_version=: ;; 1242 1243 -with-* | --with-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=\$ac_optarg ;; 1258 1259 -without-* | --without-*) 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1263 as_fn_error $? "invalid package name: $ac_useropt" 1264 ac_useropt_orig=$ac_useropt 1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1266 case $ac_user_opts in 1267 *" 1268"with_$ac_useropt" 1269"*) ;; 1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1271 ac_unrecognized_sep=', ';; 1272 esac 1273 eval with_$ac_useropt=no ;; 1274 1275 --x) 1276 # Obsolete; use --with-x. 1277 with_x=yes ;; 1278 1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1280 | --x-incl | --x-inc | --x-in | --x-i) 1281 ac_prev=x_includes ;; 1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1284 x_includes=$ac_optarg ;; 1285 1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1288 ac_prev=x_libraries ;; 1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1291 x_libraries=$ac_optarg ;; 1292 1293 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1294Try \`$0 --help' for more information" 1295 ;; 1296 1297 *=*) 1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1299 # Reject names that are not valid shell variable names. 1300 case $ac_envvar in #( 1301 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1303 esac 1304 eval $ac_envvar=\$ac_optarg 1305 export $ac_envvar ;; 1306 1307 *) 1308 # FIXME: should be removed in autoconf 3.0. 1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1312 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1313 ;; 1314 1315 esac 1316done 1317 1318if test -n "$ac_prev"; then 1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1320 as_fn_error $? "missing argument to $ac_option" 1321fi 1322 1323if test -n "$ac_unrecognized_opts"; then 1324 case $enable_option_checking in 1325 no) ;; 1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1328 esac 1329fi 1330 1331# Check all directory arguments for consistency. 1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1333 datadir sysconfdir sharedstatedir localstatedir includedir \ 1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1335 libdir localedir mandir 1336do 1337 eval ac_val=\$$ac_var 1338 # Remove trailing slashes. 1339 case $ac_val in 1340 */ ) 1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1342 eval $ac_var=\$ac_val;; 1343 esac 1344 # Be sure to have absolute directory names. 1345 case $ac_val in 1346 [\\/$]* | ?:[\\/]* ) continue;; 1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1348 esac 1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1350done 1351 1352# There might be people who depend on the old broken behavior: `$host' 1353# used to hold the argument of --host etc. 1354# FIXME: To remove some day. 1355build=$build_alias 1356host=$host_alias 1357target=$target_alias 1358 1359# FIXME: To remove some day. 1360if test "x$host_alias" != x; then 1361 if test "x$build_alias" = x; then 1362 cross_compiling=maybe 1363 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1364 If a cross compiler is detected then cross compile mode will be used" >&2 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error $? "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error $? "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures api 0.5.0 to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking ...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/api] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of api 0.5.0:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --disable-dependency-tracking speeds up one-time build 1529 --enable-dependency-tracking do not reject slow dependency extractors 1530 --enable-shared[=PKGS] build shared libraries [default=yes] 1531 --enable-static[=PKGS] build static libraries [default=yes] 1532 --enable-fast-install[=PKGS] 1533 optimize for fast installation [default=yes] 1534 --disable-libtool-lock avoid locking (might break parallel builds) 1535 --enable-debug Enable debug build options 1536 --enable-assert Enable assert build options 1537 --enable-unimplemented Enable unimplemented asserts options 1538 --disable-inline Do not use inline functions 1539 --disable-perf Disable performance statistics 1540 --enable-profile Enable profile build options 1541 --enable-cnc-debug Enable command and control debug 1542 --enable-stomp-debug Enable stomp debug 1543 --enable-magic-debug Enable magic debug 1544 1545Optional Packages: 1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1548 --with-pic try to use only PIC/non-PIC objects [default=use 1549 both] 1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1551 1552Some influential environment variables: 1553 CC C compiler command 1554 CFLAGS C compiler flags 1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1556 nonstandard directory <lib dir> 1557 LIBS libraries to pass to the linker, e.g. -l<library> 1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1559 you have headers in a nonstandard directory <include dir> 1560 CPP C preprocessor 1561 PKG_CONFIG path to pkg-config utility 1562 PKG_CONFIG_PATH 1563 directories to add to pkg-config's search path 1564 PKG_CONFIG_LIBDIR 1565 path overriding pkg-config's built-in search path 1566 LIBCONFIG_CFLAGS 1567 C compiler flags for LIBCONFIG, overriding pkg-config 1568 LIBCONFIG_LIBS 1569 linker flags for LIBCONFIG, overriding pkg-config 1570 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config 1571 JSON_LIBS linker flags for JSON, overriding pkg-config 1572 1573Use these variables to override the choices made by `configure' or to help 1574it to find libraries and programs with nonstandard names/locations. 1575 1576Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>. 1577_ACEOF 1578ac_status=$? 1579fi 1580 1581if test "$ac_init_help" = "recursive"; then 1582 # If there are subdirs, report their specific --help. 1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1584 test -d "$ac_dir" || 1585 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1586 continue 1587 ac_builddir=. 1588 1589case "$ac_dir" in 1590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591*) 1592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1593 # A ".." for each directory in $ac_dir_suffix. 1594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1595 case $ac_top_builddir_sub in 1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1598 esac ;; 1599esac 1600ac_abs_top_builddir=$ac_pwd 1601ac_abs_builddir=$ac_pwd$ac_dir_suffix 1602# for backward compatibility: 1603ac_top_builddir=$ac_top_build_prefix 1604 1605case $srcdir in 1606 .) # We are building in place. 1607 ac_srcdir=. 1608 ac_top_srcdir=$ac_top_builddir_sub 1609 ac_abs_top_srcdir=$ac_pwd ;; 1610 [\\/]* | ?:[\\/]* ) # Absolute name. 1611 ac_srcdir=$srcdir$ac_dir_suffix; 1612 ac_top_srcdir=$srcdir 1613 ac_abs_top_srcdir=$srcdir ;; 1614 *) # Relative name. 1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1616 ac_top_srcdir=$ac_top_build_prefix$srcdir 1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1618esac 1619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1620 1621 cd "$ac_dir" || { ac_status=$?; continue; } 1622 # Check for guested configure. 1623 if test -f "$ac_srcdir/configure.gnu"; then 1624 echo && 1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1626 elif test -f "$ac_srcdir/configure"; then 1627 echo && 1628 $SHELL "$ac_srcdir/configure" --help=recursive 1629 else 1630 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1631 fi || ac_status=$? 1632 cd "$ac_pwd" || { ac_status=$?; break; } 1633 done 1634fi 1635 1636test -n "$ac_init_help" && exit $ac_status 1637if $ac_init_version; then 1638 cat <<\_ACEOF 1639api configure 0.5.0 1640generated by GNU Autoconf 2.67 1641 1642Copyright (C) 2010 Free Software Foundation, Inc. 1643This configure script is free software; the Free Software Foundation 1644gives unlimited permission to copy, distribute and modify it. 1645_ACEOF 1646 exit 1647fi 1648 1649## ------------------------ ## 1650## Autoconf initialization. ## 1651## ------------------------ ## 1652 1653# ac_fn_c_try_compile LINENO 1654# -------------------------- 1655# Try to compile conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_compile () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 rm -f conftest.$ac_objext 1660 if { { ac_try="$ac_compile" 1661case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664esac 1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666$as_echo "$ac_try_echo"; } >&5 1667 (eval "$ac_compile") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { 1676 test -z "$ac_c_werror_flag" || 1677 test ! -s conftest.err 1678 } && test -s conftest.$ac_objext; then : 1679 ac_retval=0 1680else 1681 $as_echo "$as_me: failed program was:" >&5 1682sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=1 1685fi 1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1687 as_fn_set_status $ac_retval 1688 1689} # ac_fn_c_try_compile 1690 1691# ac_fn_c_try_link LINENO 1692# ----------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. 1694ac_fn_c_try_link () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 rm -f conftest.$ac_objext conftest$ac_exeext 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { 1714 test -z "$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } && test -s conftest$ac_exeext && { 1717 test "$cross_compiling" = yes || 1718 $as_test_x conftest$ac_exeext 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1729 # interfere with the next link command; also delete a directory that is 1730 # left behind by Apple's compiler. We do this before executing the actions. 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_link 1736 1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1738# ------------------------------------------------------- 1739# Tests whether HEADER exists and can be compiled using the include files in 1740# INCLUDES, setting the cache variable VAR accordingly. 1741ac_fn_c_check_header_compile () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval "test \"\${$3+set}\"" = set; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751$4 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_compile "$LINENO"; then : 1755 eval "$3=yes" 1756else 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1765 1766} # ac_fn_c_check_header_compile 1767 1768# ac_fn_c_try_cpp LINENO 1769# ---------------------- 1770# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1771ac_fn_c_try_cpp () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 if { { ac_try="$ac_cpp conftest.$ac_ext" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1782 ac_status=$? 1783 if test -s conftest.err; then 1784 grep -v '^ *+' conftest.err >conftest.er1 1785 cat conftest.er1 >&5 1786 mv -f conftest.er1 conftest.err 1787 fi 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } > conftest.i && { 1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1791 test ! -s conftest.err 1792 }; then : 1793 ac_retval=0 1794else 1795 $as_echo "$as_me: failed program was:" >&5 1796sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=1 1799fi 1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_cpp 1804 1805# ac_fn_c_try_run LINENO 1806# ---------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1808# that executables *can* be run. 1809ac_fn_c_try_run () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1823 { { case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_try") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; }; }; then : 1833 ac_retval=0 1834else 1835 $as_echo "$as_me: program exited with status $ac_status" >&5 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=$ac_status 1840fi 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_run 1846 1847# ac_fn_c_check_func LINENO FUNC VAR 1848# ---------------------------------- 1849# Tests whether FUNC exists, setting the cache variable VAR accordingly 1850ac_fn_c_check_func () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval "test \"\${$3+set}\"" = set; then : 1856 $as_echo_n "(cached) " >&6 1857else 1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1862#define $2 innocuous_$2 1863 1864/* System header to define __stub macros and hopefully few prototypes, 1865 which can conflict with char $2 (); below. 1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1867 <limits.h> exists even on freestanding compilers. */ 1868 1869#ifdef __STDC__ 1870# include <limits.h> 1871#else 1872# include <assert.h> 1873#endif 1874 1875#undef $2 1876 1877/* Override any GCC internal prototype to avoid an error. 1878 Use char because int might match the return type of a GCC 1879 builtin and then its argument prototype would still apply. */ 1880#ifdef __cplusplus 1881extern "C" 1882#endif 1883char $2 (); 1884/* The GNU C library defines this for functions which it implements 1885 to always fail with ENOSYS. Some functions are actually named 1886 something starting with __ and the normal name is an alias. */ 1887#if defined __stub_$2 || defined __stub___$2 1888choke me 1889#endif 1890 1891int 1892main () 1893{ 1894return $2 (); 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_link "$LINENO"; then : 1900 eval "$3=yes" 1901else 1902 eval "$3=no" 1903fi 1904rm -f core conftest.err conftest.$ac_objext \ 1905 conftest$ac_exeext conftest.$ac_ext 1906fi 1907eval ac_res=\$$3 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909$as_echo "$ac_res" >&6; } 1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1911 1912} # ac_fn_c_check_func 1913 1914# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1915# ------------------------------------------------------- 1916# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1917# the include files in INCLUDES and setting the cache variable VAR 1918# accordingly. 1919ac_fn_c_check_header_mongrel () 1920{ 1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1922 if eval "test \"\${$3+set}\"" = set; then : 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1924$as_echo_n "checking for $2... " >&6; } 1925if eval "test \"\${$3+set}\"" = set; then : 1926 $as_echo_n "(cached) " >&6 1927fi 1928eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930$as_echo "$ac_res" >&6; } 1931else 1932 # Is the header compilable? 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1934$as_echo_n "checking $2 usability... " >&6; } 1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937$4 1938#include <$2> 1939_ACEOF 1940if ac_fn_c_try_compile "$LINENO"; then : 1941 ac_header_compiler=yes 1942else 1943 ac_header_compiler=no 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1947$as_echo "$ac_header_compiler" >&6; } 1948 1949# Is the header present? 1950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1951$as_echo_n "checking $2 presence... " >&6; } 1952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953/* end confdefs.h. */ 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_cpp "$LINENO"; then : 1957 ac_header_preproc=yes 1958else 1959 ac_header_preproc=no 1960fi 1961rm -f conftest.err conftest.i conftest.$ac_ext 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1963$as_echo "$ac_header_preproc" >&6; } 1964 1965# So? What about this header? 1966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1967 yes:no: ) 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1969$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1972 ;; 1973 no:yes:* ) 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1975$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1977$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1979$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1981$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1984( $as_echo "## ------------------------------------------------------------- ## 1985## Report this to https://sourceforge.net/apps/trac/razorbacktm/ ## 1986## ------------------------------------------------------------- ##" 1987 ) | sed "s/^/$as_me: WARNING: /" >&2 1988 ;; 1989esac 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if eval "test \"\${$3+set}\"" = set; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 eval "$3=\$ac_header_compiler" 1996fi 1997eval ac_res=\$$3 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1999$as_echo "$ac_res" >&6; } 2000fi 2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2002 2003} # ac_fn_c_check_header_mongrel 2004 2005# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2006# ------------------------------------------- 2007# Tests whether TYPE exists after having included INCLUDES, setting cache 2008# variable VAR accordingly. 2009ac_fn_c_check_type () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2013$as_echo_n "checking for $2... " >&6; } 2014if eval "test \"\${$3+set}\"" = set; then : 2015 $as_echo_n "(cached) " >&6 2016else 2017 eval "$3=no" 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019/* end confdefs.h. */ 2020$4 2021int 2022main () 2023{ 2024if (sizeof ($2)) 2025 return 0; 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033$4 2034int 2035main () 2036{ 2037if (sizeof (($2))) 2038 return 0; 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO"; then : 2044 2045else 2046 eval "$3=yes" 2047fi 2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052eval ac_res=\$$3 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2054$as_echo "$ac_res" >&6; } 2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2056 2057} # ac_fn_c_check_type 2058 2059# ac_fn_c_find_uintX_t LINENO BITS VAR 2060# ------------------------------------ 2061# Finds an unsigned integer type with width BITS, setting cache variable VAR 2062# accordingly. 2063ac_fn_c_find_uintX_t () 2064{ 2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2067$as_echo_n "checking for uint$2_t... " >&6; } 2068if eval "test \"\${$3+set}\"" = set; then : 2069 $as_echo_n "(cached) " >&6 2070else 2071 eval "$3=no" 2072 # Order is important - never check a type that is potentially smaller 2073 # than half of the expected target width. 2074 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2075 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078$ac_includes_default 2079int 2080main () 2081{ 2082static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2083test_array [0] = 0 2084 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_compile "$LINENO"; then : 2090 case $ac_type in #( 2091 uint$2_t) : 2092 eval "$3=yes" ;; #( 2093 *) : 2094 eval "$3=\$ac_type" ;; 2095esac 2096fi 2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2098 if eval test \"x\$"$3"\" = x"no"; then : 2099 2100else 2101 break 2102fi 2103 done 2104fi 2105eval ac_res=\$$3 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2107$as_echo "$ac_res" >&6; } 2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2109 2110} # ac_fn_c_find_uintX_t 2111cat >config.log <<_ACEOF 2112This file contains any messages produced by compilers while 2113running configure, to aid debugging if configure makes a mistake. 2114 2115It was created by api $as_me 0.5.0, which was 2116generated by GNU Autoconf 2.67. Invocation command line was 2117 2118 $ $0 $@ 2119 2120_ACEOF 2121exec 5>>config.log 2122{ 2123cat <<_ASUNAME 2124## --------- ## 2125## Platform. ## 2126## --------- ## 2127 2128hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2129uname -m = `(uname -m) 2>/dev/null || echo unknown` 2130uname -r = `(uname -r) 2>/dev/null || echo unknown` 2131uname -s = `(uname -s) 2>/dev/null || echo unknown` 2132uname -v = `(uname -v) 2>/dev/null || echo unknown` 2133 2134/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2135/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2136 2137/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2138/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2139/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2140/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2141/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2142/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2143/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2144 2145_ASUNAME 2146 2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2148for as_dir in $PATH 2149do 2150 IFS=$as_save_IFS 2151 test -z "$as_dir" && as_dir=. 2152 $as_echo "PATH: $as_dir" 2153 done 2154IFS=$as_save_IFS 2155 2156} >&5 2157 2158cat >&5 <<_ACEOF 2159 2160 2161## ----------- ## 2162## Core tests. ## 2163## ----------- ## 2164 2165_ACEOF 2166 2167 2168# Keep a trace of the command line. 2169# Strip out --no-create and --no-recursion so they do not pile up. 2170# Strip out --silent because we don't want to record it for future runs. 2171# Also quote any args containing shell meta-characters. 2172# Make two passes to allow for proper duplicate-argument suppression. 2173ac_configure_args= 2174ac_configure_args0= 2175ac_configure_args1= 2176ac_must_keep_next=false 2177for ac_pass in 1 2 2178do 2179 for ac_arg 2180 do 2181 case $ac_arg in 2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2184 | -silent | --silent | --silen | --sile | --sil) 2185 continue ;; 2186 *\'*) 2187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2188 esac 2189 case $ac_pass in 2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2191 2) 2192 as_fn_append ac_configure_args1 " '$ac_arg'" 2193 if test $ac_must_keep_next = true; then 2194 ac_must_keep_next=false # Got value, back to normal. 2195 else 2196 case $ac_arg in 2197 *=* | --config-cache | -C | -disable-* | --disable-* \ 2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2200 | -with-* | --with-* | -without-* | --without-* | --x) 2201 case "$ac_configure_args0 " in 2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2203 esac 2204 ;; 2205 -* ) ac_must_keep_next=true ;; 2206 esac 2207 fi 2208 as_fn_append ac_configure_args " '$ac_arg'" 2209 ;; 2210 esac 2211 done 2212done 2213{ ac_configure_args0=; unset ac_configure_args0;} 2214{ ac_configure_args1=; unset ac_configure_args1;} 2215 2216# When interrupted or exit'd, cleanup temporary files, and complete 2217# config.log. We remove comments because anyway the quotes in there 2218# would cause problems or look ugly. 2219# WARNING: Use '\'' to represent an apostrophe within the trap. 2220# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2221trap 'exit_status=$? 2222 # Save into config.log some information that might help in debugging. 2223 { 2224 echo 2225 2226 $as_echo "## ---------------- ## 2227## Cache variables. ## 2228## ---------------- ##" 2229 echo 2230 # The following way of writing the cache mishandles newlines in values, 2231( 2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2233 eval ac_val=\$$ac_var 2234 case $ac_val in #( 2235 *${as_nl}*) 2236 case $ac_var in #( 2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2239 esac 2240 case $ac_var in #( 2241 _ | IFS | as_nl) ;; #( 2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2243 *) { eval $ac_var=; unset $ac_var;} ;; 2244 esac ;; 2245 esac 2246 done 2247 (set) 2>&1 | 2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2249 *${as_nl}ac_space=\ *) 2250 sed -n \ 2251 "s/'\''/'\''\\\\'\'''\''/g; 2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2253 ;; #( 2254 *) 2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2256 ;; 2257 esac | 2258 sort 2259) 2260 echo 2261 2262 $as_echo "## ----------------- ## 2263## Output variables. ## 2264## ----------------- ##" 2265 echo 2266 for ac_var in $ac_subst_vars 2267 do 2268 eval ac_val=\$$ac_var 2269 case $ac_val in 2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2271 esac 2272 $as_echo "$ac_var='\''$ac_val'\''" 2273 done | sort 2274 echo 2275 2276 if test -n "$ac_subst_files"; then 2277 $as_echo "## ------------------- ## 2278## File substitutions. ## 2279## ------------------- ##" 2280 echo 2281 for ac_var in $ac_subst_files 2282 do 2283 eval ac_val=\$$ac_var 2284 case $ac_val in 2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2286 esac 2287 $as_echo "$ac_var='\''$ac_val'\''" 2288 done | sort 2289 echo 2290 fi 2291 2292 if test -s confdefs.h; then 2293 $as_echo "## ----------- ## 2294## confdefs.h. ## 2295## ----------- ##" 2296 echo 2297 cat confdefs.h 2298 echo 2299 fi 2300 test "$ac_signal" != 0 && 2301 $as_echo "$as_me: caught signal $ac_signal" 2302 $as_echo "$as_me: exit $exit_status" 2303 } >&5 2304 rm -f core *.core core.conftest.* && 2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2306 exit $exit_status 2307' 0 2308for ac_signal in 1 2 13 15; do 2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2310done 2311ac_signal=0 2312 2313# confdefs.h avoids OS command line length limits that DEFS can exceed. 2314rm -f -r conftest* confdefs.h 2315 2316$as_echo "/* confdefs.h */" > confdefs.h 2317 2318# Predefined preprocessor variables. 2319 2320cat >>confdefs.h <<_ACEOF 2321#define PACKAGE_NAME "$PACKAGE_NAME" 2322_ACEOF 2323 2324cat >>confdefs.h <<_ACEOF 2325#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2326_ACEOF 2327 2328cat >>confdefs.h <<_ACEOF 2329#define PACKAGE_VERSION "$PACKAGE_VERSION" 2330_ACEOF 2331 2332cat >>confdefs.h <<_ACEOF 2333#define PACKAGE_STRING "$PACKAGE_STRING" 2334_ACEOF 2335 2336cat >>confdefs.h <<_ACEOF 2337#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2338_ACEOF 2339 2340cat >>confdefs.h <<_ACEOF 2341#define PACKAGE_URL "$PACKAGE_URL" 2342_ACEOF 2343 2344 2345# Let the site file select an alternate cache file if it wants to. 2346# Prefer an explicitly selected file to automatically selected ones. 2347ac_site_file1=NONE 2348ac_site_file2=NONE 2349if test -n "$CONFIG_SITE"; then 2350 # We do not want a PATH search for config.site. 2351 case $CONFIG_SITE in #(( 2352 -*) ac_site_file1=./$CONFIG_SITE;; 2353 */*) ac_site_file1=$CONFIG_SITE;; 2354 *) ac_site_file1=./$CONFIG_SITE;; 2355 esac 2356elif test "x$prefix" != xNONE; then 2357 ac_site_file1=$prefix/share/config.site 2358 ac_site_file2=$prefix/etc/config.site 2359else 2360 ac_site_file1=$ac_default_prefix/share/config.site 2361 ac_site_file2=$ac_default_prefix/etc/config.site 2362fi 2363for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2364do 2365 test "x$ac_site_file" = xNONE && continue 2366 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2368$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2369 sed 's/^/| /' "$ac_site_file" >&5 2370 . "$ac_site_file" \ 2371 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2373as_fn_error $? "failed to load site script $ac_site_file 2374See \`config.log' for more details" "$LINENO" 5 ; } 2375 fi 2376done 2377 2378if test -r "$cache_file"; then 2379 # Some versions of bash will fail to source /dev/null (special files 2380 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2383$as_echo "$as_me: loading cache $cache_file" >&6;} 2384 case $cache_file in 2385 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2386 *) . "./$cache_file";; 2387 esac 2388 fi 2389else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2391$as_echo "$as_me: creating cache $cache_file" >&6;} 2392 >$cache_file 2393fi 2394 2395as_fn_append ac_header_list " stdlib.h" 2396as_fn_append ac_header_list " unistd.h" 2397as_fn_append ac_header_list " sys/param.h" 2398# Check that the precious variables saved in the cache have kept the same 2399# value. 2400ac_cache_corrupted=false 2401for ac_var in $ac_precious_vars; do 2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2403 eval ac_new_set=\$ac_env_${ac_var}_set 2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2405 eval ac_new_val=\$ac_env_${ac_var}_value 2406 case $ac_old_set,$ac_new_set in 2407 set,) 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2409$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2410 ac_cache_corrupted=: ;; 2411 ,set) 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2413$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2414 ac_cache_corrupted=: ;; 2415 ,);; 2416 *) 2417 if test "x$ac_old_val" != "x$ac_new_val"; then 2418 # differences in whitespace do not lead to failure. 2419 ac_old_val_w=`echo x $ac_old_val` 2420 ac_new_val_w=`echo x $ac_new_val` 2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2423$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2424 ac_cache_corrupted=: 2425 else 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2427$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2428 eval $ac_var=\$ac_old_val 2429 fi 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2431$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2433$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2434 fi;; 2435 esac 2436 # Pass precious variables to config.status. 2437 if test "$ac_new_set" = set; then 2438 case $ac_new_val in 2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2440 *) ac_arg=$ac_var=$ac_new_val ;; 2441 esac 2442 case " $ac_configure_args " in 2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2445 esac 2446 fi 2447done 2448if $ac_cache_corrupted; then 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2452$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2454fi 2455## -------------------- ## 2456## Main body of script. ## 2457## -------------------- ## 2458 2459ac_ext=c 2460ac_cpp='$CPP $CPPFLAGS' 2461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2463ac_compiler_gnu=$ac_cv_c_compiler_gnu 2464 2465 2466ac_aux_dir= 2467for ac_dir in . "$srcdir"/.; do 2468 if test -f "$ac_dir/install-sh"; then 2469 ac_aux_dir=$ac_dir 2470 ac_install_sh="$ac_aux_dir/install-sh -c" 2471 break 2472 elif test -f "$ac_dir/install.sh"; then 2473 ac_aux_dir=$ac_dir 2474 ac_install_sh="$ac_aux_dir/install.sh -c" 2475 break 2476 elif test -f "$ac_dir/shtool"; then 2477 ac_aux_dir=$ac_dir 2478 ac_install_sh="$ac_aux_dir/shtool install -c" 2479 break 2480 fi 2481done 2482if test -z "$ac_aux_dir"; then 2483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2484fi 2485 2486# These three variables are undocumented and unsupported, 2487# and are intended to be withdrawn in a future Autoconf release. 2488# They can cause serious problems if a builder's source tree is in a directory 2489# whose full name contains unusual characters. 2490ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2491ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2492ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2493 2494 2495 2496 2497ac_config_headers="$ac_config_headers config.h" 2498 2499am__api_version='1.11' 2500 2501# Find a good install program. We prefer a C program (faster), 2502# so one script is as good as another. But avoid the broken or 2503# incompatible versions: 2504# SysV /etc/install, /usr/sbin/install 2505# SunOS /usr/etc/install 2506# IRIX /sbin/install 2507# AIX /bin/install 2508# AmigaOS /C/install, which installs bootblocks on floppy discs 2509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2510# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2512# OS/2's system install, which has a completely different semantic 2513# ./install, which can be erroneously created by make from ./install.sh. 2514# Reject install programs that cannot install multiple files. 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2516$as_echo_n "checking for a BSD-compatible install... " >&6; } 2517if test -z "$INSTALL"; then 2518if test "${ac_cv_path_install+set}" = set; then : 2519 $as_echo_n "(cached) " >&6 2520else 2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 # Account for people who put trailing slashes in PATH elements. 2527case $as_dir/ in #(( 2528 ./ | .// | /[cC]/* | \ 2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2531 /usr/ucb/* ) ;; 2532 *) 2533 # OSF1 and SCO ODT 3.0 have their own names for install. 2534 # Don't use installbsd from OSF since it installs stuff as root 2535 # by default. 2536 for ac_prog in ginstall scoinst install; do 2537 for ac_exec_ext in '' $ac_executable_extensions; do 2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2539 if test $ac_prog = install && 2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2541 # AIX install. It has an incompatible calling convention. 2542 : 2543 elif test $ac_prog = install && 2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2545 # program-specific install script used by HP pwplus--don't use. 2546 : 2547 else 2548 rm -rf conftest.one conftest.two conftest.dir 2549 echo one > conftest.one 2550 echo two > conftest.two 2551 mkdir conftest.dir 2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2553 test -s conftest.one && test -s conftest.two && 2554 test -s conftest.dir/conftest.one && 2555 test -s conftest.dir/conftest.two 2556 then 2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2558 break 3 2559 fi 2560 fi 2561 fi 2562 done 2563 done 2564 ;; 2565esac 2566 2567 done 2568IFS=$as_save_IFS 2569 2570rm -rf conftest.one conftest.two conftest.dir 2571 2572fi 2573 if test "${ac_cv_path_install+set}" = set; then 2574 INSTALL=$ac_cv_path_install 2575 else 2576 # As a last resort, use the slow shell script. Don't cache a 2577 # value for INSTALL within a source directory, because that will 2578 # break other packages using the cache if that directory is 2579 # removed, or if the value is a relative name. 2580 INSTALL=$ac_install_sh 2581 fi 2582fi 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2584$as_echo "$INSTALL" >&6; } 2585 2586# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2587# It thinks the first close brace ends the variable substitution. 2588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2589 2590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2591 2592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2593 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2595$as_echo_n "checking whether build environment is sane... " >&6; } 2596# Just in case 2597sleep 1 2598echo timestamp > conftest.file 2599# Reject unsafe characters in $srcdir or the absolute working directory 2600# name. Accept space and tab only in the latter. 2601am_lf=' 2602' 2603case `pwd` in 2604 *[\\\"\#\$\&\'\`$am_lf]*) 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2606esac 2607case $srcdir in 2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2609 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2610esac 2611 2612# Do `set' in a subshell so we don't clobber the current shell's 2613# arguments. Must try -L first in case configure is actually a 2614# symlink; some systems play weird games with the mod time of symlinks 2615# (eg FreeBSD returns the mod time of the symlink's containing 2616# directory). 2617if ( 2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2619 if test "$*" = "X"; then 2620 # -L didn't work. 2621 set X `ls -t "$srcdir/configure" conftest.file` 2622 fi 2623 rm -f conftest.file 2624 if test "$*" != "X $srcdir/configure conftest.file" \ 2625 && test "$*" != "X conftest.file $srcdir/configure"; then 2626 2627 # If neither matched, then we have a broken ls. This can happen 2628 # if, for instance, CONFIG_SHELL is bash and it inherits a 2629 # broken ls alias from the environment. This has actually 2630 # happened. Such a system could not be considered "sane". 2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2632alias in your environment" "$LINENO" 5 2633 fi 2634 2635 test "$2" = conftest.file 2636 ) 2637then 2638 # Ok. 2639 : 2640else 2641 as_fn_error $? "newly created file is older than distributed files! 2642Check your system clock" "$LINENO" 5 2643fi 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2645$as_echo "yes" >&6; } 2646test "$program_prefix" != NONE && 2647 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2648# Use a double $ so make ignores it. 2649test "$program_suffix" != NONE && 2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2651# Double any \ or $. 2652# By default was `s,x,x', remove it if useless. 2653ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2654program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2655 2656# expand $ac_aux_dir to an absolute path 2657am_aux_dir=`cd $ac_aux_dir && pwd` 2658 2659if test x"${MISSING+set}" != xset; then 2660 case $am_aux_dir in 2661 *\ * | *\ *) 2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2663 *) 2664 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2665 esac 2666fi 2667# Use eval to expand $SHELL 2668if eval "$MISSING --run true"; then 2669 am_missing_run="$MISSING --run " 2670else 2671 am_missing_run= 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2673$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2674fi 2675 2676if test x"${install_sh}" != xset; then 2677 case $am_aux_dir in 2678 *\ * | *\ *) 2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2680 *) 2681 install_sh="\${SHELL} $am_aux_dir/install-sh" 2682 esac 2683fi 2684 2685# Installed binaries are usually stripped using `strip' when the user 2686# run `make install-strip'. However `strip' might not be the right 2687# tool to use in cross-compilation environments, therefore Automake 2688# will honor the `STRIP' environment variable to overrule this program. 2689if test "$cross_compiling" != no; then 2690 if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}strip; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if test "${ac_cv_prog_STRIP+set}" = set; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$STRIP"; then 2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718STRIP=$ac_cv_prog_STRIP 2719if test -n "$STRIP"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2721$as_echo "$STRIP" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$ac_cv_prog_STRIP"; then 2730 ac_ct_STRIP=$STRIP 2731 # Extract the first word of "strip", so it can be a program name with args. 2732set dummy strip; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$ac_ct_STRIP"; then 2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 for ac_exec_ext in '' $ac_executable_extensions; do 2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2748 ac_cv_prog_ac_ct_STRIP="strip" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756fi 2757fi 2758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2759if test -n "$ac_ct_STRIP"; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2761$as_echo "$ac_ct_STRIP" >&6; } 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765fi 2766 2767 if test "x$ac_ct_STRIP" = x; then 2768 STRIP=":" 2769 else 2770 case $cross_compiling:$ac_tool_warned in 2771yes:) 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2774ac_tool_warned=yes ;; 2775esac 2776 STRIP=$ac_ct_STRIP 2777 fi 2778else 2779 STRIP="$ac_cv_prog_STRIP" 2780fi 2781 2782fi 2783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2784 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2787if test -z "$MKDIR_P"; then 2788 if test "${ac_cv_path_mkdir+set}" = set; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_prog in mkdir gmkdir; do 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2800 'mkdir (GNU coreutils) '* | \ 2801 'mkdir (coreutils) '* | \ 2802 'mkdir (fileutils) '4.1*) 2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2804 break 3;; 2805 esac 2806 done 2807 done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812 2813 test -d ./--version && rmdir ./--version 2814 if test "${ac_cv_path_mkdir+set}" = set; then 2815 MKDIR_P="$ac_cv_path_mkdir -p" 2816 else 2817 # As a last resort, use the slow shell script. Don't cache a 2818 # value for MKDIR_P within a source directory, because that will 2819 # break other packages using the cache if that directory is 2820 # removed, or if the value is a relative name. 2821 MKDIR_P="$ac_install_sh -d" 2822 fi 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2825$as_echo "$MKDIR_P" >&6; } 2826 2827mkdir_p="$MKDIR_P" 2828case $mkdir_p in 2829 [\\/$]* | ?:[\\/]*) ;; 2830 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2831esac 2832 2833for ac_prog in gawk mawk nawk awk 2834do 2835 # Extract the first word of "$ac_prog", so it can be a program name with args. 2836set dummy $ac_prog; ac_word=$2 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if test "${ac_cv_prog_AWK+set}" = set; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$AWK"; then 2843 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2852 ac_cv_prog_AWK="$ac_prog" 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857 done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862AWK=$ac_cv_prog_AWK 2863if test -n "$AWK"; then 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2865$as_echo "$AWK" >&6; } 2866else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 2872 test -n "$AWK" && break 2873done 2874 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2876$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2877set x ${MAKE-make} 2878ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2879if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 cat >conftest.make <<\_ACEOF 2883SHELL = /bin/sh 2884all: 2885 @echo '@@@%%%=$(MAKE)=@@@%%%' 2886_ACEOF 2887# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2888case `${MAKE-make} -f conftest.make 2>/dev/null` in 2889 *@@@%%%=?*=@@@%%%*) 2890 eval ac_cv_prog_make_${ac_make}_set=yes;; 2891 *) 2892 eval ac_cv_prog_make_${ac_make}_set=no;; 2893esac 2894rm -f conftest.make 2895fi 2896if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2898$as_echo "yes" >&6; } 2899 SET_MAKE= 2900else 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902$as_echo "no" >&6; } 2903 SET_MAKE="MAKE=${MAKE-make}" 2904fi 2905 2906rm -rf .tst 2>/dev/null 2907mkdir .tst 2>/dev/null 2908if test -d .tst; then 2909 am__leading_dot=. 2910else 2911 am__leading_dot=_ 2912fi 2913rmdir .tst 2>/dev/null 2914 2915if test "`cd $srcdir && pwd`" != "`pwd`"; then 2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2917 # is not polluted with repeated "-I." 2918 am__isrc=' -I$(srcdir)' 2919 # test to see if srcdir already configured 2920 if test -f $srcdir/config.status; then 2921 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2922 fi 2923fi 2924 2925# test whether we have cygpath 2926if test -z "$CYGPATH_W"; then 2927 if (cygpath --version) >/dev/null 2>/dev/null; then 2928 CYGPATH_W='cygpath -w' 2929 else 2930 CYGPATH_W=echo 2931 fi 2932fi 2933 2934 2935# Define the identity of the package. 2936 PACKAGE='api' 2937 VERSION='0.5.0' 2938 2939 2940# Some tools Automake needs. 2941 2942ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2943 2944 2945AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2946 2947 2948AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2949 2950 2951AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2952 2953 2954MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2955 2956# We need awk for the "check" target. The system "awk" is bad on 2957# some platforms. 2958# Always define AMTAR for backward compatibility. 2959 2960AMTAR=${AMTAR-"${am_missing_run}tar"} 2961 2962 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 2964$as_echo_n "checking how to create a ustar tar archive... " >&6; } 2965# Loop over all known methods to create a tar archive until one works. 2966_am_tools='gnutar plaintar pax cpio none' 2967_am_tools=${am_cv_prog_tar_ustar-$_am_tools} 2968# Do not fold the above two line into one, because Tru64 sh and 2969# Solaris sh will not grok spaces in the rhs of `-'. 2970for _am_tool in $_am_tools 2971do 2972 case $_am_tool in 2973 gnutar) 2974 for _am_tar in tar gnutar gtar; 2975 do 2976 { echo "$as_me:$LINENO: $_am_tar --version" >&5 2977 ($_am_tar --version) >&5 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } && break 2981 done 2982 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 2983 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 2984 am__untar="$_am_tar -xf -" 2985 ;; 2986 plaintar) 2987 # Must skip GNU tar: if it does not support --format= it doesn't create 2988 # ustar tarball either. 2989 (tar --version) >/dev/null 2>&1 && continue 2990 am__tar='tar chf - "$$tardir"' 2991 am__tar_='tar chf - "$tardir"' 2992 am__untar='tar xf -' 2993 ;; 2994 pax) 2995 am__tar='pax -L -x ustar -w "$$tardir"' 2996 am__tar_='pax -L -x ustar -w "$tardir"' 2997 am__untar='pax -r' 2998 ;; 2999 cpio) 3000 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3001 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3002 am__untar='cpio -i -H ustar -d' 3003 ;; 3004 none) 3005 am__tar=false 3006 am__tar_=false 3007 am__untar=false 3008 ;; 3009 esac 3010 3011 # If the value was cached, stop now. We just wanted to have am__tar 3012 # and am__untar set. 3013 test -n "${am_cv_prog_tar_ustar}" && break 3014 3015 # tar/untar a dummy directory, and stop if the command works 3016 rm -rf conftest.dir 3017 mkdir conftest.dir 3018 echo GrepMe > conftest.dir/file 3019 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3020 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3021 ac_status=$? 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } 3024 rm -rf conftest.dir 3025 if test -s conftest.tar; then 3026 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3027 ($am__untar <conftest.tar) >&5 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } 3031 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3032 fi 3033done 3034rm -rf conftest.dir 3035 3036if test "${am_cv_prog_tar_ustar+set}" = set; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 am_cv_prog_tar_ustar=$_am_tool 3040fi 3041 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3043$as_echo "$am_cv_prog_tar_ustar" >&6; } 3044 3045 3046 3047 3048 3049 3050APIVERSION=2:0:0 3051 3052# Pull in the checks for the build tools. 3053 3054# Make sure we can run config.sub. 3055$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3056 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3057 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3059$as_echo_n "checking build system type... " >&6; } 3060if test "${ac_cv_build+set}" = set; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 ac_build_alias=$build_alias 3064test "x$ac_build_alias" = x && 3065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3066test "x$ac_build_alias" = x && 3067 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3068ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3070 3071fi 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3073$as_echo "$ac_cv_build" >&6; } 3074case $ac_cv_build in 3075*-*-*) ;; 3076*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 3077esac 3078build=$ac_cv_build 3079ac_save_IFS=$IFS; IFS='-' 3080set x $ac_cv_build 3081shift 3082build_cpu=$1 3083build_vendor=$2 3084shift; shift 3085# Remember, the first character of IFS is used to create $*, 3086# except with old shells: 3087build_os=$* 3088IFS=$ac_save_IFS 3089case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3090 3091 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3093$as_echo_n "checking host system type... " >&6; } 3094if test "${ac_cv_host+set}" = set; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test "x$host_alias" = x; then 3098 ac_cv_host=$ac_cv_build 3099else 3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3101 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3102fi 3103 3104fi 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3106$as_echo "$ac_cv_host" >&6; } 3107case $ac_cv_host in 3108*-*-*) ;; 3109*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 3110esac 3111host=$ac_cv_host 3112ac_save_IFS=$IFS; IFS='-' 3113set x $ac_cv_host 3114shift 3115host_cpu=$1 3116host_vendor=$2 3117shift; shift 3118# Remember, the first character of IFS is used to create $*, 3119# except with old shells: 3120host_os=$* 3121IFS=$ac_save_IFS 3122case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3123 3124 3125 3126ac_ext=c 3127ac_cpp='$CPP $CPPFLAGS' 3128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3130ac_compiler_gnu=$ac_cv_c_compiler_gnu 3131if test -n "$ac_tool_prefix"; then 3132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3133set dummy ${ac_tool_prefix}gcc; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if test "${ac_cv_prog_CC+set}" = set; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$CC"; then 3140 ac_cv_prog_CC="$CC" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3149 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159CC=$ac_cv_prog_CC 3160if test -n "$CC"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3162$as_echo "$CC" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169fi 3170if test -z "$ac_cv_prog_CC"; then 3171 ac_ct_CC=$CC 3172 # Extract the first word of "gcc", so it can be a program name with args. 3173set dummy gcc; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$ac_ct_CC"; then 3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3189 ac_cv_prog_ac_ct_CC="gcc" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199ac_ct_CC=$ac_cv_prog_ac_ct_CC 3200if test -n "$ac_ct_CC"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3202$as_echo "$ac_ct_CC" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 if test "x$ac_ct_CC" = x; then 3209 CC="" 3210 else 3211 case $cross_compiling:$ac_tool_warned in 3212yes:) 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3215ac_tool_warned=yes ;; 3216esac 3217 CC=$ac_ct_CC 3218 fi 3219else 3220 CC="$ac_cv_prog_CC" 3221fi 3222 3223if test -z "$CC"; then 3224 if test -n "$ac_tool_prefix"; then 3225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3226set dummy ${ac_tool_prefix}cc; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if test "${ac_cv_prog_CC+set}" = set; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$CC"; then 3233 ac_cv_prog_CC="$CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3242 ac_cv_prog_CC="${ac_tool_prefix}cc" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252CC=$ac_cv_prog_CC 3253if test -n "$CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255$as_echo "$CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262 fi 3263fi 3264if test -z "$CC"; then 3265 # Extract the first word of "cc", so it can be a program name with args. 3266set dummy cc; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if test "${ac_cv_prog_CC+set}" = set; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$CC"; then 3273 ac_cv_prog_CC="$CC" # Let the user override the test. 3274else 3275 ac_prog_rejected=no 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH 3278do 3279 IFS=$as_save_IFS 3280 test -z "$as_dir" && as_dir=. 3281 for ac_exec_ext in '' $ac_executable_extensions; do 3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3284 ac_prog_rejected=yes 3285 continue 3286 fi 3287 ac_cv_prog_CC="cc" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295if test $ac_prog_rejected = yes; then 3296 # We found a bogon in the path, so make sure we never use it. 3297 set dummy $ac_cv_prog_CC 3298 shift 3299 if test $# != 0; then 3300 # We chose a different compiler from the bogus one. 3301 # However, it has the same basename, so the bogon will be chosen 3302 # first if we set CC to just the basename; use the full file name. 3303 shift 3304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3305 fi 3306fi 3307fi 3308fi 3309CC=$ac_cv_prog_CC 3310if test -n "$CC"; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3312$as_echo "$CC" >&6; } 3313else 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3315$as_echo "no" >&6; } 3316fi 3317 3318 3319fi 3320if test -z "$CC"; then 3321 if test -n "$ac_tool_prefix"; then 3322 for ac_prog in cl.exe 3323 do 3324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3325set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327$as_echo_n "checking for $ac_word... " >&6; } 3328if test "${ac_cv_prog_CC+set}" = set; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 if test -n "$CC"; then 3332 ac_cv_prog_CC="$CC" # Let the user override the test. 3333else 3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335for as_dir in $PATH 3336do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3343 break 2 3344 fi 3345done 3346 done 3347IFS=$as_save_IFS 3348 3349fi 3350fi 3351CC=$ac_cv_prog_CC 3352if test -n "$CC"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3354$as_echo "$CC" >&6; } 3355else 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357$as_echo "no" >&6; } 3358fi 3359 3360 3361 test -n "$CC" && break 3362 done 3363fi 3364if test -z "$CC"; then 3365 ac_ct_CC=$CC 3366 for ac_prog in cl.exe 3367do 3368 # Extract the first word of "$ac_prog", so it can be a program name with args. 3369set dummy $ac_prog; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 if test -n "$ac_ct_CC"; then 3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3377else 3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3379for as_dir in $PATH 3380do 3381 IFS=$as_save_IFS 3382 test -z "$as_dir" && as_dir=. 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3385 ac_cv_prog_ac_ct_CC="$ac_prog" 3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3387 break 2 3388 fi 3389done 3390 done 3391IFS=$as_save_IFS 3392 3393fi 3394fi 3395ac_ct_CC=$ac_cv_prog_ac_ct_CC 3396if test -n "$ac_ct_CC"; then 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3398$as_echo "$ac_ct_CC" >&6; } 3399else 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3401$as_echo "no" >&6; } 3402fi 3403 3404 3405 test -n "$ac_ct_CC" && break 3406done 3407 3408 if test "x$ac_ct_CC" = x; then 3409 CC="" 3410 else 3411 case $cross_compiling:$ac_tool_warned in 3412yes:) 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3415ac_tool_warned=yes ;; 3416esac 3417 CC=$ac_ct_CC 3418 fi 3419fi 3420 3421fi 3422 3423 3424test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3426as_fn_error $? "no acceptable C compiler found in \$PATH 3427See \`config.log' for more details" "$LINENO" 5 ; } 3428 3429# Provide some information about the compiler. 3430$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3431set X $ac_compile 3432ac_compiler=$2 3433for ac_option in --version -v -V -qversion; do 3434 { { ac_try="$ac_compiler $ac_option >&5" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3440$as_echo "$ac_try_echo"; } >&5 3441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3442 ac_status=$? 3443 if test -s conftest.err; then 3444 sed '10a\ 3445... rest of stderr output deleted ... 3446 10q' conftest.err >conftest.er1 3447 cat conftest.er1 >&5 3448 fi 3449 rm -f conftest.er1 conftest.err 3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3451 test $ac_status = 0; } 3452done 3453 3454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3455/* end confdefs.h. */ 3456 3457int 3458main () 3459{ 3460 3461 ; 3462 return 0; 3463} 3464_ACEOF 3465ac_clean_files_save=$ac_clean_files 3466ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3467# Try to create an executable without -o first, disregard a.out. 3468# It will help us diagnose broken compilers, and finding out an intuition 3469# of exeext. 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3471$as_echo_n "checking whether the C compiler works... " >&6; } 3472ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3473 3474# The possible output files: 3475ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3476 3477ac_rmfiles= 3478for ac_file in $ac_files 3479do 3480 case $ac_file in 3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3482 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3483 esac 3484done 3485rm -f $ac_rmfiles 3486 3487if { { ac_try="$ac_link_default" 3488case "(($ac_try" in 3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3490 *) ac_try_echo=$ac_try;; 3491esac 3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3493$as_echo "$ac_try_echo"; } >&5 3494 (eval "$ac_link_default") 2>&5 3495 ac_status=$? 3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3497 test $ac_status = 0; }; then : 3498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3499# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3500# in a Makefile. We should not override ac_cv_exeext if it was cached, 3501# so that the user can short-circuit this test for compilers unknown to 3502# Autoconf. 3503for ac_file in $ac_files '' 3504do 3505 test -f "$ac_file" || continue 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3508 ;; 3509 [ab].out ) 3510 # We found the default executable, but exeext='' is most 3511 # certainly right. 3512 break;; 3513 *.* ) 3514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3515 then :; else 3516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3517 fi 3518 # We set ac_cv_exeext here because the later test for it is not 3519 # safe: cross compilers may not add the suffix if given an `-o' 3520 # argument, so we may need to know it at that point already. 3521 # Even if this section looks crufty: it has the advantage of 3522 # actually working. 3523 break;; 3524 * ) 3525 break;; 3526 esac 3527done 3528test "$ac_cv_exeext" = no && ac_cv_exeext= 3529 3530else 3531 ac_file='' 3532fi 3533if test -z "$ac_file"; then : 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535$as_echo "no" >&6; } 3536$as_echo "$as_me: failed program was:" >&5 3537sed 's/^/| /' conftest.$ac_ext >&5 3538 3539{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3541as_fn_error 77 "C compiler cannot create executables 3542See \`config.log' for more details" "$LINENO" 5 ; } 3543else 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3545$as_echo "yes" >&6; } 3546fi 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3548$as_echo_n "checking for C compiler default output file name... " >&6; } 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3550$as_echo "$ac_file" >&6; } 3551ac_exeext=$ac_cv_exeext 3552 3553rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3554ac_clean_files=$ac_clean_files_save 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3556$as_echo_n "checking for suffix of executables... " >&6; } 3557if { { ac_try="$ac_link" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563$as_echo "$ac_try_echo"; } >&5 3564 (eval "$ac_link") 2>&5 3565 ac_status=$? 3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3567 test $ac_status = 0; }; then : 3568 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3569# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3570# work properly (i.e., refer to `conftest.exe'), while it won't with 3571# `rm'. 3572for ac_file in conftest.exe conftest conftest.*; do 3573 test -f "$ac_file" || continue 3574 case $ac_file in 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3577 break;; 3578 * ) break;; 3579 esac 3580done 3581else 3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3585See \`config.log' for more details" "$LINENO" 5 ; } 3586fi 3587rm -f conftest conftest$ac_cv_exeext 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3589$as_echo "$ac_cv_exeext" >&6; } 3590 3591rm -f conftest.$ac_ext 3592EXEEXT=$ac_cv_exeext 3593ac_exeext=$EXEEXT 3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596#include <stdio.h> 3597int 3598main () 3599{ 3600FILE *f = fopen ("conftest.out", "w"); 3601 return ferror (f) || fclose (f) != 0; 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607ac_clean_files="$ac_clean_files conftest.out" 3608# Check that the compiler produces executables we can run. If not, either 3609# the compiler is broken, or we cross compile. 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3611$as_echo_n "checking whether we are cross compiling... " >&6; } 3612if test "$cross_compiling" != yes; then 3613 { { ac_try="$ac_link" 3614case "(($ac_try" in 3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3616 *) ac_try_echo=$ac_try;; 3617esac 3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3619$as_echo "$ac_try_echo"; } >&5 3620 (eval "$ac_link") 2>&5 3621 ac_status=$? 3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3623 test $ac_status = 0; } 3624 if { ac_try='./conftest$ac_cv_exeext' 3625 { { case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628esac 3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3630$as_echo "$ac_try_echo"; } >&5 3631 (eval "$ac_try") 2>&5 3632 ac_status=$? 3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 test $ac_status = 0; }; }; then 3635 cross_compiling=no 3636 else 3637 if test "$cross_compiling" = maybe; then 3638 cross_compiling=yes 3639 else 3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3642as_fn_error $? "cannot run C compiled programs. 3643If you meant to cross compile, use \`--host'. 3644See \`config.log' for more details" "$LINENO" 5 ; } 3645 fi 3646 fi 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3649$as_echo "$cross_compiling" >&6; } 3650 3651rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3652ac_clean_files=$ac_clean_files_save 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3654$as_echo_n "checking for suffix of object files... " >&6; } 3655if test "${ac_cv_objext+set}" = set; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660 3661int 3662main () 3663{ 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669rm -f conftest.o conftest.obj 3670if { { ac_try="$ac_compile" 3671case "(($ac_try" in 3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3673 *) ac_try_echo=$ac_try;; 3674esac 3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3676$as_echo "$ac_try_echo"; } >&5 3677 (eval "$ac_compile") 2>&5 3678 ac_status=$? 3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3680 test $ac_status = 0; }; then : 3681 for ac_file in conftest.o conftest.obj conftest.*; do 3682 test -f "$ac_file" || continue; 3683 case $ac_file in 3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3686 break;; 3687 esac 3688done 3689else 3690 $as_echo "$as_me: failed program was:" >&5 3691sed 's/^/| /' conftest.$ac_ext >&5 3692 3693{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3695as_fn_error $? "cannot compute suffix of object files: cannot compile 3696See \`config.log' for more details" "$LINENO" 5 ; } 3697fi 3698rm -f conftest.$ac_cv_objext conftest.$ac_ext 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3701$as_echo "$ac_cv_objext" >&6; } 3702OBJEXT=$ac_cv_objext 3703ac_objext=$OBJEXT 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3705$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3706if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3707 $as_echo_n "(cached) " >&6 3708else 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710/* end confdefs.h. */ 3711 3712int 3713main () 3714{ 3715#ifndef __GNUC__ 3716 choke me 3717#endif 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_compiler_gnu=yes 3725else 3726 ac_compiler_gnu=no 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729ac_cv_c_compiler_gnu=$ac_compiler_gnu 3730 3731fi 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3733$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3734if test $ac_compiler_gnu = yes; then 3735 GCC=yes 3736else 3737 GCC= 3738fi 3739ac_test_CFLAGS=${CFLAGS+set} 3740ac_save_CFLAGS=$CFLAGS 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3742$as_echo_n "checking whether $CC accepts -g... " >&6; } 3743if test "${ac_cv_prog_cc_g+set}" = set; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 ac_save_c_werror_flag=$ac_c_werror_flag 3747 ac_c_werror_flag=yes 3748 ac_cv_prog_cc_g=no 3749 CFLAGS="-g" 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751/* end confdefs.h. */ 3752 3753int 3754main () 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_cv_prog_cc_g=yes 3763else 3764 CFLAGS="" 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776if ac_fn_c_try_compile "$LINENO"; then : 3777 3778else 3779 ac_c_werror_flag=$ac_save_c_werror_flag 3780 CFLAGS="-g" 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784int 3785main () 3786{ 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO"; then : 3793 ac_cv_prog_cc_g=yes 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796fi 3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800 ac_c_werror_flag=$ac_save_c_werror_flag 3801fi 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3803$as_echo "$ac_cv_prog_cc_g" >&6; } 3804if test "$ac_test_CFLAGS" = set; then 3805 CFLAGS=$ac_save_CFLAGS 3806elif test $ac_cv_prog_cc_g = yes; then 3807 if test "$GCC" = yes; then 3808 CFLAGS="-g -O2" 3809 else 3810 CFLAGS="-g" 3811 fi 3812else 3813 if test "$GCC" = yes; then 3814 CFLAGS="-O2" 3815 else 3816 CFLAGS= 3817 fi 3818fi 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3820$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3821if test "${ac_cv_prog_cc_c89+set}" = set; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 ac_cv_prog_cc_c89=no 3825ac_save_CC=$CC 3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828#include <stdarg.h> 3829#include <stdio.h> 3830#include <sys/types.h> 3831#include <sys/stat.h> 3832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3833struct buf { int x; }; 3834FILE * (*rcsopen) (struct buf *, struct stat *, int); 3835static char *e (p, i) 3836 char **p; 3837 int i; 3838{ 3839 return p[i]; 3840} 3841static char *f (char * (*g) (char **, int), char **p, ...) 3842{ 3843 char *s; 3844 va_list v; 3845 va_start (v,p); 3846 s = g (p, va_arg (v,int)); 3847 va_end (v); 3848 return s; 3849} 3850 3851/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3852 function prototypes and stuff, but not '\xHH' hex character constants. 3853 These don't provoke an error unfortunately, instead are silently treated 3854 as 'x'. The following induces an error, until -std is added to get 3855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3856 array size at least. It's necessary to write '\x00'==0 to get something 3857 that's true only with -std. */ 3858int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3859 3860/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3861 inside strings and character constants. */ 3862#define FOO(x) 'x' 3863int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3864 3865int test (int i, double x); 3866struct s1 {int (*f) (int a);}; 3867struct s2 {int (*f) (double a);}; 3868int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3869int argc; 3870char **argv; 3871int 3872main () 3873{ 3874return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3881do 3882 CC="$ac_save_CC $ac_arg" 3883 if ac_fn_c_try_compile "$LINENO"; then : 3884 ac_cv_prog_cc_c89=$ac_arg 3885fi 3886rm -f core conftest.err conftest.$ac_objext 3887 test "x$ac_cv_prog_cc_c89" != "xno" && break 3888done 3889rm -f conftest.$ac_ext 3890CC=$ac_save_CC 3891 3892fi 3893# AC_CACHE_VAL 3894case "x$ac_cv_prog_cc_c89" in 3895 x) 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3897$as_echo "none needed" >&6; } ;; 3898 xno) 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3900$as_echo "unsupported" >&6; } ;; 3901 *) 3902 CC="$CC $ac_cv_prog_cc_c89" 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3904$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3905esac 3906if test "x$ac_cv_prog_cc_c89" != xno; then : 3907 3908fi 3909 3910ac_ext=c 3911ac_cpp='$CPP $CPPFLAGS' 3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914ac_compiler_gnu=$ac_cv_c_compiler_gnu 3915DEPDIR="${am__leading_dot}deps" 3916 3917ac_config_commands="$ac_config_commands depfiles" 3918 3919 3920am_make=${MAKE-make} 3921cat > confinc << 'END' 3922am__doit: 3923 @echo this is the am__doit target 3924.PHONY: am__doit 3925END 3926# If we don't find an include directive, just comment out the code. 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3928$as_echo_n "checking for style of include used by $am_make... " >&6; } 3929am__include="#" 3930am__quote= 3931_am_result=none 3932# First try GNU make style include. 3933echo "include confinc" > confmf 3934# Ignore all kinds of additional output from `make'. 3935case `$am_make -s -f confmf 2> /dev/null` in #( 3936*the\ am__doit\ target*) 3937 am__include=include 3938 am__quote= 3939 _am_result=GNU 3940 ;; 3941esac 3942# Now try BSD make style include. 3943if test "$am__include" = "#"; then 3944 echo '.include "confinc"' > confmf 3945 case `$am_make -s -f confmf 2> /dev/null` in #( 3946 *the\ am__doit\ target*) 3947 am__include=.include 3948 am__quote="\"" 3949 _am_result=BSD 3950 ;; 3951 esac 3952fi 3953 3954 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3956$as_echo "$_am_result" >&6; } 3957rm -f confinc confmf 3958 3959# Check whether --enable-dependency-tracking was given. 3960if test "${enable_dependency_tracking+set}" = set; then : 3961 enableval=$enable_dependency_tracking; 3962fi 3963 3964if test "x$enable_dependency_tracking" != xno; then 3965 am_depcomp="$ac_aux_dir/depcomp" 3966 AMDEPBACKSLASH='\' 3967fi 3968 if test "x$enable_dependency_tracking" != xno; then 3969 AMDEP_TRUE= 3970 AMDEP_FALSE='#' 3971else 3972 AMDEP_TRUE='#' 3973 AMDEP_FALSE= 3974fi 3975 3976 3977 3978depcc="$CC" am_compiler_list= 3979 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3981$as_echo_n "checking dependency style of $depcc... " >&6; } 3982if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3986 # We make a subdir and do the tests there. Otherwise we can end up 3987 # making bogus files that we don't know about and never remove. For 3988 # instance it was reported that on HP-UX the gcc test will end up 3989 # making a dummy file named `D' -- because `-MD' means `put the output 3990 # in D'. 3991 mkdir conftest.dir 3992 # Copy depcomp to subdir because otherwise we won't find it if we're 3993 # using a relative directory. 3994 cp "$am_depcomp" conftest.dir 3995 cd conftest.dir 3996 # We will build objects and dependencies in a subdirectory because 3997 # it helps to detect inapplicable dependency modes. For instance 3998 # both Tru64's cc and ICC support -MD to output dependencies as a 3999 # side effect of compilation, but ICC will put the dependencies in 4000 # the current directory while Tru64 will put them in the object 4001 # directory. 4002 mkdir sub 4003 4004 am_cv_CC_dependencies_compiler_type=none 4005 if test "$am_compiler_list" = ""; then 4006 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4007 fi 4008 am__universal=false 4009 case " $depcc " in #( 4010 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4011 esac 4012 4013 for depmode in $am_compiler_list; do 4014 # Setup a source with many dependencies, because some compilers 4015 # like to wrap large dependency lists on column 80 (with \), and 4016 # we should not choose a depcomp mode which is confused by this. 4017 # 4018 # We need to recreate these files for each test, as the compiler may 4019 # overwrite some of them when testing with obscure command lines. 4020 # This happens at least with the AIX C compiler. 4021 : > sub/conftest.c 4022 for i in 1 2 3 4 5 6; do 4023 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4024 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4025 # Solaris 8's {/usr,}/bin/sh. 4026 touch sub/conftst$i.h 4027 done 4028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4029 4030 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4031 # mode. It turns out that the SunPro C++ compiler does not properly 4032 # handle `-M -o', and we need to detect this. Also, some Intel 4033 # versions had trouble with output in subdirs 4034 am__obj=sub/conftest.${OBJEXT-o} 4035 am__minus_obj="-o $am__obj" 4036 case $depmode in 4037 gcc) 4038 # This depmode causes a compiler race in universal mode. 4039 test "$am__universal" = false || continue 4040 ;; 4041 nosideeffect) 4042 # after this tag, mechanisms are not by side-effect, so they'll 4043 # only be used when explicitly requested 4044 if test "x$enable_dependency_tracking" = xyes; then 4045 continue 4046 else 4047 break 4048 fi 4049 ;; 4050 msvisualcpp | msvcmsys) 4051 # This compiler won't grok `-c -o', but also, the minuso test has 4052 # not run yet. These depmodes are late enough in the game, and 4053 # so weak that their functioning should not be impacted. 4054 am__obj=conftest.${OBJEXT-o} 4055 am__minus_obj= 4056 ;; 4057 none) break ;; 4058 esac 4059 if depmode=$depmode \ 4060 source=sub/conftest.c object=$am__obj \ 4061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4062 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4063 >/dev/null 2>conftest.err && 4064 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4066 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4068 # icc doesn't choke on unknown options, it will just issue warnings 4069 # or remarks (even with ). So we grep stderr for any message 4070 # that says an option was ignored or not supported. 4071 # When given -MP, icc 7.0 and 7.1 complain thusly: 4072 # icc: Command line warning: ignoring option '-M'; no argument required 4073 # The diagnosis changed in icc 8.0: 4074 # icc: Command line remark: option '-MP' not supported 4075 if (grep 'ignoring option' conftest.err || 4076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4077 am_cv_CC_dependencies_compiler_type=$depmode 4078 break 4079 fi 4080 fi 4081 done 4082 4083 cd .. 4084 rm -rf conftest.dir 4085else 4086 am_cv_CC_dependencies_compiler_type=none 4087fi 4088 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4091$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4092CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4093 4094 if 4095 test "x$enable_dependency_tracking" != xno \ 4096 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4097 am__fastdepCC_TRUE= 4098 am__fastdepCC_FALSE='#' 4099else 4100 am__fastdepCC_TRUE='#' 4101 am__fastdepCC_FALSE= 4102fi 4103 4104 4105 4106case `pwd` in 4107 *\ * | *\ *) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4109$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4110esac 4111 4112 4113 4114macro_version='2.2.6b' 4115macro_revision='1.3017' 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129ltmain="$ac_aux_dir/ltmain.sh" 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4132$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4133if test "${ac_cv_path_SED+set}" = set; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4137 for ac_i in 1 2 3 4 5 6 7; do 4138 ac_script="$ac_script$as_nl$ac_script" 4139 done 4140 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4141 { ac_script=; unset ac_script;} 4142 if test -z "$SED"; then 4143 ac_path_SED_found=false 4144 # Loop through the user's path and test for each of PROGNAME-LIST 4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_prog in sed gsed; do 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4153 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4154# Check for GNU ac_path_SED and select it if it is found. 4155 # Check for GNU $ac_path_SED 4156case `"$ac_path_SED" --version 2>&1` in 4157*GNU*) 4158 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4159*) 4160 ac_count=0 4161 $as_echo_n 0123456789 >"conftest.in" 4162 while : 4163 do 4164 cat "conftest.in" "conftest.in" >"conftest.tmp" 4165 mv "conftest.tmp" "conftest.in" 4166 cp "conftest.in" "conftest.nl" 4167 $as_echo '' >> "conftest.nl" 4168 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4170 as_fn_arith $ac_count + 1 && ac_count=$as_val 4171 if test $ac_count -gt ${ac_path_SED_max-0}; then 4172 # Best one so far, save it but keep looking for a better one 4173 ac_cv_path_SED="$ac_path_SED" 4174 ac_path_SED_max=$ac_count 4175 fi 4176 # 10*(2^10) chars as input seems more than enough 4177 test $ac_count -gt 10 && break 4178 done 4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4180esac 4181 4182 $ac_path_SED_found && break 3 4183 done 4184 done 4185 done 4186IFS=$as_save_IFS 4187 if test -z "$ac_cv_path_SED"; then 4188 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4189 fi 4190else 4191 ac_cv_path_SED=$SED 4192fi 4193 4194fi 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4196$as_echo "$ac_cv_path_SED" >&6; } 4197 SED="$ac_cv_path_SED" 4198 rm -f conftest.sed 4199 4200test -z "$SED" && SED=sed 4201Xsed="$SED -e 1s/^X//" 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4214$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4215if test "${ac_cv_path_GREP+set}" = set; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 if test -z "$GREP"; then 4219 ac_path_GREP_found=false 4220 # Loop through the user's path and test for each of PROGNAME-LIST 4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4223do 4224 IFS=$as_save_IFS 4225 test -z "$as_dir" && as_dir=. 4226 for ac_prog in grep ggrep; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4230# Check for GNU ac_path_GREP and select it if it is found. 4231 # Check for GNU $ac_path_GREP 4232case `"$ac_path_GREP" --version 2>&1` in 4233*GNU*) 4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4235*) 4236 ac_count=0 4237 $as_echo_n 0123456789 >"conftest.in" 4238 while : 4239 do 4240 cat "conftest.in" "conftest.in" >"conftest.tmp" 4241 mv "conftest.tmp" "conftest.in" 4242 cp "conftest.in" "conftest.nl" 4243 $as_echo 'GREP' >> "conftest.nl" 4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4246 as_fn_arith $ac_count + 1 && ac_count=$as_val 4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4248 # Best one so far, save it but keep looking for a better one 4249 ac_cv_path_GREP="$ac_path_GREP" 4250 ac_path_GREP_max=$ac_count 4251 fi 4252 # 10*(2^10) chars as input seems more than enough 4253 test $ac_count -gt 10 && break 4254 done 4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4256esac 4257 4258 $ac_path_GREP_found && break 3 4259 done 4260 done 4261 done 4262IFS=$as_save_IFS 4263 if test -z "$ac_cv_path_GREP"; then 4264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4265 fi 4266else 4267 ac_cv_path_GREP=$GREP 4268fi 4269 4270fi 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4272$as_echo "$ac_cv_path_GREP" >&6; } 4273 GREP="$ac_cv_path_GREP" 4274 4275 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4277$as_echo_n "checking for egrep... " >&6; } 4278if test "${ac_cv_path_EGREP+set}" = set; then : 4279 $as_echo_n "(cached) " >&6 4280else 4281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4282 then ac_cv_path_EGREP="$GREP -E" 4283 else 4284 if test -z "$EGREP"; then 4285 ac_path_EGREP_found=false 4286 # Loop through the user's path and test for each of PROGNAME-LIST 4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4289do 4290 IFS=$as_save_IFS 4291 test -z "$as_dir" && as_dir=. 4292 for ac_prog in egrep; do 4293 for ac_exec_ext in '' $ac_executable_extensions; do 4294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4296# Check for GNU ac_path_EGREP and select it if it is found. 4297 # Check for GNU $ac_path_EGREP 4298case `"$ac_path_EGREP" --version 2>&1` in 4299*GNU*) 4300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4301*) 4302 ac_count=0 4303 $as_echo_n 0123456789 >"conftest.in" 4304 while : 4305 do 4306 cat "conftest.in" "conftest.in" >"conftest.tmp" 4307 mv "conftest.tmp" "conftest.in" 4308 cp "conftest.in" "conftest.nl" 4309 $as_echo 'EGREP' >> "conftest.nl" 4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4312 as_fn_arith $ac_count + 1 && ac_count=$as_val 4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4314 # Best one so far, save it but keep looking for a better one 4315 ac_cv_path_EGREP="$ac_path_EGREP" 4316 ac_path_EGREP_max=$ac_count 4317 fi 4318 # 10*(2^10) chars as input seems more than enough 4319 test $ac_count -gt 10 && break 4320 done 4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4322esac 4323 4324 $ac_path_EGREP_found && break 3 4325 done 4326 done 4327 done 4328IFS=$as_save_IFS 4329 if test -z "$ac_cv_path_EGREP"; then 4330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4331 fi 4332else 4333 ac_cv_path_EGREP=$EGREP 4334fi 4335 4336 fi 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4339$as_echo "$ac_cv_path_EGREP" >&6; } 4340 EGREP="$ac_cv_path_EGREP" 4341 4342 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4344$as_echo_n "checking for fgrep... " >&6; } 4345if test "${ac_cv_path_FGREP+set}" = set; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4349 then ac_cv_path_FGREP="$GREP -F" 4350 else 4351 if test -z "$FGREP"; then 4352 ac_path_FGREP_found=false 4353 # Loop through the user's path and test for each of PROGNAME-LIST 4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4356do 4357 IFS=$as_save_IFS 4358 test -z "$as_dir" && as_dir=. 4359 for ac_prog in fgrep; do 4360 for ac_exec_ext in '' $ac_executable_extensions; do 4361 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4362 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4363# Check for GNU ac_path_FGREP and select it if it is found. 4364 # Check for GNU $ac_path_FGREP 4365case `"$ac_path_FGREP" --version 2>&1` in 4366*GNU*) 4367 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4368*) 4369 ac_count=0 4370 $as_echo_n 0123456789 >"conftest.in" 4371 while : 4372 do 4373 cat "conftest.in" "conftest.in" >"conftest.tmp" 4374 mv "conftest.tmp" "conftest.in" 4375 cp "conftest.in" "conftest.nl" 4376 $as_echo 'FGREP' >> "conftest.nl" 4377 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4379 as_fn_arith $ac_count + 1 && ac_count=$as_val 4380 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4381 # Best one so far, save it but keep looking for a better one 4382 ac_cv_path_FGREP="$ac_path_FGREP" 4383 ac_path_FGREP_max=$ac_count 4384 fi 4385 # 10*(2^10) chars as input seems more than enough 4386 test $ac_count -gt 10 && break 4387 done 4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4389esac 4390 4391 $ac_path_FGREP_found && break 3 4392 done 4393 done 4394 done 4395IFS=$as_save_IFS 4396 if test -z "$ac_cv_path_FGREP"; then 4397 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4398 fi 4399else 4400 ac_cv_path_FGREP=$FGREP 4401fi 4402 4403 fi 4404fi 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4406$as_echo "$ac_cv_path_FGREP" >&6; } 4407 FGREP="$ac_cv_path_FGREP" 4408 4409 4410test -z "$GREP" && GREP=grep 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430# Check whether --with-gnu-ld was given. 4431if test "${with_gnu_ld+set}" = set; then : 4432 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4433else 4434 with_gnu_ld=no 4435fi 4436 4437ac_prog=ld 4438if test "$GCC" = yes; then 4439 # Check if gcc -print-prog-name=ld gives a path. 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4441$as_echo_n "checking for ld used by $CC... " >&6; } 4442 case $host in 4443 *-*-mingw*) 4444 # gcc leaves a trailing carriage return which upsets mingw 4445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4446 *) 4447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4448 esac 4449 case $ac_prog in 4450 # Accept absolute paths. 4451 [\\/]* | ?:[\\/]*) 4452 re_direlt='/[^/][^/]*/\.\./' 4453 # Canonicalize the pathname of ld 4454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4457 done 4458 test -z "$LD" && LD="$ac_prog" 4459 ;; 4460 "") 4461 # If it fails, then pretend we aren't using GCC. 4462 ac_prog=ld 4463 ;; 4464 *) 4465 # If it is relative, then search for the first ld in PATH. 4466 with_gnu_ld=unknown 4467 ;; 4468 esac 4469elif test "$with_gnu_ld" = yes; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4471$as_echo_n "checking for GNU ld... " >&6; } 4472else 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4474$as_echo_n "checking for non-GNU ld... " >&6; } 4475fi 4476if test "${lt_cv_path_LD+set}" = set; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 if test -z "$LD"; then 4480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4481 for ac_dir in $PATH; do 4482 IFS="$lt_save_ifs" 4483 test -z "$ac_dir" && ac_dir=. 4484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4485 lt_cv_path_LD="$ac_dir/$ac_prog" 4486 # Check to see if the program is GNU ld. I'd rather use --version, 4487 # but apparently some variants of GNU ld only accept -v. 4488 # Break only if it was the GNU/non-GNU ld that we prefer. 4489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4490 *GNU* | *'with BFD'*) 4491 test "$with_gnu_ld" != no && break 4492 ;; 4493 *) 4494 test "$with_gnu_ld" != yes && break 4495 ;; 4496 esac 4497 fi 4498 done 4499 IFS="$lt_save_ifs" 4500else 4501 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4502fi 4503fi 4504 4505LD="$lt_cv_path_LD" 4506if test -n "$LD"; then 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4508$as_echo "$LD" >&6; } 4509else 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4511$as_echo "no" >&6; } 4512fi 4513test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4515$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4516if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4520case `$LD -v 2>&1 </dev/null` in 4521*GNU* | *'with BFD'*) 4522 lt_cv_prog_gnu_ld=yes 4523 ;; 4524*) 4525 lt_cv_prog_gnu_ld=no 4526 ;; 4527esac 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4530$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4531with_gnu_ld=$lt_cv_prog_gnu_ld 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4542$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4543if test "${lt_cv_path_NM+set}" = set; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$NM"; then 4547 # Let the user override the test. 4548 lt_cv_path_NM="$NM" 4549else 4550 lt_nm_to_check="${ac_tool_prefix}nm" 4551 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4552 lt_nm_to_check="$lt_nm_to_check nm" 4553 fi 4554 for lt_tmp_nm in $lt_nm_to_check; do 4555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4556 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4557 IFS="$lt_save_ifs" 4558 test -z "$ac_dir" && ac_dir=. 4559 tmp_nm="$ac_dir/$lt_tmp_nm" 4560 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4561 # Check to see if the nm accepts a BSD-compat flag. 4562 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4563 # nm: unknown option "B" ignored 4564 # Tru64's nm complains that /dev/null is an invalid object file 4565 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4566 */dev/null* | *'Invalid file or object type'*) 4567 lt_cv_path_NM="$tmp_nm -B" 4568 break 4569 ;; 4570 *) 4571 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4572 */dev/null*) 4573 lt_cv_path_NM="$tmp_nm -p" 4574 break 4575 ;; 4576 *) 4577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4578 continue # so that we can try to find one that supports BSD flags 4579 ;; 4580 esac 4581 ;; 4582 esac 4583 fi 4584 done 4585 IFS="$lt_save_ifs" 4586 done 4587 : ${lt_cv_path_NM=no} 4588fi 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4591$as_echo "$lt_cv_path_NM" >&6; } 4592if test "$lt_cv_path_NM" != "no"; then 4593 NM="$lt_cv_path_NM" 4594else 4595 # Didn't find any BSD compatible name lister, look for dumpbin. 4596 if test -n "$ac_tool_prefix"; then 4597 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4598 do 4599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4600set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4602$as_echo_n "checking for $ac_word... " >&6; } 4603if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 if test -n "$DUMPBIN"; then 4607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4608else 4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624fi 4625fi 4626DUMPBIN=$ac_cv_prog_DUMPBIN 4627if test -n "$DUMPBIN"; then 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4629$as_echo "$DUMPBIN" >&6; } 4630else 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632$as_echo "no" >&6; } 4633fi 4634 4635 4636 test -n "$DUMPBIN" && break 4637 done 4638fi 4639if test -z "$DUMPBIN"; then 4640 ac_ct_DUMPBIN=$DUMPBIN 4641 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4642do 4643 # Extract the first word of "$ac_prog", so it can be a program name with args. 4644set dummy $ac_prog; ac_word=$2 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4646$as_echo_n "checking for $ac_word... " >&6; } 4647if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -n "$ac_ct_DUMPBIN"; then 4651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4652else 4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_exec_ext in '' $ac_executable_extensions; do 4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4662 break 2 4663 fi 4664done 4665 done 4666IFS=$as_save_IFS 4667 4668fi 4669fi 4670ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4671if test -n "$ac_ct_DUMPBIN"; then 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4673$as_echo "$ac_ct_DUMPBIN" >&6; } 4674else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676$as_echo "no" >&6; } 4677fi 4678 4679 4680 test -n "$ac_ct_DUMPBIN" && break 4681done 4682 4683 if test "x$ac_ct_DUMPBIN" = x; then 4684 DUMPBIN=":" 4685 else 4686 case $cross_compiling:$ac_tool_warned in 4687yes:) 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4690ac_tool_warned=yes ;; 4691esac 4692 DUMPBIN=$ac_ct_DUMPBIN 4693 fi 4694fi 4695 4696 4697 if test "$DUMPBIN" != ":"; then 4698 NM="$DUMPBIN" 4699 fi 4700fi 4701test -z "$NM" && NM=nm 4702 4703 4704 4705 4706 4707 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4709$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4710if test "${lt_cv_nm_interface+set}" = set; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 lt_cv_nm_interface="BSD nm" 4714 echo "int some_variable = 0;" > conftest.$ac_ext 4715 (eval echo "\"\$as_me:4715: $ac_compile\"" >&5) 4716 (eval "$ac_compile" 2>conftest.err) 4717 cat conftest.err >&5 4718 (eval echo "\"\$as_me:4718: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4720 cat conftest.err >&5 4721 (eval echo "\"\$as_me:4721: output\"" >&5) 4722 cat conftest.out >&5 4723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4724 lt_cv_nm_interface="MS dumpbin" 4725 fi 4726 rm -f conftest* 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4729$as_echo "$lt_cv_nm_interface" >&6; } 4730 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4732$as_echo_n "checking whether ln -s works... " >&6; } 4733LN_S=$as_ln_s 4734if test "$LN_S" = "ln -s"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4736$as_echo "yes" >&6; } 4737else 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4739$as_echo "no, using $LN_S" >&6; } 4740fi 4741 4742# find the maximum length of command line arguments 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4744$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4745if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 i=0 4749 teststring="ABCD" 4750 4751 case $build_os in 4752 msdosdjgpp*) 4753 # On DJGPP, this test can blow up pretty badly due to problems in libc 4754 # (any single argument exceeding 2000 bytes causes a buffer overrun 4755 # during glob expansion). Even if it were fixed, the result of this 4756 # check would be larger than it should be. 4757 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4758 ;; 4759 4760 gnu*) 4761 # Under GNU Hurd, this test is not required because there is 4762 # no limit to the length of command line arguments. 4763 # Libtool will interpret -1 as no limit whatsoever 4764 lt_cv_sys_max_cmd_len=-1; 4765 ;; 4766 4767 cygwin* | mingw* | cegcc*) 4768 # On Win9x/ME, this test blows up -- it succeeds, but takes 4769 # about 5 minutes as the teststring grows exponentially. 4770 # Worse, since 9x/ME are not pre-emptively multitasking, 4771 # you end up with a "frozen" computer, even though with patience 4772 # the test eventually succeeds (with a max line length of 256k). 4773 # Instead, let's just punt: use the minimum linelength reported by 4774 # all of the supported platforms: 8192 (on NT/2K/XP). 4775 lt_cv_sys_max_cmd_len=8192; 4776 ;; 4777 4778 amigaos*) 4779 # On AmigaOS with pdksh, this test takes hours, literally. 4780 # So we just punt and use a minimum line length of 8192. 4781 lt_cv_sys_max_cmd_len=8192; 4782 ;; 4783 4784 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4785 # This has been around since 386BSD, at least. Likely further. 4786 if test -x /sbin/sysctl; then 4787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4788 elif test -x /usr/sbin/sysctl; then 4789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4790 else 4791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4792 fi 4793 # And add a safety zone 4794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4796 ;; 4797 4798 interix*) 4799 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4800 lt_cv_sys_max_cmd_len=196608 4801 ;; 4802 4803 osf*) 4804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4806 # nice to cause kernel panics so lets avoid the loop below. 4807 # First set a reasonable default. 4808 lt_cv_sys_max_cmd_len=16384 4809 # 4810 if test -x /sbin/sysconfig; then 4811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4812 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4813 esac 4814 fi 4815 ;; 4816 sco3.2v5*) 4817 lt_cv_sys_max_cmd_len=102400 4818 ;; 4819 sysv5* | sco5v6* | sysv4.2uw2*) 4820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4821 if test -n "$kargmax"; then 4822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4823 else 4824 lt_cv_sys_max_cmd_len=32768 4825 fi 4826 ;; 4827 *) 4828 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4829 if test -n "$lt_cv_sys_max_cmd_len"; then 4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4832 else 4833 # Make teststring a little bigger before we do anything with it. 4834 # a 1K string should be a reasonable start. 4835 for i in 1 2 3 4 5 6 7 8 ; do 4836 teststring=$teststring$teststring 4837 done 4838 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4839 # If test is not a shell built-in, we'll probably end up computing a 4840 # maximum length that is only half of the actual maximum length, but 4841 # we can't tell. 4842 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4843 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4844 test $i != 17 # 1/2 MB should be enough 4845 do 4846 i=`expr $i + 1` 4847 teststring=$teststring$teststring 4848 done 4849 # Only check the string length outside the loop. 4850 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4851 teststring= 4852 # Add a significant safety factor because C++ compilers can tack on 4853 # massive amounts of additional arguments before passing them to the 4854 # linker. It appears as though 1/2 is a usable value. 4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4856 fi 4857 ;; 4858 esac 4859 4860fi 4861 4862if test -n $lt_cv_sys_max_cmd_len ; then 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4864$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4865else 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4867$as_echo "none" >&6; } 4868fi 4869max_cmd_len=$lt_cv_sys_max_cmd_len 4870 4871 4872 4873 4874 4875 4876: ${CP="cp -f"} 4877: ${MV="mv -f"} 4878: ${RM="rm -f"} 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4881$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4882# Try some XSI features 4883xsi_shell=no 4884( _lt_dummy="a/b/c" 4885 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4886 = c,a/b,, \ 4887 && eval 'test $(( 1 + 1 )) -eq 2 \ 4888 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4889 && xsi_shell=yes 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4891$as_echo "$xsi_shell" >&6; } 4892 4893 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4895$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4896lt_shell_append=no 4897( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4898 >/dev/null 2>&1 \ 4899 && lt_shell_append=yes 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4901$as_echo "$lt_shell_append" >&6; } 4902 4903 4904if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4905 lt_unset=unset 4906else 4907 lt_unset=false 4908fi 4909 4910 4911 4912 4913 4914# test EBCDIC or ASCII 4915case `echo X|tr X '\101'` in 4916 A) # ASCII based system 4917 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4918 lt_SP2NL='tr \040 \012' 4919 lt_NL2SP='tr \015\012 \040\040' 4920 ;; 4921 *) # EBCDIC based system 4922 lt_SP2NL='tr \100 \n' 4923 lt_NL2SP='tr \r\n \100\100' 4924 ;; 4925esac 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4936$as_echo_n "checking for $LD option to reload object files... " >&6; } 4937if test "${lt_cv_ld_reload_flag+set}" = set; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 lt_cv_ld_reload_flag='-r' 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4943$as_echo "$lt_cv_ld_reload_flag" >&6; } 4944reload_flag=$lt_cv_ld_reload_flag 4945case $reload_flag in 4946"" | " "*) ;; 4947*) reload_flag=" $reload_flag" ;; 4948esac 4949reload_cmds='$LD$reload_flag -o $output$reload_objs' 4950case $host_os in 4951 darwin*) 4952 if test "$GCC" = yes; then 4953 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4954 else 4955 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4956 fi 4957 ;; 4958esac 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968if test -n "$ac_tool_prefix"; then 4969 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4970set dummy ${ac_tool_prefix}objdump; ac_word=$2 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4972$as_echo_n "checking for $ac_word... " >&6; } 4973if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 if test -n "$OBJDUMP"; then 4977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4978else 4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4980for as_dir in $PATH 4981do 4982 IFS=$as_save_IFS 4983 test -z "$as_dir" && as_dir=. 4984 for ac_exec_ext in '' $ac_executable_extensions; do 4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4986 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4988 break 2 4989 fi 4990done 4991 done 4992IFS=$as_save_IFS 4993 4994fi 4995fi 4996OBJDUMP=$ac_cv_prog_OBJDUMP 4997if test -n "$OBJDUMP"; then 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4999$as_echo "$OBJDUMP" >&6; } 5000else 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5002$as_echo "no" >&6; } 5003fi 5004 5005 5006fi 5007if test -z "$ac_cv_prog_OBJDUMP"; then 5008 ac_ct_OBJDUMP=$OBJDUMP 5009 # Extract the first word of "objdump", so it can be a program name with args. 5010set dummy objdump; ac_word=$2 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5012$as_echo_n "checking for $ac_word... " >&6; } 5013if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 if test -n "$ac_ct_OBJDUMP"; then 5017 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5018else 5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020for as_dir in $PATH 5021do 5022 IFS=$as_save_IFS 5023 test -z "$as_dir" && as_dir=. 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5026 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030done 5031 done 5032IFS=$as_save_IFS 5033 5034fi 5035fi 5036ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5037if test -n "$ac_ct_OBJDUMP"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5039$as_echo "$ac_ct_OBJDUMP" >&6; } 5040else 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042$as_echo "no" >&6; } 5043fi 5044 5045 if test "x$ac_ct_OBJDUMP" = x; then 5046 OBJDUMP="false" 5047 else 5048 case $cross_compiling:$ac_tool_warned in 5049yes:) 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5052ac_tool_warned=yes ;; 5053esac 5054 OBJDUMP=$ac_ct_OBJDUMP 5055 fi 5056else 5057 OBJDUMP="$ac_cv_prog_OBJDUMP" 5058fi 5059 5060test -z "$OBJDUMP" && OBJDUMP=objdump 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5071$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5072if test "${lt_cv_deplibs_check_method+set}" = set; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 lt_cv_file_magic_cmd='$MAGIC_CMD' 5076lt_cv_file_magic_test_file= 5077lt_cv_deplibs_check_method='unknown' 5078# Need to set the preceding variable on all platforms that support 5079# interlibrary dependencies. 5080# 'none' -- dependencies not supported. 5081# `unknown' -- same as none, but documents that we really don't know. 5082# 'pass_all' -- all dependencies passed with no checks. 5083# 'test_compile' -- check by making test program. 5084# 'file_magic [[regex]]' -- check by looking for files in library path 5085# which responds to the $file_magic_cmd with a given extended regex. 5086# If you have `file' or equivalent on your system and you're not sure 5087# whether `pass_all' will *always* work, you probably want this one. 5088 5089case $host_os in 5090aix[4-9]*) 5091 lt_cv_deplibs_check_method=pass_all 5092 ;; 5093 5094beos*) 5095 lt_cv_deplibs_check_method=pass_all 5096 ;; 5097 5098bsdi[45]*) 5099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5100 lt_cv_file_magic_cmd='/usr/bin/file -L' 5101 lt_cv_file_magic_test_file=/shlib/libc.so 5102 ;; 5103 5104cygwin*) 5105 # func_win32_libid is a shell function defined in ltmain.sh 5106 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5107 lt_cv_file_magic_cmd='func_win32_libid' 5108 ;; 5109 5110mingw* | pw32*) 5111 # Base MSYS/MinGW do not provide the 'file' command needed by 5112 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5113 # unless we find 'file', for example because we are cross-compiling. 5114 if ( file / ) >/dev/null 2>&1; then 5115 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5116 lt_cv_file_magic_cmd='func_win32_libid' 5117 else 5118 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5119 lt_cv_file_magic_cmd='$OBJDUMP -f' 5120 fi 5121 ;; 5122 5123cegcc) 5124 # use the weaker test based on 'objdump'. See mingw*. 5125 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5126 lt_cv_file_magic_cmd='$OBJDUMP -f' 5127 ;; 5128 5129darwin* | rhapsody*) 5130 lt_cv_deplibs_check_method=pass_all 5131 ;; 5132 5133freebsd* | dragonfly*) 5134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5135 case $host_cpu in 5136 i*86 ) 5137 # Not sure whether the presence of OpenBSD here was a mistake. 5138 # Let's accept both of them until this is cleared up. 5139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5140 lt_cv_file_magic_cmd=/usr/bin/file 5141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5142 ;; 5143 esac 5144 else 5145 lt_cv_deplibs_check_method=pass_all 5146 fi 5147 ;; 5148 5149gnu*) 5150 lt_cv_deplibs_check_method=pass_all 5151 ;; 5152 5153hpux10.20* | hpux11*) 5154 lt_cv_file_magic_cmd=/usr/bin/file 5155 case $host_cpu in 5156 ia64*) 5157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5159 ;; 5160 hppa*64*) 5161 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]' 5162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5163 ;; 5164 *) 5165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5166 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5167 ;; 5168 esac 5169 ;; 5170 5171interix[3-9]*) 5172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5174 ;; 5175 5176irix5* | irix6* | nonstopux*) 5177 case $LD in 5178 *-32|*"-32 ") libmagic=32-bit;; 5179 *-n32|*"-n32 ") libmagic=N32;; 5180 *-64|*"-64 ") libmagic=64-bit;; 5181 *) libmagic=never-match;; 5182 esac 5183 lt_cv_deplibs_check_method=pass_all 5184 ;; 5185 5186# This must be Linux ELF. 5187linux* | k*bsd*-gnu | kopensolaris*-gnu) 5188 lt_cv_deplibs_check_method=pass_all 5189 ;; 5190 5191netbsd* | netbsdelf*-gnu) 5192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5194 else 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5196 fi 5197 ;; 5198 5199newos6*) 5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5201 lt_cv_file_magic_cmd=/usr/bin/file 5202 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5203 ;; 5204 5205*nto* | *qnx*) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 5209openbsd*) 5210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5212 else 5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5214 fi 5215 ;; 5216 5217osf3* | osf4* | osf5*) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 5221rdos*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225solaris*) 5226 lt_cv_deplibs_check_method=pass_all 5227 ;; 5228 5229sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5230 lt_cv_deplibs_check_method=pass_all 5231 ;; 5232 5233sysv4 | sysv4.3*) 5234 case $host_vendor in 5235 motorola) 5236 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]' 5237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5238 ;; 5239 ncr) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 sequent) 5243 lt_cv_file_magic_cmd='/bin/file' 5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5245 ;; 5246 sni) 5247 lt_cv_file_magic_cmd='/bin/file' 5248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5249 lt_cv_file_magic_test_file=/lib/libc.so 5250 ;; 5251 siemens) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 pc) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257 esac 5258 ;; 5259 5260tpf*) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263esac 5264 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5267$as_echo "$lt_cv_deplibs_check_method" >&6; } 5268file_magic_cmd=$lt_cv_file_magic_cmd 5269deplibs_check_method=$lt_cv_deplibs_check_method 5270test -z "$deplibs_check_method" && deplibs_check_method=unknown 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283if test -n "$ac_tool_prefix"; then 5284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5285set dummy ${ac_tool_prefix}ar; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if test "${ac_cv_prog_AR+set}" = set; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$AR"; then 5292 ac_cv_prog_AR="$AR" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5301 ac_cv_prog_AR="${ac_tool_prefix}ar" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311AR=$ac_cv_prog_AR 5312if test -n "$AR"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5314$as_echo "$AR" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 5321fi 5322if test -z "$ac_cv_prog_AR"; then 5323 ac_ct_AR=$AR 5324 # Extract the first word of "ar", so it can be a program name with args. 5325set dummy ar; ac_word=$2 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5327$as_echo_n "checking for $ac_word... " >&6; } 5328if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 if test -n "$ac_ct_AR"; then 5332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5333else 5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335for as_dir in $PATH 5336do 5337 IFS=$as_save_IFS 5338 test -z "$as_dir" && as_dir=. 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5341 ac_cv_prog_ac_ct_AR="ar" 5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349fi 5350fi 5351ac_ct_AR=$ac_cv_prog_ac_ct_AR 5352if test -n "$ac_ct_AR"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5354$as_echo "$ac_ct_AR" >&6; } 5355else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357$as_echo "no" >&6; } 5358fi 5359 5360 if test "x$ac_ct_AR" = x; then 5361 AR="false" 5362 else 5363 case $cross_compiling:$ac_tool_warned in 5364yes:) 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5367ac_tool_warned=yes ;; 5368esac 5369 AR=$ac_ct_AR 5370 fi 5371else 5372 AR="$ac_cv_prog_AR" 5373fi 5374 5375test -z "$AR" && AR=ar 5376test -z "$AR_FLAGS" && AR_FLAGS=cru 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388if test -n "$ac_tool_prefix"; then 5389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5390set dummy ${ac_tool_prefix}strip; ac_word=$2 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5392$as_echo_n "checking for $ac_word... " >&6; } 5393if test "${ac_cv_prog_STRIP+set}" = set; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if test -n "$STRIP"; then 5397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5398else 5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5400for as_dir in $PATH 5401do 5402 IFS=$as_save_IFS 5403 test -z "$as_dir" && as_dir=. 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5406 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5408 break 2 5409 fi 5410done 5411 done 5412IFS=$as_save_IFS 5413 5414fi 5415fi 5416STRIP=$ac_cv_prog_STRIP 5417if test -n "$STRIP"; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5419$as_echo "$STRIP" >&6; } 5420else 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5422$as_echo "no" >&6; } 5423fi 5424 5425 5426fi 5427if test -z "$ac_cv_prog_STRIP"; then 5428 ac_ct_STRIP=$STRIP 5429 # Extract the first word of "strip", so it can be a program name with args. 5430set dummy strip; ac_word=$2 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5432$as_echo_n "checking for $ac_word... " >&6; } 5433if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 if test -n "$ac_ct_STRIP"; then 5437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5438else 5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5446 ac_cv_prog_ac_ct_STRIP="strip" 5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450done 5451 done 5452IFS=$as_save_IFS 5453 5454fi 5455fi 5456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5457if test -n "$ac_ct_STRIP"; then 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5459$as_echo "$ac_ct_STRIP" >&6; } 5460else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5462$as_echo "no" >&6; } 5463fi 5464 5465 if test "x$ac_ct_STRIP" = x; then 5466 STRIP=":" 5467 else 5468 case $cross_compiling:$ac_tool_warned in 5469yes:) 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5472ac_tool_warned=yes ;; 5473esac 5474 STRIP=$ac_ct_STRIP 5475 fi 5476else 5477 STRIP="$ac_cv_prog_STRIP" 5478fi 5479 5480test -z "$STRIP" && STRIP=: 5481 5482 5483 5484 5485 5486 5487if test -n "$ac_tool_prefix"; then 5488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5489set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5491$as_echo_n "checking for $ac_word... " >&6; } 5492if test "${ac_cv_prog_RANLIB+set}" = set; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 if test -n "$RANLIB"; then 5496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5497else 5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499for as_dir in $PATH 5500do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509done 5510 done 5511IFS=$as_save_IFS 5512 5513fi 5514fi 5515RANLIB=$ac_cv_prog_RANLIB 5516if test -n "$RANLIB"; then 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5518$as_echo "$RANLIB" >&6; } 5519else 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5521$as_echo "no" >&6; } 5522fi 5523 5524 5525fi 5526if test -z "$ac_cv_prog_RANLIB"; then 5527 ac_ct_RANLIB=$RANLIB 5528 # Extract the first word of "ranlib", so it can be a program name with args. 5529set dummy ranlib; ac_word=$2 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5531$as_echo_n "checking for $ac_word... " >&6; } 5532if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 if test -n "$ac_ct_RANLIB"; then 5536 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5537else 5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5539for as_dir in $PATH 5540do 5541 IFS=$as_save_IFS 5542 test -z "$as_dir" && as_dir=. 5543 for ac_exec_ext in '' $ac_executable_extensions; do 5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5545 ac_cv_prog_ac_ct_RANLIB="ranlib" 5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5547 break 2 5548 fi 5549done 5550 done 5551IFS=$as_save_IFS 5552 5553fi 5554fi 5555ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5556if test -n "$ac_ct_RANLIB"; then 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5558$as_echo "$ac_ct_RANLIB" >&6; } 5559else 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5561$as_echo "no" >&6; } 5562fi 5563 5564 if test "x$ac_ct_RANLIB" = x; then 5565 RANLIB=":" 5566 else 5567 case $cross_compiling:$ac_tool_warned in 5568yes:) 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5571ac_tool_warned=yes ;; 5572esac 5573 RANLIB=$ac_ct_RANLIB 5574 fi 5575else 5576 RANLIB="$ac_cv_prog_RANLIB" 5577fi 5578 5579test -z "$RANLIB" && RANLIB=: 5580 5581 5582 5583 5584 5585 5586# Determine commands to create old-style static archives. 5587old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5588old_postinstall_cmds='chmod 644 $oldlib' 5589old_postuninstall_cmds= 5590 5591if test -n "$RANLIB"; then 5592 case $host_os in 5593 openbsd*) 5594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5595 ;; 5596 *) 5597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5598 ;; 5599 esac 5600 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5601fi 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636# If no C compiler was specified, use CC. 5637LTCC=${LTCC-"$CC"} 5638 5639# If no C compiler flags were specified, use CFLAGS. 5640LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5641 5642# Allow CC to be a program name with arguments. 5643compiler=$CC 5644 5645 5646# Check for command to grab the raw symbol name followed by C symbol from nm. 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5648$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5649if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 5653# These are sane defaults that work on at least a few old systems. 5654# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5655 5656# Character class describing NM global symbol codes. 5657symcode='[BCDEGRST]' 5658 5659# Regexp to match symbols that can be accessed directly from C. 5660sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5661 5662# Define system-specific variables. 5663case $host_os in 5664aix*) 5665 symcode='[BCDT]' 5666 ;; 5667cygwin* | mingw* | pw32* | cegcc*) 5668 symcode='[ABCDGISTW]' 5669 ;; 5670hpux*) 5671 if test "$host_cpu" = ia64; then 5672 symcode='[ABCDEGRST]' 5673 fi 5674 ;; 5675irix* | nonstopux*) 5676 symcode='[BCDEGRST]' 5677 ;; 5678osf*) 5679 symcode='[BCDEGQRST]' 5680 ;; 5681solaris*) 5682 symcode='[BDRT]' 5683 ;; 5684sco3.2v5*) 5685 symcode='[DT]' 5686 ;; 5687sysv4.2uw2*) 5688 symcode='[DT]' 5689 ;; 5690sysv5* | sco5v6* | unixware* | OpenUNIX*) 5691 symcode='[ABDT]' 5692 ;; 5693sysv4) 5694 symcode='[DFNSTU]' 5695 ;; 5696esac 5697 5698# If we're using GNU nm, then use its standard symbol codes. 5699case `$NM -V 2>&1` in 5700*GNU* | *'with BFD'*) 5701 symcode='[ABCDGIRSTW]' ;; 5702esac 5703 5704# Transform an extracted symbol line into a proper C declaration. 5705# Some systems (esp. on ia64) link data and code symbols differently, 5706# so use this general approach. 5707lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5708 5709# Transform an extracted symbol line into symbol name and symbol address 5710lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5711lt_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'" 5712 5713# Handle CRLF in mingw tool chain 5714opt_cr= 5715case $build_os in 5716mingw*) 5717 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5718 ;; 5719esac 5720 5721# Try without a prefix underscore, then with it. 5722for ac_symprfx in "" "_"; do 5723 5724 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5725 symxfrm="\\1 $ac_symprfx\\2 \\2" 5726 5727 # Write the raw and C identifiers. 5728 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5729 # Fake it for dumpbin and say T for any non-static function 5730 # and D for any global variable. 5731 # Also find C++ and __fastcall symbols from MSVC++, 5732 # which start with @ or ?. 5733 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5734" {last_section=section; section=\$ 3};"\ 5735" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5736" \$ 0!~/External *\|/{next};"\ 5737" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5738" {if(hide[section]) next};"\ 5739" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5740" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5741" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5742" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5743" ' prfx=^$ac_symprfx" 5744 else 5745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5746 fi 5747 5748 # Check to see that the pipe works correctly. 5749 pipe_works=no 5750 5751 rm -f conftest* 5752 cat > conftest.$ac_ext <<_LT_EOF 5753#ifdef __cplusplus 5754extern "C" { 5755#endif 5756char nm_test_var; 5757void nm_test_func(void); 5758void nm_test_func(void){} 5759#ifdef __cplusplus 5760} 5761#endif 5762int main(){nm_test_var='a';nm_test_func();return(0);} 5763_LT_EOF 5764 5765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5766 (eval $ac_compile) 2>&5 5767 ac_status=$? 5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5769 test $ac_status = 0; }; then 5770 # Now try to grab the symbols. 5771 nlist=conftest.nm 5772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5773 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5774 ac_status=$? 5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5776 test $ac_status = 0; } && test -s "$nlist"; then 5777 # Try sorting and uniquifying the output. 5778 if sort "$nlist" | uniq > "$nlist"T; then 5779 mv -f "$nlist"T "$nlist" 5780 else 5781 rm -f "$nlist"T 5782 fi 5783 5784 # Make sure that we snagged all the symbols we need. 5785 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5786 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5787 cat <<_LT_EOF > conftest.$ac_ext 5788#ifdef __cplusplus 5789extern "C" { 5790#endif 5791 5792_LT_EOF 5793 # Now generate the symbol file. 5794 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5795 5796 cat <<_LT_EOF >> conftest.$ac_ext 5797 5798/* The mapping between symbol names and symbols. */ 5799const struct { 5800 const char *name; 5801 void *address; 5802} 5803lt__PROGRAM__LTX_preloaded_symbols[] = 5804{ 5805 { "@PROGRAM@", (void *) 0 }, 5806_LT_EOF 5807 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5808 cat <<\_LT_EOF >> conftest.$ac_ext 5809 {0, (void *) 0} 5810}; 5811 5812/* This works around a problem in FreeBSD linker */ 5813#ifdef FREEBSD_WORKAROUND 5814static const void *lt_preloaded_setup() { 5815 return lt__PROGRAM__LTX_preloaded_symbols; 5816} 5817#endif 5818 5819#ifdef __cplusplus 5820} 5821#endif 5822_LT_EOF 5823 # Now try linking the two files. 5824 mv conftest.$ac_objext conftstm.$ac_objext 5825 lt_save_LIBS="$LIBS" 5826 lt_save_CFLAGS="$CFLAGS" 5827 LIBS="conftstm.$ac_objext" 5828 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5830 (eval $ac_link) 2>&5 5831 ac_status=$? 5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5833 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5834 pipe_works=yes 5835 fi 5836 LIBS="$lt_save_LIBS" 5837 CFLAGS="$lt_save_CFLAGS" 5838 else 5839 echo "cannot find nm_test_func in $nlist" >&5 5840 fi 5841 else 5842 echo "cannot find nm_test_var in $nlist" >&5 5843 fi 5844 else 5845 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5846 fi 5847 else 5848 echo "$progname: failed program was:" >&5 5849 cat conftest.$ac_ext >&5 5850 fi 5851 rm -rf conftest* conftst* 5852 5853 # Do not use the global_symbol_pipe unless it works. 5854 if test "$pipe_works" = yes; then 5855 break 5856 else 5857 lt_cv_sys_global_symbol_pipe= 5858 fi 5859done 5860 5861fi 5862 5863if test -z "$lt_cv_sys_global_symbol_pipe"; then 5864 lt_cv_sys_global_symbol_to_cdecl= 5865fi 5866if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5868$as_echo "failed" >&6; } 5869else 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5871$as_echo "ok" >&6; } 5872fi 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896# Check whether --enable-libtool-lock was given. 5897if test "${enable_libtool_lock+set}" = set; then : 5898 enableval=$enable_libtool_lock; 5899fi 5900 5901test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5902 5903# Some flags need to be propagated to the compiler or linker for good 5904# libtool support. 5905case $host in 5906ia64-*-hpux*) 5907 # Find out which ABI we are using. 5908 echo 'int i;' > conftest.$ac_ext 5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5910 (eval $ac_compile) 2>&5 5911 ac_status=$? 5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5913 test $ac_status = 0; }; then 5914 case `/usr/bin/file conftest.$ac_objext` in 5915 *ELF-32*) 5916 HPUX_IA64_MODE="32" 5917 ;; 5918 *ELF-64*) 5919 HPUX_IA64_MODE="64" 5920 ;; 5921 esac 5922 fi 5923 rm -rf conftest* 5924 ;; 5925*-*-irix6*) 5926 # Find out which ABI we are using. 5927 echo '#line 5927 "configure"' > conftest.$ac_ext 5928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5929 (eval $ac_compile) 2>&5 5930 ac_status=$? 5931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5932 test $ac_status = 0; }; then 5933 if test "$lt_cv_prog_gnu_ld" = yes; then 5934 case `/usr/bin/file conftest.$ac_objext` in 5935 *32-bit*) 5936 LD="${LD-ld} -melf32bsmip" 5937 ;; 5938 *N32*) 5939 LD="${LD-ld} -melf32bmipn32" 5940 ;; 5941 *64-bit*) 5942 LD="${LD-ld} -melf64bmip" 5943 ;; 5944 esac 5945 else 5946 case `/usr/bin/file conftest.$ac_objext` in 5947 *32-bit*) 5948 LD="${LD-ld} -32" 5949 ;; 5950 *N32*) 5951 LD="${LD-ld} -n32" 5952 ;; 5953 *64-bit*) 5954 LD="${LD-ld} -64" 5955 ;; 5956 esac 5957 fi 5958 fi 5959 rm -rf conftest* 5960 ;; 5961 5962x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5963s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5964 # Find out which ABI we are using. 5965 echo 'int i;' > conftest.$ac_ext 5966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5967 (eval $ac_compile) 2>&5 5968 ac_status=$? 5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5970 test $ac_status = 0; }; then 5971 case `/usr/bin/file conftest.o` in 5972 *32-bit*) 5973 case $host in 5974 x86_64-*kfreebsd*-gnu) 5975 LD="${LD-ld} -m elf_i386_fbsd" 5976 ;; 5977 x86_64-*linux*) 5978 LD="${LD-ld} -m elf_i386" 5979 ;; 5980 ppc64-*linux*|powerpc64-*linux*) 5981 LD="${LD-ld} -m elf32ppclinux" 5982 ;; 5983 s390x-*linux*) 5984 LD="${LD-ld} -m elf_s390" 5985 ;; 5986 sparc64-*linux*) 5987 LD="${LD-ld} -m elf32_sparc" 5988 ;; 5989 esac 5990 ;; 5991 *64-bit*) 5992 case $host in 5993 x86_64-*kfreebsd*-gnu) 5994 LD="${LD-ld} -m elf_x86_64_fbsd" 5995 ;; 5996 x86_64-*linux*) 5997 LD="${LD-ld} -m elf_x86_64" 5998 ;; 5999 ppc*-*linux*|powerpc*-*linux*) 6000 LD="${LD-ld} -m elf64ppc" 6001 ;; 6002 s390*-*linux*|s390*-*tpf*) 6003 LD="${LD-ld} -m elf64_s390" 6004 ;; 6005 sparc*-*linux*) 6006 LD="${LD-ld} -m elf64_sparc" 6007 ;; 6008 esac 6009 ;; 6010 esac 6011 fi 6012 rm -rf conftest* 6013 ;; 6014 6015*-*-sco3.2v5*) 6016 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6017 SAVE_CFLAGS="$CFLAGS" 6018 CFLAGS="$CFLAGS -belf" 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6020$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6021if test "${lt_cv_cc_needs_belf+set}" = set; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 ac_ext=c 6025ac_cpp='$CPP $CPPFLAGS' 6026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6028ac_compiler_gnu=$ac_cv_c_compiler_gnu 6029 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032 6033int 6034main () 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_link "$LINENO"; then : 6042 lt_cv_cc_needs_belf=yes 6043else 6044 lt_cv_cc_needs_belf=no 6045fi 6046rm -f core conftest.err conftest.$ac_objext \ 6047 conftest$ac_exeext conftest.$ac_ext 6048 ac_ext=c 6049ac_cpp='$CPP $CPPFLAGS' 6050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6052ac_compiler_gnu=$ac_cv_c_compiler_gnu 6053 6054fi 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6056$as_echo "$lt_cv_cc_needs_belf" >&6; } 6057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6059 CFLAGS="$SAVE_CFLAGS" 6060 fi 6061 ;; 6062sparc*-*solaris*) 6063 # Find out which ABI we are using. 6064 echo 'int i;' > conftest.$ac_ext 6065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6066 (eval $ac_compile) 2>&5 6067 ac_status=$? 6068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6069 test $ac_status = 0; }; then 6070 case `/usr/bin/file conftest.o` in 6071 *64-bit*) 6072 case $lt_cv_prog_gnu_ld in 6073 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6074 *) 6075 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6076 LD="${LD-ld} -64" 6077 fi 6078 ;; 6079 esac 6080 ;; 6081 esac 6082 fi 6083 rm -rf conftest* 6084 ;; 6085esac 6086 6087need_locks="$enable_libtool_lock" 6088 6089 6090 case $host_os in 6091 rhapsody* | darwin*) 6092 if test -n "$ac_tool_prefix"; then 6093 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6094set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$DSYMUTIL"; then 6101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115 done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120DSYMUTIL=$ac_cv_prog_DSYMUTIL 6121if test -n "$DSYMUTIL"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6123$as_echo "$DSYMUTIL" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130fi 6131if test -z "$ac_cv_prog_DSYMUTIL"; then 6132 ac_ct_DSYMUTIL=$DSYMUTIL 6133 # Extract the first word of "dsymutil", so it can be a program name with args. 6134set dummy dsymutil; ac_word=$2 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136$as_echo_n "checking for $ac_word... " >&6; } 6137if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 if test -n "$ac_ct_DSYMUTIL"; then 6141 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6142else 6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144for as_dir in $PATH 6145do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155 done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6161if test -n "$ac_ct_DSYMUTIL"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6163$as_echo "$ac_ct_DSYMUTIL" >&6; } 6164else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166$as_echo "no" >&6; } 6167fi 6168 6169 if test "x$ac_ct_DSYMUTIL" = x; then 6170 DSYMUTIL=":" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173yes:) 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176ac_tool_warned=yes ;; 6177esac 6178 DSYMUTIL=$ac_ct_DSYMUTIL 6179 fi 6180else 6181 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6182fi 6183 6184 if test -n "$ac_tool_prefix"; then 6185 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6186set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$NMEDIT"; then 6193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6202 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207 done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212NMEDIT=$ac_cv_prog_NMEDIT 6213if test -n "$NMEDIT"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6215$as_echo "$NMEDIT" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222fi 6223if test -z "$ac_cv_prog_NMEDIT"; then 6224 ac_ct_NMEDIT=$NMEDIT 6225 # Extract the first word of "nmedit", so it can be a program name with args. 6226set dummy nmedit; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$ac_ct_NMEDIT"; then 6233 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6242 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6253if test -n "$ac_ct_NMEDIT"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6255$as_echo "$ac_ct_NMEDIT" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 if test "x$ac_ct_NMEDIT" = x; then 6262 NMEDIT=":" 6263 else 6264 case $cross_compiling:$ac_tool_warned in 6265yes:) 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 NMEDIT=$ac_ct_NMEDIT 6271 fi 6272else 6273 NMEDIT="$ac_cv_prog_NMEDIT" 6274fi 6275 6276 if test -n "$ac_tool_prefix"; then 6277 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6278set dummy ${ac_tool_prefix}lipo; ac_word=$2 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6280$as_echo_n "checking for $ac_word... " >&6; } 6281if test "${ac_cv_prog_LIPO+set}" = set; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 if test -n "$LIPO"; then 6285 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6294 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299 done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304LIPO=$ac_cv_prog_LIPO 6305if test -n "$LIPO"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6307$as_echo "$LIPO" >&6; } 6308else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310$as_echo "no" >&6; } 6311fi 6312 6313 6314fi 6315if test -z "$ac_cv_prog_LIPO"; then 6316 ac_ct_LIPO=$LIPO 6317 # Extract the first word of "lipo", so it can be a program name with args. 6318set dummy lipo; ac_word=$2 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6320$as_echo_n "checking for $ac_word... " >&6; } 6321if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 if test -n "$ac_ct_LIPO"; then 6325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6326else 6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328for as_dir in $PATH 6329do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6334 ac_cv_prog_ac_ct_LIPO="lipo" 6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339 done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6345if test -n "$ac_ct_LIPO"; then 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6347$as_echo "$ac_ct_LIPO" >&6; } 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352 6353 if test "x$ac_ct_LIPO" = x; then 6354 LIPO=":" 6355 else 6356 case $cross_compiling:$ac_tool_warned in 6357yes:) 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6360ac_tool_warned=yes ;; 6361esac 6362 LIPO=$ac_ct_LIPO 6363 fi 6364else 6365 LIPO="$ac_cv_prog_LIPO" 6366fi 6367 6368 if test -n "$ac_tool_prefix"; then 6369 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6370set dummy ${ac_tool_prefix}otool; ac_word=$2 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6372$as_echo_n "checking for $ac_word... " >&6; } 6373if test "${ac_cv_prog_OTOOL+set}" = set; then : 6374 $as_echo_n "(cached) " >&6 6375else 6376 if test -n "$OTOOL"; then 6377 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6378else 6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6380for as_dir in $PATH 6381do 6382 IFS=$as_save_IFS 6383 test -z "$as_dir" && as_dir=. 6384 for ac_exec_ext in '' $ac_executable_extensions; do 6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6386 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6388 break 2 6389 fi 6390done 6391 done 6392IFS=$as_save_IFS 6393 6394fi 6395fi 6396OTOOL=$ac_cv_prog_OTOOL 6397if test -n "$OTOOL"; then 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6399$as_echo "$OTOOL" >&6; } 6400else 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6402$as_echo "no" >&6; } 6403fi 6404 6405 6406fi 6407if test -z "$ac_cv_prog_OTOOL"; then 6408 ac_ct_OTOOL=$OTOOL 6409 # Extract the first word of "otool", so it can be a program name with args. 6410set dummy otool; ac_word=$2 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412$as_echo_n "checking for $ac_word... " >&6; } 6413if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 if test -n "$ac_ct_OTOOL"; then 6417 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6418else 6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420for as_dir in $PATH 6421do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6426 ac_cv_prog_ac_ct_OTOOL="otool" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430done 6431 done 6432IFS=$as_save_IFS 6433 6434fi 6435fi 6436ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6437if test -n "$ac_ct_OTOOL"; then 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6439$as_echo "$ac_ct_OTOOL" >&6; } 6440else 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6442$as_echo "no" >&6; } 6443fi 6444 6445 if test "x$ac_ct_OTOOL" = x; then 6446 OTOOL=":" 6447 else 6448 case $cross_compiling:$ac_tool_warned in 6449yes:) 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6452ac_tool_warned=yes ;; 6453esac 6454 OTOOL=$ac_ct_OTOOL 6455 fi 6456else 6457 OTOOL="$ac_cv_prog_OTOOL" 6458fi 6459 6460 if test -n "$ac_tool_prefix"; then 6461 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6462set dummy ${ac_tool_prefix}otool64; ac_word=$2 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6464$as_echo_n "checking for $ac_word... " >&6; } 6465if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6466 $as_echo_n "(cached) " >&6 6467else 6468 if test -n "$OTOOL64"; then 6469 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6470else 6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6472for as_dir in $PATH 6473do 6474 IFS=$as_save_IFS 6475 test -z "$as_dir" && as_dir=. 6476 for ac_exec_ext in '' $ac_executable_extensions; do 6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6478 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6480 break 2 6481 fi 6482done 6483 done 6484IFS=$as_save_IFS 6485 6486fi 6487fi 6488OTOOL64=$ac_cv_prog_OTOOL64 6489if test -n "$OTOOL64"; then 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6491$as_echo "$OTOOL64" >&6; } 6492else 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494$as_echo "no" >&6; } 6495fi 6496 6497 6498fi 6499if test -z "$ac_cv_prog_OTOOL64"; then 6500 ac_ct_OTOOL64=$OTOOL64 6501 # Extract the first word of "otool64", so it can be a program name with args. 6502set dummy otool64; ac_word=$2 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6504$as_echo_n "checking for $ac_word... " >&6; } 6505if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 if test -n "$ac_ct_OTOOL64"; then 6509 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6510else 6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6512for as_dir in $PATH 6513do 6514 IFS=$as_save_IFS 6515 test -z "$as_dir" && as_dir=. 6516 for ac_exec_ext in '' $ac_executable_extensions; do 6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6518 ac_cv_prog_ac_ct_OTOOL64="otool64" 6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6520 break 2 6521 fi 6522done 6523 done 6524IFS=$as_save_IFS 6525 6526fi 6527fi 6528ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6529if test -n "$ac_ct_OTOOL64"; then 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6531$as_echo "$ac_ct_OTOOL64" >&6; } 6532else 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6534$as_echo "no" >&6; } 6535fi 6536 6537 if test "x$ac_ct_OTOOL64" = x; then 6538 OTOOL64=":" 6539 else 6540 case $cross_compiling:$ac_tool_warned in 6541yes:) 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6544ac_tool_warned=yes ;; 6545esac 6546 OTOOL64=$ac_ct_OTOOL64 6547 fi 6548else 6549 OTOOL64="$ac_cv_prog_OTOOL64" 6550fi 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6579$as_echo_n "checking for -single_module linker flag... " >&6; } 6580if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 lt_cv_apple_cc_single_mod=no 6584 if test -z "${LT_MULTI_MODULE}"; then 6585 # By default we will add the -single_module flag. You can override 6586 # by either setting the environment variable LT_MULTI_MODULE 6587 # non-empty at configure time, or by adding -multi_module to the 6588 # link flags. 6589 rm -rf libconftest.dylib* 6590 echo "int foo(void){return 1;}" > conftest.c 6591 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6592-dynamiclib -Wl,-single_module conftest.c" >&5 6593 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6594 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6595 _lt_result=$? 6596 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6597 lt_cv_apple_cc_single_mod=yes 6598 else 6599 cat conftest.err >&5 6600 fi 6601 rm -rf libconftest.dylib* 6602 rm -f conftest.* 6603 fi 6604fi 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6606$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6608$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6609if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 lt_cv_ld_exported_symbols_list=no 6613 save_LDFLAGS=$LDFLAGS 6614 echo "_main" > conftest.sym 6615 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618 6619int 6620main () 6621{ 6622 6623 ; 6624 return 0; 6625} 6626_ACEOF 6627if ac_fn_c_try_link "$LINENO"; then : 6628 lt_cv_ld_exported_symbols_list=yes 6629else 6630 lt_cv_ld_exported_symbols_list=no 6631fi 6632rm -f core conftest.err conftest.$ac_objext \ 6633 conftest$ac_exeext conftest.$ac_ext 6634 LDFLAGS="$save_LDFLAGS" 6635 6636fi 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6638$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6639 case $host_os in 6640 rhapsody* | darwin1.[012]) 6641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6642 darwin1.*) 6643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6644 darwin*) # darwin 5.x on 6645 # if running on 10.5 or later, the deployment target defaults 6646 # to the OS version, if on x86, and 10.4, the deployment 6647 # target defaults to 10.4. Don't you love it? 6648 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6649 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6651 10.[012]*) 6652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6653 10.*) 6654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6655 esac 6656 ;; 6657 esac 6658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6659 _lt_dar_single_mod='$single_module' 6660 fi 6661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6663 else 6664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6665 fi 6666 if test "$DSYMUTIL" != ":"; then 6667 _lt_dsymutil='~$DSYMUTIL $lib || :' 6668 else 6669 _lt_dsymutil= 6670 fi 6671 ;; 6672 esac 6673 6674ac_ext=c 6675ac_cpp='$CPP $CPPFLAGS' 6676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6678ac_compiler_gnu=$ac_cv_c_compiler_gnu 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6680$as_echo_n "checking how to run the C preprocessor... " >&6; } 6681# On Suns, sometimes $CPP names a directory. 6682if test -n "$CPP" && test -d "$CPP"; then 6683 CPP= 6684fi 6685if test -z "$CPP"; then 6686 if test "${ac_cv_prog_CPP+set}" = set; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 # Double quotes because CPP needs to be expanded 6690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6691 do 6692 ac_preproc_ok=false 6693for ac_c_preproc_warn_flag in '' yes 6694do 6695 # Use a header file that comes with gcc, so configuring glibc 6696 # with a fresh cross-compiler works. 6697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6698 # <limits.h> exists even on freestanding compilers. 6699 # On the NeXT, cc -E runs the code through the compiler's parser, 6700 # not just through cpp. "Syntax error" is here to catch this case. 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703#ifdef __STDC__ 6704# include <limits.h> 6705#else 6706# include <assert.h> 6707#endif 6708 Syntax error 6709_ACEOF 6710if ac_fn_c_try_cpp "$LINENO"; then : 6711 6712else 6713 # Broken: fails on valid input. 6714continue 6715fi 6716rm -f conftest.err conftest.i conftest.$ac_ext 6717 6718 # OK, works on sane cases. Now check whether nonexistent headers 6719 # can be detected and how. 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722#include <ac_nonexistent.h> 6723_ACEOF 6724if ac_fn_c_try_cpp "$LINENO"; then : 6725 # Broken: success on invalid input. 6726continue 6727else 6728 # Passes both tests. 6729ac_preproc_ok=: 6730break 6731fi 6732rm -f conftest.err conftest.i conftest.$ac_ext 6733 6734done 6735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6736rm -f conftest.i conftest.err conftest.$ac_ext 6737if $ac_preproc_ok; then : 6738 break 6739fi 6740 6741 done 6742 ac_cv_prog_CPP=$CPP 6743 6744fi 6745 CPP=$ac_cv_prog_CPP 6746else 6747 ac_cv_prog_CPP=$CPP 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6750$as_echo "$CPP" >&6; } 6751ac_preproc_ok=false 6752for ac_c_preproc_warn_flag in '' yes 6753do 6754 # Use a header file that comes with gcc, so configuring glibc 6755 # with a fresh cross-compiler works. 6756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6757 # <limits.h> exists even on freestanding compilers. 6758 # On the NeXT, cc -E runs the code through the compiler's parser, 6759 # not just through cpp. "Syntax error" is here to catch this case. 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761/* end confdefs.h. */ 6762#ifdef __STDC__ 6763# include <limits.h> 6764#else 6765# include <assert.h> 6766#endif 6767 Syntax error 6768_ACEOF 6769if ac_fn_c_try_cpp "$LINENO"; then : 6770 6771else 6772 # Broken: fails on valid input. 6773continue 6774fi 6775rm -f conftest.err conftest.i conftest.$ac_ext 6776 6777 # OK, works on sane cases. Now check whether nonexistent headers 6778 # can be detected and how. 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781#include <ac_nonexistent.h> 6782_ACEOF 6783if ac_fn_c_try_cpp "$LINENO"; then : 6784 # Broken: success on invalid input. 6785continue 6786else 6787 # Passes both tests. 6788ac_preproc_ok=: 6789break 6790fi 6791rm -f conftest.err conftest.i conftest.$ac_ext 6792 6793done 6794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6795rm -f conftest.i conftest.err conftest.$ac_ext 6796if $ac_preproc_ok; then : 6797 6798else 6799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6801as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6802See \`config.log' for more details" "$LINENO" 5 ; } 6803fi 6804 6805ac_ext=c 6806ac_cpp='$CPP $CPPFLAGS' 6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6809ac_compiler_gnu=$ac_cv_c_compiler_gnu 6810 6811 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6813$as_echo_n "checking for ANSI C header files... " >&6; } 6814if test "${ac_cv_header_stdc+set}" = set; then : 6815 $as_echo_n "(cached) " >&6 6816else 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819#include <stdlib.h> 6820#include <stdarg.h> 6821#include <string.h> 6822#include <float.h> 6823 6824int 6825main () 6826{ 6827 6828 ; 6829 return 0; 6830} 6831_ACEOF 6832if ac_fn_c_try_compile "$LINENO"; then : 6833 ac_cv_header_stdc=yes 6834else 6835 ac_cv_header_stdc=no 6836fi 6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838 6839if test $ac_cv_header_stdc = yes; then 6840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843#include <string.h> 6844 6845_ACEOF 6846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6847 $EGREP "memchr" >/dev/null 2>&1; then : 6848 6849else 6850 ac_cv_header_stdc=no 6851fi 6852rm -f conftest* 6853 6854fi 6855 6856if test $ac_cv_header_stdc = yes; then 6857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860#include <stdlib.h> 6861 6862_ACEOF 6863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6864 $EGREP "free" >/dev/null 2>&1; then : 6865 6866else 6867 ac_cv_header_stdc=no 6868fi 6869rm -f conftest* 6870 6871fi 6872 6873if test $ac_cv_header_stdc = yes; then 6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6875 if test "$cross_compiling" = yes; then : 6876 : 6877else 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880#include <ctype.h> 6881#include <stdlib.h> 6882#if ((' ' & 0x0FF) == 0x020) 6883# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6884# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6885#else 6886# define ISLOWER(c) \ 6887 (('a' <= (c) && (c) <= 'i') \ 6888 || ('j' <= (c) && (c) <= 'r') \ 6889 || ('s' <= (c) && (c) <= 'z')) 6890# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6891#endif 6892 6893#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6894int 6895main () 6896{ 6897 int i; 6898 for (i = 0; i < 256; i++) 6899 if (XOR (islower (i), ISLOWER (i)) 6900 || toupper (i) != TOUPPER (i)) 6901 return 2; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_run "$LINENO"; then : 6906 6907else 6908 ac_cv_header_stdc=no 6909fi 6910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6911 conftest.$ac_objext conftest.beam conftest.$ac_ext 6912fi 6913 6914fi 6915fi 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6917$as_echo "$ac_cv_header_stdc" >&6; } 6918if test $ac_cv_header_stdc = yes; then 6919 6920$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6921 6922fi 6923 6924# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6925for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6926 inttypes.h stdint.h unistd.h 6927do : 6928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6929ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6930" 6931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6932 cat >>confdefs.h <<_ACEOF 6933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6934_ACEOF 6935 6936fi 6937 6938done 6939 6940 6941for ac_header in dlfcn.h 6942do : 6943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6944" 6945if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6946 cat >>confdefs.h <<_ACEOF 6947#define HAVE_DLFCN_H 1 6948_ACEOF 6949 6950fi 6951 6952done 6953 6954 6955 6956# Set options 6957 6958 6959 6960 enable_dlopen=no 6961 6962 6963 enable_win32_dll=no 6964 6965 6966 # Check whether --enable-shared was given. 6967if test "${enable_shared+set}" = set; then : 6968 enableval=$enable_shared; p=${PACKAGE-default} 6969 case $enableval in 6970 yes) enable_shared=yes ;; 6971 no) enable_shared=no ;; 6972 *) 6973 enable_shared=no 6974 # Look at the argument we got. We use all the common list separators. 6975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6976 for pkg in $enableval; do 6977 IFS="$lt_save_ifs" 6978 if test "X$pkg" = "X$p"; then 6979 enable_shared=yes 6980 fi 6981 done 6982 IFS="$lt_save_ifs" 6983 ;; 6984 esac 6985else 6986 enable_shared=yes 6987fi 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 # Check whether --enable-static was given. 6998if test "${enable_static+set}" = set; then : 6999 enableval=$enable_static; p=${PACKAGE-default} 7000 case $enableval in 7001 yes) enable_static=yes ;; 7002 no) enable_static=no ;; 7003 *) 7004 enable_static=no 7005 # Look at the argument we got. We use all the common list separators. 7006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7007 for pkg in $enableval; do 7008 IFS="$lt_save_ifs" 7009 if test "X$pkg" = "X$p"; then 7010 enable_static=yes 7011 fi 7012 done 7013 IFS="$lt_save_ifs" 7014 ;; 7015 esac 7016else 7017 enable_static=yes 7018fi 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029# Check whether --with-pic was given. 7030if test "${with_pic+set}" = set; then : 7031 withval=$with_pic; pic_mode="$withval" 7032else 7033 pic_mode=default 7034fi 7035 7036 7037test -z "$pic_mode" && pic_mode=default 7038 7039 7040 7041 7042 7043 7044 7045 # Check whether --enable-fast-install was given. 7046if test "${enable_fast_install+set}" = set; then : 7047 enableval=$enable_fast_install; p=${PACKAGE-default} 7048 case $enableval in 7049 yes) enable_fast_install=yes ;; 7050 no) enable_fast_install=no ;; 7051 *) 7052 enable_fast_install=no 7053 # Look at the argument we got. We use all the common list separators. 7054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7055 for pkg in $enableval; do 7056 IFS="$lt_save_ifs" 7057 if test "X$pkg" = "X$p"; then 7058 enable_fast_install=yes 7059 fi 7060 done 7061 IFS="$lt_save_ifs" 7062 ;; 7063 esac 7064else 7065 enable_fast_install=yes 7066fi 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078# This can be used to rebuild libtool when needed 7079LIBTOOL_DEPS="$ltmain" 7080 7081# Always use our own libtool. 7082LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108test -z "$LN_S" && LN_S="ln -s" 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123if test -n "${ZSH_VERSION+set}" ; then 7124 setopt NO_GLOB_SUBST 7125fi 7126 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7128$as_echo_n "checking for objdir... " >&6; } 7129if test "${lt_cv_objdir+set}" = set; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 rm -f .libs 2>/dev/null 7133mkdir .libs 2>/dev/null 7134if test -d .libs; then 7135 lt_cv_objdir=.libs 7136else 7137 # MS-DOS does not allow filenames that begin with a dot. 7138 lt_cv_objdir=_libs 7139fi 7140rmdir .libs 2>/dev/null 7141fi 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7143$as_echo "$lt_cv_objdir" >&6; } 7144objdir=$lt_cv_objdir 7145 7146 7147 7148 7149 7150cat >>confdefs.h <<_ACEOF 7151#define LT_OBJDIR "$lt_cv_objdir/" 7152_ACEOF 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170case $host_os in 7171aix3*) 7172 # AIX sometimes has problems with the GCC collect2 program. For some 7173 # reason, if we set the COLLECT_NAMES environment variable, the problems 7174 # vanish in a puff of smoke. 7175 if test "X${COLLECT_NAMES+set}" != Xset; then 7176 COLLECT_NAMES= 7177 export COLLECT_NAMES 7178 fi 7179 ;; 7180esac 7181 7182# Sed substitution that helps us do robust quoting. It backslashifies 7183# metacharacters that are still active within double-quoted strings. 7184sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7185 7186# Same as above, but do not quote variable references. 7187double_quote_subst='s/\(["`\\]\)/\\\1/g' 7188 7189# Sed substitution to delay expansion of an escaped shell variable in a 7190# double_quote_subst'ed string. 7191delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7192 7193# Sed substitution to delay expansion of an escaped single quote. 7194delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7195 7196# Sed substitution to avoid accidental globbing in evaled expressions 7197no_glob_subst='s/\*/\\\*/g' 7198 7199# Global variables: 7200ofile=libtool 7201can_build_shared=yes 7202 7203# All known linkers require a `.a' archive for static linking (except MSVC, 7204# which needs '.lib'). 7205libext=a 7206 7207with_gnu_ld="$lt_cv_prog_gnu_ld" 7208 7209old_CC="$CC" 7210old_CFLAGS="$CFLAGS" 7211 7212# Set sane defaults for various variables 7213test -z "$CC" && CC=cc 7214test -z "$LTCC" && LTCC=$CC 7215test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7216test -z "$LD" && LD=ld 7217test -z "$ac_objext" && ac_objext=o 7218 7219for cc_temp in $compiler""; do 7220 case $cc_temp in 7221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7223 \-*) ;; 7224 *) break;; 7225 esac 7226done 7227cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7228 7229 7230# Only perform the check for file, if the check method requires it 7231test -z "$MAGIC_CMD" && MAGIC_CMD=file 7232case $deplibs_check_method in 7233file_magic*) 7234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7236$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 case $MAGIC_CMD in 7241[\\/*] | ?:[\\/]*) 7242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7243 ;; 7244*) 7245 lt_save_MAGIC_CMD="$MAGIC_CMD" 7246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7248 for ac_dir in $ac_dummy; do 7249 IFS="$lt_save_ifs" 7250 test -z "$ac_dir" && ac_dir=. 7251 if test -f $ac_dir/${ac_tool_prefix}file; then 7252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7253 if test -n "$file_magic_test_file"; then 7254 case $deplibs_check_method in 7255 "file_magic "*) 7256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7259 $EGREP "$file_magic_regex" > /dev/null; then 7260 : 7261 else 7262 cat <<_LT_EOF 1>&2 7263 7264*** Warning: the command libtool uses to detect shared libraries, 7265*** $file_magic_cmd, produces output that libtool cannot recognize. 7266*** The result is that libtool may fail to recognize shared libraries 7267*** as such. This will affect the creation of libtool libraries that 7268*** depend on shared libraries, but programs linked with such libtool 7269*** libraries will work regardless of this problem. Nevertheless, you 7270*** may want to report the problem to your system manager and/or to 7271*** bug-libtool@gnu.org 7272 7273_LT_EOF 7274 fi ;; 7275 esac 7276 fi 7277 break 7278 fi 7279 done 7280 IFS="$lt_save_ifs" 7281 MAGIC_CMD="$lt_save_MAGIC_CMD" 7282 ;; 7283esac 7284fi 7285 7286MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7287if test -n "$MAGIC_CMD"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7289$as_echo "$MAGIC_CMD" >&6; } 7290else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292$as_echo "no" >&6; } 7293fi 7294 7295 7296 7297 7298 7299if test -z "$lt_cv_path_MAGIC_CMD"; then 7300 if test -n "$ac_tool_prefix"; then 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7302$as_echo_n "checking for file... " >&6; } 7303if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 case $MAGIC_CMD in 7307[\\/*] | ?:[\\/]*) 7308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7309 ;; 7310*) 7311 lt_save_MAGIC_CMD="$MAGIC_CMD" 7312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7314 for ac_dir in $ac_dummy; do 7315 IFS="$lt_save_ifs" 7316 test -z "$ac_dir" && ac_dir=. 7317 if test -f $ac_dir/file; then 7318 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7319 if test -n "$file_magic_test_file"; then 7320 case $deplibs_check_method in 7321 "file_magic "*) 7322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7325 $EGREP "$file_magic_regex" > /dev/null; then 7326 : 7327 else 7328 cat <<_LT_EOF 1>&2 7329 7330*** Warning: the command libtool uses to detect shared libraries, 7331*** $file_magic_cmd, produces output that libtool cannot recognize. 7332*** The result is that libtool may fail to recognize shared libraries 7333*** as such. This will affect the creation of libtool libraries that 7334*** depend on shared libraries, but programs linked with such libtool 7335*** libraries will work regardless of this problem. Nevertheless, you 7336*** may want to report the problem to your system manager and/or to 7337*** bug-libtool@gnu.org 7338 7339_LT_EOF 7340 fi ;; 7341 esac 7342 fi 7343 break 7344 fi 7345 done 7346 IFS="$lt_save_ifs" 7347 MAGIC_CMD="$lt_save_MAGIC_CMD" 7348 ;; 7349esac 7350fi 7351 7352MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7353if test -n "$MAGIC_CMD"; then 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7355$as_echo "$MAGIC_CMD" >&6; } 7356else 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7358$as_echo "no" >&6; } 7359fi 7360 7361 7362 else 7363 MAGIC_CMD=: 7364 fi 7365fi 7366 7367 fi 7368 ;; 7369esac 7370 7371# Use C for the default configuration in the libtool script 7372 7373lt_save_CC="$CC" 7374ac_ext=c 7375ac_cpp='$CPP $CPPFLAGS' 7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7378ac_compiler_gnu=$ac_cv_c_compiler_gnu 7379 7380 7381# Source file extension for C test sources. 7382ac_ext=c 7383 7384# Object file extension for compiled C test sources. 7385objext=o 7386objext=$objext 7387 7388# Code to be used in simple compile tests 7389lt_simple_compile_test_code="int some_variable = 0;" 7390 7391# Code to be used in simple link tests 7392lt_simple_link_test_code='int main(){return(0);}' 7393 7394 7395 7396 7397 7398 7399 7400# If no C compiler was specified, use CC. 7401LTCC=${LTCC-"$CC"} 7402 7403# If no C compiler flags were specified, use CFLAGS. 7404LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7405 7406# Allow CC to be a program name with arguments. 7407compiler=$CC 7408 7409# Save the default compiler, since it gets overwritten when the other 7410# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7411compiler_DEFAULT=$CC 7412 7413# save warnings/boilerplate of simple test code 7414ac_outfile=conftest.$ac_objext 7415echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7416eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7417_lt_compiler_boilerplate=`cat conftest.err` 7418$RM conftest* 7419 7420ac_outfile=conftest.$ac_objext 7421echo "$lt_simple_link_test_code" >conftest.$ac_ext 7422eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7423_lt_linker_boilerplate=`cat conftest.err` 7424$RM -r conftest* 7425 7426 7427## CAVEAT EMPTOR: 7428## There is no encapsulation within the following macros, do not change 7429## the running order or otherwise move them around unless you know exactly 7430## what you are doing... 7431if test -n "$compiler"; then 7432 7433lt_prog_compiler_no_builtin_flag= 7434 7435if test "$GCC" = yes; then 7436 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7437 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7439$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7440if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 lt_cv_prog_compiler_rtti_exceptions=no 7444 ac_outfile=conftest.$ac_objext 7445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7446 lt_compiler_flag="-fno-rtti -fno-exceptions" 7447 # Insert the option either (1) after the last *FLAGS variable, or 7448 # (2) before a word containing "conftest.", or (3) at the end. 7449 # Note that $ac_compile itself does not contain backslashes and begins 7450 # with a dollar sign (not a hyphen), so the echo should work correctly. 7451 # The option is referenced via a variable to avoid confusing sed. 7452 lt_compile=`echo "$ac_compile" | $SED \ 7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7455 -e 's:$: $lt_compiler_flag:'` 7456 (eval echo "\"\$as_me:7456: $lt_compile\"" >&5) 7457 (eval "$lt_compile" 2>conftest.err) 7458 ac_status=$? 7459 cat conftest.err >&5 7460 echo "$as_me:7460: \$? = $ac_status" >&5 7461 if (exit $ac_status) && test -s "$ac_outfile"; then 7462 # The compiler can only warn and ignore the option if not recognized 7463 # So say no if there are warnings other than the usual output. 7464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7467 lt_cv_prog_compiler_rtti_exceptions=yes 7468 fi 7469 fi 7470 $RM conftest* 7471 7472fi 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7474$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7475 7476if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7478else 7479 : 7480fi 7481 7482fi 7483 7484 7485 7486 7487 7488 7489 lt_prog_compiler_wl= 7490lt_prog_compiler_pic= 7491lt_prog_compiler_static= 7492 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7494$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7495 7496 if test "$GCC" = yes; then 7497 lt_prog_compiler_wl='-Wl,' 7498 lt_prog_compiler_static='-static' 7499 7500 case $host_os in 7501 aix*) 7502 # All AIX code is PIC. 7503 if test "$host_cpu" = ia64; then 7504 # AIX 5 now supports IA64 processor 7505 lt_prog_compiler_static='-Bstatic' 7506 fi 7507 ;; 7508 7509 amigaos*) 7510 case $host_cpu in 7511 powerpc) 7512 # see comment about AmigaOS4 .so support 7513 lt_prog_compiler_pic='-fPIC' 7514 ;; 7515 m68k) 7516 # FIXME: we need at least 68020 code to build shared libraries, but 7517 # adding the `-m68020' flag to GCC prevents building anything better, 7518 # like `-m68040'. 7519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7520 ;; 7521 esac 7522 ;; 7523 7524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7525 # PIC is the default for these OSes. 7526 ;; 7527 7528 mingw* | cygwin* | pw32* | os2* | cegcc*) 7529 # This hack is so that the source file can tell whether it is being 7530 # built for inclusion in a dll (and should export symbols for example). 7531 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7532 # (--disable-auto-import) libraries 7533 lt_prog_compiler_pic='-DDLL_EXPORT' 7534 ;; 7535 7536 darwin* | rhapsody*) 7537 # PIC is the default on this platform 7538 # Common symbols not allowed in MH_DYLIB files 7539 lt_prog_compiler_pic='-fno-common' 7540 ;; 7541 7542 hpux*) 7543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7545 # sets the default TLS model and affects inlining. 7546 case $host_cpu in 7547 hppa*64*) 7548 # +Z the default 7549 ;; 7550 *) 7551 lt_prog_compiler_pic='-fPIC' 7552 ;; 7553 esac 7554 ;; 7555 7556 interix[3-9]*) 7557 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7558 # Instead, we relocate shared libraries at runtime. 7559 ;; 7560 7561 msdosdjgpp*) 7562 # Just because we use GCC doesn't mean we suddenly get shared libraries 7563 # on systems that don't support them. 7564 lt_prog_compiler_can_build_shared=no 7565 enable_shared=no 7566 ;; 7567 7568 *nto* | *qnx*) 7569 # QNX uses GNU C++, but need to define -shared option too, otherwise 7570 # it will coredump. 7571 lt_prog_compiler_pic='-fPIC -shared' 7572 ;; 7573 7574 sysv4*MP*) 7575 if test -d /usr/nec; then 7576 lt_prog_compiler_pic=-Kconform_pic 7577 fi 7578 ;; 7579 7580 *) 7581 lt_prog_compiler_pic='-fPIC' 7582 ;; 7583 esac 7584 else 7585 # PORTME Check for flag to pass linker flags through the system compiler. 7586 case $host_os in 7587 aix*) 7588 lt_prog_compiler_wl='-Wl,' 7589 if test "$host_cpu" = ia64; then 7590 # AIX 5 now supports IA64 processor 7591 lt_prog_compiler_static='-Bstatic' 7592 else 7593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7594 fi 7595 ;; 7596 7597 mingw* | cygwin* | pw32* | os2* | cegcc*) 7598 # This hack is so that the source file can tell whether it is being 7599 # built for inclusion in a dll (and should export symbols for example). 7600 lt_prog_compiler_pic='-DDLL_EXPORT' 7601 ;; 7602 7603 hpux9* | hpux10* | hpux11*) 7604 lt_prog_compiler_wl='-Wl,' 7605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7606 # not for PA HP-UX. 7607 case $host_cpu in 7608 hppa*64*|ia64*) 7609 # +Z the default 7610 ;; 7611 *) 7612 lt_prog_compiler_pic='+Z' 7613 ;; 7614 esac 7615 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7616 lt_prog_compiler_static='${wl}-a ${wl}archive' 7617 ;; 7618 7619 irix5* | irix6* | nonstopux*) 7620 lt_prog_compiler_wl='-Wl,' 7621 # PIC (with -KPIC) is the default. 7622 lt_prog_compiler_static='-non_shared' 7623 ;; 7624 7625 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7626 case $cc_basename in 7627 # old Intel for x86_64 which still supported -KPIC. 7628 ecc*) 7629 lt_prog_compiler_wl='-Wl,' 7630 lt_prog_compiler_pic='-KPIC' 7631 lt_prog_compiler_static='-static' 7632 ;; 7633 # icc used to be incompatible with GCC. 7634 # ICC 10 doesn't accept -KPIC any more. 7635 icc* | ifort*) 7636 lt_prog_compiler_wl='-Wl,' 7637 lt_prog_compiler_pic='-fPIC' 7638 lt_prog_compiler_static='-static' 7639 ;; 7640 # Lahey Fortran 8.1. 7641 lf95*) 7642 lt_prog_compiler_wl='-Wl,' 7643 lt_prog_compiler_pic='--shared' 7644 lt_prog_compiler_static='--static' 7645 ;; 7646 pgcc* | pgf77* | pgf90* | pgf95*) 7647 # Portland Group compilers (*not* the Pentium gcc compiler, 7648 # which looks to be a dead project) 7649 lt_prog_compiler_wl='-Wl,' 7650 lt_prog_compiler_pic='-fpic' 7651 lt_prog_compiler_static='-Bstatic' 7652 ;; 7653 ccc*) 7654 lt_prog_compiler_wl='-Wl,' 7655 # All Alpha code is PIC. 7656 lt_prog_compiler_static='-non_shared' 7657 ;; 7658 xl*) 7659 # IBM XL C 8.0/Fortran 10.1 on PPC 7660 lt_prog_compiler_wl='-Wl,' 7661 lt_prog_compiler_pic='-qpic' 7662 lt_prog_compiler_static='-qstaticlink' 7663 ;; 7664 *) 7665 case `$CC -V 2>&1 | sed 5q` in 7666 *Sun\ C*) 7667 # Sun C 5.9 7668 lt_prog_compiler_pic='-KPIC' 7669 lt_prog_compiler_static='-Bstatic' 7670 lt_prog_compiler_wl='-Wl,' 7671 ;; 7672 *Sun\ F*) 7673 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7674 lt_prog_compiler_pic='-KPIC' 7675 lt_prog_compiler_static='-Bstatic' 7676 lt_prog_compiler_wl='' 7677 ;; 7678 esac 7679 ;; 7680 esac 7681 ;; 7682 7683 newsos6) 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 ;; 7687 7688 *nto* | *qnx*) 7689 # QNX uses GNU C++, but need to define -shared option too, otherwise 7690 # it will coredump. 7691 lt_prog_compiler_pic='-fPIC -shared' 7692 ;; 7693 7694 osf3* | osf4* | osf5*) 7695 lt_prog_compiler_wl='-Wl,' 7696 # All OSF/1 code is PIC. 7697 lt_prog_compiler_static='-non_shared' 7698 ;; 7699 7700 rdos*) 7701 lt_prog_compiler_static='-non_shared' 7702 ;; 7703 7704 solaris*) 7705 lt_prog_compiler_pic='-KPIC' 7706 lt_prog_compiler_static='-Bstatic' 7707 case $cc_basename in 7708 f77* | f90* | f95*) 7709 lt_prog_compiler_wl='-Qoption ld ';; 7710 *) 7711 lt_prog_compiler_wl='-Wl,';; 7712 esac 7713 ;; 7714 7715 sunos4*) 7716 lt_prog_compiler_wl='-Qoption ld ' 7717 lt_prog_compiler_pic='-PIC' 7718 lt_prog_compiler_static='-Bstatic' 7719 ;; 7720 7721 sysv4 | sysv4.2uw2* | sysv4.3*) 7722 lt_prog_compiler_wl='-Wl,' 7723 lt_prog_compiler_pic='-KPIC' 7724 lt_prog_compiler_static='-Bstatic' 7725 ;; 7726 7727 sysv4*MP*) 7728 if test -d /usr/nec ;then 7729 lt_prog_compiler_pic='-Kconform_pic' 7730 lt_prog_compiler_static='-Bstatic' 7731 fi 7732 ;; 7733 7734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7735 lt_prog_compiler_wl='-Wl,' 7736 lt_prog_compiler_pic='-KPIC' 7737 lt_prog_compiler_static='-Bstatic' 7738 ;; 7739 7740 unicos*) 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_can_build_shared=no 7743 ;; 7744 7745 uts4*) 7746 lt_prog_compiler_pic='-pic' 7747 lt_prog_compiler_static='-Bstatic' 7748 ;; 7749 7750 *) 7751 lt_prog_compiler_can_build_shared=no 7752 ;; 7753 esac 7754 fi 7755 7756case $host_os in 7757 # For platforms which do not support PIC, -DPIC is meaningless: 7758 *djgpp*) 7759 lt_prog_compiler_pic= 7760 ;; 7761 *) 7762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7763 ;; 7764esac 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7766$as_echo "$lt_prog_compiler_pic" >&6; } 7767 7768 7769 7770 7771 7772 7773# 7774# Check to make sure the PIC flag actually works. 7775# 7776if test -n "$lt_prog_compiler_pic"; then 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7778$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7779if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 lt_cv_prog_compiler_pic_works=no 7783 ac_outfile=conftest.$ac_objext 7784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7786 # Insert the option either (1) after the last *FLAGS variable, or 7787 # (2) before a word containing "conftest.", or (3) at the end. 7788 # Note that $ac_compile itself does not contain backslashes and begins 7789 # with a dollar sign (not a hyphen), so the echo should work correctly. 7790 # The option is referenced via a variable to avoid confusing sed. 7791 lt_compile=`echo "$ac_compile" | $SED \ 7792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7794 -e 's:$: $lt_compiler_flag:'` 7795 (eval echo "\"\$as_me:7795: $lt_compile\"" >&5) 7796 (eval "$lt_compile" 2>conftest.err) 7797 ac_status=$? 7798 cat conftest.err >&5 7799 echo "$as_me:7799: \$? = $ac_status" >&5 7800 if (exit $ac_status) && test -s "$ac_outfile"; then 7801 # The compiler can only warn and ignore the option if not recognized 7802 # So say no if there are warnings other than the usual output. 7803 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7806 lt_cv_prog_compiler_pic_works=yes 7807 fi 7808 fi 7809 $RM conftest* 7810 7811fi 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7813$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7814 7815if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7816 case $lt_prog_compiler_pic in 7817 "" | " "*) ;; 7818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7819 esac 7820else 7821 lt_prog_compiler_pic= 7822 lt_prog_compiler_can_build_shared=no 7823fi 7824 7825fi 7826 7827 7828 7829 7830 7831 7832# 7833# Check to make sure the static flag actually works. 7834# 7835wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7837$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7838if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 lt_cv_prog_compiler_static_works=no 7842 save_LDFLAGS="$LDFLAGS" 7843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7844 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7846 # The linker can only warn and ignore the option if not recognized 7847 # So say no if there are warnings 7848 if test -s conftest.err; then 7849 # Append any errors to the config.log. 7850 cat conftest.err 1>&5 7851 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7853 if diff conftest.exp conftest.er2 >/dev/null; then 7854 lt_cv_prog_compiler_static_works=yes 7855 fi 7856 else 7857 lt_cv_prog_compiler_static_works=yes 7858 fi 7859 fi 7860 $RM -r conftest* 7861 LDFLAGS="$save_LDFLAGS" 7862 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7865$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7866 7867if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7868 : 7869else 7870 lt_prog_compiler_static= 7871fi 7872 7873 7874 7875 7876 7877 7878 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7880$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7881if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7882 $as_echo_n "(cached) " >&6 7883else 7884 lt_cv_prog_compiler_c_o=no 7885 $RM -r conftest 2>/dev/null 7886 mkdir conftest 7887 cd conftest 7888 mkdir out 7889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7890 7891 lt_compiler_flag="-o out/conftest2.$ac_objext" 7892 # Insert the option either (1) after the last *FLAGS variable, or 7893 # (2) before a word containing "conftest.", or (3) at the end. 7894 # Note that $ac_compile itself does not contain backslashes and begins 7895 # with a dollar sign (not a hyphen), so the echo should work correctly. 7896 lt_compile=`echo "$ac_compile" | $SED \ 7897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7899 -e 's:$: $lt_compiler_flag:'` 7900 (eval echo "\"\$as_me:7900: $lt_compile\"" >&5) 7901 (eval "$lt_compile" 2>out/conftest.err) 7902 ac_status=$? 7903 cat out/conftest.err >&5 7904 echo "$as_me:7904: \$? = $ac_status" >&5 7905 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7906 then 7907 # The compiler can only warn and ignore the option if not recognized 7908 # So say no if there are warnings 7909 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7912 lt_cv_prog_compiler_c_o=yes 7913 fi 7914 fi 7915 chmod u+w . 2>&5 7916 $RM conftest* 7917 # SGI C++ compiler will create directory out/ii_files/ for 7918 # template instantiation 7919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7920 $RM out/* && rmdir out 7921 cd .. 7922 $RM -r conftest 7923 $RM conftest* 7924 7925fi 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7927$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7928 7929 7930 7931 7932 7933 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7936if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7937 $as_echo_n "(cached) " >&6 7938else 7939 lt_cv_prog_compiler_c_o=no 7940 $RM -r conftest 2>/dev/null 7941 mkdir conftest 7942 cd conftest 7943 mkdir out 7944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7945 7946 lt_compiler_flag="-o out/conftest2.$ac_objext" 7947 # Insert the option either (1) after the last *FLAGS variable, or 7948 # (2) before a word containing "conftest.", or (3) at the end. 7949 # Note that $ac_compile itself does not contain backslashes and begins 7950 # with a dollar sign (not a hyphen), so the echo should work correctly. 7951 lt_compile=`echo "$ac_compile" | $SED \ 7952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7954 -e 's:$: $lt_compiler_flag:'` 7955 (eval echo "\"\$as_me:7955: $lt_compile\"" >&5) 7956 (eval "$lt_compile" 2>out/conftest.err) 7957 ac_status=$? 7958 cat out/conftest.err >&5 7959 echo "$as_me:7959: \$? = $ac_status" >&5 7960 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7961 then 7962 # The compiler can only warn and ignore the option if not recognized 7963 # So say no if there are warnings 7964 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7967 lt_cv_prog_compiler_c_o=yes 7968 fi 7969 fi 7970 chmod u+w . 2>&5 7971 $RM conftest* 7972 # SGI C++ compiler will create directory out/ii_files/ for 7973 # template instantiation 7974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7975 $RM out/* && rmdir out 7976 cd .. 7977 $RM -r conftest 7978 $RM conftest* 7979 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7982$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7983 7984 7985 7986 7987hard_links="nottested" 7988if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7989 # do not overwrite the value of need_locks provided by the user 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7991$as_echo_n "checking if we can lock with hard links... " >&6; } 7992 hard_links=yes 7993 $RM conftest* 7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7995 touch conftest.a 7996 ln conftest.a conftest.b 2>&5 || hard_links=no 7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7999$as_echo "$hard_links" >&6; } 8000 if test "$hard_links" = no; then 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8002$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8003 need_locks=warn 8004 fi 8005else 8006 need_locks=no 8007fi 8008 8009 8010 8011 8012 8013 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8015$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8016 8017 runpath_var= 8018 allow_undefined_flag= 8019 always_export_symbols=no 8020 archive_cmds= 8021 archive_expsym_cmds= 8022 compiler_needs_object=no 8023 enable_shared_with_static_runtimes=no 8024 export_dynamic_flag_spec= 8025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8026 hardcode_automatic=no 8027 hardcode_direct=no 8028 hardcode_direct_absolute=no 8029 hardcode_libdir_flag_spec= 8030 hardcode_libdir_flag_spec_ld= 8031 hardcode_libdir_separator= 8032 hardcode_minus_L=no 8033 hardcode_shlibpath_var=unsupported 8034 inherit_rpath=no 8035 link_all_deplibs=unknown 8036 module_cmds= 8037 module_expsym_cmds= 8038 old_archive_from_new_cmds= 8039 old_archive_from_expsyms_cmds= 8040 thread_safe_flag_spec= 8041 whole_archive_flag_spec= 8042 # include_expsyms should be a list of space-separated symbols to be *always* 8043 # included in the symbol list 8044 include_expsyms= 8045 # exclude_expsyms can be an extended regexp of symbols to exclude 8046 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8048 # as well as any symbol that contains `d'. 8049 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8051 # platforms (ab)use it in PIC code, but their linkers get confused if 8052 # the symbol is explicitly referenced. Since portable code cannot 8053 # rely on this symbol name, it's probably fine to never include it in 8054 # preloaded symbol tables. 8055 # Exclude shared library initialization/finalization symbols. 8056 extract_expsyms_cmds= 8057 8058 case $host_os in 8059 cygwin* | mingw* | pw32* | cegcc*) 8060 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8061 # When not using gcc, we currently assume that we are using 8062 # Microsoft Visual C++. 8063 if test "$GCC" != yes; then 8064 with_gnu_ld=no 8065 fi 8066 ;; 8067 interix*) 8068 # we just hope/assume this is gcc and not c89 (= MSVC++) 8069 with_gnu_ld=yes 8070 ;; 8071 openbsd*) 8072 with_gnu_ld=no 8073 ;; 8074 linux* | k*bsd*-gnu) 8075 link_all_deplibs=no 8076 ;; 8077 esac 8078 8079 ld_shlibs=yes 8080 if test "$with_gnu_ld" = yes; then 8081 # If archive_cmds runs LD, not CC, wlarc should be empty 8082 wlarc='${wl}' 8083 8084 # Set some defaults for GNU ld with shared library support. These 8085 # are reset later if shared libraries are not supported. Putting them 8086 # here allows them to be overridden if necessary. 8087 runpath_var=LD_RUN_PATH 8088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8089 export_dynamic_flag_spec='${wl}--export-dynamic' 8090 # ancient GNU ld didn't support --whole-archive et. al. 8091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8093 else 8094 whole_archive_flag_spec= 8095 fi 8096 supports_anon_versioning=no 8097 case `$LD -v 2>&1` in 8098 *GNU\ gold*) supports_anon_versioning=yes ;; 8099 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8102 *\ 2.11.*) ;; # other 2.11 versions 8103 *) supports_anon_versioning=yes ;; 8104 esac 8105 8106 # See if GNU ld supports shared libraries. 8107 case $host_os in 8108 aix[3-9]*) 8109 # On AIX/PPC, the GNU linker is very broken 8110 if test "$host_cpu" != ia64; then 8111 ld_shlibs=no 8112 cat <<_LT_EOF 1>&2 8113 8114*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8115*** to be unable to reliably create shared libraries on AIX. 8116*** Therefore, libtool is disabling shared libraries support. If you 8117*** really care for shared libraries, you may want to modify your PATH 8118*** so that a non-GNU linker is found, and then restart. 8119 8120_LT_EOF 8121 fi 8122 ;; 8123 8124 amigaos*) 8125 case $host_cpu in 8126 powerpc) 8127 # see comment about AmigaOS4 .so support 8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8129 archive_expsym_cmds='' 8130 ;; 8131 m68k) 8132 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)' 8133 hardcode_libdir_flag_spec='-L$libdir' 8134 hardcode_minus_L=yes 8135 ;; 8136 esac 8137 ;; 8138 8139 beos*) 8140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8141 allow_undefined_flag=unsupported 8142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8143 # support --undefined. This deserves some investigation. FIXME 8144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8145 else 8146 ld_shlibs=no 8147 fi 8148 ;; 8149 8150 cygwin* | mingw* | pw32* | cegcc*) 8151 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8152 # as there is no search path for DLLs. 8153 hardcode_libdir_flag_spec='-L$libdir' 8154 allow_undefined_flag=unsupported 8155 always_export_symbols=no 8156 enable_shared_with_static_runtimes=yes 8157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8158 8159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8161 # If the export-symbols file already is a .def file (1st line 8162 # is EXPORTS), use it as is; otherwise, prepend... 8163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8164 cp $export_symbols $output_objdir/$soname.def; 8165 else 8166 echo EXPORTS > $output_objdir/$soname.def; 8167 cat $export_symbols >> $output_objdir/$soname.def; 8168 fi~ 8169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8170 else 8171 ld_shlibs=no 8172 fi 8173 ;; 8174 8175 interix[3-9]*) 8176 hardcode_direct=no 8177 hardcode_shlibpath_var=no 8178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8179 export_dynamic_flag_spec='${wl}-E' 8180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8181 # Instead, shared libraries are loaded at an image base (0x10000000 by 8182 # default) and relocated if they conflict, which is a slow very memory 8183 # consuming and fragmenting process. To avoid this, we pick a random, 8184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8185 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8187 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' 8188 ;; 8189 8190 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8191 tmp_diet=no 8192 if test "$host_os" = linux-dietlibc; then 8193 case $cc_basename in 8194 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8195 esac 8196 fi 8197 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8198 && test "$tmp_diet" = no 8199 then 8200 tmp_addflag= 8201 tmp_sharedflag='-shared' 8202 case $cc_basename,$host_cpu in 8203 pgcc*) # Portland Group C compiler 8204 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8205 tmp_addflag=' $pic_flag' 8206 ;; 8207 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8208 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' 8209 tmp_addflag=' $pic_flag -Mnomain' ;; 8210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8211 tmp_addflag=' -i_dynamic' ;; 8212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8213 tmp_addflag=' -i_dynamic -nofor_main' ;; 8214 ifc* | ifort*) # Intel Fortran compiler 8215 tmp_addflag=' -nofor_main' ;; 8216 lf95*) # Lahey Fortran 8.1 8217 whole_archive_flag_spec= 8218 tmp_sharedflag='--shared' ;; 8219 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8220 tmp_sharedflag='-qmkshrobj' 8221 tmp_addflag= ;; 8222 esac 8223 case `$CC -V 2>&1 | sed 5q` in 8224 *Sun\ C*) # Sun C 5.9 8225 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' 8226 compiler_needs_object=yes 8227 tmp_sharedflag='-G' ;; 8228 *Sun\ F*) # Sun Fortran 8.3 8229 tmp_sharedflag='-G' ;; 8230 esac 8231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8232 8233 if test "x$supports_anon_versioning" = xyes; then 8234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8236 echo "local: *; };" >> $output_objdir/$libname.ver~ 8237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8238 fi 8239 8240 case $cc_basename in 8241 xlf*) 8242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8243 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8244 hardcode_libdir_flag_spec= 8245 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8246 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8247 if test "x$supports_anon_versioning" = xyes; then 8248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8250 echo "local: *; };" >> $output_objdir/$libname.ver~ 8251 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8252 fi 8253 ;; 8254 esac 8255 else 8256 ld_shlibs=no 8257 fi 8258 ;; 8259 8260 netbsd* | netbsdelf*-gnu) 8261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8263 wlarc= 8264 else 8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8267 fi 8268 ;; 8269 8270 solaris*) 8271 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8272 ld_shlibs=no 8273 cat <<_LT_EOF 1>&2 8274 8275*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8276*** create shared libraries on Solaris systems. Therefore, libtool 8277*** is disabling shared libraries support. We urge you to upgrade GNU 8278*** binutils to release 2.9.1 or newer. Another option is to modify 8279*** your PATH or compiler configuration so that the native linker is 8280*** used, and then restart. 8281 8282_LT_EOF 8283 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8286 else 8287 ld_shlibs=no 8288 fi 8289 ;; 8290 8291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8292 case `$LD -v 2>&1` in 8293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8294 ld_shlibs=no 8295 cat <<_LT_EOF 1>&2 8296 8297*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8298*** reliably create shared libraries on SCO systems. Therefore, libtool 8299*** is disabling shared libraries support. We urge you to upgrade GNU 8300*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8301*** your PATH or compiler configuration so that the native linker is 8302*** used, and then restart. 8303 8304_LT_EOF 8305 ;; 8306 *) 8307 # For security reasons, it is highly recommended that you always 8308 # use absolute paths for naming shared libraries, and exclude the 8309 # DT_RUNPATH tag from executables and libraries. But doing so 8310 # requires that you compile everything twice, which is a pain. 8311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8315 else 8316 ld_shlibs=no 8317 fi 8318 ;; 8319 esac 8320 ;; 8321 8322 sunos4*) 8323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8324 wlarc= 8325 hardcode_direct=yes 8326 hardcode_shlibpath_var=no 8327 ;; 8328 8329 *) 8330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8333 else 8334 ld_shlibs=no 8335 fi 8336 ;; 8337 esac 8338 8339 if test "$ld_shlibs" = no; then 8340 runpath_var= 8341 hardcode_libdir_flag_spec= 8342 export_dynamic_flag_spec= 8343 whole_archive_flag_spec= 8344 fi 8345 else 8346 # PORTME fill in a description of your system's linker (not GNU ld) 8347 case $host_os in 8348 aix3*) 8349 allow_undefined_flag=unsupported 8350 always_export_symbols=yes 8351 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' 8352 # Note: this linker hardcodes the directories in LIBPATH if there 8353 # are no directories specified by -L. 8354 hardcode_minus_L=yes 8355 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8356 # Neither direct hardcoding nor static linking is supported with a 8357 # broken collect2. 8358 hardcode_direct=unsupported 8359 fi 8360 ;; 8361 8362 aix[4-9]*) 8363 if test "$host_cpu" = ia64; then 8364 # On IA64, the linker does run time linking by default, so we don't 8365 # have to do anything special. 8366 aix_use_runtimelinking=no 8367 exp_sym_flag='-Bexport' 8368 no_entry_flag="" 8369 else 8370 # If we're using GNU nm, then we don't want the "-C" option. 8371 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8372 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8373 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' 8374 else 8375 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' 8376 fi 8377 aix_use_runtimelinking=no 8378 8379 # Test if we are trying to use run time linking or normal 8380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8381 # need to do runtime linking. 8382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8383 for ld_flag in $LDFLAGS; do 8384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8385 aix_use_runtimelinking=yes 8386 break 8387 fi 8388 done 8389 ;; 8390 esac 8391 8392 exp_sym_flag='-bexport' 8393 no_entry_flag='-bnoentry' 8394 fi 8395 8396 # When large executables or shared objects are built, AIX ld can 8397 # have problems creating the table of contents. If linking a library 8398 # or program results in "error TOC overflow" add -mminimal-toc to 8399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8401 8402 archive_cmds='' 8403 hardcode_direct=yes 8404 hardcode_direct_absolute=yes 8405 hardcode_libdir_separator=':' 8406 link_all_deplibs=yes 8407 file_list_spec='${wl}-f,' 8408 8409 if test "$GCC" = yes; then 8410 case $host_os in aix4.[012]|aix4.[012].*) 8411 # We only want to do this on AIX 4.2 and lower, the check 8412 # below for broken collect2 doesn't work under 4.3+ 8413 collect2name=`${CC} -print-prog-name=collect2` 8414 if test -f "$collect2name" && 8415 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8416 then 8417 # We have reworked collect2 8418 : 8419 else 8420 # We have old collect2 8421 hardcode_direct=unsupported 8422 # It fails to find uninstalled libraries when the uninstalled 8423 # path is not listed in the libpath. Setting hardcode_minus_L 8424 # to unsupported forces relinking 8425 hardcode_minus_L=yes 8426 hardcode_libdir_flag_spec='-L$libdir' 8427 hardcode_libdir_separator= 8428 fi 8429 ;; 8430 esac 8431 shared_flag='-shared' 8432 if test "$aix_use_runtimelinking" = yes; then 8433 shared_flag="$shared_flag "'${wl}-G' 8434 fi 8435 link_all_deplibs=no 8436 else 8437 # not using gcc 8438 if test "$host_cpu" = ia64; then 8439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8440 # chokes on -Wl,-G. The following line is correct: 8441 shared_flag='-G' 8442 else 8443 if test "$aix_use_runtimelinking" = yes; then 8444 shared_flag='${wl}-G' 8445 else 8446 shared_flag='${wl}-bM:SRE' 8447 fi 8448 fi 8449 fi 8450 8451 export_dynamic_flag_spec='${wl}-bexpall' 8452 # It seems that -bexpall does not export symbols beginning with 8453 # underscore (_), so it is better to generate a list of symbols to export. 8454 always_export_symbols=yes 8455 if test "$aix_use_runtimelinking" = yes; then 8456 # Warning - without using the other runtime loading flags (-brtl), 8457 # -berok will link without error, but may produce a broken library. 8458 allow_undefined_flag='-berok' 8459 # Determine the default libpath from the value encoded in an 8460 # empty executable. 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463 8464int 8465main () 8466{ 8467 8468 ; 8469 return 0; 8470} 8471_ACEOF 8472if ac_fn_c_try_link "$LINENO"; then : 8473 8474lt_aix_libpath_sed=' 8475 /Import File Strings/,/^$/ { 8476 /^0/ { 8477 s/^0 *\(.*\)$/\1/ 8478 p 8479 } 8480 }' 8481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8482# Check for a 64-bit object if we didn't find anything. 8483if test -z "$aix_libpath"; then 8484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8485fi 8486fi 8487rm -f core conftest.err conftest.$ac_objext \ 8488 conftest$ac_exeext conftest.$ac_ext 8489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8490 8491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8492 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" 8493 else 8494 if test "$host_cpu" = ia64; then 8495 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8496 allow_undefined_flag="-z nodefs" 8497 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" 8498 else 8499 # Determine the default libpath from the value encoded in an 8500 # empty executable. 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503 8504int 8505main () 8506{ 8507 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512if ac_fn_c_try_link "$LINENO"; then : 8513 8514lt_aix_libpath_sed=' 8515 /Import File Strings/,/^$/ { 8516 /^0/ { 8517 s/^0 *\(.*\)$/\1/ 8518 p 8519 } 8520 }' 8521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8522# Check for a 64-bit object if we didn't find anything. 8523if test -z "$aix_libpath"; then 8524 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8525fi 8526fi 8527rm -f core conftest.err conftest.$ac_objext \ 8528 conftest$ac_exeext conftest.$ac_ext 8529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8530 8531 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8532 # Warning - without using the other run time loading flags, 8533 # -berok will link without error, but may produce a broken library. 8534 no_undefined_flag=' ${wl}-bernotok' 8535 allow_undefined_flag=' ${wl}-berok' 8536 # Exported symbols can be pulled into shared objects from archives 8537 whole_archive_flag_spec='$convenience' 8538 archive_cmds_need_lc=yes 8539 # This is similar to how AIX traditionally builds its shared libraries. 8540 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' 8541 fi 8542 fi 8543 ;; 8544 8545 amigaos*) 8546 case $host_cpu in 8547 powerpc) 8548 # see comment about AmigaOS4 .so support 8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8550 archive_expsym_cmds='' 8551 ;; 8552 m68k) 8553 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)' 8554 hardcode_libdir_flag_spec='-L$libdir' 8555 hardcode_minus_L=yes 8556 ;; 8557 esac 8558 ;; 8559 8560 bsdi[45]*) 8561 export_dynamic_flag_spec=-rdynamic 8562 ;; 8563 8564 cygwin* | mingw* | pw32* | cegcc*) 8565 # When not using gcc, we currently assume that we are using 8566 # Microsoft Visual C++. 8567 # hardcode_libdir_flag_spec is actually meaningless, as there is 8568 # no search path for DLLs. 8569 hardcode_libdir_flag_spec=' ' 8570 allow_undefined_flag=unsupported 8571 # Tell ltmain to make .lib files, not .a files. 8572 libext=lib 8573 # Tell ltmain to make .dll files, not .so files. 8574 shrext_cmds=".dll" 8575 # FIXME: Setting linknames here is a bad hack. 8576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8577 # The linker will automatically build a .lib file if we build a DLL. 8578 old_archive_from_new_cmds='true' 8579 # FIXME: Should let the user specify the lib program. 8580 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8581 fix_srcfile_path='`cygpath -w "$srcfile"`' 8582 enable_shared_with_static_runtimes=yes 8583 ;; 8584 8585 darwin* | rhapsody*) 8586 8587 8588 archive_cmds_need_lc=no 8589 hardcode_direct=no 8590 hardcode_automatic=yes 8591 hardcode_shlibpath_var=unsupported 8592 whole_archive_flag_spec='' 8593 link_all_deplibs=yes 8594 allow_undefined_flag="$_lt_dar_allow_undefined" 8595 case $cc_basename in 8596 ifort*) _lt_dar_can_shared=yes ;; 8597 *) _lt_dar_can_shared=$GCC ;; 8598 esac 8599 if test "$_lt_dar_can_shared" = "yes"; then 8600 output_verbose_link_cmd=echo 8601 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8602 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8603 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}" 8604 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}" 8605 8606 else 8607 ld_shlibs=no 8608 fi 8609 8610 ;; 8611 8612 dgux*) 8613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8614 hardcode_libdir_flag_spec='-L$libdir' 8615 hardcode_shlibpath_var=no 8616 ;; 8617 8618 freebsd1*) 8619 ld_shlibs=no 8620 ;; 8621 8622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8623 # support. Future versions do this automatically, but an explicit c++rt0.o 8624 # does not break anything, and helps significantly (at the cost of a little 8625 # extra space). 8626 freebsd2.2*) 8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8628 hardcode_libdir_flag_spec='-R$libdir' 8629 hardcode_direct=yes 8630 hardcode_shlibpath_var=no 8631 ;; 8632 8633 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8634 freebsd2*) 8635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8636 hardcode_direct=yes 8637 hardcode_minus_L=yes 8638 hardcode_shlibpath_var=no 8639 ;; 8640 8641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8642 freebsd* | dragonfly*) 8643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8644 hardcode_libdir_flag_spec='-R$libdir' 8645 hardcode_direct=yes 8646 hardcode_shlibpath_var=no 8647 ;; 8648 8649 hpux9*) 8650 if test "$GCC" = yes; then 8651 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' 8652 else 8653 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' 8654 fi 8655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8656 hardcode_libdir_separator=: 8657 hardcode_direct=yes 8658 8659 # hardcode_minus_L: Not really in the search PATH, 8660 # but as the default location of the library. 8661 hardcode_minus_L=yes 8662 export_dynamic_flag_spec='${wl}-E' 8663 ;; 8664 8665 hpux10*) 8666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8668 else 8669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8670 fi 8671 if test "$with_gnu_ld" = no; then 8672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8673 hardcode_libdir_flag_spec_ld='+b $libdir' 8674 hardcode_libdir_separator=: 8675 hardcode_direct=yes 8676 hardcode_direct_absolute=yes 8677 export_dynamic_flag_spec='${wl}-E' 8678 # hardcode_minus_L: Not really in the search PATH, 8679 # but as the default location of the library. 8680 hardcode_minus_L=yes 8681 fi 8682 ;; 8683 8684 hpux11*) 8685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8686 case $host_cpu in 8687 hppa*64*) 8688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8689 ;; 8690 ia64*) 8691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8692 ;; 8693 *) 8694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8695 ;; 8696 esac 8697 else 8698 case $host_cpu in 8699 hppa*64*) 8700 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8701 ;; 8702 ia64*) 8703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8704 ;; 8705 *) 8706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8707 ;; 8708 esac 8709 fi 8710 if test "$with_gnu_ld" = no; then 8711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8712 hardcode_libdir_separator=: 8713 8714 case $host_cpu in 8715 hppa*64*|ia64*) 8716 hardcode_direct=no 8717 hardcode_shlibpath_var=no 8718 ;; 8719 *) 8720 hardcode_direct=yes 8721 hardcode_direct_absolute=yes 8722 export_dynamic_flag_spec='${wl}-E' 8723 8724 # hardcode_minus_L: Not really in the search PATH, 8725 # but as the default location of the library. 8726 hardcode_minus_L=yes 8727 ;; 8728 esac 8729 fi 8730 ;; 8731 8732 irix5* | irix6* | nonstopux*) 8733 if test "$GCC" = yes; then 8734 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' 8735 # Try to use the -exported_symbol ld option, if it does not 8736 # work, assume that -exports_file does not work either and 8737 # implicitly export all symbols. 8738 save_LDFLAGS="$LDFLAGS" 8739 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int foo(void) {} 8743_ACEOF 8744if ac_fn_c_try_link "$LINENO"; then : 8745 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' 8746 8747fi 8748rm -f core conftest.err conftest.$ac_objext \ 8749 conftest$ac_exeext conftest.$ac_ext 8750 LDFLAGS="$save_LDFLAGS" 8751 else 8752 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' 8753 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' 8754 fi 8755 archive_cmds_need_lc='no' 8756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8757 hardcode_libdir_separator=: 8758 inherit_rpath=yes 8759 link_all_deplibs=yes 8760 ;; 8761 8762 netbsd* | netbsdelf*-gnu) 8763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8765 else 8766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8767 fi 8768 hardcode_libdir_flag_spec='-R$libdir' 8769 hardcode_direct=yes 8770 hardcode_shlibpath_var=no 8771 ;; 8772 8773 newsos6) 8774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8775 hardcode_direct=yes 8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8777 hardcode_libdir_separator=: 8778 hardcode_shlibpath_var=no 8779 ;; 8780 8781 *nto* | *qnx*) 8782 ;; 8783 8784 openbsd*) 8785 if test -f /usr/libexec/ld.so; then 8786 hardcode_direct=yes 8787 hardcode_shlibpath_var=no 8788 hardcode_direct_absolute=yes 8789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8793 export_dynamic_flag_spec='${wl}-E' 8794 else 8795 case $host_os in 8796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8798 hardcode_libdir_flag_spec='-R$libdir' 8799 ;; 8800 *) 8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8803 ;; 8804 esac 8805 fi 8806 else 8807 ld_shlibs=no 8808 fi 8809 ;; 8810 8811 os2*) 8812 hardcode_libdir_flag_spec='-L$libdir' 8813 hardcode_minus_L=yes 8814 allow_undefined_flag=unsupported 8815 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' 8816 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8817 ;; 8818 8819 osf3*) 8820 if test "$GCC" = yes; then 8821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8822 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' 8823 else 8824 allow_undefined_flag=' -expect_unresolved \*' 8825 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' 8826 fi 8827 archive_cmds_need_lc='no' 8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8829 hardcode_libdir_separator=: 8830 ;; 8831 8832 osf4* | osf5*) # as osf3* with the addition of -msym flag 8833 if test "$GCC" = yes; then 8834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8835 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' 8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8837 else 8838 allow_undefined_flag=' -expect_unresolved \*' 8839 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' 8840 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~ 8841 $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' 8842 8843 # Both c and cxx compiler support -rpath directly 8844 hardcode_libdir_flag_spec='-rpath $libdir' 8845 fi 8846 archive_cmds_need_lc='no' 8847 hardcode_libdir_separator=: 8848 ;; 8849 8850 solaris*) 8851 no_undefined_flag=' -z defs' 8852 if test "$GCC" = yes; then 8853 wlarc='${wl}' 8854 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8856 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8857 else 8858 case `$CC -V 2>&1` in 8859 *"Compilers 5.0"*) 8860 wlarc='' 8861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8864 ;; 8865 *) 8866 wlarc='${wl}' 8867 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8869 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8870 ;; 8871 esac 8872 fi 8873 hardcode_libdir_flag_spec='-R$libdir' 8874 hardcode_shlibpath_var=no 8875 case $host_os in 8876 solaris2.[0-5] | solaris2.[0-5].*) ;; 8877 *) 8878 # The compiler driver will combine and reorder linker options, 8879 # but understands `-z linker_flag'. GCC discards it without `$wl', 8880 # but is careful enough not to reorder. 8881 # Supported since Solaris 2.6 (maybe 2.5.1?) 8882 if test "$GCC" = yes; then 8883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8884 else 8885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8886 fi 8887 ;; 8888 esac 8889 link_all_deplibs=yes 8890 ;; 8891 8892 sunos4*) 8893 if test "x$host_vendor" = xsequent; then 8894 # Use $CC to link under sequent, because it throws in some extra .o 8895 # files that make .init and .fini sections work. 8896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8897 else 8898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8899 fi 8900 hardcode_libdir_flag_spec='-L$libdir' 8901 hardcode_direct=yes 8902 hardcode_minus_L=yes 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 sysv4) 8907 case $host_vendor in 8908 sni) 8909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8910 hardcode_direct=yes # is this really true??? 8911 ;; 8912 siemens) 8913 ## LD is ld it makes a PLAMLIB 8914 ## CC just makes a GrossModule. 8915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8916 reload_cmds='$CC -r -o $output$reload_objs' 8917 hardcode_direct=no 8918 ;; 8919 motorola) 8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8922 ;; 8923 esac 8924 runpath_var='LD_RUN_PATH' 8925 hardcode_shlibpath_var=no 8926 ;; 8927 8928 sysv4.3*) 8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8930 hardcode_shlibpath_var=no 8931 export_dynamic_flag_spec='-Bexport' 8932 ;; 8933 8934 sysv4*MP*) 8935 if test -d /usr/nec; then 8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8937 hardcode_shlibpath_var=no 8938 runpath_var=LD_RUN_PATH 8939 hardcode_runpath_var=yes 8940 ld_shlibs=yes 8941 fi 8942 ;; 8943 8944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8945 no_undefined_flag='${wl}-z,text' 8946 archive_cmds_need_lc=no 8947 hardcode_shlibpath_var=no 8948 runpath_var='LD_RUN_PATH' 8949 8950 if test "$GCC" = yes; then 8951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8953 else 8954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8956 fi 8957 ;; 8958 8959 sysv5* | sco3.2v5* | sco5v6*) 8960 # Note: We can NOT use -z defs as we might desire, because we do not 8961 # link with -lc, and that would cause any symbols used from libc to 8962 # always be unresolved, which means just about no library would 8963 # ever link correctly. If we're not using GNU ld we use -z text 8964 # though, which does catch some bad symbols but isn't as heavy-handed 8965 # as -z defs. 8966 no_undefined_flag='${wl}-z,text' 8967 allow_undefined_flag='${wl}-z,nodefs' 8968 archive_cmds_need_lc=no 8969 hardcode_shlibpath_var=no 8970 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8971 hardcode_libdir_separator=':' 8972 link_all_deplibs=yes 8973 export_dynamic_flag_spec='${wl}-Bexport' 8974 runpath_var='LD_RUN_PATH' 8975 8976 if test "$GCC" = yes; then 8977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8979 else 8980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8982 fi 8983 ;; 8984 8985 uts4*) 8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8987 hardcode_libdir_flag_spec='-L$libdir' 8988 hardcode_shlibpath_var=no 8989 ;; 8990 8991 *) 8992 ld_shlibs=no 8993 ;; 8994 esac 8995 8996 if test x$host_vendor = xsni; then 8997 case $host in 8998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8999 export_dynamic_flag_spec='${wl}-Blargedynsym' 9000 ;; 9001 esac 9002 fi 9003 fi 9004 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9006$as_echo "$ld_shlibs" >&6; } 9007test "$ld_shlibs" = no && can_build_shared=no 9008 9009with_gnu_ld=$with_gnu_ld 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025# 9026# Do we need to explicitly link libc? 9027# 9028case "x$archive_cmds_need_lc" in 9029x|xyes) 9030 # Assume -lc should be added 9031 archive_cmds_need_lc=yes 9032 9033 if test "$enable_shared" = yes && test "$GCC" = yes; then 9034 case $archive_cmds in 9035 *'~'*) 9036 # FIXME: we may have to deal with multi-command sequences. 9037 ;; 9038 '$CC '*) 9039 # Test whether the compiler implicitly links with -lc since on some 9040 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9041 # to ld, don't add -lc before -lgcc. 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9043$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9044 $RM conftest* 9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9046 9047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9048 (eval $ac_compile) 2>&5 9049 ac_status=$? 9050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9051 test $ac_status = 0; } 2>conftest.err; then 9052 soname=conftest 9053 lib=conftest 9054 libobjs=conftest.$ac_objext 9055 deplibs= 9056 wl=$lt_prog_compiler_wl 9057 pic_flag=$lt_prog_compiler_pic 9058 compiler_flags=-v 9059 linker_flags=-v 9060 verstring= 9061 output_objdir=. 9062 libname=conftest 9063 lt_save_allow_undefined_flag=$allow_undefined_flag 9064 allow_undefined_flag= 9065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9067 ac_status=$? 9068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9069 test $ac_status = 0; } 9070 then 9071 archive_cmds_need_lc=no 9072 else 9073 archive_cmds_need_lc=yes 9074 fi 9075 allow_undefined_flag=$lt_save_allow_undefined_flag 9076 else 9077 cat conftest.err 1>&5 9078 fi 9079 $RM conftest* 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9081$as_echo "$archive_cmds_need_lc" >&6; } 9082 ;; 9083 esac 9084 fi 9085 ;; 9086esac 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9245$as_echo_n "checking dynamic linker characteristics... " >&6; } 9246 9247if test "$GCC" = yes; then 9248 case $host_os in 9249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9250 *) lt_awk_arg="/^libraries:/" ;; 9251 esac 9252 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9253 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9254 # if the path contains ";" then we assume it to be the separator 9255 # otherwise default to the standard path separator (i.e. ":") - it is 9256 # assumed that no part of a normal pathname contains ";" but that should 9257 # okay in the real world where ";" in dirpaths is itself problematic. 9258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9259 else 9260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9261 fi 9262 # Ok, now we have the path, separated by spaces, we can step through it 9263 # and add multilib dir if necessary. 9264 lt_tmp_lt_search_path_spec= 9265 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9266 for lt_sys_path in $lt_search_path_spec; do 9267 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9269 else 9270 test -d "$lt_sys_path" && \ 9271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9272 fi 9273 done 9274 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9275BEGIN {RS=" "; FS="/|\n";} { 9276 lt_foo=""; 9277 lt_count=0; 9278 for (lt_i = NF; lt_i > 0; lt_i--) { 9279 if ($lt_i != "" && $lt_i != ".") { 9280 if ($lt_i == "..") { 9281 lt_count++; 9282 } else { 9283 if (lt_count == 0) { 9284 lt_foo="/" $lt_i lt_foo; 9285 } else { 9286 lt_count--; 9287 } 9288 } 9289 } 9290 } 9291 if (lt_foo != "") { lt_freq[lt_foo]++; } 9292 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9293}'` 9294 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9295else 9296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9297fi 9298library_names_spec= 9299libname_spec='lib$name' 9300soname_spec= 9301shrext_cmds=".so" 9302postinstall_cmds= 9303postuninstall_cmds= 9304finish_cmds= 9305finish_eval= 9306shlibpath_var= 9307shlibpath_overrides_runpath=unknown 9308version_type=none 9309dynamic_linker="$host_os ld.so" 9310sys_lib_dlsearch_path_spec="/lib /usr/lib" 9311need_lib_prefix=unknown 9312hardcode_into_libs=no 9313 9314# when you set need_version to no, make sure it does not cause -set_version 9315# flags to be left without arguments 9316need_version=unknown 9317 9318case $host_os in 9319aix3*) 9320 version_type=linux 9321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9322 shlibpath_var=LIBPATH 9323 9324 # AIX 3 has no versioning support, so we append a major version to the name. 9325 soname_spec='${libname}${release}${shared_ext}$major' 9326 ;; 9327 9328aix[4-9]*) 9329 version_type=linux 9330 need_lib_prefix=no 9331 need_version=no 9332 hardcode_into_libs=yes 9333 if test "$host_cpu" = ia64; then 9334 # AIX 5 supports IA64 9335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9336 shlibpath_var=LD_LIBRARY_PATH 9337 else 9338 # With GCC up to 2.95.x, collect2 would create an import file 9339 # for dependence libraries. The import file would start with 9340 # the line `#! .'. This would cause the generated library to 9341 # depend on `.', always an invalid library. This was fixed in 9342 # development snapshots of GCC prior to 3.0. 9343 case $host_os in 9344 aix4 | aix4.[01] | aix4.[01].*) 9345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9346 echo ' yes ' 9347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9348 : 9349 else 9350 can_build_shared=no 9351 fi 9352 ;; 9353 esac 9354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9355 # soname into executable. Probably we can add versioning support to 9356 # collect2, so additional links can be useful in future. 9357 if test "$aix_use_runtimelinking" = yes; then 9358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9359 # instead of lib<name>.a to let people know that these are not 9360 # typical AIX shared libraries. 9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9362 else 9363 # We preserve .a as extension for shared libraries through AIX4.2 9364 # and later when we are not doing run time linking. 9365 library_names_spec='${libname}${release}.a $libname.a' 9366 soname_spec='${libname}${release}${shared_ext}$major' 9367 fi 9368 shlibpath_var=LIBPATH 9369 fi 9370 ;; 9371 9372amigaos*) 9373 case $host_cpu in 9374 powerpc) 9375 # Since July 2007 AmigaOS4 officially supports .so libraries. 9376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9378 ;; 9379 m68k) 9380 library_names_spec='$libname.ixlibrary $libname.a' 9381 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9382 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' 9383 ;; 9384 esac 9385 ;; 9386 9387beos*) 9388 library_names_spec='${libname}${shared_ext}' 9389 dynamic_linker="$host_os ld.so" 9390 shlibpath_var=LIBRARY_PATH 9391 ;; 9392 9393bsdi[45]*) 9394 version_type=linux 9395 need_version=no 9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9397 soname_spec='${libname}${release}${shared_ext}$major' 9398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9399 shlibpath_var=LD_LIBRARY_PATH 9400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9402 # the default ld.so.conf also contains /usr/contrib/lib and 9403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9404 # libtool to hard-code these into programs 9405 ;; 9406 9407cygwin* | mingw* | pw32* | cegcc*) 9408 version_type=windows 9409 shrext_cmds=".dll" 9410 need_version=no 9411 need_lib_prefix=no 9412 9413 case $GCC,$host_os in 9414 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9415 library_names_spec='$libname.dll.a' 9416 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9417 postinstall_cmds='base_file=`basename \${file}`~ 9418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9419 dldir=$destdir/`dirname \$dlpath`~ 9420 test -d \$dldir || mkdir -p \$dldir~ 9421 $install_prog $dir/$dlname \$dldir/$dlname~ 9422 chmod a+x \$dldir/$dlname~ 9423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9425 fi' 9426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9427 dlpath=$dir/\$dldll~ 9428 $RM \$dlpath' 9429 shlibpath_overrides_runpath=yes 9430 9431 case $host_os in 9432 cygwin*) 9433 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9436 ;; 9437 mingw* | cegcc*) 9438 # MinGW DLLs use traditional 'lib' prefix 9439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9440 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9441 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9442 # It is most probably a Windows format PATH printed by 9443 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9444 # path with ; separators, and with drive letters. We can handle the 9445 # drive letters (cygwin fileutils understands them), so leave them, 9446 # especially as we might pass files found there to a mingw objdump, 9447 # which wouldn't understand a cygwinified path. Ahh. 9448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9449 else 9450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9451 fi 9452 ;; 9453 pw32*) 9454 # pw32 DLLs use 'pw' prefix rather than 'lib' 9455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9456 ;; 9457 esac 9458 ;; 9459 9460 *) 9461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9462 ;; 9463 esac 9464 dynamic_linker='Win32 ld.exe' 9465 # FIXME: first we should search . and the directory the executable is in 9466 shlibpath_var=PATH 9467 ;; 9468 9469darwin* | rhapsody*) 9470 dynamic_linker="$host_os dyld" 9471 version_type=darwin 9472 need_lib_prefix=no 9473 need_version=no 9474 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9475 soname_spec='${libname}${release}${major}$shared_ext' 9476 shlibpath_overrides_runpath=yes 9477 shlibpath_var=DYLD_LIBRARY_PATH 9478 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9479 9480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9482 ;; 9483 9484dgux*) 9485 version_type=linux 9486 need_lib_prefix=no 9487 need_version=no 9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 shlibpath_var=LD_LIBRARY_PATH 9491 ;; 9492 9493freebsd1*) 9494 dynamic_linker=no 9495 ;; 9496 9497freebsd* | dragonfly*) 9498 # DragonFly does not have aout. When/if they implement a new 9499 # versioning mechanism, adjust this. 9500 if test -x /usr/bin/objformat; then 9501 objformat=`/usr/bin/objformat` 9502 else 9503 case $host_os in 9504 freebsd[123]*) objformat=aout ;; 9505 *) objformat=elf ;; 9506 esac 9507 fi 9508 version_type=freebsd-$objformat 9509 case $version_type in 9510 freebsd-elf*) 9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9512 need_version=no 9513 need_lib_prefix=no 9514 ;; 9515 freebsd-*) 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9517 need_version=yes 9518 ;; 9519 esac 9520 shlibpath_var=LD_LIBRARY_PATH 9521 case $host_os in 9522 freebsd2*) 9523 shlibpath_overrides_runpath=yes 9524 ;; 9525 freebsd3.[01]* | freebsdelf3.[01]*) 9526 shlibpath_overrides_runpath=yes 9527 hardcode_into_libs=yes 9528 ;; 9529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9531 shlibpath_overrides_runpath=no 9532 hardcode_into_libs=yes 9533 ;; 9534 *) # from 4.6 on, and DragonFly 9535 shlibpath_overrides_runpath=yes 9536 hardcode_into_libs=yes 9537 ;; 9538 esac 9539 ;; 9540 9541gnu*) 9542 version_type=linux 9543 need_lib_prefix=no 9544 need_version=no 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9546 soname_spec='${libname}${release}${shared_ext}$major' 9547 shlibpath_var=LD_LIBRARY_PATH 9548 hardcode_into_libs=yes 9549 ;; 9550 9551hpux9* | hpux10* | hpux11*) 9552 # Give a soname corresponding to the major version so that dld.sl refuses to 9553 # link against other versions. 9554 version_type=sunos 9555 need_lib_prefix=no 9556 need_version=no 9557 case $host_cpu in 9558 ia64*) 9559 shrext_cmds='.so' 9560 hardcode_into_libs=yes 9561 dynamic_linker="$host_os dld.so" 9562 shlibpath_var=LD_LIBRARY_PATH 9563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9565 soname_spec='${libname}${release}${shared_ext}$major' 9566 if test "X$HPUX_IA64_MODE" = X32; then 9567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9568 else 9569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9570 fi 9571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9572 ;; 9573 hppa*64*) 9574 shrext_cmds='.sl' 9575 hardcode_into_libs=yes 9576 dynamic_linker="$host_os dld.sl" 9577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9580 soname_spec='${libname}${release}${shared_ext}$major' 9581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9583 ;; 9584 *) 9585 shrext_cmds='.sl' 9586 dynamic_linker="$host_os dld.sl" 9587 shlibpath_var=SHLIB_PATH 9588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 ;; 9592 esac 9593 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9594 postinstall_cmds='chmod 555 $lib' 9595 ;; 9596 9597interix[3-9]*) 9598 version_type=linux 9599 need_lib_prefix=no 9600 need_version=no 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9604 shlibpath_var=LD_LIBRARY_PATH 9605 shlibpath_overrides_runpath=no 9606 hardcode_into_libs=yes 9607 ;; 9608 9609irix5* | irix6* | nonstopux*) 9610 case $host_os in 9611 nonstopux*) version_type=nonstopux ;; 9612 *) 9613 if test "$lt_cv_prog_gnu_ld" = yes; then 9614 version_type=linux 9615 else 9616 version_type=irix 9617 fi ;; 9618 esac 9619 need_lib_prefix=no 9620 need_version=no 9621 soname_spec='${libname}${release}${shared_ext}$major' 9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9623 case $host_os in 9624 irix5* | nonstopux*) 9625 libsuff= shlibsuff= 9626 ;; 9627 *) 9628 case $LD in # libtool.m4 will add one of these switches to LD 9629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9630 libsuff= shlibsuff= libmagic=32-bit;; 9631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9632 libsuff=32 shlibsuff=N32 libmagic=N32;; 9633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9634 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9635 *) libsuff= shlibsuff= libmagic=never-match;; 9636 esac 9637 ;; 9638 esac 9639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9640 shlibpath_overrides_runpath=no 9641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9643 hardcode_into_libs=yes 9644 ;; 9645 9646# No shared lib support for Linux oldld, aout, or coff. 9647linux*oldld* | linux*aout* | linux*coff*) 9648 dynamic_linker=no 9649 ;; 9650 9651# This must be Linux ELF. 9652linux* | k*bsd*-gnu | kopensolaris*-gnu) 9653 version_type=linux 9654 need_lib_prefix=no 9655 need_version=no 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9657 soname_spec='${libname}${release}${shared_ext}$major' 9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9659 shlibpath_var=LD_LIBRARY_PATH 9660 shlibpath_overrides_runpath=no 9661 # Some binutils ld are patched to set DT_RUNPATH 9662 save_LDFLAGS=$LDFLAGS 9663 save_libdir=$libdir 9664 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9665 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668 9669int 9670main () 9671{ 9672 9673 ; 9674 return 0; 9675} 9676_ACEOF 9677if ac_fn_c_try_link "$LINENO"; then : 9678 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9679 shlibpath_overrides_runpath=yes 9680fi 9681fi 9682rm -f core conftest.err conftest.$ac_objext \ 9683 conftest$ac_exeext conftest.$ac_ext 9684 LDFLAGS=$save_LDFLAGS 9685 libdir=$save_libdir 9686 9687 # This implies no fast_install, which is unacceptable. 9688 # Some rework will be needed to allow for fast_install 9689 # before this can be enabled. 9690 hardcode_into_libs=yes 9691 9692 # Append ld.so.conf contents to the search path 9693 if test -f /etc/ld.so.conf; then 9694 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' ' '` 9695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9696 fi 9697 9698 # We used to test for /lib/ld.so.1 and disable shared libraries on 9699 # powerpc, because MkLinux only supported shared libraries with the 9700 # GNU dynamic linker. Since this was broken with cross compilers, 9701 # most powerpc-linux boxes support dynamic linking these days and 9702 # people can always --disable-shared, the test was removed, and we 9703 # assume the GNU/Linux dynamic linker is in use. 9704 dynamic_linker='GNU/Linux ld.so' 9705 ;; 9706 9707netbsdelf*-gnu) 9708 version_type=linux 9709 need_lib_prefix=no 9710 need_version=no 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9712 soname_spec='${libname}${release}${shared_ext}$major' 9713 shlibpath_var=LD_LIBRARY_PATH 9714 shlibpath_overrides_runpath=no 9715 hardcode_into_libs=yes 9716 dynamic_linker='NetBSD ld.elf_so' 9717 ;; 9718 9719netbsd*) 9720 version_type=sunos 9721 need_lib_prefix=no 9722 need_version=no 9723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9726 dynamic_linker='NetBSD (a.out) ld.so' 9727 else 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 dynamic_linker='NetBSD ld.elf_so' 9731 fi 9732 shlibpath_var=LD_LIBRARY_PATH 9733 shlibpath_overrides_runpath=yes 9734 hardcode_into_libs=yes 9735 ;; 9736 9737newsos6) 9738 version_type=linux 9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9740 shlibpath_var=LD_LIBRARY_PATH 9741 shlibpath_overrides_runpath=yes 9742 ;; 9743 9744*nto* | *qnx*) 9745 version_type=qnx 9746 need_lib_prefix=no 9747 need_version=no 9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9749 soname_spec='${libname}${release}${shared_ext}$major' 9750 shlibpath_var=LD_LIBRARY_PATH 9751 shlibpath_overrides_runpath=no 9752 hardcode_into_libs=yes 9753 dynamic_linker='ldqnx.so' 9754 ;; 9755 9756openbsd*) 9757 version_type=sunos 9758 sys_lib_dlsearch_path_spec="/usr/lib" 9759 need_lib_prefix=no 9760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9761 case $host_os in 9762 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9763 *) need_version=no ;; 9764 esac 9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9767 shlibpath_var=LD_LIBRARY_PATH 9768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9769 case $host_os in 9770 openbsd2.[89] | openbsd2.[89].*) 9771 shlibpath_overrides_runpath=no 9772 ;; 9773 *) 9774 shlibpath_overrides_runpath=yes 9775 ;; 9776 esac 9777 else 9778 shlibpath_overrides_runpath=yes 9779 fi 9780 ;; 9781 9782os2*) 9783 libname_spec='$name' 9784 shrext_cmds=".dll" 9785 need_lib_prefix=no 9786 library_names_spec='$libname${shared_ext} $libname.a' 9787 dynamic_linker='OS/2 ld.exe' 9788 shlibpath_var=LIBPATH 9789 ;; 9790 9791osf3* | osf4* | osf5*) 9792 version_type=osf 9793 need_lib_prefix=no 9794 need_version=no 9795 soname_spec='${libname}${release}${shared_ext}$major' 9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9797 shlibpath_var=LD_LIBRARY_PATH 9798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9800 ;; 9801 9802rdos*) 9803 dynamic_linker=no 9804 ;; 9805 9806solaris*) 9807 version_type=linux 9808 need_lib_prefix=no 9809 need_version=no 9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9811 soname_spec='${libname}${release}${shared_ext}$major' 9812 shlibpath_var=LD_LIBRARY_PATH 9813 shlibpath_overrides_runpath=yes 9814 hardcode_into_libs=yes 9815 # ldd complains unless libraries are executable 9816 postinstall_cmds='chmod +x $lib' 9817 ;; 9818 9819sunos4*) 9820 version_type=sunos 9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=yes 9825 if test "$with_gnu_ld" = yes; then 9826 need_lib_prefix=no 9827 fi 9828 need_version=yes 9829 ;; 9830 9831sysv4 | sysv4.3*) 9832 version_type=linux 9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9834 soname_spec='${libname}${release}${shared_ext}$major' 9835 shlibpath_var=LD_LIBRARY_PATH 9836 case $host_vendor in 9837 sni) 9838 shlibpath_overrides_runpath=no 9839 need_lib_prefix=no 9840 runpath_var=LD_RUN_PATH 9841 ;; 9842 siemens) 9843 need_lib_prefix=no 9844 ;; 9845 motorola) 9846 need_lib_prefix=no 9847 need_version=no 9848 shlibpath_overrides_runpath=no 9849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9850 ;; 9851 esac 9852 ;; 9853 9854sysv4*MP*) 9855 if test -d /usr/nec ;then 9856 version_type=linux 9857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9858 soname_spec='$libname${shared_ext}.$major' 9859 shlibpath_var=LD_LIBRARY_PATH 9860 fi 9861 ;; 9862 9863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9864 version_type=freebsd-elf 9865 need_lib_prefix=no 9866 need_version=no 9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9868 soname_spec='${libname}${release}${shared_ext}$major' 9869 shlibpath_var=LD_LIBRARY_PATH 9870 shlibpath_overrides_runpath=yes 9871 hardcode_into_libs=yes 9872 if test "$with_gnu_ld" = yes; then 9873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9874 else 9875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9876 case $host_os in 9877 sco3.2v5*) 9878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9879 ;; 9880 esac 9881 fi 9882 sys_lib_dlsearch_path_spec='/usr/lib' 9883 ;; 9884 9885tpf*) 9886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9887 version_type=linux 9888 need_lib_prefix=no 9889 need_version=no 9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9891 shlibpath_var=LD_LIBRARY_PATH 9892 shlibpath_overrides_runpath=no 9893 hardcode_into_libs=yes 9894 ;; 9895 9896uts4*) 9897 version_type=linux 9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9899 soname_spec='${libname}${release}${shared_ext}$major' 9900 shlibpath_var=LD_LIBRARY_PATH 9901 ;; 9902 9903*) 9904 dynamic_linker=no 9905 ;; 9906esac 9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9908$as_echo "$dynamic_linker" >&6; } 9909test "$dynamic_linker" = no && can_build_shared=no 9910 9911variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9912if test "$GCC" = yes; then 9913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9914fi 9915 9916if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9918fi 9919if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9921fi 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10010$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10011hardcode_action= 10012if test -n "$hardcode_libdir_flag_spec" || 10013 test -n "$runpath_var" || 10014 test "X$hardcode_automatic" = "Xyes" ; then 10015 10016 # We can hardcode non-existent directories. 10017 if test "$hardcode_direct" != no && 10018 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10019 # have to relink, otherwise we might link with an installed library 10020 # when we should be linking with a yet-to-be-installed one 10021 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10022 test "$hardcode_minus_L" != no; then 10023 # Linking always hardcodes the temporary library directory. 10024 hardcode_action=relink 10025 else 10026 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10027 hardcode_action=immediate 10028 fi 10029else 10030 # We cannot hardcode anything, or else we can only hardcode existing 10031 # directories. 10032 hardcode_action=unsupported 10033fi 10034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10035$as_echo "$hardcode_action" >&6; } 10036 10037if test "$hardcode_action" = relink || 10038 test "$inherit_rpath" = yes; then 10039 # Fast installation is not supported 10040 enable_fast_install=no 10041elif test "$shlibpath_overrides_runpath" = yes || 10042 test "$enable_shared" = no; then 10043 # Fast installation is not necessary 10044 enable_fast_install=needless 10045fi 10046 10047 10048 10049 10050 10051 10052 if test "x$enable_dlopen" != xyes; then 10053 enable_dlopen=unknown 10054 enable_dlopen_self=unknown 10055 enable_dlopen_self_static=unknown 10056else 10057 lt_cv_dlopen=no 10058 lt_cv_dlopen_libs= 10059 10060 case $host_os in 10061 beos*) 10062 lt_cv_dlopen="load_add_on" 10063 lt_cv_dlopen_libs= 10064 lt_cv_dlopen_self=yes 10065 ;; 10066 10067 mingw* | pw32* | cegcc*) 10068 lt_cv_dlopen="LoadLibrary" 10069 lt_cv_dlopen_libs= 10070 ;; 10071 10072 cygwin*) 10073 lt_cv_dlopen="dlopen" 10074 lt_cv_dlopen_libs= 10075 ;; 10076 10077 darwin*) 10078 # if libdl is installed we need to link against it 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10080$as_echo_n "checking for dlopen in -ldl... " >&6; } 10081if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10082 $as_echo_n "(cached) " >&6 10083else 10084 ac_check_lib_save_LIBS=$LIBS 10085LIBS="-ldl $LIBS" 10086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10087/* end confdefs.h. */ 10088 10089/* Override any GCC internal prototype to avoid an error. 10090 Use char because int might match the return type of a GCC 10091 builtin and then its argument prototype would still apply. */ 10092#ifdef __cplusplus 10093extern "C" 10094#endif 10095char dlopen (); 10096int 10097main () 10098{ 10099return dlopen (); 10100 ; 10101 return 0; 10102} 10103_ACEOF 10104if ac_fn_c_try_link "$LINENO"; then : 10105 ac_cv_lib_dl_dlopen=yes 10106else 10107 ac_cv_lib_dl_dlopen=no 10108fi 10109rm -f core conftest.err conftest.$ac_objext \ 10110 conftest$ac_exeext conftest.$ac_ext 10111LIBS=$ac_check_lib_save_LIBS 10112fi 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10114$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10115if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10117else 10118 10119 lt_cv_dlopen="dyld" 10120 lt_cv_dlopen_libs= 10121 lt_cv_dlopen_self=yes 10122 10123fi 10124 10125 ;; 10126 10127 *) 10128 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10129if test "x$ac_cv_func_shl_load" = x""yes; then : 10130 lt_cv_dlopen="shl_load" 10131else 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10133$as_echo_n "checking for shl_load in -ldld... " >&6; } 10134if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10135 $as_echo_n "(cached) " >&6 10136else 10137 ac_check_lib_save_LIBS=$LIBS 10138LIBS="-ldld $LIBS" 10139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141 10142/* Override any GCC internal prototype to avoid an error. 10143 Use char because int might match the return type of a GCC 10144 builtin and then its argument prototype would still apply. */ 10145#ifdef __cplusplus 10146extern "C" 10147#endif 10148char shl_load (); 10149int 10150main () 10151{ 10152return shl_load (); 10153 ; 10154 return 0; 10155} 10156_ACEOF 10157if ac_fn_c_try_link "$LINENO"; then : 10158 ac_cv_lib_dld_shl_load=yes 10159else 10160 ac_cv_lib_dld_shl_load=no 10161fi 10162rm -f core conftest.err conftest.$ac_objext \ 10163 conftest$ac_exeext conftest.$ac_ext 10164LIBS=$ac_check_lib_save_LIBS 10165fi 10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10167$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10168if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10169 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10170else 10171 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10172if test "x$ac_cv_func_dlopen" = x""yes; then : 10173 lt_cv_dlopen="dlopen" 10174else 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10176$as_echo_n "checking for dlopen in -ldl... " >&6; } 10177if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 ac_check_lib_save_LIBS=$LIBS 10181LIBS="-ldl $LIBS" 10182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183/* end confdefs.h. */ 10184 10185/* Override any GCC internal prototype to avoid an error. 10186 Use char because int might match the return type of a GCC 10187 builtin and then its argument prototype would still apply. */ 10188#ifdef __cplusplus 10189extern "C" 10190#endif 10191char dlopen (); 10192int 10193main () 10194{ 10195return dlopen (); 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200if ac_fn_c_try_link "$LINENO"; then : 10201 ac_cv_lib_dl_dlopen=yes 10202else 10203 ac_cv_lib_dl_dlopen=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207LIBS=$ac_check_lib_save_LIBS 10208fi 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10210$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10211if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10213else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10215$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10216if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10217 $as_echo_n "(cached) " >&6 10218else 10219 ac_check_lib_save_LIBS=$LIBS 10220LIBS="-lsvld $LIBS" 10221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222/* end confdefs.h. */ 10223 10224/* Override any GCC internal prototype to avoid an error. 10225 Use char because int might match the return type of a GCC 10226 builtin and then its argument prototype would still apply. */ 10227#ifdef __cplusplus 10228extern "C" 10229#endif 10230char dlopen (); 10231int 10232main () 10233{ 10234return dlopen (); 10235 ; 10236 return 0; 10237} 10238_ACEOF 10239if ac_fn_c_try_link "$LINENO"; then : 10240 ac_cv_lib_svld_dlopen=yes 10241else 10242 ac_cv_lib_svld_dlopen=no 10243fi 10244rm -f core conftest.err conftest.$ac_objext \ 10245 conftest$ac_exeext conftest.$ac_ext 10246LIBS=$ac_check_lib_save_LIBS 10247fi 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10249$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10250if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10252else 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10254$as_echo_n "checking for dld_link in -ldld... " >&6; } 10255if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 ac_check_lib_save_LIBS=$LIBS 10259LIBS="-ldld $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 dld_link (); 10270int 10271main () 10272{ 10273return dld_link (); 10274 ; 10275 return 0; 10276} 10277_ACEOF 10278if ac_fn_c_try_link "$LINENO"; then : 10279 ac_cv_lib_dld_dld_link=yes 10280else 10281 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5 10288$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10289if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10290 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10291fi 10292 10293 10294fi 10295 10296 10297fi 10298 10299 10300fi 10301 10302 10303fi 10304 10305 10306fi 10307 10308 ;; 10309 esac 10310 10311 if test "x$lt_cv_dlopen" != xno; then 10312 enable_dlopen=yes 10313 else 10314 enable_dlopen=no 10315 fi 10316 10317 case $lt_cv_dlopen in 10318 dlopen) 10319 save_CPPFLAGS="$CPPFLAGS" 10320 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10321 10322 save_LDFLAGS="$LDFLAGS" 10323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10324 10325 save_LIBS="$LIBS" 10326 LIBS="$lt_cv_dlopen_libs $LIBS" 10327 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10329$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10330if test "${lt_cv_dlopen_self+set}" = set; then : 10331 $as_echo_n "(cached) " >&6 10332else 10333 if test "$cross_compiling" = yes; then : 10334 lt_cv_dlopen_self=cross 10335else 10336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10337 lt_status=$lt_dlunknown 10338 cat > conftest.$ac_ext <<_LT_EOF 10339#line 10339 "configure" 10340#include "confdefs.h" 10341 10342#if HAVE_DLFCN_H 10343#include <dlfcn.h> 10344#endif 10345 10346#include <stdio.h> 10347 10348#ifdef RTLD_GLOBAL 10349# define LT_DLGLOBAL RTLD_GLOBAL 10350#else 10351# ifdef DL_GLOBAL 10352# define LT_DLGLOBAL DL_GLOBAL 10353# else 10354# define LT_DLGLOBAL 0 10355# endif 10356#endif 10357 10358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10359 find out it does not work in some platform. */ 10360#ifndef LT_DLLAZY_OR_NOW 10361# ifdef RTLD_LAZY 10362# define LT_DLLAZY_OR_NOW RTLD_LAZY 10363# else 10364# ifdef DL_LAZY 10365# define LT_DLLAZY_OR_NOW DL_LAZY 10366# else 10367# ifdef RTLD_NOW 10368# define LT_DLLAZY_OR_NOW RTLD_NOW 10369# else 10370# ifdef DL_NOW 10371# define LT_DLLAZY_OR_NOW DL_NOW 10372# else 10373# define LT_DLLAZY_OR_NOW 0 10374# endif 10375# endif 10376# endif 10377# endif 10378#endif 10379 10380void fnord() { int i=42;} 10381int main () 10382{ 10383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10384 int status = $lt_dlunknown; 10385 10386 if (self) 10387 { 10388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10390 /* dlclose (self); */ 10391 } 10392 else 10393 puts (dlerror ()); 10394 10395 return status; 10396} 10397_LT_EOF 10398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10399 (eval $ac_link) 2>&5 10400 ac_status=$? 10401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10402 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10403 (./conftest; exit; ) >&5 2>/dev/null 10404 lt_status=$? 10405 case x$lt_status in 10406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10409 esac 10410 else : 10411 # compilation failed 10412 lt_cv_dlopen_self=no 10413 fi 10414fi 10415rm -fr conftest* 10416 10417 10418fi 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10420$as_echo "$lt_cv_dlopen_self" >&6; } 10421 10422 if test "x$lt_cv_dlopen_self" = xyes; then 10423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10425$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10426if test "${lt_cv_dlopen_self_static+set}" = set; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 if test "$cross_compiling" = yes; then : 10430 lt_cv_dlopen_self_static=cross 10431else 10432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10433 lt_status=$lt_dlunknown 10434 cat > conftest.$ac_ext <<_LT_EOF 10435#line 10435 "configure" 10436#include "confdefs.h" 10437 10438#if HAVE_DLFCN_H 10439#include <dlfcn.h> 10440#endif 10441 10442#include <stdio.h> 10443 10444#ifdef RTLD_GLOBAL 10445# define LT_DLGLOBAL RTLD_GLOBAL 10446#else 10447# ifdef DL_GLOBAL 10448# define LT_DLGLOBAL DL_GLOBAL 10449# else 10450# define LT_DLGLOBAL 0 10451# endif 10452#endif 10453 10454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10455 find out it does not work in some platform. */ 10456#ifndef LT_DLLAZY_OR_NOW 10457# ifdef RTLD_LAZY 10458# define LT_DLLAZY_OR_NOW RTLD_LAZY 10459# else 10460# ifdef DL_LAZY 10461# define LT_DLLAZY_OR_NOW DL_LAZY 10462# else 10463# ifdef RTLD_NOW 10464# define LT_DLLAZY_OR_NOW RTLD_NOW 10465# else 10466# ifdef DL_NOW 10467# define LT_DLLAZY_OR_NOW DL_NOW 10468# else 10469# define LT_DLLAZY_OR_NOW 0 10470# endif 10471# endif 10472# endif 10473# endif 10474#endif 10475 10476void fnord() { int i=42;} 10477int main () 10478{ 10479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10480 int status = $lt_dlunknown; 10481 10482 if (self) 10483 { 10484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10486 /* dlclose (self); */ 10487 } 10488 else 10489 puts (dlerror ()); 10490 10491 return status; 10492} 10493_LT_EOF 10494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10495 (eval $ac_link) 2>&5 10496 ac_status=$? 10497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10499 (./conftest; exit; ) >&5 2>/dev/null 10500 lt_status=$? 10501 case x$lt_status in 10502 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10503 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10504 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10505 esac 10506 else : 10507 # compilation failed 10508 lt_cv_dlopen_self_static=no 10509 fi 10510fi 10511rm -fr conftest* 10512 10513 10514fi 10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10516$as_echo "$lt_cv_dlopen_self_static" >&6; } 10517 fi 10518 10519 CPPFLAGS="$save_CPPFLAGS" 10520 LDFLAGS="$save_LDFLAGS" 10521 LIBS="$save_LIBS" 10522 ;; 10523 esac 10524 10525 case $lt_cv_dlopen_self in 10526 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10527 *) enable_dlopen_self=unknown ;; 10528 esac 10529 10530 case $lt_cv_dlopen_self_static in 10531 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10532 *) enable_dlopen_self_static=unknown ;; 10533 esac 10534fi 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552striplib= 10553old_striplib= 10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10555$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10556if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10557 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10558 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10560$as_echo "yes" >&6; } 10561else 10562# FIXME - insert some real tests, host_os isn't really good enough 10563 case $host_os in 10564 darwin*) 10565 if test -n "$STRIP" ; then 10566 striplib="$STRIP -x" 10567 old_striplib="$STRIP -S" 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10569$as_echo "yes" >&6; } 10570 else 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10572$as_echo "no" >&6; } 10573 fi 10574 ;; 10575 *) 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10577$as_echo "no" >&6; } 10578 ;; 10579 esac 10580fi 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 # Report which library types will actually be built 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10595$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10597$as_echo "$can_build_shared" >&6; } 10598 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10600$as_echo_n "checking whether to build shared libraries... " >&6; } 10601 test "$can_build_shared" = "no" && enable_shared=no 10602 10603 # On AIX, shared libraries and static libraries use the same namespace, and 10604 # are all built from PIC. 10605 case $host_os in 10606 aix3*) 10607 test "$enable_shared" = yes && enable_static=no 10608 if test -n "$RANLIB"; then 10609 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10610 postinstall_cmds='$RANLIB $lib' 10611 fi 10612 ;; 10613 10614 aix[4-9]*) 10615 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10616 test "$enable_shared" = yes && enable_static=no 10617 fi 10618 ;; 10619 esac 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10621$as_echo "$enable_shared" >&6; } 10622 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10624$as_echo_n "checking whether to build static libraries... " >&6; } 10625 # Make sure either enable_shared or enable_static is yes. 10626 test "$enable_shared" = yes || enable_static=yes 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10628$as_echo "$enable_static" >&6; } 10629 10630 10631 10632 10633fi 10634ac_ext=c 10635ac_cpp='$CPP $CPPFLAGS' 10636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10638ac_compiler_gnu=$ac_cv_c_compiler_gnu 10639 10640CC="$lt_save_CC" 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 ac_config_commands="$ac_config_commands libtool" 10655 10656 10657 10658 10659# Only expand once: 10660 10661 10662enable_dlopen=yes 10663 10664 10665 10666 10667 10668# CFLAGS Can go away with its annoying default -g -O2 10669CFLAGS='' 10670 10671 10672# Pull in the platform specific build/configure environment options. 10673extra_incl= 10674case "$host" in 10675 *-openbsd*) 10676 10677$as_echo "#define C_BSD 1" >>confdefs.h 10678 10679 LDFLAGS="${LDFLAGS} -L/usr/local/lib -luuid" 10680 extra_incl="-I/usr/local/include" 10681 CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 10682 platform="openbsd" 10683 ;; 10684 *-linux*) 10685 10686$as_echo "#define C_LINUX 1" >>confdefs.h 10687 10688 CDEFINE="-D_GNU_SOURCE" 10689 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" 10690 platform="linux" 10691 ;; 10692 *-freebsd*) 10693 10694$as_echo "#define C_BSD 1" >>confdefs.h 10695 10696 LDFLAGS="${LDFLAGS} -L/usr/local/lib -luuid" 10697 extra_incl="-I/usr/local/include" 10698 CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 10699 platform="freebsd" 10700 ;; 10701 *-apple*) 10702 10703$as_echo "#define BROKEN_SIOCGIFMTU /**/" >>confdefs.h 10704 10705 10706$as_echo "#define C_BSD 1" >>confdefs.h 10707 10708 e2fs_uuid=yes 10709 if test -d "/sw"; then 10710 LDFLAGS="${LDFLAGS} -L/sw/lib" 10711 extra_incl="-I/sw/include" 10712 CPPFLAGS="${CPPFLAGS} -I/sw/include" 10713 fi 10714 if test -d "/opt/local"; then 10715 LDFLAGS="${LDFLAGS} -L/opt/local/lib" 10716 extra_incl="-I/opt/local/include" 10717 CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 10718 fi 10719 LIBTOOL=glibtool 10720 LIBTOOLIZE=glibtoolize 10721 CDEFINE="-Ds6_addr32=__u6_addr.__u6_addr32" 10722 platform="apple" 10723esac 10724 10725 if test x$platform = xlinux; then 10726 PLATFORM_LINUX_TRUE= 10727 PLATFORM_LINUX_FALSE='#' 10728else 10729 PLATFORM_LINUX_TRUE='#' 10730 PLATFORM_LINUX_FALSE= 10731fi 10732 10733 if test x$platform = xfreebsd; then 10734 PLATFORM_FREEBSD_TRUE= 10735 PLATFORM_FREEBSD_FALSE='#' 10736else 10737 PLATFORM_FREEBSD_TRUE='#' 10738 PLATFORM_FREEBSD_FALSE= 10739fi 10740 10741 10742 10743# Pull in the dependancies on on the API (use the nugget way). 10744# Setup the sysconfdir for all consumers. 10745 10746 10747 10748 10749## Expand ${prefix} in sysconfdir if its the default value. 10750 10751 10752 EXP_VAR=SYSCONFDIR 10753 FROM_VAR="$sysconfdir/razorback" 10754 10755 prefix_save=$prefix 10756 exec_prefix_save=$exec_prefix 10757 10758 if test "x$prefix" = "xNONE"; then 10759 prefix=$ac_default_prefix 10760 fi 10761 if test "x$exec_prefix" = "xNONE"; then 10762 exec_prefix=$prefix 10763 fi 10764 10765 full_var="$FROM_VAR" 10766 while true; do 10767 new_full_var="`eval echo $full_var`" 10768 if test "x$new_full_var"="x$full_var"; then break; fi 10769 full_var=$new_full_var 10770 done 10771 10772 full_var=$new_full_var 10773 SYSCONFDIR="$full_var" 10774 10775 10776 prefix=$prefix_save 10777 exec_prefix=$exec_prefix_save 10778 10779sysconfdir=$SYSCONFDIR 10780 10781 10782 EXP_VAR=LIBEXECDIR 10783 FROM_VAR="$libexecdir/razorback/$PACKAGE_NAME" 10784 10785 prefix_save=$prefix 10786 exec_prefix_save=$exec_prefix 10787 10788 if test "x$prefix" = "xNONE"; then 10789 prefix=$ac_default_prefix 10790 fi 10791 if test "x$exec_prefix" = "xNONE"; then 10792 exec_prefix=$prefix 10793 fi 10794 10795 full_var="$FROM_VAR" 10796 while true; do 10797 new_full_var="`eval echo $full_var`" 10798 if test "x$new_full_var"="x$full_var"; then break; fi 10799 full_var=$new_full_var 10800 done 10801 10802 full_var=$new_full_var 10803 LIBEXECDIR="$full_var" 10804 10805 10806 prefix=$prefix_save 10807 exec_prefix=$exec_prefix_save 10808 10809libexecdir=$LIBEXECDIR 10810 10811 10812cat >>confdefs.h <<_ACEOF 10813#define ETC_DIR "$SYSCONFDIR" 10814_ACEOF 10815 10816 10817 10818cat >>confdefs.h <<_ACEOF 10819#define DEFAULT_CONFIG_FILE "$SYSCONFDIR/rzb.conf" 10820_ACEOF 10821 10822 10823 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 10825$as_echo_n "checking for timer_create in -lrt... " >&6; } 10826if test "${ac_cv_lib_rt_timer_create+set}" = set; then : 10827 $as_echo_n "(cached) " >&6 10828else 10829 ac_check_lib_save_LIBS=$LIBS 10830LIBS="-lrt $LIBS" 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834/* Override any GCC internal prototype to avoid an error. 10835 Use char because int might match the return type of a GCC 10836 builtin and then its argument prototype would still apply. */ 10837#ifdef __cplusplus 10838extern "C" 10839#endif 10840char timer_create (); 10841int 10842main () 10843{ 10844return timer_create (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849if ac_fn_c_try_link "$LINENO"; then : 10850 ac_cv_lib_rt_timer_create=yes 10851else 10852 ac_cv_lib_rt_timer_create=no 10853fi 10854rm -f core conftest.err conftest.$ac_objext \ 10855 conftest$ac_exeext conftest.$ac_ext 10856LIBS=$ac_check_lib_save_LIBS 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 10859$as_echo "$ac_cv_lib_rt_timer_create" >&6; } 10860if test "x$ac_cv_lib_rt_timer_create" = x""yes; then : 10861 cat >>confdefs.h <<_ACEOF 10862#define HAVE_LIBRT 1 10863_ACEOF 10864 10865 LIBS="-lrt $LIBS" 10866 10867fi 10868 10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 10870$as_echo_n "checking for floor in -lm... " >&6; } 10871if test "${ac_cv_lib_m_floor+set}" = set; then : 10872 $as_echo_n "(cached) " >&6 10873else 10874 ac_check_lib_save_LIBS=$LIBS 10875LIBS="-lm $LIBS" 10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878 10879/* Override any GCC internal prototype to avoid an error. 10880 Use char because int might match the return type of a GCC 10881 builtin and then its argument prototype would still apply. */ 10882#ifdef __cplusplus 10883extern "C" 10884#endif 10885char floor (); 10886int 10887main () 10888{ 10889return floor (); 10890 ; 10891 return 0; 10892} 10893_ACEOF 10894if ac_fn_c_try_link "$LINENO"; then : 10895 ac_cv_lib_m_floor=yes 10896else 10897 ac_cv_lib_m_floor=no 10898fi 10899rm -f core conftest.err conftest.$ac_objext \ 10900 conftest$ac_exeext conftest.$ac_ext 10901LIBS=$ac_check_lib_save_LIBS 10902fi 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 10904$as_echo "$ac_cv_lib_m_floor" >&6; } 10905if test "x$ac_cv_lib_m_floor" = x""yes; then : 10906 cat >>confdefs.h <<_ACEOF 10907#define HAVE_LIBM 1 10908_ACEOF 10909 10910 LIBS="-lm $LIBS" 10911 10912fi 10913 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10915$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10916if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 10917 $as_echo_n "(cached) " >&6 10918else 10919 ac_check_lib_save_LIBS=$LIBS 10920LIBS="-lpthread $LIBS" 10921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10922/* end confdefs.h. */ 10923 10924/* Override any GCC internal prototype to avoid an error. 10925 Use char because int might match the return type of a GCC 10926 builtin and then its argument prototype would still apply. */ 10927#ifdef __cplusplus 10928extern "C" 10929#endif 10930char pthread_create (); 10931int 10932main () 10933{ 10934return pthread_create (); 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_c_try_link "$LINENO"; then : 10940 ac_cv_lib_pthread_pthread_create=yes 10941else 10942 ac_cv_lib_pthread_pthread_create=no 10943fi 10944rm -f core conftest.err conftest.$ac_objext \ 10945 conftest$ac_exeext conftest.$ac_ext 10946LIBS=$ac_check_lib_save_LIBS 10947fi 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 10949$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 10950if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 10951 cat >>confdefs.h <<_ACEOF 10952#define HAVE_LIBPTHREAD 1 10953_ACEOF 10954 10955 LIBS="-lpthread $LIBS" 10956 10957fi 10958 10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5 10960$as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; } 10961if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then : 10962 $as_echo_n "(cached) " >&6 10963else 10964 ac_check_lib_save_LIBS=$LIBS 10965LIBS="-lcrypto $LIBS" 10966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968 10969/* Override any GCC internal prototype to avoid an error. 10970 Use char because int might match the return type of a GCC 10971 builtin and then its argument prototype would still apply. */ 10972#ifdef __cplusplus 10973extern "C" 10974#endif 10975char EVP_DigestInit (); 10976int 10977main () 10978{ 10979return EVP_DigestInit (); 10980 ; 10981 return 0; 10982} 10983_ACEOF 10984if ac_fn_c_try_link "$LINENO"; then : 10985 ac_cv_lib_crypto_EVP_DigestInit=yes 10986else 10987 ac_cv_lib_crypto_EVP_DigestInit=no 10988fi 10989rm -f core conftest.err conftest.$ac_objext \ 10990 conftest$ac_exeext conftest.$ac_ext 10991LIBS=$ac_check_lib_save_LIBS 10992fi 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5 10994$as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; } 10995if test "x$ac_cv_lib_crypto_EVP_DigestInit" = x""yes; then : 10996 cat >>confdefs.h <<_ACEOF 10997#define HAVE_LIBCRYPTO 1 10998_ACEOF 10999 11000 LIBS="-lcrypto $LIBS" 11001 11002fi 11003 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_write in -lssl" >&5 11005$as_echo_n "checking for SSL_write in -lssl... " >&6; } 11006if test "${ac_cv_lib_ssl_SSL_write+set}" = set; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 ac_check_lib_save_LIBS=$LIBS 11010LIBS="-lssl $LIBS" 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char SSL_write (); 11021int 11022main () 11023{ 11024return SSL_write (); 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 ac_cv_lib_ssl_SSL_write=yes 11031else 11032 ac_cv_lib_ssl_SSL_write=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036LIBS=$ac_check_lib_save_LIBS 11037fi 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_write" >&5 11039$as_echo "$ac_cv_lib_ssl_SSL_write" >&6; } 11040if test "x$ac_cv_lib_ssl_SSL_write" = x""yes; then : 11041 cat >>confdefs.h <<_ACEOF 11042#define HAVE_LIBSSL 1 11043_ACEOF 11044 11045 LIBS="-lssl $LIBS" 11046 11047fi 11048 11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 11050$as_echo_n "checking for magic_open in -lmagic... " >&6; } 11051if test "${ac_cv_lib_magic_magic_open+set}" = set; then : 11052 $as_echo_n "(cached) " >&6 11053else 11054 ac_check_lib_save_LIBS=$LIBS 11055LIBS="-lmagic $LIBS" 11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058 11059/* Override any GCC internal prototype to avoid an error. 11060 Use char because int might match the return type of a GCC 11061 builtin and then its argument prototype would still apply. */ 11062#ifdef __cplusplus 11063extern "C" 11064#endif 11065char magic_open (); 11066int 11067main () 11068{ 11069return magic_open (); 11070 ; 11071 return 0; 11072} 11073_ACEOF 11074if ac_fn_c_try_link "$LINENO"; then : 11075 ac_cv_lib_magic_magic_open=yes 11076else 11077 ac_cv_lib_magic_magic_open=no 11078fi 11079rm -f core conftest.err conftest.$ac_objext \ 11080 conftest$ac_exeext conftest.$ac_ext 11081LIBS=$ac_check_lib_save_LIBS 11082fi 11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 11084$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 11085if test "x$ac_cv_lib_magic_magic_open" = x""yes; then : 11086 cat >>confdefs.h <<_ACEOF 11087#define HAVE_LIBMAGIC 1 11088_ACEOF 11089 11090 LIBS="-lmagic $LIBS" 11091 11092fi 11093 11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11095$as_echo_n "checking for dlopen in -ldl... " >&6; } 11096if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11097 $as_echo_n "(cached) " >&6 11098else 11099 ac_check_lib_save_LIBS=$LIBS 11100LIBS="-ldl $LIBS" 11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11102/* end confdefs.h. */ 11103 11104/* Override any GCC internal prototype to avoid an error. 11105 Use char because int might match the return type of a GCC 11106 builtin and then its argument prototype would still apply. */ 11107#ifdef __cplusplus 11108extern "C" 11109#endif 11110char dlopen (); 11111int 11112main () 11113{ 11114return dlopen (); 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_link "$LINENO"; then : 11120 ac_cv_lib_dl_dlopen=yes 11121else 11122 ac_cv_lib_dl_dlopen=no 11123fi 11124rm -f core conftest.err conftest.$ac_objext \ 11125 conftest$ac_exeext conftest.$ac_ext 11126LIBS=$ac_check_lib_save_LIBS 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11129$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11130if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11131 cat >>confdefs.h <<_ACEOF 11132#define HAVE_LIBDL 1 11133_ACEOF 11134 11135 LIBS="-ldl $LIBS" 11136 11137fi 11138 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 11140$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 11141if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 ac_check_lib_save_LIBS=$LIBS 11145LIBS="-lpcre $LIBS" 11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147/* end confdefs.h. */ 11148 11149/* Override any GCC internal prototype to avoid an error. 11150 Use char because int might match the return type of a GCC 11151 builtin and then its argument prototype would still apply. */ 11152#ifdef __cplusplus 11153extern "C" 11154#endif 11155char pcre_compile (); 11156int 11157main () 11158{ 11159return pcre_compile (); 11160 ; 11161 return 0; 11162} 11163_ACEOF 11164if ac_fn_c_try_link "$LINENO"; then : 11165 ac_cv_lib_pcre_pcre_compile=yes 11166else 11167 ac_cv_lib_pcre_pcre_compile=no 11168fi 11169rm -f core conftest.err conftest.$ac_objext \ 11170 conftest$ac_exeext conftest.$ac_ext 11171LIBS=$ac_check_lib_save_LIBS 11172fi 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 11174$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 11175if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then : 11176 cat >>confdefs.h <<_ACEOF 11177#define HAVE_LIBPCRE 1 11178_ACEOF 11179 11180 LIBS="-lpcre $LIBS" 11181 11182fi 11183 11184 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_copy in -luuid" >&5 11186$as_echo_n "checking for uuid_copy in -luuid... " >&6; } 11187if test "${ac_cv_lib_uuid_uuid_copy+set}" = set; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 ac_check_lib_save_LIBS=$LIBS 11191LIBS="-luuid $LIBS" 11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194 11195/* Override any GCC internal prototype to avoid an error. 11196 Use char because int might match the return type of a GCC 11197 builtin and then its argument prototype would still apply. */ 11198#ifdef __cplusplus 11199extern "C" 11200#endif 11201char uuid_copy (); 11202int 11203main () 11204{ 11205return uuid_copy (); 11206 ; 11207 return 0; 11208} 11209_ACEOF 11210if ac_fn_c_try_link "$LINENO"; then : 11211 ac_cv_lib_uuid_uuid_copy=yes 11212else 11213 ac_cv_lib_uuid_uuid_copy=no 11214fi 11215rm -f core conftest.err conftest.$ac_objext \ 11216 conftest$ac_exeext conftest.$ac_ext 11217LIBS=$ac_check_lib_save_LIBS 11218fi 11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_copy" >&5 11220$as_echo "$ac_cv_lib_uuid_uuid_copy" >&6; } 11221if test "x$ac_cv_lib_uuid_uuid_copy" = x""yes; then : 11222 cat >>confdefs.h <<_ACEOF 11223#define HAVE_LIBUUID 1 11224_ACEOF 11225 11226 LIBS="-luuid $LIBS" 11227 11228else 11229 UUID="no" 11230fi 11231 11232if test "x$UUID" = "xno"; then : 11233 as_fn_error $? "\"uuid library not found\"" "$LINENO" 5 11234 11235fi 11236 11237#AC_CHECK_LIB([curl], [curl_easy_perform], [ 11238# CURL_CFLAGS=`curl-config --cflags` 11239# CURL_LIBS=`curl-config --libs` 11240# CFLAGS="$CFLAGS $CURL_CFLAGS" 11241# LIBS="$CURL_LIBS $LIBS" 11242#], [CURL="no"]) 11243#AS_IF([test "x$CURL" = "xno"], 11244# [AC_MSG_ERROR("curl library not found")] 11245# ) 11246 11247for ac_header in uuid/uuid.h 11248do : 11249 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 11250if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : 11251 cat >>confdefs.h <<_ACEOF 11252#define HAVE_UUID_UUID_H 1 11253_ACEOF 11254 11255else 11256 UUID_HEADER="no" 11257fi 11258 11259done 11260 11261if test "x$UUID_HEADER" = "xno"; then : 11262 as_fn_error $? "\"uuid header file not found\"" "$LINENO" 5 11263 11264fi 11265 11266for ac_header in openssl/evp.h 11267do : 11268 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 11269if test "x$ac_cv_header_openssl_evp_h" = x""yes; then : 11270 cat >>confdefs.h <<_ACEOF 11271#define HAVE_OPENSSL_EVP_H 1 11272_ACEOF 11273 11274else 11275 OPENSSL_HEADER="no" 11276fi 11277 11278done 11279 11280if test "x$OPENSSL_HEADER" = "xno"; then : 11281 as_fn_error $? "\"openssl header file not found\"" "$LINENO" 5 11282 11283fi 11284 11285#AC_CHECK_HEADERS([magic.h], [], [MAGIC_HEADER="no"]) 11286#AS_IF([test "x$MAGIC_HEADER" = "xno"], 11287# [AC_MSG_ERROR("magic header file not found")] 11288# ) 11289 11290#AC_CHECK_HEADERS([pcre.h], [], [PCRE_HEADER="no"]) 11291#AS_IF([test "x$PCRE_HEADER" = "xno"], 11292# [AC_MSG_ERROR("pcre header file not found")] 11293# ) 11294 11295 11296 11297 11298 11299 11300 11301if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11302 if test -n "$ac_tool_prefix"; then 11303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11304set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11306$as_echo_n "checking for $ac_word... " >&6; } 11307if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11308 $as_echo_n "(cached) " >&6 11309else 11310 case $PKG_CONFIG in 11311 [\\/]* | ?:[\\/]*) 11312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11313 ;; 11314 *) 11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11316for as_dir in $PATH 11317do 11318 IFS=$as_save_IFS 11319 test -z "$as_dir" && as_dir=. 11320 for ac_exec_ext in '' $ac_executable_extensions; do 11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11322 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11324 break 2 11325 fi 11326done 11327 done 11328IFS=$as_save_IFS 11329 11330 ;; 11331esac 11332fi 11333PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11334if test -n "$PKG_CONFIG"; then 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11336$as_echo "$PKG_CONFIG" >&6; } 11337else 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11339$as_echo "no" >&6; } 11340fi 11341 11342 11343fi 11344if test -z "$ac_cv_path_PKG_CONFIG"; then 11345 ac_pt_PKG_CONFIG=$PKG_CONFIG 11346 # Extract the first word of "pkg-config", so it can be a program name with args. 11347set dummy pkg-config; ac_word=$2 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11349$as_echo_n "checking for $ac_word... " >&6; } 11350if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 case $ac_pt_PKG_CONFIG in 11354 [\\/]* | ?:[\\/]*) 11355 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11356 ;; 11357 *) 11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11359for as_dir in $PATH 11360do 11361 IFS=$as_save_IFS 11362 test -z "$as_dir" && as_dir=. 11363 for ac_exec_ext in '' $ac_executable_extensions; do 11364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11365 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11367 break 2 11368 fi 11369done 11370 done 11371IFS=$as_save_IFS 11372 11373 ;; 11374esac 11375fi 11376ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11377if test -n "$ac_pt_PKG_CONFIG"; then 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11379$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11380else 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11382$as_echo "no" >&6; } 11383fi 11384 11385 if test "x$ac_pt_PKG_CONFIG" = x; then 11386 PKG_CONFIG="" 11387 else 11388 case $cross_compiling:$ac_tool_warned in 11389yes:) 11390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11392ac_tool_warned=yes ;; 11393esac 11394 PKG_CONFIG=$ac_pt_PKG_CONFIG 11395 fi 11396else 11397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11398fi 11399 11400fi 11401if test -n "$PKG_CONFIG"; then 11402 _pkg_min_version=0.9.0 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11404$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11407$as_echo "yes" >&6; } 11408 else 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11410$as_echo "no" >&6; } 11411 PKG_CONFIG="" 11412 fi 11413fi 11414 11415pkg_failed=no 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCONFIG" >&5 11417$as_echo_n "checking for LIBCONFIG... " >&6; } 11418 11419if test -n "$LIBCONFIG_CFLAGS"; then 11420 pkg_cv_LIBCONFIG_CFLAGS="$LIBCONFIG_CFLAGS" 11421 elif test -n "$PKG_CONFIG"; then 11422 if test -n "$PKG_CONFIG" && \ 11423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5 11424 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5 11425 ac_status=$? 11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11427 test $ac_status = 0; }; then 11428 pkg_cv_LIBCONFIG_CFLAGS=`$PKG_CONFIG --cflags "libconfig >= 1.3.2" 2>/dev/null` 11429else 11430 pkg_failed=yes 11431fi 11432 else 11433 pkg_failed=untried 11434fi 11435if test -n "$LIBCONFIG_LIBS"; then 11436 pkg_cv_LIBCONFIG_LIBS="$LIBCONFIG_LIBS" 11437 elif test -n "$PKG_CONFIG"; then 11438 if test -n "$PKG_CONFIG" && \ 11439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5 11440 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5 11441 ac_status=$? 11442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11443 test $ac_status = 0; }; then 11444 pkg_cv_LIBCONFIG_LIBS=`$PKG_CONFIG --libs "libconfig >= 1.3.2" 2>/dev/null` 11445else 11446 pkg_failed=yes 11447fi 11448 else 11449 pkg_failed=untried 11450fi 11451 11452 11453 11454if test $pkg_failed = yes; then 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11456$as_echo "no" >&6; } 11457 11458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11459 _pkg_short_errors_supported=yes 11460else 11461 _pkg_short_errors_supported=no 11462fi 11463 if test $_pkg_short_errors_supported = yes; then 11464 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfig >= 1.3.2" 2>&1` 11465 else 11466 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfig >= 1.3.2" 2>&1` 11467 fi 11468 # Put the nasty error message in config.log where it belongs 11469 echo "$LIBCONFIG_PKG_ERRORS" >&5 11470 11471 as_fn_error $? "Package requirements (libconfig >= 1.3.2) were not met: 11472 11473$LIBCONFIG_PKG_ERRORS 11474 11475Consider adjusting the PKG_CONFIG_PATH environment variable if you 11476installed software in a non-standard prefix. 11477 11478Alternatively, you may set the environment variables LIBCONFIG_CFLAGS 11479and LIBCONFIG_LIBS to avoid the need to call pkg-config. 11480See the pkg-config man page for more details." "$LINENO" 5 11481elif test $pkg_failed = untried; then 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11483$as_echo "no" >&6; } 11484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11486as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11487is in your PATH or set the PKG_CONFIG environment variable to the full 11488path to pkg-config. 11489 11490Alternatively, you may set the environment variables LIBCONFIG_CFLAGS 11491and LIBCONFIG_LIBS to avoid the need to call pkg-config. 11492See the pkg-config man page for more details. 11493 11494To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11495See \`config.log' for more details" "$LINENO" 5 ; } 11496else 11497 LIBCONFIG_CFLAGS=$pkg_cv_LIBCONFIG_CFLAGS 11498 LIBCONFIG_LIBS=$pkg_cv_LIBCONFIG_LIBS 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11500$as_echo "yes" >&6; } 11501 11502fi 11503CFLAGS="$LIBCONFIG_CFLAGS $CFLAGS" 11504LIBS="$LIBCONFIG_LIBS $LIBS" 11505 11506#AC_CHECK_HEADERS([curl/curl.h], [], [CURL_HEADER="no"]) 11507#AS_IF([test "x$CURL_HEADER" = "xno"], 11508# [AC_MSG_ERROR("curl header file not found")] 11509# ) 11510 11511 11512pkg_failed=no 11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 11514$as_echo_n "checking for JSON... " >&6; } 11515 11516if test -n "$JSON_CFLAGS"; then 11517 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" 11518 elif test -n "$PKG_CONFIG"; then 11519 if test -n "$PKG_CONFIG" && \ 11520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.9\""; } >&5 11521 ($PKG_CONFIG --exists --print-errors "json-c >= 0.9") 2>&5 11522 ac_status=$? 11523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11524 test $ac_status = 0; }; then 11525 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.9" 2>/dev/null` 11526else 11527 pkg_failed=yes 11528fi 11529 else 11530 pkg_failed=untried 11531fi 11532if test -n "$JSON_LIBS"; then 11533 pkg_cv_JSON_LIBS="$JSON_LIBS" 11534 elif test -n "$PKG_CONFIG"; then 11535 if test -n "$PKG_CONFIG" && \ 11536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.9\""; } >&5 11537 ($PKG_CONFIG --exists --print-errors "json-c >= 0.9") 2>&5 11538 ac_status=$? 11539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11540 test $ac_status = 0; }; then 11541 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c >= 0.9" 2>/dev/null` 11542else 11543 pkg_failed=yes 11544fi 11545 else 11546 pkg_failed=untried 11547fi 11548 11549 11550 11551if test $pkg_failed = yes; then 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11553$as_echo "no" >&6; } 11554 11555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11556 _pkg_short_errors_supported=yes 11557else 11558 _pkg_short_errors_supported=no 11559fi 11560 if test $_pkg_short_errors_supported = yes; then 11561 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "json-c >= 0.9" 2>&1` 11562 else 11563 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "json-c >= 0.9" 2>&1` 11564 fi 11565 # Put the nasty error message in config.log where it belongs 11566 echo "$JSON_PKG_ERRORS" >&5 11567 11568 as_fn_error $? "Package requirements (json-c >= 0.9) were not met: 11569 11570$JSON_PKG_ERRORS 11571 11572Consider adjusting the PKG_CONFIG_PATH environment variable if you 11573installed software in a non-standard prefix. 11574 11575Alternatively, you may set the environment variables JSON_CFLAGS 11576and JSON_LIBS to avoid the need to call pkg-config. 11577See the pkg-config man page for more details." "$LINENO" 5 11578elif test $pkg_failed = untried; then 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11580$as_echo "no" >&6; } 11581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11583as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11584is in your PATH or set the PKG_CONFIG environment variable to the full 11585path to pkg-config. 11586 11587Alternatively, you may set the environment variables JSON_CFLAGS 11588and JSON_LIBS to avoid the need to call pkg-config. 11589See the pkg-config man page for more details. 11590 11591To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11592See \`config.log' for more details" "$LINENO" 5 ; } 11593else 11594 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS 11595 JSON_LIBS=$pkg_cv_JSON_LIBS 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11597$as_echo "yes" >&6; } 11598 11599fi 11600 11601CFLAGS="$JSON_CFLAGS $CFLAGS" 11602LIBS="$JSON_LIBS $LIBS" 11603 11604 11605 11606# Pull in the standard header and function checks. 11607# Checks for header files. 11608for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h stdarg.h 11609do : 11610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11611ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11613 cat >>confdefs.h <<_ACEOF 11614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11615_ACEOF 11616 11617fi 11618 11619done 11620 11621 11622# Checks for typedefs, structures, and compiler characteristics. 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11624$as_echo_n "checking for inline... " >&6; } 11625if test "${ac_cv_c_inline+set}" = set; then : 11626 $as_echo_n "(cached) " >&6 11627else 11628 ac_cv_c_inline=no 11629for ac_kw in inline __inline__ __inline; do 11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11631/* end confdefs.h. */ 11632#ifndef __cplusplus 11633typedef int foo_t; 11634static $ac_kw foo_t static_foo () {return 0; } 11635$ac_kw foo_t foo () {return 0; } 11636#endif 11637 11638_ACEOF 11639if ac_fn_c_try_compile "$LINENO"; then : 11640 ac_cv_c_inline=$ac_kw 11641fi 11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11643 test "$ac_cv_c_inline" != no && break 11644done 11645 11646fi 11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11648$as_echo "$ac_cv_c_inline" >&6; } 11649 11650case $ac_cv_c_inline in 11651 inline | yes) ;; 11652 *) 11653 case $ac_cv_c_inline in 11654 no) ac_val=;; 11655 *) ac_val=$ac_cv_c_inline;; 11656 esac 11657 cat >>confdefs.h <<_ACEOF 11658#ifndef __cplusplus 11659#define inline $ac_val 11660#endif 11661_ACEOF 11662 ;; 11663esac 11664 11665ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11666if test "x$ac_cv_type_size_t" = x""yes; then : 11667 11668else 11669 11670cat >>confdefs.h <<_ACEOF 11671#define size_t unsigned int 11672_ACEOF 11673 11674fi 11675 11676ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 11677if test "x$ac_cv_type_ssize_t" = x""yes; then : 11678 11679else 11680 11681cat >>confdefs.h <<_ACEOF 11682#define ssize_t int 11683_ACEOF 11684 11685fi 11686 11687ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 11688case $ac_cv_c_uint16_t in #( 11689 no|yes) ;; #( 11690 *) 11691 11692 11693cat >>confdefs.h <<_ACEOF 11694#define uint16_t $ac_cv_c_uint16_t 11695_ACEOF 11696;; 11697 esac 11698 11699ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11700case $ac_cv_c_uint32_t in #( 11701 no|yes) ;; #( 11702 *) 11703 11704$as_echo "#define _UINT32_T 1" >>confdefs.h 11705 11706 11707cat >>confdefs.h <<_ACEOF 11708#define uint32_t $ac_cv_c_uint32_t 11709_ACEOF 11710;; 11711 esac 11712 11713ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 11714case $ac_cv_c_uint8_t in #( 11715 no|yes) ;; #( 11716 *) 11717 11718$as_echo "#define _UINT8_T 1" >>confdefs.h 11719 11720 11721cat >>confdefs.h <<_ACEOF 11722#define uint8_t $ac_cv_c_uint8_t 11723_ACEOF 11724;; 11725 esac 11726 11727 11728 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 11729if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11730 11731$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 11732 11733else 11734 for ac_type in 'unsigned int' 'unsigned long int' \ 11735 'unsigned long long int'; do 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738$ac_includes_default 11739int 11740main () 11741{ 11742static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 11743test_array [0] = 0 11744 11745 ; 11746 return 0; 11747} 11748_ACEOF 11749if ac_fn_c_try_compile "$LINENO"; then : 11750 11751cat >>confdefs.h <<_ACEOF 11752#define uintptr_t $ac_type 11753_ACEOF 11754 11755 ac_type= 11756fi 11757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11758 test -z "$ac_type" && break 11759 done 11760fi 11761 11762 11763 11764 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 11765if test "x$ac_cv_type_intptr_t" = x""yes; then : 11766 11767$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 11768 11769else 11770 for ac_type in 'int' 'long int' 'long long int'; do 11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772/* end confdefs.h. */ 11773$ac_includes_default 11774int 11775main () 11776{ 11777static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 11778test_array [0] = 0 11779 11780 ; 11781 return 0; 11782} 11783_ACEOF 11784if ac_fn_c_try_compile "$LINENO"; then : 11785 11786cat >>confdefs.h <<_ACEOF 11787#define intptr_t $ac_type 11788_ACEOF 11789 11790 ac_type= 11791fi 11792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11793 test -z "$ac_type" && break 11794 done 11795fi 11796 11797 11798 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 11800$as_echo_n "checking for long long int... " >&6; } 11801if test "${ac_cv_type_long_long_int+set}" = set; then : 11802 $as_echo_n "(cached) " >&6 11803else 11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11805/* end confdefs.h. */ 11806 11807 /* For now, do not test the preprocessor; as of 2007 there are too many 11808 implementations with broken preprocessors. Perhaps this can 11809 be revisited in 2012. In the meantime, code should not expect 11810 #if to work with literals wider than 32 bits. */ 11811 /* Test literals. */ 11812 long long int ll = 9223372036854775807ll; 11813 long long int nll = -9223372036854775807LL; 11814 unsigned long long int ull = 18446744073709551615ULL; 11815 /* Test constant expressions. */ 11816 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11817 ? 1 : -1)]; 11818 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11819 ? 1 : -1)]; 11820 int i = 63; 11821int 11822main () 11823{ 11824/* Test availability of runtime routines for shift and division. */ 11825 long long int llmax = 9223372036854775807ll; 11826 unsigned long long int ullmax = 18446744073709551615ull; 11827 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11828 | (llmax / ll) | (llmax % ll) 11829 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11830 | (ullmax / ull) | (ullmax % ull)); 11831 ; 11832 return 0; 11833} 11834 11835_ACEOF 11836if ac_fn_c_try_link "$LINENO"; then : 11837 if test "$cross_compiling" = yes; then : 11838 ac_cv_type_long_long_int=yes 11839else 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842#include <limits.h> 11843 #ifndef LLONG_MAX 11844 # define HALF \ 11845 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 11846 # define LLONG_MAX (HALF - 1 + HALF) 11847 #endif 11848int 11849main () 11850{ 11851long long int n = 1; 11852 int i; 11853 for (i = 0; ; i++) 11854 { 11855 long long int m = n << i; 11856 if (m >> i != n) 11857 return 1; 11858 if (LLONG_MAX / 2 < m) 11859 break; 11860 } 11861 return 0; 11862 ; 11863 return 0; 11864} 11865_ACEOF 11866if ac_fn_c_try_run "$LINENO"; then : 11867 ac_cv_type_long_long_int=yes 11868else 11869 ac_cv_type_long_long_int=no 11870fi 11871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11872 conftest.$ac_objext conftest.beam conftest.$ac_ext 11873fi 11874 11875else 11876 ac_cv_type_long_long_int=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext \ 11879 conftest$ac_exeext conftest.$ac_ext 11880fi 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 11882$as_echo "$ac_cv_type_long_long_int" >&6; } 11883 if test $ac_cv_type_long_long_int = yes; then 11884 11885$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 11886 11887 fi 11888 11889 11890 11891 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 11892if test "x$ac_cv_type_intmax_t" = x""yes; then : 11893 11894$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 11895 11896else 11897 test $ac_cv_type_long_long_int = yes \ 11898 && ac_type='long long int' \ 11899 || ac_type='long int' 11900 11901cat >>confdefs.h <<_ACEOF 11902#define intmax_t $ac_type 11903_ACEOF 11904 11905fi 11906 11907 11908 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 11910$as_echo_n "checking for unsigned long long int... " >&6; } 11911if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 11912 $as_echo_n "(cached) " >&6 11913else 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11915/* end confdefs.h. */ 11916 11917 /* For now, do not test the preprocessor; as of 2007 there are too many 11918 implementations with broken preprocessors. Perhaps this can 11919 be revisited in 2012. In the meantime, code should not expect 11920 #if to work with literals wider than 32 bits. */ 11921 /* Test literals. */ 11922 long long int ll = 9223372036854775807ll; 11923 long long int nll = -9223372036854775807LL; 11924 unsigned long long int ull = 18446744073709551615ULL; 11925 /* Test constant expressions. */ 11926 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11927 ? 1 : -1)]; 11928 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11929 ? 1 : -1)]; 11930 int i = 63; 11931int 11932main () 11933{ 11934/* Test availability of runtime routines for shift and division. */ 11935 long long int llmax = 9223372036854775807ll; 11936 unsigned long long int ullmax = 18446744073709551615ull; 11937 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11938 | (llmax / ll) | (llmax % ll) 11939 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11940 | (ullmax / ull) | (ullmax % ull)); 11941 ; 11942 return 0; 11943} 11944 11945_ACEOF 11946if ac_fn_c_try_link "$LINENO"; then : 11947 ac_cv_type_unsigned_long_long_int=yes 11948else 11949 ac_cv_type_unsigned_long_long_int=no 11950fi 11951rm -f core conftest.err conftest.$ac_objext \ 11952 conftest$ac_exeext conftest.$ac_ext 11953fi 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 11955$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 11956 if test $ac_cv_type_unsigned_long_long_int = yes; then 11957 11958$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 11959 11960 fi 11961 11962 11963 11964 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 11965if test "x$ac_cv_type_uintmax_t" = x""yes; then : 11966 11967$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 11968 11969else 11970 test $ac_cv_type_unsigned_long_long_int = yes \ 11971 && ac_type='unsigned long long int' \ 11972 || ac_type='unsigned long int' 11973 11974cat >>confdefs.h <<_ACEOF 11975#define uintmax_t $ac_type 11976_ACEOF 11977 11978fi 11979 11980 11981ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11982if test "x$ac_cv_type_size_t" = x""yes; then : 11983 11984cat >>confdefs.h <<_ACEOF 11985#define HAVE_SIZE_T 1 11986_ACEOF 11987 11988 11989fi 11990 11991ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 11992if test "x$ac_cv_type_ssize_t" = x""yes; then : 11993 11994cat >>confdefs.h <<_ACEOF 11995#define HAVE_SSIZE_T 1 11996_ACEOF 11997 11998 11999fi 12000 12001ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12002if test "x$ac_cv_type_uint16_t" = x""yes; then : 12003 12004cat >>confdefs.h <<_ACEOF 12005#define HAVE_UINT16_T 1 12006_ACEOF 12007 12008 12009fi 12010 12011ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12012if test "x$ac_cv_type_uint32_t" = x""yes; then : 12013 12014cat >>confdefs.h <<_ACEOF 12015#define HAVE_UINT32_T 1 12016_ACEOF 12017 12018 12019fi 12020 12021ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12022if test "x$ac_cv_type_uint8_t" = x""yes; then : 12023 12024cat >>confdefs.h <<_ACEOF 12025#define HAVE_UINT8_T 1 12026_ACEOF 12027 12028 12029fi 12030 12031ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 12032if test "x$ac_cv_type_uintptr_t" = x""yes; then : 12033 12034cat >>confdefs.h <<_ACEOF 12035#define HAVE_UINTPTR_T 1 12036_ACEOF 12037 12038 12039fi 12040 12041ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 12042if test "x$ac_cv_type_intptr_t" = x""yes; then : 12043 12044cat >>confdefs.h <<_ACEOF 12045#define HAVE_INTPTR_T 1 12046_ACEOF 12047 12048 12049fi 12050 12051ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 12052if test "x$ac_cv_type_intmax_t" = x""yes; then : 12053 12054cat >>confdefs.h <<_ACEOF 12055#define HAVE_INTMAX_T 1 12056_ACEOF 12057 12058 12059fi 12060 12061ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 12062if test "x$ac_cv_type_uintmax_t" = x""yes; then : 12063 12064cat >>confdefs.h <<_ACEOF 12065#define HAVE_UINTMAX_T 1 12066_ACEOF 12067 12068 12069fi 12070 12071 12072# Checks for library functions. 12073for ac_header in stdlib.h 12074do : 12075 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12076if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12077 cat >>confdefs.h <<_ACEOF 12078#define HAVE_STDLIB_H 1 12079_ACEOF 12080 12081fi 12082 12083done 12084 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12086$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12087if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 if test "$cross_compiling" = yes; then : 12091 ac_cv_func_malloc_0_nonnull=no 12092else 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094/* end confdefs.h. */ 12095#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12096# include <stdlib.h> 12097#else 12098char *malloc (); 12099#endif 12100 12101int 12102main () 12103{ 12104return ! malloc (0); 12105 ; 12106 return 0; 12107} 12108_ACEOF 12109if ac_fn_c_try_run "$LINENO"; then : 12110 ac_cv_func_malloc_0_nonnull=yes 12111else 12112 ac_cv_func_malloc_0_nonnull=no 12113fi 12114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12115 conftest.$ac_objext conftest.beam conftest.$ac_ext 12116fi 12117 12118fi 12119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12120$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12121if test $ac_cv_func_malloc_0_nonnull = yes; then : 12122 12123$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12124 12125else 12126 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12127 12128 case " $LIBOBJS " in 12129 *" malloc.$ac_objext "* ) ;; 12130 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12131 ;; 12132esac 12133 12134 12135$as_echo "#define malloc rpl_malloc" >>confdefs.h 12136 12137fi 12138 12139 12140 12141 12142 12143 for ac_header in $ac_header_list 12144do : 12145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12146ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12147" 12148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12149 cat >>confdefs.h <<_ACEOF 12150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12151_ACEOF 12152 12153fi 12154 12155done 12156 12157 12158 12159 12160 12161 12162 12163 12164for ac_func in getpagesize 12165do : 12166 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12167if test "x$ac_cv_func_getpagesize" = x""yes; then : 12168 cat >>confdefs.h <<_ACEOF 12169#define HAVE_GETPAGESIZE 1 12170_ACEOF 12171 12172fi 12173done 12174 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12176$as_echo_n "checking for working mmap... " >&6; } 12177if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 12178 $as_echo_n "(cached) " >&6 12179else 12180 if test "$cross_compiling" = yes; then : 12181 ac_cv_func_mmap_fixed_mapped=no 12182else 12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12184/* end confdefs.h. */ 12185$ac_includes_default 12186/* malloc might have been renamed as rpl_malloc. */ 12187#undef malloc 12188 12189/* Thanks to Mike Haertel and Jim Avera for this test. 12190 Here is a matrix of mmap possibilities: 12191 mmap private not fixed 12192 mmap private fixed at somewhere currently unmapped 12193 mmap private fixed at somewhere already mapped 12194 mmap shared not fixed 12195 mmap shared fixed at somewhere currently unmapped 12196 mmap shared fixed at somewhere already mapped 12197 For private mappings, we should verify that changes cannot be read() 12198 back from the file, nor mmap's back from the file at a different 12199 address. (There have been systems where private was not correctly 12200 implemented like the infamous i386 svr4.0, and systems where the 12201 VM page cache was not coherent with the file system buffer cache 12202 like early versions of FreeBSD and possibly contemporary NetBSD.) 12203 For shared mappings, we should conversely verify that changes get 12204 propagated back to all the places they're supposed to be. 12205 12206 Grep wants private fixed already mapped. 12207 The main things grep needs to know about mmap are: 12208 * does it exist and is it safe to write into the mmap'd area 12209 * how to use it (BSD variants) */ 12210 12211#include <fcntl.h> 12212#include <sys/mman.h> 12213 12214#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12215char *malloc (); 12216#endif 12217 12218/* This mess was copied from the GNU getpagesize.h. */ 12219#ifndef HAVE_GETPAGESIZE 12220# ifdef _SC_PAGESIZE 12221# define getpagesize() sysconf(_SC_PAGESIZE) 12222# else /* no _SC_PAGESIZE */ 12223# ifdef HAVE_SYS_PARAM_H 12224# include <sys/param.h> 12225# ifdef EXEC_PAGESIZE 12226# define getpagesize() EXEC_PAGESIZE 12227# else /* no EXEC_PAGESIZE */ 12228# ifdef NBPG 12229# define getpagesize() NBPG * CLSIZE 12230# ifndef CLSIZE 12231# define CLSIZE 1 12232# endif /* no CLSIZE */ 12233# else /* no NBPG */ 12234# ifdef NBPC 12235# define getpagesize() NBPC 12236# else /* no NBPC */ 12237# ifdef PAGESIZE 12238# define getpagesize() PAGESIZE 12239# endif /* PAGESIZE */ 12240# endif /* no NBPC */ 12241# endif /* no NBPG */ 12242# endif /* no EXEC_PAGESIZE */ 12243# else /* no HAVE_SYS_PARAM_H */ 12244# define getpagesize() 8192 /* punt totally */ 12245# endif /* no HAVE_SYS_PARAM_H */ 12246# endif /* no _SC_PAGESIZE */ 12247 12248#endif /* no HAVE_GETPAGESIZE */ 12249 12250int 12251main () 12252{ 12253 char *data, *data2, *data3; 12254 const char *cdata2; 12255 int i, pagesize; 12256 int fd, fd2; 12257 12258 pagesize = getpagesize (); 12259 12260 /* First, make a file with some known garbage in it. */ 12261 data = (char *) malloc (pagesize); 12262 if (!data) 12263 return 1; 12264 for (i = 0; i < pagesize; ++i) 12265 *(data + i) = rand (); 12266 umask (0); 12267 fd = creat ("conftest.mmap", 0600); 12268 if (fd < 0) 12269 return 2; 12270 if (write (fd, data, pagesize) != pagesize) 12271 return 3; 12272 close (fd); 12273 12274 /* Next, check that the tail of a page is zero-filled. File must have 12275 non-zero length, otherwise we risk SIGBUS for entire page. */ 12276 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12277 if (fd2 < 0) 12278 return 4; 12279 cdata2 = ""; 12280 if (write (fd2, cdata2, 1) != 1) 12281 return 5; 12282 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12283 if (data2 == MAP_FAILED) 12284 return 6; 12285 for (i = 0; i < pagesize; ++i) 12286 if (*(data2 + i)) 12287 return 7; 12288 close (fd2); 12289 if (munmap (data2, pagesize)) 12290 return 8; 12291 12292 /* Next, try to mmap the file at a fixed address which already has 12293 something else allocated at it. If we can, also make sure that 12294 we see the same garbage. */ 12295 fd = open ("conftest.mmap", O_RDWR); 12296 if (fd < 0) 12297 return 9; 12298 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12299 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12300 return 10; 12301 for (i = 0; i < pagesize; ++i) 12302 if (*(data + i) != *(data2 + i)) 12303 return 11; 12304 12305 /* Finally, make sure that changes to the mapped area do not 12306 percolate back to the file as seen by read(). (This is a bug on 12307 some variants of i386 svr4.0.) */ 12308 for (i = 0; i < pagesize; ++i) 12309 *(data2 + i) = *(data2 + i) + 1; 12310 data3 = (char *) malloc (pagesize); 12311 if (!data3) 12312 return 12; 12313 if (read (fd, data3, pagesize) != pagesize) 12314 return 13; 12315 for (i = 0; i < pagesize; ++i) 12316 if (*(data + i) != *(data3 + i)) 12317 return 14; 12318 close (fd); 12319 return 0; 12320} 12321_ACEOF 12322if ac_fn_c_try_run "$LINENO"; then : 12323 ac_cv_func_mmap_fixed_mapped=yes 12324else 12325 ac_cv_func_mmap_fixed_mapped=no 12326fi 12327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12328 conftest.$ac_objext conftest.beam conftest.$ac_ext 12329fi 12330 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12333$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12334if test $ac_cv_func_mmap_fixed_mapped = yes; then 12335 12336$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12337 12338fi 12339rm -f conftest.mmap conftest.txt 12340 12341for ac_header in stdlib.h 12342do : 12343 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12344if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12345 cat >>confdefs.h <<_ACEOF 12346#define HAVE_STDLIB_H 1 12347_ACEOF 12348 12349fi 12350 12351done 12352 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12354$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12355if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 12356 $as_echo_n "(cached) " >&6 12357else 12358 if test "$cross_compiling" = yes; then : 12359 ac_cv_func_realloc_0_nonnull=no 12360else 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12364# include <stdlib.h> 12365#else 12366char *realloc (); 12367#endif 12368 12369int 12370main () 12371{ 12372return ! realloc (0, 0); 12373 ; 12374 return 0; 12375} 12376_ACEOF 12377if ac_fn_c_try_run "$LINENO"; then : 12378 ac_cv_func_realloc_0_nonnull=yes 12379else 12380 ac_cv_func_realloc_0_nonnull=no 12381fi 12382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12383 conftest.$ac_objext conftest.beam conftest.$ac_ext 12384fi 12385 12386fi 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12388$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12389if test $ac_cv_func_realloc_0_nonnull = yes; then : 12390 12391$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12392 12393else 12394 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 12395 12396 case " $LIBOBJS " in 12397 *" realloc.$ac_objext "* ) ;; 12398 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12399 ;; 12400esac 12401 12402 12403$as_echo "#define realloc rpl_realloc" >>confdefs.h 12404 12405fi 12406 12407 12408for ac_func in inet_ntoa memset munmap socket strdup strerror strncasecmp strstr strtoul 12409do : 12410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12412if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12413 cat >>confdefs.h <<_ACEOF 12414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12415_ACEOF 12416 12417fi 12418done 12419 12420 12421 12422 12423# Pull in the standard options for all components 12424# Check whether --enable-debug was given. 12425if test "${enable_debug+set}" = set; then : 12426 enableval=$enable_debug; enable_debug=$enableval 12427else 12428 enable_debug="no" 12429fi 12430 12431if test "x$enable_debug" = "xyes"; then 12432 12433$as_echo "#define DEBUG 1" >>confdefs.h 12434 12435fi 12436# Check whether --enable-assert was given. 12437if test "${enable_assert+set}" = set; then : 12438 enableval=$enable_assert; enable_assert=$enableval 12439else 12440 enable_assert="no" 12441fi 12442 12443if test "x$enable_assert" = "xyes"; then 12444 12445$as_echo "#define ENABLE_ASSERT 1" >>confdefs.h 12446 12447fi 12448 12449# Check whether --enable-unimplemented was given. 12450if test "${enable_unimplemented+set}" = set; then : 12451 enableval=$enable_unimplemented; enable_unimplemented=$enableval 12452else 12453 enable_unimplemented="no" 12454fi 12455 12456if test "x$enable_unimplemented" = "xyes"; then 12457 12458$as_echo "#define ENABLE_UNIMPLEMENTED_ASSERT 1" >>confdefs.h 12459 12460fi 12461 12462 12463INLINE='' 12464# Check whether --enable-inline was given. 12465if test "${enable_inline+set}" = set; then : 12466 enableval=$enable_inline; enable_inline=$enableval 12467else 12468 enable_inline="yes" 12469fi 12470 12471if test "x$enable_inline" = "xyes"; then 12472 INLINE="inline" 12473fi 12474 12475cat >>confdefs.h <<_ACEOF 12476#define INLINE $INLINE 12477_ACEOF 12478 12479 12480# Check whether --enable-perf was given. 12481if test "${enable_perf+set}" = set; then : 12482 enableval=$enable_perf; enable_perf=$enableval 12483else 12484 enable_perf="yes" 12485fi 12486 12487if test "x$enable_perf" = "xyes"; then 12488 12489$as_echo "#define RZB_PERF 1" >>confdefs.h 12490 12491fi 12492 12493# Check whether --enable-profile was given. 12494if test "${enable_profile+set}" = set; then : 12495 enableval=$enable_profile; enable_profile=$enableval 12496else 12497 enable_profile="no" 12498fi 12499 12500if test "x$enable_profile" = "xyes"; then 12501 12502$as_echo "#define PROFILE 1" >>confdefs.h 12503 12504 PROFILE_LDFLAGS="-XCClinker -pg" 12505fi 12506 12507 12508 12509# Check whether --enable-cnc_debug was given. 12510if test "${enable_cnc_debug+set}" = set; then : 12511 enableval=$enable_cnc_debug; enable_cnc_debug=$enableval 12512else 12513 enable_cnc_debug="no" 12514fi 12515 12516if test "x$enable_cnc_debug" = "xyes"; then 12517 12518$as_echo "#define CNC_DEBUG 1" >>confdefs.h 12519 12520fi 12521 12522# Check whether --enable-stomp_debug was given. 12523if test "${enable_stomp_debug+set}" = set; then : 12524 enableval=$enable_stomp_debug; enable_stomp_debug=$enableval 12525else 12526 enable_stomp_debug="no" 12527fi 12528 12529if test "x$enable_stomp_debug" = "xyes"; then 12530 12531$as_echo "#define STOMP_DEBUG 1" >>confdefs.h 12532 12533fi 12534 12535# Check whether --enable-magic_debug was given. 12536if test "${enable_magic_debug+set}" = set; then : 12537 enableval=$enable_magic_debug; enable_magic_debug=$enableval 12538else 12539 enable_magic_debug="no" 12540fi 12541 12542if test "x$enable_magic_debug" = "xyes"; then 12543 12544$as_echo "#define MIME_MAGIC_DEBUG 1" >>confdefs.h 12545 12546fi 12547 12548$as_echo "#define WITH_SERVER 1" >>confdefs.h 12549 12550 12551$as_echo "#define WITH_SSH1 1" >>confdefs.h 12552 12553 12554$as_echo "#define WITH_SFTP 1" >>confdefs.h 12555 12556 12557$as_echo "#define WITH_ZLIB 1" >>confdefs.h 12558 12559 12560for ac_header in argp.h 12561do : 12562 ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default" 12563if test "x$ac_cv_header_argp_h" = x""yes; then : 12564 cat >>confdefs.h <<_ACEOF 12565#define HAVE_ARGP_H 1 12566_ACEOF 12567 12568fi 12569 12570done 12571 12572for ac_header in pty.h 12573do : 12574 ac_fn_c_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 12575if test "x$ac_cv_header_pty_h" = x""yes; then : 12576 cat >>confdefs.h <<_ACEOF 12577#define HAVE_PTY_H 1 12578_ACEOF 12579 12580fi 12581 12582done 12583 12584for ac_header in termios.h 12585do : 12586 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 12587if test "x$ac_cv_header_termios_h" = x""yes; then : 12588 cat >>confdefs.h <<_ACEOF 12589#define HAVE_TERMIOS_H 1 12590_ACEOF 12591 12592fi 12593 12594done 12595 12596for ac_header in openssl/aes.h 12597do : 12598 ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" 12599if test "x$ac_cv_header_openssl_aes_h" = x""yes; then : 12600 cat >>confdefs.h <<_ACEOF 12601#define HAVE_OPENSSL_AES_H 1 12602_ACEOF 12603 12604fi 12605 12606done 12607 12608for ac_header in openssl/blowfish.h 12609do : 12610 ac_fn_c_check_header_mongrel "$LINENO" "openssl/blowfish.h" "ac_cv_header_openssl_blowfish_h" "$ac_includes_default" 12611if test "x$ac_cv_header_openssl_blowfish_h" = x""yes; then : 12612 cat >>confdefs.h <<_ACEOF 12613#define HAVE_OPENSSL_BLOWFISH_H 1 12614_ACEOF 12615 12616fi 12617 12618done 12619 12620for ac_header in openssl/des.h 12621do : 12622 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default" 12623if test "x$ac_cv_header_openssl_des_h" = x""yes; then : 12624 cat >>confdefs.h <<_ACEOF 12625#define HAVE_OPENSSL_DES_H 1 12626_ACEOF 12627 12628fi 12629 12630done 12631 12632for ac_header in openssl/ec.h 12633do : 12634 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default" 12635if test "x$ac_cv_header_openssl_ec_h" = x""yes; then : 12636 cat >>confdefs.h <<_ACEOF 12637#define HAVE_OPENSSL_EC_H 1 12638_ACEOF 12639 12640fi 12641 12642done 12643 12644for ac_header in openssl/ecdsa.h 12645do : 12646 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ecdsa.h" "ac_cv_header_openssl_ecdsa_h" "$ac_includes_default" 12647if test "x$ac_cv_header_openssl_ecdsa_h" = x""yes; then : 12648 cat >>confdefs.h <<_ACEOF 12649#define HAVE_OPENSSL_ECDSA_H 1 12650_ACEOF 12651 12652fi 12653 12654done 12655 12656for ac_header in openssl/ecdh.h 12657do : 12658 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ecdh.h" "ac_cv_header_openssl_ecdh_h" "$ac_includes_default" 12659if test "x$ac_cv_header_openssl_ecdh_h" = x""yes; then : 12660 cat >>confdefs.h <<_ACEOF 12661#define HAVE_OPENSSL_ECDH_H 1 12662_ACEOF 12663 12664fi 12665 12666done 12667 12668for ac_header in wspiapi.h 12669do : 12670 ac_fn_c_check_header_mongrel "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default" 12671if test "x$ac_cv_header_wspiapi_h" = x""yes; then : 12672 cat >>confdefs.h <<_ACEOF 12673#define HAVE_WSPIAPI_H 1 12674_ACEOF 12675 12676fi 12677 12678done 12679 12680for ac_header in pthread.h 12681do : 12682 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12683if test "x$ac_cv_header_pthread_h" = x""yes; then : 12684 cat >>confdefs.h <<_ACEOF 12685#define HAVE_PTHREAD_H 1 12686_ACEOF 12687 12688fi 12689 12690done 12691 12692 12693for ac_func in snprintf 12694do : 12695 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 12696if test "x$ac_cv_func_snprintf" = x""yes; then : 12697 cat >>confdefs.h <<_ACEOF 12698#define HAVE_SNPRINTF 1 12699_ACEOF 12700 12701fi 12702done 12703 12704for ac_func in _snprintf 12705do : 12706 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf" 12707if test "x$ac_cv_func__snprintf" = x""yes; then : 12708 cat >>confdefs.h <<_ACEOF 12709#define HAVE__SNPRINTF 1 12710_ACEOF 12711 12712fi 12713done 12714 12715for ac_func in _snprintf_s 12716do : 12717 ac_fn_c_check_func "$LINENO" "_snprintf_s" "ac_cv_func__snprintf_s" 12718if test "x$ac_cv_func__snprintf_s" = x""yes; then : 12719 cat >>confdefs.h <<_ACEOF 12720#define HAVE__SNPRINTF_S 1 12721_ACEOF 12722 12723fi 12724done 12725 12726for ac_func in vsnprintf 12727do : 12728 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 12729if test "x$ac_cv_func_vsnprintf" = x""yes; then : 12730 cat >>confdefs.h <<_ACEOF 12731#define HAVE_VSNPRINTF 1 12732_ACEOF 12733 12734fi 12735done 12736 12737for ac_func in _vsnprintf 12738do : 12739 ac_fn_c_check_func "$LINENO" "_vsnprintf" "ac_cv_func__vsnprintf" 12740if test "x$ac_cv_func__vsnprintf" = x""yes; then : 12741 cat >>confdefs.h <<_ACEOF 12742#define HAVE__VSNPRINTF 1 12743_ACEOF 12744 12745fi 12746done 12747 12748for ac_func in _vsnprintf_s 12749do : 12750 ac_fn_c_check_func "$LINENO" "_vsnprintf_s" "ac_cv_func__vsnprintf_s" 12751if test "x$ac_cv_func__vsnprintf_s" = x""yes; then : 12752 cat >>confdefs.h <<_ACEOF 12753#define HAVE__VSNPRINTF_S 1 12754_ACEOF 12755 12756fi 12757done 12758 12759for ac_func in strncpy 12760do : 12761 ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy" 12762if test "x$ac_cv_func_strncpy" = x""yes; then : 12763 cat >>confdefs.h <<_ACEOF 12764#define HAVE_STRNCPY 1 12765_ACEOF 12766 12767fi 12768done 12769 12770for ac_func in cfmakeraw 12771do : 12772 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw" 12773if test "x$ac_cv_func_cfmakeraw" = x""yes; then : 12774 cat >>confdefs.h <<_ACEOF 12775#define HAVE_CFMAKERAW 1 12776_ACEOF 12777 12778fi 12779done 12780 12781for ac_func in getaddrinfo 12782do : 12783 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12784if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 12785 cat >>confdefs.h <<_ACEOF 12786#define HAVE_GETADDRINFO 1 12787_ACEOF 12788 12789fi 12790done 12791 12792for ac_func in poll 12793do : 12794 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 12795if test "x$ac_cv_func_poll" = x""yes; then : 12796 cat >>confdefs.h <<_ACEOF 12797#define HAVE_POLL 1 12798_ACEOF 12799 12800fi 12801done 12802 12803for ac_func in select 12804do : 12805 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 12806if test "x$ac_cv_func_select" = x""yes; then : 12807 cat >>confdefs.h <<_ACEOF 12808#define HAVE_SELECT 1 12809_ACEOF 12810 12811fi 12812done 12813 12814for ac_func in clock_gettime 12815do : 12816 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12817if test "x$ac_cv_func_clock_gettime" = x""yes; then : 12818 cat >>confdefs.h <<_ACEOF 12819#define HAVE_CLOCK_GETTIME 1 12820_ACEOF 12821 12822fi 12823done 12824 12825for ac_func in ntohll 12826do : 12827 ac_fn_c_check_func "$LINENO" "ntohll" "ac_cv_func_ntohll" 12828if test "x$ac_cv_func_ntohll" = x""yes; then : 12829 cat >>confdefs.h <<_ACEOF 12830#define HAVE_NTOHLL 1 12831_ACEOF 12832 12833fi 12834done 12835 12836 12837for ac_header in crypt.h 12838do : 12839 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 12840if test "x$ac_cv_header_crypt_h" = x""yes; then : 12841 cat >>confdefs.h <<_ACEOF 12842#define HAVE_CRYPT_H 1 12843_ACEOF 12844 12845fi 12846 12847done 12848 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_new in -lcrypto" >&5 12850$as_echo_n "checking for BN_new in -lcrypto... " >&6; } 12851if test "${ac_cv_lib_crypto_BN_new+set}" = set; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 ac_check_lib_save_LIBS=$LIBS 12855LIBS="-lcrypto $LIBS" 12856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858 12859/* Override any GCC internal prototype to avoid an error. 12860 Use char because int might match the return type of a GCC 12861 builtin and then its argument prototype would still apply. */ 12862#ifdef __cplusplus 12863extern "C" 12864#endif 12865char BN_new (); 12866int 12867main () 12868{ 12869return BN_new (); 12870 ; 12871 return 0; 12872} 12873_ACEOF 12874if ac_fn_c_try_link "$LINENO"; then : 12875 ac_cv_lib_crypto_BN_new=yes 12876else 12877 ac_cv_lib_crypto_BN_new=no 12878fi 12879rm -f core conftest.err conftest.$ac_objext \ 12880 conftest$ac_exeext conftest.$ac_ext 12881LIBS=$ac_check_lib_save_LIBS 12882fi 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_new" >&5 12884$as_echo "$ac_cv_lib_crypto_BN_new" >&6; } 12885if test "x$ac_cv_lib_crypto_BN_new" = x""yes; then : 12886 cat >>confdefs.h <<_ACEOF 12887#define HAVE_LIBCRYPTO 1 12888_ACEOF 12889 12890 LIBS="-lcrypto $LIBS" 12891 12892else 12893 CRYPTO="no" 12894fi 12895 12896if test "x$CRYPTO" = "xno"; then : 12897 as_fn_error $? "\"crypto header file not found\"" "$LINENO" 5 12898 12899fi 12900 12901$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 12902 12903 12904##AC_CHECK_HEADERS([gcrypt.h]) 12905##AC_CHECK_LIB([gcrypt], [gcry_strerror], [], [GCRYPT="no"]) 12906##AS_IF([test "x$GCRYPT" = "xno"], 12907## [AC_MSG_ERROR("gcrypt header file not found")] 12908## ) 12909 12910 12911$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 12912 12913 12914 12915for ac_header in zlib.h 12916do : 12917 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12918if test "x$ac_cv_header_zlib_h" = x""yes; then : 12919 cat >>confdefs.h <<_ACEOF 12920#define HAVE_ZLIB_H 1 12921_ACEOF 12922 12923fi 12924 12925done 12926 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 12928$as_echo_n "checking for deflate in -lz... " >&6; } 12929if test "${ac_cv_lib_z_deflate+set}" = set; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 ac_check_lib_save_LIBS=$LIBS 12933LIBS="-lz $LIBS" 12934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936 12937/* Override any GCC internal prototype to avoid an error. 12938 Use char because int might match the return type of a GCC 12939 builtin and then its argument prototype would still apply. */ 12940#ifdef __cplusplus 12941extern "C" 12942#endif 12943char deflate (); 12944int 12945main () 12946{ 12947return deflate (); 12948 ; 12949 return 0; 12950} 12951_ACEOF 12952if ac_fn_c_try_link "$LINENO"; then : 12953 ac_cv_lib_z_deflate=yes 12954else 12955 ac_cv_lib_z_deflate=no 12956fi 12957rm -f core conftest.err conftest.$ac_objext \ 12958 conftest$ac_exeext conftest.$ac_ext 12959LIBS=$ac_check_lib_save_LIBS 12960fi 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 12962$as_echo "$ac_cv_lib_z_deflate" >&6; } 12963if test "x$ac_cv_lib_z_deflate" = x""yes; then : 12964 cat >>confdefs.h <<_ACEOF 12965#define HAVE_LIBZ 1 12966_ACEOF 12967 12968 LIBS="-lz $LIBS" 12969 12970else 12971 ZLIB="no" 12972fi 12973 12974if test "x$ZLIB" = "xno"; then : 12975 as_fn_error $? "\"zlib header file not found\"" "$LINENO" 5 12976 12977fi 12978 12979$as_echo "#define WITH_ZLIB 1" >>confdefs.h 12980 12981 12982 12983 12984for ac_header in sys/endian.h 12985do : 12986 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 12987if test "x$ac_cv_header_sys_endian_h" = x""yes; then : 12988 cat >>confdefs.h <<_ACEOF 12989#define HAVE_SYS_ENDIAN_H 1 12990_ACEOF 12991 12992else 12993 SYS_ENDIAN_HEADER="no" 12994fi 12995 12996done 12997 12998# Pull in the compiler customisation options for different compilers. 12999ICC=no 13000if eval "echo $CC|grep icc >/dev/null" ; then 13001 if eval "$CC -help |grep libcxa >/dev/null" ; then 13002 CFLAGS="$CFLAGS -ip -static-libcxa" 13003 XCCFLAGS="-XCClinker -static-libcxa" 13004 else 13005 CFLAGS="$CFLAGS -ip -static-intel" 13006 XCCFLAGS="-XCClinker -static-intel" 13007 fi 13008 if test "$COPT" = "-O2" ; then 13009 COPT="-O3" 13010 fi 13011 CWARNINGS="-wd869" 13012 ICC=yes 13013 GCC=no 13014fi 13015 13016if test "$GCC" = yes ; then 13017 if test "x$enable_debug" = "xyes"; then 13018 CFLAGS="-ggdb $CFLAGS" 13019 else 13020 CFLAGS="-O2 $CFLAGS" 13021 fi 13022 13023 if test "x$enable_profile" = "xyes"; then 13024 LDFLAGS="$LDFLAGS -XCClinker -pg" 13025 fi 13026 13027 CFLAGS="$CFLAGS -std=c99 -fno-strict-aliasing" 13028 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing" 13029 CWARNINGS="$CWARNINGS -Wall -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wformat-security -Wsign-compare -Wcast-align -Wno-unused-parameter" 13030 if test "x$NOT_PEDANTIC" = "x"; then 13031 CWARNINGS="$CWARNINGS -pedantic" 13032 fi 13033 echo $CFLAGS 13034fi 13035 13036 13037 13038# Pull in the standard compiler and linker flags. 13039CFLAGS="$CFLAGS $CWARNINGS $RAZORBACK_CFLAGS" 13040LDFLAGS="$LDFLAGS $PROFILE_LDFLAGS" 13041 13042echo "LDFLAGS set to $LDFLAGS" 13043echo "CFLAGS set to $CFLAGS" 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053ac_config_files="$ac_config_files razorback.pc Makefile m4/Makefile etc/Makefile include/Makefile src/Makefile tests/Makefile" 13054 13055cat >confcache <<\_ACEOF 13056# This file is a shell script that caches the results of configure 13057# tests run on this system so they can be shared between configure 13058# scripts and configure runs, see configure's option --config-cache. 13059# It is not useful on other systems. If it contains results you don't 13060# want to keep, you may remove or edit it. 13061# 13062# config.status only pays attention to the cache file if you give it 13063# the --recheck option to rerun configure. 13064# 13065# `ac_cv_env_foo' variables (set or unset) will be overridden when 13066# loading this file, other *unset* `ac_cv_foo' will be assigned the 13067# following values. 13068 13069_ACEOF 13070 13071# The following way of writing the cache mishandles newlines in values, 13072# but we know of no workaround that is simple, portable, and efficient. 13073# So, we kill variables containing newlines. 13074# Ultrix sh set writes to stderr and can't be redirected directly, 13075# and sets the high bit in the cache file unless we assign to the vars. 13076( 13077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13078 eval ac_val=\$$ac_var 13079 case $ac_val in #( 13080 *${as_nl}*) 13081 case $ac_var in #( 13082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13084 esac 13085 case $ac_var in #( 13086 _ | IFS | as_nl) ;; #( 13087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13088 *) { eval $ac_var=; unset $ac_var;} ;; 13089 esac ;; 13090 esac 13091 done 13092 13093 (set) 2>&1 | 13094 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13095 *${as_nl}ac_space=\ *) 13096 # `set' does not quote correctly, so add quotes: double-quote 13097 # substitution turns \\\\ into \\, and sed turns \\ into \. 13098 sed -n \ 13099 "s/'/'\\\\''/g; 13100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13101 ;; #( 13102 *) 13103 # `set' quotes correctly as required by POSIX, so do not add quotes. 13104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13105 ;; 13106 esac | 13107 sort 13108) | 13109 sed ' 13110 /^ac_cv_env_/b end 13111 t clear 13112 :clear 13113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13114 t end 13115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13116 :end' >>confcache 13117if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13118 if test -w "$cache_file"; then 13119 test "x$cache_file" != "x/dev/null" && 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13121$as_echo "$as_me: updating cache $cache_file" >&6;} 13122 cat confcache >$cache_file 13123 else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13125$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13126 fi 13127fi 13128rm -f confcache 13129 13130test "x$prefix" = xNONE && prefix=$ac_default_prefix 13131# Let make expand exec_prefix. 13132test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13133 13134DEFS=-DHAVE_CONFIG_H 13135 13136ac_libobjs= 13137ac_ltlibobjs= 13138U= 13139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13140 # 1. Remove the extension, and $U if already installed. 13141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13144 # will be set to the directory where LIBOBJS objects are built. 13145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13147done 13148LIBOBJS=$ac_libobjs 13149 13150LTLIBOBJS=$ac_ltlibobjs 13151 13152 13153 if test -n "$EXEEXT"; then 13154 am__EXEEXT_TRUE= 13155 am__EXEEXT_FALSE='#' 13156else 13157 am__EXEEXT_TRUE='#' 13158 am__EXEEXT_FALSE= 13159fi 13160 13161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13162 as_fn_error $? "conditional \"AMDEP\" was never defined. 13163Usually this means the macro was only invoked conditionally." "$LINENO" 5 13164fi 13165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13167Usually this means the macro was only invoked conditionally." "$LINENO" 5 13168fi 13169if test -z "${PLATFORM_LINUX_TRUE}" && test -z "${PLATFORM_LINUX_FALSE}"; then 13170 as_fn_error $? "conditional \"PLATFORM_LINUX\" was never defined. 13171Usually this means the macro was only invoked conditionally." "$LINENO" 5 13172fi 13173if test -z "${PLATFORM_FREEBSD_TRUE}" && test -z "${PLATFORM_FREEBSD_FALSE}"; then 13174 as_fn_error $? "conditional \"PLATFORM_FREEBSD\" was never defined. 13175Usually this means the macro was only invoked conditionally." "$LINENO" 5 13176fi 13177 13178: ${CONFIG_STATUS=./config.status} 13179ac_write_fail=0 13180ac_clean_files_save=$ac_clean_files 13181ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13184as_write_fail=0 13185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13186#! $SHELL 13187# Generated by $as_me. 13188# Run this file to recreate the current configuration. 13189# Compiler output produced by configure, useful for debugging 13190# configure, is in config.log if it exists. 13191 13192debug=false 13193ac_cs_recheck=false 13194ac_cs_silent=false 13195 13196SHELL=\${CONFIG_SHELL-$SHELL} 13197export SHELL 13198_ASEOF 13199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13200## -------------------- ## 13201## M4sh Initialization. ## 13202## -------------------- ## 13203 13204# Be more Bourne compatible 13205DUALCASE=1; export DUALCASE # for MKS sh 13206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13207 emulate sh 13208 NULLCMD=: 13209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13210 # is contrary to our usage. Disable this feature. 13211 alias -g '${1+"$@"}'='"$@"' 13212 setopt NO_GLOB_SUBST 13213else 13214 case `(set -o) 2>/dev/null` in #( 13215 *posix*) : 13216 set -o posix ;; #( 13217 *) : 13218 ;; 13219esac 13220fi 13221 13222 13223as_nl=' 13224' 13225export as_nl 13226# Printing a long string crashes Solaris 7 /usr/bin/printf. 13227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13230# Prefer a ksh shell builtin over an external printf program on Solaris, 13231# but without wasting forks for bash or zsh. 13232if test -z "$BASH_VERSION$ZSH_VERSION" \ 13233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13234 as_echo='print -r --' 13235 as_echo_n='print -rn --' 13236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13237 as_echo='printf %s\n' 13238 as_echo_n='printf %s' 13239else 13240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13241 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13242 as_echo_n='/usr/ucb/echo -n' 13243 else 13244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13245 as_echo_n_body='eval 13246 arg=$1; 13247 case $arg in #( 13248 *"$as_nl"*) 13249 expr "X$arg" : "X\\(.*\\)$as_nl"; 13250 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13251 esac; 13252 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13253 ' 13254 export as_echo_n_body 13255 as_echo_n='sh -c $as_echo_n_body as_echo' 13256 fi 13257 export as_echo_body 13258 as_echo='sh -c $as_echo_body as_echo' 13259fi 13260 13261# The user is always right. 13262if test "${PATH_SEPARATOR+set}" != set; then 13263 PATH_SEPARATOR=: 13264 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13265 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13266 PATH_SEPARATOR=';' 13267 } 13268fi 13269 13270 13271# IFS 13272# We need space, tab and new line, in precisely that order. Quoting is 13273# there to prevent editors from complaining about space-tab. 13274# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13275# splitting by setting IFS to empty value.) 13276IFS=" "" $as_nl" 13277 13278# Find who we are. Look in the path if we contain no directory separator. 13279case $0 in #(( 13280 *[\\/]* ) as_myself=$0 ;; 13281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13282for as_dir in $PATH 13283do 13284 IFS=$as_save_IFS 13285 test -z "$as_dir" && as_dir=. 13286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13287 done 13288IFS=$as_save_IFS 13289 13290 ;; 13291esac 13292# We did not find ourselves, most probably we were run as `sh COMMAND' 13293# in which case we are not to be found in the path. 13294if test "x$as_myself" = x; then 13295 as_myself=$0 13296fi 13297if test ! -f "$as_myself"; then 13298 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13299 exit 1 13300fi 13301 13302# Unset variables that we do not need and which cause bugs (e.g. in 13303# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13304# suppresses any "Segmentation fault" message there. '((' could 13305# trigger a bug in pdksh 5.2.14. 13306for as_var in BASH_ENV ENV MAIL MAILPATH 13307do eval test x\${$as_var+set} = xset \ 13308 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13309done 13310PS1='$ ' 13311PS2='> ' 13312PS4='+ ' 13313 13314# NLS nuisances. 13315LC_ALL=C 13316export LC_ALL 13317LANGUAGE=C 13318export LANGUAGE 13319 13320# CDPATH. 13321(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13322 13323 13324# as_fn_error STATUS ERROR [LINENO LOG_FD] 13325# ---------------------------------------- 13326# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13327# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13328# script with STATUS, using 1 if that was 0. 13329as_fn_error () 13330{ 13331 as_status=$1; test $as_status -eq 0 && as_status=1 13332 if test "$4"; then 13333 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13334 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13335 fi 13336 $as_echo "$as_me: error: $2" >&2 13337 as_fn_exit $as_status 13338} # as_fn_error 13339 13340 13341# as_fn_set_status STATUS 13342# ----------------------- 13343# Set $? to STATUS, without forking. 13344as_fn_set_status () 13345{ 13346 return $1 13347} # as_fn_set_status 13348 13349# as_fn_exit STATUS 13350# ----------------- 13351# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13352as_fn_exit () 13353{ 13354 set +e 13355 as_fn_set_status $1 13356 exit $1 13357} # as_fn_exit 13358 13359# as_fn_unset VAR 13360# --------------- 13361# Portably unset VAR. 13362as_fn_unset () 13363{ 13364 { eval $1=; unset $1;} 13365} 13366as_unset=as_fn_unset 13367# as_fn_append VAR VALUE 13368# ---------------------- 13369# Append the text in VALUE to the end of the definition contained in VAR. Take 13370# advantage of any shell optimizations that allow amortized linear growth over 13371# repeated appends, instead of the typical quadratic growth present in naive 13372# implementations. 13373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13374 eval 'as_fn_append () 13375 { 13376 eval $1+=\$2 13377 }' 13378else 13379 as_fn_append () 13380 { 13381 eval $1=\$$1\$2 13382 } 13383fi # as_fn_append 13384 13385# as_fn_arith ARG... 13386# ------------------ 13387# Perform arithmetic evaluation on the ARGs, and store the result in the 13388# global $as_val. Take advantage of shells that can avoid forks. The arguments 13389# must be portable across $(()) and expr. 13390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13391 eval 'as_fn_arith () 13392 { 13393 as_val=$(( $* )) 13394 }' 13395else 13396 as_fn_arith () 13397 { 13398 as_val=`expr "$@" || test $? -eq 1` 13399 } 13400fi # as_fn_arith 13401 13402 13403if expr a : '\(a\)' >/dev/null 2>&1 && 13404 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13405 as_expr=expr 13406else 13407 as_expr=false 13408fi 13409 13410if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13411 as_basename=basename 13412else 13413 as_basename=false 13414fi 13415 13416if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13417 as_dirname=dirname 13418else 13419 as_dirname=false 13420fi 13421 13422as_me=`$as_basename -- "$0" || 13423$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13424 X"$0" : 'X\(//\)$' \| \ 13425 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13426$as_echo X/"$0" | 13427 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13428 s//\1/ 13429 q 13430 } 13431 /^X\/\(\/\/\)$/{ 13432 s//\1/ 13433 q 13434 } 13435 /^X\/\(\/\).*/{ 13436 s//\1/ 13437 q 13438 } 13439 s/.*/./; q'` 13440 13441# Avoid depending upon Character Ranges. 13442as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13444as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13445as_cr_digits='0123456789' 13446as_cr_alnum=$as_cr_Letters$as_cr_digits 13447 13448ECHO_C= ECHO_N= ECHO_T= 13449case `echo -n x` in #((((( 13450-n*) 13451 case `echo 'xy\c'` in 13452 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13453 xy) ECHO_C='\c';; 13454 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13455 ECHO_T=' ';; 13456 esac;; 13457*) 13458 ECHO_N='-n';; 13459esac 13460 13461rm -f conf$$ conf$$.exe conf$$.file 13462if test -d conf$$.dir; then 13463 rm -f conf$$.dir/conf$$.file 13464else 13465 rm -f conf$$.dir 13466 mkdir conf$$.dir 2>/dev/null 13467fi 13468if (echo >conf$$.file) 2>/dev/null; then 13469 if ln -s conf$$.file conf$$ 2>/dev/null; then 13470 as_ln_s='ln -s' 13471 # ... but there are two gotchas: 13472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13474 # In both cases, we have to default to `cp -p'. 13475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13476 as_ln_s='cp -p' 13477 elif ln conf$$.file conf$$ 2>/dev/null; then 13478 as_ln_s=ln 13479 else 13480 as_ln_s='cp -p' 13481 fi 13482else 13483 as_ln_s='cp -p' 13484fi 13485rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13486rmdir conf$$.dir 2>/dev/null 13487 13488 13489# as_fn_mkdir_p 13490# ------------- 13491# Create "$as_dir" as a directory, including parents if necessary. 13492as_fn_mkdir_p () 13493{ 13494 13495 case $as_dir in #( 13496 -*) as_dir=./$as_dir;; 13497 esac 13498 test -d "$as_dir" || eval $as_mkdir_p || { 13499 as_dirs= 13500 while :; do 13501 case $as_dir in #( 13502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13503 *) as_qdir=$as_dir;; 13504 esac 13505 as_dirs="'$as_qdir' $as_dirs" 13506 as_dir=`$as_dirname -- "$as_dir" || 13507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13508 X"$as_dir" : 'X\(//\)[^/]' \| \ 13509 X"$as_dir" : 'X\(//\)$' \| \ 13510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13511$as_echo X"$as_dir" | 13512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13513 s//\1/ 13514 q 13515 } 13516 /^X\(\/\/\)[^/].*/{ 13517 s//\1/ 13518 q 13519 } 13520 /^X\(\/\/\)$/{ 13521 s//\1/ 13522 q 13523 } 13524 /^X\(\/\).*/{ 13525 s//\1/ 13526 q 13527 } 13528 s/.*/./; q'` 13529 test -d "$as_dir" && break 13530 done 13531 test -z "$as_dirs" || eval "mkdir $as_dirs" 13532 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13533 13534 13535} # as_fn_mkdir_p 13536if mkdir -p . 2>/dev/null; then 13537 as_mkdir_p='mkdir -p "$as_dir"' 13538else 13539 test -d ./-p && rmdir ./-p 13540 as_mkdir_p=false 13541fi 13542 13543if test -x / >/dev/null 2>&1; then 13544 as_test_x='test -x' 13545else 13546 if ls -dL / >/dev/null 2>&1; then 13547 as_ls_L_option=L 13548 else 13549 as_ls_L_option= 13550 fi 13551 as_test_x=' 13552 eval sh -c '\'' 13553 if test -d "$1"; then 13554 test -d "$1/."; 13555 else 13556 case $1 in #( 13557 -*)set "./$1";; 13558 esac; 13559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13560 ???[sx]*):;;*)false;;esac;fi 13561 '\'' sh 13562 ' 13563fi 13564as_executable_p=$as_test_x 13565 13566# Sed expression to map a string onto a valid CPP name. 13567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13568 13569# Sed expression to map a string onto a valid variable name. 13570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13571 13572 13573exec 6>&1 13574## ----------------------------------- ## 13575## Main body of $CONFIG_STATUS script. ## 13576## ----------------------------------- ## 13577_ASEOF 13578test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13579 13580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13581# Save the log message, to keep $0 and so on meaningful, and to 13582# report actual input values of CONFIG_FILES etc. instead of their 13583# values after options handling. 13584ac_log=" 13585This file was extended by api $as_me 0.5.0, which was 13586generated by GNU Autoconf 2.67. Invocation command line was 13587 13588 CONFIG_FILES = $CONFIG_FILES 13589 CONFIG_HEADERS = $CONFIG_HEADERS 13590 CONFIG_LINKS = $CONFIG_LINKS 13591 CONFIG_COMMANDS = $CONFIG_COMMANDS 13592 $ $0 $@ 13593 13594on `(hostname || uname -n) 2>/dev/null | sed 1q` 13595" 13596 13597_ACEOF 13598 13599case $ac_config_files in *" 13600"*) set x $ac_config_files; shift; ac_config_files=$*;; 13601esac 13602 13603case $ac_config_headers in *" 13604"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13605esac 13606 13607 13608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13609# Files that config.status was made for. 13610config_files="$ac_config_files" 13611config_headers="$ac_config_headers" 13612config_commands="$ac_config_commands" 13613 13614_ACEOF 13615 13616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13617ac_cs_usage="\ 13618\`$as_me' instantiates files and other configuration actions 13619from templates according to the current configuration. Unless the files 13620and actions are specified as TAGs, all are instantiated by default. 13621 13622Usage: $0 [OPTION]... [TAG]... 13623 13624 -h, --help print this help, then exit 13625 -V, --version print version number and configuration settings, then exit 13626 --config print configuration, then exit 13627 -q, --quiet, --silent 13628 do not print progress messages 13629 -d, --debug don't remove temporary files 13630 --recheck update $as_me by reconfiguring in the same conditions 13631 --file=FILE[:TEMPLATE] 13632 instantiate the configuration file FILE 13633 --header=FILE[:TEMPLATE] 13634 instantiate the configuration header FILE 13635 13636Configuration files: 13637$config_files 13638 13639Configuration headers: 13640$config_headers 13641 13642Configuration commands: 13643$config_commands 13644 13645Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>." 13646 13647_ACEOF 13648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13649ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13650ac_cs_version="\\ 13651api config.status 0.5.0 13652configured by $0, generated by GNU Autoconf 2.67, 13653 with options \\"\$ac_cs_config\\" 13654 13655Copyright (C) 2010 Free Software Foundation, Inc. 13656This config.status script is free software; the Free Software Foundation 13657gives unlimited permission to copy, distribute and modify it." 13658 13659ac_pwd='$ac_pwd' 13660srcdir='$srcdir' 13661INSTALL='$INSTALL' 13662MKDIR_P='$MKDIR_P' 13663AWK='$AWK' 13664test -n "\$AWK" || AWK=awk 13665_ACEOF 13666 13667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13668# The default lists apply if the user does not specify any file. 13669ac_need_defaults=: 13670while test $# != 0 13671do 13672 case $1 in 13673 --*=?*) 13674 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13676 ac_shift=: 13677 ;; 13678 --*=) 13679 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13680 ac_optarg= 13681 ac_shift=: 13682 ;; 13683 *) 13684 ac_option=$1 13685 ac_optarg=$2 13686 ac_shift=shift 13687 ;; 13688 esac 13689 13690 case $ac_option in 13691 # Handling of the options. 13692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13693 ac_cs_recheck=: ;; 13694 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13695 $as_echo "$ac_cs_version"; exit ;; 13696 --config | --confi | --conf | --con | --co | --c ) 13697 $as_echo "$ac_cs_config"; exit ;; 13698 --debug | --debu | --deb | --de | --d | -d ) 13699 debug=: ;; 13700 --file | --fil | --fi | --f ) 13701 $ac_shift 13702 case $ac_optarg in 13703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13704 '') as_fn_error $? "missing file argument" ;; 13705 esac 13706 as_fn_append CONFIG_FILES " '$ac_optarg'" 13707 ac_need_defaults=false;; 13708 --header | --heade | --head | --hea ) 13709 $ac_shift 13710 case $ac_optarg in 13711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13712 esac 13713 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13714 ac_need_defaults=false;; 13715 --he | --h) 13716 # Conflict between --help and --header 13717 as_fn_error $? "ambiguous option: \`$1' 13718Try \`$0 --help' for more information.";; 13719 --help | --hel | -h ) 13720 $as_echo "$ac_cs_usage"; exit ;; 13721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13722 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13723 ac_cs_silent=: ;; 13724 13725 # This is an error. 13726 -*) as_fn_error $? "unrecognized option: \`$1' 13727Try \`$0 --help' for more information." ;; 13728 13729 *) as_fn_append ac_config_targets " $1" 13730 ac_need_defaults=false ;; 13731 13732 esac 13733 shift 13734done 13735 13736ac_configure_extra_args= 13737 13738if $ac_cs_silent; then 13739 exec 6>/dev/null 13740 ac_configure_extra_args="$ac_configure_extra_args --silent" 13741fi 13742 13743_ACEOF 13744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13745if \$ac_cs_recheck; then 13746 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13747 shift 13748 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13749 CONFIG_SHELL='$SHELL' 13750 export CONFIG_SHELL 13751 exec "\$@" 13752fi 13753 13754_ACEOF 13755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13756exec 5>>config.log 13757{ 13758 echo 13759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13760## Running $as_me. ## 13761_ASBOX 13762 $as_echo "$ac_log" 13763} >&5 13764 13765_ACEOF 13766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13767# 13768# INIT-COMMANDS 13769# 13770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13771 13772 13773# The HP-UX ksh and POSIX shell print the target directory to stdout 13774# if CDPATH is set. 13775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13776 13777sed_quote_subst='$sed_quote_subst' 13778double_quote_subst='$double_quote_subst' 13779delay_variable_subst='$delay_variable_subst' 13780macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13781macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13782enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13783enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13784pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13785enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13786host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13787host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13788host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13789build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13790build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13791build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13792SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13793Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13794GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13795EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13796FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13797LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13798NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13799LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13800max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13801ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13802exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13803lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13804lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13805lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13806reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13807reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13808OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13809deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13810file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13811AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13812AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13813STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13814RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13815old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13816old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13817old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13818CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13819CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13820compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13821GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13822lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13823lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13824lt_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"`' 13825lt_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"`' 13826objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13827SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13828ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13829MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13830lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13831lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13832lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13833lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13834lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13835need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13836DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13837NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13838LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13839OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13840OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13841libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13842shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13843extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13844archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13845enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13846export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13847whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13848compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13849old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13850old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13851archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13852archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13853module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13854module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13855with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13856allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13857no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13858hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13859hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13860hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13861hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13862hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13863hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13864hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13865hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13866inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13867link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13868fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13869always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13870export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13871exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13872include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13873prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13874file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13875variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13876need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13877need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13878version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13879runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13880shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13881shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13882libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13883library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13884soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13885postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13886postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13887finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13888finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13889hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13890sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13891sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13892hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13893enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13894enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13895enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13896old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13897striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13898 13899LTCC='$LTCC' 13900LTCFLAGS='$LTCFLAGS' 13901compiler='$compiler_DEFAULT' 13902 13903# Quote evaled strings. 13904for var in SED \ 13905GREP \ 13906EGREP \ 13907FGREP \ 13908LD \ 13909NM \ 13910LN_S \ 13911lt_SP2NL \ 13912lt_NL2SP \ 13913reload_flag \ 13914OBJDUMP \ 13915deplibs_check_method \ 13916file_magic_cmd \ 13917AR \ 13918AR_FLAGS \ 13919STRIP \ 13920RANLIB \ 13921CC \ 13922CFLAGS \ 13923compiler \ 13924lt_cv_sys_global_symbol_pipe \ 13925lt_cv_sys_global_symbol_to_cdecl \ 13926lt_cv_sys_global_symbol_to_c_name_address \ 13927lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13928SHELL \ 13929ECHO \ 13930lt_prog_compiler_no_builtin_flag \ 13931lt_prog_compiler_wl \ 13932lt_prog_compiler_pic \ 13933lt_prog_compiler_static \ 13934lt_cv_prog_compiler_c_o \ 13935need_locks \ 13936DSYMUTIL \ 13937NMEDIT \ 13938LIPO \ 13939OTOOL \ 13940OTOOL64 \ 13941shrext_cmds \ 13942export_dynamic_flag_spec \ 13943whole_archive_flag_spec \ 13944compiler_needs_object \ 13945with_gnu_ld \ 13946allow_undefined_flag \ 13947no_undefined_flag \ 13948hardcode_libdir_flag_spec \ 13949hardcode_libdir_flag_spec_ld \ 13950hardcode_libdir_separator \ 13951fix_srcfile_path \ 13952exclude_expsyms \ 13953include_expsyms \ 13954file_list_spec \ 13955variables_saved_for_relink \ 13956libname_spec \ 13957library_names_spec \ 13958soname_spec \ 13959finish_eval \ 13960old_striplib \ 13961striplib; do 13962 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13963 *[\\\\\\\`\\"\\\$]*) 13964 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13965 ;; 13966 *) 13967 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13968 ;; 13969 esac 13970done 13971 13972# Double-quote double-evaled strings. 13973for var in reload_cmds \ 13974old_postinstall_cmds \ 13975old_postuninstall_cmds \ 13976old_archive_cmds \ 13977extract_expsyms_cmds \ 13978old_archive_from_new_cmds \ 13979old_archive_from_expsyms_cmds \ 13980archive_cmds \ 13981archive_expsym_cmds \ 13982module_cmds \ 13983module_expsym_cmds \ 13984export_symbols_cmds \ 13985prelink_cmds \ 13986postinstall_cmds \ 13987postuninstall_cmds \ 13988finish_cmds \ 13989sys_lib_search_path_spec \ 13990sys_lib_dlsearch_path_spec; do 13991 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13992 *[\\\\\\\`\\"\\\$]*) 13993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13994 ;; 13995 *) 13996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13997 ;; 13998 esac 13999done 14000 14001# Fix-up fallback echo if it was mangled by the above quoting rules. 14002case \$lt_ECHO in 14003*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14004 ;; 14005esac 14006 14007ac_aux_dir='$ac_aux_dir' 14008xsi_shell='$xsi_shell' 14009lt_shell_append='$lt_shell_append' 14010 14011# See if we are running on zsh, and set the options which allow our 14012# commands through without removal of \ escapes INIT. 14013if test -n "\${ZSH_VERSION+set}" ; then 14014 setopt NO_GLOB_SUBST 14015fi 14016 14017 14018 PACKAGE='$PACKAGE' 14019 VERSION='$VERSION' 14020 TIMESTAMP='$TIMESTAMP' 14021 RM='$RM' 14022 ofile='$ofile' 14023 14024 14025 14026 14027_ACEOF 14028 14029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14030 14031# Handling of arguments. 14032for ac_config_target in $ac_config_targets 14033do 14034 case $ac_config_target in 14035 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14036 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14037 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14038 "razorback.pc") CONFIG_FILES="$CONFIG_FILES razorback.pc" ;; 14039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14040 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 14041 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 14042 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14043 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14044 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14045 14046 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 14047 esac 14048done 14049 14050 14051# If the user did not use the arguments to specify the items to instantiate, 14052# then the envvar interface is used. Set only those that are not. 14053# We use the long form for the default assignment because of an extremely 14054# bizarre bug on SunOS 4.1.3. 14055if $ac_need_defaults; then 14056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14059fi 14060 14061# Have a temporary directory for convenience. Make it in the build tree 14062# simply because there is no reason against having it here, and in addition, 14063# creating and moving files from /tmp can sometimes cause problems. 14064# Hook for its removal unless debugging. 14065# Note that there is a small window in which the directory will not be cleaned: 14066# after its creation but before its name has been assigned to `$tmp'. 14067$debug || 14068{ 14069 tmp= 14070 trap 'exit_status=$? 14071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14072' 0 14073 trap 'as_fn_exit 1' 1 2 13 15 14074} 14075# Create a (secure) tmp directory for tmp files. 14076 14077{ 14078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14079 test -n "$tmp" && test -d "$tmp" 14080} || 14081{ 14082 tmp=./conf$$-$RANDOM 14083 (umask 077 && mkdir "$tmp") 14084} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14085 14086# Set up the scripts for CONFIG_FILES section. 14087# No need to generate them if there are no CONFIG_FILES. 14088# This happens for instance with `./config.status config.h'. 14089if test -n "$CONFIG_FILES"; then 14090 14091 14092ac_cr=`echo X | tr X '\015'` 14093# On cygwin, bash can eat \r inside `` if the user requested igncr. 14094# But we know of no other shell where ac_cr would be empty at this 14095# point, so we can use a bashism as a fallback. 14096if test "x$ac_cr" = x; then 14097 eval ac_cr=\$\'\\r\' 14098fi 14099ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14100if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14101 ac_cs_awk_cr='\\r' 14102else 14103 ac_cs_awk_cr=$ac_cr 14104fi 14105 14106echo 'BEGIN {' >"$tmp/subs1.awk" && 14107_ACEOF 14108 14109 14110{ 14111 echo "cat >conf$$subs.awk <<_ACEOF" && 14112 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14113 echo "_ACEOF" 14114} >conf$$subs.sh || 14115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14116ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14117ac_delim='%!_!# ' 14118for ac_last_try in false false false false false :; do 14119 . ./conf$$subs.sh || 14120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14121 14122 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14123 if test $ac_delim_n = $ac_delim_num; then 14124 break 14125 elif $ac_last_try; then 14126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14127 else 14128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14129 fi 14130done 14131rm -f conf$$subs.sh 14132 14133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14134cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14135_ACEOF 14136sed -n ' 14137h 14138s/^/S["/; s/!.*/"]=/ 14139p 14140g 14141s/^[^!]*!// 14142:repl 14143t repl 14144s/'"$ac_delim"'$// 14145t delim 14146:nl 14147h 14148s/\(.\{148\}\)..*/\1/ 14149t more1 14150s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14151p 14152n 14153b repl 14154:more1 14155s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14156p 14157g 14158s/.\{148\}// 14159t nl 14160:delim 14161h 14162s/\(.\{148\}\)..*/\1/ 14163t more2 14164s/["\\]/\\&/g; s/^/"/; s/$/"/ 14165p 14166b 14167:more2 14168s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14169p 14170g 14171s/.\{148\}// 14172t delim 14173' <conf$$subs.awk | sed ' 14174/^[^""]/{ 14175 N 14176 s/\n// 14177} 14178' >>$CONFIG_STATUS || ac_write_fail=1 14179rm -f conf$$subs.awk 14180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14181_ACAWK 14182cat >>"\$tmp/subs1.awk" <<_ACAWK && 14183 for (key in S) S_is_set[key] = 1 14184 FS = "" 14185 14186} 14187{ 14188 line = $ 0 14189 nfields = split(line, field, "@") 14190 substed = 0 14191 len = length(field[1]) 14192 for (i = 2; i < nfields; i++) { 14193 key = field[i] 14194 keylen = length(key) 14195 if (S_is_set[key]) { 14196 value = S[key] 14197 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14198 len += length(value) + length(field[++i]) 14199 substed = 1 14200 } else 14201 len += 1 + keylen 14202 } 14203 14204 print line 14205} 14206 14207_ACAWK 14208_ACEOF 14209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14210if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14211 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14212else 14213 cat 14214fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14215 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14216_ACEOF 14217 14218# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14219# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14220# trailing colons and then remove the whole line if VPATH becomes empty 14221# (actually we leave an empty line to preserve line numbers). 14222if test "x$srcdir" = x.; then 14223 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14224h 14225s/// 14226s/^/:/ 14227s/[ ]*$/:/ 14228s/:\$(srcdir):/:/g 14229s/:\${srcdir}:/:/g 14230s/:@srcdir@:/:/g 14231s/^:*// 14232s/:*$// 14233x 14234s/\(=[ ]*\).*/\1/ 14235G 14236s/\n// 14237s/^[^=]*=[ ]*$// 14238}' 14239fi 14240 14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14242fi # test -n "$CONFIG_FILES" 14243 14244# Set up the scripts for CONFIG_HEADERS section. 14245# No need to generate them if there are no CONFIG_HEADERS. 14246# This happens for instance with `./config.status Makefile'. 14247if test -n "$CONFIG_HEADERS"; then 14248cat >"$tmp/defines.awk" <<\_ACAWK || 14249BEGIN { 14250_ACEOF 14251 14252# Transform confdefs.h into an awk script `defines.awk', embedded as 14253# here-document in config.status, that substitutes the proper values into 14254# config.h.in to produce config.h. 14255 14256# Create a delimiter string that does not exist in confdefs.h, to ease 14257# handling of long lines. 14258ac_delim='%!_!# ' 14259for ac_last_try in false false :; do 14260 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14261 if test -z "$ac_t"; then 14262 break 14263 elif $ac_last_try; then 14264 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14265 else 14266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14267 fi 14268done 14269 14270# For the awk script, D is an array of macro values keyed by name, 14271# likewise P contains macro parameters if any. Preserve backslash 14272# newline sequences. 14273 14274ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14275sed -n ' 14276s/.\{148\}/&'"$ac_delim"'/g 14277t rset 14278:rset 14279s/^[ ]*#[ ]*define[ ][ ]*/ / 14280t def 14281d 14282:def 14283s/\\$// 14284t bsnl 14285s/["\\]/\\&/g 14286s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14287D["\1"]=" \3"/p 14288s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14289d 14290:bsnl 14291s/["\\]/\\&/g 14292s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14293D["\1"]=" \3\\\\\\n"\\/p 14294t cont 14295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14296t cont 14297d 14298:cont 14299n 14300s/.\{148\}/&'"$ac_delim"'/g 14301t clear 14302:clear 14303s/\\$// 14304t bsnlc 14305s/["\\]/\\&/g; s/^/"/; s/$/"/p 14306d 14307:bsnlc 14308s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14309b cont 14310' <confdefs.h | sed ' 14311s/'"$ac_delim"'/"\\\ 14312"/g' >>$CONFIG_STATUS || ac_write_fail=1 14313 14314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14315 for (key in D) D_is_set[key] = 1 14316 FS = "" 14317} 14318/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14319 line = \$ 0 14320 split(line, arg, " ") 14321 if (arg[1] == "#") { 14322 defundef = arg[2] 14323 mac1 = arg[3] 14324 } else { 14325 defundef = substr(arg[1], 2) 14326 mac1 = arg[2] 14327 } 14328 split(mac1, mac2, "(") #) 14329 macro = mac2[1] 14330 prefix = substr(line, 1, index(line, defundef) - 1) 14331 if (D_is_set[macro]) { 14332 # Preserve the white space surrounding the "#". 14333 print prefix "define", macro P[macro] D[macro] 14334 next 14335 } else { 14336 # Replace #undef with comments. This is necessary, for example, 14337 # in the case of _POSIX_SOURCE, which is predefined and required 14338 # on some systems where configure will not decide to define it. 14339 if (defundef == "undef") { 14340 print "/*", prefix defundef, macro, "*/" 14341 next 14342 } 14343 } 14344} 14345{ print } 14346_ACAWK 14347_ACEOF 14348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14349 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14350fi # test -n "$CONFIG_HEADERS" 14351 14352 14353eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14354shift 14355for ac_tag 14356do 14357 case $ac_tag in 14358 :[FHLC]) ac_mode=$ac_tag; continue;; 14359 esac 14360 case $ac_mode$ac_tag in 14361 :[FHL]*:*);; 14362 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 14363 :[FH]-) ac_tag=-:-;; 14364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14365 esac 14366 ac_save_IFS=$IFS 14367 IFS=: 14368 set x $ac_tag 14369 IFS=$ac_save_IFS 14370 shift 14371 ac_file=$1 14372 shift 14373 14374 case $ac_mode in 14375 :L) ac_source=$1;; 14376 :[FH]) 14377 ac_file_inputs= 14378 for ac_f 14379 do 14380 case $ac_f in 14381 -) ac_f="$tmp/stdin";; 14382 *) # Look for the file first in the build tree, then in the source tree 14383 # (if the path is not absolute). The absolute path cannot be DOS-style, 14384 # because $ac_f cannot contain `:'. 14385 test -f "$ac_f" || 14386 case $ac_f in 14387 [\\/$]*) false;; 14388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14389 esac || 14390 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 14391 esac 14392 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14393 as_fn_append ac_file_inputs " '$ac_f'" 14394 done 14395 14396 # Let's still pretend it is `configure' which instantiates (i.e., don't 14397 # use $as_me), people would be surprised to read: 14398 # /* config.h. Generated by config.status. */ 14399 configure_input='Generated from '` 14400 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14401 `' by configure.' 14402 if test x"$ac_file" != x-; then 14403 configure_input="$ac_file. $configure_input" 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14405$as_echo "$as_me: creating $ac_file" >&6;} 14406 fi 14407 # Neutralize special characters interpreted by sed in replacement strings. 14408 case $configure_input in #( 14409 *\&* | *\|* | *\\* ) 14410 ac_sed_conf_input=`$as_echo "$configure_input" | 14411 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14412 *) ac_sed_conf_input=$configure_input;; 14413 esac 14414 14415 case $ac_tag in 14416 *:-:* | *:-) cat >"$tmp/stdin" \ 14417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14418 esac 14419 ;; 14420 esac 14421 14422 ac_dir=`$as_dirname -- "$ac_file" || 14423$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14424 X"$ac_file" : 'X\(//\)[^/]' \| \ 14425 X"$ac_file" : 'X\(//\)$' \| \ 14426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14427$as_echo X"$ac_file" | 14428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14429 s//\1/ 14430 q 14431 } 14432 /^X\(\/\/\)[^/].*/{ 14433 s//\1/ 14434 q 14435 } 14436 /^X\(\/\/\)$/{ 14437 s//\1/ 14438 q 14439 } 14440 /^X\(\/\).*/{ 14441 s//\1/ 14442 q 14443 } 14444 s/.*/./; q'` 14445 as_dir="$ac_dir"; as_fn_mkdir_p 14446 ac_builddir=. 14447 14448case "$ac_dir" in 14449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14450*) 14451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14452 # A ".." for each directory in $ac_dir_suffix. 14453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14454 case $ac_top_builddir_sub in 14455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14457 esac ;; 14458esac 14459ac_abs_top_builddir=$ac_pwd 14460ac_abs_builddir=$ac_pwd$ac_dir_suffix 14461# for backward compatibility: 14462ac_top_builddir=$ac_top_build_prefix 14463 14464case $srcdir in 14465 .) # We are building in place. 14466 ac_srcdir=. 14467 ac_top_srcdir=$ac_top_builddir_sub 14468 ac_abs_top_srcdir=$ac_pwd ;; 14469 [\\/]* | ?:[\\/]* ) # Absolute name. 14470 ac_srcdir=$srcdir$ac_dir_suffix; 14471 ac_top_srcdir=$srcdir 14472 ac_abs_top_srcdir=$srcdir ;; 14473 *) # Relative name. 14474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14475 ac_top_srcdir=$ac_top_build_prefix$srcdir 14476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14477esac 14478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14479 14480 14481 case $ac_mode in 14482 :F) 14483 # 14484 # CONFIG_FILE 14485 # 14486 14487 case $INSTALL in 14488 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14489 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14490 esac 14491 ac_MKDIR_P=$MKDIR_P 14492 case $MKDIR_P in 14493 [\\/$]* | ?:[\\/]* ) ;; 14494 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14495 esac 14496_ACEOF 14497 14498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14499# If the template does not know about datarootdir, expand it. 14500# FIXME: This hack should be removed a few years after 2.60. 14501ac_datarootdir_hack=; ac_datarootdir_seen= 14502ac_sed_dataroot=' 14503/datarootdir/ { 14504 p 14505 q 14506} 14507/@datadir@/p 14508/@docdir@/p 14509/@infodir@/p 14510/@localedir@/p 14511/@mandir@/p' 14512case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14513*datarootdir*) ac_datarootdir_seen=yes;; 14514*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14516$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14517_ACEOF 14518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14519 ac_datarootdir_hack=' 14520 s&@datadir@&$datadir&g 14521 s&@docdir@&$docdir&g 14522 s&@infodir@&$infodir&g 14523 s&@localedir@&$localedir&g 14524 s&@mandir@&$mandir&g 14525 s&\\\${datarootdir}&$datarootdir&g' ;; 14526esac 14527_ACEOF 14528 14529# Neutralize VPATH when `$srcdir' = `.'. 14530# Shell code in configure.ac might set extrasub. 14531# FIXME: do we really want to maintain this feature? 14532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14533ac_sed_extra="$ac_vpsub 14534$extrasub 14535_ACEOF 14536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14537:t 14538/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14539s|@configure_input@|$ac_sed_conf_input|;t t 14540s&@top_builddir@&$ac_top_builddir_sub&;t t 14541s&@top_build_prefix@&$ac_top_build_prefix&;t t 14542s&@srcdir@&$ac_srcdir&;t t 14543s&@abs_srcdir@&$ac_abs_srcdir&;t t 14544s&@top_srcdir@&$ac_top_srcdir&;t t 14545s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14546s&@builddir@&$ac_builddir&;t t 14547s&@abs_builddir@&$ac_abs_builddir&;t t 14548s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14549s&@INSTALL@&$ac_INSTALL&;t t 14550s&@MKDIR_P@&$ac_MKDIR_P&;t t 14551$ac_datarootdir_hack 14552" 14553eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14555 14556test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14557 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14558 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14560which seems to be undefined. Please make sure it is defined" >&5 14561$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14562which seems to be undefined. Please make sure it is defined" >&2;} 14563 14564 rm -f "$tmp/stdin" 14565 case $ac_file in 14566 -) cat "$tmp/out" && rm -f "$tmp/out";; 14567 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14568 esac \ 14569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14570 ;; 14571 :H) 14572 # 14573 # CONFIG_HEADER 14574 # 14575 if test x"$ac_file" != x-; then 14576 { 14577 $as_echo "/* $configure_input */" \ 14578 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14579 } >"$tmp/config.h" \ 14580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14581 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14583$as_echo "$as_me: $ac_file is unchanged" >&6;} 14584 else 14585 rm -f "$ac_file" 14586 mv "$tmp/config.h" "$ac_file" \ 14587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14588 fi 14589 else 14590 $as_echo "/* $configure_input */" \ 14591 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14592 || as_fn_error $? "could not create -" "$LINENO" 5 14593 fi 14594# Compute "$ac_file"'s index in $config_headers. 14595_am_arg="$ac_file" 14596_am_stamp_count=1 14597for _am_header in $config_headers :; do 14598 case $_am_header in 14599 $_am_arg | $_am_arg:* ) 14600 break ;; 14601 * ) 14602 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14603 esac 14604done 14605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14607 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14608 X"$_am_arg" : 'X\(//\)$' \| \ 14609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14610$as_echo X"$_am_arg" | 14611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14612 s//\1/ 14613 q 14614 } 14615 /^X\(\/\/\)[^/].*/{ 14616 s//\1/ 14617 q 14618 } 14619 /^X\(\/\/\)$/{ 14620 s//\1/ 14621 q 14622 } 14623 /^X\(\/\).*/{ 14624 s//\1/ 14625 q 14626 } 14627 s/.*/./; q'`/stamp-h$_am_stamp_count 14628 ;; 14629 14630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14631$as_echo "$as_me: executing $ac_file commands" >&6;} 14632 ;; 14633 esac 14634 14635 14636 case $ac_file$ac_mode in 14637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14638 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14639 # are listed without --file. Let's play safe and only enable the eval 14640 # if we detect the quoting. 14641 case $CONFIG_FILES in 14642 *\'*) eval set x "$CONFIG_FILES" ;; 14643 *) set x $CONFIG_FILES ;; 14644 esac 14645 shift 14646 for mf 14647 do 14648 # Strip MF so we end up with the name of the file. 14649 mf=`echo "$mf" | sed -e 's/:.*$//'` 14650 # Check whether this is an Automake generated Makefile or not. 14651 # We used to match only the files named `Makefile.in', but 14652 # some people rename them; so instead we look at the file content. 14653 # Grep'ing the first line is not enough: some people post-process 14654 # each Makefile.in and add a new line on top of each file to say so. 14655 # Grep'ing the whole file is not good either: AIX grep has a line 14656 # limit of 2048, but all sed's we know have understand at least 4000. 14657 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14658 dirpart=`$as_dirname -- "$mf" || 14659$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14660 X"$mf" : 'X\(//\)[^/]' \| \ 14661 X"$mf" : 'X\(//\)$' \| \ 14662 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14663$as_echo X"$mf" | 14664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14665 s//\1/ 14666 q 14667 } 14668 /^X\(\/\/\)[^/].*/{ 14669 s//\1/ 14670 q 14671 } 14672 /^X\(\/\/\)$/{ 14673 s//\1/ 14674 q 14675 } 14676 /^X\(\/\).*/{ 14677 s//\1/ 14678 q 14679 } 14680 s/.*/./; q'` 14681 else 14682 continue 14683 fi 14684 # Extract the definition of DEPDIR, am__include, and am__quote 14685 # from the Makefile without running `make'. 14686 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14687 test -z "$DEPDIR" && continue 14688 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14689 test -z "am__include" && continue 14690 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14691 # When using ansi2knr, U may be empty or an underscore; expand it 14692 U=`sed -n 's/^U = //p' < "$mf"` 14693 # Find all dependency output files, they are included files with 14694 # $(DEPDIR) in their names. We invoke sed twice because it is the 14695 # simplest approach to changing $(DEPDIR) to its actual value in the 14696 # expansion. 14697 for file in `sed -n " 14698 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14699 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14700 # Make sure the directory exists. 14701 test -f "$dirpart/$file" && continue 14702 fdir=`$as_dirname -- "$file" || 14703$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14704 X"$file" : 'X\(//\)[^/]' \| \ 14705 X"$file" : 'X\(//\)$' \| \ 14706 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14707$as_echo X"$file" | 14708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14709 s//\1/ 14710 q 14711 } 14712 /^X\(\/\/\)[^/].*/{ 14713 s//\1/ 14714 q 14715 } 14716 /^X\(\/\/\)$/{ 14717 s//\1/ 14718 q 14719 } 14720 /^X\(\/\).*/{ 14721 s//\1/ 14722 q 14723 } 14724 s/.*/./; q'` 14725 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14726 # echo "creating $dirpart/$file" 14727 echo '# dummy' > "$dirpart/$file" 14728 done 14729 done 14730} 14731 ;; 14732 "libtool":C) 14733 14734 # See if we are running on zsh, and set the options which allow our 14735 # commands through without removal of \ escapes. 14736 if test -n "${ZSH_VERSION+set}" ; then 14737 setopt NO_GLOB_SUBST 14738 fi 14739 14740 cfgfile="${ofile}T" 14741 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14742 $RM "$cfgfile" 14743 14744 cat <<_LT_EOF >> "$cfgfile" 14745#! $SHELL 14746 14747# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14748# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14750# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14751# 14752# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14753# 2006, 2007, 2008 Free Software Foundation, Inc. 14754# Written by Gordon Matzigkeit, 1996 14755# 14756# This file is part of GNU Libtool. 14757# 14758# GNU Libtool is free software; you can redistribute it and/or 14759# modify it under the terms of the GNU General Public License as 14760# published by the Free Software Foundation; either version 2 of 14761# the License, or (at your option) any later version. 14762# 14763# As a special exception to the GNU General Public License, 14764# if you distribute this file as part of a program or library that 14765# is built using GNU Libtool, you may include this file under the 14766# same distribution terms that you use for the rest of that program. 14767# 14768# GNU Libtool is distributed in the hope that it will be useful, 14769# but WITHOUT ANY WARRANTY; without even the implied warranty of 14770# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14771# GNU General Public License for more details. 14772# 14773# You should have received a copy of the GNU General Public License 14774# along with GNU Libtool; see the file COPYING. If not, a copy 14775# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14776# obtained by writing to the Free Software Foundation, Inc., 14777# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14778 14779 14780# The names of the tagged configurations supported by this script. 14781available_tags="" 14782 14783# ### BEGIN LIBTOOL CONFIG 14784 14785# Which release of libtool.m4 was used? 14786macro_version=$macro_version 14787macro_revision=$macro_revision 14788 14789# Whether or not to build shared libraries. 14790build_libtool_libs=$enable_shared 14791 14792# Whether or not to build static libraries. 14793build_old_libs=$enable_static 14794 14795# What type of objects to build. 14796pic_mode=$pic_mode 14797 14798# Whether or not to optimize for fast installation. 14799fast_install=$enable_fast_install 14800 14801# The host system. 14802host_alias=$host_alias 14803host=$host 14804host_os=$host_os 14805 14806# The build system. 14807build_alias=$build_alias 14808build=$build 14809build_os=$build_os 14810 14811# A sed program that does not truncate output. 14812SED=$lt_SED 14813 14814# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14815Xsed="\$SED -e 1s/^X//" 14816 14817# A grep program that handles long lines. 14818GREP=$lt_GREP 14819 14820# An ERE matcher. 14821EGREP=$lt_EGREP 14822 14823# A literal string matcher. 14824FGREP=$lt_FGREP 14825 14826# A BSD- or MS-compatible name lister. 14827NM=$lt_NM 14828 14829# Whether we need soft or hard links. 14830LN_S=$lt_LN_S 14831 14832# What is the maximum length of a command? 14833max_cmd_len=$max_cmd_len 14834 14835# Object file suffix (normally "o"). 14836objext=$ac_objext 14837 14838# Executable file suffix (normally ""). 14839exeext=$exeext 14840 14841# whether the shell understands "unset". 14842lt_unset=$lt_unset 14843 14844# turn spaces into newlines. 14845SP2NL=$lt_lt_SP2NL 14846 14847# turn newlines into spaces. 14848NL2SP=$lt_lt_NL2SP 14849 14850# How to create reloadable object files. 14851reload_flag=$lt_reload_flag 14852reload_cmds=$lt_reload_cmds 14853 14854# An object symbol dumper. 14855OBJDUMP=$lt_OBJDUMP 14856 14857# Method to check whether dependent libraries are shared objects. 14858deplibs_check_method=$lt_deplibs_check_method 14859 14860# Command to use when deplibs_check_method == "file_magic". 14861file_magic_cmd=$lt_file_magic_cmd 14862 14863# The archiver. 14864AR=$lt_AR 14865AR_FLAGS=$lt_AR_FLAGS 14866 14867# A symbol stripping program. 14868STRIP=$lt_STRIP 14869 14870# Commands used to install an old-style archive. 14871RANLIB=$lt_RANLIB 14872old_postinstall_cmds=$lt_old_postinstall_cmds 14873old_postuninstall_cmds=$lt_old_postuninstall_cmds 14874 14875# A C compiler. 14876LTCC=$lt_CC 14877 14878# LTCC compiler flags. 14879LTCFLAGS=$lt_CFLAGS 14880 14881# Take the output of nm and produce a listing of raw symbols and C names. 14882global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14883 14884# Transform the output of nm in a proper C declaration. 14885global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14886 14887# Transform the output of nm in a C name address pair. 14888global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14889 14890# Transform the output of nm in a C name address pair when lib prefix is needed. 14891global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14892 14893# The name of the directory that contains temporary libtool files. 14894objdir=$objdir 14895 14896# Shell to use when invoking shell scripts. 14897SHELL=$lt_SHELL 14898 14899# An echo program that does not interpret backslashes. 14900ECHO=$lt_ECHO 14901 14902# Used to examine libraries when file_magic_cmd begins with "file". 14903MAGIC_CMD=$MAGIC_CMD 14904 14905# Must we lock files when doing compilation? 14906need_locks=$lt_need_locks 14907 14908# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14909DSYMUTIL=$lt_DSYMUTIL 14910 14911# Tool to change global to local symbols on Mac OS X. 14912NMEDIT=$lt_NMEDIT 14913 14914# Tool to manipulate fat objects and archives on Mac OS X. 14915LIPO=$lt_LIPO 14916 14917# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14918OTOOL=$lt_OTOOL 14919 14920# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14921OTOOL64=$lt_OTOOL64 14922 14923# Old archive suffix (normally "a"). 14924libext=$libext 14925 14926# Shared library suffix (normally ".so"). 14927shrext_cmds=$lt_shrext_cmds 14928 14929# The commands to extract the exported symbol list from a shared archive. 14930extract_expsyms_cmds=$lt_extract_expsyms_cmds 14931 14932# Variables whose values should be saved in libtool wrapper scripts and 14933# restored at link time. 14934variables_saved_for_relink=$lt_variables_saved_for_relink 14935 14936# Do we need the "lib" prefix for modules? 14937need_lib_prefix=$need_lib_prefix 14938 14939# Do we need a version for libraries? 14940need_version=$need_version 14941 14942# Library versioning type. 14943version_type=$version_type 14944 14945# Shared library runtime path variable. 14946runpath_var=$runpath_var 14947 14948# Shared library path variable. 14949shlibpath_var=$shlibpath_var 14950 14951# Is shlibpath searched before the hard-coded library search path? 14952shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14953 14954# Format of library name prefix. 14955libname_spec=$lt_libname_spec 14956 14957# List of archive names. First name is the real one, the rest are links. 14958# The last name is the one that the linker finds with -lNAME 14959library_names_spec=$lt_library_names_spec 14960 14961# The coded name of the library, if different from the real name. 14962soname_spec=$lt_soname_spec 14963 14964# Command to use after installation of a shared archive. 14965postinstall_cmds=$lt_postinstall_cmds 14966 14967# Command to use after uninstallation of a shared archive. 14968postuninstall_cmds=$lt_postuninstall_cmds 14969 14970# Commands used to finish a libtool library installation in a directory. 14971finish_cmds=$lt_finish_cmds 14972 14973# As "finish_cmds", except a single script fragment to be evaled but 14974# not shown. 14975finish_eval=$lt_finish_eval 14976 14977# Whether we should hardcode library paths into libraries. 14978hardcode_into_libs=$hardcode_into_libs 14979 14980# Compile-time system search path for libraries. 14981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14982 14983# Run-time system search path for libraries. 14984sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14985 14986# Whether dlopen is supported. 14987dlopen_support=$enable_dlopen 14988 14989# Whether dlopen of programs is supported. 14990dlopen_self=$enable_dlopen_self 14991 14992# Whether dlopen of statically linked programs is supported. 14993dlopen_self_static=$enable_dlopen_self_static 14994 14995# Commands to strip libraries. 14996old_striplib=$lt_old_striplib 14997striplib=$lt_striplib 14998 14999 15000# The linker used to build libraries. 15001LD=$lt_LD 15002 15003# Commands used to build an old-style archive. 15004old_archive_cmds=$lt_old_archive_cmds 15005 15006# A language specific compiler. 15007CC=$lt_compiler 15008 15009# Is the compiler the GNU compiler? 15010with_gcc=$GCC 15011 15012# Compiler flag to turn off builtin functions. 15013no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15014 15015# How to pass a linker flag through the compiler. 15016wl=$lt_lt_prog_compiler_wl 15017 15018# Additional compiler flags for building library objects. 15019pic_flag=$lt_lt_prog_compiler_pic 15020 15021# Compiler flag to prevent dynamic linking. 15022link_static_flag=$lt_lt_prog_compiler_static 15023 15024# Does compiler simultaneously support -c and -o options? 15025compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15026 15027# Whether or not to add -lc for building shared libraries. 15028build_libtool_need_lc=$archive_cmds_need_lc 15029 15030# Whether or not to disallow shared libs when runtime libs are static. 15031allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15032 15033# Compiler flag to allow reflexive dlopens. 15034export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15035 15036# Compiler flag to generate shared objects directly from archives. 15037whole_archive_flag_spec=$lt_whole_archive_flag_spec 15038 15039# Whether the compiler copes with passing no objects directly. 15040compiler_needs_object=$lt_compiler_needs_object 15041 15042# Create an old-style archive from a shared archive. 15043old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15044 15045# Create a temporary old-style archive to link instead of a shared archive. 15046old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15047 15048# Commands used to build a shared archive. 15049archive_cmds=$lt_archive_cmds 15050archive_expsym_cmds=$lt_archive_expsym_cmds 15051 15052# Commands used to build a loadable module if different from building 15053# a shared archive. 15054module_cmds=$lt_module_cmds 15055module_expsym_cmds=$lt_module_expsym_cmds 15056 15057# Whether we are building with GNU ld or not. 15058with_gnu_ld=$lt_with_gnu_ld 15059 15060# Flag that allows shared libraries with undefined symbols to be built. 15061allow_undefined_flag=$lt_allow_undefined_flag 15062 15063# Flag that enforces no undefined symbols. 15064no_undefined_flag=$lt_no_undefined_flag 15065 15066# Flag to hardcode \$libdir into a binary during linking. 15067# This must work even if \$libdir does not exist 15068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15069 15070# If ld is used when linking, flag to hardcode \$libdir into a binary 15071# during linking. This must work even if \$libdir does not exist. 15072hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15073 15074# Whether we need a single "-rpath" flag with a separated argument. 15075hardcode_libdir_separator=$lt_hardcode_libdir_separator 15076 15077# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15078# DIR into the resulting binary. 15079hardcode_direct=$hardcode_direct 15080 15081# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15082# DIR into the resulting binary and the resulting library dependency is 15083# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15084# library is relocated. 15085hardcode_direct_absolute=$hardcode_direct_absolute 15086 15087# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15088# into the resulting binary. 15089hardcode_minus_L=$hardcode_minus_L 15090 15091# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15092# into the resulting binary. 15093hardcode_shlibpath_var=$hardcode_shlibpath_var 15094 15095# Set to "yes" if building a shared library automatically hardcodes DIR 15096# into the library and all subsequent libraries and executables linked 15097# against it. 15098hardcode_automatic=$hardcode_automatic 15099 15100# Set to yes if linker adds runtime paths of dependent libraries 15101# to runtime path list. 15102inherit_rpath=$inherit_rpath 15103 15104# Whether libtool must link a program against all its dependency libraries. 15105link_all_deplibs=$link_all_deplibs 15106 15107# Fix the shell variable \$srcfile for the compiler. 15108fix_srcfile_path=$lt_fix_srcfile_path 15109 15110# Set to "yes" if exported symbols are required. 15111always_export_symbols=$always_export_symbols 15112 15113# The commands to list exported symbols. 15114export_symbols_cmds=$lt_export_symbols_cmds 15115 15116# Symbols that should not be listed in the preloaded symbols. 15117exclude_expsyms=$lt_exclude_expsyms 15118 15119# Symbols that must always be exported. 15120include_expsyms=$lt_include_expsyms 15121 15122# Commands necessary for linking programs (against libraries) with templates. 15123prelink_cmds=$lt_prelink_cmds 15124 15125# Specify filename containing input files. 15126file_list_spec=$lt_file_list_spec 15127 15128# How to hardcode a shared library path into an executable. 15129hardcode_action=$hardcode_action 15130 15131# ### END LIBTOOL CONFIG 15132 15133_LT_EOF 15134 15135 case $host_os in 15136 aix3*) 15137 cat <<\_LT_EOF >> "$cfgfile" 15138# AIX sometimes has problems with the GCC collect2 program. For some 15139# reason, if we set the COLLECT_NAMES environment variable, the problems 15140# vanish in a puff of smoke. 15141if test "X${COLLECT_NAMES+set}" != Xset; then 15142 COLLECT_NAMES= 15143 export COLLECT_NAMES 15144fi 15145_LT_EOF 15146 ;; 15147 esac 15148 15149 15150ltmain="$ac_aux_dir/ltmain.sh" 15151 15152 15153 # We use sed instead of cat because bash on DJGPP gets confused if 15154 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15155 # text mode, it properly converts lines to CR/LF. This bash problem 15156 # is reportedly fixed, but why not run on old versions too? 15157 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15158 || (rm -f "$cfgfile"; exit 1) 15159 15160 case $xsi_shell in 15161 yes) 15162 cat << \_LT_EOF >> "$cfgfile" 15163 15164# func_dirname file append nondir_replacement 15165# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15166# otherwise set result to NONDIR_REPLACEMENT. 15167func_dirname () 15168{ 15169 case ${1} in 15170 */*) func_dirname_result="${1%/*}${2}" ;; 15171 * ) func_dirname_result="${3}" ;; 15172 esac 15173} 15174 15175# func_basename file 15176func_basename () 15177{ 15178 func_basename_result="${1##*/}" 15179} 15180 15181# func_dirname_and_basename file append nondir_replacement 15182# perform func_basename and func_dirname in a single function 15183# call: 15184# dirname: Compute the dirname of FILE. If nonempty, 15185# add APPEND to the result, otherwise set result 15186# to NONDIR_REPLACEMENT. 15187# value returned in "$func_dirname_result" 15188# basename: Compute filename of FILE. 15189# value retuned in "$func_basename_result" 15190# Implementation must be kept synchronized with func_dirname 15191# and func_basename. For efficiency, we do not delegate to 15192# those functions but instead duplicate the functionality here. 15193func_dirname_and_basename () 15194{ 15195 case ${1} in 15196 */*) func_dirname_result="${1%/*}${2}" ;; 15197 * ) func_dirname_result="${3}" ;; 15198 esac 15199 func_basename_result="${1##*/}" 15200} 15201 15202# func_stripname prefix suffix name 15203# strip PREFIX and SUFFIX off of NAME. 15204# PREFIX and SUFFIX must not contain globbing or regex special 15205# characters, hashes, percent signs, but SUFFIX may contain a leading 15206# dot (in which case that matches only a dot). 15207func_stripname () 15208{ 15209 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15210 # positional parameters, so assign one to ordinary parameter first. 15211 func_stripname_result=${3} 15212 func_stripname_result=${func_stripname_result#"${1}"} 15213 func_stripname_result=${func_stripname_result%"${2}"} 15214} 15215 15216# func_opt_split 15217func_opt_split () 15218{ 15219 func_opt_split_opt=${1%%=*} 15220 func_opt_split_arg=${1#*=} 15221} 15222 15223# func_lo2o object 15224func_lo2o () 15225{ 15226 case ${1} in 15227 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15228 *) func_lo2o_result=${1} ;; 15229 esac 15230} 15231 15232# func_xform libobj-or-source 15233func_xform () 15234{ 15235 func_xform_result=${1%.*}.lo 15236} 15237 15238# func_arith arithmetic-term... 15239func_arith () 15240{ 15241 func_arith_result=$(( $* )) 15242} 15243 15244# func_len string 15245# STRING may not start with a hyphen. 15246func_len () 15247{ 15248 func_len_result=${#1} 15249} 15250 15251_LT_EOF 15252 ;; 15253 *) # Bourne compatible functions. 15254 cat << \_LT_EOF >> "$cfgfile" 15255 15256# func_dirname file append nondir_replacement 15257# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15258# otherwise set result to NONDIR_REPLACEMENT. 15259func_dirname () 15260{ 15261 # Extract subdirectory from the argument. 15262 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15263 if test "X$func_dirname_result" = "X${1}"; then 15264 func_dirname_result="${3}" 15265 else 15266 func_dirname_result="$func_dirname_result${2}" 15267 fi 15268} 15269 15270# func_basename file 15271func_basename () 15272{ 15273 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15274} 15275 15276 15277# func_stripname prefix suffix name 15278# strip PREFIX and SUFFIX off of NAME. 15279# PREFIX and SUFFIX must not contain globbing or regex special 15280# characters, hashes, percent signs, but SUFFIX may contain a leading 15281# dot (in which case that matches only a dot). 15282# func_strip_suffix prefix name 15283func_stripname () 15284{ 15285 case ${2} in 15286 .*) func_stripname_result=`$ECHO "X${3}" \ 15287 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15288 *) func_stripname_result=`$ECHO "X${3}" \ 15289 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15290 esac 15291} 15292 15293# sed scripts: 15294my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15295my_sed_long_arg='1s/^-[^=]*=//' 15296 15297# func_opt_split 15298func_opt_split () 15299{ 15300 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15301 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15302} 15303 15304# func_lo2o object 15305func_lo2o () 15306{ 15307 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15308} 15309 15310# func_xform libobj-or-source 15311func_xform () 15312{ 15313 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15314} 15315 15316# func_arith arithmetic-term... 15317func_arith () 15318{ 15319 func_arith_result=`expr "$@"` 15320} 15321 15322# func_len string 15323# STRING may not start with a hyphen. 15324func_len () 15325{ 15326 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15327} 15328 15329_LT_EOF 15330esac 15331 15332case $lt_shell_append in 15333 yes) 15334 cat << \_LT_EOF >> "$cfgfile" 15335 15336# func_append var value 15337# Append VALUE to the end of shell variable VAR. 15338func_append () 15339{ 15340 eval "$1+=\$2" 15341} 15342_LT_EOF 15343 ;; 15344 *) 15345 cat << \_LT_EOF >> "$cfgfile" 15346 15347# func_append var value 15348# Append VALUE to the end of shell variable VAR. 15349func_append () 15350{ 15351 eval "$1=\$$1\$2" 15352} 15353 15354_LT_EOF 15355 ;; 15356 esac 15357 15358 15359 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15360 || (rm -f "$cfgfile"; exit 1) 15361 15362 mv -f "$cfgfile" "$ofile" || 15363 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15364 chmod +x "$ofile" 15365 15366 ;; 15367 15368 esac 15369done # for ac_tag 15370 15371 15372as_fn_exit 0 15373_ACEOF 15374ac_clean_files=$ac_clean_files_save 15375 15376test $ac_write_fail = 0 || 15377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15378 15379 15380# configure is writing to config.log, and then calls config.status. 15381# config.status does its own redirection, appending to config.log. 15382# Unfortunately, on DOS this fails, as config.log is still kept open 15383# by configure, so config.status won't be able to write to it; its 15384# output is simply discarded. So we exec the FD to /dev/null, 15385# effectively closing config.log, so it can be properly (re)opened and 15386# appended to by config.status. When coming back to configure, we 15387# need to make the FD available again. 15388if test "$no_create" != yes; then 15389 ac_cs_success=: 15390 ac_config_status_args= 15391 test "$silent" = yes && 15392 ac_config_status_args="$ac_config_status_args --quiet" 15393 exec 5>/dev/null 15394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15395 exec 5>>config.log 15396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15397 # would make configure fail if this is the last instruction. 15398 $ac_cs_success || as_fn_exit 1 15399fi 15400if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15402$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15403fi 15404 15405