1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libdaemon 0.14. 4# 5# Report bugs to <mzqnrzba (at) 0pointer (dot) de>. 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. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and mzqnrzba (at) 242$0: 0pointer (dot) de about your system, including any 243$0: error possibly output before this message. Then install 244$0: a modern shell, or manually run the script under such a 245$0: shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541# Check that we are running under the correct shell. 542SHELL=${CONFIG_SHELL-/bin/sh} 543 544case X$lt_ECHO in 545X*--fallback-echo) 546 # Remove one level of quotation (which was required for Make). 547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 548 ;; 549esac 550 551ECHO=${lt_ECHO-echo} 552if test "X$1" = X--no-reexec; then 553 # Discard the --no-reexec flag, and continue. 554 shift 555elif test "X$1" = X--fallback-echo; then 556 # Avoid inline document here, it may be left over 557 : 558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 559 # Yippee, $ECHO works! 560 : 561else 562 # Restart under the correct shell. 563 exec $SHELL "$0" --no-reexec ${1+"$@"} 564fi 565 566if test "X$1" = X--fallback-echo; then 567 # used as fallback echo 568 shift 569 cat <<_LT_EOF 570$* 571_LT_EOF 572 exit 0 573fi 574 575# The HP-UX ksh and POSIX shell print the target directory to stdout 576# if CDPATH is set. 577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 578 579if test -z "$lt_ECHO"; then 580 if test "X${echo_test_string+set}" != Xset; then 581 # find a string as large as possible, as long as the shell can cope with it 582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 584 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 586 then 587 break 588 fi 589 done 590 fi 591 592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596 else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 ECHO="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$ECHO" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 ECHO='print -r' 623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 ECHO='printf %s\n' 634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 ECHO="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 ECHO="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 ECHO=echo 672 fi 673 fi 674 fi 675 fi 676 fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681lt_ECHO=$ECHO 682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689test -n "$DJDIR" || exec 7<&0 </dev/null 690exec 6>&1 691 692# Name of the host. 693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 694# so uname gets run too. 695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 696 697# 698# Initializations. 699# 700ac_default_prefix=/usr/local 701ac_clean_files= 702ac_config_libobj_dir=. 703LIBOBJS= 704cross_compiling=no 705subdirs= 706MFLAGS= 707MAKEFLAGS= 708 709# Identity of this package. 710PACKAGE_NAME='libdaemon' 711PACKAGE_TARNAME='libdaemon' 712PACKAGE_VERSION='0.14' 713PACKAGE_STRING='libdaemon 0.14' 714PACKAGE_BUGREPORT='mzqnrzba (at) 0pointer (dot) de' 715PACKAGE_URL='' 716 717ac_unique_file="libdaemon/dfork.c" 718# Factoring default headers for most tests. 719ac_includes_default="\ 720#include <stdio.h> 721#ifdef HAVE_SYS_TYPES_H 722# include <sys/types.h> 723#endif 724#ifdef HAVE_SYS_STAT_H 725# include <sys/stat.h> 726#endif 727#ifdef STDC_HEADERS 728# include <stdlib.h> 729# include <stddef.h> 730#else 731# ifdef HAVE_STDLIB_H 732# include <stdlib.h> 733# endif 734#endif 735#ifdef HAVE_STRING_H 736# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 737# include <memory.h> 738# endif 739# include <string.h> 740#endif 741#ifdef HAVE_STRINGS_H 742# include <strings.h> 743#endif 744#ifdef HAVE_INTTYPES_H 745# include <inttypes.h> 746#endif 747#ifdef HAVE_STDINT_H 748# include <stdint.h> 749#endif 750#ifdef HAVE_UNISTD_H 751# include <unistd.h> 752#endif" 753 754ac_subst_vars='am__EXEEXT_FALSE 755am__EXEEXT_TRUE 756LTLIBOBJS 757LIBOBJS 758EXAMPLES_FALSE 759EXAMPLES_TRUE 760USE_LYNX_FALSE 761USE_LYNX_TRUE 762have_lynx 763LDFLAGS_NOUNDEFINED 764OTOOL64 765OTOOL 766LIPO 767NMEDIT 768DSYMUTIL 769lt_ECHO 770RANLIB 771AR 772OBJDUMP 773NM 774ac_ct_DUMPBIN 775DUMPBIN 776LD 777FGREP 778SED 779host_os 780host_vendor 781host_cpu 782host 783build_os 784build_vendor 785build_cpu 786build 787LIBTOOL 788LN_S 789EGREP 790GREP 791CPP 792am__fastdepCC_FALSE 793am__fastdepCC_TRUE 794CCDEPMODE 795am__nodep 796AMDEPBACKSLASH 797AMDEP_FALSE 798AMDEP_TRUE 799am__quote 800am__include 801DEPDIR 802OBJEXT 803EXEEXT 804ac_ct_CC 805CPPFLAGS 806LDFLAGS 807CFLAGS 808CC 809AM_BACKSLASH 810AM_DEFAULT_VERBOSITY 811AM_DEFAULT_V 812AM_V 813LIBDAEMON_VERSION_INFO 814am__untar 815am__tar 816AMTAR 817am__leading_dot 818SET_MAKE 819AWK 820mkdir_p 821MKDIR_P 822INSTALL_STRIP_PROGRAM 823STRIP 824install_sh 825MAKEINFO 826AUTOHEADER 827AUTOMAKE 828AUTOCONF 829ACLOCAL 830VERSION 831PACKAGE 832CYGPATH_W 833am__isrc 834INSTALL_DATA 835INSTALL_SCRIPT 836INSTALL_PROGRAM 837target_alias 838host_alias 839build_alias 840LIBS 841ECHO_T 842ECHO_N 843ECHO_C 844DEFS 845mandir 846localedir 847libdir 848psdir 849pdfdir 850dvidir 851htmldir 852infodir 853docdir 854oldincludedir 855includedir 856localstatedir 857sharedstatedir 858sysconfdir 859datadir 860datarootdir 861libexecdir 862sbindir 863bindir 864program_transform_name 865prefix 866exec_prefix 867PACKAGE_URL 868PACKAGE_BUGREPORT 869PACKAGE_STRING 870PACKAGE_VERSION 871PACKAGE_TARNAME 872PACKAGE_NAME 873PATH_SEPARATOR 874SHELL' 875ac_subst_files='' 876ac_user_opts=' 877enable_option_checking 878enable_silent_rules 879enable_dependency_tracking 880enable_shared 881enable_static 882with_pic 883enable_fast_install 884with_gnu_ld 885enable_libtool_lock 886enable_assert 887enable_largefile 888enable_lynx 889enable_examples 890' 891 ac_precious_vars='build_alias 892host_alias 893target_alias 894CC 895CFLAGS 896LDFLAGS 897LIBS 898CPPFLAGS 899CPP' 900 901 902# Initialize some variables set by options. 903ac_init_help= 904ac_init_version=false 905ac_unrecognized_opts= 906ac_unrecognized_sep= 907# The variables have the same names as the options, with 908# dashes changed to underlines. 909cache_file=/dev/null 910exec_prefix=NONE 911no_create= 912no_recursion= 913prefix=NONE 914program_prefix=NONE 915program_suffix=NONE 916program_transform_name=s,x,x, 917silent= 918site= 919srcdir= 920verbose= 921x_includes=NONE 922x_libraries=NONE 923 924# Installation directory options. 925# These are left unexpanded so users can "make install exec_prefix=/foo" 926# and all the variables that are supposed to be based on exec_prefix 927# by default will actually change. 928# Use braces instead of parens because sh, perl, etc. also accept them. 929# (The list follows the same order as the GNU Coding Standards.) 930bindir='${exec_prefix}/bin' 931sbindir='${exec_prefix}/sbin' 932libexecdir='${exec_prefix}/libexec' 933datarootdir='${prefix}/share' 934datadir='${datarootdir}' 935sysconfdir='${prefix}/etc' 936sharedstatedir='${prefix}/com' 937localstatedir='${prefix}/var' 938includedir='${prefix}/include' 939oldincludedir='/usr/include' 940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 941infodir='${datarootdir}/info' 942htmldir='${docdir}' 943dvidir='${docdir}' 944pdfdir='${docdir}' 945psdir='${docdir}' 946libdir='${exec_prefix}/lib' 947localedir='${datarootdir}/locale' 948mandir='${datarootdir}/man' 949 950ac_prev= 951ac_dashdash= 952for ac_option 953do 954 # If the previous option needs an argument, assign it. 955 if test -n "$ac_prev"; then 956 eval $ac_prev=\$ac_option 957 ac_prev= 958 continue 959 fi 960 961 case $ac_option in 962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 963 *=) ac_optarg= ;; 964 *) ac_optarg=yes ;; 965 esac 966 967 # Accept the important Cygnus configure options, so we can diagnose typos. 968 969 case $ac_dashdash$ac_option in 970 --) 971 ac_dashdash=yes ;; 972 973 -bindir | --bindir | --bindi | --bind | --bin | --bi) 974 ac_prev=bindir ;; 975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 976 bindir=$ac_optarg ;; 977 978 -build | --build | --buil | --bui | --bu) 979 ac_prev=build_alias ;; 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 981 build_alias=$ac_optarg ;; 982 983 -cache-file | --cache-file | --cache-fil | --cache-fi \ 984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 985 ac_prev=cache_file ;; 986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 988 cache_file=$ac_optarg ;; 989 990 --config-cache | -C) 991 cache_file=config.cache ;; 992 993 -datadir | --datadir | --datadi | --datad) 994 ac_prev=datadir ;; 995 -datadir=* | --datadir=* | --datadi=* | --datad=*) 996 datadir=$ac_optarg ;; 997 998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 999 | --dataroo | --dataro | --datar) 1000 ac_prev=datarootdir ;; 1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1003 datarootdir=$ac_optarg ;; 1004 1005 -disable-* | --disable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: $ac_useropt" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=no ;; 1020 1021 -docdir | --docdir | --docdi | --doc | --do) 1022 ac_prev=docdir ;; 1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1024 docdir=$ac_optarg ;; 1025 1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1027 ac_prev=dvidir ;; 1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1029 dvidir=$ac_optarg ;; 1030 1031 -enable-* | --enable-*) 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1035 as_fn_error $? "invalid feature name: $ac_useropt" 1036 ac_useropt_orig=$ac_useropt 1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1038 case $ac_user_opts in 1039 *" 1040"enable_$ac_useropt" 1041"*) ;; 1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1043 ac_unrecognized_sep=', ';; 1044 esac 1045 eval enable_$ac_useropt=\$ac_optarg ;; 1046 1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1049 | --exec | --exe | --ex) 1050 ac_prev=exec_prefix ;; 1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1053 | --exec=* | --exe=* | --ex=*) 1054 exec_prefix=$ac_optarg ;; 1055 1056 -gas | --gas | --ga | --g) 1057 # Obsolete; use --with-gas. 1058 with_gas=yes ;; 1059 1060 -help | --help | --hel | --he | -h) 1061 ac_init_help=long ;; 1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1063 ac_init_help=recursive ;; 1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1065 ac_init_help=short ;; 1066 1067 -host | --host | --hos | --ho) 1068 ac_prev=host_alias ;; 1069 -host=* | --host=* | --hos=* | --ho=*) 1070 host_alias=$ac_optarg ;; 1071 1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1073 ac_prev=htmldir ;; 1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1075 | --ht=*) 1076 htmldir=$ac_optarg ;; 1077 1078 -includedir | --includedir | --includedi | --included | --include \ 1079 | --includ | --inclu | --incl | --inc) 1080 ac_prev=includedir ;; 1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1082 | --includ=* | --inclu=* | --incl=* | --inc=*) 1083 includedir=$ac_optarg ;; 1084 1085 -infodir | --infodir | --infodi | --infod | --info | --inf) 1086 ac_prev=infodir ;; 1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1088 infodir=$ac_optarg ;; 1089 1090 -libdir | --libdir | --libdi | --libd) 1091 ac_prev=libdir ;; 1092 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1093 libdir=$ac_optarg ;; 1094 1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1096 | --libexe | --libex | --libe) 1097 ac_prev=libexecdir ;; 1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1099 | --libexe=* | --libex=* | --libe=*) 1100 libexecdir=$ac_optarg ;; 1101 1102 -localedir | --localedir | --localedi | --localed | --locale) 1103 ac_prev=localedir ;; 1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1105 localedir=$ac_optarg ;; 1106 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1108 | --localstate | --localstat | --localsta | --localst | --locals) 1109 ac_prev=localstatedir ;; 1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1112 localstatedir=$ac_optarg ;; 1113 1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1115 ac_prev=mandir ;; 1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1117 mandir=$ac_optarg ;; 1118 1119 -nfp | --nfp | --nf) 1120 # Obsolete; use --without-fp. 1121 with_fp=no ;; 1122 1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1124 | --no-cr | --no-c | -n) 1125 no_create=yes ;; 1126 1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1129 no_recursion=yes ;; 1130 1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1133 | --oldin | --oldi | --old | --ol | --o) 1134 ac_prev=oldincludedir ;; 1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1138 oldincludedir=$ac_optarg ;; 1139 1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1141 ac_prev=prefix ;; 1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1143 prefix=$ac_optarg ;; 1144 1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1146 | --program-pre | --program-pr | --program-p) 1147 ac_prev=program_prefix ;; 1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1150 program_prefix=$ac_optarg ;; 1151 1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1153 | --program-suf | --program-su | --program-s) 1154 ac_prev=program_suffix ;; 1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1157 program_suffix=$ac_optarg ;; 1158 1159 -program-transform-name | --program-transform-name \ 1160 | --program-transform-nam | --program-transform-na \ 1161 | --program-transform-n | --program-transform- \ 1162 | --program-transform | --program-transfor \ 1163 | --program-transfo | --program-transf \ 1164 | --program-trans | --program-tran \ 1165 | --progr-tra | --program-tr | --program-t) 1166 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1175 1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1177 ac_prev=pdfdir ;; 1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1179 pdfdir=$ac_optarg ;; 1180 1181 -psdir | --psdir | --psdi | --psd | --ps) 1182 ac_prev=psdir ;; 1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1184 psdir=$ac_optarg ;; 1185 1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1187 | -silent | --silent | --silen | --sile | --sil) 1188 silent=yes ;; 1189 1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1191 ac_prev=sbindir ;; 1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1193 | --sbi=* | --sb=*) 1194 sbindir=$ac_optarg ;; 1195 1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1198 | --sharedst | --shareds | --shared | --share | --shar \ 1199 | --sha | --sh) 1200 ac_prev=sharedstatedir ;; 1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1204 | --sha=* | --sh=*) 1205 sharedstatedir=$ac_optarg ;; 1206 1207 -site | --site | --sit) 1208 ac_prev=site ;; 1209 -site=* | --site=* | --sit=*) 1210 site=$ac_optarg ;; 1211 1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1213 ac_prev=srcdir ;; 1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1215 srcdir=$ac_optarg ;; 1216 1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1218 | --syscon | --sysco | --sysc | --sys | --sy) 1219 ac_prev=sysconfdir ;; 1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1222 sysconfdir=$ac_optarg ;; 1223 1224 -target | --target | --targe | --targ | --tar | --ta | --t) 1225 ac_prev=target_alias ;; 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1227 target_alias=$ac_optarg ;; 1228 1229 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1230 verbose=yes ;; 1231 1232 -version | --version | --versio | --versi | --vers | -V) 1233 ac_init_version=: ;; 1234 1235 -with-* | --with-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=\$ac_optarg ;; 1250 1251 -without-* | --without-*) 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1255 as_fn_error $? "invalid package name: $ac_useropt" 1256 ac_useropt_orig=$ac_useropt 1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1258 case $ac_user_opts in 1259 *" 1260"with_$ac_useropt" 1261"*) ;; 1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1263 ac_unrecognized_sep=', ';; 1264 esac 1265 eval with_$ac_useropt=no ;; 1266 1267 --x) 1268 # Obsolete; use --with-x. 1269 with_x=yes ;; 1270 1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1272 | --x-incl | --x-inc | --x-in | --x-i) 1273 ac_prev=x_includes ;; 1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1276 x_includes=$ac_optarg ;; 1277 1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1280 ac_prev=x_libraries ;; 1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1283 x_libraries=$ac_optarg ;; 1284 1285 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1286Try \`$0 --help' for more information" 1287 ;; 1288 1289 *=*) 1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1291 # Reject names that are not valid shell variable names. 1292 case $ac_envvar in #( 1293 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1295 esac 1296 eval $ac_envvar=\$ac_optarg 1297 export $ac_envvar ;; 1298 1299 *) 1300 # FIXME: should be removed in autoconf 3.0. 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1305 ;; 1306 1307 esac 1308done 1309 1310if test -n "$ac_prev"; then 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1312 as_fn_error $? "missing argument to $ac_option" 1313fi 1314 1315if test -n "$ac_unrecognized_opts"; then 1316 case $enable_option_checking in 1317 no) ;; 1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1320 esac 1321fi 1322 1323# Check all directory arguments for consistency. 1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1325 datadir sysconfdir sharedstatedir localstatedir includedir \ 1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1327 libdir localedir mandir 1328do 1329 eval ac_val=\$$ac_var 1330 # Remove trailing slashes. 1331 case $ac_val in 1332 */ ) 1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1334 eval $ac_var=\$ac_val;; 1335 esac 1336 # Be sure to have absolute directory names. 1337 case $ac_val in 1338 [\\/$]* | ?:[\\/]* ) continue;; 1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1340 esac 1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1342done 1343 1344# There might be people who depend on the old broken behavior: `$host' 1345# used to hold the argument of --host etc. 1346# FIXME: To remove some day. 1347build=$build_alias 1348host=$host_alias 1349target=$target_alias 1350 1351# FIXME: To remove some day. 1352if test "x$host_alias" != x; then 1353 if test "x$build_alias" = x; then 1354 cross_compiling=maybe 1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1356 If a cross compiler is detected then cross compile mode will be used" >&2 1357 elif test "x$build_alias" != "x$host_alias"; then 1358 cross_compiling=yes 1359 fi 1360fi 1361 1362ac_tool_prefix= 1363test -n "$host_alias" && ac_tool_prefix=$host_alias- 1364 1365test "$silent" = yes && exec 6>/dev/null 1366 1367 1368ac_pwd=`pwd` && test -n "$ac_pwd" && 1369ac_ls_di=`ls -di .` && 1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1371 as_fn_error $? "working directory cannot be determined" 1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1373 as_fn_error $? "pwd does not report name of working directory" 1374 1375 1376# Find the source files, if location was not specified. 1377if test -z "$srcdir"; then 1378 ac_srcdir_defaulted=yes 1379 # Try the directory containing this script, then the parent directory. 1380 ac_confdir=`$as_dirname -- "$as_myself" || 1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1382 X"$as_myself" : 'X\(//\)[^/]' \| \ 1383 X"$as_myself" : 'X\(//\)$' \| \ 1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1385$as_echo X"$as_myself" | 1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)[^/].*/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\).*/{ 1399 s//\1/ 1400 q 1401 } 1402 s/.*/./; q'` 1403 srcdir=$ac_confdir 1404 if test ! -r "$srcdir/$ac_unique_file"; then 1405 srcdir=.. 1406 fi 1407else 1408 ac_srcdir_defaulted=no 1409fi 1410if test ! -r "$srcdir/$ac_unique_file"; then 1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1413fi 1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1415ac_abs_confdir=`( 1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1417 pwd)` 1418# When building in place, set srcdir=. 1419if test "$ac_abs_confdir" = "$ac_pwd"; then 1420 srcdir=. 1421fi 1422# Remove unnecessary trailing slashes from srcdir. 1423# Double slashes in file names in object file debugging info 1424# mess up M-x gdb in Emacs. 1425case $srcdir in 1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1427esac 1428for ac_var in $ac_precious_vars; do 1429 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1430 eval ac_env_${ac_var}_value=\$${ac_var} 1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1432 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1433done 1434 1435# 1436# Report the --help message. 1437# 1438if test "$ac_init_help" = "long"; then 1439 # Omit some internal or obsolete options to make the list less imposing. 1440 # This message is too long to be a string in the A/UX 3.1 sh. 1441 cat <<_ACEOF 1442\`configure' configures libdaemon 0.14 to adapt to many kinds of systems. 1443 1444Usage: $0 [OPTION]... [VAR=VALUE]... 1445 1446To assign environment variables (e.g., CC, CFLAGS...), specify them as 1447VAR=VALUE. See below for descriptions of some of the useful variables. 1448 1449Defaults for the options are specified in brackets. 1450 1451Configuration: 1452 -h, --help display this help and exit 1453 --help=short display options specific to this package 1454 --help=recursive display the short help of all the included packages 1455 -V, --version display version information and exit 1456 -q, --quiet, --silent do not print \`checking ...' messages 1457 --cache-file=FILE cache test results in FILE [disabled] 1458 -C, --config-cache alias for \`--cache-file=config.cache' 1459 -n, --no-create do not create output files 1460 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1461 1462Installation directories: 1463 --prefix=PREFIX install architecture-independent files in PREFIX 1464 [$ac_default_prefix] 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1466 [PREFIX] 1467 1468By default, \`make install' will install all the files in 1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1470an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1471for instance \`--prefix=\$HOME'. 1472 1473For better control, use the options below. 1474 1475Fine tuning of the installation directories: 1476 --bindir=DIR user executables [EPREFIX/bin] 1477 --sbindir=DIR system admin executables [EPREFIX/sbin] 1478 --libexecdir=DIR program executables [EPREFIX/libexec] 1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1482 --libdir=DIR object code libraries [EPREFIX/lib] 1483 --includedir=DIR C header files [PREFIX/include] 1484 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1487 --infodir=DIR info documentation [DATAROOTDIR/info] 1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1489 --mandir=DIR man documentation [DATAROOTDIR/man] 1490 --docdir=DIR documentation root [DATAROOTDIR/doc/libdaemon] 1491 --htmldir=DIR html documentation [DOCDIR] 1492 --dvidir=DIR dvi documentation [DOCDIR] 1493 --pdfdir=DIR pdf documentation [DOCDIR] 1494 --psdir=DIR ps documentation [DOCDIR] 1495_ACEOF 1496 1497 cat <<\_ACEOF 1498 1499Program names: 1500 --program-prefix=PREFIX prepend PREFIX to installed program names 1501 --program-suffix=SUFFIX append SUFFIX to installed program names 1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1503 1504System types: 1505 --build=BUILD configure for building on BUILD [guessed] 1506 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1507_ACEOF 1508fi 1509 1510if test -n "$ac_init_help"; then 1511 case $ac_init_help in 1512 short | recursive ) echo "Configuration of libdaemon 0.14:";; 1513 esac 1514 cat <<\_ACEOF 1515 1516Optional Features: 1517 --disable-option-checking ignore unrecognized --enable/--with options 1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1520 --enable-silent-rules less verbose build output (undo: `make V=1') 1521 --disable-silent-rules verbose build output (undo: `make V=0') 1522 --disable-dependency-tracking speeds up one-time build 1523 --enable-dependency-tracking do not reject slow dependency extractors 1524 --enable-shared[=PKGS] build shared libraries [default=yes] 1525 --enable-static[=PKGS] build static libraries [default=yes] 1526 --enable-fast-install[=PKGS] 1527 optimize for fast installation [default=yes] 1528 --disable-libtool-lock avoid locking (might break parallel builds) 1529 --disable-assert turn off assertions 1530 --disable-largefile omit support for large files 1531 --disable-lynx Turn off lynx usage for documentation generation 1532 --disable-examples Don't build examples during make 1533 1534Optional Packages: 1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1537 --with-pic try to use only PIC/non-PIC objects [default=use 1538 both] 1539 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1540 1541Some influential environment variables: 1542 CC C compiler command 1543 CFLAGS C compiler flags 1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1545 nonstandard directory <lib dir> 1546 LIBS libraries to pass to the linker, e.g. -l<library> 1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1548 you have headers in a nonstandard directory <include dir> 1549 CPP C preprocessor 1550 1551Use these variables to override the choices made by `configure' or to help 1552it to find libraries and programs with nonstandard names/locations. 1553 1554Report bugs to <mzqnrzba (at) 0pointer (dot) de>. 1555_ACEOF 1556ac_status=$? 1557fi 1558 1559if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567case "$ac_dir" in 1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569*) 1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577esac 1578ac_abs_top_builddir=$ac_pwd 1579ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580# for backward compatibility: 1581ac_top_builddir=$ac_top_build_prefix 1582 1583case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596esac 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for guested configure. 1601 if test -f "$ac_srcdir/configure.gnu"; then 1602 echo && 1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1604 elif test -f "$ac_srcdir/configure"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure" --help=recursive 1607 else 1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1609 fi || ac_status=$? 1610 cd "$ac_pwd" || { ac_status=$?; break; } 1611 done 1612fi 1613 1614test -n "$ac_init_help" && exit $ac_status 1615if $ac_init_version; then 1616 cat <<\_ACEOF 1617libdaemon configure 0.14 1618generated by GNU Autoconf 2.68 1619 1620Copyright (C) 2010 Free Software Foundation, Inc. 1621This configure script is free software; the Free Software Foundation 1622gives unlimited permission to copy, distribute and modify it. 1623_ACEOF 1624 exit 1625fi 1626 1627## ------------------------ ## 1628## Autoconf initialization. ## 1629## ------------------------ ## 1630 1631# ac_fn_c_try_compile LINENO 1632# -------------------------- 1633# Try to compile conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_compile () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 rm -f conftest.$ac_objext 1638 if { { ac_try="$ac_compile" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_compile") 2>conftest.err 1646 ac_status=$? 1647 if test -s conftest.err; then 1648 grep -v '^ *+' conftest.err >conftest.er1 1649 cat conftest.er1 >&5 1650 mv -f conftest.er1 conftest.err 1651 fi 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1653 test $ac_status = 0; } && { 1654 test -z "$ac_c_werror_flag" || 1655 test ! -s conftest.err 1656 } && test -s conftest.$ac_objext; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=1 1663fi 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 as_fn_set_status $ac_retval 1666 1667} # ac_fn_c_try_compile 1668 1669# ac_fn_c_try_cpp LINENO 1670# ---------------------- 1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_cpp () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_cpp conftest.$ac_ext" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } > conftest.i && { 1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 }; then : 1694 ac_retval=0 1695else 1696 $as_echo "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=1 1700fi 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_cpp 1705 1706# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1709# the include files in INCLUDES and setting the cache variable VAR 1710# accordingly. 1711ac_fn_c_check_header_mongrel () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if eval \${$3+:} false; then : 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723else 1724 # Is the header compilable? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1726$as_echo_n "checking $2 usability... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 ac_header_compiler=yes 1734else 1735 ac_header_compiler=no 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1739$as_echo "$ac_header_compiler" >&6; } 1740 1741# Is the header present? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1743$as_echo_n "checking $2 presence... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_cpp "$LINENO"; then : 1749 ac_header_preproc=yes 1750else 1751 ac_header_preproc=no 1752fi 1753rm -f conftest.err conftest.i conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1755$as_echo "$ac_header_preproc" >&6; } 1756 1757# So? What about this header? 1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1759 yes:no: ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1764 ;; 1765 no:yes:* ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776( $as_echo "## ---------------------------------------------- ## 1777## Report this to mzqnrzba (at) 0pointer (dot) de ## 1778## ---------------------------------------------- ##" 1779 ) | sed "s/^/$as_me: WARNING: /" >&2 1780 ;; 1781esac 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 eval "$3=\$ac_header_compiler" 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792fi 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} # ac_fn_c_check_header_mongrel 1796 1797# ac_fn_c_try_run LINENO 1798# ---------------------- 1799# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1800# that executables *can* be run. 1801ac_fn_c_try_run () 1802{ 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 if { { ac_try="$ac_link" 1805case "(($ac_try" in 1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1807 *) ac_try_echo=$ac_try;; 1808esac 1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1810$as_echo "$ac_try_echo"; } >&5 1811 (eval "$ac_link") 2>&5 1812 ac_status=$? 1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1815 { { case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818esac 1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820$as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_try") 2>&5 1822 ac_status=$? 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; }; }; then : 1825 ac_retval=0 1826else 1827 $as_echo "$as_me: program exited with status $ac_status" >&5 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=$ac_status 1832fi 1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1835 as_fn_set_status $ac_retval 1836 1837} # ac_fn_c_try_run 1838 1839# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1840# ------------------------------------------------------- 1841# Tests whether HEADER exists and can be compiled using the include files in 1842# INCLUDES, setting the cache variable VAR accordingly. 1843ac_fn_c_check_header_compile () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847$as_echo_n "checking for $2... " >&6; } 1848if eval \${$3+:} false; then : 1849 $as_echo_n "(cached) " >&6 1850else 1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1852/* end confdefs.h. */ 1853$4 1854#include <$2> 1855_ACEOF 1856if ac_fn_c_try_compile "$LINENO"; then : 1857 eval "$3=yes" 1858else 1859 eval "$3=no" 1860fi 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_header_compile 1869 1870# ac_fn_c_try_link LINENO 1871# ----------------------- 1872# Try to link conftest.$ac_ext, and return whether this succeeded. 1873ac_fn_c_try_link () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 rm -f conftest.$ac_objext conftest$ac_exeext 1877 if { { ac_try="$ac_link" 1878case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_link") 2>conftest.err 1885 ac_status=$? 1886 if test -s conftest.err; then 1887 grep -v '^ *+' conftest.err >conftest.er1 1888 cat conftest.er1 >&5 1889 mv -f conftest.er1 conftest.err 1890 fi 1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1892 test $ac_status = 0; } && { 1893 test -z "$ac_c_werror_flag" || 1894 test ! -s conftest.err 1895 } && test -s conftest$ac_exeext && { 1896 test "$cross_compiling" = yes || 1897 $as_test_x conftest$ac_exeext 1898 }; then : 1899 ac_retval=0 1900else 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1908 # interfere with the next link command; also delete a directory that is 1909 # left behind by Apple's compiler. We do this before executing the actions. 1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 as_fn_set_status $ac_retval 1913 1914} # ac_fn_c_try_link 1915 1916# ac_fn_c_check_func LINENO FUNC VAR 1917# ---------------------------------- 1918# Tests whether FUNC exists, setting the cache variable VAR accordingly 1919ac_fn_c_check_func () 1920{ 1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1923$as_echo_n "checking for $2... " >&6; } 1924if eval \${$3+:} false; then : 1925 $as_echo_n "(cached) " >&6 1926else 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1930 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1931#define $2 innocuous_$2 1932 1933/* System header to define __stub macros and hopefully few prototypes, 1934 which can conflict with char $2 (); below. 1935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1936 <limits.h> exists even on freestanding compilers. */ 1937 1938#ifdef __STDC__ 1939# include <limits.h> 1940#else 1941# include <assert.h> 1942#endif 1943 1944#undef $2 1945 1946/* Override any GCC internal prototype to avoid an error. 1947 Use char because int might match the return type of a GCC 1948 builtin and then its argument prototype would still apply. */ 1949#ifdef __cplusplus 1950extern "C" 1951#endif 1952char $2 (); 1953/* The GNU C library defines this for functions which it implements 1954 to always fail with ENOSYS. Some functions are actually named 1955 something starting with __ and the normal name is an alias. */ 1956#if defined __stub_$2 || defined __stub___$2 1957choke me 1958#endif 1959 1960int 1961main () 1962{ 1963return $2 (); 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_link "$LINENO"; then : 1969 eval "$3=yes" 1970else 1971 eval "$3=no" 1972fi 1973rm -f core conftest.err conftest.$ac_objext \ 1974 conftest$ac_exeext conftest.$ac_ext 1975fi 1976eval ac_res=\$$3 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1978$as_echo "$ac_res" >&6; } 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 1981} # ac_fn_c_check_func 1982 1983# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1984# ------------------------------------------- 1985# Tests whether TYPE exists after having included INCLUDES, setting cache 1986# variable VAR accordingly. 1987ac_fn_c_check_type () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if eval \${$3+:} false; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 eval "$3=no" 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002if (sizeof ($2)) 2003 return 0; 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_compile "$LINENO"; then : 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main () 2014{ 2015if (sizeof (($2))) 2016 return 0; 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 2023else 2024 eval "$3=yes" 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2027fi 2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 2035} # ac_fn_c_check_type 2036cat >config.log <<_ACEOF 2037This file contains any messages produced by compilers while 2038running configure, to aid debugging if configure makes a mistake. 2039 2040It was created by libdaemon $as_me 0.14, which was 2041generated by GNU Autoconf 2.68. Invocation command line was 2042 2043 $ $0 $@ 2044 2045_ACEOF 2046exec 5>>config.log 2047{ 2048cat <<_ASUNAME 2049## --------- ## 2050## Platform. ## 2051## --------- ## 2052 2053hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2054uname -m = `(uname -m) 2>/dev/null || echo unknown` 2055uname -r = `(uname -r) 2>/dev/null || echo unknown` 2056uname -s = `(uname -s) 2>/dev/null || echo unknown` 2057uname -v = `(uname -v) 2>/dev/null || echo unknown` 2058 2059/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2060/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2061 2062/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2063/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2064/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2065/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2066/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2067/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2068/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2069 2070_ASUNAME 2071 2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2073for as_dir in $PATH 2074do 2075 IFS=$as_save_IFS 2076 test -z "$as_dir" && as_dir=. 2077 $as_echo "PATH: $as_dir" 2078 done 2079IFS=$as_save_IFS 2080 2081} >&5 2082 2083cat >&5 <<_ACEOF 2084 2085 2086## ----------- ## 2087## Core tests. ## 2088## ----------- ## 2089 2090_ACEOF 2091 2092 2093# Keep a trace of the command line. 2094# Strip out --no-create and --no-recursion so they do not pile up. 2095# Strip out --silent because we don't want to record it for future runs. 2096# Also quote any args containing shell meta-characters. 2097# Make two passes to allow for proper duplicate-argument suppression. 2098ac_configure_args= 2099ac_configure_args0= 2100ac_configure_args1= 2101ac_must_keep_next=false 2102for ac_pass in 1 2 2103do 2104 for ac_arg 2105 do 2106 case $ac_arg in 2107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2109 | -silent | --silent | --silen | --sile | --sil) 2110 continue ;; 2111 *\'*) 2112 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2113 esac 2114 case $ac_pass in 2115 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2116 2) 2117 as_fn_append ac_configure_args1 " '$ac_arg'" 2118 if test $ac_must_keep_next = true; then 2119 ac_must_keep_next=false # Got value, back to normal. 2120 else 2121 case $ac_arg in 2122 *=* | --config-cache | -C | -disable-* | --disable-* \ 2123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2125 | -with-* | --with-* | -without-* | --without-* | --x) 2126 case "$ac_configure_args0 " in 2127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2128 esac 2129 ;; 2130 -* ) ac_must_keep_next=true ;; 2131 esac 2132 fi 2133 as_fn_append ac_configure_args " '$ac_arg'" 2134 ;; 2135 esac 2136 done 2137done 2138{ ac_configure_args0=; unset ac_configure_args0;} 2139{ ac_configure_args1=; unset ac_configure_args1;} 2140 2141# When interrupted or exit'd, cleanup temporary files, and complete 2142# config.log. We remove comments because anyway the quotes in there 2143# would cause problems or look ugly. 2144# WARNING: Use '\'' to represent an apostrophe within the trap. 2145# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2146trap 'exit_status=$? 2147 # Save into config.log some information that might help in debugging. 2148 { 2149 echo 2150 2151 $as_echo "## ---------------- ## 2152## Cache variables. ## 2153## ---------------- ##" 2154 echo 2155 # The following way of writing the cache mishandles newlines in values, 2156( 2157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2158 eval ac_val=\$$ac_var 2159 case $ac_val in #( 2160 *${as_nl}*) 2161 case $ac_var in #( 2162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2163$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2164 esac 2165 case $ac_var in #( 2166 _ | IFS | as_nl) ;; #( 2167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2168 *) { eval $ac_var=; unset $ac_var;} ;; 2169 esac ;; 2170 esac 2171 done 2172 (set) 2>&1 | 2173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2174 *${as_nl}ac_space=\ *) 2175 sed -n \ 2176 "s/'\''/'\''\\\\'\'''\''/g; 2177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2178 ;; #( 2179 *) 2180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2181 ;; 2182 esac | 2183 sort 2184) 2185 echo 2186 2187 $as_echo "## ----------------- ## 2188## Output variables. ## 2189## ----------------- ##" 2190 echo 2191 for ac_var in $ac_subst_vars 2192 do 2193 eval ac_val=\$$ac_var 2194 case $ac_val in 2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2196 esac 2197 $as_echo "$ac_var='\''$ac_val'\''" 2198 done | sort 2199 echo 2200 2201 if test -n "$ac_subst_files"; then 2202 $as_echo "## ------------------- ## 2203## File substitutions. ## 2204## ------------------- ##" 2205 echo 2206 for ac_var in $ac_subst_files 2207 do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in 2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2211 esac 2212 $as_echo "$ac_var='\''$ac_val'\''" 2213 done | sort 2214 echo 2215 fi 2216 2217 if test -s confdefs.h; then 2218 $as_echo "## ----------- ## 2219## confdefs.h. ## 2220## ----------- ##" 2221 echo 2222 cat confdefs.h 2223 echo 2224 fi 2225 test "$ac_signal" != 0 && 2226 $as_echo "$as_me: caught signal $ac_signal" 2227 $as_echo "$as_me: exit $exit_status" 2228 } >&5 2229 rm -f core *.core core.conftest.* && 2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2231 exit $exit_status 2232' 0 2233for ac_signal in 1 2 13 15; do 2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2235done 2236ac_signal=0 2237 2238# confdefs.h avoids OS command line length limits that DEFS can exceed. 2239rm -f -r conftest* confdefs.h 2240 2241$as_echo "/* confdefs.h */" > confdefs.h 2242 2243# Predefined preprocessor variables. 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_NAME "$PACKAGE_NAME" 2247_ACEOF 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2251_ACEOF 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_VERSION "$PACKAGE_VERSION" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_STRING "$PACKAGE_STRING" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_URL "$PACKAGE_URL" 2267_ACEOF 2268 2269 2270# Let the site file select an alternate cache file if it wants to. 2271# Prefer an explicitly selected file to automatically selected ones. 2272ac_site_file1=NONE 2273ac_site_file2=NONE 2274if test -n "$CONFIG_SITE"; then 2275 # We do not want a PATH search for config.site. 2276 case $CONFIG_SITE in #(( 2277 -*) ac_site_file1=./$CONFIG_SITE;; 2278 */*) ac_site_file1=$CONFIG_SITE;; 2279 *) ac_site_file1=./$CONFIG_SITE;; 2280 esac 2281elif test "x$prefix" != xNONE; then 2282 ac_site_file1=$prefix/share/config.site 2283 ac_site_file2=$prefix/etc/config.site 2284else 2285 ac_site_file1=$ac_default_prefix/share/config.site 2286 ac_site_file2=$ac_default_prefix/etc/config.site 2287fi 2288for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2289do 2290 test "x$ac_site_file" = xNONE && continue 2291 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2293$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2294 sed 's/^/| /' "$ac_site_file" >&5 2295 . "$ac_site_file" \ 2296 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2298as_fn_error $? "failed to load site script $ac_site_file 2299See \`config.log' for more details" "$LINENO" 5; } 2300 fi 2301done 2302 2303if test -r "$cache_file"; then 2304 # Some versions of bash will fail to source /dev/null (special files 2305 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2306 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2308$as_echo "$as_me: loading cache $cache_file" >&6;} 2309 case $cache_file in 2310 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2311 *) . "./$cache_file";; 2312 esac 2313 fi 2314else 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2316$as_echo "$as_me: creating cache $cache_file" >&6;} 2317 >$cache_file 2318fi 2319 2320# Check that the precious variables saved in the cache have kept the same 2321# value. 2322ac_cache_corrupted=false 2323for ac_var in $ac_precious_vars; do 2324 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2325 eval ac_new_set=\$ac_env_${ac_var}_set 2326 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2327 eval ac_new_val=\$ac_env_${ac_var}_value 2328 case $ac_old_set,$ac_new_set in 2329 set,) 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2331$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2332 ac_cache_corrupted=: ;; 2333 ,set) 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2335$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2336 ac_cache_corrupted=: ;; 2337 ,);; 2338 *) 2339 if test "x$ac_old_val" != "x$ac_new_val"; then 2340 # differences in whitespace do not lead to failure. 2341 ac_old_val_w=`echo x $ac_old_val` 2342 ac_new_val_w=`echo x $ac_new_val` 2343 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2345$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2346 ac_cache_corrupted=: 2347 else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2349$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2350 eval $ac_var=\$ac_old_val 2351 fi 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2353$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2355$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2356 fi;; 2357 esac 2358 # Pass precious variables to config.status. 2359 if test "$ac_new_set" = set; then 2360 case $ac_new_val in 2361 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2362 *) ac_arg=$ac_var=$ac_new_val ;; 2363 esac 2364 case " $ac_configure_args " in 2365 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2366 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2367 esac 2368 fi 2369done 2370if $ac_cache_corrupted; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2374$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2375 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2376fi 2377## -------------------- ## 2378## Main body of script. ## 2379## -------------------- ## 2380 2381ac_ext=c 2382ac_cpp='$CPP $CPPFLAGS' 2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2385ac_compiler_gnu=$ac_cv_c_compiler_gnu 2386 2387 2388 2389ac_config_headers="$ac_config_headers config.h" 2390 2391 2392 2393am__api_version='1.11' 2394 2395ac_aux_dir= 2396for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2397 if test -f "$ac_dir/install-sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install-sh -c" 2400 break 2401 elif test -f "$ac_dir/install.sh"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/install.sh -c" 2404 break 2405 elif test -f "$ac_dir/shtool"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/shtool install -c" 2408 break 2409 fi 2410done 2411if test -z "$ac_aux_dir"; then 2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2413fi 2414 2415# These three variables are undocumented and unsupported, 2416# and are intended to be withdrawn in a future Autoconf release. 2417# They can cause serious problems if a builder's source tree is in a directory 2418# whose full name contains unusual characters. 2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2422 2423 2424# Find a good install program. We prefer a C program (faster), 2425# so one script is as good as another. But avoid the broken or 2426# incompatible versions: 2427# SysV /etc/install, /usr/sbin/install 2428# SunOS /usr/etc/install 2429# IRIX /sbin/install 2430# AIX /bin/install 2431# AmigaOS /C/install, which installs bootblocks on floppy discs 2432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2433# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2435# OS/2's system install, which has a completely different semantic 2436# ./install, which can be erroneously created by make from ./install.sh. 2437# Reject install programs that cannot install multiple files. 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2439$as_echo_n "checking for a BSD-compatible install... " >&6; } 2440if test -z "$INSTALL"; then 2441if ${ac_cv_path_install+:} false; then : 2442 $as_echo_n "(cached) " >&6 2443else 2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2445for as_dir in $PATH 2446do 2447 IFS=$as_save_IFS 2448 test -z "$as_dir" && as_dir=. 2449 # Account for people who put trailing slashes in PATH elements. 2450case $as_dir/ in #(( 2451 ./ | .// | /[cC]/* | \ 2452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2454 /usr/ucb/* ) ;; 2455 *) 2456 # OSF1 and SCO ODT 3.0 have their own names for install. 2457 # Don't use installbsd from OSF since it installs stuff as root 2458 # by default. 2459 for ac_prog in ginstall scoinst install; do 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2462 if test $ac_prog = install && 2463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2464 # AIX install. It has an incompatible calling convention. 2465 : 2466 elif test $ac_prog = install && 2467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2468 # program-specific install script used by HP pwplus--don't use. 2469 : 2470 else 2471 rm -rf conftest.one conftest.two conftest.dir 2472 echo one > conftest.one 2473 echo two > conftest.two 2474 mkdir conftest.dir 2475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2476 test -s conftest.one && test -s conftest.two && 2477 test -s conftest.dir/conftest.one && 2478 test -s conftest.dir/conftest.two 2479 then 2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2481 break 3 2482 fi 2483 fi 2484 fi 2485 done 2486 done 2487 ;; 2488esac 2489 2490 done 2491IFS=$as_save_IFS 2492 2493rm -rf conftest.one conftest.two conftest.dir 2494 2495fi 2496 if test "${ac_cv_path_install+set}" = set; then 2497 INSTALL=$ac_cv_path_install 2498 else 2499 # As a last resort, use the slow shell script. Don't cache a 2500 # value for INSTALL within a source directory, because that will 2501 # break other packages using the cache if that directory is 2502 # removed, or if the value is a relative name. 2503 INSTALL=$ac_install_sh 2504 fi 2505fi 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2507$as_echo "$INSTALL" >&6; } 2508 2509# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2510# It thinks the first close brace ends the variable substitution. 2511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2512 2513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2514 2515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2518$as_echo_n "checking whether build environment is sane... " >&6; } 2519# Just in case 2520sleep 1 2521echo timestamp > conftest.file 2522# Reject unsafe characters in $srcdir or the absolute working directory 2523# name. Accept space and tab only in the latter. 2524am_lf=' 2525' 2526case `pwd` in 2527 *[\\\"\#\$\&\'\`$am_lf]*) 2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2529esac 2530case $srcdir in 2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2532 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2533esac 2534 2535# Do `set' in a subshell so we don't clobber the current shell's 2536# arguments. Must try -L first in case configure is actually a 2537# symlink; some systems play weird games with the mod time of symlinks 2538# (eg FreeBSD returns the mod time of the symlink's containing 2539# directory). 2540if ( 2541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2542 if test "$*" = "X"; then 2543 # -L didn't work. 2544 set X `ls -t "$srcdir/configure" conftest.file` 2545 fi 2546 rm -f conftest.file 2547 if test "$*" != "X $srcdir/configure conftest.file" \ 2548 && test "$*" != "X conftest.file $srcdir/configure"; then 2549 2550 # If neither matched, then we have a broken ls. This can happen 2551 # if, for instance, CONFIG_SHELL is bash and it inherits a 2552 # broken ls alias from the environment. This has actually 2553 # happened. Such a system could not be considered "sane". 2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2555alias in your environment" "$LINENO" 5 2556 fi 2557 2558 test "$2" = conftest.file 2559 ) 2560then 2561 # Ok. 2562 : 2563else 2564 as_fn_error $? "newly created file is older than distributed files! 2565Check your system clock" "$LINENO" 5 2566fi 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2568$as_echo "yes" >&6; } 2569test "$program_prefix" != NONE && 2570 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2571# Use a double $ so make ignores it. 2572test "$program_suffix" != NONE && 2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2574# Double any \ or $. 2575# By default was `s,x,x', remove it if useless. 2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2578 2579# expand $ac_aux_dir to an absolute path 2580am_aux_dir=`cd $ac_aux_dir && pwd` 2581 2582if test x"${MISSING+set}" != xset; then 2583 case $am_aux_dir in 2584 *\ * | *\ *) 2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2586 *) 2587 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2588 esac 2589fi 2590# Use eval to expand $SHELL 2591if eval "$MISSING --run true"; then 2592 am_missing_run="$MISSING --run " 2593else 2594 am_missing_run= 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2596$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2597fi 2598 2599if test x"${install_sh}" != xset; then 2600 case $am_aux_dir in 2601 *\ * | *\ *) 2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2603 *) 2604 install_sh="\${SHELL} $am_aux_dir/install-sh" 2605 esac 2606fi 2607 2608# Installed binaries are usually stripped using `strip' when the user 2609# run `make install-strip'. However `strip' might not be the right 2610# tool to use in cross-compilation environments, therefore Automake 2611# will honor the `STRIP' environment variable to overrule this program. 2612if test "$cross_compiling" != no; then 2613 if test -n "$ac_tool_prefix"; then 2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2615set dummy ${ac_tool_prefix}strip; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if ${ac_cv_prog_STRIP+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$STRIP"; then 2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641STRIP=$ac_cv_prog_STRIP 2642if test -n "$STRIP"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2644$as_echo "$STRIP" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 2651fi 2652if test -z "$ac_cv_prog_STRIP"; then 2653 ac_ct_STRIP=$STRIP 2654 # Extract the first word of "strip", so it can be a program name with args. 2655set dummy strip; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$ac_ct_STRIP"; then 2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2671 ac_cv_prog_ac_ct_STRIP="strip" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2682if test -n "$ac_ct_STRIP"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2684$as_echo "$ac_ct_STRIP" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 if test "x$ac_ct_STRIP" = x; then 2691 STRIP=":" 2692 else 2693 case $cross_compiling:$ac_tool_warned in 2694yes:) 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2697ac_tool_warned=yes ;; 2698esac 2699 STRIP=$ac_ct_STRIP 2700 fi 2701else 2702 STRIP="$ac_cv_prog_STRIP" 2703fi 2704 2705fi 2706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2710if test -z "$MKDIR_P"; then 2711 if ${ac_cv_path_mkdir+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_prog in mkdir gmkdir; do 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2723 'mkdir (GNU coreutils) '* | \ 2724 'mkdir (coreutils) '* | \ 2725 'mkdir (fileutils) '4.1*) 2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2727 break 3;; 2728 esac 2729 done 2730 done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735 2736 test -d ./--version && rmdir ./--version 2737 if test "${ac_cv_path_mkdir+set}" = set; then 2738 MKDIR_P="$ac_cv_path_mkdir -p" 2739 else 2740 # As a last resort, use the slow shell script. Don't cache a 2741 # value for MKDIR_P within a source directory, because that will 2742 # break other packages using the cache if that directory is 2743 # removed, or if the value is a relative name. 2744 MKDIR_P="$ac_install_sh -d" 2745 fi 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2748$as_echo "$MKDIR_P" >&6; } 2749 2750mkdir_p="$MKDIR_P" 2751case $mkdir_p in 2752 [\\/$]* | ?:[\\/]*) ;; 2753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2754esac 2755 2756for ac_prog in gawk mawk nawk awk 2757do 2758 # Extract the first word of "$ac_prog", so it can be a program name with args. 2759set dummy $ac_prog; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if ${ac_cv_prog_AWK+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$AWK"; then 2766 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2767else 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2775 ac_cv_prog_AWK="$ac_prog" 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785AWK=$ac_cv_prog_AWK 2786if test -n "$AWK"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2788$as_echo "$AWK" >&6; } 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792fi 2793 2794 2795 test -n "$AWK" && break 2796done 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2799$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2800set x ${MAKE-make} 2801ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2802if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 cat >conftest.make <<\_ACEOF 2806SHELL = /bin/sh 2807all: 2808 @echo '@@@%%%=$(MAKE)=@@@%%%' 2809_ACEOF 2810# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2811case `${MAKE-make} -f conftest.make 2>/dev/null` in 2812 *@@@%%%=?*=@@@%%%*) 2813 eval ac_cv_prog_make_${ac_make}_set=yes;; 2814 *) 2815 eval ac_cv_prog_make_${ac_make}_set=no;; 2816esac 2817rm -f conftest.make 2818fi 2819if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2821$as_echo "yes" >&6; } 2822 SET_MAKE= 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826 SET_MAKE="MAKE=${MAKE-make}" 2827fi 2828 2829rm -rf .tst 2>/dev/null 2830mkdir .tst 2>/dev/null 2831if test -d .tst; then 2832 am__leading_dot=. 2833else 2834 am__leading_dot=_ 2835fi 2836rmdir .tst 2>/dev/null 2837 2838if test "`cd $srcdir && pwd`" != "`pwd`"; then 2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2840 # is not polluted with repeated "-I." 2841 am__isrc=' -I$(srcdir)' 2842 # test to see if srcdir already configured 2843 if test -f $srcdir/config.status; then 2844 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2845 fi 2846fi 2847 2848# test whether we have cygpath 2849if test -z "$CYGPATH_W"; then 2850 if (cygpath --version) >/dev/null 2>/dev/null; then 2851 CYGPATH_W='cygpath -w' 2852 else 2853 CYGPATH_W=echo 2854 fi 2855fi 2856 2857 2858# Define the identity of the package. 2859 PACKAGE='libdaemon' 2860 VERSION='0.14' 2861 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE "$PACKAGE" 2865_ACEOF 2866 2867 2868cat >>confdefs.h <<_ACEOF 2869#define VERSION "$VERSION" 2870_ACEOF 2871 2872# Some tools Automake needs. 2873 2874ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2875 2876 2877AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2878 2879 2880AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2881 2882 2883AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2884 2885 2886MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2887 2888# We need awk for the "check" target. The system "awk" is bad on 2889# some platforms. 2890# Always define AMTAR for backward compatibility. Yes, it's still used 2891# in the wild :-( We should find a proper way to deprecate it ... 2892AMTAR='$${TAR-tar}' 2893 2894am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2895 2896 2897 2898 2899 2900 2901PACKAGE_URL=http://0pointer.de/lennart/projects/libdaemon/ 2902 2903 2904LIBDAEMON_VERSION_INFO=5:0:5 2905 2906 2907if type -p stow > /dev/null && test -d /usr/local/stow ; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 2909$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} 2910 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" 2911fi 2912 2913# Check whether --enable-silent-rules was given. 2914if test "${enable_silent_rules+set}" = set; then : 2915 enableval=$enable_silent_rules; 2916fi 2917 2918case $enable_silent_rules in 2919yes) AM_DEFAULT_VERBOSITY=0;; 2920no) AM_DEFAULT_VERBOSITY=1;; 2921*) AM_DEFAULT_VERBOSITY=0;; 2922esac 2923am_make=${MAKE-make} 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2925$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2926if ${am_cv_make_support_nested_variables+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 if $as_echo 'TRUE=$(BAR$(V)) 2930BAR0=false 2931BAR1=true 2932V=1 2933am__doit: 2934 @$(TRUE) 2935.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2936 am_cv_make_support_nested_variables=yes 2937else 2938 am_cv_make_support_nested_variables=no 2939fi 2940fi 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2942$as_echo "$am_cv_make_support_nested_variables" >&6; } 2943if test $am_cv_make_support_nested_variables = yes; then 2944 AM_V='$(V)' 2945 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2946else 2947 AM_V=$AM_DEFAULT_VERBOSITY 2948 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2949fi 2950AM_BACKSLASH='\' 2951 2952 2953# Checks for programs. 2954ac_ext=c 2955ac_cpp='$CPP $CPPFLAGS' 2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2958ac_compiler_gnu=$ac_cv_c_compiler_gnu 2959if test -n "$ac_tool_prefix"; then 2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2961set dummy ${ac_tool_prefix}gcc; ac_word=$2 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2963$as_echo_n "checking for $ac_word... " >&6; } 2964if ${ac_cv_prog_CC+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 if test -n "$CC"; then 2968 ac_cv_prog_CC="$CC" # Let the user override the test. 2969else 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2977 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982 done 2983IFS=$as_save_IFS 2984 2985fi 2986fi 2987CC=$ac_cv_prog_CC 2988if test -n "$CC"; then 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2990$as_echo "$CC" >&6; } 2991else 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2993$as_echo "no" >&6; } 2994fi 2995 2996 2997fi 2998if test -z "$ac_cv_prog_CC"; then 2999 ac_ct_CC=$CC 3000 # Extract the first word of "gcc", so it can be a program name with args. 3001set dummy gcc; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_ac_ct_CC+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$ac_ct_CC"; then 3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3009else 3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3011for as_dir in $PATH 3012do 3013 IFS=$as_save_IFS 3014 test -z "$as_dir" && as_dir=. 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3017 ac_cv_prog_ac_ct_CC="gcc" 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026fi 3027ac_ct_CC=$ac_cv_prog_ac_ct_CC 3028if test -n "$ac_ct_CC"; then 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3030$as_echo "$ac_ct_CC" >&6; } 3031else 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034fi 3035 3036 if test "x$ac_ct_CC" = x; then 3037 CC="" 3038 else 3039 case $cross_compiling:$ac_tool_warned in 3040yes:) 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3043ac_tool_warned=yes ;; 3044esac 3045 CC=$ac_ct_CC 3046 fi 3047else 3048 CC="$ac_cv_prog_CC" 3049fi 3050 3051if test -z "$CC"; then 3052 if test -n "$ac_tool_prefix"; then 3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3054set dummy ${ac_tool_prefix}cc; ac_word=$2 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056$as_echo_n "checking for $ac_word... " >&6; } 3057if ${ac_cv_prog_CC+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 if test -n "$CC"; then 3061 ac_cv_prog_CC="$CC" # Let the user override the test. 3062else 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3070 ac_cv_prog_CC="${ac_tool_prefix}cc" 3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3072 break 2 3073 fi 3074done 3075 done 3076IFS=$as_save_IFS 3077 3078fi 3079fi 3080CC=$ac_cv_prog_CC 3081if test -n "$CC"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3083$as_echo "$CC" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 3090 fi 3091fi 3092if test -z "$CC"; then 3093 # Extract the first word of "cc", so it can be a program name with args. 3094set dummy cc; ac_word=$2 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096$as_echo_n "checking for $ac_word... " >&6; } 3097if ${ac_cv_prog_CC+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102else 3103 ac_prog_rejected=no 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3112 ac_prog_rejected=yes 3113 continue 3114 fi 3115 ac_cv_prog_CC="cc" 3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120 done 3121IFS=$as_save_IFS 3122 3123if test $ac_prog_rejected = yes; then 3124 # We found a bogon in the path, so make sure we never use it. 3125 set dummy $ac_cv_prog_CC 3126 shift 3127 if test $# != 0; then 3128 # We chose a different compiler from the bogus one. 3129 # However, it has the same basename, so the bogon will be chosen 3130 # first if we set CC to just the basename; use the full file name. 3131 shift 3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3133 fi 3134fi 3135fi 3136fi 3137CC=$ac_cv_prog_CC 3138if test -n "$CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3140$as_echo "$CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 3147fi 3148if test -z "$CC"; then 3149 if test -n "$ac_tool_prefix"; then 3150 for ac_prog in cl.exe 3151 do 3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3153set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3155$as_echo_n "checking for $ac_word... " >&6; } 3156if ${ac_cv_prog_CC+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 if test -n "$CC"; then 3160 ac_cv_prog_CC="$CC" # Let the user override the test. 3161else 3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in $PATH 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3171 break 2 3172 fi 3173done 3174 done 3175IFS=$as_save_IFS 3176 3177fi 3178fi 3179CC=$ac_cv_prog_CC 3180if test -n "$CC"; then 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3182$as_echo "$CC" >&6; } 3183else 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186fi 3187 3188 3189 test -n "$CC" && break 3190 done 3191fi 3192if test -z "$CC"; then 3193 ac_ct_CC=$CC 3194 for ac_prog in cl.exe 3195do 3196 # Extract the first word of "$ac_prog", so it can be a program name with args. 3197set dummy $ac_prog; ac_word=$2 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3199$as_echo_n "checking for $ac_word... " >&6; } 3200if ${ac_cv_prog_ac_ct_CC+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 if test -n "$ac_ct_CC"; then 3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3205else 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 test -z "$as_dir" && as_dir=. 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3213 ac_cv_prog_ac_ct_CC="$ac_prog" 3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3215 break 2 3216 fi 3217done 3218 done 3219IFS=$as_save_IFS 3220 3221fi 3222fi 3223ac_ct_CC=$ac_cv_prog_ac_ct_CC 3224if test -n "$ac_ct_CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3226$as_echo "$ac_ct_CC" >&6; } 3227else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229$as_echo "no" >&6; } 3230fi 3231 3232 3233 test -n "$ac_ct_CC" && break 3234done 3235 3236 if test "x$ac_ct_CC" = x; then 3237 CC="" 3238 else 3239 case $cross_compiling:$ac_tool_warned in 3240yes:) 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3243ac_tool_warned=yes ;; 3244esac 3245 CC=$ac_ct_CC 3246 fi 3247fi 3248 3249fi 3250 3251 3252test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3254as_fn_error $? "no acceptable C compiler found in \$PATH 3255See \`config.log' for more details" "$LINENO" 5; } 3256 3257# Provide some information about the compiler. 3258$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3259set X $ac_compile 3260ac_compiler=$2 3261for ac_option in --version -v -V -qversion; do 3262 { { ac_try="$ac_compiler $ac_option >&5" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3268$as_echo "$ac_try_echo"; } >&5 3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3270 ac_status=$? 3271 if test -s conftest.err; then 3272 sed '10a\ 3273... rest of stderr output deleted ... 3274 10q' conftest.err >conftest.er1 3275 cat conftest.er1 >&5 3276 fi 3277 rm -f conftest.er1 conftest.err 3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; } 3280done 3281 3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283/* end confdefs.h. */ 3284 3285int 3286main () 3287{ 3288 3289 ; 3290 return 0; 3291} 3292_ACEOF 3293ac_clean_files_save=$ac_clean_files 3294ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3295# Try to create an executable without -o first, disregard a.out. 3296# It will help us diagnose broken compilers, and finding out an intuition 3297# of exeext. 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3299$as_echo_n "checking whether the C compiler works... " >&6; } 3300ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3301 3302# The possible output files: 3303ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3304 3305ac_rmfiles= 3306for ac_file in $ac_files 3307do 3308 case $ac_file in 3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3311 esac 3312done 3313rm -f $ac_rmfiles 3314 3315if { { ac_try="$ac_link_default" 3316case "(($ac_try" in 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3318 *) ac_try_echo=$ac_try;; 3319esac 3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3321$as_echo "$ac_try_echo"; } >&5 3322 (eval "$ac_link_default") 2>&5 3323 ac_status=$? 3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3325 test $ac_status = 0; }; then : 3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3327# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3328# in a Makefile. We should not override ac_cv_exeext if it was cached, 3329# so that the user can short-circuit this test for compilers unknown to 3330# Autoconf. 3331for ac_file in $ac_files '' 3332do 3333 test -f "$ac_file" || continue 3334 case $ac_file in 3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3336 ;; 3337 [ab].out ) 3338 # We found the default executable, but exeext='' is most 3339 # certainly right. 3340 break;; 3341 *.* ) 3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3343 then :; else 3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3345 fi 3346 # We set ac_cv_exeext here because the later test for it is not 3347 # safe: cross compilers may not add the suffix if given an `-o' 3348 # argument, so we may need to know it at that point already. 3349 # Even if this section looks crufty: it has the advantage of 3350 # actually working. 3351 break;; 3352 * ) 3353 break;; 3354 esac 3355done 3356test "$ac_cv_exeext" = no && ac_cv_exeext= 3357 3358else 3359 ac_file='' 3360fi 3361if test -z "$ac_file"; then : 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363$as_echo "no" >&6; } 3364$as_echo "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3369as_fn_error 77 "C compiler cannot create executables 3370See \`config.log' for more details" "$LINENO" 5; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3373$as_echo "yes" >&6; } 3374fi 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3376$as_echo_n "checking for C compiler default output file name... " >&6; } 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3378$as_echo "$ac_file" >&6; } 3379ac_exeext=$ac_cv_exeext 3380 3381rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3382ac_clean_files=$ac_clean_files_save 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3384$as_echo_n "checking for suffix of executables... " >&6; } 3385if { { ac_try="$ac_link" 3386case "(($ac_try" in 3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3388 *) ac_try_echo=$ac_try;; 3389esac 3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3391$as_echo "$ac_try_echo"; } >&5 3392 (eval "$ac_link") 2>&5 3393 ac_status=$? 3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3395 test $ac_status = 0; }; then : 3396 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3398# work properly (i.e., refer to `conftest.exe'), while it won't with 3399# `rm'. 3400for ac_file in conftest.exe conftest conftest.*; do 3401 test -f "$ac_file" || continue 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3405 break;; 3406 * ) break;; 3407 esac 3408done 3409else 3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3412as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3413See \`config.log' for more details" "$LINENO" 5; } 3414fi 3415rm -f conftest conftest$ac_cv_exeext 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3417$as_echo "$ac_cv_exeext" >&6; } 3418 3419rm -f conftest.$ac_ext 3420EXEEXT=$ac_cv_exeext 3421ac_exeext=$EXEEXT 3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424#include <stdio.h> 3425int 3426main () 3427{ 3428FILE *f = fopen ("conftest.out", "w"); 3429 return ferror (f) || fclose (f) != 0; 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435ac_clean_files="$ac_clean_files conftest.out" 3436# Check that the compiler produces executables we can run. If not, either 3437# the compiler is broken, or we cross compile. 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3439$as_echo_n "checking whether we are cross compiling... " >&6; } 3440if test "$cross_compiling" != yes; then 3441 { { ac_try="$ac_link" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3447$as_echo "$ac_try_echo"; } >&5 3448 (eval "$ac_link") 2>&5 3449 ac_status=$? 3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3451 test $ac_status = 0; } 3452 if { ac_try='./conftest$ac_cv_exeext' 3453 { { case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3458$as_echo "$ac_try_echo"; } >&5 3459 (eval "$ac_try") 2>&5 3460 ac_status=$? 3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3462 test $ac_status = 0; }; }; then 3463 cross_compiling=no 3464 else 3465 if test "$cross_compiling" = maybe; then 3466 cross_compiling=yes 3467 else 3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error $? "cannot run C compiled programs. 3471If you meant to cross compile, use \`--host'. 3472See \`config.log' for more details" "$LINENO" 5; } 3473 fi 3474 fi 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3477$as_echo "$cross_compiling" >&6; } 3478 3479rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3480ac_clean_files=$ac_clean_files_save 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3482$as_echo_n "checking for suffix of object files... " >&6; } 3483if ${ac_cv_objext+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485else 3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487/* end confdefs.h. */ 3488 3489int 3490main () 3491{ 3492 3493 ; 3494 return 0; 3495} 3496_ACEOF 3497rm -f conftest.o conftest.obj 3498if { { ac_try="$ac_compile" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3504$as_echo "$ac_try_echo"; } >&5 3505 (eval "$ac_compile") 2>&5 3506 ac_status=$? 3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3508 test $ac_status = 0; }; then : 3509 for ac_file in conftest.o conftest.obj conftest.*; do 3510 test -f "$ac_file" || continue; 3511 case $ac_file in 3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3514 break;; 3515 esac 3516done 3517else 3518 $as_echo "$as_me: failed program was:" >&5 3519sed 's/^/| /' conftest.$ac_ext >&5 3520 3521{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3523as_fn_error $? "cannot compute suffix of object files: cannot compile 3524See \`config.log' for more details" "$LINENO" 5; } 3525fi 3526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3529$as_echo "$ac_cv_objext" >&6; } 3530OBJEXT=$ac_cv_objext 3531ac_objext=$OBJEXT 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3533$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3534if ${ac_cv_c_compiler_gnu+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543#ifndef __GNUC__ 3544 choke me 3545#endif 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551if ac_fn_c_try_compile "$LINENO"; then : 3552 ac_compiler_gnu=yes 3553else 3554 ac_compiler_gnu=no 3555fi 3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3557ac_cv_c_compiler_gnu=$ac_compiler_gnu 3558 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3561$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3562if test $ac_compiler_gnu = yes; then 3563 GCC=yes 3564else 3565 GCC= 3566fi 3567ac_test_CFLAGS=${CFLAGS+set} 3568ac_save_CFLAGS=$CFLAGS 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3570$as_echo_n "checking whether $CC accepts -g... " >&6; } 3571if ${ac_cv_prog_cc_g+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 ac_save_c_werror_flag=$ac_c_werror_flag 3575 ac_c_werror_flag=yes 3576 ac_cv_prog_cc_g=no 3577 CFLAGS="-g" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO"; then : 3590 ac_cv_prog_cc_g=yes 3591else 3592 CFLAGS="" 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595 3596int 3597main () 3598{ 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604if ac_fn_c_try_compile "$LINENO"; then : 3605 3606else 3607 ac_c_werror_flag=$ac_save_c_werror_flag 3608 CFLAGS="-g" 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3610/* end confdefs.h. */ 3611 3612int 3613main () 3614{ 3615 3616 ; 3617 return 0; 3618} 3619_ACEOF 3620if ac_fn_c_try_compile "$LINENO"; then : 3621 ac_cv_prog_cc_g=yes 3622fi 3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3624fi 3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3626fi 3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3628 ac_c_werror_flag=$ac_save_c_werror_flag 3629fi 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3631$as_echo "$ac_cv_prog_cc_g" >&6; } 3632if test "$ac_test_CFLAGS" = set; then 3633 CFLAGS=$ac_save_CFLAGS 3634elif test $ac_cv_prog_cc_g = yes; then 3635 if test "$GCC" = yes; then 3636 CFLAGS="-g -O2" 3637 else 3638 CFLAGS="-g" 3639 fi 3640else 3641 if test "$GCC" = yes; then 3642 CFLAGS="-O2" 3643 else 3644 CFLAGS= 3645 fi 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3648$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3649if ${ac_cv_prog_cc_c89+:} false; then : 3650 $as_echo_n "(cached) " >&6 3651else 3652 ac_cv_prog_cc_c89=no 3653ac_save_CC=$CC 3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656#include <stdarg.h> 3657#include <stdio.h> 3658#include <sys/types.h> 3659#include <sys/stat.h> 3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3661struct buf { int x; }; 3662FILE * (*rcsopen) (struct buf *, struct stat *, int); 3663static char *e (p, i) 3664 char **p; 3665 int i; 3666{ 3667 return p[i]; 3668} 3669static char *f (char * (*g) (char **, int), char **p, ...) 3670{ 3671 char *s; 3672 va_list v; 3673 va_start (v,p); 3674 s = g (p, va_arg (v,int)); 3675 va_end (v); 3676 return s; 3677} 3678 3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3680 function prototypes and stuff, but not '\xHH' hex character constants. 3681 These don't provoke an error unfortunately, instead are silently treated 3682 as 'x'. The following induces an error, until -std is added to get 3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3684 array size at least. It's necessary to write '\x00'==0 to get something 3685 that's true only with -std. */ 3686int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3687 3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3689 inside strings and character constants. */ 3690#define FOO(x) 'x' 3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3692 3693int test (int i, double x); 3694struct s1 {int (*f) (int a);}; 3695struct s2 {int (*f) (double a);}; 3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3697int argc; 3698char **argv; 3699int 3700main () 3701{ 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3709do 3710 CC="$ac_save_CC $ac_arg" 3711 if ac_fn_c_try_compile "$LINENO"; then : 3712 ac_cv_prog_cc_c89=$ac_arg 3713fi 3714rm -f core conftest.err conftest.$ac_objext 3715 test "x$ac_cv_prog_cc_c89" != "xno" && break 3716done 3717rm -f conftest.$ac_ext 3718CC=$ac_save_CC 3719 3720fi 3721# AC_CACHE_VAL 3722case "x$ac_cv_prog_cc_c89" in 3723 x) 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3725$as_echo "none needed" >&6; } ;; 3726 xno) 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3728$as_echo "unsupported" >&6; } ;; 3729 *) 3730 CC="$CC $ac_cv_prog_cc_c89" 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3733esac 3734if test "x$ac_cv_prog_cc_c89" != xno; then : 3735 3736fi 3737 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743DEPDIR="${am__leading_dot}deps" 3744 3745ac_config_commands="$ac_config_commands depfiles" 3746 3747 3748am_make=${MAKE-make} 3749cat > confinc << 'END' 3750am__doit: 3751 @echo this is the am__doit target 3752.PHONY: am__doit 3753END 3754# If we don't find an include directive, just comment out the code. 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3756$as_echo_n "checking for style of include used by $am_make... " >&6; } 3757am__include="#" 3758am__quote= 3759_am_result=none 3760# First try GNU make style include. 3761echo "include confinc" > confmf 3762# Ignore all kinds of additional output from `make'. 3763case `$am_make -s -f confmf 2> /dev/null` in #( 3764*the\ am__doit\ target*) 3765 am__include=include 3766 am__quote= 3767 _am_result=GNU 3768 ;; 3769esac 3770# Now try BSD make style include. 3771if test "$am__include" = "#"; then 3772 echo '.include "confinc"' > confmf 3773 case `$am_make -s -f confmf 2> /dev/null` in #( 3774 *the\ am__doit\ target*) 3775 am__include=.include 3776 am__quote="\"" 3777 _am_result=BSD 3778 ;; 3779 esac 3780fi 3781 3782 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3784$as_echo "$_am_result" >&6; } 3785rm -f confinc confmf 3786 3787# Check whether --enable-dependency-tracking was given. 3788if test "${enable_dependency_tracking+set}" = set; then : 3789 enableval=$enable_dependency_tracking; 3790fi 3791 3792if test "x$enable_dependency_tracking" != xno; then 3793 am_depcomp="$ac_aux_dir/depcomp" 3794 AMDEPBACKSLASH='\' 3795 am__nodep='_no' 3796fi 3797 if test "x$enable_dependency_tracking" != xno; then 3798 AMDEP_TRUE= 3799 AMDEP_FALSE='#' 3800else 3801 AMDEP_TRUE='#' 3802 AMDEP_FALSE= 3803fi 3804 3805 3806 3807depcc="$CC" am_compiler_list= 3808 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3810$as_echo_n "checking dependency style of $depcc... " >&6; } 3811if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813else 3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3815 # We make a subdir and do the tests there. Otherwise we can end up 3816 # making bogus files that we don't know about and never remove. For 3817 # instance it was reported that on HP-UX the gcc test will end up 3818 # making a dummy file named `D' -- because `-MD' means `put the output 3819 # in D'. 3820 rm -rf conftest.dir 3821 mkdir conftest.dir 3822 # Copy depcomp to subdir because otherwise we won't find it if we're 3823 # using a relative directory. 3824 cp "$am_depcomp" conftest.dir 3825 cd conftest.dir 3826 # We will build objects and dependencies in a subdirectory because 3827 # it helps to detect inapplicable dependency modes. For instance 3828 # both Tru64's cc and ICC support -MD to output dependencies as a 3829 # side effect of compilation, but ICC will put the dependencies in 3830 # the current directory while Tru64 will put them in the object 3831 # directory. 3832 mkdir sub 3833 3834 am_cv_CC_dependencies_compiler_type=none 3835 if test "$am_compiler_list" = ""; then 3836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3837 fi 3838 am__universal=false 3839 case " $depcc " in #( 3840 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3841 esac 3842 3843 for depmode in $am_compiler_list; do 3844 # Setup a source with many dependencies, because some compilers 3845 # like to wrap large dependency lists on column 80 (with \), and 3846 # we should not choose a depcomp mode which is confused by this. 3847 # 3848 # We need to recreate these files for each test, as the compiler may 3849 # overwrite some of them when testing with obscure command lines. 3850 # This happens at least with the AIX C compiler. 3851 : > sub/conftest.c 3852 for i in 1 2 3 4 5 6; do 3853 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3854 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3855 # Solaris 8's {/usr,}/bin/sh. 3856 touch sub/conftst$i.h 3857 done 3858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3859 3860 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3861 # mode. It turns out that the SunPro C++ compiler does not properly 3862 # handle `-M -o', and we need to detect this. Also, some Intel 3863 # versions had trouble with output in subdirs 3864 am__obj=sub/conftest.${OBJEXT-o} 3865 am__minus_obj="-o $am__obj" 3866 case $depmode in 3867 gcc) 3868 # This depmode causes a compiler race in universal mode. 3869 test "$am__universal" = false || continue 3870 ;; 3871 nosideeffect) 3872 # after this tag, mechanisms are not by side-effect, so they'll 3873 # only be used when explicitly requested 3874 if test "x$enable_dependency_tracking" = xyes; then 3875 continue 3876 else 3877 break 3878 fi 3879 ;; 3880 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3881 # This compiler won't grok `-c -o', but also, the minuso test has 3882 # not run yet. These depmodes are late enough in the game, and 3883 # so weak that their functioning should not be impacted. 3884 am__obj=conftest.${OBJEXT-o} 3885 am__minus_obj= 3886 ;; 3887 none) break ;; 3888 esac 3889 if depmode=$depmode \ 3890 source=sub/conftest.c object=$am__obj \ 3891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3893 >/dev/null 2>conftest.err && 3894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3898 # icc doesn't choke on unknown options, it will just issue warnings 3899 # or remarks (even with -Werror). So we grep stderr for any message 3900 # that says an option was ignored or not supported. 3901 # When given -MP, icc 7.0 and 7.1 complain thusly: 3902 # icc: Command line warning: ignoring option '-M'; no argument required 3903 # The diagnosis changed in icc 8.0: 3904 # icc: Command line remark: option '-MP' not supported 3905 if (grep 'ignoring option' conftest.err || 3906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3907 am_cv_CC_dependencies_compiler_type=$depmode 3908 break 3909 fi 3910 fi 3911 done 3912 3913 cd .. 3914 rm -rf conftest.dir 3915else 3916 am_cv_CC_dependencies_compiler_type=none 3917fi 3918 3919fi 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3921$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3922CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3923 3924 if 3925 test "x$enable_dependency_tracking" != xno \ 3926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3927 am__fastdepCC_TRUE= 3928 am__fastdepCC_FALSE='#' 3929else 3930 am__fastdepCC_TRUE='#' 3931 am__fastdepCC_FALSE= 3932fi 3933 3934 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3936$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3937if ${ac_cv_prog_cc_c99+:} false; then : 3938 $as_echo_n "(cached) " >&6 3939else 3940 ac_cv_prog_cc_c99=no 3941ac_save_CC=$CC 3942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3943/* end confdefs.h. */ 3944#include <stdarg.h> 3945#include <stdbool.h> 3946#include <stdlib.h> 3947#include <wchar.h> 3948#include <stdio.h> 3949 3950// Check varargs macros. These examples are taken from C99 6.10.3.5. 3951#define debug(...) fprintf (stderr, __VA_ARGS__) 3952#define showlist(...) puts (#__VA_ARGS__) 3953#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3954static void 3955test_varargs_macros (void) 3956{ 3957 int x = 1234; 3958 int y = 5678; 3959 debug ("Flag"); 3960 debug ("X = %d\n", x); 3961 showlist (The first, second, and third items.); 3962 report (x>y, "x is %d but y is %d", x, y); 3963} 3964 3965// Check long long types. 3966#define BIG64 18446744073709551615ull 3967#define BIG32 4294967295ul 3968#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3969#if !BIG_OK 3970 your preprocessor is broken; 3971#endif 3972#if BIG_OK 3973#else 3974 your preprocessor is broken; 3975#endif 3976static long long int bignum = -9223372036854775807LL; 3977static unsigned long long int ubignum = BIG64; 3978 3979struct incomplete_array 3980{ 3981 int datasize; 3982 double data[]; 3983}; 3984 3985struct named_init { 3986 int number; 3987 const wchar_t *name; 3988 double average; 3989}; 3990 3991typedef const char *ccp; 3992 3993static inline int 3994test_restrict (ccp restrict text) 3995{ 3996 // See if C++-style comments work. 3997 // Iterate through items via the restricted pointer. 3998 // Also check for declarations in for loops. 3999 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4000 continue; 4001 return 0; 4002} 4003 4004// Check varargs and va_copy. 4005static void 4006test_varargs (const char *format, ...) 4007{ 4008 va_list args; 4009 va_start (args, format); 4010 va_list args_copy; 4011 va_copy (args_copy, args); 4012 4013 const char *str; 4014 int number; 4015 float fnumber; 4016 4017 while (*format) 4018 { 4019 switch (*format++) 4020 { 4021 case 's': // string 4022 str = va_arg (args_copy, const char *); 4023 break; 4024 case 'd': // int 4025 number = va_arg (args_copy, int); 4026 break; 4027 case 'f': // float 4028 fnumber = va_arg (args_copy, double); 4029 break; 4030 default: 4031 break; 4032 } 4033 } 4034 va_end (args_copy); 4035 va_end (args); 4036} 4037 4038int 4039main () 4040{ 4041 4042 // Check bool. 4043 _Bool success = false; 4044 4045 // Check restrict. 4046 if (test_restrict ("String literal") == 0) 4047 success = true; 4048 char *restrict newvar = "Another string"; 4049 4050 // Check varargs. 4051 test_varargs ("s, d' f .", "string", 65, 34.234); 4052 test_varargs_macros (); 4053 4054 // Check flexible array members. 4055 struct incomplete_array *ia = 4056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4057 ia->datasize = 10; 4058 for (int i = 0; i < ia->datasize; ++i) 4059 ia->data[i] = i * 1.234; 4060 4061 // Check named initializers. 4062 struct named_init ni = { 4063 .number = 34, 4064 .name = L"Test wide string", 4065 .average = 543.34343, 4066 }; 4067 4068 ni.number = 58; 4069 4070 int dynamic_array[ni.number]; 4071 dynamic_array[ni.number - 1] = 543; 4072 4073 // work around unused variable warnings 4074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4075 || dynamic_array[ni.number - 1] != 543); 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4082do 4083 CC="$ac_save_CC $ac_arg" 4084 if ac_fn_c_try_compile "$LINENO"; then : 4085 ac_cv_prog_cc_c99=$ac_arg 4086fi 4087rm -f core conftest.err conftest.$ac_objext 4088 test "x$ac_cv_prog_cc_c99" != "xno" && break 4089done 4090rm -f conftest.$ac_ext 4091CC=$ac_save_CC 4092 4093fi 4094# AC_CACHE_VAL 4095case "x$ac_cv_prog_cc_c99" in 4096 x) 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4098$as_echo "none needed" >&6; } ;; 4099 xno) 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4101$as_echo "unsupported" >&6; } ;; 4102 *) 4103 CC="$CC $ac_cv_prog_cc_c99" 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4105$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4106esac 4107if test "x$ac_cv_prog_cc_c99" != xno; then : 4108 4109fi 4110 4111 if test "x$CC" != xcc; then 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4113$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4114else 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4116$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4117fi 4118set dummy $CC; ac_cc=`$as_echo "$2" | 4119 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4120if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134# Make sure it works both with $CC and with simple cc. 4135# We do the test twice because some compilers refuse to overwrite an 4136# existing .o file with -o, though they will create one. 4137ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4138rm -f conftest2.* 4139if { { case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4144$as_echo "$ac_try_echo"; } >&5 4145 (eval "$ac_try") 2>&5 4146 ac_status=$? 4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4148 test $ac_status = 0; } && 4149 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4151 *) ac_try_echo=$ac_try;; 4152esac 4153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4154$as_echo "$ac_try_echo"; } >&5 4155 (eval "$ac_try") 2>&5 4156 ac_status=$? 4157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4158 test $ac_status = 0; }; 4159then 4160 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4161 if test "x$CC" != xcc; then 4162 # Test first that cc exists at all. 4163 if { ac_try='cc -c conftest.$ac_ext >&5' 4164 { { case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4169$as_echo "$ac_try_echo"; } >&5 4170 (eval "$ac_try") 2>&5 4171 ac_status=$? 4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4173 test $ac_status = 0; }; }; then 4174 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4175 rm -f conftest2.* 4176 if { { case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4181$as_echo "$ac_try_echo"; } >&5 4182 (eval "$ac_try") 2>&5 4183 ac_status=$? 4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4185 test $ac_status = 0; } && 4186 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4188 *) ac_try_echo=$ac_try;; 4189esac 4190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4191$as_echo "$ac_try_echo"; } >&5 4192 (eval "$ac_try") 2>&5 4193 ac_status=$? 4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4195 test $ac_status = 0; }; 4196 then 4197 # cc works too. 4198 : 4199 else 4200 # cc exists but doesn't like -o. 4201 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4202 fi 4203 fi 4204 fi 4205else 4206 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4207fi 4208rm -f core conftest* 4209 4210fi 4211if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4213$as_echo "yes" >&6; } 4214else 4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4216$as_echo "no" >&6; } 4217 4218$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4219 4220fi 4221 4222# FIXME: we rely on the cache variable name because 4223# there is no other way. 4224set dummy $CC 4225am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4226eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4227if test "$am_t" != yes; then 4228 # Losing compiler, so override with the script. 4229 # FIXME: It is wrong to rewrite CC. 4230 # But if we don't then we get into trouble of one sort or another. 4231 # A longer-term fix would be to have automake use am__CC in this case, 4232 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4233 CC="$am_aux_dir/compile $CC" 4234fi 4235 4236 4237 4238 4239ac_ext=c 4240ac_cpp='$CPP $CPPFLAGS' 4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4243ac_compiler_gnu=$ac_cv_c_compiler_gnu 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4245$as_echo_n "checking how to run the C preprocessor... " >&6; } 4246# On Suns, sometimes $CPP names a directory. 4247if test -n "$CPP" && test -d "$CPP"; then 4248 CPP= 4249fi 4250if test -z "$CPP"; then 4251 if ${ac_cv_prog_CPP+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 # Double quotes because CPP needs to be expanded 4255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4256 do 4257 ac_preproc_ok=false 4258for ac_c_preproc_warn_flag in '' yes 4259do 4260 # Use a header file that comes with gcc, so configuring glibc 4261 # with a fresh cross-compiler works. 4262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4263 # <limits.h> exists even on freestanding compilers. 4264 # On the NeXT, cc -E runs the code through the compiler's parser, 4265 # not just through cpp. "Syntax error" is here to catch this case. 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268#ifdef __STDC__ 4269# include <limits.h> 4270#else 4271# include <assert.h> 4272#endif 4273 Syntax error 4274_ACEOF 4275if ac_fn_c_try_cpp "$LINENO"; then : 4276 4277else 4278 # Broken: fails on valid input. 4279continue 4280fi 4281rm -f conftest.err conftest.i conftest.$ac_ext 4282 4283 # OK, works on sane cases. Now check whether nonexistent headers 4284 # can be detected and how. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <ac_nonexistent.h> 4288_ACEOF 4289if ac_fn_c_try_cpp "$LINENO"; then : 4290 # Broken: success on invalid input. 4291continue 4292else 4293 # Passes both tests. 4294ac_preproc_ok=: 4295break 4296fi 4297rm -f conftest.err conftest.i conftest.$ac_ext 4298 4299done 4300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4301rm -f conftest.i conftest.err conftest.$ac_ext 4302if $ac_preproc_ok; then : 4303 break 4304fi 4305 4306 done 4307 ac_cv_prog_CPP=$CPP 4308 4309fi 4310 CPP=$ac_cv_prog_CPP 4311else 4312 ac_cv_prog_CPP=$CPP 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4315$as_echo "$CPP" >&6; } 4316ac_preproc_ok=false 4317for ac_c_preproc_warn_flag in '' yes 4318do 4319 # Use a header file that comes with gcc, so configuring glibc 4320 # with a fresh cross-compiler works. 4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4322 # <limits.h> exists even on freestanding compilers. 4323 # On the NeXT, cc -E runs the code through the compiler's parser, 4324 # not just through cpp. "Syntax error" is here to catch this case. 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327#ifdef __STDC__ 4328# include <limits.h> 4329#else 4330# include <assert.h> 4331#endif 4332 Syntax error 4333_ACEOF 4334if ac_fn_c_try_cpp "$LINENO"; then : 4335 4336else 4337 # Broken: fails on valid input. 4338continue 4339fi 4340rm -f conftest.err conftest.i conftest.$ac_ext 4341 4342 # OK, works on sane cases. Now check whether nonexistent headers 4343 # can be detected and how. 4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345/* end confdefs.h. */ 4346#include <ac_nonexistent.h> 4347_ACEOF 4348if ac_fn_c_try_cpp "$LINENO"; then : 4349 # Broken: success on invalid input. 4350continue 4351else 4352 # Passes both tests. 4353ac_preproc_ok=: 4354break 4355fi 4356rm -f conftest.err conftest.i conftest.$ac_ext 4357 4358done 4359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4360rm -f conftest.i conftest.err conftest.$ac_ext 4361if $ac_preproc_ok; then : 4362 4363else 4364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4366as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4367See \`config.log' for more details" "$LINENO" 5; } 4368fi 4369 4370ac_ext=c 4371ac_cpp='$CPP $CPPFLAGS' 4372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4374ac_compiler_gnu=$ac_cv_c_compiler_gnu 4375 4376 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4378$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4379if ${ac_cv_path_GREP+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 if test -z "$GREP"; then 4383 ac_path_GREP_found=false 4384 # Loop through the user's path and test for each of PROGNAME-LIST 4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4386for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4387do 4388 IFS=$as_save_IFS 4389 test -z "$as_dir" && as_dir=. 4390 for ac_prog in grep ggrep; do 4391 for ac_exec_ext in '' $ac_executable_extensions; do 4392 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4393 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4394# Check for GNU ac_path_GREP and select it if it is found. 4395 # Check for GNU $ac_path_GREP 4396case `"$ac_path_GREP" --version 2>&1` in 4397*GNU*) 4398 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4399*) 4400 ac_count=0 4401 $as_echo_n 0123456789 >"conftest.in" 4402 while : 4403 do 4404 cat "conftest.in" "conftest.in" >"conftest.tmp" 4405 mv "conftest.tmp" "conftest.in" 4406 cp "conftest.in" "conftest.nl" 4407 $as_echo 'GREP' >> "conftest.nl" 4408 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4410 as_fn_arith $ac_count + 1 && ac_count=$as_val 4411 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4412 # Best one so far, save it but keep looking for a better one 4413 ac_cv_path_GREP="$ac_path_GREP" 4414 ac_path_GREP_max=$ac_count 4415 fi 4416 # 10*(2^10) chars as input seems more than enough 4417 test $ac_count -gt 10 && break 4418 done 4419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4420esac 4421 4422 $ac_path_GREP_found && break 3 4423 done 4424 done 4425 done 4426IFS=$as_save_IFS 4427 if test -z "$ac_cv_path_GREP"; then 4428 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4429 fi 4430else 4431 ac_cv_path_GREP=$GREP 4432fi 4433 4434fi 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4436$as_echo "$ac_cv_path_GREP" >&6; } 4437 GREP="$ac_cv_path_GREP" 4438 4439 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4441$as_echo_n "checking for egrep... " >&6; } 4442if ${ac_cv_path_EGREP+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4446 then ac_cv_path_EGREP="$GREP -E" 4447 else 4448 if test -z "$EGREP"; then 4449 ac_path_EGREP_found=false 4450 # Loop through the user's path and test for each of PROGNAME-LIST 4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4453do 4454 IFS=$as_save_IFS 4455 test -z "$as_dir" && as_dir=. 4456 for ac_prog in egrep; do 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4459 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4460# Check for GNU ac_path_EGREP and select it if it is found. 4461 # Check for GNU $ac_path_EGREP 4462case `"$ac_path_EGREP" --version 2>&1` in 4463*GNU*) 4464 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4465*) 4466 ac_count=0 4467 $as_echo_n 0123456789 >"conftest.in" 4468 while : 4469 do 4470 cat "conftest.in" "conftest.in" >"conftest.tmp" 4471 mv "conftest.tmp" "conftest.in" 4472 cp "conftest.in" "conftest.nl" 4473 $as_echo 'EGREP' >> "conftest.nl" 4474 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4476 as_fn_arith $ac_count + 1 && ac_count=$as_val 4477 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4478 # Best one so far, save it but keep looking for a better one 4479 ac_cv_path_EGREP="$ac_path_EGREP" 4480 ac_path_EGREP_max=$ac_count 4481 fi 4482 # 10*(2^10) chars as input seems more than enough 4483 test $ac_count -gt 10 && break 4484 done 4485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4486esac 4487 4488 $ac_path_EGREP_found && break 3 4489 done 4490 done 4491 done 4492IFS=$as_save_IFS 4493 if test -z "$ac_cv_path_EGREP"; then 4494 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4495 fi 4496else 4497 ac_cv_path_EGREP=$EGREP 4498fi 4499 4500 fi 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4503$as_echo "$ac_cv_path_EGREP" >&6; } 4504 EGREP="$ac_cv_path_EGREP" 4505 4506 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4508$as_echo_n "checking for ANSI C header files... " >&6; } 4509if ${ac_cv_header_stdc+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513/* end confdefs.h. */ 4514#include <stdlib.h> 4515#include <stdarg.h> 4516#include <string.h> 4517#include <float.h> 4518 4519int 4520main () 4521{ 4522 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527if ac_fn_c_try_compile "$LINENO"; then : 4528 ac_cv_header_stdc=yes 4529else 4530 ac_cv_header_stdc=no 4531fi 4532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4533 4534if test $ac_cv_header_stdc = yes; then 4535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538#include <string.h> 4539 4540_ACEOF 4541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4542 $EGREP "memchr" >/dev/null 2>&1; then : 4543 4544else 4545 ac_cv_header_stdc=no 4546fi 4547rm -f conftest* 4548 4549fi 4550 4551if test $ac_cv_header_stdc = yes; then 4552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#include <stdlib.h> 4556 4557_ACEOF 4558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4559 $EGREP "free" >/dev/null 2>&1; then : 4560 4561else 4562 ac_cv_header_stdc=no 4563fi 4564rm -f conftest* 4565 4566fi 4567 4568if test $ac_cv_header_stdc = yes; then 4569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4570 if test "$cross_compiling" = yes; then : 4571 : 4572else 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4574/* end confdefs.h. */ 4575#include <ctype.h> 4576#include <stdlib.h> 4577#if ((' ' & 0x0FF) == 0x020) 4578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4580#else 4581# define ISLOWER(c) \ 4582 (('a' <= (c) && (c) <= 'i') \ 4583 || ('j' <= (c) && (c) <= 'r') \ 4584 || ('s' <= (c) && (c) <= 'z')) 4585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4586#endif 4587 4588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4589int 4590main () 4591{ 4592 int i; 4593 for (i = 0; i < 256; i++) 4594 if (XOR (islower (i), ISLOWER (i)) 4595 || toupper (i) != TOUPPER (i)) 4596 return 2; 4597 return 0; 4598} 4599_ACEOF 4600if ac_fn_c_try_run "$LINENO"; then : 4601 4602else 4603 ac_cv_header_stdc=no 4604fi 4605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4606 conftest.$ac_objext conftest.beam conftest.$ac_ext 4607fi 4608 4609fi 4610fi 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4612$as_echo "$ac_cv_header_stdc" >&6; } 4613if test $ac_cv_header_stdc = yes; then 4614 4615$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4616 4617fi 4618 4619# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4620for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4621 inttypes.h stdint.h unistd.h 4622do : 4623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4624ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4625" 4626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4627 cat >>confdefs.h <<_ACEOF 4628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4629_ACEOF 4630 4631fi 4632 4633done 4634 4635 4636 4637 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4638if test "x$ac_cv_header_minix_config_h" = xyes; then : 4639 MINIX=yes 4640else 4641 MINIX= 4642fi 4643 4644 4645 if test "$MINIX" = yes; then 4646 4647$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4648 4649 4650$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4651 4652 4653$as_echo "#define _MINIX 1" >>confdefs.h 4654 4655 fi 4656 4657 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4659$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4660if ${ac_cv_safe_to_define___extensions__+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665 4666# define __EXTENSIONS__ 1 4667 $ac_includes_default 4668int 4669main () 4670{ 4671 4672 ; 4673 return 0; 4674} 4675_ACEOF 4676if ac_fn_c_try_compile "$LINENO"; then : 4677 ac_cv_safe_to_define___extensions__=yes 4678else 4679 ac_cv_safe_to_define___extensions__=no 4680fi 4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4684$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4685 test $ac_cv_safe_to_define___extensions__ = yes && 4686 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4687 4688 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4689 4690 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4691 4692 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4693 4694 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4695 4696 4697 4698 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4700$as_echo_n "checking whether ln -s works... " >&6; } 4701LN_S=$as_ln_s 4702if test "$LN_S" = "ln -s"; then 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4704$as_echo "yes" >&6; } 4705else 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4707$as_echo "no, using $LN_S" >&6; } 4708fi 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4711$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4712set x ${MAKE-make} 4713ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4714if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 cat >conftest.make <<\_ACEOF 4718SHELL = /bin/sh 4719all: 4720 @echo '@@@%%%=$(MAKE)=@@@%%%' 4721_ACEOF 4722# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4723case `${MAKE-make} -f conftest.make 2>/dev/null` in 4724 *@@@%%%=?*=@@@%%%*) 4725 eval ac_cv_prog_make_${ac_make}_set=yes;; 4726 *) 4727 eval ac_cv_prog_make_${ac_make}_set=no;; 4728esac 4729rm -f conftest.make 4730fi 4731if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4733$as_echo "yes" >&6; } 4734 SET_MAKE= 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738 SET_MAKE="MAKE=${MAKE-make}" 4739fi 4740 4741case `pwd` in 4742 *\ * | *\ *) 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4744$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4745esac 4746 4747 4748 4749macro_version='2.2.6' 4750macro_revision='1.3012' 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764ltmain="$ac_aux_dir/ltmain.sh" 4765 4766# Make sure we can run config.sub. 4767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4771$as_echo_n "checking build system type... " >&6; } 4772if ${ac_cv_build+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 ac_build_alias=$build_alias 4776test "x$ac_build_alias" = x && 4777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4778test "x$ac_build_alias" = x && 4779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4782 4783fi 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4785$as_echo "$ac_cv_build" >&6; } 4786case $ac_cv_build in 4787*-*-*) ;; 4788*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4789esac 4790build=$ac_cv_build 4791ac_save_IFS=$IFS; IFS='-' 4792set x $ac_cv_build 4793shift 4794build_cpu=$1 4795build_vendor=$2 4796shift; shift 4797# Remember, the first character of IFS is used to create $*, 4798# except with old shells: 4799build_os=$* 4800IFS=$ac_save_IFS 4801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4802 4803 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4805$as_echo_n "checking host system type... " >&6; } 4806if ${ac_cv_host+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 if test "x$host_alias" = x; then 4810 ac_cv_host=$ac_cv_build 4811else 4812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4814fi 4815 4816fi 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4818$as_echo "$ac_cv_host" >&6; } 4819case $ac_cv_host in 4820*-*-*) ;; 4821*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4822esac 4823host=$ac_cv_host 4824ac_save_IFS=$IFS; IFS='-' 4825set x $ac_cv_host 4826shift 4827host_cpu=$1 4828host_vendor=$2 4829shift; shift 4830# Remember, the first character of IFS is used to create $*, 4831# except with old shells: 4832host_os=$* 4833IFS=$ac_save_IFS 4834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4835 4836 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4838$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4839if ${ac_cv_path_SED+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4843 for ac_i in 1 2 3 4 5 6 7; do 4844 ac_script="$ac_script$as_nl$ac_script" 4845 done 4846 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4847 { ac_script=; unset ac_script;} 4848 if test -z "$SED"; then 4849 ac_path_SED_found=false 4850 # Loop through the user's path and test for each of PROGNAME-LIST 4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_prog in sed gsed; do 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4859 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4860# Check for GNU ac_path_SED and select it if it is found. 4861 # Check for GNU $ac_path_SED 4862case `"$ac_path_SED" --version 2>&1` in 4863*GNU*) 4864 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4865*) 4866 ac_count=0 4867 $as_echo_n 0123456789 >"conftest.in" 4868 while : 4869 do 4870 cat "conftest.in" "conftest.in" >"conftest.tmp" 4871 mv "conftest.tmp" "conftest.in" 4872 cp "conftest.in" "conftest.nl" 4873 $as_echo '' >> "conftest.nl" 4874 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4876 as_fn_arith $ac_count + 1 && ac_count=$as_val 4877 if test $ac_count -gt ${ac_path_SED_max-0}; then 4878 # Best one so far, save it but keep looking for a better one 4879 ac_cv_path_SED="$ac_path_SED" 4880 ac_path_SED_max=$ac_count 4881 fi 4882 # 10*(2^10) chars as input seems more than enough 4883 test $ac_count -gt 10 && break 4884 done 4885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4886esac 4887 4888 $ac_path_SED_found && break 3 4889 done 4890 done 4891 done 4892IFS=$as_save_IFS 4893 if test -z "$ac_cv_path_SED"; then 4894 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4895 fi 4896else 4897 ac_cv_path_SED=$SED 4898fi 4899 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4902$as_echo "$ac_cv_path_SED" >&6; } 4903 SED="$ac_cv_path_SED" 4904 rm -f conftest.sed 4905 4906test -z "$SED" && SED=sed 4907Xsed="$SED -e 1s/^X//" 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4920$as_echo_n "checking for fgrep... " >&6; } 4921if ${ac_cv_path_FGREP+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4925 then ac_cv_path_FGREP="$GREP -F" 4926 else 4927 if test -z "$FGREP"; then 4928 ac_path_FGREP_found=false 4929 # Loop through the user's path and test for each of PROGNAME-LIST 4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4932do 4933 IFS=$as_save_IFS 4934 test -z "$as_dir" && as_dir=. 4935 for ac_prog in fgrep; do 4936 for ac_exec_ext in '' $ac_executable_extensions; do 4937 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4938 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4939# Check for GNU ac_path_FGREP and select it if it is found. 4940 # Check for GNU $ac_path_FGREP 4941case `"$ac_path_FGREP" --version 2>&1` in 4942*GNU*) 4943 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4944*) 4945 ac_count=0 4946 $as_echo_n 0123456789 >"conftest.in" 4947 while : 4948 do 4949 cat "conftest.in" "conftest.in" >"conftest.tmp" 4950 mv "conftest.tmp" "conftest.in" 4951 cp "conftest.in" "conftest.nl" 4952 $as_echo 'FGREP' >> "conftest.nl" 4953 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4955 as_fn_arith $ac_count + 1 && ac_count=$as_val 4956 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4957 # Best one so far, save it but keep looking for a better one 4958 ac_cv_path_FGREP="$ac_path_FGREP" 4959 ac_path_FGREP_max=$ac_count 4960 fi 4961 # 10*(2^10) chars as input seems more than enough 4962 test $ac_count -gt 10 && break 4963 done 4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4965esac 4966 4967 $ac_path_FGREP_found && break 3 4968 done 4969 done 4970 done 4971IFS=$as_save_IFS 4972 if test -z "$ac_cv_path_FGREP"; then 4973 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4974 fi 4975else 4976 ac_cv_path_FGREP=$FGREP 4977fi 4978 4979 fi 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4982$as_echo "$ac_cv_path_FGREP" >&6; } 4983 FGREP="$ac_cv_path_FGREP" 4984 4985 4986test -z "$GREP" && GREP=grep 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006# Check whether --with-gnu-ld was given. 5007if test "${with_gnu_ld+set}" = set; then : 5008 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5009else 5010 with_gnu_ld=no 5011fi 5012 5013ac_prog=ld 5014if test "$GCC" = yes; then 5015 # Check if gcc -print-prog-name=ld gives a path. 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5017$as_echo_n "checking for ld used by $CC... " >&6; } 5018 case $host in 5019 *-*-mingw*) 5020 # gcc leaves a trailing carriage return which upsets mingw 5021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5022 *) 5023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5024 esac 5025 case $ac_prog in 5026 # Accept absolute paths. 5027 [\\/]* | ?:[\\/]*) 5028 re_direlt='/[^/][^/]*/\.\./' 5029 # Canonicalize the pathname of ld 5030 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5031 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5032 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5033 done 5034 test -z "$LD" && LD="$ac_prog" 5035 ;; 5036 "") 5037 # If it fails, then pretend we aren't using GCC. 5038 ac_prog=ld 5039 ;; 5040 *) 5041 # If it is relative, then search for the first ld in PATH. 5042 with_gnu_ld=unknown 5043 ;; 5044 esac 5045elif test "$with_gnu_ld" = yes; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5047$as_echo_n "checking for GNU ld... " >&6; } 5048else 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5050$as_echo_n "checking for non-GNU ld... " >&6; } 5051fi 5052if ${lt_cv_path_LD+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 if test -z "$LD"; then 5056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5057 for ac_dir in $PATH; do 5058 IFS="$lt_save_ifs" 5059 test -z "$ac_dir" && ac_dir=. 5060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5061 lt_cv_path_LD="$ac_dir/$ac_prog" 5062 # Check to see if the program is GNU ld. I'd rather use --version, 5063 # but apparently some variants of GNU ld only accept -v. 5064 # Break only if it was the GNU/non-GNU ld that we prefer. 5065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5066 *GNU* | *'with BFD'*) 5067 test "$with_gnu_ld" != no && break 5068 ;; 5069 *) 5070 test "$with_gnu_ld" != yes && break 5071 ;; 5072 esac 5073 fi 5074 done 5075 IFS="$lt_save_ifs" 5076else 5077 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5078fi 5079fi 5080 5081LD="$lt_cv_path_LD" 5082if test -n "$LD"; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5084$as_echo "$LD" >&6; } 5085else 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5087$as_echo "no" >&6; } 5088fi 5089test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5091$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5092if ${lt_cv_prog_gnu_ld+:} false; then : 5093 $as_echo_n "(cached) " >&6 5094else 5095 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5096case `$LD -v 2>&1 </dev/null` in 5097*GNU* | *'with BFD'*) 5098 lt_cv_prog_gnu_ld=yes 5099 ;; 5100*) 5101 lt_cv_prog_gnu_ld=no 5102 ;; 5103esac 5104fi 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5106$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5107with_gnu_ld=$lt_cv_prog_gnu_ld 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5118$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5119if ${lt_cv_path_NM+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 if test -n "$NM"; then 5123 # Let the user override the test. 5124 lt_cv_path_NM="$NM" 5125else 5126 lt_nm_to_check="${ac_tool_prefix}nm" 5127 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5128 lt_nm_to_check="$lt_nm_to_check nm" 5129 fi 5130 for lt_tmp_nm in $lt_nm_to_check; do 5131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5132 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5133 IFS="$lt_save_ifs" 5134 test -z "$ac_dir" && ac_dir=. 5135 tmp_nm="$ac_dir/$lt_tmp_nm" 5136 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5137 # Check to see if the nm accepts a BSD-compat flag. 5138 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5139 # nm: unknown option "B" ignored 5140 # Tru64's nm complains that /dev/null is an invalid object file 5141 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5142 */dev/null* | *'Invalid file or object type'*) 5143 lt_cv_path_NM="$tmp_nm -B" 5144 break 5145 ;; 5146 *) 5147 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5148 */dev/null*) 5149 lt_cv_path_NM="$tmp_nm -p" 5150 break 5151 ;; 5152 *) 5153 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5154 continue # so that we can try to find one that supports BSD flags 5155 ;; 5156 esac 5157 ;; 5158 esac 5159 fi 5160 done 5161 IFS="$lt_save_ifs" 5162 done 5163 : ${lt_cv_path_NM=no} 5164fi 5165fi 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5167$as_echo "$lt_cv_path_NM" >&6; } 5168if test "$lt_cv_path_NM" != "no"; then 5169 NM="$lt_cv_path_NM" 5170else 5171 # Didn't find any BSD compatible name lister, look for dumpbin. 5172 if test -n "$ac_tool_prefix"; then 5173 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5174 do 5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5176set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5178$as_echo_n "checking for $ac_word... " >&6; } 5179if ${ac_cv_prog_DUMPBIN+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 if test -n "$DUMPBIN"; then 5183 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5184else 5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186for as_dir in $PATH 5187do 5188 IFS=$as_save_IFS 5189 test -z "$as_dir" && as_dir=. 5190 for ac_exec_ext in '' $ac_executable_extensions; do 5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5192 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5194 break 2 5195 fi 5196done 5197 done 5198IFS=$as_save_IFS 5199 5200fi 5201fi 5202DUMPBIN=$ac_cv_prog_DUMPBIN 5203if test -n "$DUMPBIN"; then 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5205$as_echo "$DUMPBIN" >&6; } 5206else 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5208$as_echo "no" >&6; } 5209fi 5210 5211 5212 test -n "$DUMPBIN" && break 5213 done 5214fi 5215if test -z "$DUMPBIN"; then 5216 ac_ct_DUMPBIN=$DUMPBIN 5217 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5218do 5219 # Extract the first word of "$ac_prog", so it can be a program name with args. 5220set dummy $ac_prog; ac_word=$2 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222$as_echo_n "checking for $ac_word... " >&6; } 5223if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 if test -n "$ac_ct_DUMPBIN"; then 5227 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5228else 5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5230for as_dir in $PATH 5231do 5232 IFS=$as_save_IFS 5233 test -z "$as_dir" && as_dir=. 5234 for ac_exec_ext in '' $ac_executable_extensions; do 5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5236 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5238 break 2 5239 fi 5240done 5241 done 5242IFS=$as_save_IFS 5243 5244fi 5245fi 5246ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5247if test -n "$ac_ct_DUMPBIN"; then 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5249$as_echo "$ac_ct_DUMPBIN" >&6; } 5250else 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5252$as_echo "no" >&6; } 5253fi 5254 5255 5256 test -n "$ac_ct_DUMPBIN" && break 5257done 5258 5259 if test "x$ac_ct_DUMPBIN" = x; then 5260 DUMPBIN=":" 5261 else 5262 case $cross_compiling:$ac_tool_warned in 5263yes:) 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5266ac_tool_warned=yes ;; 5267esac 5268 DUMPBIN=$ac_ct_DUMPBIN 5269 fi 5270fi 5271 5272 5273 if test "$DUMPBIN" != ":"; then 5274 NM="$DUMPBIN" 5275 fi 5276fi 5277test -z "$NM" && NM=nm 5278 5279 5280 5281 5282 5283 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5285$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5286if ${lt_cv_nm_interface+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 lt_cv_nm_interface="BSD nm" 5290 echo "int some_variable = 0;" > conftest.$ac_ext 5291 (eval echo "\"\$as_me:5259: $ac_compile\"" >&5) 5292 (eval "$ac_compile" 2>conftest.err) 5293 cat conftest.err >&5 5294 (eval echo "\"\$as_me:5262: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5296 cat conftest.err >&5 5297 (eval echo "\"\$as_me:5265: output\"" >&5) 5298 cat conftest.out >&5 5299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5300 lt_cv_nm_interface="MS dumpbin" 5301 fi 5302 rm -f conftest* 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5305$as_echo "$lt_cv_nm_interface" >&6; } 5306 5307# find the maximum length of command line arguments 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5309$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5310if ${lt_cv_sys_max_cmd_len+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 i=0 5314 teststring="ABCD" 5315 5316 case $build_os in 5317 msdosdjgpp*) 5318 # On DJGPP, this test can blow up pretty badly due to problems in libc 5319 # (any single argument exceeding 2000 bytes causes a buffer overrun 5320 # during glob expansion). Even if it were fixed, the result of this 5321 # check would be larger than it should be. 5322 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5323 ;; 5324 5325 gnu*) 5326 # Under GNU Hurd, this test is not required because there is 5327 # no limit to the length of command line arguments. 5328 # Libtool will interpret -1 as no limit whatsoever 5329 lt_cv_sys_max_cmd_len=-1; 5330 ;; 5331 5332 cygwin* | mingw* | cegcc*) 5333 # On Win9x/ME, this test blows up -- it succeeds, but takes 5334 # about 5 minutes as the teststring grows exponentially. 5335 # Worse, since 9x/ME are not pre-emptively multitasking, 5336 # you end up with a "frozen" computer, even though with patience 5337 # the test eventually succeeds (with a max line length of 256k). 5338 # Instead, let's just punt: use the minimum linelength reported by 5339 # all of the supported platforms: 8192 (on NT/2K/XP). 5340 lt_cv_sys_max_cmd_len=8192; 5341 ;; 5342 5343 amigaos*) 5344 # On AmigaOS with pdksh, this test takes hours, literally. 5345 # So we just punt and use a minimum line length of 8192. 5346 lt_cv_sys_max_cmd_len=8192; 5347 ;; 5348 5349 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5350 # This has been around since 386BSD, at least. Likely further. 5351 if test -x /sbin/sysctl; then 5352 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5353 elif test -x /usr/sbin/sysctl; then 5354 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5355 else 5356 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5357 fi 5358 # And add a safety zone 5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5361 ;; 5362 5363 interix*) 5364 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5365 lt_cv_sys_max_cmd_len=196608 5366 ;; 5367 5368 osf*) 5369 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5370 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5371 # nice to cause kernel panics so lets avoid the loop below. 5372 # First set a reasonable default. 5373 lt_cv_sys_max_cmd_len=16384 5374 # 5375 if test -x /sbin/sysconfig; then 5376 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5377 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5378 esac 5379 fi 5380 ;; 5381 sco3.2v5*) 5382 lt_cv_sys_max_cmd_len=102400 5383 ;; 5384 sysv5* | sco5v6* | sysv4.2uw2*) 5385 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5386 if test -n "$kargmax"; then 5387 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5388 else 5389 lt_cv_sys_max_cmd_len=32768 5390 fi 5391 ;; 5392 *) 5393 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5394 if test -n "$lt_cv_sys_max_cmd_len"; then 5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5397 else 5398 # Make teststring a little bigger before we do anything with it. 5399 # a 1K string should be a reasonable start. 5400 for i in 1 2 3 4 5 6 7 8 ; do 5401 teststring=$teststring$teststring 5402 done 5403 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5404 # If test is not a shell built-in, we'll probably end up computing a 5405 # maximum length that is only half of the actual maximum length, but 5406 # we can't tell. 5407 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5408 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5409 test $i != 17 # 1/2 MB should be enough 5410 do 5411 i=`expr $i + 1` 5412 teststring=$teststring$teststring 5413 done 5414 # Only check the string length outside the loop. 5415 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5416 teststring= 5417 # Add a significant safety factor because C++ compilers can tack on 5418 # massive amounts of additional arguments before passing them to the 5419 # linker. It appears as though 1/2 is a usable value. 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5421 fi 5422 ;; 5423 esac 5424 5425fi 5426 5427if test -n $lt_cv_sys_max_cmd_len ; then 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5429$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5430else 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5432$as_echo "none" >&6; } 5433fi 5434max_cmd_len=$lt_cv_sys_max_cmd_len 5435 5436 5437 5438 5439 5440 5441: ${CP="cp -f"} 5442: ${MV="mv -f"} 5443: ${RM="rm -f"} 5444 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5446$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5447# Try some XSI features 5448xsi_shell=no 5449( _lt_dummy="a/b/c" 5450 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5451 = c,a/b,, \ 5452 && eval 'test $(( 1 + 1 )) -eq 2 \ 5453 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5454 && xsi_shell=yes 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5456$as_echo "$xsi_shell" >&6; } 5457 5458 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5460$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5461lt_shell_append=no 5462( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5463 >/dev/null 2>&1 \ 5464 && lt_shell_append=yes 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5466$as_echo "$lt_shell_append" >&6; } 5467 5468 5469if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5470 lt_unset=unset 5471else 5472 lt_unset=false 5473fi 5474 5475 5476 5477 5478 5479# test EBCDIC or ASCII 5480case `echo X|tr X '\101'` in 5481 A) # ASCII based system 5482 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5483 lt_SP2NL='tr \040 \012' 5484 lt_NL2SP='tr \015\012 \040\040' 5485 ;; 5486 *) # EBCDIC based system 5487 lt_SP2NL='tr \100 \n' 5488 lt_NL2SP='tr \r\n \100\100' 5489 ;; 5490esac 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5501$as_echo_n "checking for $LD option to reload object files... " >&6; } 5502if ${lt_cv_ld_reload_flag+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 lt_cv_ld_reload_flag='-r' 5506fi 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5508$as_echo "$lt_cv_ld_reload_flag" >&6; } 5509reload_flag=$lt_cv_ld_reload_flag 5510case $reload_flag in 5511"" | " "*) ;; 5512*) reload_flag=" $reload_flag" ;; 5513esac 5514reload_cmds='$LD$reload_flag -o $output$reload_objs' 5515case $host_os in 5516 darwin*) 5517 if test "$GCC" = yes; then 5518 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5519 else 5520 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5521 fi 5522 ;; 5523esac 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533if test -n "$ac_tool_prefix"; then 5534 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5535set dummy ${ac_tool_prefix}objdump; ac_word=$2 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537$as_echo_n "checking for $ac_word... " >&6; } 5538if ${ac_cv_prog_OBJDUMP+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 if test -n "$OBJDUMP"; then 5542 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5543else 5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5545for as_dir in $PATH 5546do 5547 IFS=$as_save_IFS 5548 test -z "$as_dir" && as_dir=. 5549 for ac_exec_ext in '' $ac_executable_extensions; do 5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5551 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5553 break 2 5554 fi 5555done 5556 done 5557IFS=$as_save_IFS 5558 5559fi 5560fi 5561OBJDUMP=$ac_cv_prog_OBJDUMP 5562if test -n "$OBJDUMP"; then 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5564$as_echo "$OBJDUMP" >&6; } 5565else 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5567$as_echo "no" >&6; } 5568fi 5569 5570 5571fi 5572if test -z "$ac_cv_prog_OBJDUMP"; then 5573 ac_ct_OBJDUMP=$OBJDUMP 5574 # Extract the first word of "objdump", so it can be a program name with args. 5575set dummy objdump; ac_word=$2 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5577$as_echo_n "checking for $ac_word... " >&6; } 5578if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test -n "$ac_ct_OBJDUMP"; then 5582 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5583else 5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585for as_dir in $PATH 5586do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5591 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595done 5596 done 5597IFS=$as_save_IFS 5598 5599fi 5600fi 5601ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5602if test -n "$ac_ct_OBJDUMP"; then 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5604$as_echo "$ac_ct_OBJDUMP" >&6; } 5605else 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607$as_echo "no" >&6; } 5608fi 5609 5610 if test "x$ac_ct_OBJDUMP" = x; then 5611 OBJDUMP="false" 5612 else 5613 case $cross_compiling:$ac_tool_warned in 5614yes:) 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5617ac_tool_warned=yes ;; 5618esac 5619 OBJDUMP=$ac_ct_OBJDUMP 5620 fi 5621else 5622 OBJDUMP="$ac_cv_prog_OBJDUMP" 5623fi 5624 5625test -z "$OBJDUMP" && OBJDUMP=objdump 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5636$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5637if ${lt_cv_deplibs_check_method+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 lt_cv_file_magic_cmd='$MAGIC_CMD' 5641lt_cv_file_magic_test_file= 5642lt_cv_deplibs_check_method='unknown' 5643# Need to set the preceding variable on all platforms that support 5644# interlibrary dependencies. 5645# 'none' -- dependencies not supported. 5646# `unknown' -- same as none, but documents that we really don't know. 5647# 'pass_all' -- all dependencies passed with no checks. 5648# 'test_compile' -- check by making test program. 5649# 'file_magic [[regex]]' -- check by looking for files in library path 5650# which responds to the $file_magic_cmd with a given extended regex. 5651# If you have `file' or equivalent on your system and you're not sure 5652# whether `pass_all' will *always* work, you probably want this one. 5653 5654case $host_os in 5655aix[4-9]*) 5656 lt_cv_deplibs_check_method=pass_all 5657 ;; 5658 5659beos*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662 5663bsdi[45]*) 5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5665 lt_cv_file_magic_cmd='/usr/bin/file -L' 5666 lt_cv_file_magic_test_file=/shlib/libc.so 5667 ;; 5668 5669cygwin*) 5670 # func_win32_libid is a shell function defined in ltmain.sh 5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5672 lt_cv_file_magic_cmd='func_win32_libid' 5673 ;; 5674 5675mingw* | pw32*) 5676 # Base MSYS/MinGW do not provide the 'file' command needed by 5677 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5678 # unless we find 'file', for example because we are cross-compiling. 5679 if ( file / ) >/dev/null 2>&1; then 5680 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5681 lt_cv_file_magic_cmd='func_win32_libid' 5682 else 5683 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5684 lt_cv_file_magic_cmd='$OBJDUMP -f' 5685 fi 5686 ;; 5687 5688cegcc) 5689 # use the weaker test based on 'objdump'. See mingw*. 5690 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5691 lt_cv_file_magic_cmd='$OBJDUMP -f' 5692 ;; 5693 5694darwin* | rhapsody*) 5695 lt_cv_deplibs_check_method=pass_all 5696 ;; 5697 5698freebsd* | dragonfly*) 5699 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5700 case $host_cpu in 5701 i*86 ) 5702 # Not sure whether the presence of OpenBSD here was a mistake. 5703 # Let's accept both of them until this is cleared up. 5704 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5705 lt_cv_file_magic_cmd=/usr/bin/file 5706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5707 ;; 5708 esac 5709 else 5710 lt_cv_deplibs_check_method=pass_all 5711 fi 5712 ;; 5713 5714gnu*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5718hpux10.20* | hpux11*) 5719 lt_cv_file_magic_cmd=/usr/bin/file 5720 case $host_cpu in 5721 ia64*) 5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5724 ;; 5725 hppa*64*) 5726 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]' 5727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5728 ;; 5729 *) 5730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5731 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5732 ;; 5733 esac 5734 ;; 5735 5736interix[3-9]*) 5737 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5739 ;; 5740 5741irix5* | irix6* | nonstopux*) 5742 case $LD in 5743 *-32|*"-32 ") libmagic=32-bit;; 5744 *-n32|*"-n32 ") libmagic=N32;; 5745 *-64|*"-64 ") libmagic=64-bit;; 5746 *) libmagic=never-match;; 5747 esac 5748 lt_cv_deplibs_check_method=pass_all 5749 ;; 5750 5751# This must be Linux ELF. 5752linux* | k*bsd*-gnu) 5753 lt_cv_deplibs_check_method=pass_all 5754 ;; 5755 5756netbsd*) 5757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5759 else 5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5761 fi 5762 ;; 5763 5764newos6*) 5765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5766 lt_cv_file_magic_cmd=/usr/bin/file 5767 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5768 ;; 5769 5770*nto* | *qnx*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774openbsd*) 5775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5777 else 5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5779 fi 5780 ;; 5781 5782osf3* | osf4* | osf5*) 5783 lt_cv_deplibs_check_method=pass_all 5784 ;; 5785 5786rdos*) 5787 lt_cv_deplibs_check_method=pass_all 5788 ;; 5789 5790solaris*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5795 lt_cv_deplibs_check_method=pass_all 5796 ;; 5797 5798sysv4 | sysv4.3*) 5799 case $host_vendor in 5800 motorola) 5801 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]' 5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5803 ;; 5804 ncr) 5805 lt_cv_deplibs_check_method=pass_all 5806 ;; 5807 sequent) 5808 lt_cv_file_magic_cmd='/bin/file' 5809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5810 ;; 5811 sni) 5812 lt_cv_file_magic_cmd='/bin/file' 5813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5814 lt_cv_file_magic_test_file=/lib/libc.so 5815 ;; 5816 siemens) 5817 lt_cv_deplibs_check_method=pass_all 5818 ;; 5819 pc) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 esac 5823 ;; 5824 5825tpf*) 5826 lt_cv_deplibs_check_method=pass_all 5827 ;; 5828esac 5829 5830fi 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5832$as_echo "$lt_cv_deplibs_check_method" >&6; } 5833file_magic_cmd=$lt_cv_file_magic_cmd 5834deplibs_check_method=$lt_cv_deplibs_check_method 5835test -z "$deplibs_check_method" && deplibs_check_method=unknown 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848if test -n "$ac_tool_prefix"; then 5849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5850set dummy ${ac_tool_prefix}ar; ac_word=$2 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852$as_echo_n "checking for $ac_word... " >&6; } 5853if ${ac_cv_prog_AR+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 if test -n "$AR"; then 5857 ac_cv_prog_AR="$AR" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5866 ac_cv_prog_AR="${ac_tool_prefix}ar" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870done 5871 done 5872IFS=$as_save_IFS 5873 5874fi 5875fi 5876AR=$ac_cv_prog_AR 5877if test -n "$AR"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5879$as_echo "$AR" >&6; } 5880else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882$as_echo "no" >&6; } 5883fi 5884 5885 5886fi 5887if test -z "$ac_cv_prog_AR"; then 5888 ac_ct_AR=$AR 5889 # Extract the first word of "ar", so it can be a program name with args. 5890set dummy ar; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_ac_ct_AR+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$ac_ct_AR"; then 5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5906 ac_cv_prog_ac_ct_AR="ar" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916ac_ct_AR=$ac_cv_prog_ac_ct_AR 5917if test -n "$ac_ct_AR"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5919$as_echo "$ac_ct_AR" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 if test "x$ac_ct_AR" = x; then 5926 AR="false" 5927 else 5928 case $cross_compiling:$ac_tool_warned in 5929yes:) 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5932ac_tool_warned=yes ;; 5933esac 5934 AR=$ac_ct_AR 5935 fi 5936else 5937 AR="$ac_cv_prog_AR" 5938fi 5939 5940test -z "$AR" && AR=ar 5941test -z "$AR_FLAGS" && AR_FLAGS=cru 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953if test -n "$ac_tool_prefix"; then 5954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5955set dummy ${ac_tool_prefix}strip; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if ${ac_cv_prog_STRIP+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$STRIP"; then 5962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5971 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981STRIP=$ac_cv_prog_STRIP 5982if test -n "$STRIP"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5984$as_echo "$STRIP" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 5991fi 5992if test -z "$ac_cv_prog_STRIP"; then 5993 ac_ct_STRIP=$STRIP 5994 # Extract the first word of "strip", so it can be a program name with args. 5995set dummy strip; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$ac_ct_STRIP"; then 6002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_prog_ac_ct_STRIP="strip" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6022if test -n "$ac_ct_STRIP"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6024$as_echo "$ac_ct_STRIP" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 if test "x$ac_ct_STRIP" = x; then 6031 STRIP=":" 6032 else 6033 case $cross_compiling:$ac_tool_warned in 6034yes:) 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6037ac_tool_warned=yes ;; 6038esac 6039 STRIP=$ac_ct_STRIP 6040 fi 6041else 6042 STRIP="$ac_cv_prog_STRIP" 6043fi 6044 6045test -z "$STRIP" && STRIP=: 6046 6047 6048 6049 6050 6051 6052if test -n "$ac_tool_prefix"; then 6053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6054set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if ${ac_cv_prog_RANLIB+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 if test -n "$RANLIB"; then 6061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6062else 6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064for as_dir in $PATH 6065do 6066 IFS=$as_save_IFS 6067 test -z "$as_dir" && as_dir=. 6068 for ac_exec_ext in '' $ac_executable_extensions; do 6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6072 break 2 6073 fi 6074done 6075 done 6076IFS=$as_save_IFS 6077 6078fi 6079fi 6080RANLIB=$ac_cv_prog_RANLIB 6081if test -n "$RANLIB"; then 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6083$as_echo "$RANLIB" >&6; } 6084else 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086$as_echo "no" >&6; } 6087fi 6088 6089 6090fi 6091if test -z "$ac_cv_prog_RANLIB"; then 6092 ac_ct_RANLIB=$RANLIB 6093 # Extract the first word of "ranlib", so it can be a program name with args. 6094set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$ac_ct_RANLIB"; then 6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib" 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 6120ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6121if test -n "$ac_ct_RANLIB"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6123$as_echo "$ac_ct_RANLIB" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 if test "x$ac_ct_RANLIB" = x; then 6130 RANLIB=":" 6131 else 6132 case $cross_compiling:$ac_tool_warned in 6133yes:) 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6136ac_tool_warned=yes ;; 6137esac 6138 RANLIB=$ac_ct_RANLIB 6139 fi 6140else 6141 RANLIB="$ac_cv_prog_RANLIB" 6142fi 6143 6144test -z "$RANLIB" && RANLIB=: 6145 6146 6147 6148 6149 6150 6151# Determine commands to create old-style static archives. 6152old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6153old_postinstall_cmds='chmod 644 $oldlib' 6154old_postuninstall_cmds= 6155 6156if test -n "$RANLIB"; then 6157 case $host_os in 6158 openbsd*) 6159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6160 ;; 6161 *) 6162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6163 ;; 6164 esac 6165 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6166fi 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201# If no C compiler was specified, use CC. 6202LTCC=${LTCC-"$CC"} 6203 6204# If no C compiler flags were specified, use CFLAGS. 6205LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6206 6207# Allow CC to be a program name with arguments. 6208compiler=$CC 6209 6210 6211# Check for command to grab the raw symbol name followed by C symbol from nm. 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6213$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6214if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 6218# These are sane defaults that work on at least a few old systems. 6219# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6220 6221# Character class describing NM global symbol codes. 6222symcode='[BCDEGRST]' 6223 6224# Regexp to match symbols that can be accessed directly from C. 6225sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6226 6227# Define system-specific variables. 6228case $host_os in 6229aix*) 6230 symcode='[BCDT]' 6231 ;; 6232cygwin* | mingw* | pw32* | cegcc*) 6233 symcode='[ABCDGISTW]' 6234 ;; 6235hpux*) 6236 if test "$host_cpu" = ia64; then 6237 symcode='[ABCDEGRST]' 6238 fi 6239 ;; 6240irix* | nonstopux*) 6241 symcode='[BCDEGRST]' 6242 ;; 6243osf*) 6244 symcode='[BCDEGQRST]' 6245 ;; 6246solaris*) 6247 symcode='[BDRT]' 6248 ;; 6249sco3.2v5*) 6250 symcode='[DT]' 6251 ;; 6252sysv4.2uw2*) 6253 symcode='[DT]' 6254 ;; 6255sysv5* | sco5v6* | unixware* | OpenUNIX*) 6256 symcode='[ABDT]' 6257 ;; 6258sysv4) 6259 symcode='[DFNSTU]' 6260 ;; 6261esac 6262 6263# If we're using GNU nm, then use its standard symbol codes. 6264case `$NM -V 2>&1` in 6265*GNU* | *'with BFD'*) 6266 symcode='[ABCDGIRSTW]' ;; 6267esac 6268 6269# Transform an extracted symbol line into a proper C declaration. 6270# Some systems (esp. on ia64) link data and code symbols differently, 6271# so use this general approach. 6272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6273 6274# Transform an extracted symbol line into symbol name and symbol address 6275lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6276lt_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'" 6277 6278# Handle CRLF in mingw tool chain 6279opt_cr= 6280case $build_os in 6281mingw*) 6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6283 ;; 6284esac 6285 6286# Try without a prefix underscore, then with it. 6287for ac_symprfx in "" "_"; do 6288 6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6290 symxfrm="\\1 $ac_symprfx\\2 \\2" 6291 6292 # Write the raw and C identifiers. 6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6294 # Fake it for dumpbin and say T for any non-static function 6295 # and D for any global variable. 6296 # Also find C++ and __fastcall symbols from MSVC++, 6297 # which start with @ or ?. 6298 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6299" {last_section=section; section=\$ 3};"\ 6300" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6301" \$ 0!~/External *\|/{next};"\ 6302" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6303" {if(hide[section]) next};"\ 6304" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6305" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6306" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6307" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6308" ' prfx=^$ac_symprfx" 6309 else 6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6311 fi 6312 6313 # Check to see that the pipe works correctly. 6314 pipe_works=no 6315 6316 rm -f conftest* 6317 cat > conftest.$ac_ext <<_LT_EOF 6318#ifdef __cplusplus 6319extern "C" { 6320#endif 6321char nm_test_var; 6322void nm_test_func(void); 6323void nm_test_func(void){} 6324#ifdef __cplusplus 6325} 6326#endif 6327int main(){nm_test_var='a';nm_test_func();return(0);} 6328_LT_EOF 6329 6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6331 (eval $ac_compile) 2>&5 6332 ac_status=$? 6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6334 test $ac_status = 0; }; then 6335 # Now try to grab the symbols. 6336 nlist=conftest.nm 6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6339 ac_status=$? 6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6341 test $ac_status = 0; } && test -s "$nlist"; then 6342 # Try sorting and uniquifying the output. 6343 if sort "$nlist" | uniq > "$nlist"T; then 6344 mv -f "$nlist"T "$nlist" 6345 else 6346 rm -f "$nlist"T 6347 fi 6348 6349 # Make sure that we snagged all the symbols we need. 6350 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6351 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6352 cat <<_LT_EOF > conftest.$ac_ext 6353#ifdef __cplusplus 6354extern "C" { 6355#endif 6356 6357_LT_EOF 6358 # Now generate the symbol file. 6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6360 6361 cat <<_LT_EOF >> conftest.$ac_ext 6362/* The mapping between symbol names and symbols. */ 6363const struct { 6364 const char *name; 6365 void *address; 6366} 6367lt__PROGRAM__LTX_preloaded_symbols[] = 6368{ 6369 { "@PROGRAM@", (void *) 0 }, 6370_LT_EOF 6371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6372 cat <<\_LT_EOF >> conftest.$ac_ext 6373 {0, (void *) 0} 6374}; 6375 6376/* This works around a problem in FreeBSD linker */ 6377#ifdef FREEBSD_WORKAROUND 6378static const void *lt_preloaded_setup() { 6379 return lt__PROGRAM__LTX_preloaded_symbols; 6380} 6381#endif 6382 6383#ifdef __cplusplus 6384} 6385#endif 6386_LT_EOF 6387 # Now try linking the two files. 6388 mv conftest.$ac_objext conftstm.$ac_objext 6389 lt_save_LIBS="$LIBS" 6390 lt_save_CFLAGS="$CFLAGS" 6391 LIBS="conftstm.$ac_objext" 6392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6394 (eval $ac_link) 2>&5 6395 ac_status=$? 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6397 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6398 pipe_works=yes 6399 fi 6400 LIBS="$lt_save_LIBS" 6401 CFLAGS="$lt_save_CFLAGS" 6402 else 6403 echo "cannot find nm_test_func in $nlist" >&5 6404 fi 6405 else 6406 echo "cannot find nm_test_var in $nlist" >&5 6407 fi 6408 else 6409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6410 fi 6411 else 6412 echo "$progname: failed program was:" >&5 6413 cat conftest.$ac_ext >&5 6414 fi 6415 rm -rf conftest* conftst* 6416 6417 # Do not use the global_symbol_pipe unless it works. 6418 if test "$pipe_works" = yes; then 6419 break 6420 else 6421 lt_cv_sys_global_symbol_pipe= 6422 fi 6423done 6424 6425fi 6426 6427if test -z "$lt_cv_sys_global_symbol_pipe"; then 6428 lt_cv_sys_global_symbol_to_cdecl= 6429fi 6430if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6432$as_echo "failed" >&6; } 6433else 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6435$as_echo "ok" >&6; } 6436fi 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459# Check whether --enable-libtool-lock was given. 6460if test "${enable_libtool_lock+set}" = set; then : 6461 enableval=$enable_libtool_lock; 6462fi 6463 6464test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6465 6466# Some flags need to be propagated to the compiler or linker for good 6467# libtool support. 6468case $host in 6469ia64-*-hpux*) 6470 # Find out which ABI we are using. 6471 echo 'int i;' > conftest.$ac_ext 6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6473 (eval $ac_compile) 2>&5 6474 ac_status=$? 6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6476 test $ac_status = 0; }; then 6477 case `/usr/bin/file conftest.$ac_objext` in 6478 *ELF-32*) 6479 HPUX_IA64_MODE="32" 6480 ;; 6481 *ELF-64*) 6482 HPUX_IA64_MODE="64" 6483 ;; 6484 esac 6485 fi 6486 rm -rf conftest* 6487 ;; 6488*-*-irix6*) 6489 # Find out which ABI we are using. 6490 echo '#line 6458 "configure"' > conftest.$ac_ext 6491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6492 (eval $ac_compile) 2>&5 6493 ac_status=$? 6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6495 test $ac_status = 0; }; then 6496 if test "$lt_cv_prog_gnu_ld" = yes; then 6497 case `/usr/bin/file conftest.$ac_objext` in 6498 *32-bit*) 6499 LD="${LD-ld} -melf32bsmip" 6500 ;; 6501 *N32*) 6502 LD="${LD-ld} -melf32bmipn32" 6503 ;; 6504 *64-bit*) 6505 LD="${LD-ld} -melf64bmip" 6506 ;; 6507 esac 6508 else 6509 case `/usr/bin/file conftest.$ac_objext` in 6510 *32-bit*) 6511 LD="${LD-ld} -32" 6512 ;; 6513 *N32*) 6514 LD="${LD-ld} -n32" 6515 ;; 6516 *64-bit*) 6517 LD="${LD-ld} -64" 6518 ;; 6519 esac 6520 fi 6521 fi 6522 rm -rf conftest* 6523 ;; 6524 6525x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6526s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6527 # Find out which ABI we are using. 6528 echo 'int i;' > conftest.$ac_ext 6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6530 (eval $ac_compile) 2>&5 6531 ac_status=$? 6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6533 test $ac_status = 0; }; then 6534 case `/usr/bin/file conftest.o` in 6535 *32-bit*) 6536 case $host in 6537 x86_64-*kfreebsd*-gnu) 6538 LD="${LD-ld} -m elf_i386_fbsd" 6539 ;; 6540 x86_64-*linux*) 6541 LD="${LD-ld} -m elf_i386" 6542 ;; 6543 ppc64-*linux*|powerpc64-*linux*) 6544 LD="${LD-ld} -m elf32ppclinux" 6545 ;; 6546 s390x-*linux*) 6547 LD="${LD-ld} -m elf_s390" 6548 ;; 6549 sparc64-*linux*) 6550 LD="${LD-ld} -m elf32_sparc" 6551 ;; 6552 esac 6553 ;; 6554 *64-bit*) 6555 case $host in 6556 x86_64-*kfreebsd*-gnu) 6557 LD="${LD-ld} -m elf_x86_64_fbsd" 6558 ;; 6559 x86_64-*linux*) 6560 LD="${LD-ld} -m elf_x86_64" 6561 ;; 6562 ppc*-*linux*|powerpc*-*linux*) 6563 LD="${LD-ld} -m elf64ppc" 6564 ;; 6565 s390*-*linux*|s390*-*tpf*) 6566 LD="${LD-ld} -m elf64_s390" 6567 ;; 6568 sparc*-*linux*) 6569 LD="${LD-ld} -m elf64_sparc" 6570 ;; 6571 esac 6572 ;; 6573 esac 6574 fi 6575 rm -rf conftest* 6576 ;; 6577 6578*-*-sco3.2v5*) 6579 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6580 SAVE_CFLAGS="$CFLAGS" 6581 CFLAGS="$CFLAGS -belf" 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6583$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6584if ${lt_cv_cc_needs_belf+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586else 6587 ac_ext=c 6588ac_cpp='$CPP $CPPFLAGS' 6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6591ac_compiler_gnu=$ac_cv_c_compiler_gnu 6592 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595 6596int 6597main () 6598{ 6599 6600 ; 6601 return 0; 6602} 6603_ACEOF 6604if ac_fn_c_try_link "$LINENO"; then : 6605 lt_cv_cc_needs_belf=yes 6606else 6607 lt_cv_cc_needs_belf=no 6608fi 6609rm -f core conftest.err conftest.$ac_objext \ 6610 conftest$ac_exeext conftest.$ac_ext 6611 ac_ext=c 6612ac_cpp='$CPP $CPPFLAGS' 6613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6615ac_compiler_gnu=$ac_cv_c_compiler_gnu 6616 6617fi 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6619$as_echo "$lt_cv_cc_needs_belf" >&6; } 6620 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6621 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6622 CFLAGS="$SAVE_CFLAGS" 6623 fi 6624 ;; 6625sparc*-*solaris*) 6626 # Find out which ABI we are using. 6627 echo 'int i;' > conftest.$ac_ext 6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6629 (eval $ac_compile) 2>&5 6630 ac_status=$? 6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6632 test $ac_status = 0; }; then 6633 case `/usr/bin/file conftest.o` in 6634 *64-bit*) 6635 case $lt_cv_prog_gnu_ld in 6636 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6637 *) 6638 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6639 LD="${LD-ld} -64" 6640 fi 6641 ;; 6642 esac 6643 ;; 6644 esac 6645 fi 6646 rm -rf conftest* 6647 ;; 6648esac 6649 6650need_locks="$enable_libtool_lock" 6651 6652 6653 case $host_os in 6654 rhapsody* | darwin*) 6655 if test -n "$ac_tool_prefix"; then 6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6657set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6659$as_echo_n "checking for $ac_word... " >&6; } 6660if ${ac_cv_prog_DSYMUTIL+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 if test -n "$DSYMUTIL"; then 6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6665else 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667for as_dir in $PATH 6668do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677done 6678 done 6679IFS=$as_save_IFS 6680 6681fi 6682fi 6683DSYMUTIL=$ac_cv_prog_DSYMUTIL 6684if test -n "$DSYMUTIL"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6686$as_echo "$DSYMUTIL" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 6693fi 6694if test -z "$ac_cv_prog_DSYMUTIL"; then 6695 ac_ct_DSYMUTIL=$DSYMUTIL 6696 # Extract the first word of "dsymutil", so it can be a program name with args. 6697set dummy dsymutil; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$ac_ct_DSYMUTIL"; then 6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 test -z "$as_dir" && as_dir=. 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717done 6718 done 6719IFS=$as_save_IFS 6720 6721fi 6722fi 6723ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6724if test -n "$ac_ct_DSYMUTIL"; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6726$as_echo "$ac_ct_DSYMUTIL" >&6; } 6727else 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6729$as_echo "no" >&6; } 6730fi 6731 6732 if test "x$ac_ct_DSYMUTIL" = x; then 6733 DSYMUTIL=":" 6734 else 6735 case $cross_compiling:$ac_tool_warned in 6736yes:) 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6739ac_tool_warned=yes ;; 6740esac 6741 DSYMUTIL=$ac_ct_DSYMUTIL 6742 fi 6743else 6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6745fi 6746 6747 if test -n "$ac_tool_prefix"; then 6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6749set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_NMEDIT+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$NMEDIT"; then 6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775NMEDIT=$ac_cv_prog_NMEDIT 6776if test -n "$NMEDIT"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6778$as_echo "$NMEDIT" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_NMEDIT"; then 6787 ac_ct_NMEDIT=$NMEDIT 6788 # Extract the first word of "nmedit", so it can be a program name with args. 6789set dummy nmedit; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$ac_ct_NMEDIT"; then 6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6805 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6816if test -n "$ac_ct_NMEDIT"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6818$as_echo "$ac_ct_NMEDIT" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 if test "x$ac_ct_NMEDIT" = x; then 6825 NMEDIT=":" 6826 else 6827 case $cross_compiling:$ac_tool_warned in 6828yes:) 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6831ac_tool_warned=yes ;; 6832esac 6833 NMEDIT=$ac_ct_NMEDIT 6834 fi 6835else 6836 NMEDIT="$ac_cv_prog_NMEDIT" 6837fi 6838 6839 if test -n "$ac_tool_prefix"; then 6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6841set dummy ${ac_tool_prefix}lipo; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_LIPO+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$LIPO"; then 6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867LIPO=$ac_cv_prog_LIPO 6868if test -n "$LIPO"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6870$as_echo "$LIPO" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877fi 6878if test -z "$ac_cv_prog_LIPO"; then 6879 ac_ct_LIPO=$LIPO 6880 # Extract the first word of "lipo", so it can be a program name with args. 6881set dummy lipo; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_LIPO"; then 6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6897 ac_cv_prog_ac_ct_LIPO="lipo" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6908if test -n "$ac_ct_LIPO"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6910$as_echo "$ac_ct_LIPO" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 if test "x$ac_ct_LIPO" = x; then 6917 LIPO=":" 6918 else 6919 case $cross_compiling:$ac_tool_warned in 6920yes:) 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6923ac_tool_warned=yes ;; 6924esac 6925 LIPO=$ac_ct_LIPO 6926 fi 6927else 6928 LIPO="$ac_cv_prog_LIPO" 6929fi 6930 6931 if test -n "$ac_tool_prefix"; then 6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6933set dummy ${ac_tool_prefix}otool; ac_word=$2 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935$as_echo_n "checking for $ac_word... " >&6; } 6936if ${ac_cv_prog_OTOOL+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 if test -n "$OTOOL"; then 6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6941else 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959OTOOL=$ac_cv_prog_OTOOL 6960if test -n "$OTOOL"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6962$as_echo "$OTOOL" >&6; } 6963else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965$as_echo "no" >&6; } 6966fi 6967 6968 6969fi 6970if test -z "$ac_cv_prog_OTOOL"; then 6971 ac_ct_OTOOL=$OTOOL 6972 # Extract the first word of "otool", so it can be a program name with args. 6973set dummy otool; ac_word=$2 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6975$as_echo_n "checking for $ac_word... " >&6; } 6976if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 if test -n "$ac_ct_OTOOL"; then 6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6981else 6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6989 ac_cv_prog_ac_ct_OTOOL="otool" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994 done 6995IFS=$as_save_IFS 6996 6997fi 6998fi 6999ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7000if test -n "$ac_ct_OTOOL"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7002$as_echo "$ac_ct_OTOOL" >&6; } 7003else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005$as_echo "no" >&6; } 7006fi 7007 7008 if test "x$ac_ct_OTOOL" = x; then 7009 OTOOL=":" 7010 else 7011 case $cross_compiling:$ac_tool_warned in 7012yes:) 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7015ac_tool_warned=yes ;; 7016esac 7017 OTOOL=$ac_ct_OTOOL 7018 fi 7019else 7020 OTOOL="$ac_cv_prog_OTOOL" 7021fi 7022 7023 if test -n "$ac_tool_prefix"; then 7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7025set dummy ${ac_tool_prefix}otool64; ac_word=$2 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027$as_echo_n "checking for $ac_word... " >&6; } 7028if ${ac_cv_prog_OTOOL64+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 if test -n "$OTOOL64"; then 7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7033else 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7035for as_dir in $PATH 7036do 7037 IFS=$as_save_IFS 7038 test -z "$as_dir" && as_dir=. 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046 done 7047IFS=$as_save_IFS 7048 7049fi 7050fi 7051OTOOL64=$ac_cv_prog_OTOOL64 7052if test -n "$OTOOL64"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7054$as_echo "$OTOOL64" >&6; } 7055else 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7057$as_echo "no" >&6; } 7058fi 7059 7060 7061fi 7062if test -z "$ac_cv_prog_OTOOL64"; then 7063 ac_ct_OTOOL64=$OTOOL64 7064 # Extract the first word of "otool64", so it can be a program name with args. 7065set dummy otool64; ac_word=$2 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067$as_echo_n "checking for $ac_word... " >&6; } 7068if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 if test -n "$ac_ct_OTOOL64"; then 7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7073else 7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7075for as_dir in $PATH 7076do 7077 IFS=$as_save_IFS 7078 test -z "$as_dir" && as_dir=. 7079 for ac_exec_ext in '' $ac_executable_extensions; do 7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7081 ac_cv_prog_ac_ct_OTOOL64="otool64" 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7083 break 2 7084 fi 7085done 7086 done 7087IFS=$as_save_IFS 7088 7089fi 7090fi 7091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7092if test -n "$ac_ct_OTOOL64"; then 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7094$as_echo "$ac_ct_OTOOL64" >&6; } 7095else 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7097$as_echo "no" >&6; } 7098fi 7099 7100 if test "x$ac_ct_OTOOL64" = x; then 7101 OTOOL64=":" 7102 else 7103 case $cross_compiling:$ac_tool_warned in 7104yes:) 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7107ac_tool_warned=yes ;; 7108esac 7109 OTOOL64=$ac_ct_OTOOL64 7110 fi 7111else 7112 OTOOL64="$ac_cv_prog_OTOOL64" 7113fi 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7142$as_echo_n "checking for -single_module linker flag... " >&6; } 7143if ${lt_cv_apple_cc_single_mod+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 lt_cv_apple_cc_single_mod=no 7147 if test -z "${LT_MULTI_MODULE}"; then 7148 # By default we will add the -single_module flag. You can override 7149 # by either setting the environment variable LT_MULTI_MODULE 7150 # non-empty at configure time, or by adding -multi_module to the 7151 # link flags. 7152 rm -rf libconftest.dylib* 7153 echo "int foo(void){return 1;}" > conftest.c 7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7155-dynamiclib -Wl,-single_module conftest.c" >&5 7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7158 _lt_result=$? 7159 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7160 lt_cv_apple_cc_single_mod=yes 7161 else 7162 cat conftest.err >&5 7163 fi 7164 rm -rf libconftest.dylib* 7165 rm -f conftest.* 7166 fi 7167fi 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7169$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7171$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7172if ${lt_cv_ld_exported_symbols_list+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 lt_cv_ld_exported_symbols_list=no 7176 save_LDFLAGS=$LDFLAGS 7177 echo "_main" > conftest.sym 7178 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181 7182int 7183main () 7184{ 7185 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190if ac_fn_c_try_link "$LINENO"; then : 7191 lt_cv_ld_exported_symbols_list=yes 7192else 7193 lt_cv_ld_exported_symbols_list=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext \ 7196 conftest$ac_exeext conftest.$ac_ext 7197 LDFLAGS="$save_LDFLAGS" 7198 7199fi 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7201$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7202 case $host_os in 7203 rhapsody* | darwin1.[012]) 7204 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7205 darwin1.*) 7206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7207 darwin*) # darwin 5.x on 7208 # if running on 10.5 or later, the deployment target defaults 7209 # to the OS version, if on x86, and 10.4, the deployment 7210 # target defaults to 10.4. Don't you love it? 7211 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7212 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7213 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7214 10.[012]*) 7215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7216 10.*) 7217 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7218 esac 7219 ;; 7220 esac 7221 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7222 _lt_dar_single_mod='$single_module' 7223 fi 7224 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7225 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7226 else 7227 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7228 fi 7229 if test "$DSYMUTIL" != ":"; then 7230 _lt_dsymutil='~$DSYMUTIL $lib || :' 7231 else 7232 _lt_dsymutil= 7233 fi 7234 ;; 7235 esac 7236 7237for ac_header in dlfcn.h 7238do : 7239 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7240" 7241if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7242 cat >>confdefs.h <<_ACEOF 7243#define HAVE_DLFCN_H 1 7244_ACEOF 7245 7246fi 7247 7248done 7249 7250 7251 7252# Set options 7253 7254 7255 7256 enable_dlopen=no 7257 7258 7259 enable_win32_dll=no 7260 7261 7262 # Check whether --enable-shared was given. 7263if test "${enable_shared+set}" = set; then : 7264 enableval=$enable_shared; p=${PACKAGE-default} 7265 case $enableval in 7266 yes) enable_shared=yes ;; 7267 no) enable_shared=no ;; 7268 *) 7269 enable_shared=no 7270 # Look at the argument we got. We use all the common list separators. 7271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7272 for pkg in $enableval; do 7273 IFS="$lt_save_ifs" 7274 if test "X$pkg" = "X$p"; then 7275 enable_shared=yes 7276 fi 7277 done 7278 IFS="$lt_save_ifs" 7279 ;; 7280 esac 7281else 7282 enable_shared=yes 7283fi 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 # Check whether --enable-static was given. 7294if test "${enable_static+set}" = set; then : 7295 enableval=$enable_static; p=${PACKAGE-default} 7296 case $enableval in 7297 yes) enable_static=yes ;; 7298 no) enable_static=no ;; 7299 *) 7300 enable_static=no 7301 # Look at the argument we got. We use all the common list separators. 7302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7303 for pkg in $enableval; do 7304 IFS="$lt_save_ifs" 7305 if test "X$pkg" = "X$p"; then 7306 enable_static=yes 7307 fi 7308 done 7309 IFS="$lt_save_ifs" 7310 ;; 7311 esac 7312else 7313 enable_static=yes 7314fi 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325# Check whether --with-pic was given. 7326if test "${with_pic+set}" = set; then : 7327 withval=$with_pic; pic_mode="$withval" 7328else 7329 pic_mode=default 7330fi 7331 7332 7333test -z "$pic_mode" && pic_mode=default 7334 7335 7336 7337 7338 7339 7340 7341 # Check whether --enable-fast-install was given. 7342if test "${enable_fast_install+set}" = set; then : 7343 enableval=$enable_fast_install; p=${PACKAGE-default} 7344 case $enableval in 7345 yes) enable_fast_install=yes ;; 7346 no) enable_fast_install=no ;; 7347 *) 7348 enable_fast_install=no 7349 # Look at the argument we got. We use all the common list separators. 7350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7351 for pkg in $enableval; do 7352 IFS="$lt_save_ifs" 7353 if test "X$pkg" = "X$p"; then 7354 enable_fast_install=yes 7355 fi 7356 done 7357 IFS="$lt_save_ifs" 7358 ;; 7359 esac 7360else 7361 enable_fast_install=yes 7362fi 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374# This can be used to rebuild libtool when needed 7375LIBTOOL_DEPS="$ltmain" 7376 7377# Always use our own libtool. 7378LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404test -z "$LN_S" && LN_S="ln -s" 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419if test -n "${ZSH_VERSION+set}" ; then 7420 setopt NO_GLOB_SUBST 7421fi 7422 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7424$as_echo_n "checking for objdir... " >&6; } 7425if ${lt_cv_objdir+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427else 7428 rm -f .libs 2>/dev/null 7429mkdir .libs 2>/dev/null 7430if test -d .libs; then 7431 lt_cv_objdir=.libs 7432else 7433 # MS-DOS does not allow filenames that begin with a dot. 7434 lt_cv_objdir=_libs 7435fi 7436rmdir .libs 2>/dev/null 7437fi 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7439$as_echo "$lt_cv_objdir" >&6; } 7440objdir=$lt_cv_objdir 7441 7442 7443 7444 7445 7446cat >>confdefs.h <<_ACEOF 7447#define LT_OBJDIR "$lt_cv_objdir/" 7448_ACEOF 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466case $host_os in 7467aix3*) 7468 # AIX sometimes has problems with the GCC collect2 program. For some 7469 # reason, if we set the COLLECT_NAMES environment variable, the problems 7470 # vanish in a puff of smoke. 7471 if test "X${COLLECT_NAMES+set}" != Xset; then 7472 COLLECT_NAMES= 7473 export COLLECT_NAMES 7474 fi 7475 ;; 7476esac 7477 7478# Sed substitution that helps us do robust quoting. It backslashifies 7479# metacharacters that are still active within double-quoted strings. 7480sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7481 7482# Same as above, but do not quote variable references. 7483double_quote_subst='s/\(["`\\]\)/\\\1/g' 7484 7485# Sed substitution to delay expansion of an escaped shell variable in a 7486# double_quote_subst'ed string. 7487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7488 7489# Sed substitution to delay expansion of an escaped single quote. 7490delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7491 7492# Sed substitution to avoid accidental globbing in evaled expressions 7493no_glob_subst='s/\*/\\\*/g' 7494 7495# Global variables: 7496ofile=libtool 7497can_build_shared=yes 7498 7499# All known linkers require a `.a' archive for static linking (except MSVC, 7500# which needs '.lib'). 7501libext=a 7502 7503with_gnu_ld="$lt_cv_prog_gnu_ld" 7504 7505old_CC="$CC" 7506old_CFLAGS="$CFLAGS" 7507 7508# Set sane defaults for various variables 7509test -z "$CC" && CC=cc 7510test -z "$LTCC" && LTCC=$CC 7511test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7512test -z "$LD" && LD=ld 7513test -z "$ac_objext" && ac_objext=o 7514 7515for cc_temp in $compiler""; do 7516 case $cc_temp in 7517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7519 \-*) ;; 7520 *) break;; 7521 esac 7522done 7523cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7524 7525 7526# Only perform the check for file, if the check method requires it 7527test -z "$MAGIC_CMD" && MAGIC_CMD=file 7528case $deplibs_check_method in 7529file_magic*) 7530 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7532$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7533if ${lt_cv_path_MAGIC_CMD+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 case $MAGIC_CMD in 7537[\\/*] | ?:[\\/]*) 7538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7539 ;; 7540*) 7541 lt_save_MAGIC_CMD="$MAGIC_CMD" 7542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7544 for ac_dir in $ac_dummy; do 7545 IFS="$lt_save_ifs" 7546 test -z "$ac_dir" && ac_dir=. 7547 if test -f $ac_dir/${ac_tool_prefix}file; then 7548 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7549 if test -n "$file_magic_test_file"; then 7550 case $deplibs_check_method in 7551 "file_magic "*) 7552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7555 $EGREP "$file_magic_regex" > /dev/null; then 7556 : 7557 else 7558 cat <<_LT_EOF 1>&2 7559 7560*** Warning: the command libtool uses to detect shared libraries, 7561*** $file_magic_cmd, produces output that libtool cannot recognize. 7562*** The result is that libtool may fail to recognize shared libraries 7563*** as such. This will affect the creation of libtool libraries that 7564*** depend on shared libraries, but programs linked with such libtool 7565*** libraries will work regardless of this problem. Nevertheless, you 7566*** may want to report the problem to your system manager and/or to 7567*** bug-libtool@gnu.org 7568 7569_LT_EOF 7570 fi ;; 7571 esac 7572 fi 7573 break 7574 fi 7575 done 7576 IFS="$lt_save_ifs" 7577 MAGIC_CMD="$lt_save_MAGIC_CMD" 7578 ;; 7579esac 7580fi 7581 7582MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7583if test -n "$MAGIC_CMD"; then 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7585$as_echo "$MAGIC_CMD" >&6; } 7586else 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7588$as_echo "no" >&6; } 7589fi 7590 7591 7592 7593 7594 7595if test -z "$lt_cv_path_MAGIC_CMD"; then 7596 if test -n "$ac_tool_prefix"; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7598$as_echo_n "checking for file... " >&6; } 7599if ${lt_cv_path_MAGIC_CMD+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 case $MAGIC_CMD in 7603[\\/*] | ?:[\\/]*) 7604 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7605 ;; 7606*) 7607 lt_save_MAGIC_CMD="$MAGIC_CMD" 7608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7609 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7610 for ac_dir in $ac_dummy; do 7611 IFS="$lt_save_ifs" 7612 test -z "$ac_dir" && ac_dir=. 7613 if test -f $ac_dir/file; then 7614 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7615 if test -n "$file_magic_test_file"; then 7616 case $deplibs_check_method in 7617 "file_magic "*) 7618 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7620 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7621 $EGREP "$file_magic_regex" > /dev/null; then 7622 : 7623 else 7624 cat <<_LT_EOF 1>&2 7625 7626*** Warning: the command libtool uses to detect shared libraries, 7627*** $file_magic_cmd, produces output that libtool cannot recognize. 7628*** The result is that libtool may fail to recognize shared libraries 7629*** as such. This will affect the creation of libtool libraries that 7630*** depend on shared libraries, but programs linked with such libtool 7631*** libraries will work regardless of this problem. Nevertheless, you 7632*** may want to report the problem to your system manager and/or to 7633*** bug-libtool@gnu.org 7634 7635_LT_EOF 7636 fi ;; 7637 esac 7638 fi 7639 break 7640 fi 7641 done 7642 IFS="$lt_save_ifs" 7643 MAGIC_CMD="$lt_save_MAGIC_CMD" 7644 ;; 7645esac 7646fi 7647 7648MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7649if test -n "$MAGIC_CMD"; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7651$as_echo "$MAGIC_CMD" >&6; } 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655fi 7656 7657 7658 else 7659 MAGIC_CMD=: 7660 fi 7661fi 7662 7663 fi 7664 ;; 7665esac 7666 7667# Use C for the default configuration in the libtool script 7668 7669lt_save_CC="$CC" 7670ac_ext=c 7671ac_cpp='$CPP $CPPFLAGS' 7672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7674ac_compiler_gnu=$ac_cv_c_compiler_gnu 7675 7676 7677# Source file extension for C test sources. 7678ac_ext=c 7679 7680# Object file extension for compiled C test sources. 7681objext=o 7682objext=$objext 7683 7684# Code to be used in simple compile tests 7685lt_simple_compile_test_code="int some_variable = 0;" 7686 7687# Code to be used in simple link tests 7688lt_simple_link_test_code='int main(){return(0);}' 7689 7690 7691 7692 7693 7694 7695 7696# If no C compiler was specified, use CC. 7697LTCC=${LTCC-"$CC"} 7698 7699# If no C compiler flags were specified, use CFLAGS. 7700LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7701 7702# Allow CC to be a program name with arguments. 7703compiler=$CC 7704 7705# Save the default compiler, since it gets overwritten when the other 7706# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7707compiler_DEFAULT=$CC 7708 7709# save warnings/boilerplate of simple test code 7710ac_outfile=conftest.$ac_objext 7711echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7712eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7713_lt_compiler_boilerplate=`cat conftest.err` 7714$RM conftest* 7715 7716ac_outfile=conftest.$ac_objext 7717echo "$lt_simple_link_test_code" >conftest.$ac_ext 7718eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7719_lt_linker_boilerplate=`cat conftest.err` 7720$RM -r conftest* 7721 7722 7723## CAVEAT EMPTOR: 7724## There is no encapsulation within the following macros, do not change 7725## the running order or otherwise move them around unless you know exactly 7726## what you are doing... 7727if test -n "$compiler"; then 7728 7729lt_prog_compiler_no_builtin_flag= 7730 7731if test "$GCC" = yes; then 7732 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7733 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7735$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7736if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 lt_cv_prog_compiler_rtti_exceptions=no 7740 ac_outfile=conftest.$ac_objext 7741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7742 lt_compiler_flag="-fno-rtti -fno-exceptions" 7743 # Insert the option either (1) after the last *FLAGS variable, or 7744 # (2) before a word containing "conftest.", or (3) at the end. 7745 # Note that $ac_compile itself does not contain backslashes and begins 7746 # with a dollar sign (not a hyphen), so the echo should work correctly. 7747 # The option is referenced via a variable to avoid confusing sed. 7748 lt_compile=`echo "$ac_compile" | $SED \ 7749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7751 -e 's:$: $lt_compiler_flag:'` 7752 (eval echo "\"\$as_me:7720: $lt_compile\"" >&5) 7753 (eval "$lt_compile" 2>conftest.err) 7754 ac_status=$? 7755 cat conftest.err >&5 7756 echo "$as_me:7724: \$? = $ac_status" >&5 7757 if (exit $ac_status) && test -s "$ac_outfile"; then 7758 # The compiler can only warn and ignore the option if not recognized 7759 # So say no if there are warnings other than the usual output. 7760 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7763 lt_cv_prog_compiler_rtti_exceptions=yes 7764 fi 7765 fi 7766 $RM conftest* 7767 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7770$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7771 7772if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7773 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7774else 7775 : 7776fi 7777 7778fi 7779 7780 7781 7782 7783 7784 7785 lt_prog_compiler_wl= 7786lt_prog_compiler_pic= 7787lt_prog_compiler_static= 7788 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7790$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7791 7792 if test "$GCC" = yes; then 7793 lt_prog_compiler_wl='-Wl,' 7794 lt_prog_compiler_static='-static' 7795 7796 case $host_os in 7797 aix*) 7798 # All AIX code is PIC. 7799 if test "$host_cpu" = ia64; then 7800 # AIX 5 now supports IA64 processor 7801 lt_prog_compiler_static='-Bstatic' 7802 fi 7803 ;; 7804 7805 amigaos*) 7806 case $host_cpu in 7807 powerpc) 7808 # see comment about AmigaOS4 .so support 7809 lt_prog_compiler_pic='-fPIC' 7810 ;; 7811 m68k) 7812 # FIXME: we need at least 68020 code to build shared libraries, but 7813 # adding the `-m68020' flag to GCC prevents building anything better, 7814 # like `-m68040'. 7815 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7816 ;; 7817 esac 7818 ;; 7819 7820 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7821 # PIC is the default for these OSes. 7822 ;; 7823 7824 mingw* | cygwin* | pw32* | os2* | cegcc*) 7825 # This hack is so that the source file can tell whether it is being 7826 # built for inclusion in a dll (and should export symbols for example). 7827 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7828 # (--disable-auto-import) libraries 7829 lt_prog_compiler_pic='-DDLL_EXPORT' 7830 ;; 7831 7832 darwin* | rhapsody*) 7833 # PIC is the default on this platform 7834 # Common symbols not allowed in MH_DYLIB files 7835 lt_prog_compiler_pic='-fno-common' 7836 ;; 7837 7838 hpux*) 7839 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7840 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7841 # sets the default TLS model and affects inlining. 7842 case $host_cpu in 7843 hppa*64*) 7844 # +Z the default 7845 ;; 7846 *) 7847 lt_prog_compiler_pic='-fPIC' 7848 ;; 7849 esac 7850 ;; 7851 7852 interix[3-9]*) 7853 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7854 # Instead, we relocate shared libraries at runtime. 7855 ;; 7856 7857 msdosdjgpp*) 7858 # Just because we use GCC doesn't mean we suddenly get shared libraries 7859 # on systems that don't support them. 7860 lt_prog_compiler_can_build_shared=no 7861 enable_shared=no 7862 ;; 7863 7864 *nto* | *qnx*) 7865 # QNX uses GNU C++, but need to define -shared option too, otherwise 7866 # it will coredump. 7867 lt_prog_compiler_pic='-fPIC -shared' 7868 ;; 7869 7870 sysv4*MP*) 7871 if test -d /usr/nec; then 7872 lt_prog_compiler_pic=-Kconform_pic 7873 fi 7874 ;; 7875 7876 *) 7877 lt_prog_compiler_pic='-fPIC' 7878 ;; 7879 esac 7880 else 7881 # PORTME Check for flag to pass linker flags through the system compiler. 7882 case $host_os in 7883 aix*) 7884 lt_prog_compiler_wl='-Wl,' 7885 if test "$host_cpu" = ia64; then 7886 # AIX 5 now supports IA64 processor 7887 lt_prog_compiler_static='-Bstatic' 7888 else 7889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7890 fi 7891 ;; 7892 7893 mingw* | cygwin* | pw32* | os2* | cegcc*) 7894 # This hack is so that the source file can tell whether it is being 7895 # built for inclusion in a dll (and should export symbols for example). 7896 lt_prog_compiler_pic='-DDLL_EXPORT' 7897 ;; 7898 7899 hpux9* | hpux10* | hpux11*) 7900 lt_prog_compiler_wl='-Wl,' 7901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7902 # not for PA HP-UX. 7903 case $host_cpu in 7904 hppa*64*|ia64*) 7905 # +Z the default 7906 ;; 7907 *) 7908 lt_prog_compiler_pic='+Z' 7909 ;; 7910 esac 7911 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7912 lt_prog_compiler_static='${wl}-a ${wl}archive' 7913 ;; 7914 7915 irix5* | irix6* | nonstopux*) 7916 lt_prog_compiler_wl='-Wl,' 7917 # PIC (with -KPIC) is the default. 7918 lt_prog_compiler_static='-non_shared' 7919 ;; 7920 7921 linux* | k*bsd*-gnu) 7922 case $cc_basename in 7923 # old Intel for x86_64 which still supported -KPIC. 7924 ecc*) 7925 lt_prog_compiler_wl='-Wl,' 7926 lt_prog_compiler_pic='-KPIC' 7927 lt_prog_compiler_static='-static' 7928 ;; 7929 # icc used to be incompatible with GCC. 7930 # ICC 10 doesn't accept -KPIC any more. 7931 icc* | ifort*) 7932 lt_prog_compiler_wl='-Wl,' 7933 lt_prog_compiler_pic='-fPIC' 7934 lt_prog_compiler_static='-static' 7935 ;; 7936 # Lahey Fortran 8.1. 7937 lf95*) 7938 lt_prog_compiler_wl='-Wl,' 7939 lt_prog_compiler_pic='--shared' 7940 lt_prog_compiler_static='--static' 7941 ;; 7942 pgcc* | pgf77* | pgf90* | pgf95*) 7943 # Portland Group compilers (*not* the Pentium gcc compiler, 7944 # which looks to be a dead project) 7945 lt_prog_compiler_wl='-Wl,' 7946 lt_prog_compiler_pic='-fpic' 7947 lt_prog_compiler_static='-Bstatic' 7948 ;; 7949 ccc*) 7950 lt_prog_compiler_wl='-Wl,' 7951 # All Alpha code is PIC. 7952 lt_prog_compiler_static='-non_shared' 7953 ;; 7954 xl*) 7955 # IBM XL C 8.0/Fortran 10.1 on PPC 7956 lt_prog_compiler_wl='-Wl,' 7957 lt_prog_compiler_pic='-qpic' 7958 lt_prog_compiler_static='-qstaticlink' 7959 ;; 7960 *) 7961 case `$CC -V 2>&1 | sed 5q` in 7962 *Sun\ C*) 7963 # Sun C 5.9 7964 lt_prog_compiler_pic='-KPIC' 7965 lt_prog_compiler_static='-Bstatic' 7966 lt_prog_compiler_wl='-Wl,' 7967 ;; 7968 *Sun\ F*) 7969 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7970 lt_prog_compiler_pic='-KPIC' 7971 lt_prog_compiler_static='-Bstatic' 7972 lt_prog_compiler_wl='' 7973 ;; 7974 esac 7975 ;; 7976 esac 7977 ;; 7978 7979 newsos6) 7980 lt_prog_compiler_pic='-KPIC' 7981 lt_prog_compiler_static='-Bstatic' 7982 ;; 7983 7984 *nto* | *qnx*) 7985 # QNX uses GNU C++, but need to define -shared option too, otherwise 7986 # it will coredump. 7987 lt_prog_compiler_pic='-fPIC -shared' 7988 ;; 7989 7990 osf3* | osf4* | osf5*) 7991 lt_prog_compiler_wl='-Wl,' 7992 # All OSF/1 code is PIC. 7993 lt_prog_compiler_static='-non_shared' 7994 ;; 7995 7996 rdos*) 7997 lt_prog_compiler_static='-non_shared' 7998 ;; 7999 8000 solaris*) 8001 lt_prog_compiler_pic='-KPIC' 8002 lt_prog_compiler_static='-Bstatic' 8003 case $cc_basename in 8004 f77* | f90* | f95*) 8005 lt_prog_compiler_wl='-Qoption ld ';; 8006 *) 8007 lt_prog_compiler_wl='-Wl,';; 8008 esac 8009 ;; 8010 8011 sunos4*) 8012 lt_prog_compiler_wl='-Qoption ld ' 8013 lt_prog_compiler_pic='-PIC' 8014 lt_prog_compiler_static='-Bstatic' 8015 ;; 8016 8017 sysv4 | sysv4.2uw2* | sysv4.3*) 8018 lt_prog_compiler_wl='-Wl,' 8019 lt_prog_compiler_pic='-KPIC' 8020 lt_prog_compiler_static='-Bstatic' 8021 ;; 8022 8023 sysv4*MP*) 8024 if test -d /usr/nec ;then 8025 lt_prog_compiler_pic='-Kconform_pic' 8026 lt_prog_compiler_static='-Bstatic' 8027 fi 8028 ;; 8029 8030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8031 lt_prog_compiler_wl='-Wl,' 8032 lt_prog_compiler_pic='-KPIC' 8033 lt_prog_compiler_static='-Bstatic' 8034 ;; 8035 8036 unicos*) 8037 lt_prog_compiler_wl='-Wl,' 8038 lt_prog_compiler_can_build_shared=no 8039 ;; 8040 8041 uts4*) 8042 lt_prog_compiler_pic='-pic' 8043 lt_prog_compiler_static='-Bstatic' 8044 ;; 8045 8046 *) 8047 lt_prog_compiler_can_build_shared=no 8048 ;; 8049 esac 8050 fi 8051 8052case $host_os in 8053 # For platforms which do not support PIC, -DPIC is meaningless: 8054 *djgpp*) 8055 lt_prog_compiler_pic= 8056 ;; 8057 *) 8058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8059 ;; 8060esac 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8062$as_echo "$lt_prog_compiler_pic" >&6; } 8063 8064 8065 8066 8067 8068 8069# 8070# Check to make sure the PIC flag actually works. 8071# 8072if test -n "$lt_prog_compiler_pic"; then 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8074$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8075if ${lt_cv_prog_compiler_pic_works+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 lt_cv_prog_compiler_pic_works=no 8079 ac_outfile=conftest.$ac_objext 8080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8082 # Insert the option either (1) after the last *FLAGS variable, or 8083 # (2) before a word containing "conftest.", or (3) at the end. 8084 # Note that $ac_compile itself does not contain backslashes and begins 8085 # with a dollar sign (not a hyphen), so the echo should work correctly. 8086 # The option is referenced via a variable to avoid confusing sed. 8087 lt_compile=`echo "$ac_compile" | $SED \ 8088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8090 -e 's:$: $lt_compiler_flag:'` 8091 (eval echo "\"\$as_me:8059: $lt_compile\"" >&5) 8092 (eval "$lt_compile" 2>conftest.err) 8093 ac_status=$? 8094 cat conftest.err >&5 8095 echo "$as_me:8063: \$? = $ac_status" >&5 8096 if (exit $ac_status) && test -s "$ac_outfile"; then 8097 # The compiler can only warn and ignore the option if not recognized 8098 # So say no if there are warnings other than the usual output. 8099 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8102 lt_cv_prog_compiler_pic_works=yes 8103 fi 8104 fi 8105 $RM conftest* 8106 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8109$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8110 8111if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8112 case $lt_prog_compiler_pic in 8113 "" | " "*) ;; 8114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8115 esac 8116else 8117 lt_prog_compiler_pic= 8118 lt_prog_compiler_can_build_shared=no 8119fi 8120 8121fi 8122 8123 8124 8125 8126 8127 8128# 8129# Check to make sure the static flag actually works. 8130# 8131wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8133$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8134if ${lt_cv_prog_compiler_static_works+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 lt_cv_prog_compiler_static_works=no 8138 save_LDFLAGS="$LDFLAGS" 8139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8140 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8142 # The linker can only warn and ignore the option if not recognized 8143 # So say no if there are warnings 8144 if test -s conftest.err; then 8145 # Append any errors to the config.log. 8146 cat conftest.err 1>&5 8147 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8149 if diff conftest.exp conftest.er2 >/dev/null; then 8150 lt_cv_prog_compiler_static_works=yes 8151 fi 8152 else 8153 lt_cv_prog_compiler_static_works=yes 8154 fi 8155 fi 8156 $RM -r conftest* 8157 LDFLAGS="$save_LDFLAGS" 8158 8159fi 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8161$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8162 8163if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8164 : 8165else 8166 lt_prog_compiler_static= 8167fi 8168 8169 8170 8171 8172 8173 8174 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8176$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8177if ${lt_cv_prog_compiler_c_o+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 lt_cv_prog_compiler_c_o=no 8181 $RM -r conftest 2>/dev/null 8182 mkdir conftest 8183 cd conftest 8184 mkdir out 8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8186 8187 lt_compiler_flag="-o out/conftest2.$ac_objext" 8188 # Insert the option either (1) after the last *FLAGS variable, or 8189 # (2) before a word containing "conftest.", or (3) at the end. 8190 # Note that $ac_compile itself does not contain backslashes and begins 8191 # with a dollar sign (not a hyphen), so the echo should work correctly. 8192 lt_compile=`echo "$ac_compile" | $SED \ 8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8195 -e 's:$: $lt_compiler_flag:'` 8196 (eval echo "\"\$as_me:8164: $lt_compile\"" >&5) 8197 (eval "$lt_compile" 2>out/conftest.err) 8198 ac_status=$? 8199 cat out/conftest.err >&5 8200 echo "$as_me:8168: \$? = $ac_status" >&5 8201 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8202 then 8203 # The compiler can only warn and ignore the option if not recognized 8204 # So say no if there are warnings 8205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8208 lt_cv_prog_compiler_c_o=yes 8209 fi 8210 fi 8211 chmod u+w . 2>&5 8212 $RM conftest* 8213 # SGI C++ compiler will create directory out/ii_files/ for 8214 # template instantiation 8215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8216 $RM out/* && rmdir out 8217 cd .. 8218 $RM -r conftest 8219 $RM conftest* 8220 8221fi 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8223$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8224 8225 8226 8227 8228 8229 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8231$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8232if ${lt_cv_prog_compiler_c_o+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 lt_cv_prog_compiler_c_o=no 8236 $RM -r conftest 2>/dev/null 8237 mkdir conftest 8238 cd conftest 8239 mkdir out 8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8241 8242 lt_compiler_flag="-o out/conftest2.$ac_objext" 8243 # Insert the option either (1) after the last *FLAGS variable, or 8244 # (2) before a word containing "conftest.", or (3) at the end. 8245 # Note that $ac_compile itself does not contain backslashes and begins 8246 # with a dollar sign (not a hyphen), so the echo should work correctly. 8247 lt_compile=`echo "$ac_compile" | $SED \ 8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8250 -e 's:$: $lt_compiler_flag:'` 8251 (eval echo "\"\$as_me:8219: $lt_compile\"" >&5) 8252 (eval "$lt_compile" 2>out/conftest.err) 8253 ac_status=$? 8254 cat out/conftest.err >&5 8255 echo "$as_me:8223: \$? = $ac_status" >&5 8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8257 then 8258 # The compiler can only warn and ignore the option if not recognized 8259 # So say no if there are warnings 8260 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8263 lt_cv_prog_compiler_c_o=yes 8264 fi 8265 fi 8266 chmod u+w . 2>&5 8267 $RM conftest* 8268 # SGI C++ compiler will create directory out/ii_files/ for 8269 # template instantiation 8270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8271 $RM out/* && rmdir out 8272 cd .. 8273 $RM -r conftest 8274 $RM conftest* 8275 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8278$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8279 8280 8281 8282 8283hard_links="nottested" 8284if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8285 # do not overwrite the value of need_locks provided by the user 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8287$as_echo_n "checking if we can lock with hard links... " >&6; } 8288 hard_links=yes 8289 $RM conftest* 8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8291 touch conftest.a 8292 ln conftest.a conftest.b 2>&5 || hard_links=no 8293 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8295$as_echo "$hard_links" >&6; } 8296 if test "$hard_links" = no; then 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8298$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8299 need_locks=warn 8300 fi 8301else 8302 need_locks=no 8303fi 8304 8305 8306 8307 8308 8309 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8311$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8312 8313 runpath_var= 8314 allow_undefined_flag= 8315 always_export_symbols=no 8316 archive_cmds= 8317 archive_expsym_cmds= 8318 compiler_needs_object=no 8319 enable_shared_with_static_runtimes=no 8320 export_dynamic_flag_spec= 8321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8322 hardcode_automatic=no 8323 hardcode_direct=no 8324 hardcode_direct_absolute=no 8325 hardcode_libdir_flag_spec= 8326 hardcode_libdir_flag_spec_ld= 8327 hardcode_libdir_separator= 8328 hardcode_minus_L=no 8329 hardcode_shlibpath_var=unsupported 8330 inherit_rpath=no 8331 link_all_deplibs=unknown 8332 module_cmds= 8333 module_expsym_cmds= 8334 old_archive_from_new_cmds= 8335 old_archive_from_expsyms_cmds= 8336 thread_safe_flag_spec= 8337 whole_archive_flag_spec= 8338 # include_expsyms should be a list of space-separated symbols to be *always* 8339 # included in the symbol list 8340 include_expsyms= 8341 # exclude_expsyms can be an extended regexp of symbols to exclude 8342 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8344 # as well as any symbol that contains `d'. 8345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8347 # platforms (ab)use it in PIC code, but their linkers get confused if 8348 # the symbol is explicitly referenced. Since portable code cannot 8349 # rely on this symbol name, it's probably fine to never include it in 8350 # preloaded symbol tables. 8351 # Exclude shared library initialization/finalization symbols. 8352 extract_expsyms_cmds= 8353 8354 case $host_os in 8355 cygwin* | mingw* | pw32* | cegcc*) 8356 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8357 # When not using gcc, we currently assume that we are using 8358 # Microsoft Visual C++. 8359 if test "$GCC" != yes; then 8360 with_gnu_ld=no 8361 fi 8362 ;; 8363 interix*) 8364 # we just hope/assume this is gcc and not c89 (= MSVC++) 8365 with_gnu_ld=yes 8366 ;; 8367 openbsd*) 8368 with_gnu_ld=no 8369 ;; 8370 esac 8371 8372 ld_shlibs=yes 8373 if test "$with_gnu_ld" = yes; then 8374 # If archive_cmds runs LD, not CC, wlarc should be empty 8375 wlarc='${wl}' 8376 8377 # Set some defaults for GNU ld with shared library support. These 8378 # are reset later if shared libraries are not supported. Putting them 8379 # here allows them to be overridden if necessary. 8380 runpath_var=LD_RUN_PATH 8381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8382 export_dynamic_flag_spec='${wl}--export-dynamic' 8383 # ancient GNU ld didn't support --whole-archive et. al. 8384 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8385 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8386 else 8387 whole_archive_flag_spec= 8388 fi 8389 supports_anon_versioning=no 8390 case `$LD -v 2>&1` in 8391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8394 *\ 2.11.*) ;; # other 2.11 versions 8395 *) supports_anon_versioning=yes ;; 8396 esac 8397 8398 # See if GNU ld supports shared libraries. 8399 case $host_os in 8400 aix[3-9]*) 8401 # On AIX/PPC, the GNU linker is very broken 8402 if test "$host_cpu" != ia64; then 8403 ld_shlibs=no 8404 cat <<_LT_EOF 1>&2 8405 8406*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8407*** to be unable to reliably create shared libraries on AIX. 8408*** Therefore, libtool is disabling shared libraries support. If you 8409*** really care for shared libraries, you may want to modify your PATH 8410*** so that a non-GNU linker is found, and then restart. 8411 8412_LT_EOF 8413 fi 8414 ;; 8415 8416 amigaos*) 8417 case $host_cpu in 8418 powerpc) 8419 # see comment about AmigaOS4 .so support 8420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8421 archive_expsym_cmds='' 8422 ;; 8423 m68k) 8424 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)' 8425 hardcode_libdir_flag_spec='-L$libdir' 8426 hardcode_minus_L=yes 8427 ;; 8428 esac 8429 ;; 8430 8431 beos*) 8432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8433 allow_undefined_flag=unsupported 8434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8435 # support --undefined. This deserves some investigation. FIXME 8436 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8437 else 8438 ld_shlibs=no 8439 fi 8440 ;; 8441 8442 cygwin* | mingw* | pw32* | cegcc*) 8443 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8444 # as there is no search path for DLLs. 8445 hardcode_libdir_flag_spec='-L$libdir' 8446 allow_undefined_flag=unsupported 8447 always_export_symbols=no 8448 enable_shared_with_static_runtimes=yes 8449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8450 8451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8453 # If the export-symbols file already is a .def file (1st line 8454 # is EXPORTS), use it as is; otherwise, prepend... 8455 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8456 cp $export_symbols $output_objdir/$soname.def; 8457 else 8458 echo EXPORTS > $output_objdir/$soname.def; 8459 cat $export_symbols >> $output_objdir/$soname.def; 8460 fi~ 8461 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8462 else 8463 ld_shlibs=no 8464 fi 8465 ;; 8466 8467 interix[3-9]*) 8468 hardcode_direct=no 8469 hardcode_shlibpath_var=no 8470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8471 export_dynamic_flag_spec='${wl}-E' 8472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8473 # Instead, shared libraries are loaded at an image base (0x10000000 by 8474 # default) and relocated if they conflict, which is a slow very memory 8475 # consuming and fragmenting process. To avoid this, we pick a random, 8476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8477 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8479 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' 8480 ;; 8481 8482 gnu* | linux* | tpf* | k*bsd*-gnu) 8483 tmp_diet=no 8484 if test "$host_os" = linux-dietlibc; then 8485 case $cc_basename in 8486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8487 esac 8488 fi 8489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8490 && test "$tmp_diet" = no 8491 then 8492 tmp_addflag= 8493 tmp_sharedflag='-shared' 8494 case $cc_basename,$host_cpu in 8495 pgcc*) # Portland Group C compiler 8496 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' 8497 tmp_addflag=' $pic_flag' 8498 ;; 8499 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8500 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' 8501 tmp_addflag=' $pic_flag -Mnomain' ;; 8502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8503 tmp_addflag=' -i_dynamic' ;; 8504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8505 tmp_addflag=' -i_dynamic -nofor_main' ;; 8506 ifc* | ifort*) # Intel Fortran compiler 8507 tmp_addflag=' -nofor_main' ;; 8508 lf95*) # Lahey Fortran 8.1 8509 whole_archive_flag_spec= 8510 tmp_sharedflag='--shared' ;; 8511 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8512 tmp_sharedflag='-qmkshrobj' 8513 tmp_addflag= ;; 8514 esac 8515 case `$CC -V 2>&1 | sed 5q` in 8516 *Sun\ C*) # Sun C 5.9 8517 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' 8518 compiler_needs_object=yes 8519 tmp_sharedflag='-G' ;; 8520 *Sun\ F*) # Sun Fortran 8.3 8521 tmp_sharedflag='-G' ;; 8522 esac 8523 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8524 8525 if test "x$supports_anon_versioning" = xyes; then 8526 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8528 echo "local: *; };" >> $output_objdir/$libname.ver~ 8529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8530 fi 8531 8532 case $cc_basename in 8533 xlf*) 8534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8535 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8536 hardcode_libdir_flag_spec= 8537 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8538 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8539 if test "x$supports_anon_versioning" = xyes; then 8540 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8542 echo "local: *; };" >> $output_objdir/$libname.ver~ 8543 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8544 fi 8545 ;; 8546 esac 8547 else 8548 ld_shlibs=no 8549 fi 8550 ;; 8551 8552 netbsd*) 8553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8554 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8555 wlarc= 8556 else 8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8559 fi 8560 ;; 8561 8562 solaris*) 8563 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8564 ld_shlibs=no 8565 cat <<_LT_EOF 1>&2 8566 8567*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8568*** create shared libraries on Solaris systems. Therefore, libtool 8569*** is disabling shared libraries support. We urge you to upgrade GNU 8570*** binutils to release 2.9.1 or newer. Another option is to modify 8571*** your PATH or compiler configuration so that the native linker is 8572*** used, and then restart. 8573 8574_LT_EOF 8575 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8578 else 8579 ld_shlibs=no 8580 fi 8581 ;; 8582 8583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8584 case `$LD -v 2>&1` in 8585 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8586 ld_shlibs=no 8587 cat <<_LT_EOF 1>&2 8588 8589*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8590*** reliably create shared libraries on SCO systems. Therefore, libtool 8591*** is disabling shared libraries support. We urge you to upgrade GNU 8592*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8593*** your PATH or compiler configuration so that the native linker is 8594*** used, and then restart. 8595 8596_LT_EOF 8597 ;; 8598 *) 8599 # For security reasons, it is highly recommended that you always 8600 # use absolute paths for naming shared libraries, and exclude the 8601 # DT_RUNPATH tag from executables and libraries. But doing so 8602 # requires that you compile everything twice, which is a pain. 8603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8607 else 8608 ld_shlibs=no 8609 fi 8610 ;; 8611 esac 8612 ;; 8613 8614 sunos4*) 8615 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8616 wlarc= 8617 hardcode_direct=yes 8618 hardcode_shlibpath_var=no 8619 ;; 8620 8621 *) 8622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8625 else 8626 ld_shlibs=no 8627 fi 8628 ;; 8629 esac 8630 8631 if test "$ld_shlibs" = no; then 8632 runpath_var= 8633 hardcode_libdir_flag_spec= 8634 export_dynamic_flag_spec= 8635 whole_archive_flag_spec= 8636 fi 8637 else 8638 # PORTME fill in a description of your system's linker (not GNU ld) 8639 case $host_os in 8640 aix3*) 8641 allow_undefined_flag=unsupported 8642 always_export_symbols=yes 8643 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' 8644 # Note: this linker hardcodes the directories in LIBPATH if there 8645 # are no directories specified by -L. 8646 hardcode_minus_L=yes 8647 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8648 # Neither direct hardcoding nor static linking is supported with a 8649 # broken collect2. 8650 hardcode_direct=unsupported 8651 fi 8652 ;; 8653 8654 aix[4-9]*) 8655 if test "$host_cpu" = ia64; then 8656 # On IA64, the linker does run time linking by default, so we don't 8657 # have to do anything special. 8658 aix_use_runtimelinking=no 8659 exp_sym_flag='-Bexport' 8660 no_entry_flag="" 8661 else 8662 # If we're using GNU nm, then we don't want the "-C" option. 8663 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8664 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8665 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' 8666 else 8667 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' 8668 fi 8669 aix_use_runtimelinking=no 8670 8671 # Test if we are trying to use run time linking or normal 8672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8673 # need to do runtime linking. 8674 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8675 for ld_flag in $LDFLAGS; do 8676 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8677 aix_use_runtimelinking=yes 8678 break 8679 fi 8680 done 8681 ;; 8682 esac 8683 8684 exp_sym_flag='-bexport' 8685 no_entry_flag='-bnoentry' 8686 fi 8687 8688 # When large executables or shared objects are built, AIX ld can 8689 # have problems creating the table of contents. If linking a library 8690 # or program results in "error TOC overflow" add -mminimal-toc to 8691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8693 8694 archive_cmds='' 8695 hardcode_direct=yes 8696 hardcode_direct_absolute=yes 8697 hardcode_libdir_separator=':' 8698 link_all_deplibs=yes 8699 file_list_spec='${wl}-f,' 8700 8701 if test "$GCC" = yes; then 8702 case $host_os in aix4.[012]|aix4.[012].*) 8703 # We only want to do this on AIX 4.2 and lower, the check 8704 # below for broken collect2 doesn't work under 4.3+ 8705 collect2name=`${CC} -print-prog-name=collect2` 8706 if test -f "$collect2name" && 8707 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8708 then 8709 # We have reworked collect2 8710 : 8711 else 8712 # We have old collect2 8713 hardcode_direct=unsupported 8714 # It fails to find uninstalled libraries when the uninstalled 8715 # path is not listed in the libpath. Setting hardcode_minus_L 8716 # to unsupported forces relinking 8717 hardcode_minus_L=yes 8718 hardcode_libdir_flag_spec='-L$libdir' 8719 hardcode_libdir_separator= 8720 fi 8721 ;; 8722 esac 8723 shared_flag='-shared' 8724 if test "$aix_use_runtimelinking" = yes; then 8725 shared_flag="$shared_flag "'${wl}-G' 8726 fi 8727 else 8728 # not using gcc 8729 if test "$host_cpu" = ia64; then 8730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8731 # chokes on -Wl,-G. The following line is correct: 8732 shared_flag='-G' 8733 else 8734 if test "$aix_use_runtimelinking" = yes; then 8735 shared_flag='${wl}-G' 8736 else 8737 shared_flag='${wl}-bM:SRE' 8738 fi 8739 fi 8740 fi 8741 8742 export_dynamic_flag_spec='${wl}-bexpall' 8743 # It seems that -bexpall does not export symbols beginning with 8744 # underscore (_), so it is better to generate a list of symbols to export. 8745 always_export_symbols=yes 8746 if test "$aix_use_runtimelinking" = yes; then 8747 # Warning - without using the other runtime loading flags (-brtl), 8748 # -berok will link without error, but may produce a broken library. 8749 allow_undefined_flag='-berok' 8750 # Determine the default libpath from the value encoded in an 8751 # empty executable. 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754 8755int 8756main () 8757{ 8758 8759 ; 8760 return 0; 8761} 8762_ACEOF 8763if ac_fn_c_try_link "$LINENO"; then : 8764 8765lt_aix_libpath_sed=' 8766 /Import File Strings/,/^$/ { 8767 /^0/ { 8768 s/^0 *\(.*\)$/\1/ 8769 p 8770 } 8771 }' 8772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8773# Check for a 64-bit object if we didn't find anything. 8774if test -z "$aix_libpath"; then 8775 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8776fi 8777fi 8778rm -f core conftest.err conftest.$ac_objext \ 8779 conftest$ac_exeext conftest.$ac_ext 8780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8781 8782 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8783 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" 8784 else 8785 if test "$host_cpu" = ia64; then 8786 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8787 allow_undefined_flag="-z nodefs" 8788 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" 8789 else 8790 # Determine the default libpath from the value encoded in an 8791 # empty executable. 8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793/* end confdefs.h. */ 8794 8795int 8796main () 8797{ 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803if ac_fn_c_try_link "$LINENO"; then : 8804 8805lt_aix_libpath_sed=' 8806 /Import File Strings/,/^$/ { 8807 /^0/ { 8808 s/^0 *\(.*\)$/\1/ 8809 p 8810 } 8811 }' 8812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8813# Check for a 64-bit object if we didn't find anything. 8814if test -z "$aix_libpath"; then 8815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8816fi 8817fi 8818rm -f core conftest.err conftest.$ac_objext \ 8819 conftest$ac_exeext conftest.$ac_ext 8820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8821 8822 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8823 # Warning - without using the other run time loading flags, 8824 # -berok will link without error, but may produce a broken library. 8825 no_undefined_flag=' ${wl}-bernotok' 8826 allow_undefined_flag=' ${wl}-berok' 8827 # Exported symbols can be pulled into shared objects from archives 8828 whole_archive_flag_spec='$convenience' 8829 archive_cmds_need_lc=yes 8830 # This is similar to how AIX traditionally builds its shared libraries. 8831 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' 8832 fi 8833 fi 8834 ;; 8835 8836 amigaos*) 8837 case $host_cpu in 8838 powerpc) 8839 # see comment about AmigaOS4 .so support 8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8841 archive_expsym_cmds='' 8842 ;; 8843 m68k) 8844 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)' 8845 hardcode_libdir_flag_spec='-L$libdir' 8846 hardcode_minus_L=yes 8847 ;; 8848 esac 8849 ;; 8850 8851 bsdi[45]*) 8852 export_dynamic_flag_spec=-rdynamic 8853 ;; 8854 8855 cygwin* | mingw* | pw32* | cegcc*) 8856 # When not using gcc, we currently assume that we are using 8857 # Microsoft Visual C++. 8858 # hardcode_libdir_flag_spec is actually meaningless, as there is 8859 # no search path for DLLs. 8860 hardcode_libdir_flag_spec=' ' 8861 allow_undefined_flag=unsupported 8862 # Tell ltmain to make .lib files, not .a files. 8863 libext=lib 8864 # Tell ltmain to make .dll files, not .so files. 8865 shrext_cmds=".dll" 8866 # FIXME: Setting linknames here is a bad hack. 8867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8868 # The linker will automatically build a .lib file if we build a DLL. 8869 old_archive_from_new_cmds='true' 8870 # FIXME: Should let the user specify the lib program. 8871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8872 fix_srcfile_path='`cygpath -w "$srcfile"`' 8873 enable_shared_with_static_runtimes=yes 8874 ;; 8875 8876 darwin* | rhapsody*) 8877 8878 8879 archive_cmds_need_lc=no 8880 hardcode_direct=no 8881 hardcode_automatic=yes 8882 hardcode_shlibpath_var=unsupported 8883 whole_archive_flag_spec='' 8884 link_all_deplibs=yes 8885 allow_undefined_flag="$_lt_dar_allow_undefined" 8886 case $cc_basename in 8887 ifort*) _lt_dar_can_shared=yes ;; 8888 *) _lt_dar_can_shared=$GCC ;; 8889 esac 8890 if test "$_lt_dar_can_shared" = "yes"; then 8891 output_verbose_link_cmd=echo 8892 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8893 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8894 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}" 8895 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}" 8896 8897 else 8898 ld_shlibs=no 8899 fi 8900 8901 ;; 8902 8903 dgux*) 8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8905 hardcode_libdir_flag_spec='-L$libdir' 8906 hardcode_shlibpath_var=no 8907 ;; 8908 8909 freebsd1*) 8910 ld_shlibs=no 8911 ;; 8912 8913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8914 # support. Future versions do this automatically, but an explicit c++rt0.o 8915 # does not break anything, and helps significantly (at the cost of a little 8916 # extra space). 8917 freebsd2.2*) 8918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8919 hardcode_libdir_flag_spec='-R$libdir' 8920 hardcode_direct=yes 8921 hardcode_shlibpath_var=no 8922 ;; 8923 8924 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8925 freebsd2*) 8926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8927 hardcode_direct=yes 8928 hardcode_minus_L=yes 8929 hardcode_shlibpath_var=no 8930 ;; 8931 8932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8933 freebsd* | dragonfly*) 8934 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8935 hardcode_libdir_flag_spec='-R$libdir' 8936 hardcode_direct=yes 8937 hardcode_shlibpath_var=no 8938 ;; 8939 8940 hpux9*) 8941 if test "$GCC" = yes; then 8942 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' 8943 else 8944 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' 8945 fi 8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8947 hardcode_libdir_separator=: 8948 hardcode_direct=yes 8949 8950 # hardcode_minus_L: Not really in the search PATH, 8951 # but as the default location of the library. 8952 hardcode_minus_L=yes 8953 export_dynamic_flag_spec='${wl}-E' 8954 ;; 8955 8956 hpux10*) 8957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8958 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8959 else 8960 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8961 fi 8962 if test "$with_gnu_ld" = no; then 8963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8964 hardcode_libdir_flag_spec_ld='+b $libdir' 8965 hardcode_libdir_separator=: 8966 hardcode_direct=yes 8967 hardcode_direct_absolute=yes 8968 export_dynamic_flag_spec='${wl}-E' 8969 # hardcode_minus_L: Not really in the search PATH, 8970 # but as the default location of the library. 8971 hardcode_minus_L=yes 8972 fi 8973 ;; 8974 8975 hpux11*) 8976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8977 case $host_cpu in 8978 hppa*64*) 8979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8980 ;; 8981 ia64*) 8982 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8983 ;; 8984 *) 8985 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8986 ;; 8987 esac 8988 else 8989 case $host_cpu in 8990 hppa*64*) 8991 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8992 ;; 8993 ia64*) 8994 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8995 ;; 8996 *) 8997 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8998 ;; 8999 esac 9000 fi 9001 if test "$with_gnu_ld" = no; then 9002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9003 hardcode_libdir_separator=: 9004 9005 case $host_cpu in 9006 hppa*64*|ia64*) 9007 hardcode_direct=no 9008 hardcode_shlibpath_var=no 9009 ;; 9010 *) 9011 hardcode_direct=yes 9012 hardcode_direct_absolute=yes 9013 export_dynamic_flag_spec='${wl}-E' 9014 9015 # hardcode_minus_L: Not really in the search PATH, 9016 # but as the default location of the library. 9017 hardcode_minus_L=yes 9018 ;; 9019 esac 9020 fi 9021 ;; 9022 9023 irix5* | irix6* | nonstopux*) 9024 if test "$GCC" = yes; then 9025 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' 9026 # Try to use the -exported_symbol ld option, if it does not 9027 # work, assume that -exports_file does not work either and 9028 # implicitly export all symbols. 9029 save_LDFLAGS="$LDFLAGS" 9030 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032/* end confdefs.h. */ 9033int foo(void) {} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 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' 9037 9038fi 9039rm -f core conftest.err conftest.$ac_objext \ 9040 conftest$ac_exeext conftest.$ac_ext 9041 LDFLAGS="$save_LDFLAGS" 9042 else 9043 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' 9044 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' 9045 fi 9046 archive_cmds_need_lc='no' 9047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9048 hardcode_libdir_separator=: 9049 inherit_rpath=yes 9050 link_all_deplibs=yes 9051 ;; 9052 9053 netbsd*) 9054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9056 else 9057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9058 fi 9059 hardcode_libdir_flag_spec='-R$libdir' 9060 hardcode_direct=yes 9061 hardcode_shlibpath_var=no 9062 ;; 9063 9064 newsos6) 9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9066 hardcode_direct=yes 9067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9068 hardcode_libdir_separator=: 9069 hardcode_shlibpath_var=no 9070 ;; 9071 9072 *nto* | *qnx*) 9073 ;; 9074 9075 openbsd*) 9076 if test -f /usr/libexec/ld.so; then 9077 hardcode_direct=yes 9078 hardcode_shlibpath_var=no 9079 hardcode_direct_absolute=yes 9080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9084 export_dynamic_flag_spec='${wl}-E' 9085 else 9086 case $host_os in 9087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9089 hardcode_libdir_flag_spec='-R$libdir' 9090 ;; 9091 *) 9092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9094 ;; 9095 esac 9096 fi 9097 else 9098 ld_shlibs=no 9099 fi 9100 ;; 9101 9102 os2*) 9103 hardcode_libdir_flag_spec='-L$libdir' 9104 hardcode_minus_L=yes 9105 allow_undefined_flag=unsupported 9106 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' 9107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9108 ;; 9109 9110 osf3*) 9111 if test "$GCC" = yes; then 9112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9113 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' 9114 else 9115 allow_undefined_flag=' -expect_unresolved \*' 9116 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' 9117 fi 9118 archive_cmds_need_lc='no' 9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9120 hardcode_libdir_separator=: 9121 ;; 9122 9123 osf4* | osf5*) # as osf3* with the addition of -msym flag 9124 if test "$GCC" = yes; then 9125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9126 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' 9127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9128 else 9129 allow_undefined_flag=' -expect_unresolved \*' 9130 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' 9131 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~ 9132 $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' 9133 9134 # Both c and cxx compiler support -rpath directly 9135 hardcode_libdir_flag_spec='-rpath $libdir' 9136 fi 9137 archive_cmds_need_lc='no' 9138 hardcode_libdir_separator=: 9139 ;; 9140 9141 solaris*) 9142 no_undefined_flag=' -z defs' 9143 if test "$GCC" = yes; then 9144 wlarc='${wl}' 9145 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9147 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9148 else 9149 case `$CC -V 2>&1` in 9150 *"Compilers 5.0"*) 9151 wlarc='' 9152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9155 ;; 9156 *) 9157 wlarc='${wl}' 9158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9161 ;; 9162 esac 9163 fi 9164 hardcode_libdir_flag_spec='-R$libdir' 9165 hardcode_shlibpath_var=no 9166 case $host_os in 9167 solaris2.[0-5] | solaris2.[0-5].*) ;; 9168 *) 9169 # The compiler driver will combine and reorder linker options, 9170 # but understands `-z linker_flag'. GCC discards it without `$wl', 9171 # but is careful enough not to reorder. 9172 # Supported since Solaris 2.6 (maybe 2.5.1?) 9173 if test "$GCC" = yes; then 9174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9175 else 9176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9177 fi 9178 ;; 9179 esac 9180 link_all_deplibs=yes 9181 ;; 9182 9183 sunos4*) 9184 if test "x$host_vendor" = xsequent; then 9185 # Use $CC to link under sequent, because it throws in some extra .o 9186 # files that make .init and .fini sections work. 9187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9188 else 9189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9190 fi 9191 hardcode_libdir_flag_spec='-L$libdir' 9192 hardcode_direct=yes 9193 hardcode_minus_L=yes 9194 hardcode_shlibpath_var=no 9195 ;; 9196 9197 sysv4) 9198 case $host_vendor in 9199 sni) 9200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9201 hardcode_direct=yes # is this really true??? 9202 ;; 9203 siemens) 9204 ## LD is ld it makes a PLAMLIB 9205 ## CC just makes a GrossModule. 9206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9207 reload_cmds='$CC -r -o $output$reload_objs' 9208 hardcode_direct=no 9209 ;; 9210 motorola) 9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9213 ;; 9214 esac 9215 runpath_var='LD_RUN_PATH' 9216 hardcode_shlibpath_var=no 9217 ;; 9218 9219 sysv4.3*) 9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9221 hardcode_shlibpath_var=no 9222 export_dynamic_flag_spec='-Bexport' 9223 ;; 9224 9225 sysv4*MP*) 9226 if test -d /usr/nec; then 9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9228 hardcode_shlibpath_var=no 9229 runpath_var=LD_RUN_PATH 9230 hardcode_runpath_var=yes 9231 ld_shlibs=yes 9232 fi 9233 ;; 9234 9235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9236 no_undefined_flag='${wl}-z,text' 9237 archive_cmds_need_lc=no 9238 hardcode_shlibpath_var=no 9239 runpath_var='LD_RUN_PATH' 9240 9241 if test "$GCC" = yes; then 9242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9244 else 9245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9247 fi 9248 ;; 9249 9250 sysv5* | sco3.2v5* | sco5v6*) 9251 # Note: We can NOT use -z defs as we might desire, because we do not 9252 # link with -lc, and that would cause any symbols used from libc to 9253 # always be unresolved, which means just about no library would 9254 # ever link correctly. If we're not using GNU ld we use -z text 9255 # though, which does catch some bad symbols but isn't as heavy-handed 9256 # as -z defs. 9257 no_undefined_flag='${wl}-z,text' 9258 allow_undefined_flag='${wl}-z,nodefs' 9259 archive_cmds_need_lc=no 9260 hardcode_shlibpath_var=no 9261 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9262 hardcode_libdir_separator=':' 9263 link_all_deplibs=yes 9264 export_dynamic_flag_spec='${wl}-Bexport' 9265 runpath_var='LD_RUN_PATH' 9266 9267 if test "$GCC" = yes; then 9268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9270 else 9271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9273 fi 9274 ;; 9275 9276 uts4*) 9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9278 hardcode_libdir_flag_spec='-L$libdir' 9279 hardcode_shlibpath_var=no 9280 ;; 9281 9282 *) 9283 ld_shlibs=no 9284 ;; 9285 esac 9286 9287 if test x$host_vendor = xsni; then 9288 case $host in 9289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9290 export_dynamic_flag_spec='${wl}-Blargedynsym' 9291 ;; 9292 esac 9293 fi 9294 fi 9295 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9297$as_echo "$ld_shlibs" >&6; } 9298test "$ld_shlibs" = no && can_build_shared=no 9299 9300with_gnu_ld=$with_gnu_ld 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316# 9317# Do we need to explicitly link libc? 9318# 9319case "x$archive_cmds_need_lc" in 9320x|xyes) 9321 # Assume -lc should be added 9322 archive_cmds_need_lc=yes 9323 9324 if test "$enable_shared" = yes && test "$GCC" = yes; then 9325 case $archive_cmds in 9326 *'~'*) 9327 # FIXME: we may have to deal with multi-command sequences. 9328 ;; 9329 '$CC '*) 9330 # Test whether the compiler implicitly links with -lc since on some 9331 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9332 # to ld, don't add -lc before -lgcc. 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9335 $RM conftest* 9336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9337 9338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9339 (eval $ac_compile) 2>&5 9340 ac_status=$? 9341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9342 test $ac_status = 0; } 2>conftest.err; then 9343 soname=conftest 9344 lib=conftest 9345 libobjs=conftest.$ac_objext 9346 deplibs= 9347 wl=$lt_prog_compiler_wl 9348 pic_flag=$lt_prog_compiler_pic 9349 compiler_flags=-v 9350 linker_flags=-v 9351 verstring= 9352 output_objdir=. 9353 libname=conftest 9354 lt_save_allow_undefined_flag=$allow_undefined_flag 9355 allow_undefined_flag= 9356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9357 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9358 ac_status=$? 9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9360 test $ac_status = 0; } 9361 then 9362 archive_cmds_need_lc=no 9363 else 9364 archive_cmds_need_lc=yes 9365 fi 9366 allow_undefined_flag=$lt_save_allow_undefined_flag 9367 else 9368 cat conftest.err 1>&5 9369 fi 9370 $RM conftest* 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9372$as_echo "$archive_cmds_need_lc" >&6; } 9373 ;; 9374 esac 9375 fi 9376 ;; 9377esac 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9536$as_echo_n "checking dynamic linker characteristics... " >&6; } 9537 9538if test "$GCC" = yes; then 9539 case $host_os in 9540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9541 *) lt_awk_arg="/^libraries:/" ;; 9542 esac 9543 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9544 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9545 # if the path contains ";" then we assume it to be the separator 9546 # otherwise default to the standard path separator (i.e. ":") - it is 9547 # assumed that no part of a normal pathname contains ";" but that should 9548 # okay in the real world where ";" in dirpaths is itself problematic. 9549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9550 else 9551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9552 fi 9553 # Ok, now we have the path, separated by spaces, we can step through it 9554 # and add multilib dir if necessary. 9555 lt_tmp_lt_search_path_spec= 9556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9557 for lt_sys_path in $lt_search_path_spec; do 9558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9560 else 9561 test -d "$lt_sys_path" && \ 9562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9563 fi 9564 done 9565 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9566BEGIN {RS=" "; FS="/|\n";} { 9567 lt_foo=""; 9568 lt_count=0; 9569 for (lt_i = NF; lt_i > 0; lt_i--) { 9570 if ($lt_i != "" && $lt_i != ".") { 9571 if ($lt_i == "..") { 9572 lt_count++; 9573 } else { 9574 if (lt_count == 0) { 9575 lt_foo="/" $lt_i lt_foo; 9576 } else { 9577 lt_count--; 9578 } 9579 } 9580 } 9581 } 9582 if (lt_foo != "") { lt_freq[lt_foo]++; } 9583 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9584}'` 9585 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9586else 9587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9588fi 9589library_names_spec= 9590libname_spec='lib$name' 9591soname_spec= 9592shrext_cmds=".so" 9593postinstall_cmds= 9594postuninstall_cmds= 9595finish_cmds= 9596finish_eval= 9597shlibpath_var= 9598shlibpath_overrides_runpath=unknown 9599version_type=none 9600dynamic_linker="$host_os ld.so" 9601sys_lib_dlsearch_path_spec="/lib /usr/lib" 9602need_lib_prefix=unknown 9603hardcode_into_libs=no 9604 9605# when you set need_version to no, make sure it does not cause -set_version 9606# flags to be left without arguments 9607need_version=unknown 9608 9609case $host_os in 9610aix3*) 9611 version_type=linux 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9613 shlibpath_var=LIBPATH 9614 9615 # AIX 3 has no versioning support, so we append a major version to the name. 9616 soname_spec='${libname}${release}${shared_ext}$major' 9617 ;; 9618 9619aix[4-9]*) 9620 version_type=linux 9621 need_lib_prefix=no 9622 need_version=no 9623 hardcode_into_libs=yes 9624 if test "$host_cpu" = ia64; then 9625 # AIX 5 supports IA64 9626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9627 shlibpath_var=LD_LIBRARY_PATH 9628 else 9629 # With GCC up to 2.95.x, collect2 would create an import file 9630 # for dependence libraries. The import file would start with 9631 # the line `#! .'. This would cause the generated library to 9632 # depend on `.', always an invalid library. This was fixed in 9633 # development snapshots of GCC prior to 3.0. 9634 case $host_os in 9635 aix4 | aix4.[01] | aix4.[01].*) 9636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9637 echo ' yes ' 9638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9639 : 9640 else 9641 can_build_shared=no 9642 fi 9643 ;; 9644 esac 9645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9646 # soname into executable. Probably we can add versioning support to 9647 # collect2, so additional links can be useful in future. 9648 if test "$aix_use_runtimelinking" = yes; then 9649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9650 # instead of lib<name>.a to let people know that these are not 9651 # typical AIX shared libraries. 9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9653 else 9654 # We preserve .a as extension for shared libraries through AIX4.2 9655 # and later when we are not doing run time linking. 9656 library_names_spec='${libname}${release}.a $libname.a' 9657 soname_spec='${libname}${release}${shared_ext}$major' 9658 fi 9659 shlibpath_var=LIBPATH 9660 fi 9661 ;; 9662 9663amigaos*) 9664 case $host_cpu in 9665 powerpc) 9666 # Since July 2007 AmigaOS4 officially supports .so libraries. 9667 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9669 ;; 9670 m68k) 9671 library_names_spec='$libname.ixlibrary $libname.a' 9672 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9673 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' 9674 ;; 9675 esac 9676 ;; 9677 9678beos*) 9679 library_names_spec='${libname}${shared_ext}' 9680 dynamic_linker="$host_os ld.so" 9681 shlibpath_var=LIBRARY_PATH 9682 ;; 9683 9684bsdi[45]*) 9685 version_type=linux 9686 need_version=no 9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9688 soname_spec='${libname}${release}${shared_ext}$major' 9689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9690 shlibpath_var=LD_LIBRARY_PATH 9691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9693 # the default ld.so.conf also contains /usr/contrib/lib and 9694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9695 # libtool to hard-code these into programs 9696 ;; 9697 9698cygwin* | mingw* | pw32* | cegcc*) 9699 version_type=windows 9700 shrext_cmds=".dll" 9701 need_version=no 9702 need_lib_prefix=no 9703 9704 case $GCC,$host_os in 9705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9706 library_names_spec='$libname.dll.a' 9707 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9708 postinstall_cmds='base_file=`basename \${file}`~ 9709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9710 dldir=$destdir/`dirname \$dlpath`~ 9711 test -d \$dldir || mkdir -p \$dldir~ 9712 $install_prog $dir/$dlname \$dldir/$dlname~ 9713 chmod a+x \$dldir/$dlname~ 9714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9716 fi' 9717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9718 dlpath=$dir/\$dldll~ 9719 $RM \$dlpath' 9720 shlibpath_overrides_runpath=yes 9721 9722 case $host_os in 9723 cygwin*) 9724 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9727 ;; 9728 mingw* | cegcc*) 9729 # MinGW DLLs use traditional 'lib' prefix 9730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9733 # It is most probably a Windows format PATH printed by 9734 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9735 # path with ; separators, and with drive letters. We can handle the 9736 # drive letters (cygwin fileutils understands them), so leave them, 9737 # especially as we might pass files found there to a mingw objdump, 9738 # which wouldn't understand a cygwinified path. Ahh. 9739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9740 else 9741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9742 fi 9743 ;; 9744 pw32*) 9745 # pw32 DLLs use 'pw' prefix rather than 'lib' 9746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9747 ;; 9748 esac 9749 ;; 9750 9751 *) 9752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9753 ;; 9754 esac 9755 dynamic_linker='Win32 ld.exe' 9756 # FIXME: first we should search . and the directory the executable is in 9757 shlibpath_var=PATH 9758 ;; 9759 9760darwin* | rhapsody*) 9761 dynamic_linker="$host_os dyld" 9762 version_type=darwin 9763 need_lib_prefix=no 9764 need_version=no 9765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9766 soname_spec='${libname}${release}${major}$shared_ext' 9767 shlibpath_overrides_runpath=yes 9768 shlibpath_var=DYLD_LIBRARY_PATH 9769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9770 9771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9773 ;; 9774 9775dgux*) 9776 version_type=linux 9777 need_lib_prefix=no 9778 need_version=no 9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9780 soname_spec='${libname}${release}${shared_ext}$major' 9781 shlibpath_var=LD_LIBRARY_PATH 9782 ;; 9783 9784freebsd1*) 9785 dynamic_linker=no 9786 ;; 9787 9788freebsd* | dragonfly*) 9789 # DragonFly does not have aout. When/if they implement a new 9790 # versioning mechanism, adjust this. 9791 if test -x /usr/bin/objformat; then 9792 objformat=`/usr/bin/objformat` 9793 else 9794 case $host_os in 9795 freebsd[123]*) objformat=aout ;; 9796 *) objformat=elf ;; 9797 esac 9798 fi 9799 version_type=freebsd-$objformat 9800 case $version_type in 9801 freebsd-elf*) 9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9803 need_version=no 9804 need_lib_prefix=no 9805 ;; 9806 freebsd-*) 9807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9808 need_version=yes 9809 ;; 9810 esac 9811 shlibpath_var=LD_LIBRARY_PATH 9812 case $host_os in 9813 freebsd2*) 9814 shlibpath_overrides_runpath=yes 9815 ;; 9816 freebsd3.[01]* | freebsdelf3.[01]*) 9817 shlibpath_overrides_runpath=yes 9818 hardcode_into_libs=yes 9819 ;; 9820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9822 shlibpath_overrides_runpath=no 9823 hardcode_into_libs=yes 9824 ;; 9825 *) # from 4.6 on, and DragonFly 9826 shlibpath_overrides_runpath=yes 9827 hardcode_into_libs=yes 9828 ;; 9829 esac 9830 ;; 9831 9832gnu*) 9833 version_type=linux 9834 need_lib_prefix=no 9835 need_version=no 9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9837 soname_spec='${libname}${release}${shared_ext}$major' 9838 shlibpath_var=LD_LIBRARY_PATH 9839 hardcode_into_libs=yes 9840 ;; 9841 9842hpux9* | hpux10* | hpux11*) 9843 # Give a soname corresponding to the major version so that dld.sl refuses to 9844 # link against other versions. 9845 version_type=sunos 9846 need_lib_prefix=no 9847 need_version=no 9848 case $host_cpu in 9849 ia64*) 9850 shrext_cmds='.so' 9851 hardcode_into_libs=yes 9852 dynamic_linker="$host_os dld.so" 9853 shlibpath_var=LD_LIBRARY_PATH 9854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 soname_spec='${libname}${release}${shared_ext}$major' 9857 if test "X$HPUX_IA64_MODE" = X32; then 9858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9859 else 9860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9861 fi 9862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9863 ;; 9864 hppa*64*) 9865 shrext_cmds='.sl' 9866 hardcode_into_libs=yes 9867 dynamic_linker="$host_os dld.sl" 9868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9871 soname_spec='${libname}${release}${shared_ext}$major' 9872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9874 ;; 9875 *) 9876 shrext_cmds='.sl' 9877 dynamic_linker="$host_os dld.sl" 9878 shlibpath_var=SHLIB_PATH 9879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9881 soname_spec='${libname}${release}${shared_ext}$major' 9882 ;; 9883 esac 9884 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9885 postinstall_cmds='chmod 555 $lib' 9886 ;; 9887 9888interix[3-9]*) 9889 version_type=linux 9890 need_lib_prefix=no 9891 need_version=no 9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9893 soname_spec='${libname}${release}${shared_ext}$major' 9894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9895 shlibpath_var=LD_LIBRARY_PATH 9896 shlibpath_overrides_runpath=no 9897 hardcode_into_libs=yes 9898 ;; 9899 9900irix5* | irix6* | nonstopux*) 9901 case $host_os in 9902 nonstopux*) version_type=nonstopux ;; 9903 *) 9904 if test "$lt_cv_prog_gnu_ld" = yes; then 9905 version_type=linux 9906 else 9907 version_type=irix 9908 fi ;; 9909 esac 9910 need_lib_prefix=no 9911 need_version=no 9912 soname_spec='${libname}${release}${shared_ext}$major' 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9914 case $host_os in 9915 irix5* | nonstopux*) 9916 libsuff= shlibsuff= 9917 ;; 9918 *) 9919 case $LD in # libtool.m4 will add one of these switches to LD 9920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9921 libsuff= shlibsuff= libmagic=32-bit;; 9922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9923 libsuff=32 shlibsuff=N32 libmagic=N32;; 9924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9925 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9926 *) libsuff= shlibsuff= libmagic=never-match;; 9927 esac 9928 ;; 9929 esac 9930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9931 shlibpath_overrides_runpath=no 9932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9934 hardcode_into_libs=yes 9935 ;; 9936 9937# No shared lib support for Linux oldld, aout, or coff. 9938linux*oldld* | linux*aout* | linux*coff*) 9939 dynamic_linker=no 9940 ;; 9941 9942# This must be Linux ELF. 9943linux* | k*bsd*-gnu) 9944 version_type=linux 9945 need_lib_prefix=no 9946 need_version=no 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9950 shlibpath_var=LD_LIBRARY_PATH 9951 shlibpath_overrides_runpath=no 9952 # Some binutils ld are patched to set DT_RUNPATH 9953 save_LDFLAGS=$LDFLAGS 9954 save_libdir=$libdir 9955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958/* end confdefs.h. */ 9959 9960int 9961main () 9962{ 9963 9964 ; 9965 return 0; 9966} 9967_ACEOF 9968if ac_fn_c_try_link "$LINENO"; then : 9969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9970 shlibpath_overrides_runpath=yes 9971fi 9972fi 9973rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext conftest.$ac_ext 9975 LDFLAGS=$save_LDFLAGS 9976 libdir=$save_libdir 9977 9978 # This implies no fast_install, which is unacceptable. 9979 # Some rework will be needed to allow for fast_install 9980 # before this can be enabled. 9981 hardcode_into_libs=yes 9982 9983 # Add ABI-specific directories to the system library path. 9984 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9985 9986 # Append ld.so.conf contents to the search path 9987 if test -f /etc/ld.so.conf; then 9988 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' ' '` 9989 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9990 fi 9991 9992 # We used to test for /lib/ld.so.1 and disable shared libraries on 9993 # powerpc, because MkLinux only supported shared libraries with the 9994 # GNU dynamic linker. Since this was broken with cross compilers, 9995 # most powerpc-linux boxes support dynamic linking these days and 9996 # people can always --disable-shared, the test was removed, and we 9997 # assume the GNU/Linux dynamic linker is in use. 9998 dynamic_linker='GNU/Linux ld.so' 9999 ;; 10000 10001netbsd*) 10002 version_type=sunos 10003 need_lib_prefix=no 10004 need_version=no 10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10008 dynamic_linker='NetBSD (a.out) ld.so' 10009 else 10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10011 soname_spec='${libname}${release}${shared_ext}$major' 10012 dynamic_linker='NetBSD ld.elf_so' 10013 fi 10014 shlibpath_var=LD_LIBRARY_PATH 10015 shlibpath_overrides_runpath=yes 10016 hardcode_into_libs=yes 10017 ;; 10018 10019newsos6) 10020 version_type=linux 10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10022 shlibpath_var=LD_LIBRARY_PATH 10023 shlibpath_overrides_runpath=yes 10024 ;; 10025 10026*nto* | *qnx*) 10027 version_type=qnx 10028 need_lib_prefix=no 10029 need_version=no 10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10031 soname_spec='${libname}${release}${shared_ext}$major' 10032 shlibpath_var=LD_LIBRARY_PATH 10033 shlibpath_overrides_runpath=no 10034 hardcode_into_libs=yes 10035 dynamic_linker='ldqnx.so' 10036 ;; 10037 10038openbsd*) 10039 version_type=sunos 10040 sys_lib_dlsearch_path_spec="/usr/lib" 10041 need_lib_prefix=no 10042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10043 case $host_os in 10044 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10045 *) need_version=no ;; 10046 esac 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10049 shlibpath_var=LD_LIBRARY_PATH 10050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10051 case $host_os in 10052 openbsd2.[89] | openbsd2.[89].*) 10053 shlibpath_overrides_runpath=no 10054 ;; 10055 *) 10056 shlibpath_overrides_runpath=yes 10057 ;; 10058 esac 10059 else 10060 shlibpath_overrides_runpath=yes 10061 fi 10062 ;; 10063 10064os2*) 10065 libname_spec='$name' 10066 shrext_cmds=".dll" 10067 need_lib_prefix=no 10068 library_names_spec='$libname${shared_ext} $libname.a' 10069 dynamic_linker='OS/2 ld.exe' 10070 shlibpath_var=LIBPATH 10071 ;; 10072 10073osf3* | osf4* | osf5*) 10074 version_type=osf 10075 need_lib_prefix=no 10076 need_version=no 10077 soname_spec='${libname}${release}${shared_ext}$major' 10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10079 shlibpath_var=LD_LIBRARY_PATH 10080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10082 ;; 10083 10084rdos*) 10085 dynamic_linker=no 10086 ;; 10087 10088solaris*) 10089 version_type=linux 10090 need_lib_prefix=no 10091 need_version=no 10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10093 soname_spec='${libname}${release}${shared_ext}$major' 10094 shlibpath_var=LD_LIBRARY_PATH 10095 shlibpath_overrides_runpath=yes 10096 hardcode_into_libs=yes 10097 # ldd complains unless libraries are executable 10098 postinstall_cmds='chmod +x $lib' 10099 ;; 10100 10101sunos4*) 10102 version_type=sunos 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10105 shlibpath_var=LD_LIBRARY_PATH 10106 shlibpath_overrides_runpath=yes 10107 if test "$with_gnu_ld" = yes; then 10108 need_lib_prefix=no 10109 fi 10110 need_version=yes 10111 ;; 10112 10113sysv4 | sysv4.3*) 10114 version_type=linux 10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10116 soname_spec='${libname}${release}${shared_ext}$major' 10117 shlibpath_var=LD_LIBRARY_PATH 10118 case $host_vendor in 10119 sni) 10120 shlibpath_overrides_runpath=no 10121 need_lib_prefix=no 10122 runpath_var=LD_RUN_PATH 10123 ;; 10124 siemens) 10125 need_lib_prefix=no 10126 ;; 10127 motorola) 10128 need_lib_prefix=no 10129 need_version=no 10130 shlibpath_overrides_runpath=no 10131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10132 ;; 10133 esac 10134 ;; 10135 10136sysv4*MP*) 10137 if test -d /usr/nec ;then 10138 version_type=linux 10139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10140 soname_spec='$libname${shared_ext}.$major' 10141 shlibpath_var=LD_LIBRARY_PATH 10142 fi 10143 ;; 10144 10145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10146 version_type=freebsd-elf 10147 need_lib_prefix=no 10148 need_version=no 10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10150 soname_spec='${libname}${release}${shared_ext}$major' 10151 shlibpath_var=LD_LIBRARY_PATH 10152 shlibpath_overrides_runpath=yes 10153 hardcode_into_libs=yes 10154 if test "$with_gnu_ld" = yes; then 10155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10156 else 10157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10158 case $host_os in 10159 sco3.2v5*) 10160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10161 ;; 10162 esac 10163 fi 10164 sys_lib_dlsearch_path_spec='/usr/lib' 10165 ;; 10166 10167tpf*) 10168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10169 version_type=linux 10170 need_lib_prefix=no 10171 need_version=no 10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10173 shlibpath_var=LD_LIBRARY_PATH 10174 shlibpath_overrides_runpath=no 10175 hardcode_into_libs=yes 10176 ;; 10177 10178uts4*) 10179 version_type=linux 10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10181 soname_spec='${libname}${release}${shared_ext}$major' 10182 shlibpath_var=LD_LIBRARY_PATH 10183 ;; 10184 10185*) 10186 dynamic_linker=no 10187 ;; 10188esac 10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10190$as_echo "$dynamic_linker" >&6; } 10191test "$dynamic_linker" = no && can_build_shared=no 10192 10193variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10194if test "$GCC" = yes; then 10195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10196fi 10197 10198if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10200fi 10201if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10203fi 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10292$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10293hardcode_action= 10294if test -n "$hardcode_libdir_flag_spec" || 10295 test -n "$runpath_var" || 10296 test "X$hardcode_automatic" = "Xyes" ; then 10297 10298 # We can hardcode non-existent directories. 10299 if test "$hardcode_direct" != no && 10300 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10301 # have to relink, otherwise we might link with an installed library 10302 # when we should be linking with a yet-to-be-installed one 10303 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10304 test "$hardcode_minus_L" != no; then 10305 # Linking always hardcodes the temporary library directory. 10306 hardcode_action=relink 10307 else 10308 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10309 hardcode_action=immediate 10310 fi 10311else 10312 # We cannot hardcode anything, or else we can only hardcode existing 10313 # directories. 10314 hardcode_action=unsupported 10315fi 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10317$as_echo "$hardcode_action" >&6; } 10318 10319if test "$hardcode_action" = relink || 10320 test "$inherit_rpath" = yes; then 10321 # Fast installation is not supported 10322 enable_fast_install=no 10323elif test "$shlibpath_overrides_runpath" = yes || 10324 test "$enable_shared" = no; then 10325 # Fast installation is not necessary 10326 enable_fast_install=needless 10327fi 10328 10329 10330 10331 10332 10333 10334 if test "x$enable_dlopen" != xyes; then 10335 enable_dlopen=unknown 10336 enable_dlopen_self=unknown 10337 enable_dlopen_self_static=unknown 10338else 10339 lt_cv_dlopen=no 10340 lt_cv_dlopen_libs= 10341 10342 case $host_os in 10343 beos*) 10344 lt_cv_dlopen="load_add_on" 10345 lt_cv_dlopen_libs= 10346 lt_cv_dlopen_self=yes 10347 ;; 10348 10349 mingw* | pw32* | cegcc*) 10350 lt_cv_dlopen="LoadLibrary" 10351 lt_cv_dlopen_libs= 10352 ;; 10353 10354 cygwin*) 10355 lt_cv_dlopen="dlopen" 10356 lt_cv_dlopen_libs= 10357 ;; 10358 10359 darwin*) 10360 # if libdl is installed we need to link against it 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10362$as_echo_n "checking for dlopen in -ldl... " >&6; } 10363if ${ac_cv_lib_dl_dlopen+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365else 10366 ac_check_lib_save_LIBS=$LIBS 10367LIBS="-ldl $LIBS" 10368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370 10371/* Override any GCC internal prototype to avoid an error. 10372 Use char because int might match the return type of a GCC 10373 builtin and then its argument prototype would still apply. */ 10374#ifdef __cplusplus 10375extern "C" 10376#endif 10377char dlopen (); 10378int 10379main () 10380{ 10381return dlopen (); 10382 ; 10383 return 0; 10384} 10385_ACEOF 10386if ac_fn_c_try_link "$LINENO"; then : 10387 ac_cv_lib_dl_dlopen=yes 10388else 10389 ac_cv_lib_dl_dlopen=no 10390fi 10391rm -f core conftest.err conftest.$ac_objext \ 10392 conftest$ac_exeext conftest.$ac_ext 10393LIBS=$ac_check_lib_save_LIBS 10394fi 10395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10396$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10397if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10399else 10400 10401 lt_cv_dlopen="dyld" 10402 lt_cv_dlopen_libs= 10403 lt_cv_dlopen_self=yes 10404 10405fi 10406 10407 ;; 10408 10409 *) 10410 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10411if test "x$ac_cv_func_shl_load" = xyes; then : 10412 lt_cv_dlopen="shl_load" 10413else 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10415$as_echo_n "checking for shl_load in -ldld... " >&6; } 10416if ${ac_cv_lib_dld_shl_load+:} false; then : 10417 $as_echo_n "(cached) " >&6 10418else 10419 ac_check_lib_save_LIBS=$LIBS 10420LIBS="-ldld $LIBS" 10421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424/* Override any GCC internal prototype to avoid an error. 10425 Use char because int might match the return type of a GCC 10426 builtin and then its argument prototype would still apply. */ 10427#ifdef __cplusplus 10428extern "C" 10429#endif 10430char shl_load (); 10431int 10432main () 10433{ 10434return shl_load (); 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439if ac_fn_c_try_link "$LINENO"; then : 10440 ac_cv_lib_dld_shl_load=yes 10441else 10442 ac_cv_lib_dld_shl_load=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext \ 10445 conftest$ac_exeext conftest.$ac_ext 10446LIBS=$ac_check_lib_save_LIBS 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10449$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10450if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10452else 10453 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10454if test "x$ac_cv_func_dlopen" = xyes; then : 10455 lt_cv_dlopen="dlopen" 10456else 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10458$as_echo_n "checking for dlopen in -ldl... " >&6; } 10459if ${ac_cv_lib_dl_dlopen+:} false; then : 10460 $as_echo_n "(cached) " >&6 10461else 10462 ac_check_lib_save_LIBS=$LIBS 10463LIBS="-ldl $LIBS" 10464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465/* end confdefs.h. */ 10466 10467/* Override any GCC internal prototype to avoid an error. 10468 Use char because int might match the return type of a GCC 10469 builtin and then its argument prototype would still apply. */ 10470#ifdef __cplusplus 10471extern "C" 10472#endif 10473char dlopen (); 10474int 10475main () 10476{ 10477return dlopen (); 10478 ; 10479 return 0; 10480} 10481_ACEOF 10482if ac_fn_c_try_link "$LINENO"; then : 10483 ac_cv_lib_dl_dlopen=yes 10484else 10485 ac_cv_lib_dl_dlopen=no 10486fi 10487rm -f core conftest.err conftest.$ac_objext \ 10488 conftest$ac_exeext conftest.$ac_ext 10489LIBS=$ac_check_lib_save_LIBS 10490fi 10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10492$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10493if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10495else 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10497$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10498if ${ac_cv_lib_svld_dlopen+:} false; then : 10499 $as_echo_n "(cached) " >&6 10500else 10501 ac_check_lib_save_LIBS=$LIBS 10502LIBS="-lsvld $LIBS" 10503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504/* end confdefs.h. */ 10505 10506/* Override any GCC internal prototype to avoid an error. 10507 Use char because int might match the return type of a GCC 10508 builtin and then its argument prototype would still apply. */ 10509#ifdef __cplusplus 10510extern "C" 10511#endif 10512char dlopen (); 10513int 10514main () 10515{ 10516return dlopen (); 10517 ; 10518 return 0; 10519} 10520_ACEOF 10521if ac_fn_c_try_link "$LINENO"; then : 10522 ac_cv_lib_svld_dlopen=yes 10523else 10524 ac_cv_lib_svld_dlopen=no 10525fi 10526rm -f core conftest.err conftest.$ac_objext \ 10527 conftest$ac_exeext conftest.$ac_ext 10528LIBS=$ac_check_lib_save_LIBS 10529fi 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10531$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10532if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10534else 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10536$as_echo_n "checking for dld_link in -ldld... " >&6; } 10537if ${ac_cv_lib_dld_dld_link+:} false; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 ac_check_lib_save_LIBS=$LIBS 10541LIBS="-ldld $LIBS" 10542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544 10545/* Override any GCC internal prototype to avoid an error. 10546 Use char because int might match the return type of a GCC 10547 builtin and then its argument prototype would still apply. */ 10548#ifdef __cplusplus 10549extern "C" 10550#endif 10551char dld_link (); 10552int 10553main () 10554{ 10555return dld_link (); 10556 ; 10557 return 0; 10558} 10559_ACEOF 10560if ac_fn_c_try_link "$LINENO"; then : 10561 ac_cv_lib_dld_dld_link=yes 10562else 10563 ac_cv_lib_dld_dld_link=no 10564fi 10565rm -f core conftest.err conftest.$ac_objext \ 10566 conftest$ac_exeext conftest.$ac_ext 10567LIBS=$ac_check_lib_save_LIBS 10568fi 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10570$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10571if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10572 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10573fi 10574 10575 10576fi 10577 10578 10579fi 10580 10581 10582fi 10583 10584 10585fi 10586 10587 10588fi 10589 10590 ;; 10591 esac 10592 10593 if test "x$lt_cv_dlopen" != xno; then 10594 enable_dlopen=yes 10595 else 10596 enable_dlopen=no 10597 fi 10598 10599 case $lt_cv_dlopen in 10600 dlopen) 10601 save_CPPFLAGS="$CPPFLAGS" 10602 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10603 10604 save_LDFLAGS="$LDFLAGS" 10605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10606 10607 save_LIBS="$LIBS" 10608 LIBS="$lt_cv_dlopen_libs $LIBS" 10609 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10611$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10612if ${lt_cv_dlopen_self+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 if test "$cross_compiling" = yes; then : 10616 lt_cv_dlopen_self=cross 10617else 10618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10619 lt_status=$lt_dlunknown 10620 cat > conftest.$ac_ext <<_LT_EOF 10621#line 10589 "configure" 10622#include "confdefs.h" 10623 10624#if HAVE_DLFCN_H 10625#include <dlfcn.h> 10626#endif 10627 10628#include <stdio.h> 10629 10630#ifdef RTLD_GLOBAL 10631# define LT_DLGLOBAL RTLD_GLOBAL 10632#else 10633# ifdef DL_GLOBAL 10634# define LT_DLGLOBAL DL_GLOBAL 10635# else 10636# define LT_DLGLOBAL 0 10637# endif 10638#endif 10639 10640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10641 find out it does not work in some platform. */ 10642#ifndef LT_DLLAZY_OR_NOW 10643# ifdef RTLD_LAZY 10644# define LT_DLLAZY_OR_NOW RTLD_LAZY 10645# else 10646# ifdef DL_LAZY 10647# define LT_DLLAZY_OR_NOW DL_LAZY 10648# else 10649# ifdef RTLD_NOW 10650# define LT_DLLAZY_OR_NOW RTLD_NOW 10651# else 10652# ifdef DL_NOW 10653# define LT_DLLAZY_OR_NOW DL_NOW 10654# else 10655# define LT_DLLAZY_OR_NOW 0 10656# endif 10657# endif 10658# endif 10659# endif 10660#endif 10661 10662void fnord() { int i=42;} 10663int main () 10664{ 10665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10666 int status = $lt_dlunknown; 10667 10668 if (self) 10669 { 10670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10672 /* dlclose (self); */ 10673 } 10674 else 10675 puts (dlerror ()); 10676 10677 return status; 10678} 10679_LT_EOF 10680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10681 (eval $ac_link) 2>&5 10682 ac_status=$? 10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10684 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10685 (./conftest; exit; ) >&5 2>/dev/null 10686 lt_status=$? 10687 case x$lt_status in 10688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10691 esac 10692 else : 10693 # compilation failed 10694 lt_cv_dlopen_self=no 10695 fi 10696fi 10697rm -fr conftest* 10698 10699 10700fi 10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10702$as_echo "$lt_cv_dlopen_self" >&6; } 10703 10704 if test "x$lt_cv_dlopen_self" = xyes; then 10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10707$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10708if ${lt_cv_dlopen_self_static+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710else 10711 if test "$cross_compiling" = yes; then : 10712 lt_cv_dlopen_self_static=cross 10713else 10714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10715 lt_status=$lt_dlunknown 10716 cat > conftest.$ac_ext <<_LT_EOF 10717#line 10685 "configure" 10718#include "confdefs.h" 10719 10720#if HAVE_DLFCN_H 10721#include <dlfcn.h> 10722#endif 10723 10724#include <stdio.h> 10725 10726#ifdef RTLD_GLOBAL 10727# define LT_DLGLOBAL RTLD_GLOBAL 10728#else 10729# ifdef DL_GLOBAL 10730# define LT_DLGLOBAL DL_GLOBAL 10731# else 10732# define LT_DLGLOBAL 0 10733# endif 10734#endif 10735 10736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10737 find out it does not work in some platform. */ 10738#ifndef LT_DLLAZY_OR_NOW 10739# ifdef RTLD_LAZY 10740# define LT_DLLAZY_OR_NOW RTLD_LAZY 10741# else 10742# ifdef DL_LAZY 10743# define LT_DLLAZY_OR_NOW DL_LAZY 10744# else 10745# ifdef RTLD_NOW 10746# define LT_DLLAZY_OR_NOW RTLD_NOW 10747# else 10748# ifdef DL_NOW 10749# define LT_DLLAZY_OR_NOW DL_NOW 10750# else 10751# define LT_DLLAZY_OR_NOW 0 10752# endif 10753# endif 10754# endif 10755# endif 10756#endif 10757 10758void fnord() { int i=42;} 10759int main () 10760{ 10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10762 int status = $lt_dlunknown; 10763 10764 if (self) 10765 { 10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10768 /* dlclose (self); */ 10769 } 10770 else 10771 puts (dlerror ()); 10772 10773 return status; 10774} 10775_LT_EOF 10776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10777 (eval $ac_link) 2>&5 10778 ac_status=$? 10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10780 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10781 (./conftest; exit; ) >&5 2>/dev/null 10782 lt_status=$? 10783 case x$lt_status in 10784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10787 esac 10788 else : 10789 # compilation failed 10790 lt_cv_dlopen_self_static=no 10791 fi 10792fi 10793rm -fr conftest* 10794 10795 10796fi 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10798$as_echo "$lt_cv_dlopen_self_static" >&6; } 10799 fi 10800 10801 CPPFLAGS="$save_CPPFLAGS" 10802 LDFLAGS="$save_LDFLAGS" 10803 LIBS="$save_LIBS" 10804 ;; 10805 esac 10806 10807 case $lt_cv_dlopen_self in 10808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10809 *) enable_dlopen_self=unknown ;; 10810 esac 10811 10812 case $lt_cv_dlopen_self_static in 10813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10814 *) enable_dlopen_self_static=unknown ;; 10815 esac 10816fi 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834striplib= 10835old_striplib= 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10837$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10838if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10840 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10842$as_echo "yes" >&6; } 10843else 10844# FIXME - insert some real tests, host_os isn't really good enough 10845 case $host_os in 10846 darwin*) 10847 if test -n "$STRIP" ; then 10848 striplib="$STRIP -x" 10849 old_striplib="$STRIP -S" 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10851$as_echo "yes" >&6; } 10852 else 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10854$as_echo "no" >&6; } 10855 fi 10856 ;; 10857 *) 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10859$as_echo "no" >&6; } 10860 ;; 10861 esac 10862fi 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 # Report which library types will actually be built 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10877$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10879$as_echo "$can_build_shared" >&6; } 10880 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10882$as_echo_n "checking whether to build shared libraries... " >&6; } 10883 test "$can_build_shared" = "no" && enable_shared=no 10884 10885 # On AIX, shared libraries and static libraries use the same namespace, and 10886 # are all built from PIC. 10887 case $host_os in 10888 aix3*) 10889 test "$enable_shared" = yes && enable_static=no 10890 if test -n "$RANLIB"; then 10891 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10892 postinstall_cmds='$RANLIB $lib' 10893 fi 10894 ;; 10895 10896 aix[4-9]*) 10897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10898 test "$enable_shared" = yes && enable_static=no 10899 fi 10900 ;; 10901 esac 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10903$as_echo "$enable_shared" >&6; } 10904 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10906$as_echo_n "checking whether to build static libraries... " >&6; } 10907 # Make sure either enable_shared or enable_static is yes. 10908 test "$enable_shared" = yes || enable_static=yes 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10910$as_echo "$enable_static" >&6; } 10911 10912 10913 10914 10915fi 10916ac_ext=c 10917ac_cpp='$CPP $CPPFLAGS' 10918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10920ac_compiler_gnu=$ac_cv_c_compiler_gnu 10921 10922CC="$lt_save_CC" 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 ac_config_commands="$ac_config_commands libtool" 10937 10938 10939 10940 10941# Only expand once: 10942 10943 10944 10945 10946 for flag in -pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing; do 10947 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 10949$as_echo_n "checking if $CC supports $flag flag... " >&6; } 10950if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10951 $as_echo_n "(cached) " >&6 10952else 10953 10954 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10955 $as_echo_n "(cached) " >&6 10956else 10957 ac_save_CFLAGS="$CFLAGS" 10958 CFLAGS="$CFLAGS $flag" 10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961int a; 10962_ACEOF 10963if ac_fn_c_try_compile "$LINENO"; then : 10964 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 10965else 10966 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 10967fi 10968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10969 CFLAGS="$ac_save_CFLAGS" 10970 10971fi 10972 10973 10974 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 10975 10976fi 10977 10978fi 10979eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10981$as_echo "$ac_res" >&6; } 10982 10983 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 10984 CFLAGS="$CFLAGS $flag"; 10985fi 10986 10987 done 10988 10989 10990# Checks for header files. 10991 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 10993$as_echo_n "checking whether to enable assertions... " >&6; } 10994 # Check whether --enable-assert was given. 10995if test "${enable_assert+set}" = set; then : 10996 enableval=$enable_assert; ac_enable_assert=$enableval 10997 if test "x$enableval" = xno; then : 10998 10999$as_echo "#define NDEBUG 1" >>confdefs.h 11000 11001elif test "x$enableval" != xyes; then : 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 11003$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 11004 ac_enable_assert=yes 11005fi 11006else 11007 ac_enable_assert=yes 11008fi 11009 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 11011$as_echo "$ac_enable_assert" >&6; } 11012 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11014$as_echo_n "checking for ANSI C header files... " >&6; } 11015if ${ac_cv_header_stdc+:} false; then : 11016 $as_echo_n "(cached) " >&6 11017else 11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020#include <stdlib.h> 11021#include <stdarg.h> 11022#include <string.h> 11023#include <float.h> 11024 11025int 11026main () 11027{ 11028 11029 ; 11030 return 0; 11031} 11032_ACEOF 11033if ac_fn_c_try_compile "$LINENO"; then : 11034 ac_cv_header_stdc=yes 11035else 11036 ac_cv_header_stdc=no 11037fi 11038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11039 11040if test $ac_cv_header_stdc = yes; then 11041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043/* end confdefs.h. */ 11044#include <string.h> 11045 11046_ACEOF 11047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11048 $EGREP "memchr" >/dev/null 2>&1; then : 11049 11050else 11051 ac_cv_header_stdc=no 11052fi 11053rm -f conftest* 11054 11055fi 11056 11057if test $ac_cv_header_stdc = yes; then 11058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11060/* end confdefs.h. */ 11061#include <stdlib.h> 11062 11063_ACEOF 11064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11065 $EGREP "free" >/dev/null 2>&1; then : 11066 11067else 11068 ac_cv_header_stdc=no 11069fi 11070rm -f conftest* 11071 11072fi 11073 11074if test $ac_cv_header_stdc = yes; then 11075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11076 if test "$cross_compiling" = yes; then : 11077 : 11078else 11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081#include <ctype.h> 11082#include <stdlib.h> 11083#if ((' ' & 0x0FF) == 0x020) 11084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11086#else 11087# define ISLOWER(c) \ 11088 (('a' <= (c) && (c) <= 'i') \ 11089 || ('j' <= (c) && (c) <= 'r') \ 11090 || ('s' <= (c) && (c) <= 'z')) 11091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11092#endif 11093 11094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11095int 11096main () 11097{ 11098 int i; 11099 for (i = 0; i < 256; i++) 11100 if (XOR (islower (i), ISLOWER (i)) 11101 || toupper (i) != TOUPPER (i)) 11102 return 2; 11103 return 0; 11104} 11105_ACEOF 11106if ac_fn_c_try_run "$LINENO"; then : 11107 11108else 11109 ac_cv_header_stdc=no 11110fi 11111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11112 conftest.$ac_objext conftest.beam conftest.$ac_ext 11113fi 11114 11115fi 11116fi 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11118$as_echo "$ac_cv_header_stdc" >&6; } 11119if test $ac_cv_header_stdc = yes; then 11120 11121$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11122 11123fi 11124 11125for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h 11126do : 11127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11128ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11130 cat >>confdefs.h <<_ACEOF 11131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11132_ACEOF 11133 11134fi 11135 11136done 11137 11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11139$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11140if ${ac_cv_header_sys_wait_h+:} false; then : 11141 $as_echo_n "(cached) " >&6 11142else 11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11144/* end confdefs.h. */ 11145#include <sys/types.h> 11146#include <sys/wait.h> 11147#ifndef WEXITSTATUS 11148# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11149#endif 11150#ifndef WIFEXITED 11151# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11152#endif 11153 11154int 11155main () 11156{ 11157 int s; 11158 wait (&s); 11159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11160 ; 11161 return 0; 11162} 11163_ACEOF 11164if ac_fn_c_try_compile "$LINENO"; then : 11165 ac_cv_header_sys_wait_h=yes 11166else 11167 ac_cv_header_sys_wait_h=no 11168fi 11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11170fi 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11172$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11173if test $ac_cv_header_sys_wait_h = yes; then 11174 11175$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11176 11177fi 11178 11179 11180# Checks for typedefs, structures, and compiler characteristics. 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11182$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11183if ${ac_cv_c_const+:} false; then : 11184 $as_echo_n "(cached) " >&6 11185else 11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187/* end confdefs.h. */ 11188 11189int 11190main () 11191{ 11192/* FIXME: Include the comments suggested by Paul. */ 11193#ifndef __cplusplus 11194 /* Ultrix mips cc rejects this. */ 11195 typedef int charset[2]; 11196 const charset cs; 11197 /* SunOS 4.1.1 cc rejects this. */ 11198 char const *const *pcpcc; 11199 char **ppc; 11200 /* NEC SVR4.0.2 mips cc rejects this. */ 11201 struct point {int x, y;}; 11202 static struct point const zero = {0,0}; 11203 /* AIX XL C 1.02.0.0 rejects this. 11204 It does not let you subtract one const X* pointer from another in 11205 an arm of an if-expression whose if-part is not a constant 11206 expression */ 11207 const char *g = "string"; 11208 pcpcc = &g + (g ? g-g : 0); 11209 /* HPUX 7.0 cc rejects these. */ 11210 ++pcpcc; 11211 ppc = (char**) pcpcc; 11212 pcpcc = (char const *const *) ppc; 11213 { /* SCO 3.2v4 cc rejects this. */ 11214 char *t; 11215 char const *s = 0 ? (char *) 0 : (char const *) 0; 11216 11217 *t++ = 0; 11218 if (s) return 0; 11219 } 11220 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11221 int x[] = {25, 17}; 11222 const int *foo = &x[0]; 11223 ++foo; 11224 } 11225 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11226 typedef const int *iptr; 11227 iptr p = 0; 11228 ++p; 11229 } 11230 { /* AIX XL C 1.02.0.0 rejects this saying 11231 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11232 struct s { int j; const int *ap[3]; }; 11233 struct s *b; b->j = 5; 11234 } 11235 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11236 const int foo = 10; 11237 if (!foo) return 0; 11238 } 11239 return !cs[0] && !zero.x; 11240#endif 11241 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_compile "$LINENO"; then : 11247 ac_cv_c_const=yes 11248else 11249 ac_cv_c_const=no 11250fi 11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11252fi 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11254$as_echo "$ac_cv_c_const" >&6; } 11255if test $ac_cv_c_const = no; then 11256 11257$as_echo "#define const /**/" >>confdefs.h 11258 11259fi 11260 11261ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11262if test "x$ac_cv_type_pid_t" = xyes; then : 11263 11264else 11265 11266cat >>confdefs.h <<_ACEOF 11267#define pid_t int 11268_ACEOF 11269 11270fi 11271 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11273$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11274if ${ac_cv_header_time+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276else 11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11278/* end confdefs.h. */ 11279#include <sys/types.h> 11280#include <sys/time.h> 11281#include <time.h> 11282 11283int 11284main () 11285{ 11286if ((struct tm *) 0) 11287return 0; 11288 ; 11289 return 0; 11290} 11291_ACEOF 11292if ac_fn_c_try_compile "$LINENO"; then : 11293 ac_cv_header_time=yes 11294else 11295 ac_cv_header_time=no 11296fi 11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11300$as_echo "$ac_cv_header_time" >&6; } 11301if test $ac_cv_header_time = yes; then 11302 11303$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11304 11305fi 11306 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11308$as_echo_n "checking for working volatile... " >&6; } 11309if ${ac_cv_c_volatile+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314 11315int 11316main () 11317{ 11318 11319volatile int x; 11320int * volatile y = (int *) 0; 11321return !x && !y; 11322 ; 11323 return 0; 11324} 11325_ACEOF 11326if ac_fn_c_try_compile "$LINENO"; then : 11327 ac_cv_c_volatile=yes 11328else 11329 ac_cv_c_volatile=no 11330fi 11331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11332fi 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11334$as_echo "$ac_cv_c_volatile" >&6; } 11335if test $ac_cv_c_volatile = no; then 11336 11337$as_echo "#define volatile /**/" >>confdefs.h 11338 11339fi 11340 11341 11342# Checks for library functions. 11343for ac_header in vfork.h 11344do : 11345 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 11346if test "x$ac_cv_header_vfork_h" = xyes; then : 11347 cat >>confdefs.h <<_ACEOF 11348#define HAVE_VFORK_H 1 11349_ACEOF 11350 11351fi 11352 11353done 11354 11355for ac_func in fork vfork 11356do : 11357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11358ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11359if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11360 cat >>confdefs.h <<_ACEOF 11361#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11362_ACEOF 11363 11364fi 11365done 11366 11367if test "x$ac_cv_func_fork" = xyes; then 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 11369$as_echo_n "checking for working fork... " >&6; } 11370if ${ac_cv_func_fork_works+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372else 11373 if test "$cross_compiling" = yes; then : 11374 ac_cv_func_fork_works=cross 11375else 11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11377/* end confdefs.h. */ 11378$ac_includes_default 11379int 11380main () 11381{ 11382 11383 /* By Ruediger Kuhlmann. */ 11384 return fork () < 0; 11385 11386 ; 11387 return 0; 11388} 11389_ACEOF 11390if ac_fn_c_try_run "$LINENO"; then : 11391 ac_cv_func_fork_works=yes 11392else 11393 ac_cv_func_fork_works=no 11394fi 11395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11396 conftest.$ac_objext conftest.beam conftest.$ac_ext 11397fi 11398 11399fi 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 11401$as_echo "$ac_cv_func_fork_works" >&6; } 11402 11403else 11404 ac_cv_func_fork_works=$ac_cv_func_fork 11405fi 11406if test "x$ac_cv_func_fork_works" = xcross; then 11407 case $host in 11408 *-*-amigaos* | *-*-msdosdjgpp*) 11409 # Override, as these systems have only a dummy fork() stub 11410 ac_cv_func_fork_works=no 11411 ;; 11412 *) 11413 ac_cv_func_fork_works=yes 11414 ;; 11415 esac 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 11417$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 11418fi 11419ac_cv_func_vfork_works=$ac_cv_func_vfork 11420if test "x$ac_cv_func_vfork" = xyes; then 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 11422$as_echo_n "checking for working vfork... " >&6; } 11423if ${ac_cv_func_vfork_works+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 if test "$cross_compiling" = yes; then : 11427 ac_cv_func_vfork_works=cross 11428else 11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11430/* end confdefs.h. */ 11431/* Thanks to Paul Eggert for this test. */ 11432$ac_includes_default 11433#include <sys/wait.h> 11434#ifdef HAVE_VFORK_H 11435# include <vfork.h> 11436#endif 11437/* On some sparc systems, changes by the child to local and incoming 11438 argument registers are propagated back to the parent. The compiler 11439 is told about this with #include <vfork.h>, but some compilers 11440 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 11441 static variable whose address is put into a register that is 11442 clobbered by the vfork. */ 11443static void 11444#ifdef __cplusplus 11445sparc_address_test (int arg) 11446# else 11447sparc_address_test (arg) int arg; 11448#endif 11449{ 11450 static pid_t child; 11451 if (!child) { 11452 child = vfork (); 11453 if (child < 0) { 11454 perror ("vfork"); 11455 _exit(2); 11456 } 11457 if (!child) { 11458 arg = getpid(); 11459 write(-1, "", 0); 11460 _exit (arg); 11461 } 11462 } 11463} 11464 11465int 11466main () 11467{ 11468 pid_t parent = getpid (); 11469 pid_t child; 11470 11471 sparc_address_test (0); 11472 11473 child = vfork (); 11474 11475 if (child == 0) { 11476 /* Here is another test for sparc vfork register problems. This 11477 test uses lots of local variables, at least as many local 11478 variables as main has allocated so far including compiler 11479 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 11480 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 11481 reuse the register of parent for one of the local variables, 11482 since it will think that parent can't possibly be used any more 11483 in this routine. Assigning to the local variable will thus 11484 munge parent in the parent process. */ 11485 pid_t 11486 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11487 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11488 /* Convince the compiler that p..p7 are live; otherwise, it might 11489 use the same hardware register for all 8 local variables. */ 11490 if (p != p1 || p != p2 || p != p3 || p != p4 11491 || p != p5 || p != p6 || p != p7) 11492 _exit(1); 11493 11494 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11495 from child file descriptors. If the child closes a descriptor 11496 before it execs or exits, this munges the parent's descriptor 11497 as well. Test for this by closing stdout in the child. */ 11498 _exit(close(fileno(stdout)) != 0); 11499 } else { 11500 int status; 11501 struct stat st; 11502 11503 while (wait(&status) != child) 11504 ; 11505 return ( 11506 /* Was there some problem with vforking? */ 11507 child < 0 11508 11509 /* Did the child fail? (This shouldn't happen.) */ 11510 || status 11511 11512 /* Did the vfork/compiler bug occur? */ 11513 || parent != getpid() 11514 11515 /* Did the file descriptor bug occur? */ 11516 || fstat(fileno(stdout), &st) != 0 11517 ); 11518 } 11519} 11520_ACEOF 11521if ac_fn_c_try_run "$LINENO"; then : 11522 ac_cv_func_vfork_works=yes 11523else 11524 ac_cv_func_vfork_works=no 11525fi 11526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11527 conftest.$ac_objext conftest.beam conftest.$ac_ext 11528fi 11529 11530fi 11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11532$as_echo "$ac_cv_func_vfork_works" >&6; } 11533 11534fi; 11535if test "x$ac_cv_func_fork_works" = xcross; then 11536 ac_cv_func_vfork_works=$ac_cv_func_vfork 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11538$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11539fi 11540 11541if test "x$ac_cv_func_vfork_works" = xyes; then 11542 11543$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11544 11545else 11546 11547$as_echo "#define vfork fork" >>confdefs.h 11548 11549fi 11550if test "x$ac_cv_func_fork_works" = xyes; then 11551 11552$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 11553 11554fi 11555 11556for ac_header in sys/select.h sys/socket.h 11557do : 11558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11561 cat >>confdefs.h <<_ACEOF 11562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11563_ACEOF 11564 11565fi 11566 11567done 11568 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 11570$as_echo_n "checking types of arguments for select... " >&6; } 11571if ${ac_cv_func_select_args+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 11575 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 11576 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11578/* end confdefs.h. */ 11579$ac_includes_default 11580#ifdef HAVE_SYS_SELECT_H 11581# include <sys/select.h> 11582#endif 11583#ifdef HAVE_SYS_SOCKET_H 11584# include <sys/socket.h> 11585#endif 11586 11587int 11588main () 11589{ 11590extern int select ($ac_arg1, 11591 $ac_arg234, $ac_arg234, $ac_arg234, 11592 $ac_arg5); 11593 ; 11594 return 0; 11595} 11596_ACEOF 11597if ac_fn_c_try_compile "$LINENO"; then : 11598 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 11599fi 11600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11601 done 11602 done 11603done 11604# Provide a safe default value. 11605: "${ac_cv_func_select_args=int,int *,struct timeval *}" 11606 11607fi 11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 11609$as_echo "$ac_cv_func_select_args" >&6; } 11610ac_save_IFS=$IFS; IFS=',' 11611set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 11612IFS=$ac_save_IFS 11613shift 11614 11615cat >>confdefs.h <<_ACEOF 11616#define SELECT_TYPE_ARG1 $1 11617_ACEOF 11618 11619 11620cat >>confdefs.h <<_ACEOF 11621#define SELECT_TYPE_ARG234 ($2) 11622_ACEOF 11623 11624 11625cat >>confdefs.h <<_ACEOF 11626#define SELECT_TYPE_ARG5 ($3) 11627_ACEOF 11628 11629rm -f conftest* 11630 11631for ac_func in vprintf 11632do : 11633 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 11634if test "x$ac_cv_func_vprintf" = xyes; then : 11635 cat >>confdefs.h <<_ACEOF 11636#define HAVE_VPRINTF 1 11637_ACEOF 11638 11639ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 11640if test "x$ac_cv_func__doprnt" = xyes; then : 11641 11642$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 11643 11644fi 11645 11646fi 11647done 11648 11649 11650for ac_func in select strerror dup2 memset strrchr asprintf 11651do : 11652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11653ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11654if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11655 cat >>confdefs.h <<_ACEOF 11656#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11657_ACEOF 11658 11659fi 11660done 11661 11662ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11663if test "x$ac_cv_type_mode_t" = xyes; then : 11664 11665else 11666 11667cat >>confdefs.h <<_ACEOF 11668#define mode_t int 11669_ACEOF 11670 11671fi 11672 11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 11674$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 11675if ${ac_cv_func_setpgrp_void+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 if test "$cross_compiling" = yes; then : 11679 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 11680else 11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11682/* end confdefs.h. */ 11683$ac_includes_default 11684int 11685main () 11686{ 11687/* If this system has a BSD-style setpgrp which takes arguments, 11688 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 11689 exit successfully. */ 11690 return setpgrp (1,1) != -1; 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695if ac_fn_c_try_run "$LINENO"; then : 11696 ac_cv_func_setpgrp_void=no 11697else 11698 ac_cv_func_setpgrp_void=yes 11699fi 11700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11701 conftest.$ac_objext conftest.beam conftest.$ac_ext 11702fi 11703 11704fi 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 11706$as_echo "$ac_cv_func_setpgrp_void" >&6; } 11707if test $ac_cv_func_setpgrp_void = yes; then 11708 11709$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 11710 11711fi 11712 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11714$as_echo_n "checking return type of signal handlers... " >&6; } 11715if ${ac_cv_type_signal+:} false; then : 11716 $as_echo_n "(cached) " >&6 11717else 11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11719/* end confdefs.h. */ 11720#include <sys/types.h> 11721#include <signal.h> 11722 11723int 11724main () 11725{ 11726return *(signal (0, 0)) (0) == 1; 11727 ; 11728 return 0; 11729} 11730_ACEOF 11731if ac_fn_c_try_compile "$LINENO"; then : 11732 ac_cv_type_signal=int 11733else 11734 ac_cv_type_signal=void 11735fi 11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11737fi 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11739$as_echo "$ac_cv_type_signal" >&6; } 11740 11741cat >>confdefs.h <<_ACEOF 11742#define RETSIGTYPE $ac_cv_type_signal 11743_ACEOF 11744 11745 11746ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11747if test "x$ac_cv_type_size_t" = xyes; then : 11748 11749else 11750 11751cat >>confdefs.h <<_ACEOF 11752#define size_t unsigned int 11753_ACEOF 11754 11755fi 11756 11757 11758# Check whether --enable-largefile was given. 11759if test "${enable_largefile+set}" = set; then : 11760 enableval=$enable_largefile; 11761fi 11762 11763if test "$enable_largefile" != no; then 11764 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11766$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11767if ${ac_cv_sys_largefile_CC+:} false; then : 11768 $as_echo_n "(cached) " >&6 11769else 11770 ac_cv_sys_largefile_CC=no 11771 if test "$GCC" != yes; then 11772 ac_save_CC=$CC 11773 while :; do 11774 # IRIX 6.2 and later do not support large files by default, 11775 # so use the C compiler's -n32 option if that helps. 11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11777/* end confdefs.h. */ 11778#include <sys/types.h> 11779 /* Check that off_t can represent 2**63 - 1 correctly. 11780 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11781 since some C++ compilers masquerading as C compilers 11782 incorrectly reject 9223372036854775807. */ 11783#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11785 && LARGE_OFF_T % 2147483647 == 1) 11786 ? 1 : -1]; 11787int 11788main () 11789{ 11790 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795 if ac_fn_c_try_compile "$LINENO"; then : 11796 break 11797fi 11798rm -f core conftest.err conftest.$ac_objext 11799 CC="$CC -n32" 11800 if ac_fn_c_try_compile "$LINENO"; then : 11801 ac_cv_sys_largefile_CC=' -n32'; break 11802fi 11803rm -f core conftest.err conftest.$ac_objext 11804 break 11805 done 11806 CC=$ac_save_CC 11807 rm -f conftest.$ac_ext 11808 fi 11809fi 11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11811$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11812 if test "$ac_cv_sys_largefile_CC" != no; then 11813 CC=$CC$ac_cv_sys_largefile_CC 11814 fi 11815 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11817$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11818if ${ac_cv_sys_file_offset_bits+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 while :; do 11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11823/* end confdefs.h. */ 11824#include <sys/types.h> 11825 /* Check that off_t can represent 2**63 - 1 correctly. 11826 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11827 since some C++ compilers masquerading as C compilers 11828 incorrectly reject 9223372036854775807. */ 11829#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11831 && LARGE_OFF_T % 2147483647 == 1) 11832 ? 1 : -1]; 11833int 11834main () 11835{ 11836 11837 ; 11838 return 0; 11839} 11840_ACEOF 11841if ac_fn_c_try_compile "$LINENO"; then : 11842 ac_cv_sys_file_offset_bits=no; break 11843fi 11844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11846/* end confdefs.h. */ 11847#define _FILE_OFFSET_BITS 64 11848#include <sys/types.h> 11849 /* Check that off_t can represent 2**63 - 1 correctly. 11850 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11851 since some C++ compilers masquerading as C compilers 11852 incorrectly reject 9223372036854775807. */ 11853#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11855 && LARGE_OFF_T % 2147483647 == 1) 11856 ? 1 : -1]; 11857int 11858main () 11859{ 11860 11861 ; 11862 return 0; 11863} 11864_ACEOF 11865if ac_fn_c_try_compile "$LINENO"; then : 11866 ac_cv_sys_file_offset_bits=64; break 11867fi 11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11869 ac_cv_sys_file_offset_bits=unknown 11870 break 11871done 11872fi 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11874$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11875case $ac_cv_sys_file_offset_bits in #( 11876 no | unknown) ;; 11877 *) 11878cat >>confdefs.h <<_ACEOF 11879#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11880_ACEOF 11881;; 11882esac 11883rm -rf conftest* 11884 if test $ac_cv_sys_file_offset_bits = unknown; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11886$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11887if ${ac_cv_sys_large_files+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 while :; do 11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11892/* end confdefs.h. */ 11893#include <sys/types.h> 11894 /* Check that off_t can represent 2**63 - 1 correctly. 11895 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11896 since some C++ compilers masquerading as C compilers 11897 incorrectly reject 9223372036854775807. */ 11898#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11900 && LARGE_OFF_T % 2147483647 == 1) 11901 ? 1 : -1]; 11902int 11903main () 11904{ 11905 11906 ; 11907 return 0; 11908} 11909_ACEOF 11910if ac_fn_c_try_compile "$LINENO"; then : 11911 ac_cv_sys_large_files=no; break 11912fi 11913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11915/* end confdefs.h. */ 11916#define _LARGE_FILES 1 11917#include <sys/types.h> 11918 /* Check that off_t can represent 2**63 - 1 correctly. 11919 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11920 since some C++ compilers masquerading as C compilers 11921 incorrectly reject 9223372036854775807. */ 11922#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11924 && LARGE_OFF_T % 2147483647 == 1) 11925 ? 1 : -1]; 11926int 11927main () 11928{ 11929 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934if ac_fn_c_try_compile "$LINENO"; then : 11935 ac_cv_sys_large_files=1; break 11936fi 11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11938 ac_cv_sys_large_files=unknown 11939 break 11940done 11941fi 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11943$as_echo "$ac_cv_sys_large_files" >&6; } 11944case $ac_cv_sys_large_files in #( 11945 no | unknown) ;; 11946 *) 11947cat >>confdefs.h <<_ACEOF 11948#define _LARGE_FILES $ac_cv_sys_large_files 11949_ACEOF 11950;; 11951esac 11952rm -rf conftest* 11953 fi 11954fi 11955 11956 11957 11958 11959 11960 case $host in 11961 *-freebsd*) ;; 11962 *) 11963 for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do 11964 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $possible_flags flag" >&5 11966$as_echo_n "checking if $CC supports $possible_flags flag... " >&6; } 11967if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 ac_save_LDFLAGS="$LDFLAGS" 11971 LDFLAGS="$LDFLAGS $possible_flags" 11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974int main() { return 1; } 11975_ACEOF 11976if ac_fn_c_try_link "$LINENO"; then : 11977 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'" 11978else 11979 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`=" 11980fi 11981rm -f core conftest.err conftest.$ac_objext \ 11982 conftest$ac_exeext conftest.$ac_ext 11983 LDFLAGS="$ac_save_LDFLAGS" 11984 11985fi 11986eval ac_res=\$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11988$as_echo "$ac_res" >&6; } 11989 11990 if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then : 11991 LDFLAGS_NOUNDEFINED="$possible_flags" 11992fi 11993 11994 break 11995 done 11996 ;; 11997 esac 11998 11999 12000 12001 12002 12003 # Check whether --enable-lynx was given. 12004if test "${enable_lynx+set}" = set; then : 12005 enableval=$enable_lynx; 12006else 12007 enable_lynx=yes 12008fi 12009 12010 12011 case "${enable_lynx}" in 12012 yes) 12013 # Extract the first word of "lynx", so it can be a program name with args. 12014set dummy lynx; ac_word=$2 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12016$as_echo_n "checking for $ac_word... " >&6; } 12017if ${ac_cv_prog_have_lynx+:} false; then : 12018 $as_echo_n "(cached) " >&6 12019else 12020 if test -n "$have_lynx"; then 12021 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test. 12022else 12023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12024for as_dir in $PATH 12025do 12026 IFS=$as_save_IFS 12027 test -z "$as_dir" && as_dir=. 12028 for ac_exec_ext in '' $ac_executable_extensions; do 12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12030 ac_cv_prog_have_lynx="yes" 12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12032 break 2 12033 fi 12034done 12035 done 12036IFS=$as_save_IFS 12037 12038 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no" 12039fi 12040fi 12041have_lynx=$ac_cv_prog_have_lynx 12042if test -n "$have_lynx"; then 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lynx" >&5 12044$as_echo "$have_lynx" >&6; } 12045else 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12047$as_echo "no" >&6; } 12048fi 12049 12050 12051 12052 if test x$have_lynx = xno ; then 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lynx not found, plain text README will not be built ***" >&5 12054$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;} 12055 fi 12056 ;; 12057 no) 12058 have_lynx=no ;; 12059 *) 12060 as_fn_error $? "bad value ${enableval} for --disable-lynx" "$LINENO" 5 ;; 12061 esac 12062 12063 if test "x$have_lynx" = xyes; then 12064 USE_LYNX_TRUE= 12065 USE_LYNX_FALSE='#' 12066else 12067 USE_LYNX_TRUE='#' 12068 USE_LYNX_FALSE= 12069fi 12070 12071 12072 12073# Check whether --enable-examples was given. 12074if test "${enable_examples+set}" = set; then : 12075 enableval=$enable_examples; 12076else 12077 enable_examples="yes" 12078fi 12079 12080 if test "$enable_examples" = "yes"; then 12081 EXAMPLES_TRUE= 12082 EXAMPLES_FALSE='#' 12083else 12084 EXAMPLES_TRUE='#' 12085 EXAMPLES_FALSE= 12086fi 12087 12088 12089ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc" 12090 12091cat >confcache <<\_ACEOF 12092# This file is a shell script that caches the results of configure 12093# tests run on this system so they can be shared between configure 12094# scripts and configure runs, see configure's option --config-cache. 12095# It is not useful on other systems. If it contains results you don't 12096# want to keep, you may remove or edit it. 12097# 12098# config.status only pays attention to the cache file if you give it 12099# the --recheck option to rerun configure. 12100# 12101# `ac_cv_env_foo' variables (set or unset) will be overridden when 12102# loading this file, other *unset* `ac_cv_foo' will be assigned the 12103# following values. 12104 12105_ACEOF 12106 12107# The following way of writing the cache mishandles newlines in values, 12108# but we know of no workaround that is simple, portable, and efficient. 12109# So, we kill variables containing newlines. 12110# Ultrix sh set writes to stderr and can't be redirected directly, 12111# and sets the high bit in the cache file unless we assign to the vars. 12112( 12113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12114 eval ac_val=\$$ac_var 12115 case $ac_val in #( 12116 *${as_nl}*) 12117 case $ac_var in #( 12118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12119$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12120 esac 12121 case $ac_var in #( 12122 _ | IFS | as_nl) ;; #( 12123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12124 *) { eval $ac_var=; unset $ac_var;} ;; 12125 esac ;; 12126 esac 12127 done 12128 12129 (set) 2>&1 | 12130 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12131 *${as_nl}ac_space=\ *) 12132 # `set' does not quote correctly, so add quotes: double-quote 12133 # substitution turns \\\\ into \\, and sed turns \\ into \. 12134 sed -n \ 12135 "s/'/'\\\\''/g; 12136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12137 ;; #( 12138 *) 12139 # `set' quotes correctly as required by POSIX, so do not add quotes. 12140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12141 ;; 12142 esac | 12143 sort 12144) | 12145 sed ' 12146 /^ac_cv_env_/b end 12147 t clear 12148 :clear 12149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12150 t end 12151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12152 :end' >>confcache 12153if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12154 if test -w "$cache_file"; then 12155 if test "x$cache_file" != "x/dev/null"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12157$as_echo "$as_me: updating cache $cache_file" >&6;} 12158 if test ! -f "$cache_file" || test -h "$cache_file"; then 12159 cat confcache >"$cache_file" 12160 else 12161 case $cache_file in #( 12162 */* | ?:*) 12163 mv -f confcache "$cache_file"$$ && 12164 mv -f "$cache_file"$$ "$cache_file" ;; #( 12165 *) 12166 mv -f confcache "$cache_file" ;; 12167 esac 12168 fi 12169 fi 12170 else 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12172$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12173 fi 12174fi 12175rm -f confcache 12176 12177test "x$prefix" = xNONE && prefix=$ac_default_prefix 12178# Let make expand exec_prefix. 12179test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12180 12181DEFS=-DHAVE_CONFIG_H 12182 12183ac_libobjs= 12184ac_ltlibobjs= 12185U= 12186for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12187 # 1. Remove the extension, and $U if already installed. 12188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12191 # will be set to the directory where LIBOBJS objects are built. 12192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12194done 12195LIBOBJS=$ac_libobjs 12196 12197LTLIBOBJS=$ac_ltlibobjs 12198 12199 12200 if test -n "$EXEEXT"; then 12201 am__EXEEXT_TRUE= 12202 am__EXEEXT_FALSE='#' 12203else 12204 am__EXEEXT_TRUE='#' 12205 am__EXEEXT_FALSE= 12206fi 12207 12208if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12209 as_fn_error $? "conditional \"AMDEP\" was never defined. 12210Usually this means the macro was only invoked conditionally." "$LINENO" 5 12211fi 12212if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12213 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12214Usually this means the macro was only invoked conditionally." "$LINENO" 5 12215fi 12216if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then 12217 as_fn_error $? "conditional \"USE_LYNX\" was never defined. 12218Usually this means the macro was only invoked conditionally." "$LINENO" 5 12219fi 12220if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then 12221 as_fn_error $? "conditional \"EXAMPLES\" was never defined. 12222Usually this means the macro was only invoked conditionally." "$LINENO" 5 12223fi 12224 12225: "${CONFIG_STATUS=./config.status}" 12226ac_write_fail=0 12227ac_clean_files_save=$ac_clean_files 12228ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12231as_write_fail=0 12232cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12233#! $SHELL 12234# Generated by $as_me. 12235# Run this file to recreate the current configuration. 12236# Compiler output produced by configure, useful for debugging 12237# configure, is in config.log if it exists. 12238 12239debug=false 12240ac_cs_recheck=false 12241ac_cs_silent=false 12242 12243SHELL=\${CONFIG_SHELL-$SHELL} 12244export SHELL 12245_ASEOF 12246cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12247## -------------------- ## 12248## M4sh Initialization. ## 12249## -------------------- ## 12250 12251# Be more Bourne compatible 12252DUALCASE=1; export DUALCASE # for MKS sh 12253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12254 emulate sh 12255 NULLCMD=: 12256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12257 # is contrary to our usage. Disable this feature. 12258 alias -g '${1+"$@"}'='"$@"' 12259 setopt NO_GLOB_SUBST 12260else 12261 case `(set -o) 2>/dev/null` in #( 12262 *posix*) : 12263 set -o posix ;; #( 12264 *) : 12265 ;; 12266esac 12267fi 12268 12269 12270as_nl=' 12271' 12272export as_nl 12273# Printing a long string crashes Solaris 7 /usr/bin/printf. 12274as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12277# Prefer a ksh shell builtin over an external printf program on Solaris, 12278# but without wasting forks for bash or zsh. 12279if test -z "$BASH_VERSION$ZSH_VERSION" \ 12280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12281 as_echo='print -r --' 12282 as_echo_n='print -rn --' 12283elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12284 as_echo='printf %s\n' 12285 as_echo_n='printf %s' 12286else 12287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12289 as_echo_n='/usr/ucb/echo -n' 12290 else 12291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12292 as_echo_n_body='eval 12293 arg=$1; 12294 case $arg in #( 12295 *"$as_nl"*) 12296 expr "X$arg" : "X\\(.*\\)$as_nl"; 12297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12298 esac; 12299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12300 ' 12301 export as_echo_n_body 12302 as_echo_n='sh -c $as_echo_n_body as_echo' 12303 fi 12304 export as_echo_body 12305 as_echo='sh -c $as_echo_body as_echo' 12306fi 12307 12308# The user is always right. 12309if test "${PATH_SEPARATOR+set}" != set; then 12310 PATH_SEPARATOR=: 12311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12313 PATH_SEPARATOR=';' 12314 } 12315fi 12316 12317 12318# IFS 12319# We need space, tab and new line, in precisely that order. Quoting is 12320# there to prevent editors from complaining about space-tab. 12321# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12322# splitting by setting IFS to empty value.) 12323IFS=" "" $as_nl" 12324 12325# Find who we are. Look in the path if we contain no directory separator. 12326as_myself= 12327case $0 in #(( 12328 *[\\/]* ) as_myself=$0 ;; 12329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12330for as_dir in $PATH 12331do 12332 IFS=$as_save_IFS 12333 test -z "$as_dir" && as_dir=. 12334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12335 done 12336IFS=$as_save_IFS 12337 12338 ;; 12339esac 12340# We did not find ourselves, most probably we were run as `sh COMMAND' 12341# in which case we are not to be found in the path. 12342if test "x$as_myself" = x; then 12343 as_myself=$0 12344fi 12345if test ! -f "$as_myself"; then 12346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12347 exit 1 12348fi 12349 12350# Unset variables that we do not need and which cause bugs (e.g. in 12351# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12352# suppresses any "Segmentation fault" message there. '((' could 12353# trigger a bug in pdksh 5.2.14. 12354for as_var in BASH_ENV ENV MAIL MAILPATH 12355do eval test x\${$as_var+set} = xset \ 12356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12357done 12358PS1='$ ' 12359PS2='> ' 12360PS4='+ ' 12361 12362# NLS nuisances. 12363LC_ALL=C 12364export LC_ALL 12365LANGUAGE=C 12366export LANGUAGE 12367 12368# CDPATH. 12369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12370 12371 12372# as_fn_error STATUS ERROR [LINENO LOG_FD] 12373# ---------------------------------------- 12374# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12375# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12376# script with STATUS, using 1 if that was 0. 12377as_fn_error () 12378{ 12379 as_status=$1; test $as_status -eq 0 && as_status=1 12380 if test "$4"; then 12381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12383 fi 12384 $as_echo "$as_me: error: $2" >&2 12385 as_fn_exit $as_status 12386} # as_fn_error 12387 12388 12389# as_fn_set_status STATUS 12390# ----------------------- 12391# Set $? to STATUS, without forking. 12392as_fn_set_status () 12393{ 12394 return $1 12395} # as_fn_set_status 12396 12397# as_fn_exit STATUS 12398# ----------------- 12399# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12400as_fn_exit () 12401{ 12402 set +e 12403 as_fn_set_status $1 12404 exit $1 12405} # as_fn_exit 12406 12407# as_fn_unset VAR 12408# --------------- 12409# Portably unset VAR. 12410as_fn_unset () 12411{ 12412 { eval $1=; unset $1;} 12413} 12414as_unset=as_fn_unset 12415# as_fn_append VAR VALUE 12416# ---------------------- 12417# Append the text in VALUE to the end of the definition contained in VAR. Take 12418# advantage of any shell optimizations that allow amortized linear growth over 12419# repeated appends, instead of the typical quadratic growth present in naive 12420# implementations. 12421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12422 eval 'as_fn_append () 12423 { 12424 eval $1+=\$2 12425 }' 12426else 12427 as_fn_append () 12428 { 12429 eval $1=\$$1\$2 12430 } 12431fi # as_fn_append 12432 12433# as_fn_arith ARG... 12434# ------------------ 12435# Perform arithmetic evaluation on the ARGs, and store the result in the 12436# global $as_val. Take advantage of shells that can avoid forks. The arguments 12437# must be portable across $(()) and expr. 12438if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12439 eval 'as_fn_arith () 12440 { 12441 as_val=$(( $* )) 12442 }' 12443else 12444 as_fn_arith () 12445 { 12446 as_val=`expr "$@" || test $? -eq 1` 12447 } 12448fi # as_fn_arith 12449 12450 12451if expr a : '\(a\)' >/dev/null 2>&1 && 12452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12453 as_expr=expr 12454else 12455 as_expr=false 12456fi 12457 12458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12459 as_basename=basename 12460else 12461 as_basename=false 12462fi 12463 12464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12465 as_dirname=dirname 12466else 12467 as_dirname=false 12468fi 12469 12470as_me=`$as_basename -- "$0" || 12471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12472 X"$0" : 'X\(//\)$' \| \ 12473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12474$as_echo X/"$0" | 12475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12476 s//\1/ 12477 q 12478 } 12479 /^X\/\(\/\/\)$/{ 12480 s//\1/ 12481 q 12482 } 12483 /^X\/\(\/\).*/{ 12484 s//\1/ 12485 q 12486 } 12487 s/.*/./; q'` 12488 12489# Avoid depending upon Character Ranges. 12490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12493as_cr_digits='0123456789' 12494as_cr_alnum=$as_cr_Letters$as_cr_digits 12495 12496ECHO_C= ECHO_N= ECHO_T= 12497case `echo -n x` in #((((( 12498-n*) 12499 case `echo 'xy\c'` in 12500 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12501 xy) ECHO_C='\c';; 12502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12503 ECHO_T=' ';; 12504 esac;; 12505*) 12506 ECHO_N='-n';; 12507esac 12508 12509rm -f conf$$ conf$$.exe conf$$.file 12510if test -d conf$$.dir; then 12511 rm -f conf$$.dir/conf$$.file 12512else 12513 rm -f conf$$.dir 12514 mkdir conf$$.dir 2>/dev/null 12515fi 12516if (echo >conf$$.file) 2>/dev/null; then 12517 if ln -s conf$$.file conf$$ 2>/dev/null; then 12518 as_ln_s='ln -s' 12519 # ... but there are two gotchas: 12520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12522 # In both cases, we have to default to `cp -p'. 12523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12524 as_ln_s='cp -p' 12525 elif ln conf$$.file conf$$ 2>/dev/null; then 12526 as_ln_s=ln 12527 else 12528 as_ln_s='cp -p' 12529 fi 12530else 12531 as_ln_s='cp -p' 12532fi 12533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12534rmdir conf$$.dir 2>/dev/null 12535 12536 12537# as_fn_mkdir_p 12538# ------------- 12539# Create "$as_dir" as a directory, including parents if necessary. 12540as_fn_mkdir_p () 12541{ 12542 12543 case $as_dir in #( 12544 -*) as_dir=./$as_dir;; 12545 esac 12546 test -d "$as_dir" || eval $as_mkdir_p || { 12547 as_dirs= 12548 while :; do 12549 case $as_dir in #( 12550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12551 *) as_qdir=$as_dir;; 12552 esac 12553 as_dirs="'$as_qdir' $as_dirs" 12554 as_dir=`$as_dirname -- "$as_dir" || 12555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12556 X"$as_dir" : 'X\(//\)[^/]' \| \ 12557 X"$as_dir" : 'X\(//\)$' \| \ 12558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12559$as_echo X"$as_dir" | 12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12561 s//\1/ 12562 q 12563 } 12564 /^X\(\/\/\)[^/].*/{ 12565 s//\1/ 12566 q 12567 } 12568 /^X\(\/\/\)$/{ 12569 s//\1/ 12570 q 12571 } 12572 /^X\(\/\).*/{ 12573 s//\1/ 12574 q 12575 } 12576 s/.*/./; q'` 12577 test -d "$as_dir" && break 12578 done 12579 test -z "$as_dirs" || eval "mkdir $as_dirs" 12580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12581 12582 12583} # as_fn_mkdir_p 12584if mkdir -p . 2>/dev/null; then 12585 as_mkdir_p='mkdir -p "$as_dir"' 12586else 12587 test -d ./-p && rmdir ./-p 12588 as_mkdir_p=false 12589fi 12590 12591if test -x / >/dev/null 2>&1; then 12592 as_test_x='test -x' 12593else 12594 if ls -dL / >/dev/null 2>&1; then 12595 as_ls_L_option=L 12596 else 12597 as_ls_L_option= 12598 fi 12599 as_test_x=' 12600 eval sh -c '\'' 12601 if test -d "$1"; then 12602 test -d "$1/."; 12603 else 12604 case $1 in #( 12605 -*)set "./$1";; 12606 esac; 12607 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12608 ???[sx]*):;;*)false;;esac;fi 12609 '\'' sh 12610 ' 12611fi 12612as_executable_p=$as_test_x 12613 12614# Sed expression to map a string onto a valid CPP name. 12615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12616 12617# Sed expression to map a string onto a valid variable name. 12618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12619 12620 12621exec 6>&1 12622## ----------------------------------- ## 12623## Main body of $CONFIG_STATUS script. ## 12624## ----------------------------------- ## 12625_ASEOF 12626test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12627 12628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12629# Save the log message, to keep $0 and so on meaningful, and to 12630# report actual input values of CONFIG_FILES etc. instead of their 12631# values after options handling. 12632ac_log=" 12633This file was extended by libdaemon $as_me 0.14, which was 12634generated by GNU Autoconf 2.68. Invocation command line was 12635 12636 CONFIG_FILES = $CONFIG_FILES 12637 CONFIG_HEADERS = $CONFIG_HEADERS 12638 CONFIG_LINKS = $CONFIG_LINKS 12639 CONFIG_COMMANDS = $CONFIG_COMMANDS 12640 $ $0 $@ 12641 12642on `(hostname || uname -n) 2>/dev/null | sed 1q` 12643" 12644 12645_ACEOF 12646 12647case $ac_config_files in *" 12648"*) set x $ac_config_files; shift; ac_config_files=$*;; 12649esac 12650 12651case $ac_config_headers in *" 12652"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12653esac 12654 12655 12656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12657# Files that config.status was made for. 12658config_files="$ac_config_files" 12659config_headers="$ac_config_headers" 12660config_commands="$ac_config_commands" 12661 12662_ACEOF 12663 12664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12665ac_cs_usage="\ 12666\`$as_me' instantiates files and other configuration actions 12667from templates according to the current configuration. Unless the files 12668and actions are specified as TAGs, all are instantiated by default. 12669 12670Usage: $0 [OPTION]... [TAG]... 12671 12672 -h, --help print this help, then exit 12673 -V, --version print version number and configuration settings, then exit 12674 --config print configuration, then exit 12675 -q, --quiet, --silent 12676 do not print progress messages 12677 -d, --debug don't remove temporary files 12678 --recheck update $as_me by reconfiguring in the same conditions 12679 --file=FILE[:TEMPLATE] 12680 instantiate the configuration file FILE 12681 --header=FILE[:TEMPLATE] 12682 instantiate the configuration header FILE 12683 12684Configuration files: 12685$config_files 12686 12687Configuration headers: 12688$config_headers 12689 12690Configuration commands: 12691$config_commands 12692 12693Report bugs to <mzqnrzba (at) 0pointer (dot) de>." 12694 12695_ACEOF 12696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12697ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12698ac_cs_version="\\ 12699libdaemon config.status 0.14 12700configured by $0, generated by GNU Autoconf 2.68, 12701 with options \\"\$ac_cs_config\\" 12702 12703Copyright (C) 2010 Free Software Foundation, Inc. 12704This config.status script is free software; the Free Software Foundation 12705gives unlimited permission to copy, distribute and modify it." 12706 12707ac_pwd='$ac_pwd' 12708srcdir='$srcdir' 12709INSTALL='$INSTALL' 12710MKDIR_P='$MKDIR_P' 12711AWK='$AWK' 12712test -n "\$AWK" || AWK=awk 12713_ACEOF 12714 12715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12716# The default lists apply if the user does not specify any file. 12717ac_need_defaults=: 12718while test $# != 0 12719do 12720 case $1 in 12721 --*=?*) 12722 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12724 ac_shift=: 12725 ;; 12726 --*=) 12727 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12728 ac_optarg= 12729 ac_shift=: 12730 ;; 12731 *) 12732 ac_option=$1 12733 ac_optarg=$2 12734 ac_shift=shift 12735 ;; 12736 esac 12737 12738 case $ac_option in 12739 # Handling of the options. 12740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12741 ac_cs_recheck=: ;; 12742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12743 $as_echo "$ac_cs_version"; exit ;; 12744 --config | --confi | --conf | --con | --co | --c ) 12745 $as_echo "$ac_cs_config"; exit ;; 12746 --debug | --debu | --deb | --de | --d | -d ) 12747 debug=: ;; 12748 --file | --fil | --fi | --f ) 12749 $ac_shift 12750 case $ac_optarg in 12751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12752 '') as_fn_error $? "missing file argument" ;; 12753 esac 12754 as_fn_append CONFIG_FILES " '$ac_optarg'" 12755 ac_need_defaults=false;; 12756 --header | --heade | --head | --hea ) 12757 $ac_shift 12758 case $ac_optarg in 12759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12760 esac 12761 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12762 ac_need_defaults=false;; 12763 --he | --h) 12764 # Conflict between --help and --header 12765 as_fn_error $? "ambiguous option: \`$1' 12766Try \`$0 --help' for more information.";; 12767 --help | --hel | -h ) 12768 $as_echo "$ac_cs_usage"; exit ;; 12769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12770 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12771 ac_cs_silent=: ;; 12772 12773 # This is an error. 12774 -*) as_fn_error $? "unrecognized option: \`$1' 12775Try \`$0 --help' for more information." ;; 12776 12777 *) as_fn_append ac_config_targets " $1" 12778 ac_need_defaults=false ;; 12779 12780 esac 12781 shift 12782done 12783 12784ac_configure_extra_args= 12785 12786if $ac_cs_silent; then 12787 exec 6>/dev/null 12788 ac_configure_extra_args="$ac_configure_extra_args --silent" 12789fi 12790 12791_ACEOF 12792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12793if \$ac_cs_recheck; then 12794 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12795 shift 12796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12797 CONFIG_SHELL='$SHELL' 12798 export CONFIG_SHELL 12799 exec "\$@" 12800fi 12801 12802_ACEOF 12803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12804exec 5>>config.log 12805{ 12806 echo 12807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12808## Running $as_me. ## 12809_ASBOX 12810 $as_echo "$ac_log" 12811} >&5 12812 12813_ACEOF 12814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12815# 12816# INIT-COMMANDS 12817# 12818AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12819 12820 12821# The HP-UX ksh and POSIX shell print the target directory to stdout 12822# if CDPATH is set. 12823(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12824 12825sed_quote_subst='$sed_quote_subst' 12826double_quote_subst='$double_quote_subst' 12827delay_variable_subst='$delay_variable_subst' 12828macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12829macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12830enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12831enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12832pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12833enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12834host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12835host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12836host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12837build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12838build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12839build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12840SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12841Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12842GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12843EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12844FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12845LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12846NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12847LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12848max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12849ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12850exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12851lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12852lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12853lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12854reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12855reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12856OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12857deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12858file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12859AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12860AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12861STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12862RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12863old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12864old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12865old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12866CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12867CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12868compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12869GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12870lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12871lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12872lt_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"`' 12873lt_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"`' 12874objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12875SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12876ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12877MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12878lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12879lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12880lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12881lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12882lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12883need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12884DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12885NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12886LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12887OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12888OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12889libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12890shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12891extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12892archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12893enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12894export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12895whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12896compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12897old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12898old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12899archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12900archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12901module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12902module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12903with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12904allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12905no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12906hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12907hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12908hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12909hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12910hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12911hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12912hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12913hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12914inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12915link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12916fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12917always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12918export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12919exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12920include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12921prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12922file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12923variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12924need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12925need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12926version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12927runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12928shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12929shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12930libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12931library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12932soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12933postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12934postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12935finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12936finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12937hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12938sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12939sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12940hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12941enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12942enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12943enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12944old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12945striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12946 12947LTCC='$LTCC' 12948LTCFLAGS='$LTCFLAGS' 12949compiler='$compiler_DEFAULT' 12950 12951# Quote evaled strings. 12952for var in SED \ 12953GREP \ 12954EGREP \ 12955FGREP \ 12956LD \ 12957NM \ 12958LN_S \ 12959lt_SP2NL \ 12960lt_NL2SP \ 12961reload_flag \ 12962OBJDUMP \ 12963deplibs_check_method \ 12964file_magic_cmd \ 12965AR \ 12966AR_FLAGS \ 12967STRIP \ 12968RANLIB \ 12969CC \ 12970CFLAGS \ 12971compiler \ 12972lt_cv_sys_global_symbol_pipe \ 12973lt_cv_sys_global_symbol_to_cdecl \ 12974lt_cv_sys_global_symbol_to_c_name_address \ 12975lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12976SHELL \ 12977ECHO \ 12978lt_prog_compiler_no_builtin_flag \ 12979lt_prog_compiler_wl \ 12980lt_prog_compiler_pic \ 12981lt_prog_compiler_static \ 12982lt_cv_prog_compiler_c_o \ 12983need_locks \ 12984DSYMUTIL \ 12985NMEDIT \ 12986LIPO \ 12987OTOOL \ 12988OTOOL64 \ 12989shrext_cmds \ 12990export_dynamic_flag_spec \ 12991whole_archive_flag_spec \ 12992compiler_needs_object \ 12993with_gnu_ld \ 12994allow_undefined_flag \ 12995no_undefined_flag \ 12996hardcode_libdir_flag_spec \ 12997hardcode_libdir_flag_spec_ld \ 12998hardcode_libdir_separator \ 12999fix_srcfile_path \ 13000exclude_expsyms \ 13001include_expsyms \ 13002file_list_spec \ 13003variables_saved_for_relink \ 13004libname_spec \ 13005library_names_spec \ 13006soname_spec \ 13007finish_eval \ 13008old_striplib \ 13009striplib; do 13010 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13011 *[\\\\\\\`\\"\\\$]*) 13012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13013 ;; 13014 *) 13015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13016 ;; 13017 esac 13018done 13019 13020# Double-quote double-evaled strings. 13021for var in reload_cmds \ 13022old_postinstall_cmds \ 13023old_postuninstall_cmds \ 13024old_archive_cmds \ 13025extract_expsyms_cmds \ 13026old_archive_from_new_cmds \ 13027old_archive_from_expsyms_cmds \ 13028archive_cmds \ 13029archive_expsym_cmds \ 13030module_cmds \ 13031module_expsym_cmds \ 13032export_symbols_cmds \ 13033prelink_cmds \ 13034postinstall_cmds \ 13035postuninstall_cmds \ 13036finish_cmds \ 13037sys_lib_search_path_spec \ 13038sys_lib_dlsearch_path_spec; do 13039 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13040 *[\\\\\\\`\\"\\\$]*) 13041 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13042 ;; 13043 *) 13044 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13045 ;; 13046 esac 13047done 13048 13049# Fix-up fallback echo if it was mangled by the above quoting rules. 13050case \$lt_ECHO in 13051*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13052 ;; 13053esac 13054 13055ac_aux_dir='$ac_aux_dir' 13056xsi_shell='$xsi_shell' 13057lt_shell_append='$lt_shell_append' 13058 13059# See if we are running on zsh, and set the options which allow our 13060# commands through without removal of \ escapes INIT. 13061if test -n "\${ZSH_VERSION+set}" ; then 13062 setopt NO_GLOB_SUBST 13063fi 13064 13065 13066 PACKAGE='$PACKAGE' 13067 VERSION='$VERSION' 13068 TIMESTAMP='$TIMESTAMP' 13069 RM='$RM' 13070 ofile='$ofile' 13071 13072 13073 13074 13075_ACEOF 13076 13077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13078 13079# Handling of arguments. 13080for ac_config_target in $ac_config_targets 13081do 13082 case $ac_config_target in 13083 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13084 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13085 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13086 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; 13087 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13088 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13089 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;; 13090 "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;; 13091 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 13092 "pkgconfig/libdaemon.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon.pc" ;; 13093 "pkgconfig/libdaemon-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon-uninstalled.pc" ;; 13094 13095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13096 esac 13097done 13098 13099 13100# If the user did not use the arguments to specify the items to instantiate, 13101# then the envvar interface is used. Set only those that are not. 13102# We use the long form for the default assignment because of an extremely 13103# bizarre bug on SunOS 4.1.3. 13104if $ac_need_defaults; then 13105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13108fi 13109 13110# Have a temporary directory for convenience. Make it in the build tree 13111# simply because there is no reason against having it here, and in addition, 13112# creating and moving files from /tmp can sometimes cause problems. 13113# Hook for its removal unless debugging. 13114# Note that there is a small window in which the directory will not be cleaned: 13115# after its creation but before its name has been assigned to `$tmp'. 13116$debug || 13117{ 13118 tmp= ac_tmp= 13119 trap 'exit_status=$? 13120 : "${ac_tmp:=$tmp}" 13121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13122' 0 13123 trap 'as_fn_exit 1' 1 2 13 15 13124} 13125# Create a (secure) tmp directory for tmp files. 13126 13127{ 13128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13129 test -d "$tmp" 13130} || 13131{ 13132 tmp=./conf$$-$RANDOM 13133 (umask 077 && mkdir "$tmp") 13134} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13135ac_tmp=$tmp 13136 13137# Set up the scripts for CONFIG_FILES section. 13138# No need to generate them if there are no CONFIG_FILES. 13139# This happens for instance with `./config.status config.h'. 13140if test -n "$CONFIG_FILES"; then 13141 13142 13143ac_cr=`echo X | tr X '\015'` 13144# On cygwin, bash can eat \r inside `` if the user requested igncr. 13145# But we know of no other shell where ac_cr would be empty at this 13146# point, so we can use a bashism as a fallback. 13147if test "x$ac_cr" = x; then 13148 eval ac_cr=\$\'\\r\' 13149fi 13150ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13151if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13152 ac_cs_awk_cr='\\r' 13153else 13154 ac_cs_awk_cr=$ac_cr 13155fi 13156 13157echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13158_ACEOF 13159 13160 13161{ 13162 echo "cat >conf$$subs.awk <<_ACEOF" && 13163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13164 echo "_ACEOF" 13165} >conf$$subs.sh || 13166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13167ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13168ac_delim='%!_!# ' 13169for ac_last_try in false false false false false :; do 13170 . ./conf$$subs.sh || 13171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13172 13173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13174 if test $ac_delim_n = $ac_delim_num; then 13175 break 13176 elif $ac_last_try; then 13177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13178 else 13179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13180 fi 13181done 13182rm -f conf$$subs.sh 13183 13184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13185cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13186_ACEOF 13187sed -n ' 13188h 13189s/^/S["/; s/!.*/"]=/ 13190p 13191g 13192s/^[^!]*!// 13193:repl 13194t repl 13195s/'"$ac_delim"'$// 13196t delim 13197:nl 13198h 13199s/\(.\{148\}\)..*/\1/ 13200t more1 13201s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13202p 13203n 13204b repl 13205:more1 13206s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13207p 13208g 13209s/.\{148\}// 13210t nl 13211:delim 13212h 13213s/\(.\{148\}\)..*/\1/ 13214t more2 13215s/["\\]/\\&/g; s/^/"/; s/$/"/ 13216p 13217b 13218:more2 13219s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13220p 13221g 13222s/.\{148\}// 13223t delim 13224' <conf$$subs.awk | sed ' 13225/^[^""]/{ 13226 N 13227 s/\n// 13228} 13229' >>$CONFIG_STATUS || ac_write_fail=1 13230rm -f conf$$subs.awk 13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13232_ACAWK 13233cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13234 for (key in S) S_is_set[key] = 1 13235 FS = "" 13236 13237} 13238{ 13239 line = $ 0 13240 nfields = split(line, field, "@") 13241 substed = 0 13242 len = length(field[1]) 13243 for (i = 2; i < nfields; i++) { 13244 key = field[i] 13245 keylen = length(key) 13246 if (S_is_set[key]) { 13247 value = S[key] 13248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13249 len += length(value) + length(field[++i]) 13250 substed = 1 13251 } else 13252 len += 1 + keylen 13253 } 13254 13255 print line 13256} 13257 13258_ACAWK 13259_ACEOF 13260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13261if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13263else 13264 cat 13265fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13266 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13267_ACEOF 13268 13269# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13270# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13271# trailing colons and then remove the whole line if VPATH becomes empty 13272# (actually we leave an empty line to preserve line numbers). 13273if test "x$srcdir" = x.; then 13274 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13275h 13276s/// 13277s/^/:/ 13278s/[ ]*$/:/ 13279s/:\$(srcdir):/:/g 13280s/:\${srcdir}:/:/g 13281s/:@srcdir@:/:/g 13282s/^:*// 13283s/:*$// 13284x 13285s/\(=[ ]*\).*/\1/ 13286G 13287s/\n// 13288s/^[^=]*=[ ]*$// 13289}' 13290fi 13291 13292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13293fi # test -n "$CONFIG_FILES" 13294 13295# Set up the scripts for CONFIG_HEADERS section. 13296# No need to generate them if there are no CONFIG_HEADERS. 13297# This happens for instance with `./config.status Makefile'. 13298if test -n "$CONFIG_HEADERS"; then 13299cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13300BEGIN { 13301_ACEOF 13302 13303# Transform confdefs.h into an awk script `defines.awk', embedded as 13304# here-document in config.status, that substitutes the proper values into 13305# config.h.in to produce config.h. 13306 13307# Create a delimiter string that does not exist in confdefs.h, to ease 13308# handling of long lines. 13309ac_delim='%!_!# ' 13310for ac_last_try in false false :; do 13311 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13312 if test -z "$ac_tt"; then 13313 break 13314 elif $ac_last_try; then 13315 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13316 else 13317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13318 fi 13319done 13320 13321# For the awk script, D is an array of macro values keyed by name, 13322# likewise P contains macro parameters if any. Preserve backslash 13323# newline sequences. 13324 13325ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13326sed -n ' 13327s/.\{148\}/&'"$ac_delim"'/g 13328t rset 13329:rset 13330s/^[ ]*#[ ]*define[ ][ ]*/ / 13331t def 13332d 13333:def 13334s/\\$// 13335t bsnl 13336s/["\\]/\\&/g 13337s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13338D["\1"]=" \3"/p 13339s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13340d 13341:bsnl 13342s/["\\]/\\&/g 13343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13344D["\1"]=" \3\\\\\\n"\\/p 13345t cont 13346s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13347t cont 13348d 13349:cont 13350n 13351s/.\{148\}/&'"$ac_delim"'/g 13352t clear 13353:clear 13354s/\\$// 13355t bsnlc 13356s/["\\]/\\&/g; s/^/"/; s/$/"/p 13357d 13358:bsnlc 13359s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13360b cont 13361' <confdefs.h | sed ' 13362s/'"$ac_delim"'/"\\\ 13363"/g' >>$CONFIG_STATUS || ac_write_fail=1 13364 13365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13366 for (key in D) D_is_set[key] = 1 13367 FS = "" 13368} 13369/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13370 line = \$ 0 13371 split(line, arg, " ") 13372 if (arg[1] == "#") { 13373 defundef = arg[2] 13374 mac1 = arg[3] 13375 } else { 13376 defundef = substr(arg[1], 2) 13377 mac1 = arg[2] 13378 } 13379 split(mac1, mac2, "(") #) 13380 macro = mac2[1] 13381 prefix = substr(line, 1, index(line, defundef) - 1) 13382 if (D_is_set[macro]) { 13383 # Preserve the white space surrounding the "#". 13384 print prefix "define", macro P[macro] D[macro] 13385 next 13386 } else { 13387 # Replace #undef with comments. This is necessary, for example, 13388 # in the case of _POSIX_SOURCE, which is predefined and required 13389 # on some systems where configure will not decide to define it. 13390 if (defundef == "undef") { 13391 print "/*", prefix defundef, macro, "*/" 13392 next 13393 } 13394 } 13395} 13396{ print } 13397_ACAWK 13398_ACEOF 13399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13400 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13401fi # test -n "$CONFIG_HEADERS" 13402 13403 13404eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13405shift 13406for ac_tag 13407do 13408 case $ac_tag in 13409 :[FHLC]) ac_mode=$ac_tag; continue;; 13410 esac 13411 case $ac_mode$ac_tag in 13412 :[FHL]*:*);; 13413 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13414 :[FH]-) ac_tag=-:-;; 13415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13416 esac 13417 ac_save_IFS=$IFS 13418 IFS=: 13419 set x $ac_tag 13420 IFS=$ac_save_IFS 13421 shift 13422 ac_file=$1 13423 shift 13424 13425 case $ac_mode in 13426 :L) ac_source=$1;; 13427 :[FH]) 13428 ac_file_inputs= 13429 for ac_f 13430 do 13431 case $ac_f in 13432 -) ac_f="$ac_tmp/stdin";; 13433 *) # Look for the file first in the build tree, then in the source tree 13434 # (if the path is not absolute). The absolute path cannot be DOS-style, 13435 # because $ac_f cannot contain `:'. 13436 test -f "$ac_f" || 13437 case $ac_f in 13438 [\\/$]*) false;; 13439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13440 esac || 13441 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13442 esac 13443 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13444 as_fn_append ac_file_inputs " '$ac_f'" 13445 done 13446 13447 # Let's still pretend it is `configure' which instantiates (i.e., don't 13448 # use $as_me), people would be surprised to read: 13449 # /* config.h. Generated by config.status. */ 13450 configure_input='Generated from '` 13451 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13452 `' by configure.' 13453 if test x"$ac_file" != x-; then 13454 configure_input="$ac_file. $configure_input" 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13456$as_echo "$as_me: creating $ac_file" >&6;} 13457 fi 13458 # Neutralize special characters interpreted by sed in replacement strings. 13459 case $configure_input in #( 13460 *\&* | *\|* | *\\* ) 13461 ac_sed_conf_input=`$as_echo "$configure_input" | 13462 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13463 *) ac_sed_conf_input=$configure_input;; 13464 esac 13465 13466 case $ac_tag in 13467 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13469 esac 13470 ;; 13471 esac 13472 13473 ac_dir=`$as_dirname -- "$ac_file" || 13474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13475 X"$ac_file" : 'X\(//\)[^/]' \| \ 13476 X"$ac_file" : 'X\(//\)$' \| \ 13477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13478$as_echo X"$ac_file" | 13479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13480 s//\1/ 13481 q 13482 } 13483 /^X\(\/\/\)[^/].*/{ 13484 s//\1/ 13485 q 13486 } 13487 /^X\(\/\/\)$/{ 13488 s//\1/ 13489 q 13490 } 13491 /^X\(\/\).*/{ 13492 s//\1/ 13493 q 13494 } 13495 s/.*/./; q'` 13496 as_dir="$ac_dir"; as_fn_mkdir_p 13497 ac_builddir=. 13498 13499case "$ac_dir" in 13500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13501*) 13502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13503 # A ".." for each directory in $ac_dir_suffix. 13504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13505 case $ac_top_builddir_sub in 13506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13508 esac ;; 13509esac 13510ac_abs_top_builddir=$ac_pwd 13511ac_abs_builddir=$ac_pwd$ac_dir_suffix 13512# for backward compatibility: 13513ac_top_builddir=$ac_top_build_prefix 13514 13515case $srcdir in 13516 .) # We are building in place. 13517 ac_srcdir=. 13518 ac_top_srcdir=$ac_top_builddir_sub 13519 ac_abs_top_srcdir=$ac_pwd ;; 13520 [\\/]* | ?:[\\/]* ) # Absolute name. 13521 ac_srcdir=$srcdir$ac_dir_suffix; 13522 ac_top_srcdir=$srcdir 13523 ac_abs_top_srcdir=$srcdir ;; 13524 *) # Relative name. 13525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13526 ac_top_srcdir=$ac_top_build_prefix$srcdir 13527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13528esac 13529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13530 13531 13532 case $ac_mode in 13533 :F) 13534 # 13535 # CONFIG_FILE 13536 # 13537 13538 case $INSTALL in 13539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13541 esac 13542 ac_MKDIR_P=$MKDIR_P 13543 case $MKDIR_P in 13544 [\\/$]* | ?:[\\/]* ) ;; 13545 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13546 esac 13547_ACEOF 13548 13549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13550# If the template does not know about datarootdir, expand it. 13551# FIXME: This hack should be removed a few years after 2.60. 13552ac_datarootdir_hack=; ac_datarootdir_seen= 13553ac_sed_dataroot=' 13554/datarootdir/ { 13555 p 13556 q 13557} 13558/@datadir@/p 13559/@docdir@/p 13560/@infodir@/p 13561/@localedir@/p 13562/@mandir@/p' 13563case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13564*datarootdir*) ac_datarootdir_seen=yes;; 13565*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13567$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13568_ACEOF 13569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13570 ac_datarootdir_hack=' 13571 s&@datadir@&$datadir&g 13572 s&@docdir@&$docdir&g 13573 s&@infodir@&$infodir&g 13574 s&@localedir@&$localedir&g 13575 s&@mandir@&$mandir&g 13576 s&\\\${datarootdir}&$datarootdir&g' ;; 13577esac 13578_ACEOF 13579 13580# Neutralize VPATH when `$srcdir' = `.'. 13581# Shell code in configure.ac might set extrasub. 13582# FIXME: do we really want to maintain this feature? 13583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13584ac_sed_extra="$ac_vpsub 13585$extrasub 13586_ACEOF 13587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13588:t 13589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13590s|@configure_input@|$ac_sed_conf_input|;t t 13591s&@top_builddir@&$ac_top_builddir_sub&;t t 13592s&@top_build_prefix@&$ac_top_build_prefix&;t t 13593s&@srcdir@&$ac_srcdir&;t t 13594s&@abs_srcdir@&$ac_abs_srcdir&;t t 13595s&@top_srcdir@&$ac_top_srcdir&;t t 13596s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13597s&@builddir@&$ac_builddir&;t t 13598s&@abs_builddir@&$ac_abs_builddir&;t t 13599s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13600s&@INSTALL@&$ac_INSTALL&;t t 13601s&@MKDIR_P@&$ac_MKDIR_P&;t t 13602$ac_datarootdir_hack 13603" 13604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13605 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13606 13607test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13608 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13609 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13610 "$ac_tmp/out"`; test -z "$ac_out"; } && 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13612which seems to be undefined. Please make sure it is defined" >&5 13613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13614which seems to be undefined. Please make sure it is defined" >&2;} 13615 13616 rm -f "$ac_tmp/stdin" 13617 case $ac_file in 13618 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13619 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13620 esac \ 13621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13622 ;; 13623 :H) 13624 # 13625 # CONFIG_HEADER 13626 # 13627 if test x"$ac_file" != x-; then 13628 { 13629 $as_echo "/* $configure_input */" \ 13630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13631 } >"$ac_tmp/config.h" \ 13632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13633 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13635$as_echo "$as_me: $ac_file is unchanged" >&6;} 13636 else 13637 rm -f "$ac_file" 13638 mv "$ac_tmp/config.h" "$ac_file" \ 13639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13640 fi 13641 else 13642 $as_echo "/* $configure_input */" \ 13643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13644 || as_fn_error $? "could not create -" "$LINENO" 5 13645 fi 13646# Compute "$ac_file"'s index in $config_headers. 13647_am_arg="$ac_file" 13648_am_stamp_count=1 13649for _am_header in $config_headers :; do 13650 case $_am_header in 13651 $_am_arg | $_am_arg:* ) 13652 break ;; 13653 * ) 13654 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13655 esac 13656done 13657echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13658$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13659 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13660 X"$_am_arg" : 'X\(//\)$' \| \ 13661 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13662$as_echo X"$_am_arg" | 13663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13664 s//\1/ 13665 q 13666 } 13667 /^X\(\/\/\)[^/].*/{ 13668 s//\1/ 13669 q 13670 } 13671 /^X\(\/\/\)$/{ 13672 s//\1/ 13673 q 13674 } 13675 /^X\(\/\).*/{ 13676 s//\1/ 13677 q 13678 } 13679 s/.*/./; q'`/stamp-h$_am_stamp_count 13680 ;; 13681 13682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13683$as_echo "$as_me: executing $ac_file commands" >&6;} 13684 ;; 13685 esac 13686 13687 13688 case $ac_file$ac_mode in 13689 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13690 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13691 # are listed without --file. Let's play safe and only enable the eval 13692 # if we detect the quoting. 13693 case $CONFIG_FILES in 13694 *\'*) eval set x "$CONFIG_FILES" ;; 13695 *) set x $CONFIG_FILES ;; 13696 esac 13697 shift 13698 for mf 13699 do 13700 # Strip MF so we end up with the name of the file. 13701 mf=`echo "$mf" | sed -e 's/:.*$//'` 13702 # Check whether this is an Automake generated Makefile or not. 13703 # We used to match only the files named `Makefile.in', but 13704 # some people rename them; so instead we look at the file content. 13705 # Grep'ing the first line is not enough: some people post-process 13706 # each Makefile.in and add a new line on top of each file to say so. 13707 # Grep'ing the whole file is not good either: AIX grep has a line 13708 # limit of 2048, but all sed's we know have understand at least 4000. 13709 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13710 dirpart=`$as_dirname -- "$mf" || 13711$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13712 X"$mf" : 'X\(//\)[^/]' \| \ 13713 X"$mf" : 'X\(//\)$' \| \ 13714 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13715$as_echo X"$mf" | 13716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13717 s//\1/ 13718 q 13719 } 13720 /^X\(\/\/\)[^/].*/{ 13721 s//\1/ 13722 q 13723 } 13724 /^X\(\/\/\)$/{ 13725 s//\1/ 13726 q 13727 } 13728 /^X\(\/\).*/{ 13729 s//\1/ 13730 q 13731 } 13732 s/.*/./; q'` 13733 else 13734 continue 13735 fi 13736 # Extract the definition of DEPDIR, am__include, and am__quote 13737 # from the Makefile without running `make'. 13738 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13739 test -z "$DEPDIR" && continue 13740 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13741 test -z "am__include" && continue 13742 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13743 # When using ansi2knr, U may be empty or an underscore; expand it 13744 U=`sed -n 's/^U = //p' < "$mf"` 13745 # Find all dependency output files, they are included files with 13746 # $(DEPDIR) in their names. We invoke sed twice because it is the 13747 # simplest approach to changing $(DEPDIR) to its actual value in the 13748 # expansion. 13749 for file in `sed -n " 13750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13752 # Make sure the directory exists. 13753 test -f "$dirpart/$file" && continue 13754 fdir=`$as_dirname -- "$file" || 13755$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13756 X"$file" : 'X\(//\)[^/]' \| \ 13757 X"$file" : 'X\(//\)$' \| \ 13758 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13759$as_echo X"$file" | 13760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13761 s//\1/ 13762 q 13763 } 13764 /^X\(\/\/\)[^/].*/{ 13765 s//\1/ 13766 q 13767 } 13768 /^X\(\/\/\)$/{ 13769 s//\1/ 13770 q 13771 } 13772 /^X\(\/\).*/{ 13773 s//\1/ 13774 q 13775 } 13776 s/.*/./; q'` 13777 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13778 # echo "creating $dirpart/$file" 13779 echo '# dummy' > "$dirpart/$file" 13780 done 13781 done 13782} 13783 ;; 13784 "libtool":C) 13785 13786 # See if we are running on zsh, and set the options which allow our 13787 # commands through without removal of \ escapes. 13788 if test -n "${ZSH_VERSION+set}" ; then 13789 setopt NO_GLOB_SUBST 13790 fi 13791 13792 cfgfile="${ofile}T" 13793 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13794 $RM "$cfgfile" 13795 13796 cat <<_LT_EOF >> "$cfgfile" 13797#! $SHELL 13798 13799# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13800# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13801# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13802# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13803# 13804# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13805# 2006, 2007, 2008 Free Software Foundation, Inc. 13806# Written by Gordon Matzigkeit, 1996 13807# 13808# This file is part of GNU Libtool. 13809# 13810# GNU Libtool is free software; you can redistribute it and/or 13811# modify it under the terms of the GNU General Public License as 13812# published by the Free Software Foundation; either version 2 of 13813# the License, or (at your option) any later version. 13814# 13815# As a special exception to the GNU General Public License, 13816# if you distribute this file as part of a program or library that 13817# is built using GNU Libtool, you may include this file under the 13818# same distribution terms that you use for the rest of that program. 13819# 13820# GNU Libtool is distributed in the hope that it will be useful, 13821# but WITHOUT ANY WARRANTY; without even the implied warranty of 13822# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13823# GNU General Public License for more details. 13824# 13825# You should have received a copy of the GNU General Public License 13826# along with GNU Libtool; see the file COPYING. If not, a copy 13827# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13828# obtained by writing to the Free Software Foundation, Inc., 13829# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13830 13831 13832# The names of the tagged configurations supported by this script. 13833available_tags="" 13834 13835# ### BEGIN LIBTOOL CONFIG 13836 13837# Which release of libtool.m4 was used? 13838macro_version=$macro_version 13839macro_revision=$macro_revision 13840 13841# Whether or not to build shared libraries. 13842build_libtool_libs=$enable_shared 13843 13844# Whether or not to build static libraries. 13845build_old_libs=$enable_static 13846 13847# What type of objects to build. 13848pic_mode=$pic_mode 13849 13850# Whether or not to optimize for fast installation. 13851fast_install=$enable_fast_install 13852 13853# The host system. 13854host_alias=$host_alias 13855host=$host 13856host_os=$host_os 13857 13858# The build system. 13859build_alias=$build_alias 13860build=$build 13861build_os=$build_os 13862 13863# A sed program that does not truncate output. 13864SED=$lt_SED 13865 13866# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13867Xsed="\$SED -e 1s/^X//" 13868 13869# A grep program that handles long lines. 13870GREP=$lt_GREP 13871 13872# An ERE matcher. 13873EGREP=$lt_EGREP 13874 13875# A literal string matcher. 13876FGREP=$lt_FGREP 13877 13878# A BSD- or MS-compatible name lister. 13879NM=$lt_NM 13880 13881# Whether we need soft or hard links. 13882LN_S=$lt_LN_S 13883 13884# What is the maximum length of a command? 13885max_cmd_len=$max_cmd_len 13886 13887# Object file suffix (normally "o"). 13888objext=$ac_objext 13889 13890# Executable file suffix (normally ""). 13891exeext=$exeext 13892 13893# whether the shell understands "unset". 13894lt_unset=$lt_unset 13895 13896# turn spaces into newlines. 13897SP2NL=$lt_lt_SP2NL 13898 13899# turn newlines into spaces. 13900NL2SP=$lt_lt_NL2SP 13901 13902# How to create reloadable object files. 13903reload_flag=$lt_reload_flag 13904reload_cmds=$lt_reload_cmds 13905 13906# An object symbol dumper. 13907OBJDUMP=$lt_OBJDUMP 13908 13909# Method to check whether dependent libraries are shared objects. 13910deplibs_check_method=$lt_deplibs_check_method 13911 13912# Command to use when deplibs_check_method == "file_magic". 13913file_magic_cmd=$lt_file_magic_cmd 13914 13915# The archiver. 13916AR=$lt_AR 13917AR_FLAGS=$lt_AR_FLAGS 13918 13919# A symbol stripping program. 13920STRIP=$lt_STRIP 13921 13922# Commands used to install an old-style archive. 13923RANLIB=$lt_RANLIB 13924old_postinstall_cmds=$lt_old_postinstall_cmds 13925old_postuninstall_cmds=$lt_old_postuninstall_cmds 13926 13927# A C compiler. 13928LTCC=$lt_CC 13929 13930# LTCC compiler flags. 13931LTCFLAGS=$lt_CFLAGS 13932 13933# Take the output of nm and produce a listing of raw symbols and C names. 13934global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13935 13936# Transform the output of nm in a proper C declaration. 13937global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13938 13939# Transform the output of nm in a C name address pair. 13940global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13941 13942# Transform the output of nm in a C name address pair when lib prefix is needed. 13943global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13944 13945# The name of the directory that contains temporary libtool files. 13946objdir=$objdir 13947 13948# Shell to use when invoking shell scripts. 13949SHELL=$lt_SHELL 13950 13951# An echo program that does not interpret backslashes. 13952ECHO=$lt_ECHO 13953 13954# Used to examine libraries when file_magic_cmd begins with "file". 13955MAGIC_CMD=$MAGIC_CMD 13956 13957# Must we lock files when doing compilation? 13958need_locks=$lt_need_locks 13959 13960# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13961DSYMUTIL=$lt_DSYMUTIL 13962 13963# Tool to change global to local symbols on Mac OS X. 13964NMEDIT=$lt_NMEDIT 13965 13966# Tool to manipulate fat objects and archives on Mac OS X. 13967LIPO=$lt_LIPO 13968 13969# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13970OTOOL=$lt_OTOOL 13971 13972# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13973OTOOL64=$lt_OTOOL64 13974 13975# Old archive suffix (normally "a"). 13976libext=$libext 13977 13978# Shared library suffix (normally ".so"). 13979shrext_cmds=$lt_shrext_cmds 13980 13981# The commands to extract the exported symbol list from a shared archive. 13982extract_expsyms_cmds=$lt_extract_expsyms_cmds 13983 13984# Variables whose values should be saved in libtool wrapper scripts and 13985# restored at link time. 13986variables_saved_for_relink=$lt_variables_saved_for_relink 13987 13988# Do we need the "lib" prefix for modules? 13989need_lib_prefix=$need_lib_prefix 13990 13991# Do we need a version for libraries? 13992need_version=$need_version 13993 13994# Library versioning type. 13995version_type=$version_type 13996 13997# Shared library runtime path variable. 13998runpath_var=$runpath_var 13999 14000# Shared library path variable. 14001shlibpath_var=$shlibpath_var 14002 14003# Is shlibpath searched before the hard-coded library search path? 14004shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14005 14006# Format of library name prefix. 14007libname_spec=$lt_libname_spec 14008 14009# List of archive names. First name is the real one, the rest are links. 14010# The last name is the one that the linker finds with -lNAME 14011library_names_spec=$lt_library_names_spec 14012 14013# The coded name of the library, if different from the real name. 14014soname_spec=$lt_soname_spec 14015 14016# Command to use after installation of a shared archive. 14017postinstall_cmds=$lt_postinstall_cmds 14018 14019# Command to use after uninstallation of a shared archive. 14020postuninstall_cmds=$lt_postuninstall_cmds 14021 14022# Commands used to finish a libtool library installation in a directory. 14023finish_cmds=$lt_finish_cmds 14024 14025# As "finish_cmds", except a single script fragment to be evaled but 14026# not shown. 14027finish_eval=$lt_finish_eval 14028 14029# Whether we should hardcode library paths into libraries. 14030hardcode_into_libs=$hardcode_into_libs 14031 14032# Compile-time system search path for libraries. 14033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14034 14035# Run-time system search path for libraries. 14036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14037 14038# Whether dlopen is supported. 14039dlopen_support=$enable_dlopen 14040 14041# Whether dlopen of programs is supported. 14042dlopen_self=$enable_dlopen_self 14043 14044# Whether dlopen of statically linked programs is supported. 14045dlopen_self_static=$enable_dlopen_self_static 14046 14047# Commands to strip libraries. 14048old_striplib=$lt_old_striplib 14049striplib=$lt_striplib 14050 14051 14052# The linker used to build libraries. 14053LD=$lt_LD 14054 14055# Commands used to build an old-style archive. 14056old_archive_cmds=$lt_old_archive_cmds 14057 14058# A language specific compiler. 14059CC=$lt_compiler 14060 14061# Is the compiler the GNU compiler? 14062with_gcc=$GCC 14063 14064# Compiler flag to turn off builtin functions. 14065no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14066 14067# How to pass a linker flag through the compiler. 14068wl=$lt_lt_prog_compiler_wl 14069 14070# Additional compiler flags for building library objects. 14071pic_flag=$lt_lt_prog_compiler_pic 14072 14073# Compiler flag to prevent dynamic linking. 14074link_static_flag=$lt_lt_prog_compiler_static 14075 14076# Does compiler simultaneously support -c and -o options? 14077compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14078 14079# Whether or not to add -lc for building shared libraries. 14080build_libtool_need_lc=$archive_cmds_need_lc 14081 14082# Whether or not to disallow shared libs when runtime libs are static. 14083allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14084 14085# Compiler flag to allow reflexive dlopens. 14086export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14087 14088# Compiler flag to generate shared objects directly from archives. 14089whole_archive_flag_spec=$lt_whole_archive_flag_spec 14090 14091# Whether the compiler copes with passing no objects directly. 14092compiler_needs_object=$lt_compiler_needs_object 14093 14094# Create an old-style archive from a shared archive. 14095old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14096 14097# Create a temporary old-style archive to link instead of a shared archive. 14098old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14099 14100# Commands used to build a shared archive. 14101archive_cmds=$lt_archive_cmds 14102archive_expsym_cmds=$lt_archive_expsym_cmds 14103 14104# Commands used to build a loadable module if different from building 14105# a shared archive. 14106module_cmds=$lt_module_cmds 14107module_expsym_cmds=$lt_module_expsym_cmds 14108 14109# Whether we are building with GNU ld or not. 14110with_gnu_ld=$lt_with_gnu_ld 14111 14112# Flag that allows shared libraries with undefined symbols to be built. 14113allow_undefined_flag=$lt_allow_undefined_flag 14114 14115# Flag that enforces no undefined symbols. 14116no_undefined_flag=$lt_no_undefined_flag 14117 14118# Flag to hardcode \$libdir into a binary during linking. 14119# This must work even if \$libdir does not exist 14120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14121 14122# If ld is used when linking, flag to hardcode \$libdir into a binary 14123# during linking. This must work even if \$libdir does not exist. 14124hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14125 14126# Whether we need a single "-rpath" flag with a separated argument. 14127hardcode_libdir_separator=$lt_hardcode_libdir_separator 14128 14129# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14130# DIR into the resulting binary. 14131hardcode_direct=$hardcode_direct 14132 14133# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14134# DIR into the resulting binary and the resulting library dependency is 14135# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14136# library is relocated. 14137hardcode_direct_absolute=$hardcode_direct_absolute 14138 14139# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14140# into the resulting binary. 14141hardcode_minus_L=$hardcode_minus_L 14142 14143# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14144# into the resulting binary. 14145hardcode_shlibpath_var=$hardcode_shlibpath_var 14146 14147# Set to "yes" if building a shared library automatically hardcodes DIR 14148# into the library and all subsequent libraries and executables linked 14149# against it. 14150hardcode_automatic=$hardcode_automatic 14151 14152# Set to yes if linker adds runtime paths of dependent libraries 14153# to runtime path list. 14154inherit_rpath=$inherit_rpath 14155 14156# Whether libtool must link a program against all its dependency libraries. 14157link_all_deplibs=$link_all_deplibs 14158 14159# Fix the shell variable \$srcfile for the compiler. 14160fix_srcfile_path=$lt_fix_srcfile_path 14161 14162# Set to "yes" if exported symbols are required. 14163always_export_symbols=$always_export_symbols 14164 14165# The commands to list exported symbols. 14166export_symbols_cmds=$lt_export_symbols_cmds 14167 14168# Symbols that should not be listed in the preloaded symbols. 14169exclude_expsyms=$lt_exclude_expsyms 14170 14171# Symbols that must always be exported. 14172include_expsyms=$lt_include_expsyms 14173 14174# Commands necessary for linking programs (against libraries) with templates. 14175prelink_cmds=$lt_prelink_cmds 14176 14177# Specify filename containing input files. 14178file_list_spec=$lt_file_list_spec 14179 14180# How to hardcode a shared library path into an executable. 14181hardcode_action=$hardcode_action 14182 14183# ### END LIBTOOL CONFIG 14184 14185_LT_EOF 14186 14187 case $host_os in 14188 aix3*) 14189 cat <<\_LT_EOF >> "$cfgfile" 14190# AIX sometimes has problems with the GCC collect2 program. For some 14191# reason, if we set the COLLECT_NAMES environment variable, the problems 14192# vanish in a puff of smoke. 14193if test "X${COLLECT_NAMES+set}" != Xset; then 14194 COLLECT_NAMES= 14195 export COLLECT_NAMES 14196fi 14197_LT_EOF 14198 ;; 14199 esac 14200 14201 14202ltmain="$ac_aux_dir/ltmain.sh" 14203 14204 14205 # We use sed instead of cat because bash on DJGPP gets confused if 14206 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14207 # text mode, it properly converts lines to CR/LF. This bash problem 14208 # is reportedly fixed, but why not run on old versions too? 14209 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14210 || (rm -f "$cfgfile"; exit 1) 14211 14212 case $xsi_shell in 14213 yes) 14214 cat << \_LT_EOF >> "$cfgfile" 14215 14216# func_dirname file append nondir_replacement 14217# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14218# otherwise set result to NONDIR_REPLACEMENT. 14219func_dirname () 14220{ 14221 case ${1} in 14222 */*) func_dirname_result="${1%/*}${2}" ;; 14223 * ) func_dirname_result="${3}" ;; 14224 esac 14225} 14226 14227# func_basename file 14228func_basename () 14229{ 14230 func_basename_result="${1##*/}" 14231} 14232 14233# func_dirname_and_basename file append nondir_replacement 14234# perform func_basename and func_dirname in a single function 14235# call: 14236# dirname: Compute the dirname of FILE. If nonempty, 14237# add APPEND to the result, otherwise set result 14238# to NONDIR_REPLACEMENT. 14239# value returned in "$func_dirname_result" 14240# basename: Compute filename of FILE. 14241# value retuned in "$func_basename_result" 14242# Implementation must be kept synchronized with func_dirname 14243# and func_basename. For efficiency, we do not delegate to 14244# those functions but instead duplicate the functionality here. 14245func_dirname_and_basename () 14246{ 14247 case ${1} in 14248 */*) func_dirname_result="${1%/*}${2}" ;; 14249 * ) func_dirname_result="${3}" ;; 14250 esac 14251 func_basename_result="${1##*/}" 14252} 14253 14254# func_stripname prefix suffix name 14255# strip PREFIX and SUFFIX off of NAME. 14256# PREFIX and SUFFIX must not contain globbing or regex special 14257# characters, hashes, percent signs, but SUFFIX may contain a leading 14258# dot (in which case that matches only a dot). 14259func_stripname () 14260{ 14261 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14262 # positional parameters, so assign one to ordinary parameter first. 14263 func_stripname_result=${3} 14264 func_stripname_result=${func_stripname_result#"${1}"} 14265 func_stripname_result=${func_stripname_result%"${2}"} 14266} 14267 14268# func_opt_split 14269func_opt_split () 14270{ 14271 func_opt_split_opt=${1%%=*} 14272 func_opt_split_arg=${1#*=} 14273} 14274 14275# func_lo2o object 14276func_lo2o () 14277{ 14278 case ${1} in 14279 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14280 *) func_lo2o_result=${1} ;; 14281 esac 14282} 14283 14284# func_xform libobj-or-source 14285func_xform () 14286{ 14287 func_xform_result=${1%.*}.lo 14288} 14289 14290# func_arith arithmetic-term... 14291func_arith () 14292{ 14293 func_arith_result=$(( $* )) 14294} 14295 14296# func_len string 14297# STRING may not start with a hyphen. 14298func_len () 14299{ 14300 func_len_result=${#1} 14301} 14302 14303_LT_EOF 14304 ;; 14305 *) # Bourne compatible functions. 14306 cat << \_LT_EOF >> "$cfgfile" 14307 14308# func_dirname file append nondir_replacement 14309# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14310# otherwise set result to NONDIR_REPLACEMENT. 14311func_dirname () 14312{ 14313 # Extract subdirectory from the argument. 14314 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14315 if test "X$func_dirname_result" = "X${1}"; then 14316 func_dirname_result="${3}" 14317 else 14318 func_dirname_result="$func_dirname_result${2}" 14319 fi 14320} 14321 14322# func_basename file 14323func_basename () 14324{ 14325 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14326} 14327 14328 14329# func_stripname prefix suffix name 14330# strip PREFIX and SUFFIX off of NAME. 14331# PREFIX and SUFFIX must not contain globbing or regex special 14332# characters, hashes, percent signs, but SUFFIX may contain a leading 14333# dot (in which case that matches only a dot). 14334# func_strip_suffix prefix name 14335func_stripname () 14336{ 14337 case ${2} in 14338 .*) func_stripname_result=`$ECHO "X${3}" \ 14339 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14340 *) func_stripname_result=`$ECHO "X${3}" \ 14341 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14342 esac 14343} 14344 14345# sed scripts: 14346my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14347my_sed_long_arg='1s/^-[^=]*=//' 14348 14349# func_opt_split 14350func_opt_split () 14351{ 14352 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14353 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14354} 14355 14356# func_lo2o object 14357func_lo2o () 14358{ 14359 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14360} 14361 14362# func_xform libobj-or-source 14363func_xform () 14364{ 14365 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14366} 14367 14368# func_arith arithmetic-term... 14369func_arith () 14370{ 14371 func_arith_result=`expr "$@"` 14372} 14373 14374# func_len string 14375# STRING may not start with a hyphen. 14376func_len () 14377{ 14378 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14379} 14380 14381_LT_EOF 14382esac 14383 14384case $lt_shell_append in 14385 yes) 14386 cat << \_LT_EOF >> "$cfgfile" 14387 14388# func_append var value 14389# Append VALUE to the end of shell variable VAR. 14390func_append () 14391{ 14392 eval "$1+=\$2" 14393} 14394_LT_EOF 14395 ;; 14396 *) 14397 cat << \_LT_EOF >> "$cfgfile" 14398 14399# func_append var value 14400# Append VALUE to the end of shell variable VAR. 14401func_append () 14402{ 14403 eval "$1=\$$1\$2" 14404} 14405 14406_LT_EOF 14407 ;; 14408 esac 14409 14410 14411 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14412 || (rm -f "$cfgfile"; exit 1) 14413 14414 mv -f "$cfgfile" "$ofile" || 14415 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14416 chmod +x "$ofile" 14417 14418 ;; 14419 14420 esac 14421done # for ac_tag 14422 14423 14424as_fn_exit 0 14425_ACEOF 14426ac_clean_files=$ac_clean_files_save 14427 14428test $ac_write_fail = 0 || 14429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14430 14431 14432# configure is writing to config.log, and then calls config.status. 14433# config.status does its own redirection, appending to config.log. 14434# Unfortunately, on DOS this fails, as config.log is still kept open 14435# by configure, so config.status won't be able to write to it; its 14436# output is simply discarded. So we exec the FD to /dev/null, 14437# effectively closing config.log, so it can be properly (re)opened and 14438# appended to by config.status. When coming back to configure, we 14439# need to make the FD available again. 14440if test "$no_create" != yes; then 14441 ac_cs_success=: 14442 ac_config_status_args= 14443 test "$silent" = yes && 14444 ac_config_status_args="$ac_config_status_args --quiet" 14445 exec 5>/dev/null 14446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14447 exec 5>>config.log 14448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14449 # would make configure fail if this is the last instruction. 14450 $ac_cs_success || as_fn_exit 1 14451fi 14452if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14454$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14455fi 14456 14457