1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for ntp 4.2.6. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540echo=${ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $echo works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<EOF 559$* 560EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$ECHO"; then 569if test "X${echo_test_string+set}" != Xset; then 570# find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if (echo_test_string=`eval $cmd`) 2>/dev/null && 574 echo_test_string=`eval $cmd` && 575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 576 then 577 break 578 fi 579 done 580fi 581 582if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 584 test "X$echo_testing_string" = "X$echo_test_string"; then 585 : 586else 587 # The Solaris, AIX, and Digital Unix default echo programs unquote 588 # backslashes. This makes it impossible to quote backslashes using 589 # echo "$something" | sed 's/\\/\\\\/g' 590 # 591 # So, first we look for a working echo in the user's PATH. 592 593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594 for dir in $PATH /usr/ucb; do 595 IFS="$lt_save_ifs" 596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 echo="$dir/echo" 601 break 602 fi 603 done 604 IFS="$lt_save_ifs" 605 606 if test "X$echo" = Xecho; then 607 # We didn't find a better echo, so look for alternatives. 608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 # This shell has a builtin print -r that does the trick. 612 echo='print -r' 613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 614 test "X$CONFIG_SHELL" != X/bin/ksh; then 615 # If we have ksh, try running configure again with it. 616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617 export ORIGINAL_CONFIG_SHELL 618 CONFIG_SHELL=/bin/ksh 619 export CONFIG_SHELL 620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621 else 622 # Try using printf. 623 echo='printf %s\n' 624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 # Cool, printf works 628 : 629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630 test "X$echo_testing_string" = 'X\t' && 631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634 export CONFIG_SHELL 635 SHELL="$CONFIG_SHELL" 636 export SHELL 637 echo="$CONFIG_SHELL $0 --fallback-echo" 638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639 test "X$echo_testing_string" = 'X\t' && 640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641 test "X$echo_testing_string" = "X$echo_test_string"; then 642 echo="$CONFIG_SHELL $0 --fallback-echo" 643 else 644 # maybe with a smaller string... 645 prev=: 646 647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 649 then 650 break 651 fi 652 prev="$cmd" 653 done 654 655 if test "$prev" != 'sed 50q "$0"'; then 656 echo_test_string=`eval $prev` 657 export echo_test_string 658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659 else 660 # Oops. We lost completely, so just stick with echo. 661 echo=echo 662 fi 663 fi 664 fi 665 fi 666fi 667fi 668 669# Copy echo and quote the copy suitably for passing to libtool from 670# the Makefile, instead of quoting the original, which is used later. 671ECHO=$echo 672if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674fi 675 676 677 678 679test -n "$DJDIR" || exec 7<&0 </dev/null 680exec 6>&1 681 682# Name of the host. 683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 684# so uname gets run too. 685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 686 687# 688# Initializations. 689# 690ac_default_prefix=/usr/local 691ac_clean_files= 692ac_config_libobj_dir=. 693LIBOBJS= 694cross_compiling=no 695subdirs= 696MFLAGS= 697MAKEFLAGS= 698 699# Identity of this package. 700PACKAGE_NAME='ntp' 701PACKAGE_TARNAME='ntp' 702PACKAGE_VERSION='4.2.6' 703PACKAGE_STRING='ntp 4.2.6' 704PACKAGE_BUGREPORT='' 705PACKAGE_URL='' 706 707# Factoring default headers for most tests. 708ac_includes_default="\ 709#include <stdio.h> 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef STDC_HEADERS 717# include <stdlib.h> 718# include <stddef.h> 719#else 720# ifdef HAVE_STDLIB_H 721# include <stdlib.h> 722# endif 723#endif 724#ifdef HAVE_STRING_H 725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726# include <memory.h> 727# endif 728# include <string.h> 729#endif 730#ifdef HAVE_STRINGS_H 731# include <strings.h> 732#endif 733#ifdef HAVE_INTTYPES_H 734# include <inttypes.h> 735#endif 736#ifdef HAVE_STDINT_H 737# include <stdint.h> 738#endif 739#ifdef HAVE_UNISTD_H 740# include <unistd.h> 741#endif" 742 743enable_option_checking=no 744ac_subst_vars='am__EXEEXT_FALSE 745am__EXEEXT_TRUE 746LTLIBOBJS 747LIBOBJS 748SAVECONFIG_ENABLED_FALSE 749SAVECONFIG_ENABLED_TRUE 750LSCF 751MAKE_NTPSNMPD 752SNMP_CFLAGS 753SNMP_CPPFLAGS 754SNMP_LIBS 755MAKE_NTPDSIM 756MAKE_LIBNTPSIM 757MAKE_TIMETRIM 758MAKE_TICKADJ 759MAKE_NTPTIME 760MAKE_ADJTIMED 761CLKTEST 762CHUTEST 763PROPDELAY 764MAKE_PARSEKMODULE 765DCFD 766TESTDCF 767MAKE_CHECK_LAYOUT 768EF_LIBS 769EF_PROGS 770LCRYPTO 771OPENSSL_LIB 772OPENSSL_INC 773OPENSSL 774MAKE_CHECK_Y2K 775MAKE_LIBPARSE_KERNEL 776MAKE_LIBPARSE 777LIBPARSE 778HAVE_INLINE 779EDITLINE_LIBS 780PATH_NET_SNMP_CONFIG 781PATH_PERL 782PATH_SH 783LIBTOOL 784RANLIB 785AR 786ECHO 787LN_S 788ARLIB_DIR 789subdirs 790BINSUBDIR 791NTP_CROSSCOMPILE_FALSE 792NTP_CROSSCOMPILE_TRUE 793LIBOPTS_CFLAGS 794LIBOPTS_LDADD 795NEED_LIBOPTS_FALSE 796NEED_LIBOPTS_TRUE 797INSTALL_LIBOPTS_FALSE 798INSTALL_LIBOPTS_TRUE 799LIBOPTS_DIR 800VPATH_HACK_FALSE 801VPATH_HACK_TRUE 802YFLAGS 803YACC 804EGREP 805GREP 806CPP 807am__fastdepCC_FALSE 808am__fastdepCC_TRUE 809CCDEPMODE 810AMDEPBACKSLASH 811AMDEP_FALSE 812AMDEP_TRUE 813am__quote 814am__include 815DEPDIR 816OBJEXT 817EXEEXT 818ac_ct_CC 819CPPFLAGS 820LDFLAGS 821CFLAGS 822CC 823host_os 824host_vendor 825host_cpu 826host 827build_os 828build_vendor 829build_cpu 830build 831am__untar 832am__tar 833AMTAR 834am__leading_dot 835SET_MAKE 836AWK 837mkdir_p 838MKDIR_P 839INSTALL_STRIP_PROGRAM 840STRIP 841install_sh 842MAKEINFO 843AUTOHEADER 844AUTOMAKE 845AUTOCONF 846ACLOCAL 847VERSION 848PACKAGE 849CYGPATH_W 850am__isrc 851INSTALL_DATA 852INSTALL_SCRIPT 853INSTALL_PROGRAM 854target_alias 855host_alias 856build_alias 857LIBS 858ECHO_T 859ECHO_N 860ECHO_C 861DEFS 862mandir 863localedir 864libdir 865psdir 866pdfdir 867dvidir 868htmldir 869infodir 870docdir 871oldincludedir 872includedir 873localstatedir 874sharedstatedir 875sysconfdir 876datadir 877datarootdir 878libexecdir 879sbindir 880bindir 881program_transform_name 882prefix 883exec_prefix 884PACKAGE_URL 885PACKAGE_BUGREPORT 886PACKAGE_STRING 887PACKAGE_VERSION 888PACKAGE_TARNAME 889PACKAGE_NAME 890PATH_SEPARATOR 891SHELL' 892ac_subst_files='' 893ac_user_opts=' 894enable_option_checking 895enable_dependency_tracking 896enable_shared 897enable_local_libopts 898enable_libopts_install 899with_autoopts_config 900with_regex_header 901with_libregex 902with_libregex_cflags 903with_libregex_libs 904enable_optional_args 905with_binsubdir 906with_arlib 907with_rpath 908enable_static 909enable_fast_install 910with_gnu_ld 911enable_libtool_lock 912with_pic 913with_tags 914with_net_snmp_config 915with_lineeditlibs 916enable_getifaddrs 917enable_debugging 918enable_debug_timing 919enable_dst_minutes 920enable_ignore_dns_errors 921enable_force_defer_DNS 922enable_BANCOMM 923enable_GPSVME 924enable_all_clocks 925enable_ACTS 926enable_ARBITER 927enable_ARCRON_MSF 928enable_AS2201 929enable_ATOM 930enable_CHRONOLOG 931enable_CHU 932enable_AUDIO_CHU 933enable_DATUM 934enable_DUMBCLOCK 935enable_FG 936enable_HEATH 937enable_HOPFSERIAL 938enable_HOPFPCI 939enable_HPGPS 940enable_IRIG 941enable_JJY 942enable_JUPITER 943enable_LEITCH 944enable_LOCAL_CLOCK 945enable_MX4200 946enable_NEOCLOCK4X 947enable_NMEA 948enable_ONCORE 949enable_PALISADE 950enable_PCF 951enable_PST 952enable_RIPENCC 953enable_SHM 954enable_SPECTRACOM 955enable_TPRO 956enable_TRUETIME 957enable_TT560 958enable_ULINK 959enable_WWV 960enable_ZYFER 961enable_parse_clocks 962enable_COMPUTIME 963enable_DCF7000 964enable_HOPF6021 965enable_MEINBERG 966enable_RAWDCF 967enable_RCC8000 968enable_SCHMID 969enable_TRIMTAIP 970enable_TRIMTSIP 971enable_WHARTON 972enable_VARITEXT 973with_openssl_libdir 974with_openssl_incdir 975with_crypto 976with_electricfence 977enable_kmem 978enable_accurate_adjtime 979enable_tick 980enable_tickadj 981enable_simulator 982with_ntpsnmpd 983enable_slew_always 984enable_step_slew 985enable_ntpdate_step 986enable_hourly_todr_sync 987enable_kernel_fll_bug 988enable_bug1243_fix 989enable_irig_sawtooth 990enable_nist 991enable_ntp_signd 992enable_clockctl 993enable_linuxcaps 994enable_ipv6 995with_kame 996enable_saveconfig 997' 998 ac_precious_vars='build_alias 999host_alias 1000target_alias 1001CC 1002CFLAGS 1003LDFLAGS 1004LIBS 1005CPPFLAGS 1006CPP 1007YACC 1008YFLAGS' 1009ac_subdirs_all='arlib 1010sntp' 1011 1012# Initialize some variables set by options. 1013ac_init_help= 1014ac_init_version=false 1015ac_unrecognized_opts= 1016ac_unrecognized_sep= 1017# The variables have the same names as the options, with 1018# dashes changed to underlines. 1019cache_file=/dev/null 1020exec_prefix=NONE 1021no_create= 1022no_recursion= 1023prefix=NONE 1024program_prefix=NONE 1025program_suffix=NONE 1026program_transform_name=s,x,x, 1027silent= 1028site= 1029srcdir= 1030verbose= 1031x_includes=NONE 1032x_libraries=NONE 1033 1034# Installation directory options. 1035# These are left unexpanded so users can "make install exec_prefix=/foo" 1036# and all the variables that are supposed to be based on exec_prefix 1037# by default will actually change. 1038# Use braces instead of parens because sh, perl, etc. also accept them. 1039# (The list follows the same order as the GNU Coding Standards.) 1040bindir='${exec_prefix}/bin' 1041sbindir='${exec_prefix}/sbin' 1042libexecdir='${exec_prefix}/libexec' 1043datarootdir='${prefix}/share' 1044datadir='${datarootdir}' 1045sysconfdir='${prefix}/etc' 1046sharedstatedir='${prefix}/com' 1047localstatedir='${prefix}/var' 1048includedir='${prefix}/include' 1049oldincludedir='/usr/include' 1050docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1051infodir='${datarootdir}/info' 1052htmldir='${docdir}' 1053dvidir='${docdir}' 1054pdfdir='${docdir}' 1055psdir='${docdir}' 1056libdir='${exec_prefix}/lib' 1057localedir='${datarootdir}/locale' 1058mandir='${datarootdir}/man' 1059 1060ac_prev= 1061ac_dashdash= 1062for ac_option 1063do 1064 # If the previous option needs an argument, assign it. 1065 if test -n "$ac_prev"; then 1066 eval $ac_prev=\$ac_option 1067 ac_prev= 1068 continue 1069 fi 1070 1071 case $ac_option in 1072 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1073 *) ac_optarg=yes ;; 1074 esac 1075 1076 # Accept the important Cygnus configure options, so we can diagnose typos. 1077 1078 case $ac_dashdash$ac_option in 1079 --) 1080 ac_dashdash=yes ;; 1081 1082 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1083 ac_prev=bindir ;; 1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1085 bindir=$ac_optarg ;; 1086 1087 -build | --build | --buil | --bui | --bu) 1088 ac_prev=build_alias ;; 1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1090 build_alias=$ac_optarg ;; 1091 1092 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1094 ac_prev=cache_file ;; 1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1097 cache_file=$ac_optarg ;; 1098 1099 --config-cache | -C) 1100 cache_file=config.cache ;; 1101 1102 -datadir | --datadir | --datadi | --datad) 1103 ac_prev=datadir ;; 1104 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1105 datadir=$ac_optarg ;; 1106 1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1108 | --dataroo | --dataro | --datar) 1109 ac_prev=datarootdir ;; 1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1112 datarootdir=$ac_optarg ;; 1113 1114 -disable-* | --disable-*) 1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1116 # Reject names that are not valid shell variable names. 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1118 as_fn_error "invalid feature name: $ac_useropt" 1119 ac_useropt_orig=$ac_useropt 1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1121 case $ac_user_opts in 1122 *" 1123"enable_$ac_useropt" 1124"*) ;; 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1126 ac_unrecognized_sep=', ';; 1127 esac 1128 eval enable_$ac_useropt=no ;; 1129 1130 -docdir | --docdir | --docdi | --doc | --do) 1131 ac_prev=docdir ;; 1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1133 docdir=$ac_optarg ;; 1134 1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1136 ac_prev=dvidir ;; 1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1138 dvidir=$ac_optarg ;; 1139 1140 -enable-* | --enable-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error "invalid feature name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"enable_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval enable_$ac_useropt=\$ac_optarg ;; 1155 1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1158 | --exec | --exe | --ex) 1159 ac_prev=exec_prefix ;; 1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1162 | --exec=* | --exe=* | --ex=*) 1163 exec_prefix=$ac_optarg ;; 1164 1165 -gas | --gas | --ga | --g) 1166 # Obsolete; use --with-gas. 1167 with_gas=yes ;; 1168 1169 -help | --help | --hel | --he | -h) 1170 ac_init_help=long ;; 1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1172 ac_init_help=recursive ;; 1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1174 ac_init_help=short ;; 1175 1176 -host | --host | --hos | --ho) 1177 ac_prev=host_alias ;; 1178 -host=* | --host=* | --hos=* | --ho=*) 1179 host_alias=$ac_optarg ;; 1180 1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1182 ac_prev=htmldir ;; 1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1184 | --ht=*) 1185 htmldir=$ac_optarg ;; 1186 1187 -includedir | --includedir | --includedi | --included | --include \ 1188 | --includ | --inclu | --incl | --inc) 1189 ac_prev=includedir ;; 1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1191 | --includ=* | --inclu=* | --incl=* | --inc=*) 1192 includedir=$ac_optarg ;; 1193 1194 -infodir | --infodir | --infodi | --infod | --info | --inf) 1195 ac_prev=infodir ;; 1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1197 infodir=$ac_optarg ;; 1198 1199 -libdir | --libdir | --libdi | --libd) 1200 ac_prev=libdir ;; 1201 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1202 libdir=$ac_optarg ;; 1203 1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1205 | --libexe | --libex | --libe) 1206 ac_prev=libexecdir ;; 1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1208 | --libexe=* | --libex=* | --libe=*) 1209 libexecdir=$ac_optarg ;; 1210 1211 -localedir | --localedir | --localedi | --localed | --locale) 1212 ac_prev=localedir ;; 1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1214 localedir=$ac_optarg ;; 1215 1216 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1217 | --localstate | --localstat | --localsta | --localst | --locals) 1218 ac_prev=localstatedir ;; 1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1221 localstatedir=$ac_optarg ;; 1222 1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1224 ac_prev=mandir ;; 1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1226 mandir=$ac_optarg ;; 1227 1228 -nfp | --nfp | --nf) 1229 # Obsolete; use --without-fp. 1230 with_fp=no ;; 1231 1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1233 | --no-cr | --no-c | -n) 1234 no_create=yes ;; 1235 1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1238 no_recursion=yes ;; 1239 1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1242 | --oldin | --oldi | --old | --ol | --o) 1243 ac_prev=oldincludedir ;; 1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1247 oldincludedir=$ac_optarg ;; 1248 1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1250 ac_prev=prefix ;; 1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1252 prefix=$ac_optarg ;; 1253 1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1255 | --program-pre | --program-pr | --program-p) 1256 ac_prev=program_prefix ;; 1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1259 program_prefix=$ac_optarg ;; 1260 1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1262 | --program-suf | --program-su | --program-s) 1263 ac_prev=program_suffix ;; 1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1266 program_suffix=$ac_optarg ;; 1267 1268 -program-transform-name | --program-transform-name \ 1269 | --program-transform-nam | --program-transform-na \ 1270 | --program-transform-n | --program-transform- \ 1271 | --program-transform | --program-transfor \ 1272 | --program-transfo | --program-transf \ 1273 | --program-trans | --program-tran \ 1274 | --progr-tra | --program-tr | --program-t) 1275 ac_prev=program_transform_name ;; 1276 -program-transform-name=* | --program-transform-name=* \ 1277 | --program-transform-nam=* | --program-transform-na=* \ 1278 | --program-transform-n=* | --program-transform-=* \ 1279 | --program-transform=* | --program-transfor=* \ 1280 | --program-transfo=* | --program-transf=* \ 1281 | --program-trans=* | --program-tran=* \ 1282 | --progr-tra=* | --program-tr=* | --program-t=*) 1283 program_transform_name=$ac_optarg ;; 1284 1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1286 ac_prev=pdfdir ;; 1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1288 pdfdir=$ac_optarg ;; 1289 1290 -psdir | --psdir | --psdi | --psd | --ps) 1291 ac_prev=psdir ;; 1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1293 psdir=$ac_optarg ;; 1294 1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1296 | -silent | --silent | --silen | --sile | --sil) 1297 silent=yes ;; 1298 1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1300 ac_prev=sbindir ;; 1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1302 | --sbi=* | --sb=*) 1303 sbindir=$ac_optarg ;; 1304 1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1307 | --sharedst | --shareds | --shared | --share | --shar \ 1308 | --sha | --sh) 1309 ac_prev=sharedstatedir ;; 1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1313 | --sha=* | --sh=*) 1314 sharedstatedir=$ac_optarg ;; 1315 1316 -site | --site | --sit) 1317 ac_prev=site ;; 1318 -site=* | --site=* | --sit=*) 1319 site=$ac_optarg ;; 1320 1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1322 ac_prev=srcdir ;; 1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1324 srcdir=$ac_optarg ;; 1325 1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1327 | --syscon | --sysco | --sysc | --sys | --sy) 1328 ac_prev=sysconfdir ;; 1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1331 sysconfdir=$ac_optarg ;; 1332 1333 -target | --target | --targe | --targ | --tar | --ta | --t) 1334 ac_prev=target_alias ;; 1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1336 target_alias=$ac_optarg ;; 1337 1338 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1339 verbose=yes ;; 1340 1341 -version | --version | --versio | --versi | --vers | -V) 1342 ac_init_version=: ;; 1343 1344 -with-* | --with-*) 1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1346 # Reject names that are not valid shell variable names. 1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1348 as_fn_error "invalid package name: $ac_useropt" 1349 ac_useropt_orig=$ac_useropt 1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1351 case $ac_user_opts in 1352 *" 1353"with_$ac_useropt" 1354"*) ;; 1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1356 ac_unrecognized_sep=', ';; 1357 esac 1358 eval with_$ac_useropt=\$ac_optarg ;; 1359 1360 -without-* | --without-*) 1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1364 as_fn_error "invalid package name: $ac_useropt" 1365 ac_useropt_orig=$ac_useropt 1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1367 case $ac_user_opts in 1368 *" 1369"with_$ac_useropt" 1370"*) ;; 1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1372 ac_unrecognized_sep=', ';; 1373 esac 1374 eval with_$ac_useropt=no ;; 1375 1376 --x) 1377 # Obsolete; use --with-x. 1378 with_x=yes ;; 1379 1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1381 | --x-incl | --x-inc | --x-in | --x-i) 1382 ac_prev=x_includes ;; 1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1385 x_includes=$ac_optarg ;; 1386 1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1389 ac_prev=x_libraries ;; 1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1392 x_libraries=$ac_optarg ;; 1393 1394 -*) as_fn_error "unrecognized option: \`$ac_option' 1395Try \`$0 --help' for more information." 1396 ;; 1397 1398 *=*) 1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1400 # Reject names that are not valid shell variable names. 1401 case $ac_envvar in #( 1402 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1403 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1404 esac 1405 eval $ac_envvar=\$ac_optarg 1406 export $ac_envvar ;; 1407 1408 *) 1409 # FIXME: should be removed in autoconf 3.0. 1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1414 ;; 1415 1416 esac 1417done 1418 1419if test -n "$ac_prev"; then 1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1421 as_fn_error "missing argument to $ac_option" 1422fi 1423 1424if test -n "$ac_unrecognized_opts"; then 1425 case $enable_option_checking in 1426 no) ;; 1427 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1429 esac 1430fi 1431 1432# Check all directory arguments for consistency. 1433for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1434 datadir sysconfdir sharedstatedir localstatedir includedir \ 1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1436 libdir localedir mandir 1437do 1438 eval ac_val=\$$ac_var 1439 # Remove trailing slashes. 1440 case $ac_val in 1441 */ ) 1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1443 eval $ac_var=\$ac_val;; 1444 esac 1445 # Be sure to have absolute directory names. 1446 case $ac_val in 1447 [\\/$]* | ?:[\\/]* ) continue;; 1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1449 esac 1450 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1451done 1452 1453# There might be people who depend on the old broken behavior: `$host' 1454# used to hold the argument of --host etc. 1455# FIXME: To remove some day. 1456build=$build_alias 1457host=$host_alias 1458target=$target_alias 1459 1460# FIXME: To remove some day. 1461if test "x$host_alias" != x; then 1462 if test "x$build_alias" = x; then 1463 cross_compiling=maybe 1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1465 If a cross compiler is detected then cross compile mode will be used." >&2 1466 elif test "x$build_alias" != "x$host_alias"; then 1467 cross_compiling=yes 1468 fi 1469fi 1470 1471ac_tool_prefix= 1472test -n "$host_alias" && ac_tool_prefix=$host_alias- 1473 1474test "$silent" = yes && exec 6>/dev/null 1475 1476 1477ac_pwd=`pwd` && test -n "$ac_pwd" && 1478ac_ls_di=`ls -di .` && 1479ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1480 as_fn_error "working directory cannot be determined" 1481test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1482 as_fn_error "pwd does not report name of working directory" 1483 1484 1485# Find the source files, if location was not specified. 1486if test -z "$srcdir"; then 1487 ac_srcdir_defaulted=yes 1488 # Try the directory containing this script, then the parent directory. 1489 ac_confdir=`$as_dirname -- "$as_myself" || 1490$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1491 X"$as_myself" : 'X\(//\)[^/]' \| \ 1492 X"$as_myself" : 'X\(//\)$' \| \ 1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1494$as_echo X"$as_myself" | 1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1496 s//\1/ 1497 q 1498 } 1499 /^X\(\/\/\)[^/].*/{ 1500 s//\1/ 1501 q 1502 } 1503 /^X\(\/\/\)$/{ 1504 s//\1/ 1505 q 1506 } 1507 /^X\(\/\).*/{ 1508 s//\1/ 1509 q 1510 } 1511 s/.*/./; q'` 1512 srcdir=$ac_confdir 1513 if test ! -r "$srcdir/$ac_unique_file"; then 1514 srcdir=.. 1515 fi 1516else 1517 ac_srcdir_defaulted=no 1518fi 1519if test ! -r "$srcdir/$ac_unique_file"; then 1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1521 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1522fi 1523ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1524ac_abs_confdir=`( 1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1526 pwd)` 1527# When building in place, set srcdir=. 1528if test "$ac_abs_confdir" = "$ac_pwd"; then 1529 srcdir=. 1530fi 1531# Remove unnecessary trailing slashes from srcdir. 1532# Double slashes in file names in object file debugging info 1533# mess up M-x gdb in Emacs. 1534case $srcdir in 1535*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1536esac 1537for ac_var in $ac_precious_vars; do 1538 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1539 eval ac_env_${ac_var}_value=\$${ac_var} 1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1541 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1542done 1543 1544# 1545# Report the --help message. 1546# 1547if test "$ac_init_help" = "long"; then 1548 # Omit some internal or obsolete options to make the list less imposing. 1549 # This message is too long to be a string in the A/UX 3.1 sh. 1550 cat <<_ACEOF 1551\`configure' configures ntp 4.2.6 to adapt to many kinds of systems. 1552 1553Usage: $0 [OPTION]... [VAR=VALUE]... 1554 1555To assign environment variables (e.g., CC, CFLAGS...), specify them as 1556VAR=VALUE. See below for descriptions of some of the useful variables. 1557 1558Defaults for the options are specified in brackets. 1559 1560Configuration: 1561 -h, --help display this help and exit 1562 --help=short display options specific to this package 1563 --help=recursive display the short help of all the included packages 1564 -V, --version display version information and exit 1565 -q, --quiet, --silent do not print \`checking...' messages 1566 --cache-file=FILE cache test results in FILE [disabled] 1567 -C, --config-cache alias for \`--cache-file=config.cache' 1568 -n, --no-create do not create output files 1569 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1570 1571Installation directories: 1572 --prefix=PREFIX install architecture-independent files in PREFIX 1573 [$ac_default_prefix] 1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1575 [PREFIX] 1576 1577By default, \`make install' will install all the files in 1578\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1579an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1580for instance \`--prefix=\$HOME'. 1581 1582For better control, use the options below. 1583 1584Fine tuning of the installation directories: 1585 --bindir=DIR user executables [EPREFIX/bin] 1586 --sbindir=DIR system admin executables [EPREFIX/sbin] 1587 --libexecdir=DIR program executables [EPREFIX/libexec] 1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1591 --libdir=DIR object code libraries [EPREFIX/lib] 1592 --includedir=DIR C header files [PREFIX/include] 1593 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1596 --infodir=DIR info documentation [DATAROOTDIR/info] 1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1598 --mandir=DIR man documentation [DATAROOTDIR/man] 1599 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1600 --htmldir=DIR html documentation [DOCDIR] 1601 --dvidir=DIR dvi documentation [DOCDIR] 1602 --pdfdir=DIR pdf documentation [DOCDIR] 1603 --psdir=DIR ps documentation [DOCDIR] 1604_ACEOF 1605 1606 cat <<\_ACEOF 1607 1608Program names: 1609 --program-prefix=PREFIX prepend PREFIX to installed program names 1610 --program-suffix=SUFFIX append SUFFIX to installed program names 1611 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1612 1613System types: 1614 --build=BUILD configure for building on BUILD [guessed] 1615 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1616_ACEOF 1617fi 1618 1619if test -n "$ac_init_help"; then 1620 case $ac_init_help in 1621 short | recursive ) echo "Configuration of ntp 4.2.6:";; 1622 esac 1623 cat <<\_ACEOF 1624 1625Optional Features: 1626 --disable-option-checking ignore unrecognized --enable/--with options 1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1629 --disable-dependency-tracking speeds up one-time build 1630 --enable-dependency-tracking do not reject slow dependency extractors 1631 --enable-shared[=PKGS] build shared libraries [default=no] 1632 --enable-local-libopts Force using the supplied libopts tearoff code 1633 --disable-libopts-install 1634 Do not install libopts with client installation 1635 --disable-optional-args not wanting optional option args 1636 --enable-static[=PKGS] build static libraries [default=yes] 1637 --enable-fast-install[=PKGS] 1638 optimize for fast installation [default=yes] 1639 --disable-libtool-lock avoid locking (might break parallel builds) 1640 --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]]. 1641 glibc: Use getifaddrs() in glibc if you know it 1642 supports IPv6. 1643 --enable-debugging + include ntpd debugging code 1644 --enable-debug-timing - include processing time debugging code (costs 1645 performance) 1646 --enable-dst-minutes n minutes per DST adjustment [60] 1647 --enable-ignore-dns-errors 1648 - retry DNS queries on any error 1649 --enable-force-defer-DNS 1650 - force all DNS lookups to take the deferred path 1651 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1652 --enable-GPSVME - TrueTime GPS receiver/VME interface 1653 --enable-all-clocks + include all suitable non-PARSE clocks: 1654 --enable-ACTS s ACTS modem service 1655 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1656 --enable-ARCRON-MSF + Arcron MSF receiver 1657 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1658 --enable-ATOM s ATOM PPS interface 1659 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1660 --enable-CHU + CHU modem/decoder 1661 --enable-AUDIO-CHU s CHU audio/decoder 1662 --enable-DATUM s Datum Programmable Time System 1663 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1664 --enable-FG + Forum Graphic GPS 1665 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1666 --enable-HOPFSERIAL + hopf serial clock device 1667 --enable-HOPFPCI + hopf 6039 PCI board 1668 --enable-HPGPS + HP 58503A GPS receiver 1669 --enable-IRIG s IRIG audio decoder 1670 --enable-JJY + JJY receiver 1671 --enable-JUPITER s Rockwell Jupiter GPS receiver 1672 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1673 --enable-LOCAL-CLOCK + local clock reference 1674 --enable-MX4200 s Magnavox MX4200 GPS receiver 1675 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1676 --enable-NMEA + NMEA GPS receiver 1677 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1678 --enable-PALISADE s Palisade clock 1679 --enable-PCF + Conrad parallel port radio clock 1680 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1681 --enable-RIPENCC - RIPENCC specific Trimble driver 1682 --enable-SHM s SHM clock attached thru shared memory 1683 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1684 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1685 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1686 --enable-TT560 - TrueTime 560 IRIG-B decoder 1687 --enable-ULINK + Ultralink WWVB receiver 1688 --enable-WWV s WWV Audio receiver 1689 --enable-ZYFER + Zyfer GPStarplus receiver 1690 --enable-parse-clocks - include all suitable PARSE clocks: 1691 --enable-COMPUTIME s Diem Computime Radio Clock 1692 --enable-DCF7000 s ELV/DCF7000 clock 1693 --enable-HOPF6021 s HOPF 6021 clock 1694 --enable-MEINBERG s Meinberg clocks 1695 --enable-RAWDCF s DCF77 raw time code 1696 --enable-RCC8000 s RCC 8000 clock 1697 --enable-SCHMID s Schmid DCF77 clock 1698 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1699 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1700 --enable-WHARTON s WHARTON 400A Series clock 1701 --enable-VARITEXT s VARITEXT clock 1702 --enable-kmem s read /dev/kmem for tick and/or tickadj 1703 --enable-accurate-adjtime 1704 s the adjtime() call is accurate 1705 --enable-tick=VALUE s force a value for 'tick' 1706 --enable-tickadj=VALUE s force a value for 'tickadj' 1707 --enable-simulator - build/install the NTPD simulator? 1708 --enable-slew-always s always slew the time 1709 --enable-step-slew s step and slew the time 1710 --enable-ntpdate-step s if ntpdate should step the time 1711 --enable-hourly-todr-sync 1712 s if we should sync TODR hourly 1713 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1714 --enable-bug1243-fix + use unmodified autokey session keys 1715 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1716 --enable-nist - if we should enable the NIST lockclock scheme 1717 --enable-ntp-signd - Provide support for Samba's signing daemon, 1718 =/var/run/ntp_signd 1719 --enable-clockctl s Use /dev/clockctl for non-root clock control 1720 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1721 --enable-ipv6 s use IPv6? 1722 --enable-saveconfig + saveconfig mechanism 1723 1724Optional Packages: 1725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1727 --with-autoopts-config specify the config-info script 1728 --with-regex-header a reg expr header is specified 1729 --with-libregex libregex installation prefix 1730 --with-libregex-cflags libregex compile flags 1731 --with-libregex-libs libregex link command arguments 1732 --with-binsubdir bin ={bin,sbin} 1733 --with-arlib - Compile the async resolver library? 1734 --without-rpath s Disable auto-added -R linker paths 1735 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1736 --with-pic try to use only PIC/non-PIC objects [default=use 1737 both] 1738 --with-tags[=TAGS] include additional configurations [automatic] 1739 --with-net-snmp-config + =net-snmp-config 1740 --with-lineeditlibs edit,editline (readline may be specified if desired) 1741 --with-openssl-libdir + =/something/reasonable 1742 --with-openssl-incdir + =/something/reasonable 1743 --with-crypto + =openssl 1744 --with-electricfence - compile with ElectricFence malloc debugger 1745 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1746 --with-kame - =/usr/local/v6 1747 1748Some influential environment variables: 1749 CC C compiler command 1750 CFLAGS C compiler flags 1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1752 nonstandard directory <lib dir> 1753 LIBS libraries to pass to the linker, e.g. -l<library> 1754 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1755 you have headers in a nonstandard directory <include dir> 1756 CPP C preprocessor 1757 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1758 the first program found out of: `bison -y', `byacc', `yacc'. 1759 YFLAGS The list of arguments that will be passed by default to $YACC. 1760 This script will default YFLAGS to the empty string to avoid a 1761 default value of `-d' given by some make applications. 1762 1763Use these variables to override the choices made by `configure' or to help 1764it to find libraries and programs with nonstandard names/locations. 1765 1766Report bugs to the package provider. 1767_ACEOF 1768ac_status=$? 1769fi 1770 1771if test "$ac_init_help" = "recursive"; then 1772 # If there are subdirs, report their specific --help. 1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1774 test -d "$ac_dir" || 1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1776 continue 1777 ac_builddir=. 1778 1779case "$ac_dir" in 1780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1781*) 1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1783 # A ".." for each directory in $ac_dir_suffix. 1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1785 case $ac_top_builddir_sub in 1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1788 esac ;; 1789esac 1790ac_abs_top_builddir=$ac_pwd 1791ac_abs_builddir=$ac_pwd$ac_dir_suffix 1792# for backward compatibility: 1793ac_top_builddir=$ac_top_build_prefix 1794 1795case $srcdir in 1796 .) # We are building in place. 1797 ac_srcdir=. 1798 ac_top_srcdir=$ac_top_builddir_sub 1799 ac_abs_top_srcdir=$ac_pwd ;; 1800 [\\/]* | ?:[\\/]* ) # Absolute name. 1801 ac_srcdir=$srcdir$ac_dir_suffix; 1802 ac_top_srcdir=$srcdir 1803 ac_abs_top_srcdir=$srcdir ;; 1804 *) # Relative name. 1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1806 ac_top_srcdir=$ac_top_build_prefix$srcdir 1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1808esac 1809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1810 1811 cd "$ac_dir" || { ac_status=$?; continue; } 1812 # Check for guested configure. 1813 if test -f "$ac_srcdir/configure.gnu"; then 1814 echo && 1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1816 elif test -f "$ac_srcdir/configure"; then 1817 echo && 1818 $SHELL "$ac_srcdir/configure" --help=recursive 1819 else 1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1821 fi || ac_status=$? 1822 cd "$ac_pwd" || { ac_status=$?; break; } 1823 done 1824fi 1825 1826test -n "$ac_init_help" && exit $ac_status 1827if $ac_init_version; then 1828 cat <<\_ACEOF 1829ntp configure 4.2.6 1830generated by GNU Autoconf 2.65 1831 1832Copyright (C) 2009 Free Software Foundation, Inc. 1833This configure script is free software; the Free Software Foundation 1834gives unlimited permission to copy, distribute and modify it. 1835_ACEOF 1836 exit 1837fi 1838 1839## ------------------------ ## 1840## Autoconf initialization. ## 1841## ------------------------ ## 1842 1843# ac_fn_c_try_compile LINENO 1844# -------------------------- 1845# Try to compile conftest.$ac_ext, and return whether this succeeded. 1846ac_fn_c_try_compile () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 rm -f conftest.$ac_objext 1850 if { { ac_try="$ac_compile" 1851case "(($ac_try" in 1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1853 *) ac_try_echo=$ac_try;; 1854esac 1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1856$as_echo "$ac_try_echo"; } >&5 1857 (eval "$ac_compile") 2>conftest.err 1858 ac_status=$? 1859 if test -s conftest.err; then 1860 grep -v '^ *+' conftest.err >conftest.er1 1861 cat conftest.er1 >&5 1862 mv -f conftest.er1 conftest.err 1863 fi 1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1865 test $ac_status = 0; } && { 1866 test -z "$ac_c_werror_flag" || 1867 test ! -s conftest.err 1868 } && test -s conftest.$ac_objext; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=1 1875fi 1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1877 as_fn_set_status $ac_retval 1878 1879} # ac_fn_c_try_compile 1880 1881# ac_fn_c_try_cpp LINENO 1882# ---------------------- 1883# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1884ac_fn_c_try_cpp () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 if { { ac_try="$ac_cpp conftest.$ac_ext" 1888case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1895 ac_status=$? 1896 if test -s conftest.err; then 1897 grep -v '^ *+' conftest.err >conftest.er1 1898 cat conftest.er1 >&5 1899 mv -f conftest.er1 conftest.err 1900 fi 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } >/dev/null && { 1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1904 test ! -s conftest.err 1905 }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1914 as_fn_set_status $ac_retval 1915 1916} # ac_fn_c_try_cpp 1917 1918# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1919# ------------------------------------------------------- 1920# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1921# the include files in INCLUDES and setting the cache variable VAR 1922# accordingly. 1923ac_fn_c_check_header_mongrel () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928$as_echo_n "checking for $2... " >&6; } 1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1930 $as_echo_n "(cached) " >&6 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935else 1936 # Is the header compilable? 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1938$as_echo_n "checking $2 usability... " >&6; } 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942#include <$2> 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO"; then : 1945 ac_header_compiler=yes 1946else 1947 ac_header_compiler=no 1948fi 1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1951$as_echo "$ac_header_compiler" >&6; } 1952 1953# Is the header present? 1954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1955$as_echo_n "checking $2 presence... " >&6; } 1956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958#include <$2> 1959_ACEOF 1960if ac_fn_c_try_cpp "$LINENO"; then : 1961 ac_header_preproc=yes 1962else 1963 ac_header_preproc=no 1964fi 1965rm -f conftest.err conftest.$ac_ext 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1967$as_echo "$ac_header_preproc" >&6; } 1968 1969# So? What about this header? 1970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1971 yes:no: ) 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1973$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1975$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1976 ;; 1977 no:yes:* ) 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1979$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1981$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1983$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1985$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1987$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1988 ;; 1989esac 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 eval "$3=\$ac_header_compiler" 1996fi 1997eval ac_res=\$$3 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1999$as_echo "$ac_res" >&6; } 2000fi 2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2002 2003} # ac_fn_c_check_header_mongrel 2004 2005# ac_fn_c_try_run LINENO 2006# ---------------------- 2007# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2008# that executables *can* be run. 2009ac_fn_c_try_run () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 if { { ac_try="$ac_link" 2013case "(($ac_try" in 2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2015 *) ac_try_echo=$ac_try;; 2016esac 2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2018$as_echo "$ac_try_echo"; } >&5 2019 (eval "$ac_link") 2>&5 2020 ac_status=$? 2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2022 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2023 { { case "(($ac_try" in 2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2025 *) ac_try_echo=$ac_try;; 2026esac 2027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2028$as_echo "$ac_try_echo"; } >&5 2029 (eval "$ac_try") 2>&5 2030 ac_status=$? 2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2032 test $ac_status = 0; }; }; then : 2033 ac_retval=0 2034else 2035 $as_echo "$as_me: program exited with status $ac_status" >&5 2036 $as_echo "$as_me: failed program was:" >&5 2037sed 's/^/| /' conftest.$ac_ext >&5 2038 2039 ac_retval=$ac_status 2040fi 2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2043 as_fn_set_status $ac_retval 2044 2045} # ac_fn_c_try_run 2046 2047# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2048# ------------------------------------------------------- 2049# Tests whether HEADER exists and can be compiled using the include files in 2050# INCLUDES, setting the cache variable VAR accordingly. 2051ac_fn_c_check_header_compile () 2052{ 2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2055$as_echo_n "checking for $2... " >&6; } 2056if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2057 $as_echo_n "(cached) " >&6 2058else 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$4 2062#include <$2> 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO"; then : 2065 eval "$3=yes" 2066else 2067 eval "$3=no" 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2075 2076} # ac_fn_c_check_header_compile 2077 2078# ac_fn_c_try_link LINENO 2079# ----------------------- 2080# Try to link conftest.$ac_ext, and return whether this succeeded. 2081ac_fn_c_try_link () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 rm -f conftest.$ac_objext conftest$ac_exeext 2085 if { { ac_try="$ac_link" 2086case "(($ac_try" in 2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2088 *) ac_try_echo=$ac_try;; 2089esac 2090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2091$as_echo "$ac_try_echo"; } >&5 2092 (eval "$ac_link") 2>conftest.err 2093 ac_status=$? 2094 if test -s conftest.err; then 2095 grep -v '^ *+' conftest.err >conftest.er1 2096 cat conftest.er1 >&5 2097 mv -f conftest.er1 conftest.err 2098 fi 2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2100 test $ac_status = 0; } && { 2101 test -z "$ac_c_werror_flag" || 2102 test ! -s conftest.err 2103 } && test -s conftest$ac_exeext && { 2104 test "$cross_compiling" = yes || 2105 $as_test_x conftest$ac_exeext 2106 }; then : 2107 ac_retval=0 2108else 2109 $as_echo "$as_me: failed program was:" >&5 2110sed 's/^/| /' conftest.$ac_ext >&5 2111 2112 ac_retval=1 2113fi 2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2116 # interfere with the next link command; also delete a directory that is 2117 # left behind by Apple's compiler. We do this before executing the actions. 2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2120 as_fn_set_status $ac_retval 2121 2122} # ac_fn_c_try_link 2123 2124# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2125# ------------------------------------------- 2126# Tests whether TYPE exists after having included INCLUDES, setting cache 2127# variable VAR accordingly. 2128ac_fn_c_check_type () 2129{ 2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132$as_echo_n "checking for $2... " >&6; } 2133if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2134 $as_echo_n "(cached) " >&6 2135else 2136 eval "$3=no" 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139$4 2140int 2141main () 2142{ 2143if (sizeof ($2)) 2144 return 0; 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151/* end confdefs.h. */ 2152$4 2153int 2154main () 2155{ 2156if (sizeof (($2))) 2157 return 0; 2158 ; 2159 return 0; 2160} 2161_ACEOF 2162if ac_fn_c_try_compile "$LINENO"; then : 2163 2164else 2165 eval "$3=yes" 2166fi 2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170fi 2171eval ac_res=\$$3 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2173$as_echo "$ac_res" >&6; } 2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2175 2176} # ac_fn_c_check_type 2177 2178# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2179# -------------------------------------------- 2180# Tries to find the compile-time value of EXPR in a program that includes 2181# INCLUDES, setting VAR accordingly. Returns whether the value could be 2182# computed 2183ac_fn_c_compute_int () 2184{ 2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2186 if test "$cross_compiling" = yes; then 2187 # Depending upon the size, compute the lo and hi bounds. 2188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189/* end confdefs.h. */ 2190$4 2191int 2192main () 2193{ 2194static int test_array [1 - 2 * !(($2) >= 0)]; 2195test_array [0] = 0 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO"; then : 2202 ac_lo=0 ac_mid=0 2203 while :; do 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2211test_array [0] = 0 2212 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 ac_hi=$ac_mid; break 2219else 2220 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2221 if test $ac_lo -le $ac_mid; then 2222 ac_lo= ac_hi= 2223 break 2224 fi 2225 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2226fi 2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2228 done 2229else 2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231/* end confdefs.h. */ 2232$4 2233int 2234main () 2235{ 2236static int test_array [1 - 2 * !(($2) < 0)]; 2237test_array [0] = 0 2238 2239 ; 2240 return 0; 2241} 2242_ACEOF 2243if ac_fn_c_try_compile "$LINENO"; then : 2244 ac_hi=-1 ac_mid=-1 2245 while :; do 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2253test_array [0] = 0 2254 2255 ; 2256 return 0; 2257} 2258_ACEOF 2259if ac_fn_c_try_compile "$LINENO"; then : 2260 ac_lo=$ac_mid; break 2261else 2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2263 if test $ac_mid -le $ac_hi; then 2264 ac_lo= ac_hi= 2265 break 2266 fi 2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270 done 2271else 2272 ac_lo= ac_hi= 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2277# Binary search between lo and hi bounds. 2278while test "x$ac_lo" != "x$ac_hi"; do 2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2281/* end confdefs.h. */ 2282$4 2283int 2284main () 2285{ 2286static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2287test_array [0] = 0 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 ac_hi=$ac_mid 2295else 2296 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2297fi 2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2299done 2300case $ac_lo in #(( 2301?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2302'') ac_retval=1 ;; 2303esac 2304 else 2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2306/* end confdefs.h. */ 2307$4 2308static long int longval () { return $2; } 2309static unsigned long int ulongval () { return $2; } 2310#include <stdio.h> 2311#include <stdlib.h> 2312int 2313main () 2314{ 2315 2316 FILE *f = fopen ("conftest.val", "w"); 2317 if (! f) 2318 return 1; 2319 if (($2) < 0) 2320 { 2321 long int i = longval (); 2322 if (i != ($2)) 2323 return 1; 2324 fprintf (f, "%ld", i); 2325 } 2326 else 2327 { 2328 unsigned long int i = ulongval (); 2329 if (i != ($2)) 2330 return 1; 2331 fprintf (f, "%lu", i); 2332 } 2333 /* Do not output a trailing newline, as this causes \r\n confusion 2334 on some platforms. */ 2335 return ferror (f) || fclose (f) != 0; 2336 2337 ; 2338 return 0; 2339} 2340_ACEOF 2341if ac_fn_c_try_run "$LINENO"; then : 2342 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2343else 2344 ac_retval=1 2345fi 2346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2347 conftest.$ac_objext conftest.beam conftest.$ac_ext 2348rm -f conftest.val 2349 2350 fi 2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2352 as_fn_set_status $ac_retval 2353 2354} # ac_fn_c_compute_int 2355 2356# ac_fn_c_check_func LINENO FUNC VAR 2357# ---------------------------------- 2358# Tests whether FUNC exists, setting the cache variable VAR accordingly 2359ac_fn_c_check_func () 2360{ 2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2363$as_echo_n "checking for $2... " >&6; } 2364if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2365 $as_echo_n "(cached) " >&6 2366else 2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2368/* end confdefs.h. */ 2369/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2370 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2371#define $2 innocuous_$2 2372 2373/* System header to define __stub macros and hopefully few prototypes, 2374 which can conflict with char $2 (); below. 2375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2376 <limits.h> exists even on freestanding compilers. */ 2377 2378#ifdef __STDC__ 2379# include <limits.h> 2380#else 2381# include <assert.h> 2382#endif 2383 2384#undef $2 2385 2386/* Override any GCC internal prototype to avoid an error. 2387 Use char because int might match the return type of a GCC 2388 builtin and then its argument prototype would still apply. */ 2389#ifdef __cplusplus 2390extern "C" 2391#endif 2392char $2 (); 2393/* The GNU C library defines this for functions which it implements 2394 to always fail with ENOSYS. Some functions are actually named 2395 something starting with __ and the normal name is an alias. */ 2396#if defined __stub_$2 || defined __stub___$2 2397choke me 2398#endif 2399 2400int 2401main () 2402{ 2403return $2 (); 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408if ac_fn_c_try_link "$LINENO"; then : 2409 eval "$3=yes" 2410else 2411 eval "$3=no" 2412fi 2413rm -f core conftest.err conftest.$ac_objext \ 2414 conftest$ac_exeext conftest.$ac_ext 2415fi 2416eval ac_res=\$$3 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2418$as_echo "$ac_res" >&6; } 2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2420 2421} # ac_fn_c_check_func 2422 2423# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2424# ---------------------------------------------------- 2425# Tries to find if the field MEMBER exists in type AGGR, after including 2426# INCLUDES, setting cache variable VAR accordingly. 2427ac_fn_c_check_member () 2428{ 2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2431$as_echo_n "checking for $2.$3... " >&6; } 2432if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2436/* end confdefs.h. */ 2437$5 2438int 2439main () 2440{ 2441static $2 ac_aggr; 2442if (ac_aggr.$3) 2443return 0; 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448if ac_fn_c_try_compile "$LINENO"; then : 2449 eval "$4=yes" 2450else 2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2452/* end confdefs.h. */ 2453$5 2454int 2455main () 2456{ 2457static $2 ac_aggr; 2458if (sizeof ac_aggr.$3) 2459return 0; 2460 ; 2461 return 0; 2462} 2463_ACEOF 2464if ac_fn_c_try_compile "$LINENO"; then : 2465 eval "$4=yes" 2466else 2467 eval "$4=no" 2468fi 2469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2470fi 2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2472fi 2473eval ac_res=\$$4 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2475$as_echo "$ac_res" >&6; } 2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2477 2478} # ac_fn_c_check_member 2479cat >config.log <<_ACEOF 2480This file contains any messages produced by compilers while 2481running configure, to aid debugging if configure makes a mistake. 2482 2483It was created by ntp $as_me 4.2.6, which was 2484generated by GNU Autoconf 2.65. Invocation command line was 2485 2486 $ $0 $@ 2487 2488_ACEOF 2489exec 5>>config.log 2490{ 2491cat <<_ASUNAME 2492## --------- ## 2493## Platform. ## 2494## --------- ## 2495 2496hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2497uname -m = `(uname -m) 2>/dev/null || echo unknown` 2498uname -r = `(uname -r) 2>/dev/null || echo unknown` 2499uname -s = `(uname -s) 2>/dev/null || echo unknown` 2500uname -v = `(uname -v) 2>/dev/null || echo unknown` 2501 2502/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2503/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2504 2505/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2506/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2507/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2508/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2509/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2511/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2512 2513_ASUNAME 2514 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 test -z "$as_dir" && as_dir=. 2520 $as_echo "PATH: $as_dir" 2521 done 2522IFS=$as_save_IFS 2523 2524} >&5 2525 2526cat >&5 <<_ACEOF 2527 2528 2529## ----------- ## 2530## Core tests. ## 2531## ----------- ## 2532 2533_ACEOF 2534 2535 2536# Keep a trace of the command line. 2537# Strip out --no-create and --no-recursion so they do not pile up. 2538# Strip out --silent because we don't want to record it for future runs. 2539# Also quote any args containing shell meta-characters. 2540# Make two passes to allow for proper duplicate-argument suppression. 2541ac_configure_args= 2542ac_configure_args0= 2543ac_configure_args1= 2544ac_must_keep_next=false 2545for ac_pass in 1 2 2546do 2547 for ac_arg 2548 do 2549 case $ac_arg in 2550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2552 | -silent | --silent | --silen | --sile | --sil) 2553 continue ;; 2554 *\'*) 2555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2556 esac 2557 case $ac_pass in 2558 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2559 2) 2560 as_fn_append ac_configure_args1 " '$ac_arg'" 2561 if test $ac_must_keep_next = true; then 2562 ac_must_keep_next=false # Got value, back to normal. 2563 else 2564 case $ac_arg in 2565 *=* | --config-cache | -C | -disable-* | --disable-* \ 2566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2568 | -with-* | --with-* | -without-* | --without-* | --x) 2569 case "$ac_configure_args0 " in 2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2571 esac 2572 ;; 2573 -* ) ac_must_keep_next=true ;; 2574 esac 2575 fi 2576 as_fn_append ac_configure_args " '$ac_arg'" 2577 ;; 2578 esac 2579 done 2580done 2581{ ac_configure_args0=; unset ac_configure_args0;} 2582{ ac_configure_args1=; unset ac_configure_args1;} 2583 2584# When interrupted or exit'd, cleanup temporary files, and complete 2585# config.log. We remove comments because anyway the quotes in there 2586# would cause problems or look ugly. 2587# WARNING: Use '\'' to represent an apostrophe within the trap. 2588# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2589trap 'exit_status=$? 2590 # Save into config.log some information that might help in debugging. 2591 { 2592 echo 2593 2594 cat <<\_ASBOX 2595## ---------------- ## 2596## Cache variables. ## 2597## ---------------- ## 2598_ASBOX 2599 echo 2600 # The following way of writing the cache mishandles newlines in values, 2601( 2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2603 eval ac_val=\$$ac_var 2604 case $ac_val in #( 2605 *${as_nl}*) 2606 case $ac_var in #( 2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2609 esac 2610 case $ac_var in #( 2611 _ | IFS | as_nl) ;; #( 2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2613 *) { eval $ac_var=; unset $ac_var;} ;; 2614 esac ;; 2615 esac 2616 done 2617 (set) 2>&1 | 2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2619 *${as_nl}ac_space=\ *) 2620 sed -n \ 2621 "s/'\''/'\''\\\\'\'''\''/g; 2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2623 ;; #( 2624 *) 2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2626 ;; 2627 esac | 2628 sort 2629) 2630 echo 2631 2632 cat <<\_ASBOX 2633## ----------------- ## 2634## Output variables. ## 2635## ----------------- ## 2636_ASBOX 2637 echo 2638 for ac_var in $ac_subst_vars 2639 do 2640 eval ac_val=\$$ac_var 2641 case $ac_val in 2642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2643 esac 2644 $as_echo "$ac_var='\''$ac_val'\''" 2645 done | sort 2646 echo 2647 2648 if test -n "$ac_subst_files"; then 2649 cat <<\_ASBOX 2650## ------------------- ## 2651## File substitutions. ## 2652## ------------------- ## 2653_ASBOX 2654 echo 2655 for ac_var in $ac_subst_files 2656 do 2657 eval ac_val=\$$ac_var 2658 case $ac_val in 2659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2660 esac 2661 $as_echo "$ac_var='\''$ac_val'\''" 2662 done | sort 2663 echo 2664 fi 2665 2666 if test -s confdefs.h; then 2667 cat <<\_ASBOX 2668## ----------- ## 2669## confdefs.h. ## 2670## ----------- ## 2671_ASBOX 2672 echo 2673 cat confdefs.h 2674 echo 2675 fi 2676 test "$ac_signal" != 0 && 2677 $as_echo "$as_me: caught signal $ac_signal" 2678 $as_echo "$as_me: exit $exit_status" 2679 } >&5 2680 rm -f core *.core core.conftest.* && 2681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2682 exit $exit_status 2683' 0 2684for ac_signal in 1 2 13 15; do 2685 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2686done 2687ac_signal=0 2688 2689# confdefs.h avoids OS command line length limits that DEFS can exceed. 2690rm -f -r conftest* confdefs.h 2691 2692$as_echo "/* confdefs.h */" > confdefs.h 2693 2694# Predefined preprocessor variables. 2695 2696cat >>confdefs.h <<_ACEOF 2697#define PACKAGE_NAME "$PACKAGE_NAME" 2698_ACEOF 2699 2700cat >>confdefs.h <<_ACEOF 2701#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2702_ACEOF 2703 2704cat >>confdefs.h <<_ACEOF 2705#define PACKAGE_VERSION "$PACKAGE_VERSION" 2706_ACEOF 2707 2708cat >>confdefs.h <<_ACEOF 2709#define PACKAGE_STRING "$PACKAGE_STRING" 2710_ACEOF 2711 2712cat >>confdefs.h <<_ACEOF 2713#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2714_ACEOF 2715 2716cat >>confdefs.h <<_ACEOF 2717#define PACKAGE_URL "$PACKAGE_URL" 2718_ACEOF 2719 2720 2721# Let the site file select an alternate cache file if it wants to. 2722# Prefer an explicitly selected file to automatically selected ones. 2723ac_site_file1=NONE 2724ac_site_file2=NONE 2725if test -n "$CONFIG_SITE"; then 2726 ac_site_file1=$CONFIG_SITE 2727elif test "x$prefix" != xNONE; then 2728 ac_site_file1=$prefix/share/config.site 2729 ac_site_file2=$prefix/etc/config.site 2730else 2731 ac_site_file1=$ac_default_prefix/share/config.site 2732 ac_site_file2=$ac_default_prefix/etc/config.site 2733fi 2734for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2735do 2736 test "x$ac_site_file" = xNONE && continue 2737 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2739$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2740 sed 's/^/| /' "$ac_site_file" >&5 2741 . "$ac_site_file" 2742 fi 2743done 2744 2745if test -r "$cache_file"; then 2746 # Some versions of bash will fail to source /dev/null (special files 2747 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2748 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2750$as_echo "$as_me: loading cache $cache_file" >&6;} 2751 case $cache_file in 2752 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2753 *) . "./$cache_file";; 2754 esac 2755 fi 2756else 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2758$as_echo "$as_me: creating cache $cache_file" >&6;} 2759 >$cache_file 2760fi 2761 2762# Check that the precious variables saved in the cache have kept the same 2763# value. 2764ac_cache_corrupted=false 2765for ac_var in $ac_precious_vars; do 2766 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2767 eval ac_new_set=\$ac_env_${ac_var}_set 2768 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2769 eval ac_new_val=\$ac_env_${ac_var}_value 2770 case $ac_old_set,$ac_new_set in 2771 set,) 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2773$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2774 ac_cache_corrupted=: ;; 2775 ,set) 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2777$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2778 ac_cache_corrupted=: ;; 2779 ,);; 2780 *) 2781 if test "x$ac_old_val" != "x$ac_new_val"; then 2782 # differences in whitespace do not lead to failure. 2783 ac_old_val_w=`echo x $ac_old_val` 2784 ac_new_val_w=`echo x $ac_new_val` 2785 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2787$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2788 ac_cache_corrupted=: 2789 else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2791$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2792 eval $ac_var=\$ac_old_val 2793 fi 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2795$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2797$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2798 fi;; 2799 esac 2800 # Pass precious variables to config.status. 2801 if test "$ac_new_set" = set; then 2802 case $ac_new_val in 2803 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2804 *) ac_arg=$ac_var=$ac_new_val ;; 2805 esac 2806 case " $ac_configure_args " in 2807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2808 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2809 esac 2810 fi 2811done 2812if $ac_cache_corrupted; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2816$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2817 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2818fi 2819## -------------------- ## 2820## Main body of script. ## 2821## -------------------- ## 2822 2823ac_ext=c 2824ac_cpp='$CPP $CPPFLAGS' 2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2827ac_compiler_gnu=$ac_cv_c_compiler_gnu 2828 2829 2830 2831ac_aux_dir= 2832for ac_dir in . "$srcdir"/.; do 2833 for ac_t in install-sh install.sh shtool; do 2834 if test -f "$ac_dir/$ac_t"; then 2835 ac_aux_dir=$ac_dir 2836 ac_install_sh="$ac_aux_dir/$ac_t -c" 2837 break 2 2838 fi 2839 done 2840done 2841if test -z "$ac_aux_dir"; then 2842 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2843fi 2844 2845# These three variables are undocumented and unsupported, 2846# and are intended to be withdrawn in a future Autoconf release. 2847# They can cause serious problems if a builder's source tree is in a directory 2848# whose full name contains unusual characters. 2849ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2850ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2851ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2852 2853 2854 2855# Increment ntp_configure_cache_version by one for each change to 2856# configure.ac or .m4 files which invalidates cached values from 2857# previous versions. 2858# 2859# If the change affects cache variables used only by the main NTP 2860# configure.ac, then only its version number should be bumped, while 2861# the subdir configure.ac version numbers should be unchanged. The 2862# same is true for a test/variable that is used only by one subdir 2863# being changed incompatibly; only that subdir's cache version needs 2864# bumping. 2865# 2866# If a change affects variables shared by all NTP configure scripts, 2867# please bump the version numbers of all three. If you are not sure, 2868# the safe choice is to bump all three on any cache-invalidating change. 2869# 2870# In order to avoid the risk of version stamp collision between -stable 2871# and -dev branches, do not simply increment the version, instead use 2872# the date YYYYMMDD optionally with -HHMM if there is more than one 2873# bump in a day. 2874 2875ntp_configure_cache_version=20091117 2876 2877# When the cache version of config.cache and configure do not 2878# match, NTP_CACHEVERSION will flush the cache. 2879 2880 2881 2882 ntp_cache_flush=1 2883 2884 case "$ntp_cv_main_cache_version" in 2885 $ntp_configure_cache_version) 2886 # same version, good 2887 ntp_cache_flush=0 2888 ;; 2889 '') 2890 # No cache, predates ntp_cv_main_cache_version, or is empty. 2891 case "$cache_file" in 2892 /dev/null) 2893 ntp_cache_flush=0 2894 ;; 2895 *) 2896 case "$NTP_CACHEVERSION_PARENT" in 2897 '') 2898 # Do not clear the cache immediately after it is created 2899 # empty as it is noisy. Differentiate a newly-created 2900 # config.cache from one predating the cache version 2901 # mechanism by looking for the first cached variable set 2902 # by Autoconf 2903 case "$ac_cv_path_install" in 2904 '') 2905 # empty config.cache file 2906 ntp_cache_flush=0 2907 esac 2908 ;; 2909 *) 2910 # Parent configure just created cache from empty, 2911 # flushing would be counterproductive. 2912 ntp_cache_flush=0; 2913 esac 2914 esac 2915 ;; 2916 *) 2917 # configure cache version mismatches config.cache version 2918 esac 2919 2920 case "$ntp_cache_flush" in 2921 1) 2922 c_version="${ntp_cv_main_cache_version:-(no version found)}" 2923 2924 # Do we flush all variables or exclude others' version stamps? 2925 2926 case "$NTP_CACHEVERSION_PARENT" in 2927 '') 2928 # Clear all *_cv_* variables including our child subdirs' 2929 # ntp_cv_*_cache_version variables. This prevents subdir 2930 # configure scripts from noticing a version mismatch just 2931 # after the top configure in the invocation cleared and 2932 # recreated the cache. 2933 2934 c_varname_list=`set | 2935 sed -n -e 's/=.*$//' \ 2936 -e '/_cv_/p' 2937 ` 2938 ;; 2939 *) 2940 # This is not the top configure this particular invocation. 2941 # Clear all *_cv_* variables sparing the version stamps 2942 # of other configure scripts, so we don't trigger 2943 # useless repeated clearings. 2944 2945 c_varname_list=`set | 2946 sed -n -e 's/=.*$//' \ 2947 -e '/ntp_cv_.*_cache_version/d' \ 2948 -e '/_cv_/p' 2949 ` 2950 esac 2951 2952 for c_varname in $c_varname_list 2953 do 2954 eval ${c_varname}=; $as_unset $c_varname 2955 done 2956 2957 c_varname_list=; $as_unset c_varname_list c_varname 2958 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 2960$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 2962$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 2964$as_echo "$as_me: $cache_file version: $c_version" >&6;} 2965 $as_unset c_version 2966 esac 2967 2968 # save configure version in config.cache for next time 2969 ntp_cv_main_cache_version="$ntp_configure_cache_version" 2970 2971 $as_unset ntp_cache_flush 2972 2973 # let any subdir configure.ac NTP_CACHEVERSION invocations 2974 # know they are not the top level. 2975 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 2976 2977 2978am__api_version='1.11' 2979 2980# Find a good install program. We prefer a C program (faster), 2981# so one script is as good as another. But avoid the broken or 2982# incompatible versions: 2983# SysV /etc/install, /usr/sbin/install 2984# SunOS /usr/etc/install 2985# IRIX /sbin/install 2986# AIX /bin/install 2987# AmigaOS /C/install, which installs bootblocks on floppy discs 2988# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2989# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2990# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2991# OS/2's system install, which has a completely different semantic 2992# ./install, which can be erroneously created by make from ./install.sh. 2993# Reject install programs that cannot install multiple files. 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2995$as_echo_n "checking for a BSD-compatible install... " >&6; } 2996if test -z "$INSTALL"; then 2997if test "${ac_cv_path_install+set}" = set; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 # Account for people who put trailing slashes in PATH elements. 3006case $as_dir/ in #(( 3007 ./ | .// | /[cC]/* | \ 3008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3009 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3010 /usr/ucb/* ) ;; 3011 *) 3012 # OSF1 and SCO ODT 3.0 have their own names for install. 3013 # Don't use installbsd from OSF since it installs stuff as root 3014 # by default. 3015 for ac_prog in ginstall scoinst install; do 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3018 if test $ac_prog = install && 3019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3020 # AIX install. It has an incompatible calling convention. 3021 : 3022 elif test $ac_prog = install && 3023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3024 # program-specific install script used by HP pwplus--don't use. 3025 : 3026 else 3027 rm -rf conftest.one conftest.two conftest.dir 3028 echo one > conftest.one 3029 echo two > conftest.two 3030 mkdir conftest.dir 3031 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3032 test -s conftest.one && test -s conftest.two && 3033 test -s conftest.dir/conftest.one && 3034 test -s conftest.dir/conftest.two 3035 then 3036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3037 break 3 3038 fi 3039 fi 3040 fi 3041 done 3042 done 3043 ;; 3044esac 3045 3046 done 3047IFS=$as_save_IFS 3048 3049rm -rf conftest.one conftest.two conftest.dir 3050 3051fi 3052 if test "${ac_cv_path_install+set}" = set; then 3053 INSTALL=$ac_cv_path_install 3054 else 3055 # As a last resort, use the slow shell script. Don't cache a 3056 # value for INSTALL within a source directory, because that will 3057 # break other packages using the cache if that directory is 3058 # removed, or if the value is a relative name. 3059 INSTALL=$ac_install_sh 3060 fi 3061fi 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3063$as_echo "$INSTALL" >&6; } 3064 3065# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3066# It thinks the first close brace ends the variable substitution. 3067test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3068 3069test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3070 3071test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3072 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3074$as_echo_n "checking whether build environment is sane... " >&6; } 3075# Just in case 3076sleep 1 3077echo timestamp > conftest.file 3078# Reject unsafe characters in $srcdir or the absolute working directory 3079# name. Accept space and tab only in the latter. 3080am_lf=' 3081' 3082case `pwd` in 3083 *[\\\"\#\$\&\'\`$am_lf]*) 3084 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3085esac 3086case $srcdir in 3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3088 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3089esac 3090 3091# Do `set' in a subshell so we don't clobber the current shell's 3092# arguments. Must try -L first in case configure is actually a 3093# symlink; some systems play weird games with the mod time of symlinks 3094# (eg FreeBSD returns the mod time of the symlink's containing 3095# directory). 3096if ( 3097 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3098 if test "$*" = "X"; then 3099 # -L didn't work. 3100 set X `ls -t "$srcdir/configure" conftest.file` 3101 fi 3102 rm -f conftest.file 3103 if test "$*" != "X $srcdir/configure conftest.file" \ 3104 && test "$*" != "X conftest.file $srcdir/configure"; then 3105 3106 # If neither matched, then we have a broken ls. This can happen 3107 # if, for instance, CONFIG_SHELL is bash and it inherits a 3108 # broken ls alias from the environment. This has actually 3109 # happened. Such a system could not be considered "sane". 3110 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3111alias in your environment" "$LINENO" 5 3112 fi 3113 3114 test "$2" = conftest.file 3115 ) 3116then 3117 # Ok. 3118 : 3119else 3120 as_fn_error "newly created file is older than distributed files! 3121Check your system clock" "$LINENO" 5 3122fi 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3124$as_echo "yes" >&6; } 3125test "$program_prefix" != NONE && 3126 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3127# Use a double $ so make ignores it. 3128test "$program_suffix" != NONE && 3129 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3130# Double any \ or $. 3131# By default was `s,x,x', remove it if useless. 3132ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3133program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3134 3135# expand $ac_aux_dir to an absolute path 3136am_aux_dir=`cd $ac_aux_dir && pwd` 3137 3138if test x"${MISSING+set}" != xset; then 3139 case $am_aux_dir in 3140 *\ * | *\ *) 3141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3142 *) 3143 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3144 esac 3145fi 3146# Use eval to expand $SHELL 3147if eval "$MISSING --run true"; then 3148 am_missing_run="$MISSING --run " 3149else 3150 am_missing_run= 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3152$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3153fi 3154 3155if test x"${install_sh}" != xset; then 3156 case $am_aux_dir in 3157 *\ * | *\ *) 3158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3159 *) 3160 install_sh="\${SHELL} $am_aux_dir/install-sh" 3161 esac 3162fi 3163 3164# Installed binaries are usually stripped using `strip' when the user 3165# run `make install-strip'. However `strip' might not be the right 3166# tool to use in cross-compilation environments, therefore Automake 3167# will honor the `STRIP' environment variable to overrule this program. 3168if test "$cross_compiling" != no; then 3169 if test -n "$ac_tool_prefix"; then 3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3171set dummy ${ac_tool_prefix}strip; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if test "${ac_cv_prog_STRIP+set}" = set; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$STRIP"; then 3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3187 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197STRIP=$ac_cv_prog_STRIP 3198if test -n "$STRIP"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3200$as_echo "$STRIP" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207fi 3208if test -z "$ac_cv_prog_STRIP"; then 3209 ac_ct_STRIP=$STRIP 3210 # Extract the first word of "strip", so it can be a program name with args. 3211set dummy strip; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$ac_ct_STRIP"; then 3218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3227 ac_cv_prog_ac_ct_STRIP="strip" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3238if test -n "$ac_ct_STRIP"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3240$as_echo "$ac_ct_STRIP" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 if test "x$ac_ct_STRIP" = x; then 3247 STRIP=":" 3248 else 3249 case $cross_compiling:$ac_tool_warned in 3250yes:) 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3253ac_tool_warned=yes ;; 3254esac 3255 STRIP=$ac_ct_STRIP 3256 fi 3257else 3258 STRIP="$ac_cv_prog_STRIP" 3259fi 3260 3261fi 3262INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3263 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3265$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3266if test -z "$MKDIR_P"; then 3267 if test "${ac_cv_path_mkdir+set}" = set; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3272do 3273 IFS=$as_save_IFS 3274 test -z "$as_dir" && as_dir=. 3275 for ac_prog in mkdir gmkdir; do 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3279 'mkdir (GNU coreutils) '* | \ 3280 'mkdir (coreutils) '* | \ 3281 'mkdir (fileutils) '4.1*) 3282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3283 break 3;; 3284 esac 3285 done 3286 done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291 3292 test -d ./--version && rmdir ./--version 3293 if test "${ac_cv_path_mkdir+set}" = set; then 3294 MKDIR_P="$ac_cv_path_mkdir -p" 3295 else 3296 # As a last resort, use the slow shell script. Don't cache a 3297 # value for MKDIR_P within a source directory, because that will 3298 # break other packages using the cache if that directory is 3299 # removed, or if the value is a relative name. 3300 MKDIR_P="$ac_install_sh -d" 3301 fi 3302fi 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3304$as_echo "$MKDIR_P" >&6; } 3305 3306mkdir_p="$MKDIR_P" 3307case $mkdir_p in 3308 [\\/$]* | ?:[\\/]*) ;; 3309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3310esac 3311 3312for ac_prog in gawk mawk nawk awk 3313do 3314 # Extract the first word of "$ac_prog", so it can be a program name with args. 3315set dummy $ac_prog; ac_word=$2 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3317$as_echo_n "checking for $ac_word... " >&6; } 3318if test "${ac_cv_prog_AWK+set}" = set; then : 3319 $as_echo_n "(cached) " >&6 3320else 3321 if test -n "$AWK"; then 3322 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3323else 3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 test -z "$as_dir" && as_dir=. 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3331 ac_cv_prog_AWK="$ac_prog" 3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 break 2 3334 fi 3335done 3336 done 3337IFS=$as_save_IFS 3338 3339fi 3340fi 3341AWK=$ac_cv_prog_AWK 3342if test -n "$AWK"; then 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3344$as_echo "$AWK" >&6; } 3345else 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3347$as_echo "no" >&6; } 3348fi 3349 3350 3351 test -n "$AWK" && break 3352done 3353 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3355$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3356set x ${MAKE-make} 3357ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3358if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 cat >conftest.make <<\_ACEOF 3362SHELL = /bin/sh 3363all: 3364 @echo '@@@%%%=$(MAKE)=@@@%%%' 3365_ACEOF 3366# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3367case `${MAKE-make} -f conftest.make 2>/dev/null` in 3368 *@@@%%%=?*=@@@%%%*) 3369 eval ac_cv_prog_make_${ac_make}_set=yes;; 3370 *) 3371 eval ac_cv_prog_make_${ac_make}_set=no;; 3372esac 3373rm -f conftest.make 3374fi 3375if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3377$as_echo "yes" >&6; } 3378 SET_MAKE= 3379else 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3381$as_echo "no" >&6; } 3382 SET_MAKE="MAKE=${MAKE-make}" 3383fi 3384 3385rm -rf .tst 2>/dev/null 3386mkdir .tst 2>/dev/null 3387if test -d .tst; then 3388 am__leading_dot=. 3389else 3390 am__leading_dot=_ 3391fi 3392rmdir .tst 2>/dev/null 3393 3394if test "`cd $srcdir && pwd`" != "`pwd`"; then 3395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3396 # is not polluted with repeated "-I." 3397 am__isrc=' -I$(srcdir)' 3398 # test to see if srcdir already configured 3399 if test -f $srcdir/config.status; then 3400 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3401 fi 3402fi 3403 3404# test whether we have cygpath 3405if test -z "$CYGPATH_W"; then 3406 if (cygpath --version) >/dev/null 2>/dev/null; then 3407 CYGPATH_W='cygpath -w' 3408 else 3409 CYGPATH_W=echo 3410 fi 3411fi 3412 3413 3414# Define the identity of the package. 3415 PACKAGE='ntp' 3416 VERSION='4.2.6' 3417 3418 3419cat >>confdefs.h <<_ACEOF 3420#define PACKAGE "$PACKAGE" 3421_ACEOF 3422 3423 3424cat >>confdefs.h <<_ACEOF 3425#define VERSION "$VERSION" 3426_ACEOF 3427 3428# Some tools Automake needs. 3429 3430ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3431 3432 3433AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3434 3435 3436AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3437 3438 3439AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3440 3441 3442MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3443 3444# We need awk for the "check" target. The system "awk" is bad on 3445# some platforms. 3446# Always define AMTAR for backward compatibility. 3447 3448AMTAR=${AMTAR-"${am_missing_run}tar"} 3449 3450am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3451 3452 3453 3454 3455 3456# Make sure we can run config.sub. 3457$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3458 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3459 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3461$as_echo_n "checking build system type... " >&6; } 3462if test "${ac_cv_build+set}" = set; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 ac_build_alias=$build_alias 3466test "x$ac_build_alias" = x && 3467 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3468test "x$ac_build_alias" = x && 3469 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3470ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3471 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3472 3473fi 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3475$as_echo "$ac_cv_build" >&6; } 3476case $ac_cv_build in 3477*-*-*) ;; 3478*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3479esac 3480build=$ac_cv_build 3481ac_save_IFS=$IFS; IFS='-' 3482set x $ac_cv_build 3483shift 3484build_cpu=$1 3485build_vendor=$2 3486shift; shift 3487# Remember, the first character of IFS is used to create $*, 3488# except with old shells: 3489build_os=$* 3490IFS=$ac_save_IFS 3491case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3492 3493 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3495$as_echo_n "checking host system type... " >&6; } 3496if test "${ac_cv_host+set}" = set; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if test "x$host_alias" = x; then 3500 ac_cv_host=$ac_cv_build 3501else 3502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3503 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3504fi 3505 3506fi 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3508$as_echo "$ac_cv_host" >&6; } 3509case $ac_cv_host in 3510*-*-*) ;; 3511*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3512esac 3513host=$ac_cv_host 3514ac_save_IFS=$IFS; IFS='-' 3515set x $ac_cv_host 3516shift 3517host_cpu=$1 3518host_vendor=$2 3519shift; shift 3520# Remember, the first character of IFS is used to create $*, 3521# except with old shells: 3522host_os=$* 3523IFS=$ac_save_IFS 3524case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3525 3526 3527 3528cat >>confdefs.h <<_ACEOF 3529#define STR_SYSTEM "$host" 3530_ACEOF 3531 3532ac_config_headers="$ac_config_headers config.h" 3533 3534 3535ac_cv_var_atom_ok=no 3536ac_cv_var_oncore_ok=no 3537ac_cv_var_parse_ok=no 3538ac_cv_var_ripe_ncc_ok=no 3539ac_cv_var_jupiter_ok=no 3540 3541iCFLAGS="$CFLAGS" 3542 3543DEPDIR="${am__leading_dot}deps" 3544 3545ac_config_commands="$ac_config_commands depfiles" 3546 3547 3548am_make=${MAKE-make} 3549cat > confinc << 'END' 3550am__doit: 3551 @echo this is the am__doit target 3552.PHONY: am__doit 3553END 3554# If we don't find an include directive, just comment out the code. 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3556$as_echo_n "checking for style of include used by $am_make... " >&6; } 3557am__include="#" 3558am__quote= 3559_am_result=none 3560# First try GNU make style include. 3561echo "include confinc" > confmf 3562# Ignore all kinds of additional output from `make'. 3563case `$am_make -s -f confmf 2> /dev/null` in #( 3564*the\ am__doit\ target*) 3565 am__include=include 3566 am__quote= 3567 _am_result=GNU 3568 ;; 3569esac 3570# Now try BSD make style include. 3571if test "$am__include" = "#"; then 3572 echo '.include "confinc"' > confmf 3573 case `$am_make -s -f confmf 2> /dev/null` in #( 3574 *the\ am__doit\ target*) 3575 am__include=.include 3576 am__quote="\"" 3577 _am_result=BSD 3578 ;; 3579 esac 3580fi 3581 3582 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3584$as_echo "$_am_result" >&6; } 3585rm -f confinc confmf 3586 3587# Check whether --enable-dependency-tracking was given. 3588if test "${enable_dependency_tracking+set}" = set; then : 3589 enableval=$enable_dependency_tracking; 3590fi 3591 3592if test "x$enable_dependency_tracking" != xno; then 3593 am_depcomp="$ac_aux_dir/depcomp" 3594 AMDEPBACKSLASH='\' 3595fi 3596 if test "x$enable_dependency_tracking" != xno; then 3597 AMDEP_TRUE= 3598 AMDEP_FALSE='#' 3599else 3600 AMDEP_TRUE='#' 3601 AMDEP_FALSE= 3602fi 3603 3604 3605ac_ext=c 3606ac_cpp='$CPP $CPPFLAGS' 3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3609ac_compiler_gnu=$ac_cv_c_compiler_gnu 3610if test -n "$ac_tool_prefix"; then 3611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3612set dummy ${ac_tool_prefix}gcc; ac_word=$2 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614$as_echo_n "checking for $ac_word... " >&6; } 3615if test "${ac_cv_prog_CC+set}" = set; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test -n "$CC"; then 3619 ac_cv_prog_CC="$CC" # Let the user override the test. 3620else 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3628 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638CC=$ac_cv_prog_CC 3639if test -n "$CC"; then 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641$as_echo "$CC" >&6; } 3642else 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644$as_echo "no" >&6; } 3645fi 3646 3647 3648fi 3649if test -z "$ac_cv_prog_CC"; then 3650 ac_ct_CC=$CC 3651 # Extract the first word of "gcc", so it can be a program name with args. 3652set dummy gcc; ac_word=$2 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3654$as_echo_n "checking for $ac_word... " >&6; } 3655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 if test -n "$ac_ct_CC"; then 3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3660else 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 test -z "$as_dir" && as_dir=. 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3668 ac_cv_prog_ac_ct_CC="gcc" 3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3670 break 2 3671 fi 3672done 3673 done 3674IFS=$as_save_IFS 3675 3676fi 3677fi 3678ac_ct_CC=$ac_cv_prog_ac_ct_CC 3679if test -n "$ac_ct_CC"; then 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3681$as_echo "$ac_ct_CC" >&6; } 3682else 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3684$as_echo "no" >&6; } 3685fi 3686 3687 if test "x$ac_ct_CC" = x; then 3688 CC="" 3689 else 3690 case $cross_compiling:$ac_tool_warned in 3691yes:) 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3694ac_tool_warned=yes ;; 3695esac 3696 CC=$ac_ct_CC 3697 fi 3698else 3699 CC="$ac_cv_prog_CC" 3700fi 3701 3702if test -z "$CC"; then 3703 if test -n "$ac_tool_prefix"; then 3704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3705set dummy ${ac_tool_prefix}cc; ac_word=$2 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3707$as_echo_n "checking for $ac_word... " >&6; } 3708if test "${ac_cv_prog_CC+set}" = set; then : 3709 $as_echo_n "(cached) " >&6 3710else 3711 if test -n "$CC"; then 3712 ac_cv_prog_CC="$CC" # Let the user override the test. 3713else 3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3715for as_dir in $PATH 3716do 3717 IFS=$as_save_IFS 3718 test -z "$as_dir" && as_dir=. 3719 for ac_exec_ext in '' $ac_executable_extensions; do 3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3721 ac_cv_prog_CC="${ac_tool_prefix}cc" 3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3723 break 2 3724 fi 3725done 3726 done 3727IFS=$as_save_IFS 3728 3729fi 3730fi 3731CC=$ac_cv_prog_CC 3732if test -n "$CC"; then 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3734$as_echo "$CC" >&6; } 3735else 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737$as_echo "no" >&6; } 3738fi 3739 3740 3741 fi 3742fi 3743if test -z "$CC"; then 3744 # Extract the first word of "cc", so it can be a program name with args. 3745set dummy cc; ac_word=$2 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3747$as_echo_n "checking for $ac_word... " >&6; } 3748if test "${ac_cv_prog_CC+set}" = set; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 if test -n "$CC"; then 3752 ac_cv_prog_CC="$CC" # Let the user override the test. 3753else 3754 ac_prog_rejected=no 3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3756for as_dir in $PATH 3757do 3758 IFS=$as_save_IFS 3759 test -z "$as_dir" && as_dir=. 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3763 ac_prog_rejected=yes 3764 continue 3765 fi 3766 ac_cv_prog_CC="cc" 3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3768 break 2 3769 fi 3770done 3771 done 3772IFS=$as_save_IFS 3773 3774if test $ac_prog_rejected = yes; then 3775 # We found a bogon in the path, so make sure we never use it. 3776 set dummy $ac_cv_prog_CC 3777 shift 3778 if test $# != 0; then 3779 # We chose a different compiler from the bogus one. 3780 # However, it has the same basename, so the bogon will be chosen 3781 # first if we set CC to just the basename; use the full file name. 3782 shift 3783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3784 fi 3785fi 3786fi 3787fi 3788CC=$ac_cv_prog_CC 3789if test -n "$CC"; then 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3791$as_echo "$CC" >&6; } 3792else 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794$as_echo "no" >&6; } 3795fi 3796 3797 3798fi 3799if test -z "$CC"; then 3800 if test -n "$ac_tool_prefix"; then 3801 for ac_prog in cl.exe 3802 do 3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3804set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3806$as_echo_n "checking for $ac_word... " >&6; } 3807if test "${ac_cv_prog_CC+set}" = set; then : 3808 $as_echo_n "(cached) " >&6 3809else 3810 if test -n "$CC"; then 3811 ac_cv_prog_CC="$CC" # Let the user override the test. 3812else 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_exec_ext in '' $ac_executable_extensions; do 3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3822 break 2 3823 fi 3824done 3825 done 3826IFS=$as_save_IFS 3827 3828fi 3829fi 3830CC=$ac_cv_prog_CC 3831if test -n "$CC"; then 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3833$as_echo "$CC" >&6; } 3834else 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3836$as_echo "no" >&6; } 3837fi 3838 3839 3840 test -n "$CC" && break 3841 done 3842fi 3843if test -z "$CC"; then 3844 ac_ct_CC=$CC 3845 for ac_prog in cl.exe 3846do 3847 # Extract the first word of "$ac_prog", so it can be a program name with args. 3848set dummy $ac_prog; ac_word=$2 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3850$as_echo_n "checking for $ac_word... " >&6; } 3851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 if test -n "$ac_ct_CC"; then 3855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3856else 3857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3858for as_dir in $PATH 3859do 3860 IFS=$as_save_IFS 3861 test -z "$as_dir" && as_dir=. 3862 for ac_exec_ext in '' $ac_executable_extensions; do 3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3864 ac_cv_prog_ac_ct_CC="$ac_prog" 3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3866 break 2 3867 fi 3868done 3869 done 3870IFS=$as_save_IFS 3871 3872fi 3873fi 3874ac_ct_CC=$ac_cv_prog_ac_ct_CC 3875if test -n "$ac_ct_CC"; then 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3877$as_echo "$ac_ct_CC" >&6; } 3878else 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3880$as_echo "no" >&6; } 3881fi 3882 3883 3884 test -n "$ac_ct_CC" && break 3885done 3886 3887 if test "x$ac_ct_CC" = x; then 3888 CC="" 3889 else 3890 case $cross_compiling:$ac_tool_warned in 3891yes:) 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3894ac_tool_warned=yes ;; 3895esac 3896 CC=$ac_ct_CC 3897 fi 3898fi 3899 3900fi 3901 3902 3903test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error "no acceptable C compiler found in \$PATH 3906See \`config.log' for more details." "$LINENO" 5; } 3907 3908# Provide some information about the compiler. 3909$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3910set X $ac_compile 3911ac_compiler=$2 3912for ac_option in --version -v -V -qversion; do 3913 { { ac_try="$ac_compiler $ac_option >&5" 3914case "(($ac_try" in 3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3916 *) ac_try_echo=$ac_try;; 3917esac 3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3919$as_echo "$ac_try_echo"; } >&5 3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3921 ac_status=$? 3922 if test -s conftest.err; then 3923 sed '10a\ 3924... rest of stderr output deleted ... 3925 10q' conftest.err >conftest.er1 3926 cat conftest.er1 >&5 3927 fi 3928 rm -f conftest.er1 conftest.err 3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; } 3931done 3932 3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944ac_clean_files_save=$ac_clean_files 3945ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3946# Try to create an executable without -o first, disregard a.out. 3947# It will help us diagnose broken compilers, and finding out an intuition 3948# of exeext. 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3950$as_echo_n "checking whether the C compiler works... " >&6; } 3951ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3952 3953# The possible output files: 3954ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3955 3956ac_rmfiles= 3957for ac_file in $ac_files 3958do 3959 case $ac_file in 3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3961 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3962 esac 3963done 3964rm -f $ac_rmfiles 3965 3966if { { ac_try="$ac_link_default" 3967case "(($ac_try" in 3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3969 *) ac_try_echo=$ac_try;; 3970esac 3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3972$as_echo "$ac_try_echo"; } >&5 3973 (eval "$ac_link_default") 2>&5 3974 ac_status=$? 3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3976 test $ac_status = 0; }; then : 3977 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3978# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3979# in a Makefile. We should not override ac_cv_exeext if it was cached, 3980# so that the user can short-circuit this test for compilers unknown to 3981# Autoconf. 3982for ac_file in $ac_files '' 3983do 3984 test -f "$ac_file" || continue 3985 case $ac_file in 3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3987 ;; 3988 [ab].out ) 3989 # We found the default executable, but exeext='' is most 3990 # certainly right. 3991 break;; 3992 *.* ) 3993 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3994 then :; else 3995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3996 fi 3997 # We set ac_cv_exeext here because the later test for it is not 3998 # safe: cross compilers may not add the suffix if given an `-o' 3999 # argument, so we may need to know it at that point already. 4000 # Even if this section looks crufty: it has the advantage of 4001 # actually working. 4002 break;; 4003 * ) 4004 break;; 4005 esac 4006done 4007test "$ac_cv_exeext" = no && ac_cv_exeext= 4008 4009else 4010 ac_file='' 4011fi 4012if test -z "$ac_file"; then : 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014$as_echo "no" >&6; } 4015$as_echo "$as_me: failed program was:" >&5 4016sed 's/^/| /' conftest.$ac_ext >&5 4017 4018{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4020{ as_fn_set_status 77 4021as_fn_error "C compiler cannot create executables 4022See \`config.log' for more details." "$LINENO" 5; }; } 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4025$as_echo "yes" >&6; } 4026fi 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4028$as_echo_n "checking for C compiler default output file name... " >&6; } 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4030$as_echo "$ac_file" >&6; } 4031ac_exeext=$ac_cv_exeext 4032 4033rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4034ac_clean_files=$ac_clean_files_save 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4036$as_echo_n "checking for suffix of executables... " >&6; } 4037if { { ac_try="$ac_link" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4043$as_echo "$ac_try_echo"; } >&5 4044 (eval "$ac_link") 2>&5 4045 ac_status=$? 4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4047 test $ac_status = 0; }; then : 4048 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4049# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4050# work properly (i.e., refer to `conftest.exe'), while it won't with 4051# `rm'. 4052for ac_file in conftest.exe conftest conftest.*; do 4053 test -f "$ac_file" || continue 4054 case $ac_file in 4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4056 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4057 break;; 4058 * ) break;; 4059 esac 4060done 4061else 4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4064as_fn_error "cannot compute suffix of executables: cannot compile and link 4065See \`config.log' for more details." "$LINENO" 5; } 4066fi 4067rm -f conftest conftest$ac_cv_exeext 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4069$as_echo "$ac_cv_exeext" >&6; } 4070 4071rm -f conftest.$ac_ext 4072EXEEXT=$ac_cv_exeext 4073ac_exeext=$EXEEXT 4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076#include <stdio.h> 4077int 4078main () 4079{ 4080FILE *f = fopen ("conftest.out", "w"); 4081 return ferror (f) || fclose (f) != 0; 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087ac_clean_files="$ac_clean_files conftest.out" 4088# Check that the compiler produces executables we can run. If not, either 4089# the compiler is broken, or we cross compile. 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4091$as_echo_n "checking whether we are cross compiling... " >&6; } 4092if test "$cross_compiling" != yes; then 4093 { { ac_try="$ac_link" 4094case "(($ac_try" in 4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4096 *) ac_try_echo=$ac_try;; 4097esac 4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4099$as_echo "$ac_try_echo"; } >&5 4100 (eval "$ac_link") 2>&5 4101 ac_status=$? 4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4103 test $ac_status = 0; } 4104 if { ac_try='./conftest$ac_cv_exeext' 4105 { { case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108esac 4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4110$as_echo "$ac_try_echo"; } >&5 4111 (eval "$ac_try") 2>&5 4112 ac_status=$? 4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4114 test $ac_status = 0; }; }; then 4115 cross_compiling=no 4116 else 4117 if test "$cross_compiling" = maybe; then 4118 cross_compiling=yes 4119 else 4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4122as_fn_error "cannot run C compiled programs. 4123If you meant to cross compile, use \`--host'. 4124See \`config.log' for more details." "$LINENO" 5; } 4125 fi 4126 fi 4127fi 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4129$as_echo "$cross_compiling" >&6; } 4130 4131rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4132ac_clean_files=$ac_clean_files_save 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4134$as_echo_n "checking for suffix of object files... " >&6; } 4135if test "${ac_cv_objext+set}" = set; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int 4142main () 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149rm -f conftest.o conftest.obj 4150if { { ac_try="$ac_compile" 4151case "(($ac_try" in 4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4153 *) ac_try_echo=$ac_try;; 4154esac 4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4156$as_echo "$ac_try_echo"; } >&5 4157 (eval "$ac_compile") 2>&5 4158 ac_status=$? 4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4160 test $ac_status = 0; }; then : 4161 for ac_file in conftest.o conftest.obj conftest.*; do 4162 test -f "$ac_file" || continue; 4163 case $ac_file in 4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4166 break;; 4167 esac 4168done 4169else 4170 $as_echo "$as_me: failed program was:" >&5 4171sed 's/^/| /' conftest.$ac_ext >&5 4172 4173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4175as_fn_error "cannot compute suffix of object files: cannot compile 4176See \`config.log' for more details." "$LINENO" 5; } 4177fi 4178rm -f conftest.$ac_cv_objext conftest.$ac_ext 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4181$as_echo "$ac_cv_objext" >&6; } 4182OBJEXT=$ac_cv_objext 4183ac_objext=$OBJEXT 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4185$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4186if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191 4192int 4193main () 4194{ 4195#ifndef __GNUC__ 4196 choke me 4197#endif 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203if ac_fn_c_try_compile "$LINENO"; then : 4204 ac_compiler_gnu=yes 4205else 4206 ac_compiler_gnu=no 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209ac_cv_c_compiler_gnu=$ac_compiler_gnu 4210 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4213$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4214if test $ac_compiler_gnu = yes; then 4215 GCC=yes 4216else 4217 GCC= 4218fi 4219ac_test_CFLAGS=${CFLAGS+set} 4220ac_save_CFLAGS=$CFLAGS 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4222$as_echo_n "checking whether $CC accepts -g... " >&6; } 4223if test "${ac_cv_prog_cc_g+set}" = set; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 ac_save_c_werror_flag=$ac_c_werror_flag 4227 ac_c_werror_flag=yes 4228 ac_cv_prog_cc_g=no 4229 CFLAGS="-g" 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232 4233int 4234main () 4235{ 4236 4237 ; 4238 return 0; 4239} 4240_ACEOF 4241if ac_fn_c_try_compile "$LINENO"; then : 4242 ac_cv_prog_cc_g=yes 4243else 4244 CFLAGS="" 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247 4248int 4249main () 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO"; then : 4257 4258else 4259 ac_c_werror_flag=$ac_save_c_werror_flag 4260 CFLAGS="-g" 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263 4264int 4265main () 4266{ 4267 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272if ac_fn_c_try_compile "$LINENO"; then : 4273 ac_cv_prog_cc_g=yes 4274fi 4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4276fi 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4278fi 4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4280 ac_c_werror_flag=$ac_save_c_werror_flag 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4283$as_echo "$ac_cv_prog_cc_g" >&6; } 4284if test "$ac_test_CFLAGS" = set; then 4285 CFLAGS=$ac_save_CFLAGS 4286elif test $ac_cv_prog_cc_g = yes; then 4287 if test "$GCC" = yes; then 4288 CFLAGS="-g -O2" 4289 else 4290 CFLAGS="-g" 4291 fi 4292else 4293 if test "$GCC" = yes; then 4294 CFLAGS="-O2" 4295 else 4296 CFLAGS= 4297 fi 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4300$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4301if test "${ac_cv_prog_cc_c89+set}" = set; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 ac_cv_prog_cc_c89=no 4305ac_save_CC=$CC 4306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308#include <stdarg.h> 4309#include <stdio.h> 4310#include <sys/types.h> 4311#include <sys/stat.h> 4312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4313struct buf { int x; }; 4314FILE * (*rcsopen) (struct buf *, struct stat *, int); 4315static char *e (p, i) 4316 char **p; 4317 int i; 4318{ 4319 return p[i]; 4320} 4321static char *f (char * (*g) (char **, int), char **p, ...) 4322{ 4323 char *s; 4324 va_list v; 4325 va_start (v,p); 4326 s = g (p, va_arg (v,int)); 4327 va_end (v); 4328 return s; 4329} 4330 4331/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4332 function prototypes and stuff, but not '\xHH' hex character constants. 4333 These don't provoke an error unfortunately, instead are silently treated 4334 as 'x'. The following induces an error, until -std is added to get 4335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4336 array size at least. It's necessary to write '\x00'==0 to get something 4337 that's true only with -std. */ 4338int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4339 4340/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4341 inside strings and character constants. */ 4342#define FOO(x) 'x' 4343int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4344 4345int test (int i, double x); 4346struct s1 {int (*f) (int a);}; 4347struct s2 {int (*f) (double a);}; 4348int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4349int argc; 4350char **argv; 4351int 4352main () 4353{ 4354return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4355 ; 4356 return 0; 4357} 4358_ACEOF 4359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4361do 4362 CC="$ac_save_CC $ac_arg" 4363 if ac_fn_c_try_compile "$LINENO"; then : 4364 ac_cv_prog_cc_c89=$ac_arg 4365fi 4366rm -f core conftest.err conftest.$ac_objext 4367 test "x$ac_cv_prog_cc_c89" != "xno" && break 4368done 4369rm -f conftest.$ac_ext 4370CC=$ac_save_CC 4371 4372fi 4373# AC_CACHE_VAL 4374case "x$ac_cv_prog_cc_c89" in 4375 x) 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4377$as_echo "none needed" >&6; } ;; 4378 xno) 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4380$as_echo "unsupported" >&6; } ;; 4381 *) 4382 CC="$CC $ac_cv_prog_cc_c89" 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4384$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4385esac 4386if test "x$ac_cv_prog_cc_c89" != xno; then : 4387 4388fi 4389 4390ac_ext=c 4391ac_cpp='$CPP $CPPFLAGS' 4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395 4396depcc="$CC" am_compiler_list= 4397 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4399$as_echo_n "checking dependency style of $depcc... " >&6; } 4400if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4404 # We make a subdir and do the tests there. Otherwise we can end up 4405 # making bogus files that we don't know about and never remove. For 4406 # instance it was reported that on HP-UX the gcc test will end up 4407 # making a dummy file named `D' -- because `-MD' means `put the output 4408 # in D'. 4409 mkdir conftest.dir 4410 # Copy depcomp to subdir because otherwise we won't find it if we're 4411 # using a relative directory. 4412 cp "$am_depcomp" conftest.dir 4413 cd conftest.dir 4414 # We will build objects and dependencies in a subdirectory because 4415 # it helps to detect inapplicable dependency modes. For instance 4416 # both Tru64's cc and ICC support -MD to output dependencies as a 4417 # side effect of compilation, but ICC will put the dependencies in 4418 # the current directory while Tru64 will put them in the object 4419 # directory. 4420 mkdir sub 4421 4422 am_cv_CC_dependencies_compiler_type=none 4423 if test "$am_compiler_list" = ""; then 4424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4425 fi 4426 am__universal=false 4427 case " $depcc " in #( 4428 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4429 esac 4430 4431 for depmode in $am_compiler_list; do 4432 # Setup a source with many dependencies, because some compilers 4433 # like to wrap large dependency lists on column 80 (with \), and 4434 # we should not choose a depcomp mode which is confused by this. 4435 # 4436 # We need to recreate these files for each test, as the compiler may 4437 # overwrite some of them when testing with obscure command lines. 4438 # This happens at least with the AIX C compiler. 4439 : > sub/conftest.c 4440 for i in 1 2 3 4 5 6; do 4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4443 # Solaris 8's {/usr,}/bin/sh. 4444 touch sub/conftst$i.h 4445 done 4446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4447 4448 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4449 # mode. It turns out that the SunPro C++ compiler does not properly 4450 # handle `-M -o', and we need to detect this. Also, some Intel 4451 # versions had trouble with output in subdirs 4452 am__obj=sub/conftest.${OBJEXT-o} 4453 am__minus_obj="-o $am__obj" 4454 case $depmode in 4455 gcc) 4456 # This depmode causes a compiler race in universal mode. 4457 test "$am__universal" = false || continue 4458 ;; 4459 nosideeffect) 4460 # after this tag, mechanisms are not by side-effect, so they'll 4461 # only be used when explicitly requested 4462 if test "x$enable_dependency_tracking" = xyes; then 4463 continue 4464 else 4465 break 4466 fi 4467 ;; 4468 msvisualcpp | msvcmsys) 4469 # This compiler won't grok `-c -o', but also, the minuso test has 4470 # not run yet. These depmodes are late enough in the game, and 4471 # so weak that their functioning should not be impacted. 4472 am__obj=conftest.${OBJEXT-o} 4473 am__minus_obj= 4474 ;; 4475 none) break ;; 4476 esac 4477 if depmode=$depmode \ 4478 source=sub/conftest.c object=$am__obj \ 4479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4481 >/dev/null 2>conftest.err && 4482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4486 # icc doesn't choke on unknown options, it will just issue warnings 4487 # or remarks (even with -Werror). So we grep stderr for any message 4488 # that says an option was ignored or not supported. 4489 # When given -MP, icc 7.0 and 7.1 complain thusly: 4490 # icc: Command line warning: ignoring option '-M'; no argument required 4491 # The diagnosis changed in icc 8.0: 4492 # icc: Command line remark: option '-MP' not supported 4493 if (grep 'ignoring option' conftest.err || 4494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4495 am_cv_CC_dependencies_compiler_type=$depmode 4496 break 4497 fi 4498 fi 4499 done 4500 4501 cd .. 4502 rm -rf conftest.dir 4503else 4504 am_cv_CC_dependencies_compiler_type=none 4505fi 4506 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4509$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4511 4512 if 4513 test "x$enable_dependency_tracking" != xno \ 4514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4515 am__fastdepCC_TRUE= 4516 am__fastdepCC_FALSE='#' 4517else 4518 am__fastdepCC_TRUE='#' 4519 am__fastdepCC_FALSE= 4520fi 4521 4522 4523 4524ac_ext=c 4525ac_cpp='$CPP $CPPFLAGS' 4526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4528ac_compiler_gnu=$ac_cv_c_compiler_gnu 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4530$as_echo_n "checking how to run the C preprocessor... " >&6; } 4531# On Suns, sometimes $CPP names a directory. 4532if test -n "$CPP" && test -d "$CPP"; then 4533 CPP= 4534fi 4535if test -z "$CPP"; then 4536 if test "${ac_cv_prog_CPP+set}" = set; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 # Double quotes because CPP needs to be expanded 4540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4541 do 4542 ac_preproc_ok=false 4543for ac_c_preproc_warn_flag in '' yes 4544do 4545 # Use a header file that comes with gcc, so configuring glibc 4546 # with a fresh cross-compiler works. 4547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4548 # <limits.h> exists even on freestanding compilers. 4549 # On the NeXT, cc -E runs the code through the compiler's parser, 4550 # not just through cpp. "Syntax error" is here to catch this case. 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552/* end confdefs.h. */ 4553#ifdef __STDC__ 4554# include <limits.h> 4555#else 4556# include <assert.h> 4557#endif 4558 Syntax error 4559_ACEOF 4560if ac_fn_c_try_cpp "$LINENO"; then : 4561 4562else 4563 # Broken: fails on valid input. 4564continue 4565fi 4566rm -f conftest.err conftest.$ac_ext 4567 4568 # OK, works on sane cases. Now check whether nonexistent headers 4569 # can be detected and how. 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572#include <ac_nonexistent.h> 4573_ACEOF 4574if ac_fn_c_try_cpp "$LINENO"; then : 4575 # Broken: success on invalid input. 4576continue 4577else 4578 # Passes both tests. 4579ac_preproc_ok=: 4580break 4581fi 4582rm -f conftest.err conftest.$ac_ext 4583 4584done 4585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4586rm -f conftest.err conftest.$ac_ext 4587if $ac_preproc_ok; then : 4588 break 4589fi 4590 4591 done 4592 ac_cv_prog_CPP=$CPP 4593 4594fi 4595 CPP=$ac_cv_prog_CPP 4596else 4597 ac_cv_prog_CPP=$CPP 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4600$as_echo "$CPP" >&6; } 4601ac_preproc_ok=false 4602for ac_c_preproc_warn_flag in '' yes 4603do 4604 # Use a header file that comes with gcc, so configuring glibc 4605 # with a fresh cross-compiler works. 4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4607 # <limits.h> exists even on freestanding compilers. 4608 # On the NeXT, cc -E runs the code through the compiler's parser, 4609 # not just through cpp. "Syntax error" is here to catch this case. 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612#ifdef __STDC__ 4613# include <limits.h> 4614#else 4615# include <assert.h> 4616#endif 4617 Syntax error 4618_ACEOF 4619if ac_fn_c_try_cpp "$LINENO"; then : 4620 4621else 4622 # Broken: fails on valid input. 4623continue 4624fi 4625rm -f conftest.err conftest.$ac_ext 4626 4627 # OK, works on sane cases. Now check whether nonexistent headers 4628 # can be detected and how. 4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4630/* end confdefs.h. */ 4631#include <ac_nonexistent.h> 4632_ACEOF 4633if ac_fn_c_try_cpp "$LINENO"; then : 4634 # Broken: success on invalid input. 4635continue 4636else 4637 # Passes both tests. 4638ac_preproc_ok=: 4639break 4640fi 4641rm -f conftest.err conftest.$ac_ext 4642 4643done 4644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4645rm -f conftest.err conftest.$ac_ext 4646if $ac_preproc_ok; then : 4647 4648else 4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4651as_fn_error "C preprocessor \"$CPP\" fails sanity check 4652See \`config.log' for more details." "$LINENO" 5; } 4653fi 4654 4655ac_ext=c 4656ac_cpp='$CPP $CPPFLAGS' 4657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4659ac_compiler_gnu=$ac_cv_c_compiler_gnu 4660 4661 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4663$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4664if test "${ac_cv_path_GREP+set}" = set; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 if test -z "$GREP"; then 4668 ac_path_GREP_found=false 4669 # Loop through the user's path and test for each of PROGNAME-LIST 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_prog in grep ggrep; do 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4679# Check for GNU ac_path_GREP and select it if it is found. 4680 # Check for GNU $ac_path_GREP 4681case `"$ac_path_GREP" --version 2>&1` in 4682*GNU*) 4683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4684*) 4685 ac_count=0 4686 $as_echo_n 0123456789 >"conftest.in" 4687 while : 4688 do 4689 cat "conftest.in" "conftest.in" >"conftest.tmp" 4690 mv "conftest.tmp" "conftest.in" 4691 cp "conftest.in" "conftest.nl" 4692 $as_echo 'GREP' >> "conftest.nl" 4693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4695 as_fn_arith $ac_count + 1 && ac_count=$as_val 4696 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4697 # Best one so far, save it but keep looking for a better one 4698 ac_cv_path_GREP="$ac_path_GREP" 4699 ac_path_GREP_max=$ac_count 4700 fi 4701 # 10*(2^10) chars as input seems more than enough 4702 test $ac_count -gt 10 && break 4703 done 4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4705esac 4706 4707 $ac_path_GREP_found && break 3 4708 done 4709 done 4710 done 4711IFS=$as_save_IFS 4712 if test -z "$ac_cv_path_GREP"; then 4713 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4714 fi 4715else 4716 ac_cv_path_GREP=$GREP 4717fi 4718 4719fi 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4721$as_echo "$ac_cv_path_GREP" >&6; } 4722 GREP="$ac_cv_path_GREP" 4723 4724 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4726$as_echo_n "checking for egrep... " >&6; } 4727if test "${ac_cv_path_EGREP+set}" = set; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4731 then ac_cv_path_EGREP="$GREP -E" 4732 else 4733 if test -z "$EGREP"; then 4734 ac_path_EGREP_found=false 4735 # Loop through the user's path and test for each of PROGNAME-LIST 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_prog in egrep; do 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4744 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4745# Check for GNU ac_path_EGREP and select it if it is found. 4746 # Check for GNU $ac_path_EGREP 4747case `"$ac_path_EGREP" --version 2>&1` in 4748*GNU*) 4749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4750*) 4751 ac_count=0 4752 $as_echo_n 0123456789 >"conftest.in" 4753 while : 4754 do 4755 cat "conftest.in" "conftest.in" >"conftest.tmp" 4756 mv "conftest.tmp" "conftest.in" 4757 cp "conftest.in" "conftest.nl" 4758 $as_echo 'EGREP' >> "conftest.nl" 4759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4761 as_fn_arith $ac_count + 1 && ac_count=$as_val 4762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4763 # Best one so far, save it but keep looking for a better one 4764 ac_cv_path_EGREP="$ac_path_EGREP" 4765 ac_path_EGREP_max=$ac_count 4766 fi 4767 # 10*(2^10) chars as input seems more than enough 4768 test $ac_count -gt 10 && break 4769 done 4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4771esac 4772 4773 $ac_path_EGREP_found && break 3 4774 done 4775 done 4776 done 4777IFS=$as_save_IFS 4778 if test -z "$ac_cv_path_EGREP"; then 4779 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4780 fi 4781else 4782 ac_cv_path_EGREP=$EGREP 4783fi 4784 4785 fi 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4788$as_echo "$ac_cv_path_EGREP" >&6; } 4789 EGREP="$ac_cv_path_EGREP" 4790 4791 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4793$as_echo_n "checking for ANSI C header files... " >&6; } 4794if test "${ac_cv_header_stdc+set}" = set; then : 4795 $as_echo_n "(cached) " >&6 4796else 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799#include <stdlib.h> 4800#include <stdarg.h> 4801#include <string.h> 4802#include <float.h> 4803 4804int 4805main () 4806{ 4807 4808 ; 4809 return 0; 4810} 4811_ACEOF 4812if ac_fn_c_try_compile "$LINENO"; then : 4813 ac_cv_header_stdc=yes 4814else 4815 ac_cv_header_stdc=no 4816fi 4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4818 4819if test $ac_cv_header_stdc = yes; then 4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4822/* end confdefs.h. */ 4823#include <string.h> 4824 4825_ACEOF 4826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4827 $EGREP "memchr" >/dev/null 2>&1; then : 4828 4829else 4830 ac_cv_header_stdc=no 4831fi 4832rm -f conftest* 4833 4834fi 4835 4836if test $ac_cv_header_stdc = yes; then 4837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840#include <stdlib.h> 4841 4842_ACEOF 4843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4844 $EGREP "free" >/dev/null 2>&1; then : 4845 4846else 4847 ac_cv_header_stdc=no 4848fi 4849rm -f conftest* 4850 4851fi 4852 4853if test $ac_cv_header_stdc = yes; then 4854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4855 if test "$cross_compiling" = yes; then : 4856 : 4857else 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860#include <ctype.h> 4861#include <stdlib.h> 4862#if ((' ' & 0x0FF) == 0x020) 4863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4865#else 4866# define ISLOWER(c) \ 4867 (('a' <= (c) && (c) <= 'i') \ 4868 || ('j' <= (c) && (c) <= 'r') \ 4869 || ('s' <= (c) && (c) <= 'z')) 4870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4871#endif 4872 4873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4874int 4875main () 4876{ 4877 int i; 4878 for (i = 0; i < 256; i++) 4879 if (XOR (islower (i), ISLOWER (i)) 4880 || toupper (i) != TOUPPER (i)) 4881 return 2; 4882 return 0; 4883} 4884_ACEOF 4885if ac_fn_c_try_run "$LINENO"; then : 4886 4887else 4888 ac_cv_header_stdc=no 4889fi 4890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4891 conftest.$ac_objext conftest.beam conftest.$ac_ext 4892fi 4893 4894fi 4895fi 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4897$as_echo "$ac_cv_header_stdc" >&6; } 4898if test $ac_cv_header_stdc = yes; then 4899 4900$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4901 4902fi 4903 4904# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4906 inttypes.h stdint.h unistd.h 4907do : 4908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4910" 4911eval as_val=\$$as_ac_Header 4912 if test "x$as_val" = x""yes; then : 4913 cat >>confdefs.h <<_ACEOF 4914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4915_ACEOF 4916 4917fi 4918 4919done 4920 4921 4922 4923 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4924if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4925 MINIX=yes 4926else 4927 MINIX= 4928fi 4929 4930 4931 if test "$MINIX" = yes; then 4932 4933$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4934 4935 4936$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4937 4938 4939$as_echo "#define _MINIX 1" >>confdefs.h 4940 4941 fi 4942 4943 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4945$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4946if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951 4952# define __EXTENSIONS__ 1 4953 $ac_includes_default 4954int 4955main () 4956{ 4957 4958 ; 4959 return 0; 4960} 4961_ACEOF 4962if ac_fn_c_try_compile "$LINENO"; then : 4963 ac_cv_safe_to_define___extensions__=yes 4964else 4965 ac_cv_safe_to_define___extensions__=no 4966fi 4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4970$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4971 test $ac_cv_safe_to_define___extensions__ = yes && 4972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4973 4974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4975 4976 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4977 4978 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4979 4980 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4981 4982 4983 4984 4985 4986# So far, the only shared library we might use is libopts. 4987# It's a small library - we might as well use a static version of it. 4988# Check whether --enable-shared was given. 4989if test "${enable_shared+set}" = set; then : 4990 enableval=$enable_shared; p=${PACKAGE-default} 4991 case $enableval in 4992 yes) enable_shared=yes ;; 4993 no) enable_shared=no ;; 4994 *) 4995 enable_shared=no 4996 # Look at the argument we got. We use all the common list separators. 4997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4998 for pkg in $enableval; do 4999 IFS="$lt_save_ifs" 5000 if test "X$pkg" = "X$p"; then 5001 enable_shared=yes 5002 fi 5003 done 5004 IFS="$lt_save_ifs" 5005 ;; 5006 esac 5007else 5008 enable_shared=no 5009fi 5010 5011 5012 5013 5014ac_ext=c 5015ac_cpp='$CPP $CPPFLAGS' 5016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5018ac_compiler_gnu=$ac_cv_c_compiler_gnu 5019if test -n "$ac_tool_prefix"; then 5020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5021set dummy ${ac_tool_prefix}gcc; ac_word=$2 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5023$as_echo_n "checking for $ac_word... " >&6; } 5024if test "${ac_cv_prog_CC+set}" = set; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 if test -n "$CC"; then 5028 ac_cv_prog_CC="$CC" # Let the user override the test. 5029else 5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH 5032do 5033 IFS=$as_save_IFS 5034 test -z "$as_dir" && as_dir=. 5035 for ac_exec_ext in '' $ac_executable_extensions; do 5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5037 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5039 break 2 5040 fi 5041done 5042 done 5043IFS=$as_save_IFS 5044 5045fi 5046fi 5047CC=$ac_cv_prog_CC 5048if test -n "$CC"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5050$as_echo "$CC" >&6; } 5051else 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5053$as_echo "no" >&6; } 5054fi 5055 5056 5057fi 5058if test -z "$ac_cv_prog_CC"; then 5059 ac_ct_CC=$CC 5060 # Extract the first word of "gcc", so it can be a program name with args. 5061set dummy gcc; ac_word=$2 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5063$as_echo_n "checking for $ac_word... " >&6; } 5064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 if test -n "$ac_ct_CC"; then 5068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5069else 5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5071for as_dir in $PATH 5072do 5073 IFS=$as_save_IFS 5074 test -z "$as_dir" && as_dir=. 5075 for ac_exec_ext in '' $ac_executable_extensions; do 5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5077 ac_cv_prog_ac_ct_CC="gcc" 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5079 break 2 5080 fi 5081done 5082 done 5083IFS=$as_save_IFS 5084 5085fi 5086fi 5087ac_ct_CC=$ac_cv_prog_ac_ct_CC 5088if test -n "$ac_ct_CC"; then 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5090$as_echo "$ac_ct_CC" >&6; } 5091else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5093$as_echo "no" >&6; } 5094fi 5095 5096 if test "x$ac_ct_CC" = x; then 5097 CC="" 5098 else 5099 case $cross_compiling:$ac_tool_warned in 5100yes:) 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5103ac_tool_warned=yes ;; 5104esac 5105 CC=$ac_ct_CC 5106 fi 5107else 5108 CC="$ac_cv_prog_CC" 5109fi 5110 5111if test -z "$CC"; then 5112 if test -n "$ac_tool_prefix"; then 5113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5114set dummy ${ac_tool_prefix}cc; ac_word=$2 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116$as_echo_n "checking for $ac_word... " >&6; } 5117if test "${ac_cv_prog_CC+set}" = set; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 if test -n "$CC"; then 5121 ac_cv_prog_CC="$CC" # Let the user override the test. 5122else 5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5124for as_dir in $PATH 5125do 5126 IFS=$as_save_IFS 5127 test -z "$as_dir" && as_dir=. 5128 for ac_exec_ext in '' $ac_executable_extensions; do 5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5130 ac_cv_prog_CC="${ac_tool_prefix}cc" 5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5132 break 2 5133 fi 5134done 5135 done 5136IFS=$as_save_IFS 5137 5138fi 5139fi 5140CC=$ac_cv_prog_CC 5141if test -n "$CC"; then 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5143$as_echo "$CC" >&6; } 5144else 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5146$as_echo "no" >&6; } 5147fi 5148 5149 5150 fi 5151fi 5152if test -z "$CC"; then 5153 # Extract the first word of "cc", so it can be a program name with args. 5154set dummy cc; ac_word=$2 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5156$as_echo_n "checking for $ac_word... " >&6; } 5157if test "${ac_cv_prog_CC+set}" = set; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 if test -n "$CC"; then 5161 ac_cv_prog_CC="$CC" # Let the user override the test. 5162else 5163 ac_prog_rejected=no 5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165for as_dir in $PATH 5166do 5167 IFS=$as_save_IFS 5168 test -z "$as_dir" && as_dir=. 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5172 ac_prog_rejected=yes 5173 continue 5174 fi 5175 ac_cv_prog_CC="cc" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180 done 5181IFS=$as_save_IFS 5182 5183if test $ac_prog_rejected = yes; then 5184 # We found a bogon in the path, so make sure we never use it. 5185 set dummy $ac_cv_prog_CC 5186 shift 5187 if test $# != 0; then 5188 # We chose a different compiler from the bogus one. 5189 # However, it has the same basename, so the bogon will be chosen 5190 # first if we set CC to just the basename; use the full file name. 5191 shift 5192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5193 fi 5194fi 5195fi 5196fi 5197CC=$ac_cv_prog_CC 5198if test -n "$CC"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5200$as_echo "$CC" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 5207fi 5208if test -z "$CC"; then 5209 if test -n "$ac_tool_prefix"; then 5210 for ac_prog in cl.exe 5211 do 5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5213set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5215$as_echo_n "checking for $ac_word... " >&6; } 5216if test "${ac_cv_prog_CC+set}" = set; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 if test -n "$CC"; then 5220 ac_cv_prog_CC="$CC" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234 done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239CC=$ac_cv_prog_CC 5240if test -n "$CC"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5242$as_echo "$CC" >&6; } 5243else 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5245$as_echo "no" >&6; } 5246fi 5247 5248 5249 test -n "$CC" && break 5250 done 5251fi 5252if test -z "$CC"; then 5253 ac_ct_CC=$CC 5254 for ac_prog in cl.exe 5255do 5256 # Extract the first word of "$ac_prog", so it can be a program name with args. 5257set dummy $ac_prog; ac_word=$2 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5259$as_echo_n "checking for $ac_word... " >&6; } 5260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 if test -n "$ac_ct_CC"; then 5264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5265else 5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH 5268do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5273 ac_cv_prog_ac_ct_CC="$ac_prog" 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277done 5278 done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283ac_ct_CC=$ac_cv_prog_ac_ct_CC 5284if test -n "$ac_ct_CC"; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5286$as_echo "$ac_ct_CC" >&6; } 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289$as_echo "no" >&6; } 5290fi 5291 5292 5293 test -n "$ac_ct_CC" && break 5294done 5295 5296 if test "x$ac_ct_CC" = x; then 5297 CC="" 5298 else 5299 case $cross_compiling:$ac_tool_warned in 5300yes:) 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5303ac_tool_warned=yes ;; 5304esac 5305 CC=$ac_ct_CC 5306 fi 5307fi 5308 5309fi 5310 5311 5312test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5314as_fn_error "no acceptable C compiler found in \$PATH 5315See \`config.log' for more details." "$LINENO" 5; } 5316 5317# Provide some information about the compiler. 5318$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5319set X $ac_compile 5320ac_compiler=$2 5321for ac_option in --version -v -V -qversion; do 5322 { { ac_try="$ac_compiler $ac_option >&5" 5323case "(($ac_try" in 5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5325 *) ac_try_echo=$ac_try;; 5326esac 5327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5328$as_echo "$ac_try_echo"; } >&5 5329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5330 ac_status=$? 5331 if test -s conftest.err; then 5332 sed '10a\ 5333... rest of stderr output deleted ... 5334 10q' conftest.err >conftest.er1 5335 cat conftest.er1 >&5 5336 fi 5337 rm -f conftest.er1 conftest.err 5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5339 test $ac_status = 0; } 5340done 5341 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5343$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5344if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349 5350int 5351main () 5352{ 5353#ifndef __GNUC__ 5354 choke me 5355#endif 5356 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361if ac_fn_c_try_compile "$LINENO"; then : 5362 ac_compiler_gnu=yes 5363else 5364 ac_compiler_gnu=no 5365fi 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367ac_cv_c_compiler_gnu=$ac_compiler_gnu 5368 5369fi 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5371$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5372if test $ac_compiler_gnu = yes; then 5373 GCC=yes 5374else 5375 GCC= 5376fi 5377ac_test_CFLAGS=${CFLAGS+set} 5378ac_save_CFLAGS=$CFLAGS 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5380$as_echo_n "checking whether $CC accepts -g... " >&6; } 5381if test "${ac_cv_prog_cc_g+set}" = set; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 ac_save_c_werror_flag=$ac_c_werror_flag 5385 ac_c_werror_flag=yes 5386 ac_cv_prog_cc_g=no 5387 CFLAGS="-g" 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390 5391int 5392main () 5393{ 5394 5395 ; 5396 return 0; 5397} 5398_ACEOF 5399if ac_fn_c_try_compile "$LINENO"; then : 5400 ac_cv_prog_cc_g=yes 5401else 5402 CFLAGS="" 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405 5406int 5407main () 5408{ 5409 5410 ; 5411 return 0; 5412} 5413_ACEOF 5414if ac_fn_c_try_compile "$LINENO"; then : 5415 5416else 5417 ac_c_werror_flag=$ac_save_c_werror_flag 5418 CFLAGS="-g" 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420/* end confdefs.h. */ 5421 5422int 5423main () 5424{ 5425 5426 ; 5427 return 0; 5428} 5429_ACEOF 5430if ac_fn_c_try_compile "$LINENO"; then : 5431 ac_cv_prog_cc_g=yes 5432fi 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434fi 5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438 ac_c_werror_flag=$ac_save_c_werror_flag 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5441$as_echo "$ac_cv_prog_cc_g" >&6; } 5442if test "$ac_test_CFLAGS" = set; then 5443 CFLAGS=$ac_save_CFLAGS 5444elif test $ac_cv_prog_cc_g = yes; then 5445 if test "$GCC" = yes; then 5446 CFLAGS="-g -O2" 5447 else 5448 CFLAGS="-g" 5449 fi 5450else 5451 if test "$GCC" = yes; then 5452 CFLAGS="-O2" 5453 else 5454 CFLAGS= 5455 fi 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5458$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5459if test "${ac_cv_prog_cc_c89+set}" = set; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 ac_cv_prog_cc_c89=no 5463ac_save_CC=$CC 5464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466#include <stdarg.h> 5467#include <stdio.h> 5468#include <sys/types.h> 5469#include <sys/stat.h> 5470/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5471struct buf { int x; }; 5472FILE * (*rcsopen) (struct buf *, struct stat *, int); 5473static char *e (p, i) 5474 char **p; 5475 int i; 5476{ 5477 return p[i]; 5478} 5479static char *f (char * (*g) (char **, int), char **p, ...) 5480{ 5481 char *s; 5482 va_list v; 5483 va_start (v,p); 5484 s = g (p, va_arg (v,int)); 5485 va_end (v); 5486 return s; 5487} 5488 5489/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5490 function prototypes and stuff, but not '\xHH' hex character constants. 5491 These don't provoke an error unfortunately, instead are silently treated 5492 as 'x'. The following induces an error, until -std is added to get 5493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5494 array size at least. It's necessary to write '\x00'==0 to get something 5495 that's true only with -std. */ 5496int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5497 5498/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5499 inside strings and character constants. */ 5500#define FOO(x) 'x' 5501int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5502 5503int test (int i, double x); 5504struct s1 {int (*f) (int a);}; 5505struct s2 {int (*f) (double a);}; 5506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5507int argc; 5508char **argv; 5509int 5510main () 5511{ 5512return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5519do 5520 CC="$ac_save_CC $ac_arg" 5521 if ac_fn_c_try_compile "$LINENO"; then : 5522 ac_cv_prog_cc_c89=$ac_arg 5523fi 5524rm -f core conftest.err conftest.$ac_objext 5525 test "x$ac_cv_prog_cc_c89" != "xno" && break 5526done 5527rm -f conftest.$ac_ext 5528CC=$ac_save_CC 5529 5530fi 5531# AC_CACHE_VAL 5532case "x$ac_cv_prog_cc_c89" in 5533 x) 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5535$as_echo "none needed" >&6; } ;; 5536 xno) 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5538$as_echo "unsupported" >&6; } ;; 5539 *) 5540 CC="$CC $ac_cv_prog_cc_c89" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5542$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5543esac 5544if test "x$ac_cv_prog_cc_c89" != xno; then : 5545 5546fi 5547 5548ac_ext=c 5549ac_cpp='$CPP $CPPFLAGS' 5550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5552ac_compiler_gnu=$ac_cv_c_compiler_gnu 5553 5554depcc="$CC" am_compiler_list= 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5557$as_echo_n "checking dependency style of $depcc... " >&6; } 5558if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5562 # We make a subdir and do the tests there. Otherwise we can end up 5563 # making bogus files that we don't know about and never remove. For 5564 # instance it was reported that on HP-UX the gcc test will end up 5565 # making a dummy file named `D' -- because `-MD' means `put the output 5566 # in D'. 5567 mkdir conftest.dir 5568 # Copy depcomp to subdir because otherwise we won't find it if we're 5569 # using a relative directory. 5570 cp "$am_depcomp" conftest.dir 5571 cd conftest.dir 5572 # We will build objects and dependencies in a subdirectory because 5573 # it helps to detect inapplicable dependency modes. For instance 5574 # both Tru64's cc and ICC support -MD to output dependencies as a 5575 # side effect of compilation, but ICC will put the dependencies in 5576 # the current directory while Tru64 will put them in the object 5577 # directory. 5578 mkdir sub 5579 5580 am_cv_CC_dependencies_compiler_type=none 5581 if test "$am_compiler_list" = ""; then 5582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5583 fi 5584 am__universal=false 5585 case " $depcc " in #( 5586 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5587 esac 5588 5589 for depmode in $am_compiler_list; do 5590 # Setup a source with many dependencies, because some compilers 5591 # like to wrap large dependency lists on column 80 (with \), and 5592 # we should not choose a depcomp mode which is confused by this. 5593 # 5594 # We need to recreate these files for each test, as the compiler may 5595 # overwrite some of them when testing with obscure command lines. 5596 # This happens at least with the AIX C compiler. 5597 : > sub/conftest.c 5598 for i in 1 2 3 4 5 6; do 5599 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5601 # Solaris 8's {/usr,}/bin/sh. 5602 touch sub/conftst$i.h 5603 done 5604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5605 5606 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5607 # mode. It turns out that the SunPro C++ compiler does not properly 5608 # handle `-M -o', and we need to detect this. Also, some Intel 5609 # versions had trouble with output in subdirs 5610 am__obj=sub/conftest.${OBJEXT-o} 5611 am__minus_obj="-o $am__obj" 5612 case $depmode in 5613 gcc) 5614 # This depmode causes a compiler race in universal mode. 5615 test "$am__universal" = false || continue 5616 ;; 5617 nosideeffect) 5618 # after this tag, mechanisms are not by side-effect, so they'll 5619 # only be used when explicitly requested 5620 if test "x$enable_dependency_tracking" = xyes; then 5621 continue 5622 else 5623 break 5624 fi 5625 ;; 5626 msvisualcpp | msvcmsys) 5627 # This compiler won't grok `-c -o', but also, the minuso test has 5628 # not run yet. These depmodes are late enough in the game, and 5629 # so weak that their functioning should not be impacted. 5630 am__obj=conftest.${OBJEXT-o} 5631 am__minus_obj= 5632 ;; 5633 none) break ;; 5634 esac 5635 if depmode=$depmode \ 5636 source=sub/conftest.c object=$am__obj \ 5637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5639 >/dev/null 2>conftest.err && 5640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5644 # icc doesn't choke on unknown options, it will just issue warnings 5645 # or remarks (even with -Werror). So we grep stderr for any message 5646 # that says an option was ignored or not supported. 5647 # When given -MP, icc 7.0 and 7.1 complain thusly: 5648 # icc: Command line warning: ignoring option '-M'; no argument required 5649 # The diagnosis changed in icc 8.0: 5650 # icc: Command line remark: option '-MP' not supported 5651 if (grep 'ignoring option' conftest.err || 5652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5653 am_cv_CC_dependencies_compiler_type=$depmode 5654 break 5655 fi 5656 fi 5657 done 5658 5659 cd .. 5660 rm -rf conftest.dir 5661else 5662 am_cv_CC_dependencies_compiler_type=none 5663fi 5664 5665fi 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5667$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5668CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5669 5670 if 5671 test "x$enable_dependency_tracking" != xno \ 5672 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5673 am__fastdepCC_TRUE= 5674 am__fastdepCC_FALSE='#' 5675else 5676 am__fastdepCC_TRUE='#' 5677 am__fastdepCC_FALSE= 5678fi 5679 5680 5681# Ralf Wildenhues: With per-target flags we need CC_C_O 5682# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5683if test "x$CC" != xcc; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5685$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5688$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5689fi 5690set dummy $CC; ac_cc=`$as_echo "$2" | 5691 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5692if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701 5702 ; 5703 return 0; 5704} 5705_ACEOF 5706# Make sure it works both with $CC and with simple cc. 5707# We do the test twice because some compilers refuse to overwrite an 5708# existing .o file with -o, though they will create one. 5709ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5710rm -f conftest2.* 5711if { { case "(($ac_try" in 5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 *) ac_try_echo=$ac_try;; 5714esac 5715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5716$as_echo "$ac_try_echo"; } >&5 5717 (eval "$ac_try") 2>&5 5718 ac_status=$? 5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5720 test $ac_status = 0; } && 5721 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5723 *) ac_try_echo=$ac_try;; 5724esac 5725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5726$as_echo "$ac_try_echo"; } >&5 5727 (eval "$ac_try") 2>&5 5728 ac_status=$? 5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5730 test $ac_status = 0; }; 5731then 5732 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5733 if test "x$CC" != xcc; then 5734 # Test first that cc exists at all. 5735 if { ac_try='cc -c conftest.$ac_ext >&5' 5736 { { case "(($ac_try" in 5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5738 *) ac_try_echo=$ac_try;; 5739esac 5740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5741$as_echo "$ac_try_echo"; } >&5 5742 (eval "$ac_try") 2>&5 5743 ac_status=$? 5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5745 test $ac_status = 0; }; }; then 5746 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5747 rm -f conftest2.* 5748 if { { case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751esac 5752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5753$as_echo "$ac_try_echo"; } >&5 5754 (eval "$ac_try") 2>&5 5755 ac_status=$? 5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5757 test $ac_status = 0; } && 5758 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5760 *) ac_try_echo=$ac_try;; 5761esac 5762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5763$as_echo "$ac_try_echo"; } >&5 5764 (eval "$ac_try") 2>&5 5765 ac_status=$? 5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5767 test $ac_status = 0; }; 5768 then 5769 # cc works too. 5770 : 5771 else 5772 # cc exists but doesn't like -o. 5773 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5774 fi 5775 fi 5776 fi 5777else 5778 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5779fi 5780rm -f core conftest* 5781 5782fi 5783if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5785$as_echo "yes" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789 5790$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5791 5792fi 5793 5794# FIXME: we rely on the cache variable name because 5795# there is no other way. 5796set dummy $CC 5797am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5798eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5799if test "$am_t" != yes; then 5800 # Losing compiler, so override with the script. 5801 # FIXME: It is wrong to rewrite CC. 5802 # But if we don't then we get into trouble of one sort or another. 5803 # A longer-term fix would be to have automake use am__CC in this case, 5804 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5805 CC="$am_aux_dir/compile $CC" 5806fi 5807 5808 5809ac_ext=c 5810ac_cpp='$CPP $CPPFLAGS' 5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5813ac_compiler_gnu=$ac_cv_c_compiler_gnu 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5815$as_echo_n "checking how to run the C preprocessor... " >&6; } 5816# On Suns, sometimes $CPP names a directory. 5817if test -n "$CPP" && test -d "$CPP"; then 5818 CPP= 5819fi 5820if test -z "$CPP"; then 5821 if test "${ac_cv_prog_CPP+set}" = set; then : 5822 $as_echo_n "(cached) " >&6 5823else 5824 # Double quotes because CPP needs to be expanded 5825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5826 do 5827 ac_preproc_ok=false 5828for ac_c_preproc_warn_flag in '' yes 5829do 5830 # Use a header file that comes with gcc, so configuring glibc 5831 # with a fresh cross-compiler works. 5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5833 # <limits.h> exists even on freestanding compilers. 5834 # On the NeXT, cc -E runs the code through the compiler's parser, 5835 # not just through cpp. "Syntax error" is here to catch this case. 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838#ifdef __STDC__ 5839# include <limits.h> 5840#else 5841# include <assert.h> 5842#endif 5843 Syntax error 5844_ACEOF 5845if ac_fn_c_try_cpp "$LINENO"; then : 5846 5847else 5848 # Broken: fails on valid input. 5849continue 5850fi 5851rm -f conftest.err conftest.$ac_ext 5852 5853 # OK, works on sane cases. Now check whether nonexistent headers 5854 # can be detected and how. 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857#include <ac_nonexistent.h> 5858_ACEOF 5859if ac_fn_c_try_cpp "$LINENO"; then : 5860 # Broken: success on invalid input. 5861continue 5862else 5863 # Passes both tests. 5864ac_preproc_ok=: 5865break 5866fi 5867rm -f conftest.err conftest.$ac_ext 5868 5869done 5870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5871rm -f conftest.err conftest.$ac_ext 5872if $ac_preproc_ok; then : 5873 break 5874fi 5875 5876 done 5877 ac_cv_prog_CPP=$CPP 5878 5879fi 5880 CPP=$ac_cv_prog_CPP 5881else 5882 ac_cv_prog_CPP=$CPP 5883fi 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5885$as_echo "$CPP" >&6; } 5886ac_preproc_ok=false 5887for ac_c_preproc_warn_flag in '' yes 5888do 5889 # Use a header file that comes with gcc, so configuring glibc 5890 # with a fresh cross-compiler works. 5891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5892 # <limits.h> exists even on freestanding compilers. 5893 # On the NeXT, cc -E runs the code through the compiler's parser, 5894 # not just through cpp. "Syntax error" is here to catch this case. 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897#ifdef __STDC__ 5898# include <limits.h> 5899#else 5900# include <assert.h> 5901#endif 5902 Syntax error 5903_ACEOF 5904if ac_fn_c_try_cpp "$LINENO"; then : 5905 5906else 5907 # Broken: fails on valid input. 5908continue 5909fi 5910rm -f conftest.err conftest.$ac_ext 5911 5912 # OK, works on sane cases. Now check whether nonexistent headers 5913 # can be detected and how. 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916#include <ac_nonexistent.h> 5917_ACEOF 5918if ac_fn_c_try_cpp "$LINENO"; then : 5919 # Broken: success on invalid input. 5920continue 5921else 5922 # Passes both tests. 5923ac_preproc_ok=: 5924break 5925fi 5926rm -f conftest.err conftest.$ac_ext 5927 5928done 5929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5930rm -f conftest.err conftest.$ac_ext 5931if $ac_preproc_ok; then : 5932 5933else 5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5936as_fn_error "C preprocessor \"$CPP\" fails sanity check 5937See \`config.log' for more details." "$LINENO" 5; } 5938fi 5939 5940ac_ext=c 5941ac_cpp='$CPP $CPPFLAGS' 5942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5944ac_compiler_gnu=$ac_cv_c_compiler_gnu 5945 5946for ac_prog in 'bison -y' byacc 5947do 5948 # Extract the first word of "$ac_prog", so it can be a program name with args. 5949set dummy $ac_prog; ac_word=$2 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951$as_echo_n "checking for $ac_word... " >&6; } 5952if test "${ac_cv_prog_YACC+set}" = set; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 if test -n "$YACC"; then 5956 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5957else 5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959for as_dir in $PATH 5960do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5965 ac_cv_prog_YACC="$ac_prog" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969done 5970 done 5971IFS=$as_save_IFS 5972 5973fi 5974fi 5975YACC=$ac_cv_prog_YACC 5976if test -n "$YACC"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5978$as_echo "$YACC" >&6; } 5979else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5981$as_echo "no" >&6; } 5982fi 5983 5984 5985 test -n "$YACC" && break 5986done 5987test -n "$YACC" || YACC="yacc" 5988 5989 5990# AC_PROG_CC_STDC has two functions. It attempts to find a compiler 5991# capable of C99, or failing that, for C89. CC is set afterward with 5992# the selected invocation, such as "gcc --std=gnu99". Also, the 5993# ac_cv_prog_cc_stdc variable is no if the compiler selected for CC 5994# does not accept C89. 5995 5996 case $ac_cv_prog_cc_stdc in #( 5997 no) : 5998 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5999 *) : 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6001$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6002if test "${ac_cv_prog_cc_c99+set}" = set; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 ac_cv_prog_cc_c99=no 6006ac_save_CC=$CC 6007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6008/* end confdefs.h. */ 6009#include <stdarg.h> 6010#include <stdbool.h> 6011#include <stdlib.h> 6012#include <wchar.h> 6013#include <stdio.h> 6014 6015// Check varargs macros. These examples are taken from C99 6.10.3.5. 6016#define debug(...) fprintf (stderr, __VA_ARGS__) 6017#define showlist(...) puts (#__VA_ARGS__) 6018#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6019static void 6020test_varargs_macros (void) 6021{ 6022 int x = 1234; 6023 int y = 5678; 6024 debug ("Flag"); 6025 debug ("X = %d\n", x); 6026 showlist (The first, second, and third items.); 6027 report (x>y, "x is %d but y is %d", x, y); 6028} 6029 6030// Check long long types. 6031#define BIG64 18446744073709551615ull 6032#define BIG32 4294967295ul 6033#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6034#if !BIG_OK 6035 your preprocessor is broken; 6036#endif 6037#if BIG_OK 6038#else 6039 your preprocessor is broken; 6040#endif 6041static long long int bignum = -9223372036854775807LL; 6042static unsigned long long int ubignum = BIG64; 6043 6044struct incomplete_array 6045{ 6046 int datasize; 6047 double data[]; 6048}; 6049 6050struct named_init { 6051 int number; 6052 const wchar_t *name; 6053 double average; 6054}; 6055 6056typedef const char *ccp; 6057 6058static inline int 6059test_restrict (ccp restrict text) 6060{ 6061 // See if C++-style comments work. 6062 // Iterate through items via the restricted pointer. 6063 // Also check for declarations in for loops. 6064 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6065 continue; 6066 return 0; 6067} 6068 6069// Check varargs and va_copy. 6070static void 6071test_varargs (const char *format, ...) 6072{ 6073 va_list args; 6074 va_start (args, format); 6075 va_list args_copy; 6076 va_copy (args_copy, args); 6077 6078 const char *str; 6079 int number; 6080 float fnumber; 6081 6082 while (*format) 6083 { 6084 switch (*format++) 6085 { 6086 case 's': // string 6087 str = va_arg (args_copy, const char *); 6088 break; 6089 case 'd': // int 6090 number = va_arg (args_copy, int); 6091 break; 6092 case 'f': // float 6093 fnumber = va_arg (args_copy, double); 6094 break; 6095 default: 6096 break; 6097 } 6098 } 6099 va_end (args_copy); 6100 va_end (args); 6101} 6102 6103int 6104main () 6105{ 6106 6107 // Check bool. 6108 _Bool success = false; 6109 6110 // Check restrict. 6111 if (test_restrict ("String literal") == 0) 6112 success = true; 6113 char *restrict newvar = "Another string"; 6114 6115 // Check varargs. 6116 test_varargs ("s, d' f .", "string", 65, 34.234); 6117 test_varargs_macros (); 6118 6119 // Check flexible array members. 6120 struct incomplete_array *ia = 6121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6122 ia->datasize = 10; 6123 for (int i = 0; i < ia->datasize; ++i) 6124 ia->data[i] = i * 1.234; 6125 6126 // Check named initializers. 6127 struct named_init ni = { 6128 .number = 34, 6129 .name = L"Test wide string", 6130 .average = 543.34343, 6131 }; 6132 6133 ni.number = 58; 6134 6135 int dynamic_array[ni.number]; 6136 dynamic_array[ni.number - 1] = 543; 6137 6138 // work around unused variable warnings 6139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 6140 || dynamic_array[ni.number - 1] != 543); 6141 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 6147do 6148 CC="$ac_save_CC $ac_arg" 6149 if ac_fn_c_try_compile "$LINENO"; then : 6150 ac_cv_prog_cc_c99=$ac_arg 6151fi 6152rm -f core conftest.err conftest.$ac_objext 6153 test "x$ac_cv_prog_cc_c99" != "xno" && break 6154done 6155rm -f conftest.$ac_ext 6156CC=$ac_save_CC 6157 6158fi 6159# AC_CACHE_VAL 6160case "x$ac_cv_prog_cc_c99" in 6161 x) 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6163$as_echo "none needed" >&6; } ;; 6164 xno) 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6166$as_echo "unsupported" >&6; } ;; 6167 *) 6168 CC="$CC $ac_cv_prog_cc_c99" 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6170$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 6171esac 6172if test "x$ac_cv_prog_cc_c99" != xno; then : 6173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6174else 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6176$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6177if test "${ac_cv_prog_cc_c89+set}" = set; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 ac_cv_prog_cc_c89=no 6181ac_save_CC=$CC 6182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184#include <stdarg.h> 6185#include <stdio.h> 6186#include <sys/types.h> 6187#include <sys/stat.h> 6188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6189struct buf { int x; }; 6190FILE * (*rcsopen) (struct buf *, struct stat *, int); 6191static char *e (p, i) 6192 char **p; 6193 int i; 6194{ 6195 return p[i]; 6196} 6197static char *f (char * (*g) (char **, int), char **p, ...) 6198{ 6199 char *s; 6200 va_list v; 6201 va_start (v,p); 6202 s = g (p, va_arg (v,int)); 6203 va_end (v); 6204 return s; 6205} 6206 6207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6208 function prototypes and stuff, but not '\xHH' hex character constants. 6209 These don't provoke an error unfortunately, instead are silently treated 6210 as 'x'. The following induces an error, until -std is added to get 6211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6212 array size at least. It's necessary to write '\x00'==0 to get something 6213 that's true only with -std. */ 6214int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6215 6216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6217 inside strings and character constants. */ 6218#define FOO(x) 'x' 6219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6220 6221int test (int i, double x); 6222struct s1 {int (*f) (int a);}; 6223struct s2 {int (*f) (double a);}; 6224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6225int argc; 6226char **argv; 6227int 6228main () 6229{ 6230return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6231 ; 6232 return 0; 6233} 6234_ACEOF 6235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6237do 6238 CC="$ac_save_CC $ac_arg" 6239 if ac_fn_c_try_compile "$LINENO"; then : 6240 ac_cv_prog_cc_c89=$ac_arg 6241fi 6242rm -f core conftest.err conftest.$ac_objext 6243 test "x$ac_cv_prog_cc_c89" != "xno" && break 6244done 6245rm -f conftest.$ac_ext 6246CC=$ac_save_CC 6247 6248fi 6249# AC_CACHE_VAL 6250case "x$ac_cv_prog_cc_c89" in 6251 x) 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6253$as_echo "none needed" >&6; } ;; 6254 xno) 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6256$as_echo "unsupported" >&6; } ;; 6257 *) 6258 CC="$CC $ac_cv_prog_cc_c89" 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6260$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6261esac 6262if test "x$ac_cv_prog_cc_c89" != xno; then : 6263 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6264else 6265 ac_cv_prog_cc_stdc=no 6266fi 6267 6268fi 6269 ;; 6270esac 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 6272$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 6273 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 6274 $as_echo_n "(cached) " >&6 6275fi 6276 6277 case $ac_cv_prog_cc_stdc in #( 6278 no) : 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6280$as_echo "unsupported" >&6; } ;; #( 6281 '') : 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6283$as_echo "none needed" >&6; } ;; #( 6284 *) : 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 6286$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 6287esac 6288 6289 6290case "$ac_cv_prog_cc_stdc" in 6291 no) 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6293 version 4.2.5 and higher." >&5 6294$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6295 version 4.2.5 and higher." >&2;} 6296esac 6297 6298# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS 6299case "$host" in 6300 *-*-amigaos) 6301 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA" 6302 ;; 6303 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20 6304 case "$GCC" in 6305 yes) 6306 ;; 6307 *) CFLAGS="$CFLAGS -Wp,-H18816" 6308 ;; 6309 esac 6310 ;; 6311 *-pc-cygwin*) 6312 CFLAGS="$CFLAGS -DSYS_CYGWIN32" 6313 ;; 6314 i386-sequent-sysv4) 6315 case "$CC" in 6316 cc) 6317 CFLAGS="$CFLAGS -Wc,+abi-socket" 6318 ;; 6319 esac 6320 ;; 6321 *-*-mpeix*) 6322 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB" 6323 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB" 6324 LIBS="$LIBS -lcurses" 6325 ;; 6326 *-*-solaris*) 6327 # see "man standards". 6328 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before 6329 # -D_XOPEN_SOURCE=600 seems OK for c99 6330 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__" 6331 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" 6332 libxnet=-lxnet 6333 ;; 6334esac 6335 6336 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6338$as_echo_n "checking additional compiler flags... " >&6; } 6339if test "${ac_cv_os_cflags+set}" = set; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 6343case "${host_os}" in 6344 irix6* ) 6345 case "${CC}" in 6346 cc ) 6347 # do not use 64-bit compiler 6348 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84" 6349 ;; 6350 esac 6351 ;; 6352# HMS: am-utils needed this but we don't (apparently) 6353# osf[[1-3]]* ) 6354# # get the right version of struct sockaddr 6355# case "${CC}" in 6356# cc ) 6357# ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO" 6358# ;; 6359# * ) 6360# ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO" 6361# ;; 6362# esac 6363# ;; 6364# osf* ) 6365# # get the right version of struct sockaddr 6366# case "${CC}" in 6367# cc ) 6368# ac_cv_os_cflags="-std -D_SOCKADDR_LEN" 6369# ;; 6370# * ) 6371# ac_cv_os_cflags="-D_SOCKADDR_LEN" 6372# ;; 6373# esac 6374# ;; 6375 aix[1-3]* ) 6376 ac_cv_os_cflags="" ;; 6377 aix4.[0-2]* ) 6378 # turn on additional headers 6379 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6380 ;; 6381 aix5.3* ) 6382 # avoid circular dependencies in yp headers, and more 6383 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT" 6384 ;; 6385 aix* ) 6386 # avoid circular dependencies in yp headers 6387 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS" 6388 ;; 6389 OFF-sunos4* ) 6390 # make sure passing whole structures is handled in gcc 6391 case "${CC}" in 6392 gcc ) 6393 ac_cv_os_cflags="-fpcc-struct-return" 6394 ;; 6395 esac 6396 ;; 6397 sunos[34]* | solaris1* | solaris2.[0-5] | sunos5.[0-5] | solaris2.5.* | sunos5.5.* ) 6398 ac_cv_os_cflags="" ;; 6399 solaris2* | sunos5* ) 6400 # turn on 64-bit file offset interface 6401 case "${CC}" in 6402 * ) 6403 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE" 6404 ;; 6405 esac 6406 ;; 6407 hpux* ) 6408 # use Ansi compiler on HPUX 6409 case "${CC}" in 6410 cc ) 6411 ac_cv_os_cflags="-Ae" 6412 ;; 6413 esac 6414 ;; 6415 darwin* | macosx* | rhapsody* ) 6416 ac_cv_os_cflags="-D_P1003_1B_VISIBLE" 6417 ;; 6418 * ) 6419 ac_cv_os_cflags="" 6420 ;; 6421esac 6422 6423fi 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5 6425$as_echo "$ac_cv_os_cflags" >&6; } 6426CFLAGS="$CFLAGS $ac_cv_os_cflags" 6427 6428 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 6430$as_echo_n "checking for directory path separator... " >&6; } 6431if test "${ac_cv_dir_sep+set}" = set; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 6435 case "$ac_cv_dir_sep" in 6436 '') 6437 case "$target_os" in 6438 *djgpp | *mingw32* | *emx*) ac_cv_dir_sep="'\\'" ;; 6439 *) ac_cv_dir_sep="'/'" ;; 6440 esac 6441 ;; 6442 esac 6443 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5 6446$as_echo "$ac_cv_dir_sep" >&6; } 6447 6448cat >>confdefs.h <<_ACEOF 6449#define DIR_SEP $ac_cv_dir_sep 6450_ACEOF 6451 6452 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need a VPATH hack" >&5 6454$as_echo_n "checking to see if we need a VPATH hack... " >&6; } 6455ntp_vpath_hack="no" 6456case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in 6457 .::*::*) 6458 ;; 6459 *::*::set) 6460 ntp_vpath_hack="yes" 6461 ;; 6462 *::freebsd*::) 6463 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 6464 '') 6465 ntp_vpath_hack="yes" 6466 esac 6467esac 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5 6469$as_echo "$ntp_vpath_hack" >&6; } 6470 if test x$ntp_vpath_hack = xyes; then 6471 VPATH_HACK_TRUE= 6472 VPATH_HACK_FALSE='#' 6473else 6474 VPATH_HACK_TRUE='#' 6475 VPATH_HACK_FALSE= 6476fi 6477 6478 6479 6480# NTP has (so far) been relying on leading-edge autogen. 6481# Therefore, by default: 6482# - use the version we ship with 6483# - do not install it 6484# - build a static copy (AC_DISABLE_SHARED - done earlier) 6485case "${enable_local_libopts+set}" in 6486 set) ;; 6487 *) enable_local_libopts=yes ;; 6488esac 6489case "${enable_libopts_install+set}" in 6490 set) ;; 6491 *) enable_libopts_install=no ;; 6492esac 6493ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6494if test "x$ac_cv_type_pid_t" = x""yes; then : 6495 6496else 6497 6498cat >>confdefs.h <<_ACEOF 6499#define pid_t int 6500_ACEOF 6501 6502fi 6503 6504 6505 NEED_LIBOPTS_DIR='' 6506 6507 LIBOPTS_DIR=libopts 6508 6509 # Check whether --enable-local-libopts was given. 6510if test "${enable_local_libopts+set}" = set; then : 6511 enableval=$enable_local_libopts; 6512 if test x$enableval = xyes ; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 6514$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 6515 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 6516 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 6517 NEED_LIBOPTS_DIR=true 6518 fi 6519fi 6520 6521 6522 # Check whether --enable-libopts-install was given. 6523if test "${enable_libopts_install+set}" = set; then : 6524 enableval=$enable_libopts_install; 6525fi 6526 6527 if test "X${enable_libopts_install}" != Xno; then 6528 INSTALL_LIBOPTS_TRUE= 6529 INSTALL_LIBOPTS_FALSE='#' 6530else 6531 INSTALL_LIBOPTS_TRUE='#' 6532 INSTALL_LIBOPTS_FALSE= 6533fi 6534 6535 6536 if test -z "${NEED_LIBOPTS_DIR}" ; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 6538$as_echo_n "checking whether autoopts-config can be found... " >&6; } 6539 6540# Check whether --with-autoopts-config was given. 6541if test "${with_autoopts_config+set}" = set; then : 6542 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 6545$as_echo_n "checking whether autoopts-config is specified... " >&6; } 6546if test "${lo_cv_with_autoopts_config+set}" = set; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 if autoopts-config --help 2>/dev/null 1>&2 6550 then lo_cv_with_autoopts_config=autoopts-config 6551 elif libopts-config --help 2>/dev/null 1>&2 6552 then lo_cv_with_autoopts_config=libopts-config 6553 else lo_cv_with_autoopts_config=no ; fi 6554fi 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 6556$as_echo "$lo_cv_with_autoopts_config" >&6; } 6557 6558fi 6559 # end of AC_ARG_WITH 6560 6561 if test "${lo_cv_test_autoopts+set}" = set; then : 6562 $as_echo_n "(cached) " >&6 6563else 6564 6565 if test -z "${lo_cv_with_autoopts_config}" \ 6566 -o X"${lo_cv_with_autoopts_config}" = Xno 6567 then 6568 if autoopts-config --help 2>/dev/null 1>&2 6569 then lo_cv_with_autoopts_config=autoopts-config 6570 elif libopts-config --help 2>/dev/null 1>&2 6571 then lo_cv_with_autoopts_config=libopts-config 6572 else lo_cv_with_autoopts_config=false ; fi 6573 fi 6574 lo_cv_test_autoopts=` 6575 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 6576 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 6577 then lo_cv_test_autoopts=no ; fi 6578 6579fi 6580 # end of CACHE_VAL 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 6582$as_echo "${lo_cv_test_autoopts}" >&6; } 6583 6584 if test "X${lo_cv_test_autoopts}" != Xno 6585 then 6586 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 6587 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 6588 else 6589 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 6590 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 6591 NEED_LIBOPTS_DIR=true 6592 fi 6593 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 6594 6595 if test -n "${NEED_LIBOPTS_DIR}"; then 6596 NEED_LIBOPTS_TRUE= 6597 NEED_LIBOPTS_FALSE='#' 6598else 6599 NEED_LIBOPTS_TRUE='#' 6600 NEED_LIBOPTS_FALSE= 6601fi 6602 6603 6604 6605 LIBOPTS_DIR=libopts 6606 6607 ac_config_files="$ac_config_files libopts/Makefile" 6608 6609 6610 6611 if test -n "${NEED_LIBOPTS_DIR}" ; then 6612 6613 6614if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6616$as_echo_n "checking for ANSI C header files... " >&6; } 6617if test "${ac_cv_header_stdc+set}" = set; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622#include <stdlib.h> 6623#include <stdarg.h> 6624#include <string.h> 6625#include <float.h> 6626 6627int 6628main () 6629{ 6630 6631 ; 6632 return 0; 6633} 6634_ACEOF 6635if ac_fn_c_try_compile "$LINENO"; then : 6636 ac_cv_header_stdc=yes 6637else 6638 ac_cv_header_stdc=no 6639fi 6640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6641 6642if test $ac_cv_header_stdc = yes; then 6643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645/* end confdefs.h. */ 6646#include <string.h> 6647 6648_ACEOF 6649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6650 $EGREP "memchr" >/dev/null 2>&1; then : 6651 6652else 6653 ac_cv_header_stdc=no 6654fi 6655rm -f conftest* 6656 6657fi 6658 6659if test $ac_cv_header_stdc = yes; then 6660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663#include <stdlib.h> 6664 6665_ACEOF 6666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6667 $EGREP "free" >/dev/null 2>&1; then : 6668 6669else 6670 ac_cv_header_stdc=no 6671fi 6672rm -f conftest* 6673 6674fi 6675 6676if test $ac_cv_header_stdc = yes; then 6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6678 if test "$cross_compiling" = yes; then : 6679 : 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683#include <ctype.h> 6684#include <stdlib.h> 6685#if ((' ' & 0x0FF) == 0x020) 6686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6688#else 6689# define ISLOWER(c) \ 6690 (('a' <= (c) && (c) <= 'i') \ 6691 || ('j' <= (c) && (c) <= 'r') \ 6692 || ('s' <= (c) && (c) <= 'z')) 6693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6694#endif 6695 6696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6697int 6698main () 6699{ 6700 int i; 6701 for (i = 0; i < 256; i++) 6702 if (XOR (islower (i), ISLOWER (i)) 6703 || toupper (i) != TOUPPER (i)) 6704 return 2; 6705 return 0; 6706} 6707_ACEOF 6708if ac_fn_c_try_run "$LINENO"; then : 6709 6710else 6711 ac_cv_header_stdc=no 6712fi 6713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6714 conftest.$ac_objext conftest.beam conftest.$ac_ext 6715fi 6716 6717fi 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6720$as_echo "$ac_cv_header_stdc" >&6; } 6721if test $ac_cv_header_stdc = yes; then 6722 6723$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6724 6725fi 6726 6727 ac_header_dirent=no 6728for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6729 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 6731$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 6732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737#include <sys/types.h> 6738#include <$ac_hdr> 6739 6740int 6741main () 6742{ 6743if ((DIR *) 0) 6744return 0; 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_compile "$LINENO"; then : 6750 eval "$as_ac_Header=yes" 6751else 6752 eval "$as_ac_Header=no" 6753fi 6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6755fi 6756eval ac_res=\$$as_ac_Header 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6758$as_echo "$ac_res" >&6; } 6759eval as_val=\$$as_ac_Header 6760 if test "x$as_val" = x""yes; then : 6761 cat >>confdefs.h <<_ACEOF 6762#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6763_ACEOF 6764 6765ac_header_dirent=$ac_hdr; break 6766fi 6767 6768done 6769# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6770if test $ac_header_dirent = dirent.h; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6772$as_echo_n "checking for library containing opendir... " >&6; } 6773if test "${ac_cv_search_opendir+set}" = set; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 ac_func_search_save_LIBS=$LIBS 6777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6778/* end confdefs.h. */ 6779 6780/* Override any GCC internal prototype to avoid an error. 6781 Use char because int might match the return type of a GCC 6782 builtin and then its argument prototype would still apply. */ 6783#ifdef __cplusplus 6784extern "C" 6785#endif 6786char opendir (); 6787int 6788main () 6789{ 6790return opendir (); 6791 ; 6792 return 0; 6793} 6794_ACEOF 6795for ac_lib in '' dir; do 6796 if test -z "$ac_lib"; then 6797 ac_res="none required" 6798 else 6799 ac_res=-l$ac_lib 6800 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6801 fi 6802 if ac_fn_c_try_link "$LINENO"; then : 6803 ac_cv_search_opendir=$ac_res 6804fi 6805rm -f core conftest.err conftest.$ac_objext \ 6806 conftest$ac_exeext 6807 if test "${ac_cv_search_opendir+set}" = set; then : 6808 break 6809fi 6810done 6811if test "${ac_cv_search_opendir+set}" = set; then : 6812 6813else 6814 ac_cv_search_opendir=no 6815fi 6816rm conftest.$ac_ext 6817LIBS=$ac_func_search_save_LIBS 6818fi 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6820$as_echo "$ac_cv_search_opendir" >&6; } 6821ac_res=$ac_cv_search_opendir 6822if test "$ac_res" != no; then : 6823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6824 6825fi 6826 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6829$as_echo_n "checking for library containing opendir... " >&6; } 6830if test "${ac_cv_search_opendir+set}" = set; then : 6831 $as_echo_n "(cached) " >&6 6832else 6833 ac_func_search_save_LIBS=$LIBS 6834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836 6837/* Override any GCC internal prototype to avoid an error. 6838 Use char because int might match the return type of a GCC 6839 builtin and then its argument prototype would still apply. */ 6840#ifdef __cplusplus 6841extern "C" 6842#endif 6843char opendir (); 6844int 6845main () 6846{ 6847return opendir (); 6848 ; 6849 return 0; 6850} 6851_ACEOF 6852for ac_lib in '' x; do 6853 if test -z "$ac_lib"; then 6854 ac_res="none required" 6855 else 6856 ac_res=-l$ac_lib 6857 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6858 fi 6859 if ac_fn_c_try_link "$LINENO"; then : 6860 ac_cv_search_opendir=$ac_res 6861fi 6862rm -f core conftest.err conftest.$ac_objext \ 6863 conftest$ac_exeext 6864 if test "${ac_cv_search_opendir+set}" = set; then : 6865 break 6866fi 6867done 6868if test "${ac_cv_search_opendir+set}" = set; then : 6869 6870else 6871 ac_cv_search_opendir=no 6872fi 6873rm conftest.$ac_ext 6874LIBS=$ac_func_search_save_LIBS 6875fi 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6877$as_echo "$ac_cv_search_opendir" >&6; } 6878ac_res=$ac_cv_search_opendir 6879if test "$ac_res" != no; then : 6880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6881 6882fi 6883 6884fi 6885 6886 6887 # ================= 6888 # AC_CHECK_HEADERS 6889 # ================= 6890 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 6891 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 6892 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 6893 utime.h sysexits.h 6894do : 6895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6897eval as_val=\$$as_ac_Header 6898 if test "x$as_val" = x""yes; then : 6899 cat >>confdefs.h <<_ACEOF 6900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6901_ACEOF 6902 6903fi 6904 6905done 6906 6907 6908 # -------------------------------------------- 6909 # Verify certain entries from AC_CHECK_HEADERS 6910 # -------------------------------------------- 6911 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 6912 string errno stdlib memory setjmp 6913 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 6914 test "${as_ac_var}" = set || \ 6915 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 6916 done 6917 6918 # ================================================ 6919 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 6920 # if varargs.h is present define HAVE_VARARGS_H. 6921 # ================================================ 6922 for ac_header in stdarg.h varargs.h 6923do : 6924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6926eval as_val=\$$as_ac_Header 6927 if test "x$as_val" = x""yes; then : 6928 cat >>confdefs.h <<_ACEOF 6929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6930_ACEOF 6931 break 6932fi 6933 6934done 6935 6936 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6937 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 6938 fi 6939 6940 # ================================================ 6941 # Similarly for the string.h and strings.h headers 6942 # ================================================ 6943 for ac_header in string.h strings.h 6944do : 6945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6946ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6947eval as_val=\$$as_ac_Header 6948 if test "x$as_val" = x""yes; then : 6949 cat >>confdefs.h <<_ACEOF 6950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6951_ACEOF 6952 break 6953fi 6954 6955done 6956 6957 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6958 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 6959 fi 6960 6961 # ===================== 6962 # ...and limits headers 6963 # ===================== 6964 for ac_header in limits.h sys/limits.h values.h 6965do : 6966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6967ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6968eval as_val=\$$as_ac_Header 6969 if test "x$as_val" = x""yes; then : 6970 cat >>confdefs.h <<_ACEOF 6971#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6972_ACEOF 6973 break 6974fi 6975 6976done 6977 6978 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6979 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 6980 fi 6981 6982 # ---------------------------------------------------------------------- 6983 # check for various programs used during the build. 6984 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 6985 # ---------------------------------------------------------------------- 6986 for ac_header in runetype.h wchar.h 6987do : 6988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6989ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 6990 $ac_includes_default 6991 #if HAVE_RUNETYPE_H 6992 # include <runetype.h> 6993 #endif 6994 6995" 6996eval as_val=\$$as_ac_Header 6997 if test "x$as_val" = x""yes; then : 6998 cat >>confdefs.h <<_ACEOF 6999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7000_ACEOF 7001 7002fi 7003 7004done 7005 7006 7007 # ---------------------------------------------------------------------- 7008 # Checks for typedefs 7009 # ---------------------------------------------------------------------- 7010 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 7011if test "x$ac_cv_type_wchar_t" = x""yes; then : 7012 7013cat >>confdefs.h <<_ACEOF 7014#define HAVE_WCHAR_T 1 7015_ACEOF 7016 7017 7018fi 7019 7020 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 7021 $ac_includes_default 7022 #if HAVE_RUNETYPE_H 7023 # include <runetype.h> 7024 #endif 7025 #if HAVE_WCHAR_H 7026 # include <wchar.h> 7027 #endif 7028 7029" 7030if test "x$ac_cv_type_wint_t" = x""yes; then : 7031 7032cat >>confdefs.h <<_ACEOF 7033#define HAVE_WINT_T 1 7034_ACEOF 7035 7036 7037fi 7038 7039 7040 # ======================== 7041 # ...and int types headers 7042 # ======================== 7043 for ac_header in stdint.h inttypes.h 7044do : 7045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7046ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7047eval as_val=\$$as_ac_Header 7048 if test "x$as_val" = x""yes; then : 7049 cat >>confdefs.h <<_ACEOF 7050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7051_ACEOF 7052 break 7053fi 7054 7055done 7056 7057 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 7058if test "x$ac_cv_type_int8_t" = x""yes; then : 7059 7060cat >>confdefs.h <<_ACEOF 7061#define HAVE_INT8_T 1 7062_ACEOF 7063 7064 7065fi 7066ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 7067if test "x$ac_cv_type_uint8_t" = x""yes; then : 7068 7069cat >>confdefs.h <<_ACEOF 7070#define HAVE_UINT8_T 1 7071_ACEOF 7072 7073 7074fi 7075ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 7076if test "x$ac_cv_type_int16_t" = x""yes; then : 7077 7078cat >>confdefs.h <<_ACEOF 7079#define HAVE_INT16_T 1 7080_ACEOF 7081 7082 7083fi 7084ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 7085if test "x$ac_cv_type_uint16_t" = x""yes; then : 7086 7087cat >>confdefs.h <<_ACEOF 7088#define HAVE_UINT16_T 1 7089_ACEOF 7090 7091 7092fi 7093ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 7094if test "x$ac_cv_type_int32_t" = x""yes; then : 7095 7096cat >>confdefs.h <<_ACEOF 7097#define HAVE_INT32_T 1 7098_ACEOF 7099 7100 7101fi 7102ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 7103if test "x$ac_cv_type_uint32_t" = x""yes; then : 7104 7105cat >>confdefs.h <<_ACEOF 7106#define HAVE_UINT32_T 1 7107_ACEOF 7108 7109 7110fi 7111ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 7112if test "x$ac_cv_type_intptr_t" = x""yes; then : 7113 7114cat >>confdefs.h <<_ACEOF 7115#define HAVE_INTPTR_T 1 7116_ACEOF 7117 7118 7119fi 7120ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7121if test "x$ac_cv_type_uintptr_t" = x""yes; then : 7122 7123cat >>confdefs.h <<_ACEOF 7124#define HAVE_UINTPTR_T 1 7125_ACEOF 7126 7127 7128fi 7129ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 7130if test "x$ac_cv_type_uint_t" = x""yes; then : 7131 7132cat >>confdefs.h <<_ACEOF 7133#define HAVE_UINT_T 1 7134_ACEOF 7135 7136 7137fi 7138ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7139if test "x$ac_cv_type_pid_t" = x""yes; then : 7140 7141cat >>confdefs.h <<_ACEOF 7142#define HAVE_PID_T 1 7143_ACEOF 7144 7145 7146fi 7147ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7148if test "x$ac_cv_type_size_t" = x""yes; then : 7149 7150cat >>confdefs.h <<_ACEOF 7151#define HAVE_SIZE_T 1 7152_ACEOF 7153 7154 7155fi 7156 7157 7158 # ===== 7159 # sizes 7160 # ===== 7161 # The cast to long int works around a bug in the HP C Compiler 7162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7164# This bug is HP SR number 8606223364. 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 7166$as_echo_n "checking size of char*... " >&6; } 7167if test "${ac_cv_sizeof_charp+set}" = set; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 7171 7172else 7173 if test "$ac_cv_type_charp" = yes; then 7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7176{ as_fn_set_status 77 7177as_fn_error "cannot compute sizeof (char*) 7178See \`config.log' for more details." "$LINENO" 5; }; } 7179 else 7180 ac_cv_sizeof_charp=0 7181 fi 7182fi 7183 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 7186$as_echo "$ac_cv_sizeof_charp" >&6; } 7187 7188 7189 7190cat >>confdefs.h <<_ACEOF 7191#define SIZEOF_CHARP $ac_cv_sizeof_charp 7192_ACEOF 7193 7194 7195 # The cast to long int works around a bug in the HP C Compiler 7196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7198# This bug is HP SR number 8606223364. 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7200$as_echo_n "checking size of int... " >&6; } 7201if test "${ac_cv_sizeof_int+set}" = set; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 7205 7206else 7207 if test "$ac_cv_type_int" = yes; then 7208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7210{ as_fn_set_status 77 7211as_fn_error "cannot compute sizeof (int) 7212See \`config.log' for more details." "$LINENO" 5; }; } 7213 else 7214 ac_cv_sizeof_int=0 7215 fi 7216fi 7217 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7220$as_echo "$ac_cv_sizeof_int" >&6; } 7221 7222 7223 7224cat >>confdefs.h <<_ACEOF 7225#define SIZEOF_INT $ac_cv_sizeof_int 7226_ACEOF 7227 7228 7229 # The cast to long int works around a bug in the HP C Compiler 7230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7232# This bug is HP SR number 8606223364. 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7234$as_echo_n "checking size of long... " >&6; } 7235if test "${ac_cv_sizeof_long+set}" = set; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7239 7240else 7241 if test "$ac_cv_type_long" = yes; then 7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7244{ as_fn_set_status 77 7245as_fn_error "cannot compute sizeof (long) 7246See \`config.log' for more details." "$LINENO" 5; }; } 7247 else 7248 ac_cv_sizeof_long=0 7249 fi 7250fi 7251 7252fi 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7254$as_echo "$ac_cv_sizeof_long" >&6; } 7255 7256 7257 7258cat >>confdefs.h <<_ACEOF 7259#define SIZEOF_LONG $ac_cv_sizeof_long 7260_ACEOF 7261 7262 7263 # The cast to long int works around a bug in the HP C Compiler 7264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7266# This bug is HP SR number 8606223364. 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 7268$as_echo_n "checking size of short... " >&6; } 7269if test "${ac_cv_sizeof_short+set}" = set; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 7273 7274else 7275 if test "$ac_cv_type_short" = yes; then 7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7278{ as_fn_set_status 77 7279as_fn_error "cannot compute sizeof (short) 7280See \`config.log' for more details." "$LINENO" 5; }; } 7281 else 7282 ac_cv_sizeof_short=0 7283 fi 7284fi 7285 7286fi 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 7288$as_echo "$ac_cv_sizeof_short" >&6; } 7289 7290 7291 7292cat >>confdefs.h <<_ACEOF 7293#define SIZEOF_SHORT $ac_cv_sizeof_short 7294_ACEOF 7295 7296 7297 7298 # ---------------------------------------------------------------------- 7299 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 7300 # ---------------------------------------------------------------------- 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 7302$as_echo_n "checking for pathfind in -lgen... " >&6; } 7303if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 ac_check_lib_save_LIBS=$LIBS 7307LIBS="-lgen $LIBS" 7308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310 7311/* Override any GCC internal prototype to avoid an error. 7312 Use char because int might match the return type of a GCC 7313 builtin and then its argument prototype would still apply. */ 7314#ifdef __cplusplus 7315extern "C" 7316#endif 7317char pathfind (); 7318int 7319main () 7320{ 7321return pathfind (); 7322 ; 7323 return 0; 7324} 7325_ACEOF 7326if ac_fn_c_try_link "$LINENO"; then : 7327 ac_cv_lib_gen_pathfind=yes 7328else 7329 ac_cv_lib_gen_pathfind=no 7330fi 7331rm -f core conftest.err conftest.$ac_objext \ 7332 conftest$ac_exeext conftest.$ac_ext 7333LIBS=$ac_check_lib_save_LIBS 7334fi 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 7336$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 7337if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 7338 cat >>confdefs.h <<_ACEOF 7339#define HAVE_LIBGEN 1 7340_ACEOF 7341 7342 LIBS="-lgen $LIBS" 7343 7344fi 7345 7346 for ac_func in vprintf 7347do : 7348 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 7349if test "x$ac_cv_func_vprintf" = x""yes; then : 7350 cat >>confdefs.h <<_ACEOF 7351#define HAVE_VPRINTF 1 7352_ACEOF 7353 7354ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 7355if test "x$ac_cv_func__doprnt" = x""yes; then : 7356 7357$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 7358 7359fi 7360 7361fi 7362done 7363 7364 7365 for ac_header in vfork.h 7366do : 7367 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7368if test "x$ac_cv_header_vfork_h" = x""yes; then : 7369 cat >>confdefs.h <<_ACEOF 7370#define HAVE_VFORK_H 1 7371_ACEOF 7372 7373fi 7374 7375done 7376 7377for ac_func in fork vfork 7378do : 7379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7380ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7381eval as_val=\$$as_ac_var 7382 if test "x$as_val" = x""yes; then : 7383 cat >>confdefs.h <<_ACEOF 7384#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7385_ACEOF 7386 7387fi 7388done 7389 7390if test "x$ac_cv_func_fork" = xyes; then 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7392$as_echo_n "checking for working fork... " >&6; } 7393if test "${ac_cv_func_fork_works+set}" = set; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 if test "$cross_compiling" = yes; then : 7397 ac_cv_func_fork_works=cross 7398else 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401$ac_includes_default 7402int 7403main () 7404{ 7405 7406 /* By Ruediger Kuhlmann. */ 7407 return fork () < 0; 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413if ac_fn_c_try_run "$LINENO"; then : 7414 ac_cv_func_fork_works=yes 7415else 7416 ac_cv_func_fork_works=no 7417fi 7418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7419 conftest.$ac_objext conftest.beam conftest.$ac_ext 7420fi 7421 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7424$as_echo "$ac_cv_func_fork_works" >&6; } 7425 7426else 7427 ac_cv_func_fork_works=$ac_cv_func_fork 7428fi 7429if test "x$ac_cv_func_fork_works" = xcross; then 7430 case $host in 7431 *-*-amigaos* | *-*-msdosdjgpp*) 7432 # Override, as these systems have only a dummy fork() stub 7433 ac_cv_func_fork_works=no 7434 ;; 7435 *) 7436 ac_cv_func_fork_works=yes 7437 ;; 7438 esac 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7440$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7441fi 7442ac_cv_func_vfork_works=$ac_cv_func_vfork 7443if test "x$ac_cv_func_vfork" = xyes; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 7445$as_echo_n "checking for working vfork... " >&6; } 7446if test "${ac_cv_func_vfork_works+set}" = set; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 if test "$cross_compiling" = yes; then : 7450 ac_cv_func_vfork_works=cross 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454/* Thanks to Paul Eggert for this test. */ 7455$ac_includes_default 7456#include <sys/wait.h> 7457#ifdef HAVE_VFORK_H 7458# include <vfork.h> 7459#endif 7460/* On some sparc systems, changes by the child to local and incoming 7461 argument registers are propagated back to the parent. The compiler 7462 is told about this with #include <vfork.h>, but some compilers 7463 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 7464 static variable whose address is put into a register that is 7465 clobbered by the vfork. */ 7466static void 7467#ifdef __cplusplus 7468sparc_address_test (int arg) 7469# else 7470sparc_address_test (arg) int arg; 7471#endif 7472{ 7473 static pid_t child; 7474 if (!child) { 7475 child = vfork (); 7476 if (child < 0) { 7477 perror ("vfork"); 7478 _exit(2); 7479 } 7480 if (!child) { 7481 arg = getpid(); 7482 write(-1, "", 0); 7483 _exit (arg); 7484 } 7485 } 7486} 7487 7488int 7489main () 7490{ 7491 pid_t parent = getpid (); 7492 pid_t child; 7493 7494 sparc_address_test (0); 7495 7496 child = vfork (); 7497 7498 if (child == 0) { 7499 /* Here is another test for sparc vfork register problems. This 7500 test uses lots of local variables, at least as many local 7501 variables as main has allocated so far including compiler 7502 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 7503 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 7504 reuse the register of parent for one of the local variables, 7505 since it will think that parent can't possibly be used any more 7506 in this routine. Assigning to the local variable will thus 7507 munge parent in the parent process. */ 7508 pid_t 7509 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 7510 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 7511 /* Convince the compiler that p..p7 are live; otherwise, it might 7512 use the same hardware register for all 8 local variables. */ 7513 if (p != p1 || p != p2 || p != p3 || p != p4 7514 || p != p5 || p != p6 || p != p7) 7515 _exit(1); 7516 7517 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 7518 from child file descriptors. If the child closes a descriptor 7519 before it execs or exits, this munges the parent's descriptor 7520 as well. Test for this by closing stdout in the child. */ 7521 _exit(close(fileno(stdout)) != 0); 7522 } else { 7523 int status; 7524 struct stat st; 7525 7526 while (wait(&status) != child) 7527 ; 7528 return ( 7529 /* Was there some problem with vforking? */ 7530 child < 0 7531 7532 /* Did the child fail? (This shouldn't happen.) */ 7533 || status 7534 7535 /* Did the vfork/compiler bug occur? */ 7536 || parent != getpid() 7537 7538 /* Did the file descriptor bug occur? */ 7539 || fstat(fileno(stdout), &st) != 0 7540 ); 7541 } 7542} 7543_ACEOF 7544if ac_fn_c_try_run "$LINENO"; then : 7545 ac_cv_func_vfork_works=yes 7546else 7547 ac_cv_func_vfork_works=no 7548fi 7549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7550 conftest.$ac_objext conftest.beam conftest.$ac_ext 7551fi 7552 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 7555$as_echo "$ac_cv_func_vfork_works" >&6; } 7556 7557fi; 7558if test "x$ac_cv_func_fork_works" = xcross; then 7559 ac_cv_func_vfork_works=$ac_cv_func_vfork 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 7561$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 7562fi 7563 7564if test "x$ac_cv_func_vfork_works" = xyes; then 7565 7566$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 7567 7568else 7569 7570$as_echo "#define vfork fork" >>confdefs.h 7571 7572fi 7573if test "x$ac_cv_func_fork_works" = xyes; then 7574 7575$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 7576 7577fi 7578 7579 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 7580 strrchr strsignal 7581do : 7582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7583ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7584eval as_val=\$$as_ac_var 7585 if test "x$as_val" = x""yes; then : 7586 cat >>confdefs.h <<_ACEOF 7587#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7588_ACEOF 7589 7590fi 7591done 7592 7593 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 7594fi 7595 # Check to see if a reg expr header is specified. 7596 7597 7598# Check whether --with-regex-header was given. 7599if test "${with_regex_header+set}" = set; then : 7600 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 7601else 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 7603$as_echo_n "checking whether a reg expr header is specified... " >&6; } 7604if test "${libopts_cv_with_regex_header+set}" = set; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 libopts_cv_with_regex_header=no 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 7610$as_echo "$libopts_cv_with_regex_header" >&6; } 7611 7612fi 7613 # end of AC_ARG_WITH 7614 7615 if test "X${libopts_cv_with_regex_header}" != Xno 7616 then 7617 cat >>confdefs.h <<_ACEOF 7618#define REGEX_HEADER <${libopts_cv_with_regex_header}> 7619_ACEOF 7620 7621 else 7622 7623$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 7624 7625 fi 7626 7627 7628 7629 # Check to see if a working libregex can be found. 7630 7631 7632# Check whether --with-libregex was given. 7633if test "${with_libregex+set}" = set; then : 7634 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 7635else 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 7637$as_echo_n "checking whether with-libregex was specified... " >&6; } 7638if test "${libopts_cv_with_libregex_root+set}" = set; then : 7639 $as_echo_n "(cached) " >&6 7640else 7641 libopts_cv_with_libregex_root=no 7642fi 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 7644$as_echo "$libopts_cv_with_libregex_root" >&6; } 7645 7646fi 7647 # end of AC_ARG_WITH libregex 7648 7649 if test "${with_libguile+set}" = set && \ 7650 test "${withval}" = no 7651 then ## disabled by request 7652 libopts_cv_with_libregex_root=no 7653 libopts_cv_with_libregex_cflags=no 7654 libopts_cv_with_libregex_libs=no 7655 else 7656 7657 7658# Check whether --with-libregex-cflags was given. 7659if test "${with_libregex_cflags+set}" = set; then : 7660 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags} 7661else 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 7663$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 7664if test "${libopts_cv_with_libregex_cflags+set}" = set; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 libopts_cv_with_libregex_cflags=no 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 7670$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 7671 7672fi 7673 # end of AC_ARG_WITH libregex-cflags 7674 7675 7676# Check whether --with-libregex-libs was given. 7677if test "${with_libregex_libs+set}" = set; then : 7678 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs} 7679else 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 7681$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 7682if test "${libopts_cv_with_libregex_libs+set}" = set; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 libopts_cv_with_libregex_libs=no 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 7688$as_echo "$libopts_cv_with_libregex_libs" >&6; } 7689 7690fi 7691 # end of AC_ARG_WITH libregex-libs 7692 7693 case "X${libopts_cv_with_libregex_cflags}" in 7694 Xyes|Xno|X ) 7695 case "X${libopts_cv_with_libregex_root}" in 7696 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 7697 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 7698 esac 7699 esac 7700 case "X${libopts_cv_with_libregex_libs}" in 7701 Xyes|Xno|X ) 7702 case "X${libopts_cv_with_libregex_root}" in 7703 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 7704 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 7705 esac 7706 esac 7707 libopts_save_CPPFLAGS="${CPPFLAGS}" 7708 libopts_save_LIBS="${LIBS}" 7709 fi ## disabled by request 7710 7711 case "X${libopts_cv_with_libregex_cflags}" in 7712 Xyes|Xno|X ) 7713 libopts_cv_with_libregex_cflags="" ;; 7714 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 7715 esac 7716 case "X${libopts_cv_with_libregex_libs}" in 7717 Xyes|Xno|X ) 7718 libopts_cv_with_libregex_libs="" ;; 7719 * ) 7720 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 7721 esac 7722 LIBREGEX_CFLAGS="" 7723 LIBREGEX_LIBS="" 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 7725$as_echo_n "checking whether libregex functions properly... " >&6; } 7726 if test "${libopts_cv_with_libregex+set}" = set; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 7730 if test "$cross_compiling" = yes; then : 7731 libopts_cv_with_libregex=no 7732else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735#include <stdio.h> 7736#include <stdlib.h> 7737#include <sys/types.h> 7738#include REGEX_HEADER 7739static regex_t re; 7740void comp_re( char const* pzPat ) { 7741 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 7742 if (res == 0) return; 7743 exit( res ); } 7744int main() { 7745 regmatch_t m[2]; 7746 comp_re( "^.*\$" ); 7747 comp_re( "()|no.*" ); 7748 comp_re( "." ); 7749 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 7750 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 7751 fputs( "error: regex -->.<-- did not match\n", stderr ); 7752 return 1; 7753 } 7754 return 0; } 7755_ACEOF 7756if ac_fn_c_try_run "$LINENO"; then : 7757 libopts_cv_with_libregex=yes 7758else 7759 libopts_cv_with_libregex=no 7760fi 7761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7762 conftest.$ac_objext conftest.beam conftest.$ac_ext 7763fi 7764 # end of AC_TRY_RUN 7765 7766fi 7767 # end of AC_CACHE_VAL for libopts_cv_with_libregex 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 7769$as_echo "${libopts_cv_with_libregex}" >&6; } 7770 7771 if test "X${libopts_cv_with_libregex}" != Xno 7772 then 7773 7774$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 7775 7776 else 7777 CPPFLAGS="${libopts_save_CPPFLAGS}" 7778 LIBS="${libopts_save_LIBS}" 7779 fi 7780 7781 7782 7783 # Check to see if pathfind(3) works. 7784 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 7786$as_echo_n "checking whether pathfind(3) works... " >&6; } 7787 if test "${libopts_cv_run_pathfind+set}" = set; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 7791 if test "$cross_compiling" = yes; then : 7792 libopts_cv_run_pathfind=no 7793 7794else 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797#include <string.h> 7798#include <stdlib.h> 7799int main (int argc, char** argv) { 7800 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 7801 return (pz == 0) ? 1 : 0; 7802} 7803_ACEOF 7804if ac_fn_c_try_run "$LINENO"; then : 7805 libopts_cv_run_pathfind=yes 7806else 7807 libopts_cv_run_pathfind=no 7808fi 7809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7810 conftest.$ac_objext conftest.beam conftest.$ac_ext 7811fi 7812 # end of TRY_RUN 7813 7814fi 7815 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 7817$as_echo "${libopts_cv_run_pathfind}" >&6; } 7818 7819 if test "X${libopts_cv_run_pathfind}" != Xno 7820 then 7821 7822$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 7823 7824 fi 7825 7826 7827 7828 # Check to see if /dev/zero is readable device. 7829 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 7831$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 7832 if test "${libopts_cv_test_dev_zero+set}" = set; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 7836 libopts_cv_test_dev_zero=`exec 2> /dev/null 7837dzero=\`ls -lL /dev/zero | egrep ^c......r\` 7838test -z "${dzero}" && exit 1 7839echo ${dzero}` 7840 if test $? -ne 0 7841 then libopts_cv_test_dev_zero=no 7842 elif test -z "$libopts_cv_test_dev_zero" 7843 then libopts_cv_test_dev_zero=no 7844 fi 7845 7846fi 7847 # end of CACHE_VAL of libopts_cv_test_dev_zero 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 7849$as_echo "${libopts_cv_test_dev_zero}" >&6; } 7850 7851 if test "X${libopts_cv_test_dev_zero}" != Xno 7852 then 7853 7854$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 7855 7856 fi 7857 7858 7859 7860 # Check to see if we have a functional realpath(3C). 7861 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 7863$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 7864 if test "${libopts_cv_run_realpath+set}" = set; then : 7865 $as_echo_n "(cached) " >&6 7866else 7867 7868 if test "$cross_compiling" = yes; then : 7869 libopts_cv_run_realpath=no 7870 7871else 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874#include <limits.h> 7875#include <stdlib.h> 7876int main (int argc, char** argv) { 7877#ifndef PATH_MAX 7878choke me!! 7879#else 7880 char zPath[PATH_MAX+1]; 7881#endif 7882 char *pz = realpath(argv[0], zPath); 7883 return (pz == zPath) ? 0 : 1; 7884} 7885_ACEOF 7886if ac_fn_c_try_run "$LINENO"; then : 7887 libopts_cv_run_realpath=yes 7888else 7889 libopts_cv_run_realpath=no 7890fi 7891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7892 conftest.$ac_objext conftest.beam conftest.$ac_ext 7893fi 7894 # end of TRY_RUN 7895 7896fi 7897 # end of AC_CACHE_VAL for libopts_cv_run_realpath 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 7899$as_echo "${libopts_cv_run_realpath}" >&6; } 7900 7901 if test "X${libopts_cv_run_realpath}" != Xno 7902 then 7903 7904$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 7905 7906 fi 7907 7908 7909 7910 # Check to see if strftime() works. 7911 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 7913$as_echo_n "checking whether strftime() works... " >&6; } 7914 if test "${libopts_cv_run_strftime+set}" = set; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 7918 if test "$cross_compiling" = yes; then : 7919 libopts_cv_run_strftime=no 7920 7921else 7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924#include <time.h> 7925#include <string.h> 7926char t_buf[ 64 ]; 7927int main() { 7928 static char const z[] = "Thursday Aug 28 240"; 7929 struct tm tm; 7930 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 7931 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 7932 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 7933 tm.tm_mday = 28; /* day of the month [1, 31] */ 7934 tm.tm_mon = 7; /* months since January [0, 11] */ 7935 tm.tm_year = 86; /* years since 1900 */ 7936 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 7937 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 7938 tm.tm_isdst = 1; /* flag for daylight savings time */ 7939 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 7940 return (strcmp( t_buf, z ) != 0); } 7941_ACEOF 7942if ac_fn_c_try_run "$LINENO"; then : 7943 libopts_cv_run_strftime=yes 7944else 7945 libopts_cv_run_strftime=no 7946fi 7947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7948 conftest.$ac_objext conftest.beam conftest.$ac_ext 7949fi 7950 # end of TRY_RUN 7951 7952fi 7953 # end of AC_CACHE_VAL for libopts_cv_run_strftime 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 7955$as_echo "${libopts_cv_run_strftime}" >&6; } 7956 7957 if test "X${libopts_cv_run_strftime}" != Xno 7958 then 7959 7960$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 7961 7962 fi 7963 7964 7965 7966 # Check to see if fopen accepts "b" mode. 7967 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 7969$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 7970 if test "${libopts_cv_run_fopen_binary+set}" = set; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 7974 if test "$cross_compiling" = yes; then : 7975 libopts_cv_run_fopen_binary=no 7976 7977else 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980#include <stdio.h> 7981int main (int argc, char** argv) { 7982FILE* fp = fopen("conftest.$ac_ext", "rb"); 7983return (fp == NULL) ? 1 : fclose(fp); } 7984_ACEOF 7985if ac_fn_c_try_run "$LINENO"; then : 7986 libopts_cv_run_fopen_binary=yes 7987else 7988 libopts_cv_run_fopen_binary=no 7989fi 7990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7991 conftest.$ac_objext conftest.beam conftest.$ac_ext 7992fi 7993 # end of TRY_RUN 7994 7995fi 7996 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 7998$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 7999 8000 if test "X${libopts_cv_run_fopen_binary}" != Xno 8001 then 8002 8003$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 8004 8005 else 8006 8007$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 8008 8009 fi 8010 8011 8012 8013 # Check to see if fopen accepts "t" mode. 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 8016$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 8017 if test "${libopts_cv_run_fopen_text+set}" = set; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 8021 if test "$cross_compiling" = yes; then : 8022 libopts_cv_run_fopen_text=no 8023 8024else 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027#include <stdio.h> 8028int main (int argc, char** argv) { 8029FILE* fp = fopen("conftest.$ac_ext", "rt"); 8030return (fp == NULL) ? 1 : fclose(fp); } 8031_ACEOF 8032if ac_fn_c_try_run "$LINENO"; then : 8033 libopts_cv_run_fopen_text=yes 8034else 8035 libopts_cv_run_fopen_text=no 8036fi 8037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8038 conftest.$ac_objext conftest.beam conftest.$ac_ext 8039fi 8040 # end of TRY_RUN 8041 8042fi 8043 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 8045$as_echo "${libopts_cv_run_fopen_text}" >&6; } 8046 8047 if test "X${libopts_cv_run_fopen_text}" != Xno 8048 then 8049 8050$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 8051 8052 else 8053 8054$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 8055 8056 fi 8057 8058 8059 8060 # Check to see if not wanting optional option args. 8061 8062 # Check whether --enable-optional-args was given. 8063if test "${enable_optional_args+set}" = set; then : 8064 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 8065else 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 8067$as_echo_n "checking whether not wanting optional option args... " >&6; } 8068if test "${libopts_cv_enable_optional_args+set}" = set; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 libopts_cv_enable_optional_args=yes 8072fi 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 8074$as_echo "$libopts_cv_enable_optional_args" >&6; } 8075 8076fi 8077 # end of AC_ARG_ENABLE 8078 8079 if test "X${libopts_cv_enable_optional_args}" = Xno 8080 then 8081 8082$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 8083 8084 fi 8085 8086 8087 8088 8089 else 8090 8091if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8093$as_echo_n "checking for ANSI C header files... " >&6; } 8094if test "${ac_cv_header_stdc+set}" = set; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099#include <stdlib.h> 8100#include <stdarg.h> 8101#include <string.h> 8102#include <float.h> 8103 8104int 8105main () 8106{ 8107 8108 ; 8109 return 0; 8110} 8111_ACEOF 8112if ac_fn_c_try_compile "$LINENO"; then : 8113 ac_cv_header_stdc=yes 8114else 8115 ac_cv_header_stdc=no 8116fi 8117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8118 8119if test $ac_cv_header_stdc = yes; then 8120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122/* end confdefs.h. */ 8123#include <string.h> 8124 8125_ACEOF 8126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8127 $EGREP "memchr" >/dev/null 2>&1; then : 8128 8129else 8130 ac_cv_header_stdc=no 8131fi 8132rm -f conftest* 8133 8134fi 8135 8136if test $ac_cv_header_stdc = yes; then 8137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140#include <stdlib.h> 8141 8142_ACEOF 8143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8144 $EGREP "free" >/dev/null 2>&1; then : 8145 8146else 8147 ac_cv_header_stdc=no 8148fi 8149rm -f conftest* 8150 8151fi 8152 8153if test $ac_cv_header_stdc = yes; then 8154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8155 if test "$cross_compiling" = yes; then : 8156 : 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160#include <ctype.h> 8161#include <stdlib.h> 8162#if ((' ' & 0x0FF) == 0x020) 8163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8165#else 8166# define ISLOWER(c) \ 8167 (('a' <= (c) && (c) <= 'i') \ 8168 || ('j' <= (c) && (c) <= 'r') \ 8169 || ('s' <= (c) && (c) <= 'z')) 8170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8171#endif 8172 8173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8174int 8175main () 8176{ 8177 int i; 8178 for (i = 0; i < 256; i++) 8179 if (XOR (islower (i), ISLOWER (i)) 8180 || toupper (i) != TOUPPER (i)) 8181 return 2; 8182 return 0; 8183} 8184_ACEOF 8185if ac_fn_c_try_run "$LINENO"; then : 8186 8187else 8188 ac_cv_header_stdc=no 8189fi 8190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8191 conftest.$ac_objext conftest.beam conftest.$ac_ext 8192fi 8193 8194fi 8195fi 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8197$as_echo "$ac_cv_header_stdc" >&6; } 8198if test $ac_cv_header_stdc = yes; then 8199 8200$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8201 8202fi 8203 8204 ac_header_dirent=no 8205for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8206 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8208$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214#include <sys/types.h> 8215#include <$ac_hdr> 8216 8217int 8218main () 8219{ 8220if ((DIR *) 0) 8221return 0; 8222 ; 8223 return 0; 8224} 8225_ACEOF 8226if ac_fn_c_try_compile "$LINENO"; then : 8227 eval "$as_ac_Header=yes" 8228else 8229 eval "$as_ac_Header=no" 8230fi 8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8232fi 8233eval ac_res=\$$as_ac_Header 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8235$as_echo "$ac_res" >&6; } 8236eval as_val=\$$as_ac_Header 8237 if test "x$as_val" = x""yes; then : 8238 cat >>confdefs.h <<_ACEOF 8239#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8240_ACEOF 8241 8242ac_header_dirent=$ac_hdr; break 8243fi 8244 8245done 8246# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8247if test $ac_header_dirent = dirent.h; then 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8249$as_echo_n "checking for library containing opendir... " >&6; } 8250if test "${ac_cv_search_opendir+set}" = set; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 ac_func_search_save_LIBS=$LIBS 8254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256 8257/* Override any GCC internal prototype to avoid an error. 8258 Use char because int might match the return type of a GCC 8259 builtin and then its argument prototype would still apply. */ 8260#ifdef __cplusplus 8261extern "C" 8262#endif 8263char opendir (); 8264int 8265main () 8266{ 8267return opendir (); 8268 ; 8269 return 0; 8270} 8271_ACEOF 8272for ac_lib in '' dir; do 8273 if test -z "$ac_lib"; then 8274 ac_res="none required" 8275 else 8276 ac_res=-l$ac_lib 8277 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8278 fi 8279 if ac_fn_c_try_link "$LINENO"; then : 8280 ac_cv_search_opendir=$ac_res 8281fi 8282rm -f core conftest.err conftest.$ac_objext \ 8283 conftest$ac_exeext 8284 if test "${ac_cv_search_opendir+set}" = set; then : 8285 break 8286fi 8287done 8288if test "${ac_cv_search_opendir+set}" = set; then : 8289 8290else 8291 ac_cv_search_opendir=no 8292fi 8293rm conftest.$ac_ext 8294LIBS=$ac_func_search_save_LIBS 8295fi 8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8297$as_echo "$ac_cv_search_opendir" >&6; } 8298ac_res=$ac_cv_search_opendir 8299if test "$ac_res" != no; then : 8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8301 8302fi 8303 8304else 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8306$as_echo_n "checking for library containing opendir... " >&6; } 8307if test "${ac_cv_search_opendir+set}" = set; then : 8308 $as_echo_n "(cached) " >&6 8309else 8310 ac_func_search_save_LIBS=$LIBS 8311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313 8314/* Override any GCC internal prototype to avoid an error. 8315 Use char because int might match the return type of a GCC 8316 builtin and then its argument prototype would still apply. */ 8317#ifdef __cplusplus 8318extern "C" 8319#endif 8320char opendir (); 8321int 8322main () 8323{ 8324return opendir (); 8325 ; 8326 return 0; 8327} 8328_ACEOF 8329for ac_lib in '' x; do 8330 if test -z "$ac_lib"; then 8331 ac_res="none required" 8332 else 8333 ac_res=-l$ac_lib 8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8335 fi 8336 if ac_fn_c_try_link "$LINENO"; then : 8337 ac_cv_search_opendir=$ac_res 8338fi 8339rm -f core conftest.err conftest.$ac_objext \ 8340 conftest$ac_exeext 8341 if test "${ac_cv_search_opendir+set}" = set; then : 8342 break 8343fi 8344done 8345if test "${ac_cv_search_opendir+set}" = set; then : 8346 8347else 8348 ac_cv_search_opendir=no 8349fi 8350rm conftest.$ac_ext 8351LIBS=$ac_func_search_save_LIBS 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8354$as_echo "$ac_cv_search_opendir" >&6; } 8355ac_res=$ac_cv_search_opendir 8356if test "$ac_res" != no; then : 8357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8358 8359fi 8360 8361fi 8362 8363 8364 # ================= 8365 # AC_CHECK_HEADERS 8366 # ================= 8367 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 8368 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 8369 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 8370 utime.h sysexits.h 8371do : 8372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8373ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8374eval as_val=\$$as_ac_Header 8375 if test "x$as_val" = x""yes; then : 8376 cat >>confdefs.h <<_ACEOF 8377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8378_ACEOF 8379 8380fi 8381 8382done 8383 8384 8385 # -------------------------------------------- 8386 # Verify certain entries from AC_CHECK_HEADERS 8387 # -------------------------------------------- 8388 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 8389 string errno stdlib memory setjmp 8390 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 8391 test "${as_ac_var}" = set || \ 8392 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 8393 done 8394 8395 # ================================================ 8396 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 8397 # if varargs.h is present define HAVE_VARARGS_H. 8398 # ================================================ 8399 for ac_header in stdarg.h varargs.h 8400do : 8401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8402ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8403eval as_val=\$$as_ac_Header 8404 if test "x$as_val" = x""yes; then : 8405 cat >>confdefs.h <<_ACEOF 8406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8407_ACEOF 8408 break 8409fi 8410 8411done 8412 8413 if test `eval echo '${'$as_ac_Header'}'` != yes; then 8414 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 8415 fi 8416 8417 # ================================================ 8418 # Similarly for the string.h and strings.h headers 8419 # ================================================ 8420 for ac_header in string.h strings.h 8421do : 8422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8424eval as_val=\$$as_ac_Header 8425 if test "x$as_val" = x""yes; then : 8426 cat >>confdefs.h <<_ACEOF 8427#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8428_ACEOF 8429 break 8430fi 8431 8432done 8433 8434 if test `eval echo '${'$as_ac_Header'}'` != yes; then 8435 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 8436 fi 8437 8438 # ===================== 8439 # ...and limits headers 8440 # ===================== 8441 for ac_header in limits.h sys/limits.h values.h 8442do : 8443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8444ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8445eval as_val=\$$as_ac_Header 8446 if test "x$as_val" = x""yes; then : 8447 cat >>confdefs.h <<_ACEOF 8448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8449_ACEOF 8450 break 8451fi 8452 8453done 8454 8455 if test `eval echo '${'$as_ac_Header'}'` != yes; then 8456 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 8457 fi 8458 8459 # ---------------------------------------------------------------------- 8460 # check for various programs used during the build. 8461 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 8462 # ---------------------------------------------------------------------- 8463 for ac_header in runetype.h wchar.h 8464do : 8465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8466ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8467 $ac_includes_default 8468 #if HAVE_RUNETYPE_H 8469 # include <runetype.h> 8470 #endif 8471 8472" 8473eval as_val=\$$as_ac_Header 8474 if test "x$as_val" = x""yes; then : 8475 cat >>confdefs.h <<_ACEOF 8476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8477_ACEOF 8478 8479fi 8480 8481done 8482 8483 8484 # ---------------------------------------------------------------------- 8485 # Checks for typedefs 8486 # ---------------------------------------------------------------------- 8487 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 8488if test "x$ac_cv_type_wchar_t" = x""yes; then : 8489 8490cat >>confdefs.h <<_ACEOF 8491#define HAVE_WCHAR_T 1 8492_ACEOF 8493 8494 8495fi 8496 8497 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 8498 $ac_includes_default 8499 #if HAVE_RUNETYPE_H 8500 # include <runetype.h> 8501 #endif 8502 #if HAVE_WCHAR_H 8503 # include <wchar.h> 8504 #endif 8505 8506" 8507if test "x$ac_cv_type_wint_t" = x""yes; then : 8508 8509cat >>confdefs.h <<_ACEOF 8510#define HAVE_WINT_T 1 8511_ACEOF 8512 8513 8514fi 8515 8516 8517 # ======================== 8518 # ...and int types headers 8519 # ======================== 8520 for ac_header in stdint.h inttypes.h 8521do : 8522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8523ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8524eval as_val=\$$as_ac_Header 8525 if test "x$as_val" = x""yes; then : 8526 cat >>confdefs.h <<_ACEOF 8527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8528_ACEOF 8529 break 8530fi 8531 8532done 8533 8534 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 8535if test "x$ac_cv_type_int8_t" = x""yes; then : 8536 8537cat >>confdefs.h <<_ACEOF 8538#define HAVE_INT8_T 1 8539_ACEOF 8540 8541 8542fi 8543ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 8544if test "x$ac_cv_type_uint8_t" = x""yes; then : 8545 8546cat >>confdefs.h <<_ACEOF 8547#define HAVE_UINT8_T 1 8548_ACEOF 8549 8550 8551fi 8552ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 8553if test "x$ac_cv_type_int16_t" = x""yes; then : 8554 8555cat >>confdefs.h <<_ACEOF 8556#define HAVE_INT16_T 1 8557_ACEOF 8558 8559 8560fi 8561ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 8562if test "x$ac_cv_type_uint16_t" = x""yes; then : 8563 8564cat >>confdefs.h <<_ACEOF 8565#define HAVE_UINT16_T 1 8566_ACEOF 8567 8568 8569fi 8570ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 8571if test "x$ac_cv_type_int32_t" = x""yes; then : 8572 8573cat >>confdefs.h <<_ACEOF 8574#define HAVE_INT32_T 1 8575_ACEOF 8576 8577 8578fi 8579ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 8580if test "x$ac_cv_type_uint32_t" = x""yes; then : 8581 8582cat >>confdefs.h <<_ACEOF 8583#define HAVE_UINT32_T 1 8584_ACEOF 8585 8586 8587fi 8588ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 8589if test "x$ac_cv_type_intptr_t" = x""yes; then : 8590 8591cat >>confdefs.h <<_ACEOF 8592#define HAVE_INTPTR_T 1 8593_ACEOF 8594 8595 8596fi 8597ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 8598if test "x$ac_cv_type_uintptr_t" = x""yes; then : 8599 8600cat >>confdefs.h <<_ACEOF 8601#define HAVE_UINTPTR_T 1 8602_ACEOF 8603 8604 8605fi 8606ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 8607if test "x$ac_cv_type_uint_t" = x""yes; then : 8608 8609cat >>confdefs.h <<_ACEOF 8610#define HAVE_UINT_T 1 8611_ACEOF 8612 8613 8614fi 8615ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8616if test "x$ac_cv_type_pid_t" = x""yes; then : 8617 8618cat >>confdefs.h <<_ACEOF 8619#define HAVE_PID_T 1 8620_ACEOF 8621 8622 8623fi 8624ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8625if test "x$ac_cv_type_size_t" = x""yes; then : 8626 8627cat >>confdefs.h <<_ACEOF 8628#define HAVE_SIZE_T 1 8629_ACEOF 8630 8631 8632fi 8633 8634 8635 # ===== 8636 # sizes 8637 # ===== 8638 # The cast to long int works around a bug in the HP C Compiler 8639# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8640# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8641# This bug is HP SR number 8606223364. 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 8643$as_echo_n "checking size of char*... " >&6; } 8644if test "${ac_cv_sizeof_charp+set}" = set; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 8648 8649else 8650 if test "$ac_cv_type_charp" = yes; then 8651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8653{ as_fn_set_status 77 8654as_fn_error "cannot compute sizeof (char*) 8655See \`config.log' for more details." "$LINENO" 5; }; } 8656 else 8657 ac_cv_sizeof_charp=0 8658 fi 8659fi 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 8663$as_echo "$ac_cv_sizeof_charp" >&6; } 8664 8665 8666 8667cat >>confdefs.h <<_ACEOF 8668#define SIZEOF_CHARP $ac_cv_sizeof_charp 8669_ACEOF 8670 8671 8672 # The cast to long int works around a bug in the HP C Compiler 8673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8675# This bug is HP SR number 8606223364. 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8677$as_echo_n "checking size of int... " >&6; } 8678if test "${ac_cv_sizeof_int+set}" = set; then : 8679 $as_echo_n "(cached) " >&6 8680else 8681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8682 8683else 8684 if test "$ac_cv_type_int" = yes; then 8685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8687{ as_fn_set_status 77 8688as_fn_error "cannot compute sizeof (int) 8689See \`config.log' for more details." "$LINENO" 5; }; } 8690 else 8691 ac_cv_sizeof_int=0 8692 fi 8693fi 8694 8695fi 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8697$as_echo "$ac_cv_sizeof_int" >&6; } 8698 8699 8700 8701cat >>confdefs.h <<_ACEOF 8702#define SIZEOF_INT $ac_cv_sizeof_int 8703_ACEOF 8704 8705 8706 # The cast to long int works around a bug in the HP C Compiler 8707# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8708# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8709# This bug is HP SR number 8606223364. 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8711$as_echo_n "checking size of long... " >&6; } 8712if test "${ac_cv_sizeof_long+set}" = set; then : 8713 $as_echo_n "(cached) " >&6 8714else 8715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8716 8717else 8718 if test "$ac_cv_type_long" = yes; then 8719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8721{ as_fn_set_status 77 8722as_fn_error "cannot compute sizeof (long) 8723See \`config.log' for more details." "$LINENO" 5; }; } 8724 else 8725 ac_cv_sizeof_long=0 8726 fi 8727fi 8728 8729fi 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8731$as_echo "$ac_cv_sizeof_long" >&6; } 8732 8733 8734 8735cat >>confdefs.h <<_ACEOF 8736#define SIZEOF_LONG $ac_cv_sizeof_long 8737_ACEOF 8738 8739 8740 # The cast to long int works around a bug in the HP C Compiler 8741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8743# This bug is HP SR number 8606223364. 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8745$as_echo_n "checking size of short... " >&6; } 8746if test "${ac_cv_sizeof_short+set}" = set; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8750 8751else 8752 if test "$ac_cv_type_short" = yes; then 8753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8755{ as_fn_set_status 77 8756as_fn_error "cannot compute sizeof (short) 8757See \`config.log' for more details." "$LINENO" 5; }; } 8758 else 8759 ac_cv_sizeof_short=0 8760 fi 8761fi 8762 8763fi 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8765$as_echo "$ac_cv_sizeof_short" >&6; } 8766 8767 8768 8769cat >>confdefs.h <<_ACEOF 8770#define SIZEOF_SHORT $ac_cv_sizeof_short 8771_ACEOF 8772 8773 8774 8775 # ---------------------------------------------------------------------- 8776 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 8777 # ---------------------------------------------------------------------- 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 8779$as_echo_n "checking for pathfind in -lgen... " >&6; } 8780if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 ac_check_lib_save_LIBS=$LIBS 8784LIBS="-lgen $LIBS" 8785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786/* end confdefs.h. */ 8787 8788/* Override any GCC internal prototype to avoid an error. 8789 Use char because int might match the return type of a GCC 8790 builtin and then its argument prototype would still apply. */ 8791#ifdef __cplusplus 8792extern "C" 8793#endif 8794char pathfind (); 8795int 8796main () 8797{ 8798return pathfind (); 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803if ac_fn_c_try_link "$LINENO"; then : 8804 ac_cv_lib_gen_pathfind=yes 8805else 8806 ac_cv_lib_gen_pathfind=no 8807fi 8808rm -f core conftest.err conftest.$ac_objext \ 8809 conftest$ac_exeext conftest.$ac_ext 8810LIBS=$ac_check_lib_save_LIBS 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 8813$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 8814if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 8815 cat >>confdefs.h <<_ACEOF 8816#define HAVE_LIBGEN 1 8817_ACEOF 8818 8819 LIBS="-lgen $LIBS" 8820 8821fi 8822 8823 for ac_func in vprintf 8824do : 8825 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 8826if test "x$ac_cv_func_vprintf" = x""yes; then : 8827 cat >>confdefs.h <<_ACEOF 8828#define HAVE_VPRINTF 1 8829_ACEOF 8830 8831ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 8832if test "x$ac_cv_func__doprnt" = x""yes; then : 8833 8834$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 8835 8836fi 8837 8838fi 8839done 8840 8841 8842 for ac_header in vfork.h 8843do : 8844 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8845if test "x$ac_cv_header_vfork_h" = x""yes; then : 8846 cat >>confdefs.h <<_ACEOF 8847#define HAVE_VFORK_H 1 8848_ACEOF 8849 8850fi 8851 8852done 8853 8854for ac_func in fork vfork 8855do : 8856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8857ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8858eval as_val=\$$as_ac_var 8859 if test "x$as_val" = x""yes; then : 8860 cat >>confdefs.h <<_ACEOF 8861#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8862_ACEOF 8863 8864fi 8865done 8866 8867if test "x$ac_cv_func_fork" = xyes; then 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8869$as_echo_n "checking for working fork... " >&6; } 8870if test "${ac_cv_func_fork_works+set}" = set; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 if test "$cross_compiling" = yes; then : 8874 ac_cv_func_fork_works=cross 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878$ac_includes_default 8879int 8880main () 8881{ 8882 8883 /* By Ruediger Kuhlmann. */ 8884 return fork () < 0; 8885 8886 ; 8887 return 0; 8888} 8889_ACEOF 8890if ac_fn_c_try_run "$LINENO"; then : 8891 ac_cv_func_fork_works=yes 8892else 8893 ac_cv_func_fork_works=no 8894fi 8895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8896 conftest.$ac_objext conftest.beam conftest.$ac_ext 8897fi 8898 8899fi 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8901$as_echo "$ac_cv_func_fork_works" >&6; } 8902 8903else 8904 ac_cv_func_fork_works=$ac_cv_func_fork 8905fi 8906if test "x$ac_cv_func_fork_works" = xcross; then 8907 case $host in 8908 *-*-amigaos* | *-*-msdosdjgpp*) 8909 # Override, as these systems have only a dummy fork() stub 8910 ac_cv_func_fork_works=no 8911 ;; 8912 *) 8913 ac_cv_func_fork_works=yes 8914 ;; 8915 esac 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8917$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8918fi 8919ac_cv_func_vfork_works=$ac_cv_func_vfork 8920if test "x$ac_cv_func_vfork" = xyes; then 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8922$as_echo_n "checking for working vfork... " >&6; } 8923if test "${ac_cv_func_vfork_works+set}" = set; then : 8924 $as_echo_n "(cached) " >&6 8925else 8926 if test "$cross_compiling" = yes; then : 8927 ac_cv_func_vfork_works=cross 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931/* Thanks to Paul Eggert for this test. */ 8932$ac_includes_default 8933#include <sys/wait.h> 8934#ifdef HAVE_VFORK_H 8935# include <vfork.h> 8936#endif 8937/* On some sparc systems, changes by the child to local and incoming 8938 argument registers are propagated back to the parent. The compiler 8939 is told about this with #include <vfork.h>, but some compilers 8940 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8941 static variable whose address is put into a register that is 8942 clobbered by the vfork. */ 8943static void 8944#ifdef __cplusplus 8945sparc_address_test (int arg) 8946# else 8947sparc_address_test (arg) int arg; 8948#endif 8949{ 8950 static pid_t child; 8951 if (!child) { 8952 child = vfork (); 8953 if (child < 0) { 8954 perror ("vfork"); 8955 _exit(2); 8956 } 8957 if (!child) { 8958 arg = getpid(); 8959 write(-1, "", 0); 8960 _exit (arg); 8961 } 8962 } 8963} 8964 8965int 8966main () 8967{ 8968 pid_t parent = getpid (); 8969 pid_t child; 8970 8971 sparc_address_test (0); 8972 8973 child = vfork (); 8974 8975 if (child == 0) { 8976 /* Here is another test for sparc vfork register problems. This 8977 test uses lots of local variables, at least as many local 8978 variables as main has allocated so far including compiler 8979 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8980 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8981 reuse the register of parent for one of the local variables, 8982 since it will think that parent can't possibly be used any more 8983 in this routine. Assigning to the local variable will thus 8984 munge parent in the parent process. */ 8985 pid_t 8986 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8987 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8988 /* Convince the compiler that p..p7 are live; otherwise, it might 8989 use the same hardware register for all 8 local variables. */ 8990 if (p != p1 || p != p2 || p != p3 || p != p4 8991 || p != p5 || p != p6 || p != p7) 8992 _exit(1); 8993 8994 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8995 from child file descriptors. If the child closes a descriptor 8996 before it execs or exits, this munges the parent's descriptor 8997 as well. Test for this by closing stdout in the child. */ 8998 _exit(close(fileno(stdout)) != 0); 8999 } else { 9000 int status; 9001 struct stat st; 9002 9003 while (wait(&status) != child) 9004 ; 9005 return ( 9006 /* Was there some problem with vforking? */ 9007 child < 0 9008 9009 /* Did the child fail? (This shouldn't happen.) */ 9010 || status 9011 9012 /* Did the vfork/compiler bug occur? */ 9013 || parent != getpid() 9014 9015 /* Did the file descriptor bug occur? */ 9016 || fstat(fileno(stdout), &st) != 0 9017 ); 9018 } 9019} 9020_ACEOF 9021if ac_fn_c_try_run "$LINENO"; then : 9022 ac_cv_func_vfork_works=yes 9023else 9024 ac_cv_func_vfork_works=no 9025fi 9026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9027 conftest.$ac_objext conftest.beam conftest.$ac_ext 9028fi 9029 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 9032$as_echo "$ac_cv_func_vfork_works" >&6; } 9033 9034fi; 9035if test "x$ac_cv_func_fork_works" = xcross; then 9036 ac_cv_func_vfork_works=$ac_cv_func_vfork 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9038$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9039fi 9040 9041if test "x$ac_cv_func_vfork_works" = xyes; then 9042 9043$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 9044 9045else 9046 9047$as_echo "#define vfork fork" >>confdefs.h 9048 9049fi 9050if test "x$ac_cv_func_fork_works" = xyes; then 9051 9052$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 9053 9054fi 9055 9056 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 9057 strrchr strsignal 9058do : 9059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9061eval as_val=\$$as_ac_var 9062 if test "x$as_val" = x""yes; then : 9063 cat >>confdefs.h <<_ACEOF 9064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9065_ACEOF 9066 9067fi 9068done 9069 9070 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 9071fi 9072 fi 9073# end of AC_DEFUN of LIBOPTS_CHECK 9074 9075 9076for ac_header in vfork.h 9077do : 9078 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 9079if test "x$ac_cv_header_vfork_h" = x""yes; then : 9080 cat >>confdefs.h <<_ACEOF 9081#define HAVE_VFORK_H 1 9082_ACEOF 9083 9084fi 9085 9086done 9087 9088for ac_func in fork vfork 9089do : 9090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9091ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9092eval as_val=\$$as_ac_var 9093 if test "x$as_val" = x""yes; then : 9094 cat >>confdefs.h <<_ACEOF 9095#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9096_ACEOF 9097 9098fi 9099done 9100 9101if test "x$ac_cv_func_fork" = xyes; then 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 9103$as_echo_n "checking for working fork... " >&6; } 9104if test "${ac_cv_func_fork_works+set}" = set; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 if test "$cross_compiling" = yes; then : 9108 ac_cv_func_fork_works=cross 9109else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112$ac_includes_default 9113int 9114main () 9115{ 9116 9117 /* By Ruediger Kuhlmann. */ 9118 return fork () < 0; 9119 9120 ; 9121 return 0; 9122} 9123_ACEOF 9124if ac_fn_c_try_run "$LINENO"; then : 9125 ac_cv_func_fork_works=yes 9126else 9127 ac_cv_func_fork_works=no 9128fi 9129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9130 conftest.$ac_objext conftest.beam conftest.$ac_ext 9131fi 9132 9133fi 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 9135$as_echo "$ac_cv_func_fork_works" >&6; } 9136 9137else 9138 ac_cv_func_fork_works=$ac_cv_func_fork 9139fi 9140if test "x$ac_cv_func_fork_works" = xcross; then 9141 case $host in 9142 *-*-amigaos* | *-*-msdosdjgpp*) 9143 # Override, as these systems have only a dummy fork() stub 9144 ac_cv_func_fork_works=no 9145 ;; 9146 *) 9147 ac_cv_func_fork_works=yes 9148 ;; 9149 esac 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 9151$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 9152fi 9153ac_cv_func_vfork_works=$ac_cv_func_vfork 9154if test "x$ac_cv_func_vfork" = xyes; then 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 9156$as_echo_n "checking for working vfork... " >&6; } 9157if test "${ac_cv_func_vfork_works+set}" = set; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 if test "$cross_compiling" = yes; then : 9161 ac_cv_func_vfork_works=cross 9162else 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165/* Thanks to Paul Eggert for this test. */ 9166$ac_includes_default 9167#include <sys/wait.h> 9168#ifdef HAVE_VFORK_H 9169# include <vfork.h> 9170#endif 9171/* On some sparc systems, changes by the child to local and incoming 9172 argument registers are propagated back to the parent. The compiler 9173 is told about this with #include <vfork.h>, but some compilers 9174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 9175 static variable whose address is put into a register that is 9176 clobbered by the vfork. */ 9177static void 9178#ifdef __cplusplus 9179sparc_address_test (int arg) 9180# else 9181sparc_address_test (arg) int arg; 9182#endif 9183{ 9184 static pid_t child; 9185 if (!child) { 9186 child = vfork (); 9187 if (child < 0) { 9188 perror ("vfork"); 9189 _exit(2); 9190 } 9191 if (!child) { 9192 arg = getpid(); 9193 write(-1, "", 0); 9194 _exit (arg); 9195 } 9196 } 9197} 9198 9199int 9200main () 9201{ 9202 pid_t parent = getpid (); 9203 pid_t child; 9204 9205 sparc_address_test (0); 9206 9207 child = vfork (); 9208 9209 if (child == 0) { 9210 /* Here is another test for sparc vfork register problems. This 9211 test uses lots of local variables, at least as many local 9212 variables as main has allocated so far including compiler 9213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 9214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 9215 reuse the register of parent for one of the local variables, 9216 since it will think that parent can't possibly be used any more 9217 in this routine. Assigning to the local variable will thus 9218 munge parent in the parent process. */ 9219 pid_t 9220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 9221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 9222 /* Convince the compiler that p..p7 are live; otherwise, it might 9223 use the same hardware register for all 8 local variables. */ 9224 if (p != p1 || p != p2 || p != p3 || p != p4 9225 || p != p5 || p != p6 || p != p7) 9226 _exit(1); 9227 9228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 9229 from child file descriptors. If the child closes a descriptor 9230 before it execs or exits, this munges the parent's descriptor 9231 as well. Test for this by closing stdout in the child. */ 9232 _exit(close(fileno(stdout)) != 0); 9233 } else { 9234 int status; 9235 struct stat st; 9236 9237 while (wait(&status) != child) 9238 ; 9239 return ( 9240 /* Was there some problem with vforking? */ 9241 child < 0 9242 9243 /* Did the child fail? (This shouldn't happen.) */ 9244 || status 9245 9246 /* Did the vfork/compiler bug occur? */ 9247 || parent != getpid() 9248 9249 /* Did the file descriptor bug occur? */ 9250 || fstat(fileno(stdout), &st) != 0 9251 ); 9252 } 9253} 9254_ACEOF 9255if ac_fn_c_try_run "$LINENO"; then : 9256 ac_cv_func_vfork_works=yes 9257else 9258 ac_cv_func_vfork_works=no 9259fi 9260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9261 conftest.$ac_objext conftest.beam conftest.$ac_ext 9262fi 9263 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 9266$as_echo "$ac_cv_func_vfork_works" >&6; } 9267 9268fi; 9269if test "x$ac_cv_func_fork_works" = xcross; then 9270 ac_cv_func_vfork_works=$ac_cv_func_vfork 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9272$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9273fi 9274 9275if test "x$ac_cv_func_vfork_works" = xyes; then 9276 9277$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 9278 9279else 9280 9281$as_echo "#define vfork fork" >>confdefs.h 9282 9283fi 9284if test "x$ac_cv_func_fork_works" = xyes; then 9285 9286$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 9287 9288fi 9289 9290 9291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 9292$as_echo_n "checking if $CC can handle #warning... " >&6; } 9293if test "${ac_cv_cpp_warning+set}" = set; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299 9300int 9301main () 9302{ 9303#warning foo 9304 ; 9305 return 0; 9306} 9307_ACEOF 9308if ac_fn_c_try_compile "$LINENO"; then : 9309 ac_cv_cpp_warning=yes 9310else 9311 ac_cv_cpp_warning=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9314 9315 9316fi 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5 9318$as_echo "$ac_cv_cpp_warning" >&6; } 9319 9320case "$ac_cv_cpp_warning" in 9321 no) 9322 9323$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 9324 9325esac 9326 9327case "$GCC" in 9328 yes) 9329 SAVED_CFLAGS_AC="$CFLAGS" 9330 CFLAGS="$CFLAGS -Wstrict-overflow" 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 9332$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 9333if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9338/* end confdefs.h. */ 9339 9340int 9341main () 9342{ 9343 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348if ac_fn_c_try_compile "$LINENO"; then : 9349 ac_cv_gcc_Wstrict_overflow=yes 9350else 9351 ac_cv_gcc_Wstrict_overflow=no 9352 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9355 9356 9357fi 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5 9359$as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; } 9360 CFLAGS="$SAVED_CFLAGS_AC" 9361 $as_unset SAVED_CFLAGS_AC 9362 # 9363 # $ac_cv_gcc_Wstrict_overflow is tested later to add the 9364 # flag to CFLAGS. 9365 # 9366esac 9367 9368 9369case "$GCC" in 9370 yes) 9371 SAVED_CFLAGS_AC="$CFLAGS" 9372 CFLAGS="$CFLAGS -Winit-self" 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 9374$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 9375if test "${ac_cv_gcc_Winit_self+set}" = set; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381 9382int 9383main () 9384{ 9385 9386 ; 9387 return 0; 9388} 9389_ACEOF 9390if ac_fn_c_try_compile "$LINENO"; then : 9391 ac_cv_gcc_Winit_self=yes 9392else 9393 ac_cv_gcc_Winit_self=no 9394 9395fi 9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9397 9398 9399fi 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5 9401$as_echo "$ac_cv_gcc_Winit_self" >&6; } 9402 CFLAGS="$SAVED_CFLAGS_AC" 9403 $as_unset SAVED_CFLAGS_AC 9404 # 9405 # $ac_cv_gcc_Winit_self is tested later to add the 9406 # flag to CFLAGS. 9407 # 9408esac 9409 9410# Expose a cross-compilation indicator to makefiles 9411 if test $build != $host; then 9412 NTP_CROSSCOMPILE_TRUE= 9413 NTP_CROSSCOMPILE_FALSE='#' 9414else 9415 NTP_CROSSCOMPILE_TRUE='#' 9416 NTP_CROSSCOMPILE_FALSE= 9417fi 9418 9419 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5 9421$as_echo_n "checking for bin subdirectory... " >&6; } 9422 9423# Check whether --with-binsubdir was given. 9424if test "${with_binsubdir+set}" = set; then : 9425 withval=$with_binsubdir; use_binsubdir="$withval" 9426else 9427 use_binsubdir="bin" 9428fi 9429 9430 9431case "$use_binsubdir" in 9432 bin) 9433 ;; 9434 sbin) 9435 ;; 9436 *) 9437 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5 9438 ;; 9439esac 9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5 9441$as_echo "$use_binsubdir" >&6; } 9442BINSUBDIR=$use_binsubdir 9443 9444 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5 9446$as_echo_n "checking if we want to use arlib... " >&6; } 9447 9448# Check whether --with-arlib was given. 9449if test "${with_arlib+set}" = set; then : 9450 withval=$with_arlib; ans=$withval 9451else 9452 ans=no 9453fi 9454 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 9456$as_echo "$ans" >&6; } 9457 9458if test -d $srcdir/arlib 9459then 9460 case "$ans" in 9461 yes) 9462 ARLIB_DIR=arlib 9463 9464 9465subdirs="$subdirs arlib" 9466 9467 ;; 9468 esac 9469fi 9470 9471 9472 9473# Check whether --with-rpath was given. 9474if test "${with_rpath+set}" = set; then : 9475 withval=$with_rpath; ans=$withval 9476else 9477 ans=x 9478fi 9479 9480case "$ans" in 9481 no) 9482 need_dash_r= 9483 ;; 9484 yes) 9485 need_dash_r=1 9486 ;; 9487esac 9488# HMS: Why isn't this $build? 9489# Well, that depends on if we need this for the build toolchain or 9490# for info in the host executable... 9491# I still have no idea which way this should go, but nobody has complained. 9492case "$host" in 9493 *-*-netbsd*) 9494 case "$need_dash_r" in 9495 no) ;; 9496 *) need_dash_r=1 9497 ;; 9498 esac 9499 ;; 9500 *-*-solaris*) 9501 case "$need_dash_r" in 9502 no) ;; 9503 *) need_dash_r=1 9504 ;; 9505 esac 9506 ;; 9507esac 9508 9509case "$build" in 9510 $host) 9511 ;; 9512 *) case "$host" in 9513 *-*-vxworks*) 9514 # Quick and dirty sanity check 9515 case "$VX_KERNEL" in 9516 '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5 9517 ;; 9518 esac 9519 CFLAGS="$CFLAGS -DSYS_VXWORKS" 9520 ;; 9521 esac 9522 ;; 9523esac 9524 9525for ac_prog in gawk mawk nawk awk 9526do 9527 # Extract the first word of "$ac_prog", so it can be a program name with args. 9528set dummy $ac_prog; ac_word=$2 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9530$as_echo_n "checking for $ac_word... " >&6; } 9531if test "${ac_cv_prog_AWK+set}" = set; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 if test -n "$AWK"; then 9535 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9536else 9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9538for as_dir in $PATH 9539do 9540 IFS=$as_save_IFS 9541 test -z "$as_dir" && as_dir=. 9542 for ac_exec_ext in '' $ac_executable_extensions; do 9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9544 ac_cv_prog_AWK="$ac_prog" 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9546 break 2 9547 fi 9548done 9549 done 9550IFS=$as_save_IFS 9551 9552fi 9553fi 9554AWK=$ac_cv_prog_AWK 9555if test -n "$AWK"; then 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9557$as_echo "$AWK" >&6; } 9558else 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9560$as_echo "no" >&6; } 9561fi 9562 9563 9564 test -n "$AWK" && break 9565done 9566 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9568$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9569set x ${MAKE-make} 9570ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9571if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 cat >conftest.make <<\_ACEOF 9575SHELL = /bin/sh 9576all: 9577 @echo '@@@%%%=$(MAKE)=@@@%%%' 9578_ACEOF 9579# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9580case `${MAKE-make} -f conftest.make 2>/dev/null` in 9581 *@@@%%%=?*=@@@%%%*) 9582 eval ac_cv_prog_make_${ac_make}_set=yes;; 9583 *) 9584 eval ac_cv_prog_make_${ac_make}_set=no;; 9585esac 9586rm -f conftest.make 9587fi 9588if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9590$as_echo "yes" >&6; } 9591 SET_MAKE= 9592else 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9594$as_echo "no" >&6; } 9595 SET_MAKE="MAKE=${MAKE-make}" 9596fi 9597 9598 9599rm -f conftest* 9600 9601case "$GCC" in 9602 yes) 9603 CFLAGS="$CFLAGS -Wall" 9604 # CFLAGS="$CFLAGS -Wcast-align" 9605 CFLAGS="$CFLAGS -Wcast-qual" 9606 # CFLAGS="$CFLAGS -Wconversion" 9607 # CFLAGS="$CFLAGS -Werror" 9608 # CFLAGS="$CFLAGS -Wextra" 9609 # CFLAGS="$CFLAGS -Wfloat-equal" 9610 CFLAGS="$CFLAGS -Wmissing-prototypes" 9611 CFLAGS="$CFLAGS -Wpointer-arith" 9612 CFLAGS="$CFLAGS -Wshadow" 9613 # CFLAGS="$CFLAGS -Wtraditional" 9614 # CFLAGS="$CFLAGS -Wwrite-strings" 9615 case "$ac_cv_gcc_Winit_self" in 9616 yes) 9617 CFLAGS="$CFLAGS -Winit-self" 9618 esac 9619 case "$ac_cv_gcc_Wstrict_overflow" in 9620 yes) 9621 CFLAGS="$CFLAGS -Wstrict-overflow" 9622 esac 9623 # if building with OpenSSL, -Wno-strict-prototypes is added later 9624esac 9625 9626case "$host" in 9627 *-next-nextstep3) 9628 CFLAGS="$CFLAGS -posix" 9629 ;; 9630esac 9631 9632ac_busted_vpath_in_make=no 9633 9634case "$build" in 9635 *-*-irix6.1*) # 64 bit only 9636 # busted vpath? 9637 ;; 9638 *-*-irix6*) # 6.2 (and later?) 9639 ac_busted_vpath_in_make=yes 9640 ;; 9641 *-*-solaris2.5.1) 9642 ac_busted_vpath_in_make=yes 9643 ;; 9644 *-*-unicosmp*) 9645 ac_busted_vpath_in_make=yes 9646 ;; 9647esac 9648 9649case "$ac_busted_vpath_in_make$srcdir" in 9650 no*) ;; 9651 yes.) ;; 9652 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in 9653 '') 9654 as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5 9655 ;; 9656 *) ;; 9657 esac 9658 ;; 9659esac 9660 9661 9662 9663 9664 9665# Check whether --enable-static was given. 9666if test "${enable_static+set}" = set; then : 9667 enableval=$enable_static; p=${PACKAGE-default} 9668 case $enableval in 9669 yes) enable_static=yes ;; 9670 no) enable_static=no ;; 9671 *) 9672 enable_static=no 9673 # Look at the argument we got. We use all the common list separators. 9674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9675 for pkg in $enableval; do 9676 IFS="$lt_save_ifs" 9677 if test "X$pkg" = "X$p"; then 9678 enable_static=yes 9679 fi 9680 done 9681 IFS="$lt_save_ifs" 9682 ;; 9683 esac 9684else 9685 enable_static=yes 9686fi 9687 9688 9689# Check whether --enable-fast-install was given. 9690if test "${enable_fast_install+set}" = set; then : 9691 enableval=$enable_fast_install; p=${PACKAGE-default} 9692 case $enableval in 9693 yes) enable_fast_install=yes ;; 9694 no) enable_fast_install=no ;; 9695 *) 9696 enable_fast_install=no 9697 # Look at the argument we got. We use all the common list separators. 9698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9699 for pkg in $enableval; do 9700 IFS="$lt_save_ifs" 9701 if test "X$pkg" = "X$p"; then 9702 enable_fast_install=yes 9703 fi 9704 done 9705 IFS="$lt_save_ifs" 9706 ;; 9707 esac 9708else 9709 enable_fast_install=yes 9710fi 9711 9712 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9714$as_echo_n "checking for a sed that does not truncate output... " >&6; } 9715if test "${lt_cv_path_SED+set}" = set; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 # Loop through the user's path and test for sed and gsed. 9719# Then use that list of sed's as ones to test for truncation. 9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9721for as_dir in $PATH 9722do 9723 IFS=$as_save_IFS 9724 test -z "$as_dir" && as_dir=. 9725 for lt_ac_prog in sed gsed; do 9726 for ac_exec_ext in '' $ac_executable_extensions; do 9727 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9728 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9729 fi 9730 done 9731 done 9732done 9733lt_ac_max=0 9734lt_ac_count=0 9735# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9736# along with /bin/sed that truncates output. 9737for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9738 test ! -f $lt_ac_sed && continue 9739 cat /dev/null > conftest.in 9740 lt_ac_count=0 9741 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9742 # Check for GNU sed and select it if it is found. 9743 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9744 lt_cv_path_SED=$lt_ac_sed 9745 break 9746 fi 9747 while true; do 9748 cat conftest.in conftest.in >conftest.tmp 9749 mv conftest.tmp conftest.in 9750 cp conftest.in conftest.nl 9751 echo >>conftest.nl 9752 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9753 cmp -s conftest.out conftest.nl || break 9754 # 10000 chars as input seems more than enough 9755 test $lt_ac_count -gt 10 && break 9756 lt_ac_count=`expr $lt_ac_count + 1` 9757 if test $lt_ac_count -gt $lt_ac_max; then 9758 lt_ac_max=$lt_ac_count 9759 lt_cv_path_SED=$lt_ac_sed 9760 fi 9761 done 9762done 9763 9764fi 9765 9766SED=$lt_cv_path_SED 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 9768$as_echo "$SED" >&6; } 9769 9770 9771# Check whether --with-gnu-ld was given. 9772if test "${with_gnu_ld+set}" = set; then : 9773 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9774else 9775 with_gnu_ld=no 9776fi 9777 9778ac_prog=ld 9779if test "$GCC" = yes; then 9780 # Check if gcc -print-prog-name=ld gives a path. 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9782$as_echo_n "checking for ld used by $CC... " >&6; } 9783 case $host in 9784 *-*-mingw*) 9785 # gcc leaves a trailing carriage return which upsets mingw 9786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9787 *) 9788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9789 esac 9790 case $ac_prog in 9791 # Accept absolute paths. 9792 [\\/]* | ?:[\\/]*) 9793 re_direlt='/[^/][^/]*/\.\./' 9794 # Canonicalize the pathname of ld 9795 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9796 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9797 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9798 done 9799 test -z "$LD" && LD="$ac_prog" 9800 ;; 9801 "") 9802 # If it fails, then pretend we aren't using GCC. 9803 ac_prog=ld 9804 ;; 9805 *) 9806 # If it is relative, then search for the first ld in PATH. 9807 with_gnu_ld=unknown 9808 ;; 9809 esac 9810elif test "$with_gnu_ld" = yes; then 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9812$as_echo_n "checking for GNU ld... " >&6; } 9813else 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9815$as_echo_n "checking for non-GNU ld... " >&6; } 9816fi 9817if test "${lt_cv_path_LD+set}" = set; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 if test -z "$LD"; then 9821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9822 for ac_dir in $PATH; do 9823 IFS="$lt_save_ifs" 9824 test -z "$ac_dir" && ac_dir=. 9825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9826 lt_cv_path_LD="$ac_dir/$ac_prog" 9827 # Check to see if the program is GNU ld. I'd rather use --version, 9828 # but apparently some variants of GNU ld only accept -v. 9829 # Break only if it was the GNU/non-GNU ld that we prefer. 9830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9831 *GNU* | *'with BFD'*) 9832 test "$with_gnu_ld" != no && break 9833 ;; 9834 *) 9835 test "$with_gnu_ld" != yes && break 9836 ;; 9837 esac 9838 fi 9839 done 9840 IFS="$lt_save_ifs" 9841else 9842 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9843fi 9844fi 9845 9846LD="$lt_cv_path_LD" 9847if test -n "$LD"; then 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9849$as_echo "$LD" >&6; } 9850else 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9852$as_echo "no" >&6; } 9853fi 9854test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 9855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9857if test "${lt_cv_prog_gnu_ld+set}" = set; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9861case `$LD -v 2>&1 </dev/null` in 9862*GNU* | *'with BFD'*) 9863 lt_cv_prog_gnu_ld=yes 9864 ;; 9865*) 9866 lt_cv_prog_gnu_ld=no 9867 ;; 9868esac 9869fi 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9871$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9872with_gnu_ld=$lt_cv_prog_gnu_ld 9873 9874 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9876$as_echo_n "checking for $LD option to reload object files... " >&6; } 9877if test "${lt_cv_ld_reload_flag+set}" = set; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 lt_cv_ld_reload_flag='-r' 9881fi 9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9883$as_echo "$lt_cv_ld_reload_flag" >&6; } 9884reload_flag=$lt_cv_ld_reload_flag 9885case $reload_flag in 9886"" | " "*) ;; 9887*) reload_flag=" $reload_flag" ;; 9888esac 9889reload_cmds='$LD$reload_flag -o $output$reload_objs' 9890case $host_os in 9891 darwin*) 9892 if test "$GCC" = yes; then 9893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 9894 else 9895 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9896 fi 9897 ;; 9898esac 9899 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 9901$as_echo_n "checking for BSD-compatible nm... " >&6; } 9902if test "${lt_cv_path_NM+set}" = set; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 if test -n "$NM"; then 9906 # Let the user override the test. 9907 lt_cv_path_NM="$NM" 9908else 9909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 9911 IFS="$lt_save_ifs" 9912 test -z "$ac_dir" && ac_dir=. 9913 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 9914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 9915 # Check to see if the nm accepts a BSD-compat flag. 9916 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 9917 # nm: unknown option "B" ignored 9918 # Tru64's nm complains that /dev/null is an invalid object file 9919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 9920 */dev/null* | *'Invalid file or object type'*) 9921 lt_cv_path_NM="$tmp_nm -B" 9922 break 9923 ;; 9924 *) 9925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9926 */dev/null*) 9927 lt_cv_path_NM="$tmp_nm -p" 9928 break 9929 ;; 9930 *) 9931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9932 continue # so that we can try to find one that supports BSD flags 9933 ;; 9934 esac 9935 esac 9936 fi 9937 done 9938 IFS="$lt_save_ifs" 9939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 9940fi 9941fi 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9943$as_echo "$lt_cv_path_NM" >&6; } 9944NM="$lt_cv_path_NM" 9945 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9947$as_echo_n "checking whether ln -s works... " >&6; } 9948LN_S=$as_ln_s 9949if test "$LN_S" = "ln -s"; then 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9951$as_echo "yes" >&6; } 9952else 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9954$as_echo "no, using $LN_S" >&6; } 9955fi 9956 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5 9958$as_echo_n "checking how to recognise dependent libraries... " >&6; } 9959if test "${lt_cv_deplibs_check_method+set}" = set; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 lt_cv_file_magic_cmd='$MAGIC_CMD' 9963lt_cv_file_magic_test_file= 9964lt_cv_deplibs_check_method='unknown' 9965# Need to set the preceding variable on all platforms that support 9966# interlibrary dependencies. 9967# 'none' -- dependencies not supported. 9968# `unknown' -- same as none, but documents that we really don't know. 9969# 'pass_all' -- all dependencies passed with no checks. 9970# 'test_compile' -- check by making test program. 9971# 'file_magic [[regex]]' -- check by looking for files in library path 9972# which responds to the $file_magic_cmd with a given extended regex. 9973# If you have `file' or equivalent on your system and you're not sure 9974# whether `pass_all' will *always* work, you probably want this one. 9975 9976case $host_os in 9977aix4* | aix5*) 9978 lt_cv_deplibs_check_method=pass_all 9979 ;; 9980 9981beos*) 9982 lt_cv_deplibs_check_method=pass_all 9983 ;; 9984 9985bsdi[45]*) 9986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9987 lt_cv_file_magic_cmd='/usr/bin/file -L' 9988 lt_cv_file_magic_test_file=/shlib/libc.so 9989 ;; 9990 9991cygwin*) 9992 # func_win32_libid is a shell function defined in ltmain.sh 9993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9994 lt_cv_file_magic_cmd='func_win32_libid' 9995 ;; 9996 9997mingw* | pw32*) 9998 # Base MSYS/MinGW do not provide the 'file' command needed by 9999 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 10000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 10001 lt_cv_file_magic_cmd='$OBJDUMP -f' 10002 ;; 10003 10004darwin* | rhapsody*) 10005 lt_cv_deplibs_check_method=pass_all 10006 ;; 10007 10008freebsd* | kfreebsd*-gnu | dragonfly*) 10009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 10010 case $host_cpu in 10011 i*86 ) 10012 # Not sure whether the presence of OpenBSD here was a mistake. 10013 # Let's accept both of them until this is cleared up. 10014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10015 lt_cv_file_magic_cmd=/usr/bin/file 10016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10017 ;; 10018 esac 10019 else 10020 lt_cv_deplibs_check_method=pass_all 10021 fi 10022 ;; 10023 10024gnu*) 10025 lt_cv_deplibs_check_method=pass_all 10026 ;; 10027 10028hpux10.20* | hpux11*) 10029 lt_cv_file_magic_cmd=/usr/bin/file 10030 case $host_cpu in 10031 ia64*) 10032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10034 ;; 10035 hppa*64*) 10036 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]' 10037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10038 ;; 10039 *) 10040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 10041 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10042 ;; 10043 esac 10044 ;; 10045 10046irix5* | irix6* | nonstopux*) 10047 case $LD in 10048 *-32|*"-32 ") libmagic=32-bit;; 10049 *-n32|*"-n32 ") libmagic=N32;; 10050 *-64|*"-64 ") libmagic=64-bit;; 10051 *) libmagic=never-match;; 10052 esac 10053 lt_cv_deplibs_check_method=pass_all 10054 ;; 10055 10056# This must be Linux ELF. 10057linux*) 10058 lt_cv_deplibs_check_method=pass_all 10059 ;; 10060 10061netbsd*) 10062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 10063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10064 else 10065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10066 fi 10067 ;; 10068 10069newos6*) 10070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10071 lt_cv_file_magic_cmd=/usr/bin/file 10072 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10073 ;; 10074 10075nto-qnx*) 10076 lt_cv_deplibs_check_method=unknown 10077 ;; 10078 10079openbsd*) 10080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10082 else 10083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10084 fi 10085 ;; 10086 10087osf3* | osf4* | osf5*) 10088 lt_cv_deplibs_check_method=pass_all 10089 ;; 10090 10091sco3.2v5*) 10092 lt_cv_deplibs_check_method=pass_all 10093 ;; 10094 10095solaris*) 10096 lt_cv_deplibs_check_method=pass_all 10097 ;; 10098 10099sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10100 case $host_vendor in 10101 motorola) 10102 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]' 10103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10104 ;; 10105 ncr) 10106 lt_cv_deplibs_check_method=pass_all 10107 ;; 10108 sequent) 10109 lt_cv_file_magic_cmd='/bin/file' 10110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10111 ;; 10112 sni) 10113 lt_cv_file_magic_cmd='/bin/file' 10114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10115 lt_cv_file_magic_test_file=/lib/libc.so 10116 ;; 10117 siemens) 10118 lt_cv_deplibs_check_method=pass_all 10119 ;; 10120 esac 10121 ;; 10122 10123sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 10124 lt_cv_deplibs_check_method=pass_all 10125 ;; 10126esac 10127 10128fi 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10130$as_echo "$lt_cv_deplibs_check_method" >&6; } 10131file_magic_cmd=$lt_cv_file_magic_cmd 10132deplibs_check_method=$lt_cv_deplibs_check_method 10133test -z "$deplibs_check_method" && deplibs_check_method=unknown 10134 10135 10136 10137 10138# If no C compiler was specified, use CC. 10139LTCC=${LTCC-"$CC"} 10140 10141# Allow CC to be a program name with arguments. 10142compiler=$CC 10143 10144# Check whether --enable-libtool-lock was given. 10145if test "${enable_libtool_lock+set}" = set; then : 10146 enableval=$enable_libtool_lock; 10147fi 10148 10149test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10150 10151# Some flags need to be propagated to the compiler or linker for good 10152# libtool support. 10153case $host in 10154ia64-*-hpux*) 10155 # Find out which ABI we are using. 10156 echo 'int i;' > conftest.$ac_ext 10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10158 (eval $ac_compile) 2>&5 10159 ac_status=$? 10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10161 test $ac_status = 0; }; then 10162 case `/usr/bin/file conftest.$ac_objext` in 10163 *ELF-32*) 10164 HPUX_IA64_MODE="32" 10165 ;; 10166 *ELF-64*) 10167 HPUX_IA64_MODE="64" 10168 ;; 10169 esac 10170 fi 10171 rm -rf conftest* 10172 ;; 10173*-*-irix6*) 10174 # Find out which ABI we are using. 10175 echo '#line 10175 "configure"' > conftest.$ac_ext 10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10177 (eval $ac_compile) 2>&5 10178 ac_status=$? 10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10180 test $ac_status = 0; }; then 10181 if test "$lt_cv_prog_gnu_ld" = yes; then 10182 case `/usr/bin/file conftest.$ac_objext` in 10183 *32-bit*) 10184 LD="${LD-ld} -melf32bsmip" 10185 ;; 10186 *N32*) 10187 LD="${LD-ld} -melf32bmipn32" 10188 ;; 10189 *64-bit*) 10190 LD="${LD-ld} -melf64bmip" 10191 ;; 10192 esac 10193 else 10194 case `/usr/bin/file conftest.$ac_objext` in 10195 *32-bit*) 10196 LD="${LD-ld} -32" 10197 ;; 10198 *N32*) 10199 LD="${LD-ld} -n32" 10200 ;; 10201 *64-bit*) 10202 LD="${LD-ld} -64" 10203 ;; 10204 esac 10205 fi 10206 fi 10207 rm -rf conftest* 10208 ;; 10209 10210x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 10211 # Find out which ABI we are using. 10212 echo 'int i;' > conftest.$ac_ext 10213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10214 (eval $ac_compile) 2>&5 10215 ac_status=$? 10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10217 test $ac_status = 0; }; then 10218 case `/usr/bin/file conftest.o` in 10219 *32-bit*) 10220 case $host in 10221 x86_64-*linux*) 10222 LD="${LD-ld} -m elf_i386" 10223 ;; 10224 ppc64-*linux*|powerpc64-*linux*) 10225 LD="${LD-ld} -m elf32ppclinux" 10226 ;; 10227 s390x-*linux*) 10228 LD="${LD-ld} -m elf_s390" 10229 ;; 10230 sparc64-*linux*) 10231 LD="${LD-ld} -m elf32_sparc" 10232 ;; 10233 esac 10234 ;; 10235 *64-bit*) 10236 case $host in 10237 x86_64-*linux*) 10238 LD="${LD-ld} -m elf_x86_64" 10239 ;; 10240 ppc*-*linux*|powerpc*-*linux*) 10241 LD="${LD-ld} -m elf64ppc" 10242 ;; 10243 s390*-*linux*) 10244 LD="${LD-ld} -m elf64_s390" 10245 ;; 10246 sparc*-*linux*) 10247 LD="${LD-ld} -m elf64_sparc" 10248 ;; 10249 esac 10250 ;; 10251 esac 10252 fi 10253 rm -rf conftest* 10254 ;; 10255 10256*-*-sco3.2v5*) 10257 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10258 SAVE_CFLAGS="$CFLAGS" 10259 CFLAGS="$CFLAGS -belf" 10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10261$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10262if test "${lt_cv_cc_needs_belf+set}" = set; then : 10263 $as_echo_n "(cached) " >&6 10264else 10265 ac_ext=c 10266ac_cpp='$CPP $CPPFLAGS' 10267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10269ac_compiler_gnu=$ac_cv_c_compiler_gnu 10270 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274int 10275main () 10276{ 10277 10278 ; 10279 return 0; 10280} 10281_ACEOF 10282if ac_fn_c_try_link "$LINENO"; then : 10283 lt_cv_cc_needs_belf=yes 10284else 10285 lt_cv_cc_needs_belf=no 10286fi 10287rm -f core conftest.err conftest.$ac_objext \ 10288 conftest$ac_exeext conftest.$ac_ext 10289 ac_ext=c 10290ac_cpp='$CPP $CPPFLAGS' 10291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10293ac_compiler_gnu=$ac_cv_c_compiler_gnu 10294 10295fi 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10297$as_echo "$lt_cv_cc_needs_belf" >&6; } 10298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10300 CFLAGS="$SAVE_CFLAGS" 10301 fi 10302 ;; 10303 10304esac 10305 10306need_locks="$enable_libtool_lock" 10307 10308 10309for ac_header in dlfcn.h 10310do : 10311 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 10312if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 10313 cat >>confdefs.h <<_ACEOF 10314#define HAVE_DLFCN_H 1 10315_ACEOF 10316 10317fi 10318 10319done 10320 10321 10322# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 10323 10324# find the maximum length of command line arguments 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10326$as_echo_n "checking the maximum length of command line arguments... " >&6; } 10327if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 i=0 10331 teststring="ABCD" 10332 10333 case $build_os in 10334 msdosdjgpp*) 10335 # On DJGPP, this test can blow up pretty badly due to problems in libc 10336 # (any single argument exceeding 2000 bytes causes a buffer overrun 10337 # during glob expansion). Even if it were fixed, the result of this 10338 # check would be larger than it should be. 10339 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10340 ;; 10341 10342 gnu*) 10343 # Under GNU Hurd, this test is not required because there is 10344 # no limit to the length of command line arguments. 10345 # Libtool will interpret -1 as no limit whatsoever 10346 lt_cv_sys_max_cmd_len=-1; 10347 ;; 10348 10349 cygwin* | mingw*) 10350 # On Win9x/ME, this test blows up -- it succeeds, but takes 10351 # about 5 minutes as the teststring grows exponentially. 10352 # Worse, since 9x/ME are not pre-emptively multitasking, 10353 # you end up with a "frozen" computer, even though with patience 10354 # the test eventually succeeds (with a max line length of 256k). 10355 # Instead, let's just punt: use the minimum linelength reported by 10356 # all of the supported platforms: 8192 (on NT/2K/XP). 10357 lt_cv_sys_max_cmd_len=8192; 10358 ;; 10359 10360 amigaos*) 10361 # On AmigaOS with pdksh, this test takes hours, literally. 10362 # So we just punt and use a minimum line length of 8192. 10363 lt_cv_sys_max_cmd_len=8192; 10364 ;; 10365 10366 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10367 # This has been around since 386BSD, at least. Likely further. 10368 if test -x /sbin/sysctl; then 10369 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10370 elif test -x /usr/sbin/sysctl; then 10371 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10372 else 10373 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10374 fi 10375 # And add a safety zone 10376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10378 ;; 10379 osf*) 10380 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10381 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10382 # nice to cause kernel panics so lets avoid the loop below. 10383 # First set a reasonable default. 10384 lt_cv_sys_max_cmd_len=16384 10385 # 10386 if test -x /sbin/sysconfig; then 10387 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10388 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10389 esac 10390 fi 10391 ;; 10392 *) 10393 # If test is not a shell built-in, we'll probably end up computing a 10394 # maximum length that is only half of the actual maximum length, but 10395 # we can't tell. 10396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10397 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 10398 = "XX$teststring") >/dev/null 2>&1 && 10399 new_result=`expr "X$teststring" : ".*" 2>&1` && 10400 lt_cv_sys_max_cmd_len=$new_result && 10401 test $i != 17 # 1/2 MB should be enough 10402 do 10403 i=`expr $i + 1` 10404 teststring=$teststring$teststring 10405 done 10406 teststring= 10407 # Add a significant safety factor because C++ compilers can tack on massive 10408 # amounts of additional arguments before passing them to the linker. 10409 # It appears as though 1/2 is a usable value. 10410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10411 ;; 10412 esac 10413 10414fi 10415 10416if test -n $lt_cv_sys_max_cmd_len ; then 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10418$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 10419else 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 10421$as_echo "none" >&6; } 10422fi 10423 10424 10425 10426 10427# Check for command to grab the raw symbol name followed by C symbol from nm. 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10429$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10430if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 10434# These are sane defaults that work on at least a few old systems. 10435# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10436 10437# Character class describing NM global symbol codes. 10438symcode='[BCDEGRST]' 10439 10440# Regexp to match symbols that can be accessed directly from C. 10441sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10442 10443# Transform an extracted symbol line into a proper C declaration 10444lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10445 10446# Transform an extracted symbol line into symbol name and symbol address 10447lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 10448 10449# Define system-specific variables. 10450case $host_os in 10451aix*) 10452 symcode='[BCDT]' 10453 ;; 10454cygwin* | mingw* | pw32*) 10455 symcode='[ABCDGISTW]' 10456 ;; 10457hpux*) # Its linker distinguishes data from code symbols 10458 if test "$host_cpu" = ia64; then 10459 symcode='[ABCDEGRST]' 10460 fi 10461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10462 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 10463 ;; 10464linux*) 10465 if test "$host_cpu" = ia64; then 10466 symcode='[ABCDGIRSTW]' 10467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 10469 fi 10470 ;; 10471irix* | nonstopux*) 10472 symcode='[BCDEGRST]' 10473 ;; 10474osf*) 10475 symcode='[BCDEGQRST]' 10476 ;; 10477solaris* | sysv5*) 10478 symcode='[BDRT]' 10479 ;; 10480sysv4) 10481 symcode='[DFNSTU]' 10482 ;; 10483esac 10484 10485# Handle CRLF in mingw tool chain 10486opt_cr= 10487case $build_os in 10488mingw*) 10489 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10490 ;; 10491esac 10492 10493# If we're using GNU nm, then use its standard symbol codes. 10494case `$NM -V 2>&1` in 10495*GNU* | *'with BFD'*) 10496 symcode='[ABCDGIRSTW]' ;; 10497esac 10498 10499# Try without a prefix undercore, then with it. 10500for ac_symprfx in "" "_"; do 10501 10502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10503 symxfrm="\\1 $ac_symprfx\\2 \\2" 10504 10505 # Write the raw and C identifiers. 10506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10507 10508 # Check to see that the pipe works correctly. 10509 pipe_works=no 10510 10511 rm -f conftest* 10512 cat > conftest.$ac_ext <<EOF 10513#ifdef __cplusplus 10514extern "C" { 10515#endif 10516char nm_test_var; 10517void nm_test_func(){} 10518#ifdef __cplusplus 10519} 10520#endif 10521int main(){nm_test_var='a';nm_test_func();return(0);} 10522EOF 10523 10524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10525 (eval $ac_compile) 2>&5 10526 ac_status=$? 10527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10528 test $ac_status = 0; }; then 10529 # Now try to grab the symbols. 10530 nlist=conftest.nm 10531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 10532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10533 ac_status=$? 10534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10535 test $ac_status = 0; } && test -s "$nlist"; then 10536 # Try sorting and uniquifying the output. 10537 if sort "$nlist" | uniq > "$nlist"T; then 10538 mv -f "$nlist"T "$nlist" 10539 else 10540 rm -f "$nlist"T 10541 fi 10542 10543 # Make sure that we snagged all the symbols we need. 10544 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10545 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10546 cat <<EOF > conftest.$ac_ext 10547#ifdef __cplusplus 10548extern "C" { 10549#endif 10550 10551EOF 10552 # Now generate the symbol file. 10553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10554 10555 cat <<EOF >> conftest.$ac_ext 10556#if defined (__STDC__) && __STDC__ 10557# define lt_ptr_t void * 10558#else 10559# define lt_ptr_t char * 10560# define const 10561#endif 10562 10563/* The mapping between symbol names and symbols. */ 10564const struct { 10565 const char *name; 10566 lt_ptr_t address; 10567} 10568lt_preloaded_symbols[] = 10569{ 10570EOF 10571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10572 cat <<\EOF >> conftest.$ac_ext 10573 {0, (lt_ptr_t) 0} 10574}; 10575 10576#ifdef __cplusplus 10577} 10578#endif 10579EOF 10580 # Now try linking the two files. 10581 mv conftest.$ac_objext conftstm.$ac_objext 10582 lt_save_LIBS="$LIBS" 10583 lt_save_CFLAGS="$CFLAGS" 10584 LIBS="conftstm.$ac_objext" 10585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10587 (eval $ac_link) 2>&5 10588 ac_status=$? 10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10590 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10591 pipe_works=yes 10592 fi 10593 LIBS="$lt_save_LIBS" 10594 CFLAGS="$lt_save_CFLAGS" 10595 else 10596 echo "cannot find nm_test_func in $nlist" >&5 10597 fi 10598 else 10599 echo "cannot find nm_test_var in $nlist" >&5 10600 fi 10601 else 10602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10603 fi 10604 else 10605 echo "$progname: failed program was:" >&5 10606 cat conftest.$ac_ext >&5 10607 fi 10608 rm -f conftest* conftst* 10609 10610 # Do not use the global_symbol_pipe unless it works. 10611 if test "$pipe_works" = yes; then 10612 break 10613 else 10614 lt_cv_sys_global_symbol_pipe= 10615 fi 10616done 10617 10618fi 10619 10620if test -z "$lt_cv_sys_global_symbol_pipe"; then 10621 lt_cv_sys_global_symbol_to_cdecl= 10622fi 10623if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10625$as_echo "failed" >&6; } 10626else 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10628$as_echo "ok" >&6; } 10629fi 10630 10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10632$as_echo_n "checking for objdir... " >&6; } 10633if test "${lt_cv_objdir+set}" = set; then : 10634 $as_echo_n "(cached) " >&6 10635else 10636 rm -f .libs 2>/dev/null 10637mkdir .libs 2>/dev/null 10638if test -d .libs; then 10639 lt_cv_objdir=.libs 10640else 10641 # MS-DOS does not allow filenames that begin with a dot. 10642 lt_cv_objdir=_libs 10643fi 10644rmdir .libs 2>/dev/null 10645fi 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10647$as_echo "$lt_cv_objdir" >&6; } 10648objdir=$lt_cv_objdir 10649 10650 10651 10652 10653 10654case $host_os in 10655aix3*) 10656 # AIX sometimes has problems with the GCC collect2 program. For some 10657 # reason, if we set the COLLECT_NAMES environment variable, the problems 10658 # vanish in a puff of smoke. 10659 if test "X${COLLECT_NAMES+set}" != Xset; then 10660 COLLECT_NAMES= 10661 export COLLECT_NAMES 10662 fi 10663 ;; 10664esac 10665 10666# Sed substitution that helps us do robust quoting. It backslashifies 10667# metacharacters that are still active within double-quoted strings. 10668Xsed='sed -e 1s/^X//' 10669sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 10670 10671# Same as above, but do not quote variable references. 10672double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 10673 10674# Sed substitution to delay expansion of an escaped shell variable in a 10675# double_quote_subst'ed string. 10676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10677 10678# Sed substitution to avoid accidental globbing in evaled expressions 10679no_glob_subst='s/\*/\\\*/g' 10680 10681# Constants: 10682rm="rm -f" 10683 10684# Global variables: 10685default_ofile=libtool 10686can_build_shared=yes 10687 10688# All known linkers require a `.a' archive for static linking (except MSVC, 10689# which needs '.lib'). 10690libext=a 10691ltmain="$ac_aux_dir/ltmain.sh" 10692ofile="$default_ofile" 10693with_gnu_ld="$lt_cv_prog_gnu_ld" 10694 10695if test -n "$ac_tool_prefix"; then 10696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10697set dummy ${ac_tool_prefix}ar; ac_word=$2 10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10699$as_echo_n "checking for $ac_word... " >&6; } 10700if test "${ac_cv_prog_AR+set}" = set; then : 10701 $as_echo_n "(cached) " >&6 10702else 10703 if test -n "$AR"; then 10704 ac_cv_prog_AR="$AR" # Let the user override the test. 10705else 10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10707for as_dir in $PATH 10708do 10709 IFS=$as_save_IFS 10710 test -z "$as_dir" && as_dir=. 10711 for ac_exec_ext in '' $ac_executable_extensions; do 10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10713 ac_cv_prog_AR="${ac_tool_prefix}ar" 10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10715 break 2 10716 fi 10717done 10718 done 10719IFS=$as_save_IFS 10720 10721fi 10722fi 10723AR=$ac_cv_prog_AR 10724if test -n "$AR"; then 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10726$as_echo "$AR" >&6; } 10727else 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10729$as_echo "no" >&6; } 10730fi 10731 10732 10733fi 10734if test -z "$ac_cv_prog_AR"; then 10735 ac_ct_AR=$AR 10736 # Extract the first word of "ar", so it can be a program name with args. 10737set dummy ar; ac_word=$2 10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10739$as_echo_n "checking for $ac_word... " >&6; } 10740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 10741 $as_echo_n "(cached) " >&6 10742else 10743 if test -n "$ac_ct_AR"; then 10744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10745else 10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10747for as_dir in $PATH 10748do 10749 IFS=$as_save_IFS 10750 test -z "$as_dir" && as_dir=. 10751 for ac_exec_ext in '' $ac_executable_extensions; do 10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10753 ac_cv_prog_ac_ct_AR="ar" 10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10755 break 2 10756 fi 10757done 10758 done 10759IFS=$as_save_IFS 10760 10761fi 10762fi 10763ac_ct_AR=$ac_cv_prog_ac_ct_AR 10764if test -n "$ac_ct_AR"; then 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10766$as_echo "$ac_ct_AR" >&6; } 10767else 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10769$as_echo "no" >&6; } 10770fi 10771 10772 if test "x$ac_ct_AR" = x; then 10773 AR="false" 10774 else 10775 case $cross_compiling:$ac_tool_warned in 10776yes:) 10777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10779ac_tool_warned=yes ;; 10780esac 10781 AR=$ac_ct_AR 10782 fi 10783else 10784 AR="$ac_cv_prog_AR" 10785fi 10786 10787if test -n "$ac_tool_prefix"; then 10788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10789set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791$as_echo_n "checking for $ac_word... " >&6; } 10792if test "${ac_cv_prog_RANLIB+set}" = set; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 if test -n "$RANLIB"; then 10796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10797else 10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10799for as_dir in $PATH 10800do 10801 IFS=$as_save_IFS 10802 test -z "$as_dir" && as_dir=. 10803 for ac_exec_ext in '' $ac_executable_extensions; do 10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10807 break 2 10808 fi 10809done 10810 done 10811IFS=$as_save_IFS 10812 10813fi 10814fi 10815RANLIB=$ac_cv_prog_RANLIB 10816if test -n "$RANLIB"; then 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10818$as_echo "$RANLIB" >&6; } 10819else 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10821$as_echo "no" >&6; } 10822fi 10823 10824 10825fi 10826if test -z "$ac_cv_prog_RANLIB"; then 10827 ac_ct_RANLIB=$RANLIB 10828 # Extract the first word of "ranlib", so it can be a program name with args. 10829set dummy ranlib; ac_word=$2 10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10831$as_echo_n "checking for $ac_word... " >&6; } 10832if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 10833 $as_echo_n "(cached) " >&6 10834else 10835 if test -n "$ac_ct_RANLIB"; then 10836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10837else 10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10839for as_dir in $PATH 10840do 10841 IFS=$as_save_IFS 10842 test -z "$as_dir" && as_dir=. 10843 for ac_exec_ext in '' $ac_executable_extensions; do 10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10845 ac_cv_prog_ac_ct_RANLIB="ranlib" 10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10847 break 2 10848 fi 10849done 10850 done 10851IFS=$as_save_IFS 10852 10853fi 10854fi 10855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10856if test -n "$ac_ct_RANLIB"; then 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10858$as_echo "$ac_ct_RANLIB" >&6; } 10859else 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10861$as_echo "no" >&6; } 10862fi 10863 10864 if test "x$ac_ct_RANLIB" = x; then 10865 RANLIB=":" 10866 else 10867 case $cross_compiling:$ac_tool_warned in 10868yes:) 10869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10871ac_tool_warned=yes ;; 10872esac 10873 RANLIB=$ac_ct_RANLIB 10874 fi 10875else 10876 RANLIB="$ac_cv_prog_RANLIB" 10877fi 10878 10879if test -n "$ac_tool_prefix"; then 10880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10881set dummy ${ac_tool_prefix}strip; ac_word=$2 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10883$as_echo_n "checking for $ac_word... " >&6; } 10884if test "${ac_cv_prog_STRIP+set}" = set; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 if test -n "$STRIP"; then 10888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10889else 10890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10891for as_dir in $PATH 10892do 10893 IFS=$as_save_IFS 10894 test -z "$as_dir" && as_dir=. 10895 for ac_exec_ext in '' $ac_executable_extensions; do 10896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10897 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10899 break 2 10900 fi 10901done 10902 done 10903IFS=$as_save_IFS 10904 10905fi 10906fi 10907STRIP=$ac_cv_prog_STRIP 10908if test -n "$STRIP"; then 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10910$as_echo "$STRIP" >&6; } 10911else 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10913$as_echo "no" >&6; } 10914fi 10915 10916 10917fi 10918if test -z "$ac_cv_prog_STRIP"; then 10919 ac_ct_STRIP=$STRIP 10920 # Extract the first word of "strip", so it can be a program name with args. 10921set dummy strip; ac_word=$2 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10923$as_echo_n "checking for $ac_word... " >&6; } 10924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 if test -n "$ac_ct_STRIP"; then 10928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10929else 10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10931for as_dir in $PATH 10932do 10933 IFS=$as_save_IFS 10934 test -z "$as_dir" && as_dir=. 10935 for ac_exec_ext in '' $ac_executable_extensions; do 10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10937 ac_cv_prog_ac_ct_STRIP="strip" 10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10939 break 2 10940 fi 10941done 10942 done 10943IFS=$as_save_IFS 10944 10945fi 10946fi 10947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10948if test -n "$ac_ct_STRIP"; then 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10950$as_echo "$ac_ct_STRIP" >&6; } 10951else 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10953$as_echo "no" >&6; } 10954fi 10955 10956 if test "x$ac_ct_STRIP" = x; then 10957 STRIP=":" 10958 else 10959 case $cross_compiling:$ac_tool_warned in 10960yes:) 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10963ac_tool_warned=yes ;; 10964esac 10965 STRIP=$ac_ct_STRIP 10966 fi 10967else 10968 STRIP="$ac_cv_prog_STRIP" 10969fi 10970 10971 10972old_CC="$CC" 10973old_CFLAGS="$CFLAGS" 10974 10975# Set sane defaults for various variables 10976test -z "$AR" && AR=ar 10977test -z "$AR_FLAGS" && AR_FLAGS=cru 10978test -z "$AS" && AS=as 10979test -z "$CC" && CC=cc 10980test -z "$LTCC" && LTCC=$CC 10981test -z "$DLLTOOL" && DLLTOOL=dlltool 10982test -z "$LD" && LD=ld 10983test -z "$LN_S" && LN_S="ln -s" 10984test -z "$MAGIC_CMD" && MAGIC_CMD=file 10985test -z "$NM" && NM=nm 10986test -z "$SED" && SED=sed 10987test -z "$OBJDUMP" && OBJDUMP=objdump 10988test -z "$RANLIB" && RANLIB=: 10989test -z "$STRIP" && STRIP=: 10990test -z "$ac_objext" && ac_objext=o 10991 10992# Determine commands to create old-style static archives. 10993old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 10994old_postinstall_cmds='chmod 644 $oldlib' 10995old_postuninstall_cmds= 10996 10997if test -n "$RANLIB"; then 10998 case $host_os in 10999 openbsd*) 11000 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 11001 ;; 11002 *) 11003 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 11004 ;; 11005 esac 11006 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 11007fi 11008 11009for cc_temp in $compiler""; do 11010 case $cc_temp in 11011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11013 \-*) ;; 11014 *) break;; 11015 esac 11016done 11017cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11018 11019 11020# Only perform the check for file, if the check method requires it 11021case $deplibs_check_method in 11022file_magic*) 11023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11025$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11026if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 11027 $as_echo_n "(cached) " >&6 11028else 11029 case $MAGIC_CMD in 11030[\\/*] | ?:[\\/]*) 11031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11032 ;; 11033*) 11034 lt_save_MAGIC_CMD="$MAGIC_CMD" 11035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11037 for ac_dir in $ac_dummy; do 11038 IFS="$lt_save_ifs" 11039 test -z "$ac_dir" && ac_dir=. 11040 if test -f $ac_dir/${ac_tool_prefix}file; then 11041 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11042 if test -n "$file_magic_test_file"; then 11043 case $deplibs_check_method in 11044 "file_magic "*) 11045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11048 $EGREP "$file_magic_regex" > /dev/null; then 11049 : 11050 else 11051 cat <<EOF 1>&2 11052 11053*** Warning: the command libtool uses to detect shared libraries, 11054*** $file_magic_cmd, produces output that libtool cannot recognize. 11055*** The result is that libtool may fail to recognize shared libraries 11056*** as such. This will affect the creation of libtool libraries that 11057*** depend on shared libraries, but programs linked with such libtool 11058*** libraries will work regardless of this problem. Nevertheless, you 11059*** may want to report the problem to your system manager and/or to 11060*** bug-libtool@gnu.org 11061 11062EOF 11063 fi ;; 11064 esac 11065 fi 11066 break 11067 fi 11068 done 11069 IFS="$lt_save_ifs" 11070 MAGIC_CMD="$lt_save_MAGIC_CMD" 11071 ;; 11072esac 11073fi 11074 11075MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11076if test -n "$MAGIC_CMD"; then 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11078$as_echo "$MAGIC_CMD" >&6; } 11079else 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11081$as_echo "no" >&6; } 11082fi 11083 11084if test -z "$lt_cv_path_MAGIC_CMD"; then 11085 if test -n "$ac_tool_prefix"; then 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11087$as_echo_n "checking for file... " >&6; } 11088if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 11089 $as_echo_n "(cached) " >&6 11090else 11091 case $MAGIC_CMD in 11092[\\/*] | ?:[\\/]*) 11093 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11094 ;; 11095*) 11096 lt_save_MAGIC_CMD="$MAGIC_CMD" 11097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11098 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11099 for ac_dir in $ac_dummy; do 11100 IFS="$lt_save_ifs" 11101 test -z "$ac_dir" && ac_dir=. 11102 if test -f $ac_dir/file; then 11103 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11104 if test -n "$file_magic_test_file"; then 11105 case $deplibs_check_method in 11106 "file_magic "*) 11107 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11110 $EGREP "$file_magic_regex" > /dev/null; then 11111 : 11112 else 11113 cat <<EOF 1>&2 11114 11115*** Warning: the command libtool uses to detect shared libraries, 11116*** $file_magic_cmd, produces output that libtool cannot recognize. 11117*** The result is that libtool may fail to recognize shared libraries 11118*** as such. This will affect the creation of libtool libraries that 11119*** depend on shared libraries, but programs linked with such libtool 11120*** libraries will work regardless of this problem. Nevertheless, you 11121*** may want to report the problem to your system manager and/or to 11122*** bug-libtool@gnu.org 11123 11124EOF 11125 fi ;; 11126 esac 11127 fi 11128 break 11129 fi 11130 done 11131 IFS="$lt_save_ifs" 11132 MAGIC_CMD="$lt_save_MAGIC_CMD" 11133 ;; 11134esac 11135fi 11136 11137MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11138if test -n "$MAGIC_CMD"; then 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11140$as_echo "$MAGIC_CMD" >&6; } 11141else 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11143$as_echo "no" >&6; } 11144fi 11145 11146 else 11147 MAGIC_CMD=: 11148 fi 11149fi 11150 11151 fi 11152 ;; 11153esac 11154 11155enable_dlopen=no 11156enable_win32_dll=no 11157 11158# Check whether --enable-libtool-lock was given. 11159if test "${enable_libtool_lock+set}" = set; then : 11160 enableval=$enable_libtool_lock; 11161fi 11162 11163test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 11164 11165 11166# Check whether --with-pic was given. 11167if test "${with_pic+set}" = set; then : 11168 withval=$with_pic; pic_mode="$withval" 11169else 11170 pic_mode=default 11171fi 11172 11173test -z "$pic_mode" && pic_mode=default 11174 11175# Use C for the default configuration in the libtool script 11176tagname= 11177lt_save_CC="$CC" 11178ac_ext=c 11179ac_cpp='$CPP $CPPFLAGS' 11180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11182ac_compiler_gnu=$ac_cv_c_compiler_gnu 11183 11184 11185# Source file extension for C test sources. 11186ac_ext=c 11187 11188# Object file extension for compiled C test sources. 11189objext=o 11190objext=$objext 11191 11192# Code to be used in simple compile tests 11193lt_simple_compile_test_code="int some_variable = 0;\n" 11194 11195# Code to be used in simple link tests 11196lt_simple_link_test_code='int main(){return(0);}\n' 11197 11198 11199# If no C compiler was specified, use CC. 11200LTCC=${LTCC-"$CC"} 11201 11202# Allow CC to be a program name with arguments. 11203compiler=$CC 11204 11205 11206# save warnings/boilerplate of simple test code 11207ac_outfile=conftest.$ac_objext 11208printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11209eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11210_lt_compiler_boilerplate=`cat conftest.err` 11211$rm conftest* 11212 11213ac_outfile=conftest.$ac_objext 11214printf "$lt_simple_link_test_code" >conftest.$ac_ext 11215eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11216_lt_linker_boilerplate=`cat conftest.err` 11217$rm conftest* 11218 11219 11220# 11221# Check for any special shared library compilation flags. 11222# 11223lt_prog_cc_shlib= 11224if test "$GCC" = no; then 11225 case $host_os in 11226 sco3.2v5*) 11227 lt_prog_cc_shlib='-belf' 11228 ;; 11229 esac 11230fi 11231if test -n "$lt_prog_cc_shlib"; then 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 11233$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 11234 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 11235 else 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 11237$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 11238 lt_cv_prog_cc_can_build_shared=no 11239 fi 11240fi 11241 11242 11243# 11244# Check to make sure the static flag actually works. 11245# 11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5 11247$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; } 11248if test "${lt_prog_compiler_static_works+set}" = set; then : 11249 $as_echo_n "(cached) " >&6 11250else 11251 lt_prog_compiler_static_works=no 11252 save_LDFLAGS="$LDFLAGS" 11253 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 11254 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11256 # The linker can only warn and ignore the option if not recognized 11257 # So say no if there are warnings 11258 if test -s conftest.err; then 11259 # Append any errors to the config.log. 11260 cat conftest.err 1>&5 11261 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 11262 $SED '/^$/d' conftest.err >conftest.er2 11263 if diff conftest.exp conftest.er2 >/dev/null; then 11264 lt_prog_compiler_static_works=yes 11265 fi 11266 else 11267 lt_prog_compiler_static_works=yes 11268 fi 11269 fi 11270 $rm conftest* 11271 LDFLAGS="$save_LDFLAGS" 11272 11273fi 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5 11275$as_echo "$lt_prog_compiler_static_works" >&6; } 11276 11277if test x"$lt_prog_compiler_static_works" = xyes; then 11278 : 11279else 11280 lt_prog_compiler_static= 11281fi 11282 11283 11284 11285 11286lt_prog_compiler_no_builtin_flag= 11287 11288if test "$GCC" = yes; then 11289 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 11290 11291 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11293$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11294if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 11295 $as_echo_n "(cached) " >&6 11296else 11297 lt_cv_prog_compiler_rtti_exceptions=no 11298 ac_outfile=conftest.$ac_objext 11299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11300 lt_compiler_flag="-fno-rtti -fno-exceptions" 11301 # Insert the option either (1) after the last *FLAGS variable, or 11302 # (2) before a word containing "conftest.", or (3) at the end. 11303 # Note that $ac_compile itself does not contain backslashes and begins 11304 # with a dollar sign (not a hyphen), so the echo should work correctly. 11305 # The option is referenced via a variable to avoid confusing sed. 11306 lt_compile=`echo "$ac_compile" | $SED \ 11307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11309 -e 's:$: $lt_compiler_flag:'` 11310 (eval echo "\"\$as_me:11310: $lt_compile\"" >&5) 11311 (eval "$lt_compile" 2>conftest.err) 11312 ac_status=$? 11313 cat conftest.err >&5 11314 echo "$as_me:11314: \$? = $ac_status" >&5 11315 if (exit $ac_status) && test -s "$ac_outfile"; then 11316 # The compiler can only warn and ignore the option if not recognized 11317 # So say no if there are warnings other than the usual output. 11318 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11319 $SED '/^$/d' conftest.err >conftest.er2 11320 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11321 lt_cv_prog_compiler_rtti_exceptions=yes 11322 fi 11323 fi 11324 $rm conftest* 11325 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11328$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11329 11330if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11332else 11333 : 11334fi 11335 11336fi 11337 11338lt_prog_compiler_wl= 11339lt_prog_compiler_pic= 11340lt_prog_compiler_static= 11341 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11343$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11344 11345 if test "$GCC" = yes; then 11346 lt_prog_compiler_wl='-Wl,' 11347 lt_prog_compiler_static='-static' 11348 11349 case $host_os in 11350 aix*) 11351 # All AIX code is PIC. 11352 if test "$host_cpu" = ia64; then 11353 # AIX 5 now supports IA64 processor 11354 lt_prog_compiler_static='-Bstatic' 11355 fi 11356 ;; 11357 11358 amigaos*) 11359 # FIXME: we need at least 68020 code to build shared libraries, but 11360 # adding the `-m68020' flag to GCC prevents building anything better, 11361 # like `-m68040'. 11362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11363 ;; 11364 11365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11366 # PIC is the default for these OSes. 11367 ;; 11368 11369 mingw* | pw32* | os2*) 11370 # This hack is so that the source file can tell whether it is being 11371 # built for inclusion in a dll (and should export symbols for example). 11372 lt_prog_compiler_pic='-DDLL_EXPORT' 11373 ;; 11374 11375 darwin* | rhapsody*) 11376 # PIC is the default on this platform 11377 # Common symbols not allowed in MH_DYLIB files 11378 lt_prog_compiler_pic='-fno-common' 11379 ;; 11380 11381 msdosdjgpp*) 11382 # Just because we use GCC doesn't mean we suddenly get shared libraries 11383 # on systems that don't support them. 11384 lt_prog_compiler_can_build_shared=no 11385 enable_shared=no 11386 ;; 11387 11388 sysv4*MP*) 11389 if test -d /usr/nec; then 11390 lt_prog_compiler_pic=-Kconform_pic 11391 fi 11392 ;; 11393 11394 hpux*) 11395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11396 # not for PA HP-UX. 11397 case $host_cpu in 11398 hppa*64*|ia64*) 11399 # +Z the default 11400 ;; 11401 *) 11402 lt_prog_compiler_pic='-fPIC' 11403 ;; 11404 esac 11405 ;; 11406 11407 *) 11408 lt_prog_compiler_pic='-fPIC' 11409 ;; 11410 esac 11411 else 11412 # PORTME Check for flag to pass linker flags through the system compiler. 11413 case $host_os in 11414 aix*) 11415 lt_prog_compiler_wl='-Wl,' 11416 if test "$host_cpu" = ia64; then 11417 # AIX 5 now supports IA64 processor 11418 lt_prog_compiler_static='-Bstatic' 11419 else 11420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11421 fi 11422 ;; 11423 darwin*) 11424 # PIC is the default on this platform 11425 # Common symbols not allowed in MH_DYLIB files 11426 case $cc_basename in 11427 xlc*) 11428 lt_prog_compiler_pic='-qnocommon' 11429 lt_prog_compiler_wl='-Wl,' 11430 ;; 11431 esac 11432 ;; 11433 11434 mingw* | pw32* | os2*) 11435 # This hack is so that the source file can tell whether it is being 11436 # built for inclusion in a dll (and should export symbols for example). 11437 lt_prog_compiler_pic='-DDLL_EXPORT' 11438 ;; 11439 11440 hpux9* | hpux10* | hpux11*) 11441 lt_prog_compiler_wl='-Wl,' 11442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11443 # not for PA HP-UX. 11444 case $host_cpu in 11445 hppa*64*|ia64*) 11446 # +Z the default 11447 ;; 11448 *) 11449 lt_prog_compiler_pic='+Z' 11450 ;; 11451 esac 11452 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11453 lt_prog_compiler_static='${wl}-a ${wl}archive' 11454 ;; 11455 11456 irix5* | irix6* | nonstopux*) 11457 lt_prog_compiler_wl='-Wl,' 11458 # PIC (with -KPIC) is the default. 11459 lt_prog_compiler_static='-non_shared' 11460 ;; 11461 11462 newsos6) 11463 lt_prog_compiler_pic='-KPIC' 11464 lt_prog_compiler_static='-Bstatic' 11465 ;; 11466 11467 linux*) 11468 case $cc_basename in 11469 icc* | ecc*) 11470 lt_prog_compiler_wl='-Wl,' 11471 lt_prog_compiler_pic='-KPIC' 11472 lt_prog_compiler_static='-static' 11473 ;; 11474 pgcc* | pgf77* | pgf90* | pgf95*) 11475 # Portland Group compilers (*not* the Pentium gcc compiler, 11476 # which looks to be a dead project) 11477 lt_prog_compiler_wl='-Wl,' 11478 lt_prog_compiler_pic='-fpic' 11479 lt_prog_compiler_static='-Bstatic' 11480 ;; 11481 ccc*) 11482 lt_prog_compiler_wl='-Wl,' 11483 # All Alpha code is PIC. 11484 lt_prog_compiler_static='-non_shared' 11485 ;; 11486 esac 11487 ;; 11488 11489 osf3* | osf4* | osf5*) 11490 lt_prog_compiler_wl='-Wl,' 11491 # All OSF/1 code is PIC. 11492 lt_prog_compiler_static='-non_shared' 11493 ;; 11494 11495 sco3.2v5*) 11496 lt_prog_compiler_pic='-Kpic' 11497 lt_prog_compiler_static='-dn' 11498 ;; 11499 11500 solaris*) 11501 lt_prog_compiler_pic='-KPIC' 11502 lt_prog_compiler_static='-Bstatic' 11503 case $cc_basename in 11504 f77* | f90* | f95*) 11505 lt_prog_compiler_wl='-Qoption ld ';; 11506 *) 11507 lt_prog_compiler_wl='-Wl,';; 11508 esac 11509 ;; 11510 11511 sunos4*) 11512 lt_prog_compiler_wl='-Qoption ld ' 11513 lt_prog_compiler_pic='-PIC' 11514 lt_prog_compiler_static='-Bstatic' 11515 ;; 11516 11517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11518 lt_prog_compiler_wl='-Wl,' 11519 lt_prog_compiler_pic='-KPIC' 11520 lt_prog_compiler_static='-Bstatic' 11521 ;; 11522 11523 sysv4*MP*) 11524 if test -d /usr/nec ;then 11525 lt_prog_compiler_pic='-Kconform_pic' 11526 lt_prog_compiler_static='-Bstatic' 11527 fi 11528 ;; 11529 11530 unicos*) 11531 lt_prog_compiler_wl='-Wl,' 11532 lt_prog_compiler_can_build_shared=no 11533 ;; 11534 11535 uts4*) 11536 lt_prog_compiler_pic='-pic' 11537 lt_prog_compiler_static='-Bstatic' 11538 ;; 11539 11540 *) 11541 lt_prog_compiler_can_build_shared=no 11542 ;; 11543 esac 11544 fi 11545 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 11547$as_echo "$lt_prog_compiler_pic" >&6; } 11548 11549# 11550# Check to make sure the PIC flag actually works. 11551# 11552if test -n "$lt_prog_compiler_pic"; then 11553 11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11555$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11556if test "${lt_prog_compiler_pic_works+set}" = set; then : 11557 $as_echo_n "(cached) " >&6 11558else 11559 lt_prog_compiler_pic_works=no 11560 ac_outfile=conftest.$ac_objext 11561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11562 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11563 # Insert the option either (1) after the last *FLAGS variable, or 11564 # (2) before a word containing "conftest.", or (3) at the end. 11565 # Note that $ac_compile itself does not contain backslashes and begins 11566 # with a dollar sign (not a hyphen), so the echo should work correctly. 11567 # The option is referenced via a variable to avoid confusing sed. 11568 lt_compile=`echo "$ac_compile" | $SED \ 11569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11571 -e 's:$: $lt_compiler_flag:'` 11572 (eval echo "\"\$as_me:11572: $lt_compile\"" >&5) 11573 (eval "$lt_compile" 2>conftest.err) 11574 ac_status=$? 11575 cat conftest.err >&5 11576 echo "$as_me:11576: \$? = $ac_status" >&5 11577 if (exit $ac_status) && test -s "$ac_outfile"; then 11578 # The compiler can only warn and ignore the option if not recognized 11579 # So say no if there are warnings other than the usual output. 11580 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11581 $SED '/^$/d' conftest.err >conftest.er2 11582 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11583 lt_prog_compiler_pic_works=yes 11584 fi 11585 fi 11586 $rm conftest* 11587 11588fi 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5 11590$as_echo "$lt_prog_compiler_pic_works" >&6; } 11591 11592if test x"$lt_prog_compiler_pic_works" = xyes; then 11593 case $lt_prog_compiler_pic in 11594 "" | " "*) ;; 11595 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11596 esac 11597else 11598 lt_prog_compiler_pic= 11599 lt_prog_compiler_can_build_shared=no 11600fi 11601 11602fi 11603case $host_os in 11604 # For platforms which do not support PIC, -DPIC is meaningless: 11605 *djgpp*) 11606 lt_prog_compiler_pic= 11607 ;; 11608 *) 11609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11610 ;; 11611esac 11612 11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11615if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 11616 $as_echo_n "(cached) " >&6 11617else 11618 lt_cv_prog_compiler_c_o=no 11619 $rm -r conftest 2>/dev/null 11620 mkdir conftest 11621 cd conftest 11622 mkdir out 11623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11624 11625 lt_compiler_flag="-o out/conftest2.$ac_objext" 11626 # Insert the option either (1) after the last *FLAGS variable, or 11627 # (2) before a word containing "conftest.", or (3) at the end. 11628 # Note that $ac_compile itself does not contain backslashes and begins 11629 # with a dollar sign (not a hyphen), so the echo should work correctly. 11630 lt_compile=`echo "$ac_compile" | $SED \ 11631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11633 -e 's:$: $lt_compiler_flag:'` 11634 (eval echo "\"\$as_me:11634: $lt_compile\"" >&5) 11635 (eval "$lt_compile" 2>out/conftest.err) 11636 ac_status=$? 11637 cat out/conftest.err >&5 11638 echo "$as_me:11638: \$? = $ac_status" >&5 11639 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11640 then 11641 # The compiler can only warn and ignore the option if not recognized 11642 # So say no if there are warnings 11643 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11644 $SED '/^$/d' out/conftest.err >out/conftest.er2 11645 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11646 lt_cv_prog_compiler_c_o=yes 11647 fi 11648 fi 11649 chmod u+w . 2>&5 11650 $rm conftest* 11651 # SGI C++ compiler will create directory out/ii_files/ for 11652 # template instantiation 11653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11654 $rm out/* && rmdir out 11655 cd .. 11656 rmdir conftest 11657 $rm conftest* 11658 11659fi 11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11661$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11662 11663 11664hard_links="nottested" 11665if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11666 # do not overwrite the value of need_locks provided by the user 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11668$as_echo_n "checking if we can lock with hard links... " >&6; } 11669 hard_links=yes 11670 $rm conftest* 11671 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11672 touch conftest.a 11673 ln conftest.a conftest.b 2>&5 || hard_links=no 11674 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11676$as_echo "$hard_links" >&6; } 11677 if test "$hard_links" = no; then 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11679$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11680 need_locks=warn 11681 fi 11682else 11683 need_locks=no 11684fi 11685 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11687$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11688 11689 runpath_var= 11690 allow_undefined_flag= 11691 enable_shared_with_static_runtimes=no 11692 archive_cmds= 11693 archive_expsym_cmds= 11694 old_archive_From_new_cmds= 11695 old_archive_from_expsyms_cmds= 11696 export_dynamic_flag_spec= 11697 whole_archive_flag_spec= 11698 thread_safe_flag_spec= 11699 hardcode_libdir_flag_spec= 11700 hardcode_libdir_flag_spec_ld= 11701 hardcode_libdir_separator= 11702 hardcode_direct=no 11703 hardcode_minus_L=no 11704 hardcode_shlibpath_var=unsupported 11705 link_all_deplibs=unknown 11706 hardcode_automatic=no 11707 module_cmds= 11708 module_expsym_cmds= 11709 always_export_symbols=no 11710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11711 # include_expsyms should be a list of space-separated symbols to be *always* 11712 # included in the symbol list 11713 include_expsyms= 11714 # exclude_expsyms can be an extended regexp of symbols to exclude 11715 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11717 # as well as any symbol that contains `d'. 11718 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 11719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11720 # platforms (ab)use it in PIC code, but their linkers get confused if 11721 # the symbol is explicitly referenced. Since portable code cannot 11722 # rely on this symbol name, it's probably fine to never include it in 11723 # preloaded symbol tables. 11724 extract_expsyms_cmds= 11725 # Just being paranoid about ensuring that cc_basename is set. 11726 for cc_temp in $compiler""; do 11727 case $cc_temp in 11728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11730 \-*) ;; 11731 *) break;; 11732 esac 11733done 11734cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11735 11736 case $host_os in 11737 cygwin* | mingw* | pw32*) 11738 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11739 # When not using gcc, we currently assume that we are using 11740 # Microsoft Visual C++. 11741 if test "$GCC" != yes; then 11742 with_gnu_ld=no 11743 fi 11744 ;; 11745 openbsd*) 11746 with_gnu_ld=no 11747 ;; 11748 esac 11749 11750 ld_shlibs=yes 11751 if test "$with_gnu_ld" = yes; then 11752 # If archive_cmds runs LD, not CC, wlarc should be empty 11753 wlarc='${wl}' 11754 11755 # Set some defaults for GNU ld with shared library support. These 11756 # are reset later if shared libraries are not supported. Putting them 11757 # here allows them to be overridden if necessary. 11758 runpath_var=LD_RUN_PATH 11759 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 11760 export_dynamic_flag_spec='${wl}--export-dynamic' 11761 # ancient GNU ld didn't support --whole-archive et. al. 11762 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 11763 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11764 else 11765 whole_archive_flag_spec= 11766 fi 11767 supports_anon_versioning=no 11768 case `$LD -v 2>/dev/null` in 11769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11772 *\ 2.11.*) ;; # other 2.11 versions 11773 *) supports_anon_versioning=yes ;; 11774 esac 11775 11776 # See if GNU ld supports shared libraries. 11777 case $host_os in 11778 aix3* | aix4* | aix5*) 11779 # On AIX/PPC, the GNU linker is very broken 11780 if test "$host_cpu" != ia64; then 11781 ld_shlibs=no 11782 cat <<EOF 1>&2 11783 11784*** Warning: the GNU linker, at least up to release 2.9.1, is reported 11785*** to be unable to reliably create shared libraries on AIX. 11786*** Therefore, libtool is disabling shared libraries support. If you 11787*** really care for shared libraries, you may want to modify your PATH 11788*** so that a non-GNU linker is found, and then restart. 11789 11790EOF 11791 fi 11792 ;; 11793 11794 amigaos*) 11795 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)' 11796 hardcode_libdir_flag_spec='-L$libdir' 11797 hardcode_minus_L=yes 11798 11799 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 11800 # that the semantics of dynamic libraries on AmigaOS, at least up 11801 # to version 4, is to share data among multiple programs linked 11802 # with the same dynamic library. Since this doesn't match the 11803 # behavior of shared libraries on other platforms, we can't use 11804 # them. 11805 ld_shlibs=no 11806 ;; 11807 11808 beos*) 11809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11810 allow_undefined_flag=unsupported 11811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11812 # support --undefined. This deserves some investigation. FIXME 11813 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11814 else 11815 ld_shlibs=no 11816 fi 11817 ;; 11818 11819 cygwin* | mingw* | pw32*) 11820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11821 # as there is no search path for DLLs. 11822 hardcode_libdir_flag_spec='-L$libdir' 11823 allow_undefined_flag=unsupported 11824 always_export_symbols=no 11825 enable_shared_with_static_runtimes=yes 11826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11827 11828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11830 # If the export-symbols file already is a .def file (1st line 11831 # is EXPORTS), use it as is; otherwise, prepend... 11832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11833 cp $export_symbols $output_objdir/$soname.def; 11834 else 11835 echo EXPORTS > $output_objdir/$soname.def; 11836 cat $export_symbols >> $output_objdir/$soname.def; 11837 fi~ 11838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11839 else 11840 ld_shlibs=no 11841 fi 11842 ;; 11843 11844 linux*) 11845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11846 tmp_addflag= 11847 case $cc_basename,$host_cpu in 11848 pgcc*) # Portland Group C compiler 11849 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' 11850 tmp_addflag=' $pic_flag' 11851 ;; 11852 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 11853 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' 11854 tmp_addflag=' $pic_flag -Mnomain' ;; 11855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11856 tmp_addflag=' -i_dynamic' ;; 11857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11858 tmp_addflag=' -i_dynamic -nofor_main' ;; 11859 ifc* | ifort*) # Intel Fortran compiler 11860 tmp_addflag=' -nofor_main' ;; 11861 esac 11862 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11863 11864 if test $supports_anon_versioning = yes; then 11865 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11867 $echo "local: *; };" >> $output_objdir/$libname.ver~ 11868 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11869 fi 11870 else 11871 ld_shlibs=no 11872 fi 11873 ;; 11874 11875 netbsd*) 11876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11878 wlarc= 11879 else 11880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11882 fi 11883 ;; 11884 11885 solaris* | sysv5*) 11886 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 11887 ld_shlibs=no 11888 cat <<EOF 1>&2 11889 11890*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11891*** create shared libraries on Solaris systems. Therefore, libtool 11892*** is disabling shared libraries support. We urge you to upgrade GNU 11893*** binutils to release 2.9.1 or newer. Another option is to modify 11894*** your PATH or compiler configuration so that the native linker is 11895*** used, and then restart. 11896 11897EOF 11898 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11901 else 11902 ld_shlibs=no 11903 fi 11904 ;; 11905 11906 sunos4*) 11907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11908 wlarc= 11909 hardcode_direct=yes 11910 hardcode_shlibpath_var=no 11911 ;; 11912 11913 *) 11914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11917 else 11918 ld_shlibs=no 11919 fi 11920 ;; 11921 esac 11922 11923 if test "$ld_shlibs" = no; then 11924 runpath_var= 11925 hardcode_libdir_flag_spec= 11926 export_dynamic_flag_spec= 11927 whole_archive_flag_spec= 11928 fi 11929 else 11930 # PORTME fill in a description of your system's linker (not GNU ld) 11931 case $host_os in 11932 aix3*) 11933 allow_undefined_flag=unsupported 11934 always_export_symbols=yes 11935 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' 11936 # Note: this linker hardcodes the directories in LIBPATH if there 11937 # are no directories specified by -L. 11938 hardcode_minus_L=yes 11939 if test "$GCC" = yes && test -z "$link_static_flag"; then 11940 # Neither direct hardcoding nor static linking is supported with a 11941 # broken collect2. 11942 hardcode_direct=unsupported 11943 fi 11944 ;; 11945 11946 aix4* | aix5*) 11947 if test "$host_cpu" = ia64; then 11948 # On IA64, the linker does run time linking by default, so we don't 11949 # have to do anything special. 11950 aix_use_runtimelinking=no 11951 exp_sym_flag='-Bexport' 11952 no_entry_flag="" 11953 else 11954 # If we're using GNU nm, then we don't want the "-C" option. 11955 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11956 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11957 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' 11958 else 11959 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' 11960 fi 11961 aix_use_runtimelinking=no 11962 11963 # Test if we are trying to use run time linking or normal 11964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11965 # need to do runtime linking. 11966 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11967 for ld_flag in $LDFLAGS; do 11968 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11969 aix_use_runtimelinking=yes 11970 break 11971 fi 11972 done 11973 esac 11974 11975 exp_sym_flag='-bexport' 11976 no_entry_flag='-bnoentry' 11977 fi 11978 11979 # When large executables or shared objects are built, AIX ld can 11980 # have problems creating the table of contents. If linking a library 11981 # or program results in "error TOC overflow" add -mminimal-toc to 11982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11984 11985 archive_cmds='' 11986 hardcode_direct=yes 11987 hardcode_libdir_separator=':' 11988 link_all_deplibs=yes 11989 11990 if test "$GCC" = yes; then 11991 case $host_os in aix4.[012]|aix4.[012].*) 11992 # We only want to do this on AIX 4.2 and lower, the check 11993 # below for broken collect2 doesn't work under 4.3+ 11994 collect2name=`${CC} -print-prog-name=collect2` 11995 if test -f "$collect2name" && \ 11996 strings "$collect2name" | grep resolve_lib_name >/dev/null 11997 then 11998 # We have reworked collect2 11999 hardcode_direct=yes 12000 else 12001 # We have old collect2 12002 hardcode_direct=unsupported 12003 # It fails to find uninstalled libraries when the uninstalled 12004 # path is not listed in the libpath. Setting hardcode_minus_L 12005 # to unsupported forces relinking 12006 hardcode_minus_L=yes 12007 hardcode_libdir_flag_spec='-L$libdir' 12008 hardcode_libdir_separator= 12009 fi 12010 esac 12011 shared_flag='-shared' 12012 if test "$aix_use_runtimelinking" = yes; then 12013 shared_flag="$shared_flag "'${wl}-G' 12014 fi 12015 else 12016 # not using gcc 12017 if test "$host_cpu" = ia64; then 12018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12019 # chokes on -Wl,-G. The following line is correct: 12020 shared_flag='-G' 12021 else 12022 if test "$aix_use_runtimelinking" = yes; then 12023 shared_flag='${wl}-G' 12024 else 12025 shared_flag='${wl}-bM:SRE' 12026 fi 12027 fi 12028 fi 12029 12030 # It seems that -bexpall does not export symbols beginning with 12031 # underscore (_), so it is better to generate a list of symbols to export. 12032 always_export_symbols=yes 12033 if test "$aix_use_runtimelinking" = yes; then 12034 # Warning - without using the other runtime loading flags (-brtl), 12035 # -berok will link without error, but may produce a broken library. 12036 allow_undefined_flag='-berok' 12037 # Determine the default libpath from the value encoded in an empty executable. 12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12039/* end confdefs.h. */ 12040 12041int 12042main () 12043{ 12044 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049if ac_fn_c_try_link "$LINENO"; then : 12050 12051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12052}'` 12053# Check for a 64-bit object if we didn't find anything. 12054if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12055}'`; fi 12056fi 12057rm -f core conftest.err conftest.$ac_objext \ 12058 conftest$ac_exeext conftest.$ac_ext 12059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12060 12061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12062 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12063 else 12064 if test "$host_cpu" = ia64; then 12065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12066 allow_undefined_flag="-z nodefs" 12067 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 12068 else 12069 # Determine the default libpath from the value encoded in an empty executable. 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12071/* end confdefs.h. */ 12072 12073int 12074main () 12075{ 12076 12077 ; 12078 return 0; 12079} 12080_ACEOF 12081if ac_fn_c_try_link "$LINENO"; then : 12082 12083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12084}'` 12085# Check for a 64-bit object if we didn't find anything. 12086if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12087}'`; fi 12088fi 12089rm -f core conftest.err conftest.$ac_objext \ 12090 conftest$ac_exeext conftest.$ac_ext 12091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12092 12093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12094 # Warning - without using the other run time loading flags, 12095 # -berok will link without error, but may produce a broken library. 12096 no_undefined_flag=' ${wl}-bernotok' 12097 allow_undefined_flag=' ${wl}-berok' 12098 # -bexpall does not export symbols beginning with underscore (_) 12099 always_export_symbols=yes 12100 # Exported symbols can be pulled into shared objects from archives 12101 whole_archive_flag_spec=' ' 12102 archive_cmds_need_lc=yes 12103 # This is similar to how AIX traditionally builds its shared libraries. 12104 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12105 fi 12106 fi 12107 ;; 12108 12109 amigaos*) 12110 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)' 12111 hardcode_libdir_flag_spec='-L$libdir' 12112 hardcode_minus_L=yes 12113 # see comment about different semantics on the GNU ld section 12114 ld_shlibs=no 12115 ;; 12116 12117 bsdi[45]*) 12118 export_dynamic_flag_spec=-rdynamic 12119 ;; 12120 12121 cygwin* | mingw* | pw32*) 12122 # When not using gcc, we currently assume that we are using 12123 # Microsoft Visual C++. 12124 # hardcode_libdir_flag_spec is actually meaningless, as there is 12125 # no search path for DLLs. 12126 hardcode_libdir_flag_spec=' ' 12127 allow_undefined_flag=unsupported 12128 # Tell ltmain to make .lib files, not .a files. 12129 libext=lib 12130 # Tell ltmain to make .dll files, not .so files. 12131 shrext_cmds=".dll" 12132 # FIXME: Setting linknames here is a bad hack. 12133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 12134 # The linker will automatically build a .lib file if we build a DLL. 12135 old_archive_From_new_cmds='true' 12136 # FIXME: Should let the user specify the lib program. 12137 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 12138 fix_srcfile_path='`cygpath -w "$srcfile"`' 12139 enable_shared_with_static_runtimes=yes 12140 ;; 12141 12142 darwin* | rhapsody*) 12143 case $host_os in 12144 rhapsody* | darwin1.[012]) 12145 allow_undefined_flag='${wl}-undefined ${wl}suppress' 12146 ;; 12147 *) # Darwin 1.3 on 12148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12149 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12150 else 12151 case ${MACOSX_DEPLOYMENT_TARGET} in 12152 10.[012]) 12153 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12154 ;; 12155 10.*) 12156 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 12157 ;; 12158 esac 12159 fi 12160 ;; 12161 esac 12162 archive_cmds_need_lc=no 12163 hardcode_direct=no 12164 hardcode_automatic=yes 12165 hardcode_shlibpath_var=unsupported 12166 whole_archive_flag_spec='' 12167 link_all_deplibs=yes 12168 if test "$GCC" = yes ; then 12169 output_verbose_link_cmd='echo' 12170 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12171 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12173 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12174 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12175 else 12176 case $cc_basename in 12177 xlc*) 12178 output_verbose_link_cmd='echo' 12179 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 12180 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12182 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12183 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12184 ;; 12185 *) 12186 ld_shlibs=no 12187 ;; 12188 esac 12189 fi 12190 ;; 12191 12192 dgux*) 12193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12194 hardcode_libdir_flag_spec='-L$libdir' 12195 hardcode_shlibpath_var=no 12196 ;; 12197 12198 freebsd1*) 12199 ld_shlibs=no 12200 ;; 12201 12202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12203 # support. Future versions do this automatically, but an explicit c++rt0.o 12204 # does not break anything, and helps significantly (at the cost of a little 12205 # extra space). 12206 freebsd2.2*) 12207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12208 hardcode_libdir_flag_spec='-R$libdir' 12209 hardcode_direct=yes 12210 hardcode_shlibpath_var=no 12211 ;; 12212 12213 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12214 freebsd2*) 12215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12216 hardcode_direct=yes 12217 hardcode_minus_L=yes 12218 hardcode_shlibpath_var=no 12219 ;; 12220 12221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12222 freebsd* | kfreebsd*-gnu | dragonfly*) 12223 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12224 hardcode_libdir_flag_spec='-R$libdir' 12225 hardcode_direct=yes 12226 hardcode_shlibpath_var=no 12227 ;; 12228 12229 hpux9*) 12230 if test "$GCC" = yes; then 12231 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' 12232 else 12233 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' 12234 fi 12235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12236 hardcode_libdir_separator=: 12237 hardcode_direct=yes 12238 12239 # hardcode_minus_L: Not really in the search PATH, 12240 # but as the default location of the library. 12241 hardcode_minus_L=yes 12242 export_dynamic_flag_spec='${wl}-E' 12243 ;; 12244 12245 hpux10* | hpux11*) 12246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 12247 case $host_cpu in 12248 hppa*64*|ia64*) 12249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12250 ;; 12251 *) 12252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12253 ;; 12254 esac 12255 else 12256 case $host_cpu in 12257 hppa*64*|ia64*) 12258 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 12259 ;; 12260 *) 12261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12262 ;; 12263 esac 12264 fi 12265 if test "$with_gnu_ld" = no; then 12266 case $host_cpu in 12267 hppa*64*) 12268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12269 hardcode_libdir_flag_spec_ld='+b $libdir' 12270 hardcode_libdir_separator=: 12271 hardcode_direct=no 12272 hardcode_shlibpath_var=no 12273 ;; 12274 ia64*) 12275 hardcode_libdir_flag_spec='-L$libdir' 12276 hardcode_direct=no 12277 hardcode_shlibpath_var=no 12278 12279 # hardcode_minus_L: Not really in the search PATH, 12280 # but as the default location of the library. 12281 hardcode_minus_L=yes 12282 ;; 12283 *) 12284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12285 hardcode_libdir_separator=: 12286 hardcode_direct=yes 12287 export_dynamic_flag_spec='${wl}-E' 12288 12289 # hardcode_minus_L: Not really in the search PATH, 12290 # but as the default location of the library. 12291 hardcode_minus_L=yes 12292 ;; 12293 esac 12294 fi 12295 ;; 12296 12297 irix5* | irix6* | nonstopux*) 12298 if test "$GCC" = yes; then 12299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12300 else 12301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12302 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12303 fi 12304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12305 hardcode_libdir_separator=: 12306 link_all_deplibs=yes 12307 ;; 12308 12309 netbsd*) 12310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12312 else 12313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12314 fi 12315 hardcode_libdir_flag_spec='-R$libdir' 12316 hardcode_direct=yes 12317 hardcode_shlibpath_var=no 12318 ;; 12319 12320 newsos6) 12321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12322 hardcode_direct=yes 12323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12324 hardcode_libdir_separator=: 12325 hardcode_shlibpath_var=no 12326 ;; 12327 12328 openbsd*) 12329 hardcode_direct=yes 12330 hardcode_shlibpath_var=no 12331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12335 export_dynamic_flag_spec='${wl}-E' 12336 else 12337 case $host_os in 12338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12340 hardcode_libdir_flag_spec='-R$libdir' 12341 ;; 12342 *) 12343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12345 ;; 12346 esac 12347 fi 12348 ;; 12349 12350 os2*) 12351 hardcode_libdir_flag_spec='-L$libdir' 12352 hardcode_minus_L=yes 12353 allow_undefined_flag=unsupported 12354 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' 12355 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12356 ;; 12357 12358 osf3*) 12359 if test "$GCC" = yes; then 12360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12362 else 12363 allow_undefined_flag=' -expect_unresolved \*' 12364 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12365 fi 12366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12367 hardcode_libdir_separator=: 12368 ;; 12369 12370 osf4* | osf5*) # as osf3* with the addition of -msym flag 12371 if test "$GCC" = yes; then 12372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12375 else 12376 allow_undefined_flag=' -expect_unresolved \*' 12377 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12378 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 12379 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 12380 12381 # Both c and cxx compiler support -rpath directly 12382 hardcode_libdir_flag_spec='-rpath $libdir' 12383 fi 12384 hardcode_libdir_separator=: 12385 ;; 12386 12387 sco3.2v5*) 12388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12389 hardcode_shlibpath_var=no 12390 export_dynamic_flag_spec='${wl}-Bexport' 12391 runpath_var=LD_RUN_PATH 12392 hardcode_runpath_var=yes 12393 ;; 12394 12395 solaris*) 12396 no_undefined_flag=' -z text' 12397 if test "$GCC" = yes; then 12398 wlarc='${wl}' 12399 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12400 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 12402 else 12403 wlarc='' 12404 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12405 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 12407 fi 12408 hardcode_libdir_flag_spec='-R$libdir' 12409 hardcode_shlibpath_var=no 12410 case $host_os in 12411 solaris2.[0-5] | solaris2.[0-5].*) ;; 12412 *) 12413 # The compiler driver will combine linker options so we 12414 # cannot just pass the convience library names through 12415 # without $wl, iff we do not link with $LD. 12416 # Luckily, gcc supports the same syntax we need for Sun Studio. 12417 # Supported since Solaris 2.6 (maybe 2.5.1?) 12418 case $wlarc in 12419 '') 12420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 12421 *) 12422 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 12423 esac ;; 12424 esac 12425 link_all_deplibs=yes 12426 ;; 12427 12428 sunos4*) 12429 if test "x$host_vendor" = xsequent; then 12430 # Use $CC to link under sequent, because it throws in some extra .o 12431 # files that make .init and .fini sections work. 12432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12433 else 12434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12435 fi 12436 hardcode_libdir_flag_spec='-L$libdir' 12437 hardcode_direct=yes 12438 hardcode_minus_L=yes 12439 hardcode_shlibpath_var=no 12440 ;; 12441 12442 sysv4) 12443 case $host_vendor in 12444 sni) 12445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12446 hardcode_direct=yes # is this really true??? 12447 ;; 12448 siemens) 12449 ## LD is ld it makes a PLAMLIB 12450 ## CC just makes a GrossModule. 12451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12452 reload_cmds='$CC -r -o $output$reload_objs' 12453 hardcode_direct=no 12454 ;; 12455 motorola) 12456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12458 ;; 12459 esac 12460 runpath_var='LD_RUN_PATH' 12461 hardcode_shlibpath_var=no 12462 ;; 12463 12464 sysv4.3*) 12465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12466 hardcode_shlibpath_var=no 12467 export_dynamic_flag_spec='-Bexport' 12468 ;; 12469 12470 sysv4*MP*) 12471 if test -d /usr/nec; then 12472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12473 hardcode_shlibpath_var=no 12474 runpath_var=LD_RUN_PATH 12475 hardcode_runpath_var=yes 12476 ld_shlibs=yes 12477 fi 12478 ;; 12479 12480 sysv4.2uw2*) 12481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12482 hardcode_direct=yes 12483 hardcode_minus_L=no 12484 hardcode_shlibpath_var=no 12485 hardcode_runpath_var=yes 12486 runpath_var=LD_RUN_PATH 12487 ;; 12488 12489 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12490 no_undefined_flag='${wl}-z ${wl}text' 12491 if test "$GCC" = yes; then 12492 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12493 else 12494 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12495 fi 12496 runpath_var='LD_RUN_PATH' 12497 hardcode_shlibpath_var=no 12498 ;; 12499 12500 sysv5*) 12501 no_undefined_flag=' -z text' 12502 # $CC -shared without GNU ld will not create a library from C++ 12503 # object files and a static libstdc++, better avoid it by now 12504 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12505 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 12507 hardcode_libdir_flag_spec= 12508 hardcode_shlibpath_var=no 12509 runpath_var='LD_RUN_PATH' 12510 ;; 12511 12512 uts4*) 12513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12514 hardcode_libdir_flag_spec='-L$libdir' 12515 hardcode_shlibpath_var=no 12516 ;; 12517 12518 *) 12519 ld_shlibs=no 12520 ;; 12521 esac 12522 fi 12523 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12525$as_echo "$ld_shlibs" >&6; } 12526test "$ld_shlibs" = no && can_build_shared=no 12527 12528variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12529if test "$GCC" = yes; then 12530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12531fi 12532 12533# 12534# Do we need to explicitly link libc? 12535# 12536case "x$archive_cmds_need_lc" in 12537x|xyes) 12538 # Assume -lc should be added 12539 archive_cmds_need_lc=yes 12540 12541 if test "$enable_shared" = yes && test "$GCC" = yes; then 12542 case $archive_cmds in 12543 *'~'*) 12544 # FIXME: we may have to deal with multi-command sequences. 12545 ;; 12546 '$CC '*) 12547 # Test whether the compiler implicitly links with -lc since on some 12548 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12549 # to ld, don't add -lc before -lgcc. 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12551$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12552 $rm conftest* 12553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12554 12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12556 (eval $ac_compile) 2>&5 12557 ac_status=$? 12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12559 test $ac_status = 0; } 2>conftest.err; then 12560 soname=conftest 12561 lib=conftest 12562 libobjs=conftest.$ac_objext 12563 deplibs= 12564 wl=$lt_prog_compiler_wl 12565 compiler_flags=-v 12566 linker_flags=-v 12567 verstring= 12568 output_objdir=. 12569 libname=conftest 12570 lt_save_allow_undefined_flag=$allow_undefined_flag 12571 allow_undefined_flag= 12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12573 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12574 ac_status=$? 12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12576 test $ac_status = 0; } 12577 then 12578 archive_cmds_need_lc=no 12579 else 12580 archive_cmds_need_lc=yes 12581 fi 12582 allow_undefined_flag=$lt_save_allow_undefined_flag 12583 else 12584 cat conftest.err 1>&5 12585 fi 12586 $rm conftest* 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 12588$as_echo "$archive_cmds_need_lc" >&6; } 12589 ;; 12590 esac 12591 fi 12592 ;; 12593esac 12594 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12596$as_echo_n "checking dynamic linker characteristics... " >&6; } 12597library_names_spec= 12598libname_spec='lib$name' 12599soname_spec= 12600shrext_cmds=".so" 12601postinstall_cmds= 12602postuninstall_cmds= 12603finish_cmds= 12604finish_eval= 12605shlibpath_var= 12606shlibpath_overrides_runpath=unknown 12607version_type=none 12608dynamic_linker="$host_os ld.so" 12609sys_lib_dlsearch_path_spec="/lib /usr/lib" 12610if test "$GCC" = yes; then 12611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12613 # if the path contains ";" then we assume it to be the separator 12614 # otherwise default to the standard path separator (i.e. ":") - it is 12615 # assumed that no part of a normal pathname contains ";" but that should 12616 # okay in the real world where ";" in dirpaths is itself problematic. 12617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12618 else 12619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12620 fi 12621else 12622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12623fi 12624need_lib_prefix=unknown 12625hardcode_into_libs=no 12626 12627# when you set need_version to no, make sure it does not cause -set_version 12628# flags to be left without arguments 12629need_version=unknown 12630 12631case $host_os in 12632aix3*) 12633 version_type=linux 12634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12635 shlibpath_var=LIBPATH 12636 12637 # AIX 3 has no versioning support, so we append a major version to the name. 12638 soname_spec='${libname}${release}${shared_ext}$major' 12639 ;; 12640 12641aix4* | aix5*) 12642 version_type=linux 12643 need_lib_prefix=no 12644 need_version=no 12645 hardcode_into_libs=yes 12646 if test "$host_cpu" = ia64; then 12647 # AIX 5 supports IA64 12648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12649 shlibpath_var=LD_LIBRARY_PATH 12650 else 12651 # With GCC up to 2.95.x, collect2 would create an import file 12652 # for dependence libraries. The import file would start with 12653 # the line `#! .'. This would cause the generated library to 12654 # depend on `.', always an invalid library. This was fixed in 12655 # development snapshots of GCC prior to 3.0. 12656 case $host_os in 12657 aix4 | aix4.[01] | aix4.[01].*) 12658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12659 echo ' yes ' 12660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12661 : 12662 else 12663 can_build_shared=no 12664 fi 12665 ;; 12666 esac 12667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12668 # soname into executable. Probably we can add versioning support to 12669 # collect2, so additional links can be useful in future. 12670 if test "$aix_use_runtimelinking" = yes; then 12671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12672 # instead of lib<name>.a to let people know that these are not 12673 # typical AIX shared libraries. 12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12675 else 12676 # We preserve .a as extension for shared libraries through AIX4.2 12677 # and later when we are not doing run time linking. 12678 library_names_spec='${libname}${release}.a $libname.a' 12679 soname_spec='${libname}${release}${shared_ext}$major' 12680 fi 12681 shlibpath_var=LIBPATH 12682 fi 12683 ;; 12684 12685amigaos*) 12686 library_names_spec='$libname.ixlibrary $libname.a' 12687 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12688 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' 12689 ;; 12690 12691beos*) 12692 library_names_spec='${libname}${shared_ext}' 12693 dynamic_linker="$host_os ld.so" 12694 shlibpath_var=LIBRARY_PATH 12695 ;; 12696 12697bsdi[45]*) 12698 version_type=linux 12699 need_version=no 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12701 soname_spec='${libname}${release}${shared_ext}$major' 12702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12703 shlibpath_var=LD_LIBRARY_PATH 12704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12706 # the default ld.so.conf also contains /usr/contrib/lib and 12707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12708 # libtool to hard-code these into programs 12709 ;; 12710 12711cygwin* | mingw* | pw32*) 12712 version_type=windows 12713 shrext_cmds=".dll" 12714 need_version=no 12715 need_lib_prefix=no 12716 12717 case $GCC,$host_os in 12718 yes,cygwin* | yes,mingw* | yes,pw32*) 12719 library_names_spec='$libname.dll.a' 12720 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12721 postinstall_cmds='base_file=`basename \${file}`~ 12722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12723 dldir=$destdir/`dirname \$dlpath`~ 12724 test -d \$dldir || mkdir -p \$dldir~ 12725 $install_prog $dir/$dlname \$dldir/$dlname~ 12726 chmod a+x \$dldir/$dlname' 12727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12728 dlpath=$dir/\$dldll~ 12729 $rm \$dlpath' 12730 shlibpath_overrides_runpath=yes 12731 12732 case $host_os in 12733 cygwin*) 12734 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12737 ;; 12738 mingw*) 12739 # MinGW DLLs use traditional 'lib' prefix 12740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12743 # It is most probably a Windows format PATH printed by 12744 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12745 # path with ; separators, and with drive letters. We can handle the 12746 # drive letters (cygwin fileutils understands them), so leave them, 12747 # especially as we might pass files found there to a mingw objdump, 12748 # which wouldn't understand a cygwinified path. Ahh. 12749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12750 else 12751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12752 fi 12753 ;; 12754 pw32*) 12755 # pw32 DLLs use 'pw' prefix rather than 'lib' 12756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12757 ;; 12758 esac 12759 ;; 12760 12761 *) 12762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12763 ;; 12764 esac 12765 dynamic_linker='Win32 ld.exe' 12766 # FIXME: first we should search . and the directory the executable is in 12767 shlibpath_var=PATH 12768 ;; 12769 12770darwin* | rhapsody*) 12771 dynamic_linker="$host_os dyld" 12772 version_type=darwin 12773 need_lib_prefix=no 12774 need_version=no 12775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12776 soname_spec='${libname}${release}${major}$shared_ext' 12777 shlibpath_overrides_runpath=yes 12778 shlibpath_var=DYLD_LIBRARY_PATH 12779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12781 if test "$GCC" = yes; then 12782 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12783 else 12784 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12785 fi 12786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12787 ;; 12788 12789dgux*) 12790 version_type=linux 12791 need_lib_prefix=no 12792 need_version=no 12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12794 soname_spec='${libname}${release}${shared_ext}$major' 12795 shlibpath_var=LD_LIBRARY_PATH 12796 ;; 12797 12798freebsd1*) 12799 dynamic_linker=no 12800 ;; 12801 12802kfreebsd*-gnu) 12803 version_type=linux 12804 need_lib_prefix=no 12805 need_version=no 12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12807 soname_spec='${libname}${release}${shared_ext}$major' 12808 shlibpath_var=LD_LIBRARY_PATH 12809 shlibpath_overrides_runpath=no 12810 hardcode_into_libs=yes 12811 dynamic_linker='GNU ld.so' 12812 ;; 12813 12814freebsd* | dragonfly*) 12815 # DragonFly does not have aout. When/if they implement a new 12816 # versioning mechanism, adjust this. 12817 if test -x /usr/bin/objformat; then 12818 objformat=`/usr/bin/objformat` 12819 else 12820 case $host_os in 12821 freebsd[123]*) objformat=aout ;; 12822 *) objformat=elf ;; 12823 esac 12824 fi 12825 version_type=freebsd-$objformat 12826 case $version_type in 12827 freebsd-elf*) 12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12829 need_version=no 12830 need_lib_prefix=no 12831 ;; 12832 freebsd-*) 12833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12834 need_version=yes 12835 ;; 12836 esac 12837 shlibpath_var=LD_LIBRARY_PATH 12838 case $host_os in 12839 freebsd2*) 12840 shlibpath_overrides_runpath=yes 12841 ;; 12842 freebsd3.[01]* | freebsdelf3.[01]*) 12843 shlibpath_overrides_runpath=yes 12844 hardcode_into_libs=yes 12845 ;; 12846 *) # from 3.2 on 12847 shlibpath_overrides_runpath=no 12848 hardcode_into_libs=yes 12849 ;; 12850 esac 12851 ;; 12852 12853gnu*) 12854 version_type=linux 12855 need_lib_prefix=no 12856 need_version=no 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12858 soname_spec='${libname}${release}${shared_ext}$major' 12859 shlibpath_var=LD_LIBRARY_PATH 12860 hardcode_into_libs=yes 12861 ;; 12862 12863hpux9* | hpux10* | hpux11*) 12864 # Give a soname corresponding to the major version so that dld.sl refuses to 12865 # link against other versions. 12866 version_type=sunos 12867 need_lib_prefix=no 12868 need_version=no 12869 case $host_cpu in 12870 ia64*) 12871 shrext_cmds='.so' 12872 hardcode_into_libs=yes 12873 dynamic_linker="$host_os dld.so" 12874 shlibpath_var=LD_LIBRARY_PATH 12875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12877 soname_spec='${libname}${release}${shared_ext}$major' 12878 if test "X$HPUX_IA64_MODE" = X32; then 12879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12880 else 12881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12882 fi 12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12884 ;; 12885 hppa*64*) 12886 shrext_cmds='.sl' 12887 hardcode_into_libs=yes 12888 dynamic_linker="$host_os dld.sl" 12889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12892 soname_spec='${libname}${release}${shared_ext}$major' 12893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12895 ;; 12896 *) 12897 shrext_cmds='.sl' 12898 dynamic_linker="$host_os dld.sl" 12899 shlibpath_var=SHLIB_PATH 12900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12902 soname_spec='${libname}${release}${shared_ext}$major' 12903 ;; 12904 esac 12905 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12906 postinstall_cmds='chmod 555 $lib' 12907 ;; 12908 12909irix5* | irix6* | nonstopux*) 12910 case $host_os in 12911 nonstopux*) version_type=nonstopux ;; 12912 *) 12913 if test "$lt_cv_prog_gnu_ld" = yes; then 12914 version_type=linux 12915 else 12916 version_type=irix 12917 fi ;; 12918 esac 12919 need_lib_prefix=no 12920 need_version=no 12921 soname_spec='${libname}${release}${shared_ext}$major' 12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12923 case $host_os in 12924 irix5* | nonstopux*) 12925 libsuff= shlibsuff= 12926 ;; 12927 *) 12928 case $LD in # libtool.m4 will add one of these switches to LD 12929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12930 libsuff= shlibsuff= libmagic=32-bit;; 12931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12932 libsuff=32 shlibsuff=N32 libmagic=N32;; 12933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12934 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12935 *) libsuff= shlibsuff= libmagic=never-match;; 12936 esac 12937 ;; 12938 esac 12939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12940 shlibpath_overrides_runpath=no 12941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12943 hardcode_into_libs=yes 12944 ;; 12945 12946# No shared lib support for Linux oldld, aout, or coff. 12947linux*oldld* | linux*aout* | linux*coff*) 12948 dynamic_linker=no 12949 ;; 12950 12951# This must be Linux ELF. 12952linux*) 12953 version_type=linux 12954 need_lib_prefix=no 12955 need_version=no 12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12957 soname_spec='${libname}${release}${shared_ext}$major' 12958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12959 shlibpath_var=LD_LIBRARY_PATH 12960 shlibpath_overrides_runpath=no 12961 # This implies no fast_install, which is unacceptable. 12962 # Some rework will be needed to allow for fast_install 12963 # before this can be enabled. 12964 hardcode_into_libs=yes 12965 12966 # Append ld.so.conf contents to the search path 12967 if test -f /etc/ld.so.conf; then 12968 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12969 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12970 fi 12971 12972 # We used to test for /lib/ld.so.1 and disable shared libraries on 12973 # powerpc, because MkLinux only supported shared libraries with the 12974 # GNU dynamic linker. Since this was broken with cross compilers, 12975 # most powerpc-linux boxes support dynamic linking these days and 12976 # people can always --disable-shared, the test was removed, and we 12977 # assume the GNU/Linux dynamic linker is in use. 12978 dynamic_linker='GNU/Linux ld.so' 12979 ;; 12980 12981knetbsd*-gnu) 12982 version_type=linux 12983 need_lib_prefix=no 12984 need_version=no 12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12986 soname_spec='${libname}${release}${shared_ext}$major' 12987 shlibpath_var=LD_LIBRARY_PATH 12988 shlibpath_overrides_runpath=no 12989 hardcode_into_libs=yes 12990 dynamic_linker='GNU ld.so' 12991 ;; 12992 12993netbsd*) 12994 version_type=sunos 12995 need_lib_prefix=no 12996 need_version=no 12997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13000 dynamic_linker='NetBSD (a.out) ld.so' 13001 else 13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13003 soname_spec='${libname}${release}${shared_ext}$major' 13004 dynamic_linker='NetBSD ld.elf_so' 13005 fi 13006 shlibpath_var=LD_LIBRARY_PATH 13007 shlibpath_overrides_runpath=yes 13008 hardcode_into_libs=yes 13009 ;; 13010 13011newsos6) 13012 version_type=linux 13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13014 shlibpath_var=LD_LIBRARY_PATH 13015 shlibpath_overrides_runpath=yes 13016 ;; 13017 13018nto-qnx*) 13019 version_type=linux 13020 need_lib_prefix=no 13021 need_version=no 13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13023 soname_spec='${libname}${release}${shared_ext}$major' 13024 shlibpath_var=LD_LIBRARY_PATH 13025 shlibpath_overrides_runpath=yes 13026 ;; 13027 13028openbsd*) 13029 version_type=sunos 13030 need_lib_prefix=no 13031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13032 case $host_os in 13033 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13034 *) need_version=no ;; 13035 esac 13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13038 shlibpath_var=LD_LIBRARY_PATH 13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13040 case $host_os in 13041 openbsd2.[89] | openbsd2.[89].*) 13042 shlibpath_overrides_runpath=no 13043 ;; 13044 *) 13045 shlibpath_overrides_runpath=yes 13046 ;; 13047 esac 13048 else 13049 shlibpath_overrides_runpath=yes 13050 fi 13051 ;; 13052 13053os2*) 13054 libname_spec='$name' 13055 shrext_cmds=".dll" 13056 need_lib_prefix=no 13057 library_names_spec='$libname${shared_ext} $libname.a' 13058 dynamic_linker='OS/2 ld.exe' 13059 shlibpath_var=LIBPATH 13060 ;; 13061 13062osf3* | osf4* | osf5*) 13063 version_type=osf 13064 need_lib_prefix=no 13065 need_version=no 13066 soname_spec='${libname}${release}${shared_ext}$major' 13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13068 shlibpath_var=LD_LIBRARY_PATH 13069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13071 ;; 13072 13073sco3.2v5*) 13074 version_type=osf 13075 soname_spec='${libname}${release}${shared_ext}$major' 13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13077 shlibpath_var=LD_LIBRARY_PATH 13078 ;; 13079 13080solaris*) 13081 version_type=linux 13082 need_lib_prefix=no 13083 need_version=no 13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13085 soname_spec='${libname}${release}${shared_ext}$major' 13086 shlibpath_var=LD_LIBRARY_PATH 13087 shlibpath_overrides_runpath=yes 13088 hardcode_into_libs=yes 13089 # ldd complains unless libraries are executable 13090 postinstall_cmds='chmod +x $lib' 13091 ;; 13092 13093sunos4*) 13094 version_type=sunos 13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13097 shlibpath_var=LD_LIBRARY_PATH 13098 shlibpath_overrides_runpath=yes 13099 if test "$with_gnu_ld" = yes; then 13100 need_lib_prefix=no 13101 fi 13102 need_version=yes 13103 ;; 13104 13105sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13106 version_type=linux 13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13108 soname_spec='${libname}${release}${shared_ext}$major' 13109 shlibpath_var=LD_LIBRARY_PATH 13110 case $host_vendor in 13111 sni) 13112 shlibpath_overrides_runpath=no 13113 need_lib_prefix=no 13114 export_dynamic_flag_spec='${wl}-Blargedynsym' 13115 runpath_var=LD_RUN_PATH 13116 ;; 13117 siemens) 13118 need_lib_prefix=no 13119 ;; 13120 motorola) 13121 need_lib_prefix=no 13122 need_version=no 13123 shlibpath_overrides_runpath=no 13124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13125 ;; 13126 esac 13127 ;; 13128 13129sysv4*MP*) 13130 if test -d /usr/nec ;then 13131 version_type=linux 13132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13133 soname_spec='$libname${shared_ext}.$major' 13134 shlibpath_var=LD_LIBRARY_PATH 13135 fi 13136 ;; 13137 13138uts4*) 13139 version_type=linux 13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13141 soname_spec='${libname}${release}${shared_ext}$major' 13142 shlibpath_var=LD_LIBRARY_PATH 13143 ;; 13144 13145*) 13146 dynamic_linker=no 13147 ;; 13148esac 13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13150$as_echo "$dynamic_linker" >&6; } 13151test "$dynamic_linker" = no && can_build_shared=no 13152 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13154$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13155hardcode_action= 13156if test -n "$hardcode_libdir_flag_spec" || \ 13157 test -n "$runpath_var" || \ 13158 test "X$hardcode_automatic" = "Xyes" ; then 13159 13160 # We can hardcode non-existant directories. 13161 if test "$hardcode_direct" != no && 13162 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13163 # have to relink, otherwise we might link with an installed library 13164 # when we should be linking with a yet-to-be-installed one 13165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 13166 test "$hardcode_minus_L" != no; then 13167 # Linking always hardcodes the temporary library directory. 13168 hardcode_action=relink 13169 else 13170 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13171 hardcode_action=immediate 13172 fi 13173else 13174 # We cannot hardcode anything, or else we can only hardcode existing 13175 # directories. 13176 hardcode_action=unsupported 13177fi 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13179$as_echo "$hardcode_action" >&6; } 13180 13181if test "$hardcode_action" = relink; then 13182 # Fast installation is not supported 13183 enable_fast_install=no 13184elif test "$shlibpath_overrides_runpath" = yes || 13185 test "$enable_shared" = no; then 13186 # Fast installation is not necessary 13187 enable_fast_install=needless 13188fi 13189 13190striplib= 13191old_striplib= 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13193$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13194if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13196 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13198$as_echo "yes" >&6; } 13199else 13200# FIXME - insert some real tests, host_os isn't really good enough 13201 case $host_os in 13202 darwin*) 13203 if test -n "$STRIP" ; then 13204 striplib="$STRIP -x" 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13206$as_echo "yes" >&6; } 13207 else 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13209$as_echo "no" >&6; } 13210fi 13211 ;; 13212 *) 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13214$as_echo "no" >&6; } 13215 ;; 13216 esac 13217fi 13218 13219if test "x$enable_dlopen" != xyes; then 13220 enable_dlopen=unknown 13221 enable_dlopen_self=unknown 13222 enable_dlopen_self_static=unknown 13223else 13224 lt_cv_dlopen=no 13225 lt_cv_dlopen_libs= 13226 13227 case $host_os in 13228 beos*) 13229 lt_cv_dlopen="load_add_on" 13230 lt_cv_dlopen_libs= 13231 lt_cv_dlopen_self=yes 13232 ;; 13233 13234 mingw* | pw32*) 13235 lt_cv_dlopen="LoadLibrary" 13236 lt_cv_dlopen_libs= 13237 ;; 13238 13239 cygwin*) 13240 lt_cv_dlopen="dlopen" 13241 lt_cv_dlopen_libs= 13242 ;; 13243 13244 darwin*) 13245 # if libdl is installed we need to link against it 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13247$as_echo_n "checking for dlopen in -ldl... " >&6; } 13248if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 13249 $as_echo_n "(cached) " >&6 13250else 13251 ac_check_lib_save_LIBS=$LIBS 13252LIBS="-ldl $LIBS" 13253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13254/* end confdefs.h. */ 13255 13256/* Override any GCC internal prototype to avoid an error. 13257 Use char because int might match the return type of a GCC 13258 builtin and then its argument prototype would still apply. */ 13259#ifdef __cplusplus 13260extern "C" 13261#endif 13262char dlopen (); 13263int 13264main () 13265{ 13266return dlopen (); 13267 ; 13268 return 0; 13269} 13270_ACEOF 13271if ac_fn_c_try_link "$LINENO"; then : 13272 ac_cv_lib_dl_dlopen=yes 13273else 13274 ac_cv_lib_dl_dlopen=no 13275fi 13276rm -f core conftest.err conftest.$ac_objext \ 13277 conftest$ac_exeext conftest.$ac_ext 13278LIBS=$ac_check_lib_save_LIBS 13279fi 13280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13281$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13282if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 13283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13284else 13285 13286 lt_cv_dlopen="dyld" 13287 lt_cv_dlopen_libs= 13288 lt_cv_dlopen_self=yes 13289 13290fi 13291 13292 ;; 13293 13294 *) 13295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13296if test "x$ac_cv_func_shl_load" = x""yes; then : 13297 lt_cv_dlopen="shl_load" 13298else 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13300$as_echo_n "checking for shl_load in -ldld... " >&6; } 13301if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 13302 $as_echo_n "(cached) " >&6 13303else 13304 ac_check_lib_save_LIBS=$LIBS 13305LIBS="-ldld $LIBS" 13306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13307/* end confdefs.h. */ 13308 13309/* Override any GCC internal prototype to avoid an error. 13310 Use char because int might match the return type of a GCC 13311 builtin and then its argument prototype would still apply. */ 13312#ifdef __cplusplus 13313extern "C" 13314#endif 13315char shl_load (); 13316int 13317main () 13318{ 13319return shl_load (); 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 ac_cv_lib_dld_shl_load=yes 13326else 13327 ac_cv_lib_dld_shl_load=no 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331LIBS=$ac_check_lib_save_LIBS 13332fi 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13334$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13335if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 13336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 13337else 13338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13339if test "x$ac_cv_func_dlopen" = x""yes; then : 13340 lt_cv_dlopen="dlopen" 13341else 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13343$as_echo_n "checking for dlopen in -ldl... " >&6; } 13344if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 13345 $as_echo_n "(cached) " >&6 13346else 13347 ac_check_lib_save_LIBS=$LIBS 13348LIBS="-ldl $LIBS" 13349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13350/* end confdefs.h. */ 13351 13352/* Override any GCC internal prototype to avoid an error. 13353 Use char because int might match the return type of a GCC 13354 builtin and then its argument prototype would still apply. */ 13355#ifdef __cplusplus 13356extern "C" 13357#endif 13358char dlopen (); 13359int 13360main () 13361{ 13362return dlopen (); 13363 ; 13364 return 0; 13365} 13366_ACEOF 13367if ac_fn_c_try_link "$LINENO"; then : 13368 ac_cv_lib_dl_dlopen=yes 13369else 13370 ac_cv_lib_dl_dlopen=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext \ 13373 conftest$ac_exeext conftest.$ac_ext 13374LIBS=$ac_check_lib_save_LIBS 13375fi 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13377$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13378if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 13379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13380else 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13382$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13383if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 13384 $as_echo_n "(cached) " >&6 13385else 13386 ac_check_lib_save_LIBS=$LIBS 13387LIBS="-lsvld $LIBS" 13388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13389/* end confdefs.h. */ 13390 13391/* Override any GCC internal prototype to avoid an error. 13392 Use char because int might match the return type of a GCC 13393 builtin and then its argument prototype would still apply. */ 13394#ifdef __cplusplus 13395extern "C" 13396#endif 13397char dlopen (); 13398int 13399main () 13400{ 13401return dlopen (); 13402 ; 13403 return 0; 13404} 13405_ACEOF 13406if ac_fn_c_try_link "$LINENO"; then : 13407 ac_cv_lib_svld_dlopen=yes 13408else 13409 ac_cv_lib_svld_dlopen=no 13410fi 13411rm -f core conftest.err conftest.$ac_objext \ 13412 conftest$ac_exeext conftest.$ac_ext 13413LIBS=$ac_check_lib_save_LIBS 13414fi 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13416$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13417if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 13418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13419else 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13421$as_echo_n "checking for dld_link in -ldld... " >&6; } 13422if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 ac_check_lib_save_LIBS=$LIBS 13426LIBS="-ldld $LIBS" 13427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429 13430/* Override any GCC internal prototype to avoid an error. 13431 Use char because int might match the return type of a GCC 13432 builtin and then its argument prototype would still apply. */ 13433#ifdef __cplusplus 13434extern "C" 13435#endif 13436char dld_link (); 13437int 13438main () 13439{ 13440return dld_link (); 13441 ; 13442 return 0; 13443} 13444_ACEOF 13445if ac_fn_c_try_link "$LINENO"; then : 13446 ac_cv_lib_dld_dld_link=yes 13447else 13448 ac_cv_lib_dld_dld_link=no 13449fi 13450rm -f core conftest.err conftest.$ac_objext \ 13451 conftest$ac_exeext conftest.$ac_ext 13452LIBS=$ac_check_lib_save_LIBS 13453fi 13454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13455$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13456if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 13457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13458fi 13459 13460 13461fi 13462 13463 13464fi 13465 13466 13467fi 13468 13469 13470fi 13471 13472 13473fi 13474 13475 ;; 13476 esac 13477 13478 if test "x$lt_cv_dlopen" != xno; then 13479 enable_dlopen=yes 13480 else 13481 enable_dlopen=no 13482 fi 13483 13484 case $lt_cv_dlopen in 13485 dlopen) 13486 save_CPPFLAGS="$CPPFLAGS" 13487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13488 13489 save_LDFLAGS="$LDFLAGS" 13490 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13491 13492 save_LIBS="$LIBS" 13493 LIBS="$lt_cv_dlopen_libs $LIBS" 13494 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13496$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13497if test "${lt_cv_dlopen_self+set}" = set; then : 13498 $as_echo_n "(cached) " >&6 13499else 13500 if test "$cross_compiling" = yes; then : 13501 lt_cv_dlopen_self=cross 13502else 13503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13504 lt_status=$lt_dlunknown 13505 cat > conftest.$ac_ext <<EOF 13506#line 13506 "configure" 13507#include "confdefs.h" 13508 13509#if HAVE_DLFCN_H 13510#include <dlfcn.h> 13511#endif 13512 13513#include <stdio.h> 13514 13515#ifdef RTLD_GLOBAL 13516# define LT_DLGLOBAL RTLD_GLOBAL 13517#else 13518# ifdef DL_GLOBAL 13519# define LT_DLGLOBAL DL_GLOBAL 13520# else 13521# define LT_DLGLOBAL 0 13522# endif 13523#endif 13524 13525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13526 find out it does not work in some platform. */ 13527#ifndef LT_DLLAZY_OR_NOW 13528# ifdef RTLD_LAZY 13529# define LT_DLLAZY_OR_NOW RTLD_LAZY 13530# else 13531# ifdef DL_LAZY 13532# define LT_DLLAZY_OR_NOW DL_LAZY 13533# else 13534# ifdef RTLD_NOW 13535# define LT_DLLAZY_OR_NOW RTLD_NOW 13536# else 13537# ifdef DL_NOW 13538# define LT_DLLAZY_OR_NOW DL_NOW 13539# else 13540# define LT_DLLAZY_OR_NOW 0 13541# endif 13542# endif 13543# endif 13544# endif 13545#endif 13546 13547#ifdef __cplusplus 13548extern "C" void exit (int); 13549#endif 13550 13551void fnord() { int i=42;} 13552int main () 13553{ 13554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13555 int status = $lt_dlunknown; 13556 13557 if (self) 13558 { 13559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13561 /* dlclose (self); */ 13562 } 13563 13564 exit (status); 13565} 13566EOF 13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13568 (eval $ac_link) 2>&5 13569 ac_status=$? 13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13572 (./conftest; exit; ) >&5 2>/dev/null 13573 lt_status=$? 13574 case x$lt_status in 13575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13577 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13578 esac 13579 else : 13580 # compilation failed 13581 lt_cv_dlopen_self=no 13582 fi 13583fi 13584rm -fr conftest* 13585 13586 13587fi 13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13589$as_echo "$lt_cv_dlopen_self" >&6; } 13590 13591 if test "x$lt_cv_dlopen_self" = xyes; then 13592 LDFLAGS="$LDFLAGS $link_static_flag" 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13594$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13595if test "${lt_cv_dlopen_self_static+set}" = set; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 if test "$cross_compiling" = yes; then : 13599 lt_cv_dlopen_self_static=cross 13600else 13601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13602 lt_status=$lt_dlunknown 13603 cat > conftest.$ac_ext <<EOF 13604#line 13604 "configure" 13605#include "confdefs.h" 13606 13607#if HAVE_DLFCN_H 13608#include <dlfcn.h> 13609#endif 13610 13611#include <stdio.h> 13612 13613#ifdef RTLD_GLOBAL 13614# define LT_DLGLOBAL RTLD_GLOBAL 13615#else 13616# ifdef DL_GLOBAL 13617# define LT_DLGLOBAL DL_GLOBAL 13618# else 13619# define LT_DLGLOBAL 0 13620# endif 13621#endif 13622 13623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13624 find out it does not work in some platform. */ 13625#ifndef LT_DLLAZY_OR_NOW 13626# ifdef RTLD_LAZY 13627# define LT_DLLAZY_OR_NOW RTLD_LAZY 13628# else 13629# ifdef DL_LAZY 13630# define LT_DLLAZY_OR_NOW DL_LAZY 13631# else 13632# ifdef RTLD_NOW 13633# define LT_DLLAZY_OR_NOW RTLD_NOW 13634# else 13635# ifdef DL_NOW 13636# define LT_DLLAZY_OR_NOW DL_NOW 13637# else 13638# define LT_DLLAZY_OR_NOW 0 13639# endif 13640# endif 13641# endif 13642# endif 13643#endif 13644 13645#ifdef __cplusplus 13646extern "C" void exit (int); 13647#endif 13648 13649void fnord() { int i=42;} 13650int main () 13651{ 13652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13653 int status = $lt_dlunknown; 13654 13655 if (self) 13656 { 13657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13658 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13659 /* dlclose (self); */ 13660 } 13661 13662 exit (status); 13663} 13664EOF 13665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13666 (eval $ac_link) 2>&5 13667 ac_status=$? 13668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13670 (./conftest; exit; ) >&5 2>/dev/null 13671 lt_status=$? 13672 case x$lt_status in 13673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13675 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13676 esac 13677 else : 13678 # compilation failed 13679 lt_cv_dlopen_self_static=no 13680 fi 13681fi 13682rm -fr conftest* 13683 13684 13685fi 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13687$as_echo "$lt_cv_dlopen_self_static" >&6; } 13688 fi 13689 13690 CPPFLAGS="$save_CPPFLAGS" 13691 LDFLAGS="$save_LDFLAGS" 13692 LIBS="$save_LIBS" 13693 ;; 13694 esac 13695 13696 case $lt_cv_dlopen_self in 13697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13698 *) enable_dlopen_self=unknown ;; 13699 esac 13700 13701 case $lt_cv_dlopen_self_static in 13702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13703 *) enable_dlopen_self_static=unknown ;; 13704 esac 13705fi 13706 13707 13708# Report which librarie types wil actually be built 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13710$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13712$as_echo "$can_build_shared" >&6; } 13713 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13715$as_echo_n "checking whether to build shared libraries... " >&6; } 13716test "$can_build_shared" = "no" && enable_shared=no 13717 13718# On AIX, shared libraries and static libraries use the same namespace, and 13719# are all built from PIC. 13720case $host_os in 13721aix3*) 13722 test "$enable_shared" = yes && enable_static=no 13723 if test -n "$RANLIB"; then 13724 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13725 postinstall_cmds='$RANLIB $lib' 13726 fi 13727 ;; 13728 13729aix4* | aix5*) 13730 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13731 test "$enable_shared" = yes && enable_static=no 13732 fi 13733 ;; 13734esac 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13736$as_echo "$enable_shared" >&6; } 13737 13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13739$as_echo_n "checking whether to build static libraries... " >&6; } 13740# Make sure either enable_shared or enable_static is yes. 13741test "$enable_shared" = yes || enable_static=yes 13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13743$as_echo "$enable_static" >&6; } 13744 13745# The else clause should only fire when bootstrapping the 13746# libtool distribution, otherwise you forgot to ship ltmain.sh 13747# with your package, and you will get complaints that there are 13748# no rules to generate ltmain.sh. 13749if test -f "$ltmain"; then 13750 # See if we are running on zsh, and set the options which allow our commands through 13751 # without removal of \ escapes. 13752 if test -n "${ZSH_VERSION+set}" ; then 13753 setopt NO_GLOB_SUBST 13754 fi 13755 # Now quote all the things that may contain metacharacters while being 13756 # careful not to overquote the AC_SUBSTed values. We take copies of the 13757 # variables and quote the copies for generation of the libtool script. 13758 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13759 SED SHELL STRIP \ 13760 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13761 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13762 deplibs_check_method reload_flag reload_cmds need_locks \ 13763 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13764 lt_cv_sys_global_symbol_to_c_name_address \ 13765 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13766 old_postinstall_cmds old_postuninstall_cmds \ 13767 compiler \ 13768 CC \ 13769 LD \ 13770 lt_prog_compiler_wl \ 13771 lt_prog_compiler_pic \ 13772 lt_prog_compiler_static \ 13773 lt_prog_compiler_no_builtin_flag \ 13774 export_dynamic_flag_spec \ 13775 thread_safe_flag_spec \ 13776 whole_archive_flag_spec \ 13777 enable_shared_with_static_runtimes \ 13778 old_archive_cmds \ 13779 old_archive_from_new_cmds \ 13780 predep_objects \ 13781 postdep_objects \ 13782 predeps \ 13783 postdeps \ 13784 compiler_lib_search_path \ 13785 archive_cmds \ 13786 archive_expsym_cmds \ 13787 postinstall_cmds \ 13788 postuninstall_cmds \ 13789 old_archive_from_expsyms_cmds \ 13790 allow_undefined_flag \ 13791 no_undefined_flag \ 13792 export_symbols_cmds \ 13793 hardcode_libdir_flag_spec \ 13794 hardcode_libdir_flag_spec_ld \ 13795 hardcode_libdir_separator \ 13796 hardcode_automatic \ 13797 module_cmds \ 13798 module_expsym_cmds \ 13799 lt_cv_prog_compiler_c_o \ 13800 exclude_expsyms \ 13801 include_expsyms; do 13802 13803 case $var in 13804 old_archive_cmds | \ 13805 old_archive_from_new_cmds | \ 13806 archive_cmds | \ 13807 archive_expsym_cmds | \ 13808 module_cmds | \ 13809 module_expsym_cmds | \ 13810 old_archive_from_expsyms_cmds | \ 13811 export_symbols_cmds | \ 13812 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13813 postinstall_cmds | postuninstall_cmds | \ 13814 old_postinstall_cmds | old_postuninstall_cmds | \ 13815 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13816 # Double-quote double-evaled strings. 13817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13818 ;; 13819 *) 13820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13821 ;; 13822 esac 13823 done 13824 13825 case $lt_echo in 13826 *'\$0 --fallback-echo"') 13827 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13828 ;; 13829 esac 13830 13831cfgfile="${ofile}T" 13832 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 13833 $rm -f "$cfgfile" 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 13835$as_echo "$as_me: creating $ofile" >&6;} 13836 13837 cat <<__EOF__ >> "$cfgfile" 13838#! $SHELL 13839 13840# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13841# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 13842# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13843# 13844# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 13845# Free Software Foundation, Inc. 13846# 13847# This file is part of GNU Libtool: 13848# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 13849# 13850# This program is free software; you can redistribute it and/or modify 13851# it under the terms of the GNU General Public License as published by 13852# the Free Software Foundation; either version 2 of the License, or 13853# (at your option) any later version. 13854# 13855# This program is distributed in the hope that it will be useful, but 13856# WITHOUT ANY WARRANTY; without even the implied warranty of 13857# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13858# General Public License for more details. 13859# 13860# You should have received a copy of the GNU General Public License 13861# along with this program; if not, write to the Free Software 13862# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13863# 13864# As a special exception to the GNU General Public License, if you 13865# distribute this file as part of a program that contains a 13866# configuration script generated by Autoconf, you may include it under 13867# the same distribution terms that you use for the rest of that program. 13868 13869# A sed program that does not truncate output. 13870SED=$lt_SED 13871 13872# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13873Xsed="$SED -e 1s/^X//" 13874 13875# The HP-UX ksh and POSIX shell print the target directory to stdout 13876# if CDPATH is set. 13877(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13878 13879# The names of the tagged configurations supported by this script. 13880available_tags= 13881 13882# ### BEGIN LIBTOOL CONFIG 13883 13884# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13885 13886# Shell to use when invoking shell scripts. 13887SHELL=$lt_SHELL 13888 13889# Whether or not to build shared libraries. 13890build_libtool_libs=$enable_shared 13891 13892# Whether or not to build static libraries. 13893build_old_libs=$enable_static 13894 13895# Whether or not to add -lc for building shared libraries. 13896build_libtool_need_lc=$archive_cmds_need_lc 13897 13898# Whether or not to disallow shared libs when runtime libs are static 13899allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13900 13901# Whether or not to optimize for fast installation. 13902fast_install=$enable_fast_install 13903 13904# The host system. 13905host_alias=$host_alias 13906host=$host 13907host_os=$host_os 13908 13909# The build system. 13910build_alias=$build_alias 13911build=$build 13912build_os=$build_os 13913 13914# An echo program that does not interpret backslashes. 13915echo=$lt_echo 13916 13917# The archiver. 13918AR=$lt_AR 13919AR_FLAGS=$lt_AR_FLAGS 13920 13921# A C compiler. 13922LTCC=$lt_LTCC 13923 13924# A language-specific compiler. 13925CC=$lt_compiler 13926 13927# Is the compiler the GNU C compiler? 13928with_gcc=$GCC 13929 13930# An ERE matcher. 13931EGREP=$lt_EGREP 13932 13933# The linker used to build libraries. 13934LD=$lt_LD 13935 13936# Whether we need hard or soft links. 13937LN_S=$lt_LN_S 13938 13939# A BSD-compatible nm program. 13940NM=$lt_NM 13941 13942# A symbol stripping program 13943STRIP=$lt_STRIP 13944 13945# Used to examine libraries when file_magic_cmd begins "file" 13946MAGIC_CMD=$MAGIC_CMD 13947 13948# Used on cygwin: DLL creation program. 13949DLLTOOL="$DLLTOOL" 13950 13951# Used on cygwin: object dumper. 13952OBJDUMP="$OBJDUMP" 13953 13954# Used on cygwin: assembler. 13955AS="$AS" 13956 13957# The name of the directory that contains temporary libtool files. 13958objdir=$objdir 13959 13960# How to create reloadable object files. 13961reload_flag=$lt_reload_flag 13962reload_cmds=$lt_reload_cmds 13963 13964# How to pass a linker flag through the compiler. 13965wl=$lt_lt_prog_compiler_wl 13966 13967# Object file suffix (normally "o"). 13968objext="$ac_objext" 13969 13970# Old archive suffix (normally "a"). 13971libext="$libext" 13972 13973# Shared library suffix (normally ".so"). 13974shrext_cmds='$shrext_cmds' 13975 13976# Executable file suffix (normally ""). 13977exeext="$exeext" 13978 13979# Additional compiler flags for building library objects. 13980pic_flag=$lt_lt_prog_compiler_pic 13981pic_mode=$pic_mode 13982 13983# What is the maximum length of a command? 13984max_cmd_len=$lt_cv_sys_max_cmd_len 13985 13986# Does compiler simultaneously support -c and -o options? 13987compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13988 13989# Must we lock files when doing compilation? 13990need_locks=$lt_need_locks 13991 13992# Do we need the lib prefix for modules? 13993need_lib_prefix=$need_lib_prefix 13994 13995# Do we need a version for libraries? 13996need_version=$need_version 13997 13998# Whether dlopen is supported. 13999dlopen_support=$enable_dlopen 14000 14001# Whether dlopen of programs is supported. 14002dlopen_self=$enable_dlopen_self 14003 14004# Whether dlopen of statically linked programs is supported. 14005dlopen_self_static=$enable_dlopen_self_static 14006 14007# Compiler flag to prevent dynamic linking. 14008link_static_flag=$lt_lt_prog_compiler_static 14009 14010# Compiler flag to turn off builtin functions. 14011no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14012 14013# Compiler flag to allow reflexive dlopens. 14014export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14015 14016# Compiler flag to generate shared objects directly from archives. 14017whole_archive_flag_spec=$lt_whole_archive_flag_spec 14018 14019# Compiler flag to generate thread-safe objects. 14020thread_safe_flag_spec=$lt_thread_safe_flag_spec 14021 14022# Library versioning type. 14023version_type=$version_type 14024 14025# Format of library name prefix. 14026libname_spec=$lt_libname_spec 14027 14028# List of archive names. First name is the real one, the rest are links. 14029# The last name is the one that the linker finds with -lNAME. 14030library_names_spec=$lt_library_names_spec 14031 14032# The coded name of the library, if different from the real name. 14033soname_spec=$lt_soname_spec 14034 14035# Commands used to build and install an old-style archive. 14036RANLIB=$lt_RANLIB 14037old_archive_cmds=$lt_old_archive_cmds 14038old_postinstall_cmds=$lt_old_postinstall_cmds 14039old_postuninstall_cmds=$lt_old_postuninstall_cmds 14040 14041# Create an old-style archive from a shared archive. 14042old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14043 14044# Create a temporary old-style archive to link instead of a shared archive. 14045old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14046 14047# Commands used to build and install a shared archive. 14048archive_cmds=$lt_archive_cmds 14049archive_expsym_cmds=$lt_archive_expsym_cmds 14050postinstall_cmds=$lt_postinstall_cmds 14051postuninstall_cmds=$lt_postuninstall_cmds 14052 14053# Commands used to build a loadable module (assumed same as above if empty) 14054module_cmds=$lt_module_cmds 14055module_expsym_cmds=$lt_module_expsym_cmds 14056 14057# Commands to strip libraries. 14058old_striplib=$lt_old_striplib 14059striplib=$lt_striplib 14060 14061# Dependencies to place before the objects being linked to create a 14062# shared library. 14063predep_objects=$lt_predep_objects 14064 14065# Dependencies to place after the objects being linked to create a 14066# shared library. 14067postdep_objects=$lt_postdep_objects 14068 14069# Dependencies to place before the objects being linked to create a 14070# shared library. 14071predeps=$lt_predeps 14072 14073# Dependencies to place after the objects being linked to create a 14074# shared library. 14075postdeps=$lt_postdeps 14076 14077# The library search path used internally by the compiler when linking 14078# a shared library. 14079compiler_lib_search_path=$lt_compiler_lib_search_path 14080 14081# Method to check whether dependent libraries are shared objects. 14082deplibs_check_method=$lt_deplibs_check_method 14083 14084# Command to use when deplibs_check_method == file_magic. 14085file_magic_cmd=$lt_file_magic_cmd 14086 14087# Flag that allows shared libraries with undefined symbols to be built. 14088allow_undefined_flag=$lt_allow_undefined_flag 14089 14090# Flag that forces no undefined symbols. 14091no_undefined_flag=$lt_no_undefined_flag 14092 14093# Commands used to finish a libtool library installation in a directory. 14094finish_cmds=$lt_finish_cmds 14095 14096# Same as above, but a single script fragment to be evaled but not shown. 14097finish_eval=$lt_finish_eval 14098 14099# Take the output of nm and produce a listing of raw symbols and C names. 14100global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14101 14102# Transform the output of nm in a proper C declaration 14103global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14104 14105# Transform the output of nm in a C name address pair 14106global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14107 14108# This is the shared library runtime path variable. 14109runpath_var=$runpath_var 14110 14111# This is the shared library path variable. 14112shlibpath_var=$shlibpath_var 14113 14114# Is shlibpath searched before the hard-coded library search path? 14115shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14116 14117# How to hardcode a shared library path into an executable. 14118hardcode_action=$hardcode_action 14119 14120# Whether we should hardcode library paths into libraries. 14121hardcode_into_libs=$hardcode_into_libs 14122 14123# Flag to hardcode \$libdir into a binary during linking. 14124# This must work even if \$libdir does not exist. 14125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14126 14127# If ld is used when linking, flag to hardcode \$libdir into 14128# a binary during linking. This must work even if \$libdir does 14129# not exist. 14130hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14131 14132# Whether we need a single -rpath flag with a separated argument. 14133hardcode_libdir_separator=$lt_hardcode_libdir_separator 14134 14135# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14136# resulting binary. 14137hardcode_direct=$hardcode_direct 14138 14139# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14140# resulting binary. 14141hardcode_minus_L=$hardcode_minus_L 14142 14143# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14144# the resulting binary. 14145hardcode_shlibpath_var=$hardcode_shlibpath_var 14146 14147# Set to yes if building a shared library automatically hardcodes DIR into the library 14148# and all subsequent libraries and executables linked against it. 14149hardcode_automatic=$hardcode_automatic 14150 14151# Variables whose values should be saved in libtool wrapper scripts and 14152# restored at relink time. 14153variables_saved_for_relink="$variables_saved_for_relink" 14154 14155# Whether libtool must link a program against all its dependency libraries. 14156link_all_deplibs=$link_all_deplibs 14157 14158# Compile-time system search path for libraries 14159sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14160 14161# Run-time system search path for libraries 14162sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14163 14164# Fix the shell variable \$srcfile for the compiler. 14165fix_srcfile_path="$fix_srcfile_path" 14166 14167# Set to yes if exported symbols are required. 14168always_export_symbols=$always_export_symbols 14169 14170# The commands to list exported symbols. 14171export_symbols_cmds=$lt_export_symbols_cmds 14172 14173# The commands to extract the exported symbol list from a shared archive. 14174extract_expsyms_cmds=$lt_extract_expsyms_cmds 14175 14176# Symbols that should not be listed in the preloaded symbols. 14177exclude_expsyms=$lt_exclude_expsyms 14178 14179# Symbols that must always be exported. 14180include_expsyms=$lt_include_expsyms 14181 14182# ### END LIBTOOL CONFIG 14183 14184__EOF__ 14185 14186 14187 case $host_os in 14188 aix3*) 14189 cat <<\EOF >> "$cfgfile" 14190 14191# AIX sometimes has problems with the GCC collect2 program. For some 14192# reason, if we set the COLLECT_NAMES environment variable, the problems 14193# vanish in a puff of smoke. 14194if test "X${COLLECT_NAMES+set}" != Xset; then 14195 COLLECT_NAMES= 14196 export COLLECT_NAMES 14197fi 14198EOF 14199 ;; 14200 esac 14201 14202 # We use sed instead of cat because bash on DJGPP gets confused if 14203 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14204 # text mode, it properly converts lines to CR/LF. This bash problem 14205 # is reportedly fixed, but why not run on old versions too? 14206 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 14207 14208 mv -f "$cfgfile" "$ofile" || \ 14209 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14210 chmod +x "$ofile" 14211 14212else 14213 # If there is no Makefile yet, we rely on a make rule to execute 14214 # `config.status --recheck' to rerun these tests and create the 14215 # libtool script then. 14216 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14217 if test -f "$ltmain_in"; then 14218 test -f Makefile && make "$ltmain" 14219 fi 14220fi 14221 14222 14223ac_ext=c 14224ac_cpp='$CPP $CPPFLAGS' 14225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14227ac_compiler_gnu=$ac_cv_c_compiler_gnu 14228 14229CC="$lt_save_CC" 14230 14231 14232# Check whether --with-tags was given. 14233if test "${with_tags+set}" = set; then : 14234 withval=$with_tags; tagnames="$withval" 14235fi 14236 14237 14238if test -f "$ltmain" && test -n "$tagnames"; then 14239 if test ! -f "${ofile}"; then 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 14241$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 14242 fi 14243 14244 if test -z "$LTCC"; then 14245 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 14246 if test -z "$LTCC"; then 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 14248$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 14249 else 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 14251$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 14252 fi 14253 fi 14254 14255 # Extract list of available tagged configurations in $ofile. 14256 # Note that this assumes the entire list is on one line. 14257 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 14258 14259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14260 for tagname in $tagnames; do 14261 IFS="$lt_save_ifs" 14262 # Check whether tagname contains only valid characters 14263 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 14264 "") ;; 14265 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 14266 ;; 14267 esac 14268 14269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 14270 then 14271 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 14272 fi 14273 14274 # Update the list of available tags. 14275 if test -n "$tagname"; then 14276 echo appending configuration tag \"$tagname\" to $ofile 14277 14278 case $tagname in 14279 CXX) 14280 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14282 (test "X$CXX" != "Xg++"))) ; then 14283 : 14284 else 14285 tagname="" 14286 fi 14287 ;; 14288 14289 F77) 14290 if test -n "$F77" && test "X$F77" != "Xno"; then 14291 : 14292 else 14293 tagname="" 14294 fi 14295 ;; 14296 14297 GCJ) 14298 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14299 14300 14301# Source file extension for Java test sources. 14302ac_ext=java 14303 14304# Object file extension for compiled Java test sources. 14305objext=o 14306objext_GCJ=$objext 14307 14308# Code to be used in simple compile tests 14309lt_simple_compile_test_code="class foo {}\n" 14310 14311# Code to be used in simple link tests 14312lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 14313 14314# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14315 14316# If no C compiler was specified, use CC. 14317LTCC=${LTCC-"$CC"} 14318 14319# Allow CC to be a program name with arguments. 14320compiler=$CC 14321 14322 14323# save warnings/boilerplate of simple test code 14324ac_outfile=conftest.$ac_objext 14325printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14326eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14327_lt_compiler_boilerplate=`cat conftest.err` 14328$rm conftest* 14329 14330ac_outfile=conftest.$ac_objext 14331printf "$lt_simple_link_test_code" >conftest.$ac_ext 14332eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14333_lt_linker_boilerplate=`cat conftest.err` 14334$rm conftest* 14335 14336 14337# Allow CC to be a program name with arguments. 14338lt_save_CC="$CC" 14339CC=${GCJ-"gcj"} 14340compiler=$CC 14341compiler_GCJ=$CC 14342for cc_temp in $compiler""; do 14343 case $cc_temp in 14344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14346 \-*) ;; 14347 *) break;; 14348 esac 14349done 14350cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14351 14352 14353# GCJ did not exist at the time GCC didn't implicitly link libc in. 14354archive_cmds_need_lc_GCJ=no 14355 14356old_archive_cmds_GCJ=$old_archive_cmds 14357 14358 14359lt_prog_compiler_no_builtin_flag_GCJ= 14360 14361if test "$GCC" = yes; then 14362 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14363 14364 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14366$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14367if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 14368 $as_echo_n "(cached) " >&6 14369else 14370 lt_cv_prog_compiler_rtti_exceptions=no 14371 ac_outfile=conftest.$ac_objext 14372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14373 lt_compiler_flag="-fno-rtti -fno-exceptions" 14374 # Insert the option either (1) after the last *FLAGS variable, or 14375 # (2) before a word containing "conftest.", or (3) at the end. 14376 # Note that $ac_compile itself does not contain backslashes and begins 14377 # with a dollar sign (not a hyphen), so the echo should work correctly. 14378 # The option is referenced via a variable to avoid confusing sed. 14379 lt_compile=`echo "$ac_compile" | $SED \ 14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14382 -e 's:$: $lt_compiler_flag:'` 14383 (eval echo "\"\$as_me:14383: $lt_compile\"" >&5) 14384 (eval "$lt_compile" 2>conftest.err) 14385 ac_status=$? 14386 cat conftest.err >&5 14387 echo "$as_me:14387: \$? = $ac_status" >&5 14388 if (exit $ac_status) && test -s "$ac_outfile"; then 14389 # The compiler can only warn and ignore the option if not recognized 14390 # So say no if there are warnings other than the usual output. 14391 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 14392 $SED '/^$/d' conftest.err >conftest.er2 14393 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 14394 lt_cv_prog_compiler_rtti_exceptions=yes 14395 fi 14396 fi 14397 $rm conftest* 14398 14399fi 14400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14401$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14402 14403if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14404 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14405else 14406 : 14407fi 14408 14409fi 14410 14411lt_prog_compiler_wl_GCJ= 14412lt_prog_compiler_pic_GCJ= 14413lt_prog_compiler_static_GCJ= 14414 14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14416$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14417 14418 if test "$GCC" = yes; then 14419 lt_prog_compiler_wl_GCJ='-Wl,' 14420 lt_prog_compiler_static_GCJ='-static' 14421 14422 case $host_os in 14423 aix*) 14424 # All AIX code is PIC. 14425 if test "$host_cpu" = ia64; then 14426 # AIX 5 now supports IA64 processor 14427 lt_prog_compiler_static_GCJ='-Bstatic' 14428 fi 14429 ;; 14430 14431 amigaos*) 14432 # FIXME: we need at least 68020 code to build shared libraries, but 14433 # adding the `-m68020' flag to GCC prevents building anything better, 14434 # like `-m68040'. 14435 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14436 ;; 14437 14438 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14439 # PIC is the default for these OSes. 14440 ;; 14441 14442 mingw* | pw32* | os2*) 14443 # This hack is so that the source file can tell whether it is being 14444 # built for inclusion in a dll (and should export symbols for example). 14445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14446 ;; 14447 14448 darwin* | rhapsody*) 14449 # PIC is the default on this platform 14450 # Common symbols not allowed in MH_DYLIB files 14451 lt_prog_compiler_pic_GCJ='-fno-common' 14452 ;; 14453 14454 msdosdjgpp*) 14455 # Just because we use GCC doesn't mean we suddenly get shared libraries 14456 # on systems that don't support them. 14457 lt_prog_compiler_can_build_shared_GCJ=no 14458 enable_shared=no 14459 ;; 14460 14461 sysv4*MP*) 14462 if test -d /usr/nec; then 14463 lt_prog_compiler_pic_GCJ=-Kconform_pic 14464 fi 14465 ;; 14466 14467 hpux*) 14468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14469 # not for PA HP-UX. 14470 case $host_cpu in 14471 hppa*64*|ia64*) 14472 # +Z the default 14473 ;; 14474 *) 14475 lt_prog_compiler_pic_GCJ='-fPIC' 14476 ;; 14477 esac 14478 ;; 14479 14480 *) 14481 lt_prog_compiler_pic_GCJ='-fPIC' 14482 ;; 14483 esac 14484 else 14485 # PORTME Check for flag to pass linker flags through the system compiler. 14486 case $host_os in 14487 aix*) 14488 lt_prog_compiler_wl_GCJ='-Wl,' 14489 if test "$host_cpu" = ia64; then 14490 # AIX 5 now supports IA64 processor 14491 lt_prog_compiler_static_GCJ='-Bstatic' 14492 else 14493 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14494 fi 14495 ;; 14496 darwin*) 14497 # PIC is the default on this platform 14498 # Common symbols not allowed in MH_DYLIB files 14499 case $cc_basename in 14500 xlc*) 14501 lt_prog_compiler_pic_GCJ='-qnocommon' 14502 lt_prog_compiler_wl_GCJ='-Wl,' 14503 ;; 14504 esac 14505 ;; 14506 14507 mingw* | pw32* | os2*) 14508 # This hack is so that the source file can tell whether it is being 14509 # built for inclusion in a dll (and should export symbols for example). 14510 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14511 ;; 14512 14513 hpux9* | hpux10* | hpux11*) 14514 lt_prog_compiler_wl_GCJ='-Wl,' 14515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14516 # not for PA HP-UX. 14517 case $host_cpu in 14518 hppa*64*|ia64*) 14519 # +Z the default 14520 ;; 14521 *) 14522 lt_prog_compiler_pic_GCJ='+Z' 14523 ;; 14524 esac 14525 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14526 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14527 ;; 14528 14529 irix5* | irix6* | nonstopux*) 14530 lt_prog_compiler_wl_GCJ='-Wl,' 14531 # PIC (with -KPIC) is the default. 14532 lt_prog_compiler_static_GCJ='-non_shared' 14533 ;; 14534 14535 newsos6) 14536 lt_prog_compiler_pic_GCJ='-KPIC' 14537 lt_prog_compiler_static_GCJ='-Bstatic' 14538 ;; 14539 14540 linux*) 14541 case $cc_basename in 14542 icc* | ecc*) 14543 lt_prog_compiler_wl_GCJ='-Wl,' 14544 lt_prog_compiler_pic_GCJ='-KPIC' 14545 lt_prog_compiler_static_GCJ='-static' 14546 ;; 14547 pgcc* | pgf77* | pgf90* | pgf95*) 14548 # Portland Group compilers (*not* the Pentium gcc compiler, 14549 # which looks to be a dead project) 14550 lt_prog_compiler_wl_GCJ='-Wl,' 14551 lt_prog_compiler_pic_GCJ='-fpic' 14552 lt_prog_compiler_static_GCJ='-Bstatic' 14553 ;; 14554 ccc*) 14555 lt_prog_compiler_wl_GCJ='-Wl,' 14556 # All Alpha code is PIC. 14557 lt_prog_compiler_static_GCJ='-non_shared' 14558 ;; 14559 esac 14560 ;; 14561 14562 osf3* | osf4* | osf5*) 14563 lt_prog_compiler_wl_GCJ='-Wl,' 14564 # All OSF/1 code is PIC. 14565 lt_prog_compiler_static_GCJ='-non_shared' 14566 ;; 14567 14568 sco3.2v5*) 14569 lt_prog_compiler_pic_GCJ='-Kpic' 14570 lt_prog_compiler_static_GCJ='-dn' 14571 ;; 14572 14573 solaris*) 14574 lt_prog_compiler_pic_GCJ='-KPIC' 14575 lt_prog_compiler_static_GCJ='-Bstatic' 14576 case $cc_basename in 14577 f77* | f90* | f95*) 14578 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 14579 *) 14580 lt_prog_compiler_wl_GCJ='-Wl,';; 14581 esac 14582 ;; 14583 14584 sunos4*) 14585 lt_prog_compiler_wl_GCJ='-Qoption ld ' 14586 lt_prog_compiler_pic_GCJ='-PIC' 14587 lt_prog_compiler_static_GCJ='-Bstatic' 14588 ;; 14589 14590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14591 lt_prog_compiler_wl_GCJ='-Wl,' 14592 lt_prog_compiler_pic_GCJ='-KPIC' 14593 lt_prog_compiler_static_GCJ='-Bstatic' 14594 ;; 14595 14596 sysv4*MP*) 14597 if test -d /usr/nec ;then 14598 lt_prog_compiler_pic_GCJ='-Kconform_pic' 14599 lt_prog_compiler_static_GCJ='-Bstatic' 14600 fi 14601 ;; 14602 14603 unicos*) 14604 lt_prog_compiler_wl_GCJ='-Wl,' 14605 lt_prog_compiler_can_build_shared_GCJ=no 14606 ;; 14607 14608 uts4*) 14609 lt_prog_compiler_pic_GCJ='-pic' 14610 lt_prog_compiler_static_GCJ='-Bstatic' 14611 ;; 14612 14613 *) 14614 lt_prog_compiler_can_build_shared_GCJ=no 14615 ;; 14616 esac 14617 fi 14618 14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 14620$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 14621 14622# 14623# Check to make sure the PIC flag actually works. 14624# 14625if test -n "$lt_prog_compiler_pic_GCJ"; then 14626 14627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 14628$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 14629if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then : 14630 $as_echo_n "(cached) " >&6 14631else 14632 lt_prog_compiler_pic_works_GCJ=no 14633 ac_outfile=conftest.$ac_objext 14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14635 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 14636 # Insert the option either (1) after the last *FLAGS variable, or 14637 # (2) before a word containing "conftest.", or (3) at the end. 14638 # Note that $ac_compile itself does not contain backslashes and begins 14639 # with a dollar sign (not a hyphen), so the echo should work correctly. 14640 # The option is referenced via a variable to avoid confusing sed. 14641 lt_compile=`echo "$ac_compile" | $SED \ 14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14644 -e 's:$: $lt_compiler_flag:'` 14645 (eval echo "\"\$as_me:14645: $lt_compile\"" >&5) 14646 (eval "$lt_compile" 2>conftest.err) 14647 ac_status=$? 14648 cat conftest.err >&5 14649 echo "$as_me:14649: \$? = $ac_status" >&5 14650 if (exit $ac_status) && test -s "$ac_outfile"; then 14651 # The compiler can only warn and ignore the option if not recognized 14652 # So say no if there are warnings other than the usual output. 14653 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 14654 $SED '/^$/d' conftest.err >conftest.er2 14655 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 14656 lt_prog_compiler_pic_works_GCJ=yes 14657 fi 14658 fi 14659 $rm conftest* 14660 14661fi 14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5 14663$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 14664 14665if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 14666 case $lt_prog_compiler_pic_GCJ in 14667 "" | " "*) ;; 14668 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 14669 esac 14670else 14671 lt_prog_compiler_pic_GCJ= 14672 lt_prog_compiler_can_build_shared_GCJ=no 14673fi 14674 14675fi 14676case $host_os in 14677 # For platforms which do not support PIC, -DPIC is meaningless: 14678 *djgpp*) 14679 lt_prog_compiler_pic_GCJ= 14680 ;; 14681 *) 14682 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 14683 ;; 14684esac 14685 14686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14688if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 14689 $as_echo_n "(cached) " >&6 14690else 14691 lt_cv_prog_compiler_c_o_GCJ=no 14692 $rm -r conftest 2>/dev/null 14693 mkdir conftest 14694 cd conftest 14695 mkdir out 14696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14697 14698 lt_compiler_flag="-o out/conftest2.$ac_objext" 14699 # Insert the option either (1) after the last *FLAGS variable, or 14700 # (2) before a word containing "conftest.", or (3) at the end. 14701 # Note that $ac_compile itself does not contain backslashes and begins 14702 # with a dollar sign (not a hyphen), so the echo should work correctly. 14703 lt_compile=`echo "$ac_compile" | $SED \ 14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14706 -e 's:$: $lt_compiler_flag:'` 14707 (eval echo "\"\$as_me:14707: $lt_compile\"" >&5) 14708 (eval "$lt_compile" 2>out/conftest.err) 14709 ac_status=$? 14710 cat out/conftest.err >&5 14711 echo "$as_me:14711: \$? = $ac_status" >&5 14712 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14713 then 14714 # The compiler can only warn and ignore the option if not recognized 14715 # So say no if there are warnings 14716 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 14717 $SED '/^$/d' out/conftest.err >out/conftest.er2 14718 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14719 lt_cv_prog_compiler_c_o_GCJ=yes 14720 fi 14721 fi 14722 chmod u+w . 2>&5 14723 $rm conftest* 14724 # SGI C++ compiler will create directory out/ii_files/ for 14725 # template instantiation 14726 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14727 $rm out/* && rmdir out 14728 cd .. 14729 rmdir conftest 14730 $rm conftest* 14731 14732fi 14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 14734$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 14735 14736 14737hard_links="nottested" 14738if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 14739 # do not overwrite the value of need_locks provided by the user 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14741$as_echo_n "checking if we can lock with hard links... " >&6; } 14742 hard_links=yes 14743 $rm conftest* 14744 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14745 touch conftest.a 14746 ln conftest.a conftest.b 2>&5 || hard_links=no 14747 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14749$as_echo "$hard_links" >&6; } 14750 if test "$hard_links" = no; then 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14752$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14753 need_locks=warn 14754 fi 14755else 14756 need_locks=no 14757fi 14758 14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14760$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14761 14762 runpath_var= 14763 allow_undefined_flag_GCJ= 14764 enable_shared_with_static_runtimes_GCJ=no 14765 archive_cmds_GCJ= 14766 archive_expsym_cmds_GCJ= 14767 old_archive_From_new_cmds_GCJ= 14768 old_archive_from_expsyms_cmds_GCJ= 14769 export_dynamic_flag_spec_GCJ= 14770 whole_archive_flag_spec_GCJ= 14771 thread_safe_flag_spec_GCJ= 14772 hardcode_libdir_flag_spec_GCJ= 14773 hardcode_libdir_flag_spec_ld_GCJ= 14774 hardcode_libdir_separator_GCJ= 14775 hardcode_direct_GCJ=no 14776 hardcode_minus_L_GCJ=no 14777 hardcode_shlibpath_var_GCJ=unsupported 14778 link_all_deplibs_GCJ=unknown 14779 hardcode_automatic_GCJ=no 14780 module_cmds_GCJ= 14781 module_expsym_cmds_GCJ= 14782 always_export_symbols_GCJ=no 14783 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14784 # include_expsyms should be a list of space-separated symbols to be *always* 14785 # included in the symbol list 14786 include_expsyms_GCJ= 14787 # exclude_expsyms can be an extended regexp of symbols to exclude 14788 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14790 # as well as any symbol that contains `d'. 14791 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 14792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14793 # platforms (ab)use it in PIC code, but their linkers get confused if 14794 # the symbol is explicitly referenced. Since portable code cannot 14795 # rely on this symbol name, it's probably fine to never include it in 14796 # preloaded symbol tables. 14797 extract_expsyms_cmds= 14798 # Just being paranoid about ensuring that cc_basename is set. 14799 for cc_temp in $compiler""; do 14800 case $cc_temp in 14801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14803 \-*) ;; 14804 *) break;; 14805 esac 14806done 14807cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14808 14809 case $host_os in 14810 cygwin* | mingw* | pw32*) 14811 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14812 # When not using gcc, we currently assume that we are using 14813 # Microsoft Visual C++. 14814 if test "$GCC" != yes; then 14815 with_gnu_ld=no 14816 fi 14817 ;; 14818 openbsd*) 14819 with_gnu_ld=no 14820 ;; 14821 esac 14822 14823 ld_shlibs_GCJ=yes 14824 if test "$with_gnu_ld" = yes; then 14825 # If archive_cmds runs LD, not CC, wlarc should be empty 14826 wlarc='${wl}' 14827 14828 # Set some defaults for GNU ld with shared library support. These 14829 # are reset later if shared libraries are not supported. Putting them 14830 # here allows them to be overridden if necessary. 14831 runpath_var=LD_RUN_PATH 14832 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 14833 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 14834 # ancient GNU ld didn't support --whole-archive et. al. 14835 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14836 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14837 else 14838 whole_archive_flag_spec_GCJ= 14839 fi 14840 supports_anon_versioning=no 14841 case `$LD -v 2>/dev/null` in 14842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14845 *\ 2.11.*) ;; # other 2.11 versions 14846 *) supports_anon_versioning=yes ;; 14847 esac 14848 14849 # See if GNU ld supports shared libraries. 14850 case $host_os in 14851 aix3* | aix4* | aix5*) 14852 # On AIX/PPC, the GNU linker is very broken 14853 if test "$host_cpu" != ia64; then 14854 ld_shlibs_GCJ=no 14855 cat <<EOF 1>&2 14856 14857*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14858*** to be unable to reliably create shared libraries on AIX. 14859*** Therefore, libtool is disabling shared libraries support. If you 14860*** really care for shared libraries, you may want to modify your PATH 14861*** so that a non-GNU linker is found, and then restart. 14862 14863EOF 14864 fi 14865 ;; 14866 14867 amigaos*) 14868 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14869 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14870 hardcode_minus_L_GCJ=yes 14871 14872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14873 # that the semantics of dynamic libraries on AmigaOS, at least up 14874 # to version 4, is to share data among multiple programs linked 14875 # with the same dynamic library. Since this doesn't match the 14876 # behavior of shared libraries on other platforms, we can't use 14877 # them. 14878 ld_shlibs_GCJ=no 14879 ;; 14880 14881 beos*) 14882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14883 allow_undefined_flag_GCJ=unsupported 14884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14885 # support --undefined. This deserves some investigation. FIXME 14886 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14887 else 14888 ld_shlibs_GCJ=no 14889 fi 14890 ;; 14891 14892 cygwin* | mingw* | pw32*) 14893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 14894 # as there is no search path for DLLs. 14895 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14896 allow_undefined_flag_GCJ=unsupported 14897 always_export_symbols_GCJ=no 14898 enable_shared_with_static_runtimes_GCJ=yes 14899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14900 14901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14903 # If the export-symbols file already is a .def file (1st line 14904 # is EXPORTS), use it as is; otherwise, prepend... 14905 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14906 cp $export_symbols $output_objdir/$soname.def; 14907 else 14908 echo EXPORTS > $output_objdir/$soname.def; 14909 cat $export_symbols >> $output_objdir/$soname.def; 14910 fi~ 14911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14912 else 14913 ld_shlibs_GCJ=no 14914 fi 14915 ;; 14916 14917 linux*) 14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14919 tmp_addflag= 14920 case $cc_basename,$host_cpu in 14921 pgcc*) # Portland Group C compiler 14922 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14923 tmp_addflag=' $pic_flag' 14924 ;; 14925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14926 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14927 tmp_addflag=' $pic_flag -Mnomain' ;; 14928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14929 tmp_addflag=' -i_dynamic' ;; 14930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14931 tmp_addflag=' -i_dynamic -nofor_main' ;; 14932 ifc* | ifort*) # Intel Fortran compiler 14933 tmp_addflag=' -nofor_main' ;; 14934 esac 14935 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14936 14937 if test $supports_anon_versioning = yes; then 14938 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 14939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14940 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14942 fi 14943 else 14944 ld_shlibs_GCJ=no 14945 fi 14946 ;; 14947 14948 netbsd*) 14949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14950 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14951 wlarc= 14952 else 14953 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14954 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14955 fi 14956 ;; 14957 14958 solaris* | sysv5*) 14959 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14960 ld_shlibs_GCJ=no 14961 cat <<EOF 1>&2 14962 14963*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14964*** create shared libraries on Solaris systems. Therefore, libtool 14965*** is disabling shared libraries support. We urge you to upgrade GNU 14966*** binutils to release 2.9.1 or newer. Another option is to modify 14967*** your PATH or compiler configuration so that the native linker is 14968*** used, and then restart. 14969 14970EOF 14971 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14973 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14974 else 14975 ld_shlibs_GCJ=no 14976 fi 14977 ;; 14978 14979 sunos4*) 14980 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14981 wlarc= 14982 hardcode_direct_GCJ=yes 14983 hardcode_shlibpath_var_GCJ=no 14984 ;; 14985 14986 *) 14987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14990 else 14991 ld_shlibs_GCJ=no 14992 fi 14993 ;; 14994 esac 14995 14996 if test "$ld_shlibs_GCJ" = no; then 14997 runpath_var= 14998 hardcode_libdir_flag_spec_GCJ= 14999 export_dynamic_flag_spec_GCJ= 15000 whole_archive_flag_spec_GCJ= 15001 fi 15002 else 15003 # PORTME fill in a description of your system's linker (not GNU ld) 15004 case $host_os in 15005 aix3*) 15006 allow_undefined_flag_GCJ=unsupported 15007 always_export_symbols_GCJ=yes 15008 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15009 # Note: this linker hardcodes the directories in LIBPATH if there 15010 # are no directories specified by -L. 15011 hardcode_minus_L_GCJ=yes 15012 if test "$GCC" = yes && test -z "$link_static_flag"; then 15013 # Neither direct hardcoding nor static linking is supported with a 15014 # broken collect2. 15015 hardcode_direct_GCJ=unsupported 15016 fi 15017 ;; 15018 15019 aix4* | aix5*) 15020 if test "$host_cpu" = ia64; then 15021 # On IA64, the linker does run time linking by default, so we don't 15022 # have to do anything special. 15023 aix_use_runtimelinking=no 15024 exp_sym_flag='-Bexport' 15025 no_entry_flag="" 15026 else 15027 # If we're using GNU nm, then we don't want the "-C" option. 15028 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15030 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15031 else 15032 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15033 fi 15034 aix_use_runtimelinking=no 15035 15036 # Test if we are trying to use run time linking or normal 15037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15038 # need to do runtime linking. 15039 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15040 for ld_flag in $LDFLAGS; do 15041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15042 aix_use_runtimelinking=yes 15043 break 15044 fi 15045 done 15046 esac 15047 15048 exp_sym_flag='-bexport' 15049 no_entry_flag='-bnoentry' 15050 fi 15051 15052 # When large executables or shared objects are built, AIX ld can 15053 # have problems creating the table of contents. If linking a library 15054 # or program results in "error TOC overflow" add -mminimal-toc to 15055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15057 15058 archive_cmds_GCJ='' 15059 hardcode_direct_GCJ=yes 15060 hardcode_libdir_separator_GCJ=':' 15061 link_all_deplibs_GCJ=yes 15062 15063 if test "$GCC" = yes; then 15064 case $host_os in aix4.[012]|aix4.[012].*) 15065 # We only want to do this on AIX 4.2 and lower, the check 15066 # below for broken collect2 doesn't work under 4.3+ 15067 collect2name=`${CC} -print-prog-name=collect2` 15068 if test -f "$collect2name" && \ 15069 strings "$collect2name" | grep resolve_lib_name >/dev/null 15070 then 15071 # We have reworked collect2 15072 hardcode_direct_GCJ=yes 15073 else 15074 # We have old collect2 15075 hardcode_direct_GCJ=unsupported 15076 # It fails to find uninstalled libraries when the uninstalled 15077 # path is not listed in the libpath. Setting hardcode_minus_L 15078 # to unsupported forces relinking 15079 hardcode_minus_L_GCJ=yes 15080 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15081 hardcode_libdir_separator_GCJ= 15082 fi 15083 esac 15084 shared_flag='-shared' 15085 if test "$aix_use_runtimelinking" = yes; then 15086 shared_flag="$shared_flag "'${wl}-G' 15087 fi 15088 else 15089 # not using gcc 15090 if test "$host_cpu" = ia64; then 15091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15092 # chokes on -Wl,-G. The following line is correct: 15093 shared_flag='-G' 15094 else 15095 if test "$aix_use_runtimelinking" = yes; then 15096 shared_flag='${wl}-G' 15097 else 15098 shared_flag='${wl}-bM:SRE' 15099 fi 15100 fi 15101 fi 15102 15103 # It seems that -bexpall does not export symbols beginning with 15104 # underscore (_), so it is better to generate a list of symbols to export. 15105 always_export_symbols_GCJ=yes 15106 if test "$aix_use_runtimelinking" = yes; then 15107 # Warning - without using the other runtime loading flags (-brtl), 15108 # -berok will link without error, but may produce a broken library. 15109 allow_undefined_flag_GCJ='-berok' 15110 # Determine the default libpath from the value encoded in an empty executable. 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113 15114int 15115main () 15116{ 15117 15118 ; 15119 return 0; 15120} 15121_ACEOF 15122if ac_fn_c_try_link "$LINENO"; then : 15123 15124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15125}'` 15126# Check for a 64-bit object if we didn't find anything. 15127if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15128}'`; fi 15129fi 15130rm -f core conftest.err conftest.$ac_objext \ 15131 conftest$ac_exeext conftest.$ac_ext 15132if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15133 15134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15135 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15136 else 15137 if test "$host_cpu" = ia64; then 15138 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15139 allow_undefined_flag_GCJ="-z nodefs" 15140 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15141 else 15142 # Determine the default libpath from the value encoded in an empty executable. 15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15144/* end confdefs.h. */ 15145 15146int 15147main () 15148{ 15149 15150 ; 15151 return 0; 15152} 15153_ACEOF 15154if ac_fn_c_try_link "$LINENO"; then : 15155 15156aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15157}'` 15158# Check for a 64-bit object if we didn't find anything. 15159if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15160}'`; fi 15161fi 15162rm -f core conftest.err conftest.$ac_objext \ 15163 conftest$ac_exeext conftest.$ac_ext 15164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15165 15166 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15167 # Warning - without using the other run time loading flags, 15168 # -berok will link without error, but may produce a broken library. 15169 no_undefined_flag_GCJ=' ${wl}-bernotok' 15170 allow_undefined_flag_GCJ=' ${wl}-berok' 15171 # -bexpall does not export symbols beginning with underscore (_) 15172 always_export_symbols_GCJ=yes 15173 # Exported symbols can be pulled into shared objects from archives 15174 whole_archive_flag_spec_GCJ=' ' 15175 archive_cmds_need_lc_GCJ=yes 15176 # This is similar to how AIX traditionally builds its shared libraries. 15177 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15178 fi 15179 fi 15180 ;; 15181 15182 amigaos*) 15183 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15184 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15185 hardcode_minus_L_GCJ=yes 15186 # see comment about different semantics on the GNU ld section 15187 ld_shlibs_GCJ=no 15188 ;; 15189 15190 bsdi[45]*) 15191 export_dynamic_flag_spec_GCJ=-rdynamic 15192 ;; 15193 15194 cygwin* | mingw* | pw32*) 15195 # When not using gcc, we currently assume that we are using 15196 # Microsoft Visual C++. 15197 # hardcode_libdir_flag_spec is actually meaningless, as there is 15198 # no search path for DLLs. 15199 hardcode_libdir_flag_spec_GCJ=' ' 15200 allow_undefined_flag_GCJ=unsupported 15201 # Tell ltmain to make .lib files, not .a files. 15202 libext=lib 15203 # Tell ltmain to make .dll files, not .so files. 15204 shrext_cmds=".dll" 15205 # FIXME: Setting linknames here is a bad hack. 15206 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15207 # The linker will automatically build a .lib file if we build a DLL. 15208 old_archive_From_new_cmds_GCJ='true' 15209 # FIXME: Should let the user specify the lib program. 15210 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15211 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 15212 enable_shared_with_static_runtimes_GCJ=yes 15213 ;; 15214 15215 darwin* | rhapsody*) 15216 case $host_os in 15217 rhapsody* | darwin1.[012]) 15218 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 15219 ;; 15220 *) # Darwin 1.3 on 15221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15223 else 15224 case ${MACOSX_DEPLOYMENT_TARGET} in 15225 10.[012]) 15226 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15227 ;; 15228 10.*) 15229 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 15230 ;; 15231 esac 15232 fi 15233 ;; 15234 esac 15235 archive_cmds_need_lc_GCJ=no 15236 hardcode_direct_GCJ=no 15237 hardcode_automatic_GCJ=yes 15238 hardcode_shlibpath_var_GCJ=unsupported 15239 whole_archive_flag_spec_GCJ='' 15240 link_all_deplibs_GCJ=yes 15241 if test "$GCC" = yes ; then 15242 output_verbose_link_cmd='echo' 15243 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15244 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15246 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15247 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15248 else 15249 case $cc_basename in 15250 xlc*) 15251 output_verbose_link_cmd='echo' 15252 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15253 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15255 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15256 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15257 ;; 15258 *) 15259 ld_shlibs_GCJ=no 15260 ;; 15261 esac 15262 fi 15263 ;; 15264 15265 dgux*) 15266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15267 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15268 hardcode_shlibpath_var_GCJ=no 15269 ;; 15270 15271 freebsd1*) 15272 ld_shlibs_GCJ=no 15273 ;; 15274 15275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15276 # support. Future versions do this automatically, but an explicit c++rt0.o 15277 # does not break anything, and helps significantly (at the cost of a little 15278 # extra space). 15279 freebsd2.2*) 15280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15281 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15282 hardcode_direct_GCJ=yes 15283 hardcode_shlibpath_var_GCJ=no 15284 ;; 15285 15286 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15287 freebsd2*) 15288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15289 hardcode_direct_GCJ=yes 15290 hardcode_minus_L_GCJ=yes 15291 hardcode_shlibpath_var_GCJ=no 15292 ;; 15293 15294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15295 freebsd* | kfreebsd*-gnu | dragonfly*) 15296 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15297 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15298 hardcode_direct_GCJ=yes 15299 hardcode_shlibpath_var_GCJ=no 15300 ;; 15301 15302 hpux9*) 15303 if test "$GCC" = yes; then 15304 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15305 else 15306 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15307 fi 15308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15309 hardcode_libdir_separator_GCJ=: 15310 hardcode_direct_GCJ=yes 15311 15312 # hardcode_minus_L: Not really in the search PATH, 15313 # but as the default location of the library. 15314 hardcode_minus_L_GCJ=yes 15315 export_dynamic_flag_spec_GCJ='${wl}-E' 15316 ;; 15317 15318 hpux10* | hpux11*) 15319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15320 case $host_cpu in 15321 hppa*64*|ia64*) 15322 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15323 ;; 15324 *) 15325 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15326 ;; 15327 esac 15328 else 15329 case $host_cpu in 15330 hppa*64*|ia64*) 15331 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15332 ;; 15333 *) 15334 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15335 ;; 15336 esac 15337 fi 15338 if test "$with_gnu_ld" = no; then 15339 case $host_cpu in 15340 hppa*64*) 15341 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15342 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15343 hardcode_libdir_separator_GCJ=: 15344 hardcode_direct_GCJ=no 15345 hardcode_shlibpath_var_GCJ=no 15346 ;; 15347 ia64*) 15348 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15349 hardcode_direct_GCJ=no 15350 hardcode_shlibpath_var_GCJ=no 15351 15352 # hardcode_minus_L: Not really in the search PATH, 15353 # but as the default location of the library. 15354 hardcode_minus_L_GCJ=yes 15355 ;; 15356 *) 15357 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15358 hardcode_libdir_separator_GCJ=: 15359 hardcode_direct_GCJ=yes 15360 export_dynamic_flag_spec_GCJ='${wl}-E' 15361 15362 # hardcode_minus_L: Not really in the search PATH, 15363 # but as the default location of the library. 15364 hardcode_minus_L_GCJ=yes 15365 ;; 15366 esac 15367 fi 15368 ;; 15369 15370 irix5* | irix6* | nonstopux*) 15371 if test "$GCC" = yes; then 15372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15373 else 15374 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15375 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15376 fi 15377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15378 hardcode_libdir_separator_GCJ=: 15379 link_all_deplibs_GCJ=yes 15380 ;; 15381 15382 netbsd*) 15383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15385 else 15386 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15387 fi 15388 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15389 hardcode_direct_GCJ=yes 15390 hardcode_shlibpath_var_GCJ=no 15391 ;; 15392 15393 newsos6) 15394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15395 hardcode_direct_GCJ=yes 15396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15397 hardcode_libdir_separator_GCJ=: 15398 hardcode_shlibpath_var_GCJ=no 15399 ;; 15400 15401 openbsd*) 15402 hardcode_direct_GCJ=yes 15403 hardcode_shlibpath_var_GCJ=no 15404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15405 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15406 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15408 export_dynamic_flag_spec_GCJ='${wl}-E' 15409 else 15410 case $host_os in 15411 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15412 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15413 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15414 ;; 15415 *) 15416 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15418 ;; 15419 esac 15420 fi 15421 ;; 15422 15423 os2*) 15424 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15425 hardcode_minus_L_GCJ=yes 15426 allow_undefined_flag_GCJ=unsupported 15427 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15428 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15429 ;; 15430 15431 osf3*) 15432 if test "$GCC" = yes; then 15433 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15434 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15435 else 15436 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15437 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15438 fi 15439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15440 hardcode_libdir_separator_GCJ=: 15441 ;; 15442 15443 osf4* | osf5*) # as osf3* with the addition of -msym flag 15444 if test "$GCC" = yes; then 15445 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15446 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15448 else 15449 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15450 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15451 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15452 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15453 15454 # Both c and cxx compiler support -rpath directly 15455 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 15456 fi 15457 hardcode_libdir_separator_GCJ=: 15458 ;; 15459 15460 sco3.2v5*) 15461 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15462 hardcode_shlibpath_var_GCJ=no 15463 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 15464 runpath_var=LD_RUN_PATH 15465 hardcode_runpath_var=yes 15466 ;; 15467 15468 solaris*) 15469 no_undefined_flag_GCJ=' -z text' 15470 if test "$GCC" = yes; then 15471 wlarc='${wl}' 15472 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15473 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15474 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15475 else 15476 wlarc='' 15477 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15478 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15480 fi 15481 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15482 hardcode_shlibpath_var_GCJ=no 15483 case $host_os in 15484 solaris2.[0-5] | solaris2.[0-5].*) ;; 15485 *) 15486 # The compiler driver will combine linker options so we 15487 # cannot just pass the convience library names through 15488 # without $wl, iff we do not link with $LD. 15489 # Luckily, gcc supports the same syntax we need for Sun Studio. 15490 # Supported since Solaris 2.6 (maybe 2.5.1?) 15491 case $wlarc in 15492 '') 15493 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 15494 *) 15495 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15496 esac ;; 15497 esac 15498 link_all_deplibs_GCJ=yes 15499 ;; 15500 15501 sunos4*) 15502 if test "x$host_vendor" = xsequent; then 15503 # Use $CC to link under sequent, because it throws in some extra .o 15504 # files that make .init and .fini sections work. 15505 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15506 else 15507 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15508 fi 15509 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15510 hardcode_direct_GCJ=yes 15511 hardcode_minus_L_GCJ=yes 15512 hardcode_shlibpath_var_GCJ=no 15513 ;; 15514 15515 sysv4) 15516 case $host_vendor in 15517 sni) 15518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15519 hardcode_direct_GCJ=yes # is this really true??? 15520 ;; 15521 siemens) 15522 ## LD is ld it makes a PLAMLIB 15523 ## CC just makes a GrossModule. 15524 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15525 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 15526 hardcode_direct_GCJ=no 15527 ;; 15528 motorola) 15529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15530 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 15531 ;; 15532 esac 15533 runpath_var='LD_RUN_PATH' 15534 hardcode_shlibpath_var_GCJ=no 15535 ;; 15536 15537 sysv4.3*) 15538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15539 hardcode_shlibpath_var_GCJ=no 15540 export_dynamic_flag_spec_GCJ='-Bexport' 15541 ;; 15542 15543 sysv4*MP*) 15544 if test -d /usr/nec; then 15545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15546 hardcode_shlibpath_var_GCJ=no 15547 runpath_var=LD_RUN_PATH 15548 hardcode_runpath_var=yes 15549 ld_shlibs_GCJ=yes 15550 fi 15551 ;; 15552 15553 sysv4.2uw2*) 15554 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15555 hardcode_direct_GCJ=yes 15556 hardcode_minus_L_GCJ=no 15557 hardcode_shlibpath_var_GCJ=no 15558 hardcode_runpath_var=yes 15559 runpath_var=LD_RUN_PATH 15560 ;; 15561 15562 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15563 no_undefined_flag_GCJ='${wl}-z ${wl}text' 15564 if test "$GCC" = yes; then 15565 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15566 else 15567 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15568 fi 15569 runpath_var='LD_RUN_PATH' 15570 hardcode_shlibpath_var_GCJ=no 15571 ;; 15572 15573 sysv5*) 15574 no_undefined_flag_GCJ=' -z text' 15575 # $CC -shared without GNU ld will not create a library from C++ 15576 # object files and a static libstdc++, better avoid it by now 15577 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15578 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15580 hardcode_libdir_flag_spec_GCJ= 15581 hardcode_shlibpath_var_GCJ=no 15582 runpath_var='LD_RUN_PATH' 15583 ;; 15584 15585 uts4*) 15586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15587 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15588 hardcode_shlibpath_var_GCJ=no 15589 ;; 15590 15591 *) 15592 ld_shlibs_GCJ=no 15593 ;; 15594 esac 15595 fi 15596 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 15598$as_echo "$ld_shlibs_GCJ" >&6; } 15599test "$ld_shlibs_GCJ" = no && can_build_shared=no 15600 15601variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15602if test "$GCC" = yes; then 15603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15604fi 15605 15606# 15607# Do we need to explicitly link libc? 15608# 15609case "x$archive_cmds_need_lc_GCJ" in 15610x|xyes) 15611 # Assume -lc should be added 15612 archive_cmds_need_lc_GCJ=yes 15613 15614 if test "$enable_shared" = yes && test "$GCC" = yes; then 15615 case $archive_cmds_GCJ in 15616 *'~'*) 15617 # FIXME: we may have to deal with multi-command sequences. 15618 ;; 15619 '$CC '*) 15620 # Test whether the compiler implicitly links with -lc since on some 15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15622 # to ld, don't add -lc before -lgcc. 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15624$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15625 $rm conftest* 15626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15627 15628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15629 (eval $ac_compile) 2>&5 15630 ac_status=$? 15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15632 test $ac_status = 0; } 2>conftest.err; then 15633 soname=conftest 15634 lib=conftest 15635 libobjs=conftest.$ac_objext 15636 deplibs= 15637 wl=$lt_prog_compiler_wl_GCJ 15638 compiler_flags=-v 15639 linker_flags=-v 15640 verstring= 15641 output_objdir=. 15642 libname=conftest 15643 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 15644 allow_undefined_flag_GCJ= 15645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15646 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15647 ac_status=$? 15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15649 test $ac_status = 0; } 15650 then 15651 archive_cmds_need_lc_GCJ=no 15652 else 15653 archive_cmds_need_lc_GCJ=yes 15654 fi 15655 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 15656 else 15657 cat conftest.err 1>&5 15658 fi 15659 $rm conftest* 15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 15661$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 15662 ;; 15663 esac 15664 fi 15665 ;; 15666esac 15667 15668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15669$as_echo_n "checking dynamic linker characteristics... " >&6; } 15670library_names_spec= 15671libname_spec='lib$name' 15672soname_spec= 15673shrext_cmds=".so" 15674postinstall_cmds= 15675postuninstall_cmds= 15676finish_cmds= 15677finish_eval= 15678shlibpath_var= 15679shlibpath_overrides_runpath=unknown 15680version_type=none 15681dynamic_linker="$host_os ld.so" 15682sys_lib_dlsearch_path_spec="/lib /usr/lib" 15683if test "$GCC" = yes; then 15684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15685 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15686 # if the path contains ";" then we assume it to be the separator 15687 # otherwise default to the standard path separator (i.e. ":") - it is 15688 # assumed that no part of a normal pathname contains ";" but that should 15689 # okay in the real world where ";" in dirpaths is itself problematic. 15690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15691 else 15692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15693 fi 15694else 15695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15696fi 15697need_lib_prefix=unknown 15698hardcode_into_libs=no 15699 15700# when you set need_version to no, make sure it does not cause -set_version 15701# flags to be left without arguments 15702need_version=unknown 15703 15704case $host_os in 15705aix3*) 15706 version_type=linux 15707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15708 shlibpath_var=LIBPATH 15709 15710 # AIX 3 has no versioning support, so we append a major version to the name. 15711 soname_spec='${libname}${release}${shared_ext}$major' 15712 ;; 15713 15714aix4* | aix5*) 15715 version_type=linux 15716 need_lib_prefix=no 15717 need_version=no 15718 hardcode_into_libs=yes 15719 if test "$host_cpu" = ia64; then 15720 # AIX 5 supports IA64 15721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15722 shlibpath_var=LD_LIBRARY_PATH 15723 else 15724 # With GCC up to 2.95.x, collect2 would create an import file 15725 # for dependence libraries. The import file would start with 15726 # the line `#! .'. This would cause the generated library to 15727 # depend on `.', always an invalid library. This was fixed in 15728 # development snapshots of GCC prior to 3.0. 15729 case $host_os in 15730 aix4 | aix4.[01] | aix4.[01].*) 15731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15732 echo ' yes ' 15733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15734 : 15735 else 15736 can_build_shared=no 15737 fi 15738 ;; 15739 esac 15740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15741 # soname into executable. Probably we can add versioning support to 15742 # collect2, so additional links can be useful in future. 15743 if test "$aix_use_runtimelinking" = yes; then 15744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15745 # instead of lib<name>.a to let people know that these are not 15746 # typical AIX shared libraries. 15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15748 else 15749 # We preserve .a as extension for shared libraries through AIX4.2 15750 # and later when we are not doing run time linking. 15751 library_names_spec='${libname}${release}.a $libname.a' 15752 soname_spec='${libname}${release}${shared_ext}$major' 15753 fi 15754 shlibpath_var=LIBPATH 15755 fi 15756 ;; 15757 15758amigaos*) 15759 library_names_spec='$libname.ixlibrary $libname.a' 15760 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15761 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' 15762 ;; 15763 15764beos*) 15765 library_names_spec='${libname}${shared_ext}' 15766 dynamic_linker="$host_os ld.so" 15767 shlibpath_var=LIBRARY_PATH 15768 ;; 15769 15770bsdi[45]*) 15771 version_type=linux 15772 need_version=no 15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15774 soname_spec='${libname}${release}${shared_ext}$major' 15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15776 shlibpath_var=LD_LIBRARY_PATH 15777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15779 # the default ld.so.conf also contains /usr/contrib/lib and 15780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15781 # libtool to hard-code these into programs 15782 ;; 15783 15784cygwin* | mingw* | pw32*) 15785 version_type=windows 15786 shrext_cmds=".dll" 15787 need_version=no 15788 need_lib_prefix=no 15789 15790 case $GCC,$host_os in 15791 yes,cygwin* | yes,mingw* | yes,pw32*) 15792 library_names_spec='$libname.dll.a' 15793 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15794 postinstall_cmds='base_file=`basename \${file}`~ 15795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15796 dldir=$destdir/`dirname \$dlpath`~ 15797 test -d \$dldir || mkdir -p \$dldir~ 15798 $install_prog $dir/$dlname \$dldir/$dlname~ 15799 chmod a+x \$dldir/$dlname' 15800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15801 dlpath=$dir/\$dldll~ 15802 $rm \$dlpath' 15803 shlibpath_overrides_runpath=yes 15804 15805 case $host_os in 15806 cygwin*) 15807 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15810 ;; 15811 mingw*) 15812 # MinGW DLLs use traditional 'lib' prefix 15813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15815 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15816 # It is most probably a Windows format PATH printed by 15817 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15818 # path with ; separators, and with drive letters. We can handle the 15819 # drive letters (cygwin fileutils understands them), so leave them, 15820 # especially as we might pass files found there to a mingw objdump, 15821 # which wouldn't understand a cygwinified path. Ahh. 15822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15823 else 15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15825 fi 15826 ;; 15827 pw32*) 15828 # pw32 DLLs use 'pw' prefix rather than 'lib' 15829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15830 ;; 15831 esac 15832 ;; 15833 15834 *) 15835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15836 ;; 15837 esac 15838 dynamic_linker='Win32 ld.exe' 15839 # FIXME: first we should search . and the directory the executable is in 15840 shlibpath_var=PATH 15841 ;; 15842 15843darwin* | rhapsody*) 15844 dynamic_linker="$host_os dyld" 15845 version_type=darwin 15846 need_lib_prefix=no 15847 need_version=no 15848 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15849 soname_spec='${libname}${release}${major}$shared_ext' 15850 shlibpath_overrides_runpath=yes 15851 shlibpath_var=DYLD_LIBRARY_PATH 15852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15853 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15854 if test "$GCC" = yes; then 15855 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15856 else 15857 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15858 fi 15859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15860 ;; 15861 15862dgux*) 15863 version_type=linux 15864 need_lib_prefix=no 15865 need_version=no 15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15867 soname_spec='${libname}${release}${shared_ext}$major' 15868 shlibpath_var=LD_LIBRARY_PATH 15869 ;; 15870 15871freebsd1*) 15872 dynamic_linker=no 15873 ;; 15874 15875kfreebsd*-gnu) 15876 version_type=linux 15877 need_lib_prefix=no 15878 need_version=no 15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15880 soname_spec='${libname}${release}${shared_ext}$major' 15881 shlibpath_var=LD_LIBRARY_PATH 15882 shlibpath_overrides_runpath=no 15883 hardcode_into_libs=yes 15884 dynamic_linker='GNU ld.so' 15885 ;; 15886 15887freebsd* | dragonfly*) 15888 # DragonFly does not have aout. When/if they implement a new 15889 # versioning mechanism, adjust this. 15890 if test -x /usr/bin/objformat; then 15891 objformat=`/usr/bin/objformat` 15892 else 15893 case $host_os in 15894 freebsd[123]*) objformat=aout ;; 15895 *) objformat=elf ;; 15896 esac 15897 fi 15898 version_type=freebsd-$objformat 15899 case $version_type in 15900 freebsd-elf*) 15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15902 need_version=no 15903 need_lib_prefix=no 15904 ;; 15905 freebsd-*) 15906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15907 need_version=yes 15908 ;; 15909 esac 15910 shlibpath_var=LD_LIBRARY_PATH 15911 case $host_os in 15912 freebsd2*) 15913 shlibpath_overrides_runpath=yes 15914 ;; 15915 freebsd3.[01]* | freebsdelf3.[01]*) 15916 shlibpath_overrides_runpath=yes 15917 hardcode_into_libs=yes 15918 ;; 15919 *) # from 3.2 on 15920 shlibpath_overrides_runpath=no 15921 hardcode_into_libs=yes 15922 ;; 15923 esac 15924 ;; 15925 15926gnu*) 15927 version_type=linux 15928 need_lib_prefix=no 15929 need_version=no 15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15931 soname_spec='${libname}${release}${shared_ext}$major' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 hardcode_into_libs=yes 15934 ;; 15935 15936hpux9* | hpux10* | hpux11*) 15937 # Give a soname corresponding to the major version so that dld.sl refuses to 15938 # link against other versions. 15939 version_type=sunos 15940 need_lib_prefix=no 15941 need_version=no 15942 case $host_cpu in 15943 ia64*) 15944 shrext_cmds='.so' 15945 hardcode_into_libs=yes 15946 dynamic_linker="$host_os dld.so" 15947 shlibpath_var=LD_LIBRARY_PATH 15948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15950 soname_spec='${libname}${release}${shared_ext}$major' 15951 if test "X$HPUX_IA64_MODE" = X32; then 15952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15953 else 15954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15955 fi 15956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15957 ;; 15958 hppa*64*) 15959 shrext_cmds='.sl' 15960 hardcode_into_libs=yes 15961 dynamic_linker="$host_os dld.sl" 15962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15965 soname_spec='${libname}${release}${shared_ext}$major' 15966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15968 ;; 15969 *) 15970 shrext_cmds='.sl' 15971 dynamic_linker="$host_os dld.sl" 15972 shlibpath_var=SHLIB_PATH 15973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15975 soname_spec='${libname}${release}${shared_ext}$major' 15976 ;; 15977 esac 15978 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15979 postinstall_cmds='chmod 555 $lib' 15980 ;; 15981 15982irix5* | irix6* | nonstopux*) 15983 case $host_os in 15984 nonstopux*) version_type=nonstopux ;; 15985 *) 15986 if test "$lt_cv_prog_gnu_ld" = yes; then 15987 version_type=linux 15988 else 15989 version_type=irix 15990 fi ;; 15991 esac 15992 need_lib_prefix=no 15993 need_version=no 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15996 case $host_os in 15997 irix5* | nonstopux*) 15998 libsuff= shlibsuff= 15999 ;; 16000 *) 16001 case $LD in # libtool.m4 will add one of these switches to LD 16002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16003 libsuff= shlibsuff= libmagic=32-bit;; 16004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16005 libsuff=32 shlibsuff=N32 libmagic=N32;; 16006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16007 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16008 *) libsuff= shlibsuff= libmagic=never-match;; 16009 esac 16010 ;; 16011 esac 16012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16013 shlibpath_overrides_runpath=no 16014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16016 hardcode_into_libs=yes 16017 ;; 16018 16019# No shared lib support for Linux oldld, aout, or coff. 16020linux*oldld* | linux*aout* | linux*coff*) 16021 dynamic_linker=no 16022 ;; 16023 16024# This must be Linux ELF. 16025linux*) 16026 version_type=linux 16027 need_lib_prefix=no 16028 need_version=no 16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16032 shlibpath_var=LD_LIBRARY_PATH 16033 shlibpath_overrides_runpath=no 16034 # This implies no fast_install, which is unacceptable. 16035 # Some rework will be needed to allow for fast_install 16036 # before this can be enabled. 16037 hardcode_into_libs=yes 16038 16039 # Append ld.so.conf contents to the search path 16040 if test -f /etc/ld.so.conf; then 16041 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16043 fi 16044 16045 # We used to test for /lib/ld.so.1 and disable shared libraries on 16046 # powerpc, because MkLinux only supported shared libraries with the 16047 # GNU dynamic linker. Since this was broken with cross compilers, 16048 # most powerpc-linux boxes support dynamic linking these days and 16049 # people can always --disable-shared, the test was removed, and we 16050 # assume the GNU/Linux dynamic linker is in use. 16051 dynamic_linker='GNU/Linux ld.so' 16052 ;; 16053 16054knetbsd*-gnu) 16055 version_type=linux 16056 need_lib_prefix=no 16057 need_version=no 16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16059 soname_spec='${libname}${release}${shared_ext}$major' 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=no 16062 hardcode_into_libs=yes 16063 dynamic_linker='GNU ld.so' 16064 ;; 16065 16066netbsd*) 16067 version_type=sunos 16068 need_lib_prefix=no 16069 need_version=no 16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16073 dynamic_linker='NetBSD (a.out) ld.so' 16074 else 16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16076 soname_spec='${libname}${release}${shared_ext}$major' 16077 dynamic_linker='NetBSD ld.elf_so' 16078 fi 16079 shlibpath_var=LD_LIBRARY_PATH 16080 shlibpath_overrides_runpath=yes 16081 hardcode_into_libs=yes 16082 ;; 16083 16084newsos6) 16085 version_type=linux 16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=yes 16089 ;; 16090 16091nto-qnx*) 16092 version_type=linux 16093 need_lib_prefix=no 16094 need_version=no 16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16096 soname_spec='${libname}${release}${shared_ext}$major' 16097 shlibpath_var=LD_LIBRARY_PATH 16098 shlibpath_overrides_runpath=yes 16099 ;; 16100 16101openbsd*) 16102 version_type=sunos 16103 need_lib_prefix=no 16104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16105 case $host_os in 16106 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16107 *) need_version=no ;; 16108 esac 16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16111 shlibpath_var=LD_LIBRARY_PATH 16112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16113 case $host_os in 16114 openbsd2.[89] | openbsd2.[89].*) 16115 shlibpath_overrides_runpath=no 16116 ;; 16117 *) 16118 shlibpath_overrides_runpath=yes 16119 ;; 16120 esac 16121 else 16122 shlibpath_overrides_runpath=yes 16123 fi 16124 ;; 16125 16126os2*) 16127 libname_spec='$name' 16128 shrext_cmds=".dll" 16129 need_lib_prefix=no 16130 library_names_spec='$libname${shared_ext} $libname.a' 16131 dynamic_linker='OS/2 ld.exe' 16132 shlibpath_var=LIBPATH 16133 ;; 16134 16135osf3* | osf4* | osf5*) 16136 version_type=osf 16137 need_lib_prefix=no 16138 need_version=no 16139 soname_spec='${libname}${release}${shared_ext}$major' 16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16141 shlibpath_var=LD_LIBRARY_PATH 16142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16144 ;; 16145 16146sco3.2v5*) 16147 version_type=osf 16148 soname_spec='${libname}${release}${shared_ext}$major' 16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16150 shlibpath_var=LD_LIBRARY_PATH 16151 ;; 16152 16153solaris*) 16154 version_type=linux 16155 need_lib_prefix=no 16156 need_version=no 16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16158 soname_spec='${libname}${release}${shared_ext}$major' 16159 shlibpath_var=LD_LIBRARY_PATH 16160 shlibpath_overrides_runpath=yes 16161 hardcode_into_libs=yes 16162 # ldd complains unless libraries are executable 16163 postinstall_cmds='chmod +x $lib' 16164 ;; 16165 16166sunos4*) 16167 version_type=sunos 16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16170 shlibpath_var=LD_LIBRARY_PATH 16171 shlibpath_overrides_runpath=yes 16172 if test "$with_gnu_ld" = yes; then 16173 need_lib_prefix=no 16174 fi 16175 need_version=yes 16176 ;; 16177 16178sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16179 version_type=linux 16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16181 soname_spec='${libname}${release}${shared_ext}$major' 16182 shlibpath_var=LD_LIBRARY_PATH 16183 case $host_vendor in 16184 sni) 16185 shlibpath_overrides_runpath=no 16186 need_lib_prefix=no 16187 export_dynamic_flag_spec='${wl}-Blargedynsym' 16188 runpath_var=LD_RUN_PATH 16189 ;; 16190 siemens) 16191 need_lib_prefix=no 16192 ;; 16193 motorola) 16194 need_lib_prefix=no 16195 need_version=no 16196 shlibpath_overrides_runpath=no 16197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16198 ;; 16199 esac 16200 ;; 16201 16202sysv4*MP*) 16203 if test -d /usr/nec ;then 16204 version_type=linux 16205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16206 soname_spec='$libname${shared_ext}.$major' 16207 shlibpath_var=LD_LIBRARY_PATH 16208 fi 16209 ;; 16210 16211uts4*) 16212 version_type=linux 16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16214 soname_spec='${libname}${release}${shared_ext}$major' 16215 shlibpath_var=LD_LIBRARY_PATH 16216 ;; 16217 16218*) 16219 dynamic_linker=no 16220 ;; 16221esac 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16223$as_echo "$dynamic_linker" >&6; } 16224test "$dynamic_linker" = no && can_build_shared=no 16225 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16227$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16228hardcode_action_GCJ= 16229if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 16230 test -n "$runpath_var_GCJ" || \ 16231 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 16232 16233 # We can hardcode non-existant directories. 16234 if test "$hardcode_direct_GCJ" != no && 16235 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16236 # have to relink, otherwise we might link with an installed library 16237 # when we should be linking with a yet-to-be-installed one 16238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 16239 test "$hardcode_minus_L_GCJ" != no; then 16240 # Linking always hardcodes the temporary library directory. 16241 hardcode_action_GCJ=relink 16242 else 16243 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16244 hardcode_action_GCJ=immediate 16245 fi 16246else 16247 # We cannot hardcode anything, or else we can only hardcode existing 16248 # directories. 16249 hardcode_action_GCJ=unsupported 16250fi 16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 16252$as_echo "$hardcode_action_GCJ" >&6; } 16253 16254if test "$hardcode_action_GCJ" = relink; then 16255 # Fast installation is not supported 16256 enable_fast_install=no 16257elif test "$shlibpath_overrides_runpath" = yes || 16258 test "$enable_shared" = no; then 16259 # Fast installation is not necessary 16260 enable_fast_install=needless 16261fi 16262 16263striplib= 16264old_striplib= 16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16266$as_echo_n "checking whether stripping libraries is possible... " >&6; } 16267if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16269 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16271$as_echo "yes" >&6; } 16272else 16273# FIXME - insert some real tests, host_os isn't really good enough 16274 case $host_os in 16275 darwin*) 16276 if test -n "$STRIP" ; then 16277 striplib="$STRIP -x" 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16279$as_echo "yes" >&6; } 16280 else 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16282$as_echo "no" >&6; } 16283fi 16284 ;; 16285 *) 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16287$as_echo "no" >&6; } 16288 ;; 16289 esac 16290fi 16291 16292if test "x$enable_dlopen" != xyes; then 16293 enable_dlopen=unknown 16294 enable_dlopen_self=unknown 16295 enable_dlopen_self_static=unknown 16296else 16297 lt_cv_dlopen=no 16298 lt_cv_dlopen_libs= 16299 16300 case $host_os in 16301 beos*) 16302 lt_cv_dlopen="load_add_on" 16303 lt_cv_dlopen_libs= 16304 lt_cv_dlopen_self=yes 16305 ;; 16306 16307 mingw* | pw32*) 16308 lt_cv_dlopen="LoadLibrary" 16309 lt_cv_dlopen_libs= 16310 ;; 16311 16312 cygwin*) 16313 lt_cv_dlopen="dlopen" 16314 lt_cv_dlopen_libs= 16315 ;; 16316 16317 darwin*) 16318 # if libdl is installed we need to link against it 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16320$as_echo_n "checking for dlopen in -ldl... " >&6; } 16321if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 ac_check_lib_save_LIBS=$LIBS 16325LIBS="-ldl $LIBS" 16326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16327/* end confdefs.h. */ 16328 16329/* Override any GCC internal prototype to avoid an error. 16330 Use char because int might match the return type of a GCC 16331 builtin and then its argument prototype would still apply. */ 16332#ifdef __cplusplus 16333extern "C" 16334#endif 16335char dlopen (); 16336int 16337main () 16338{ 16339return dlopen (); 16340 ; 16341 return 0; 16342} 16343_ACEOF 16344if ac_fn_c_try_link "$LINENO"; then : 16345 ac_cv_lib_dl_dlopen=yes 16346else 16347 ac_cv_lib_dl_dlopen=no 16348fi 16349rm -f core conftest.err conftest.$ac_objext \ 16350 conftest$ac_exeext conftest.$ac_ext 16351LIBS=$ac_check_lib_save_LIBS 16352fi 16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16354$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16355if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 16356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16357else 16358 16359 lt_cv_dlopen="dyld" 16360 lt_cv_dlopen_libs= 16361 lt_cv_dlopen_self=yes 16362 16363fi 16364 16365 ;; 16366 16367 *) 16368 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16369if test "x$ac_cv_func_shl_load" = x""yes; then : 16370 lt_cv_dlopen="shl_load" 16371else 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16373$as_echo_n "checking for shl_load in -ldld... " >&6; } 16374if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 ac_check_lib_save_LIBS=$LIBS 16378LIBS="-ldld $LIBS" 16379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16380/* end confdefs.h. */ 16381 16382/* Override any GCC internal prototype to avoid an error. 16383 Use char because int might match the return type of a GCC 16384 builtin and then its argument prototype would still apply. */ 16385#ifdef __cplusplus 16386extern "C" 16387#endif 16388char shl_load (); 16389int 16390main () 16391{ 16392return shl_load (); 16393 ; 16394 return 0; 16395} 16396_ACEOF 16397if ac_fn_c_try_link "$LINENO"; then : 16398 ac_cv_lib_dld_shl_load=yes 16399else 16400 ac_cv_lib_dld_shl_load=no 16401fi 16402rm -f core conftest.err conftest.$ac_objext \ 16403 conftest$ac_exeext conftest.$ac_ext 16404LIBS=$ac_check_lib_save_LIBS 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16407$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16408if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 16409 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 16410else 16411 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16412if test "x$ac_cv_func_dlopen" = x""yes; then : 16413 lt_cv_dlopen="dlopen" 16414else 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16416$as_echo_n "checking for dlopen in -ldl... " >&6; } 16417if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 16418 $as_echo_n "(cached) " >&6 16419else 16420 ac_check_lib_save_LIBS=$LIBS 16421LIBS="-ldl $LIBS" 16422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16423/* end confdefs.h. */ 16424 16425/* Override any GCC internal prototype to avoid an error. 16426 Use char because int might match the return type of a GCC 16427 builtin and then its argument prototype would still apply. */ 16428#ifdef __cplusplus 16429extern "C" 16430#endif 16431char dlopen (); 16432int 16433main () 16434{ 16435return dlopen (); 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440if ac_fn_c_try_link "$LINENO"; then : 16441 ac_cv_lib_dl_dlopen=yes 16442else 16443 ac_cv_lib_dl_dlopen=no 16444fi 16445rm -f core conftest.err conftest.$ac_objext \ 16446 conftest$ac_exeext conftest.$ac_ext 16447LIBS=$ac_check_lib_save_LIBS 16448fi 16449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16450$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16451if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 16452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16453else 16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16455$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16456if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 16457 $as_echo_n "(cached) " >&6 16458else 16459 ac_check_lib_save_LIBS=$LIBS 16460LIBS="-lsvld $LIBS" 16461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463 16464/* Override any GCC internal prototype to avoid an error. 16465 Use char because int might match the return type of a GCC 16466 builtin and then its argument prototype would still apply. */ 16467#ifdef __cplusplus 16468extern "C" 16469#endif 16470char dlopen (); 16471int 16472main () 16473{ 16474return dlopen (); 16475 ; 16476 return 0; 16477} 16478_ACEOF 16479if ac_fn_c_try_link "$LINENO"; then : 16480 ac_cv_lib_svld_dlopen=yes 16481else 16482 ac_cv_lib_svld_dlopen=no 16483fi 16484rm -f core conftest.err conftest.$ac_objext \ 16485 conftest$ac_exeext conftest.$ac_ext 16486LIBS=$ac_check_lib_save_LIBS 16487fi 16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16489$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16490if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 16491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16492else 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16494$as_echo_n "checking for dld_link in -ldld... " >&6; } 16495if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 16496 $as_echo_n "(cached) " >&6 16497else 16498 ac_check_lib_save_LIBS=$LIBS 16499LIBS="-ldld $LIBS" 16500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501/* end confdefs.h. */ 16502 16503/* Override any GCC internal prototype to avoid an error. 16504 Use char because int might match the return type of a GCC 16505 builtin and then its argument prototype would still apply. */ 16506#ifdef __cplusplus 16507extern "C" 16508#endif 16509char dld_link (); 16510int 16511main () 16512{ 16513return dld_link (); 16514 ; 16515 return 0; 16516} 16517_ACEOF 16518if ac_fn_c_try_link "$LINENO"; then : 16519 ac_cv_lib_dld_dld_link=yes 16520else 16521 ac_cv_lib_dld_dld_link=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext \ 16524 conftest$ac_exeext conftest.$ac_ext 16525LIBS=$ac_check_lib_save_LIBS 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16528$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16529if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 16530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 16531fi 16532 16533 16534fi 16535 16536 16537fi 16538 16539 16540fi 16541 16542 16543fi 16544 16545 16546fi 16547 16548 ;; 16549 esac 16550 16551 if test "x$lt_cv_dlopen" != xno; then 16552 enable_dlopen=yes 16553 else 16554 enable_dlopen=no 16555 fi 16556 16557 case $lt_cv_dlopen in 16558 dlopen) 16559 save_CPPFLAGS="$CPPFLAGS" 16560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16561 16562 save_LDFLAGS="$LDFLAGS" 16563 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16564 16565 save_LIBS="$LIBS" 16566 LIBS="$lt_cv_dlopen_libs $LIBS" 16567 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16569$as_echo_n "checking whether a program can dlopen itself... " >&6; } 16570if test "${lt_cv_dlopen_self+set}" = set; then : 16571 $as_echo_n "(cached) " >&6 16572else 16573 if test "$cross_compiling" = yes; then : 16574 lt_cv_dlopen_self=cross 16575else 16576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16577 lt_status=$lt_dlunknown 16578 cat > conftest.$ac_ext <<EOF 16579#line 16579 "configure" 16580#include "confdefs.h" 16581 16582#if HAVE_DLFCN_H 16583#include <dlfcn.h> 16584#endif 16585 16586#include <stdio.h> 16587 16588#ifdef RTLD_GLOBAL 16589# define LT_DLGLOBAL RTLD_GLOBAL 16590#else 16591# ifdef DL_GLOBAL 16592# define LT_DLGLOBAL DL_GLOBAL 16593# else 16594# define LT_DLGLOBAL 0 16595# endif 16596#endif 16597 16598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16599 find out it does not work in some platform. */ 16600#ifndef LT_DLLAZY_OR_NOW 16601# ifdef RTLD_LAZY 16602# define LT_DLLAZY_OR_NOW RTLD_LAZY 16603# else 16604# ifdef DL_LAZY 16605# define LT_DLLAZY_OR_NOW DL_LAZY 16606# else 16607# ifdef RTLD_NOW 16608# define LT_DLLAZY_OR_NOW RTLD_NOW 16609# else 16610# ifdef DL_NOW 16611# define LT_DLLAZY_OR_NOW DL_NOW 16612# else 16613# define LT_DLLAZY_OR_NOW 0 16614# endif 16615# endif 16616# endif 16617# endif 16618#endif 16619 16620#ifdef __cplusplus 16621extern "C" void exit (int); 16622#endif 16623 16624void fnord() { int i=42;} 16625int main () 16626{ 16627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16628 int status = $lt_dlunknown; 16629 16630 if (self) 16631 { 16632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16634 /* dlclose (self); */ 16635 } 16636 16637 exit (status); 16638} 16639EOF 16640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16641 (eval $ac_link) 2>&5 16642 ac_status=$? 16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16645 (./conftest; exit; ) >&5 2>/dev/null 16646 lt_status=$? 16647 case x$lt_status in 16648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16650 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 16651 esac 16652 else : 16653 # compilation failed 16654 lt_cv_dlopen_self=no 16655 fi 16656fi 16657rm -fr conftest* 16658 16659 16660fi 16661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16662$as_echo "$lt_cv_dlopen_self" >&6; } 16663 16664 if test "x$lt_cv_dlopen_self" = xyes; then 16665 LDFLAGS="$LDFLAGS $link_static_flag" 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16667$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 16668if test "${lt_cv_dlopen_self_static+set}" = set; then : 16669 $as_echo_n "(cached) " >&6 16670else 16671 if test "$cross_compiling" = yes; then : 16672 lt_cv_dlopen_self_static=cross 16673else 16674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16675 lt_status=$lt_dlunknown 16676 cat > conftest.$ac_ext <<EOF 16677#line 16677 "configure" 16678#include "confdefs.h" 16679 16680#if HAVE_DLFCN_H 16681#include <dlfcn.h> 16682#endif 16683 16684#include <stdio.h> 16685 16686#ifdef RTLD_GLOBAL 16687# define LT_DLGLOBAL RTLD_GLOBAL 16688#else 16689# ifdef DL_GLOBAL 16690# define LT_DLGLOBAL DL_GLOBAL 16691# else 16692# define LT_DLGLOBAL 0 16693# endif 16694#endif 16695 16696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16697 find out it does not work in some platform. */ 16698#ifndef LT_DLLAZY_OR_NOW 16699# ifdef RTLD_LAZY 16700# define LT_DLLAZY_OR_NOW RTLD_LAZY 16701# else 16702# ifdef DL_LAZY 16703# define LT_DLLAZY_OR_NOW DL_LAZY 16704# else 16705# ifdef RTLD_NOW 16706# define LT_DLLAZY_OR_NOW RTLD_NOW 16707# else 16708# ifdef DL_NOW 16709# define LT_DLLAZY_OR_NOW DL_NOW 16710# else 16711# define LT_DLLAZY_OR_NOW 0 16712# endif 16713# endif 16714# endif 16715# endif 16716#endif 16717 16718#ifdef __cplusplus 16719extern "C" void exit (int); 16720#endif 16721 16722void fnord() { int i=42;} 16723int main () 16724{ 16725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16726 int status = $lt_dlunknown; 16727 16728 if (self) 16729 { 16730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16732 /* dlclose (self); */ 16733 } 16734 16735 exit (status); 16736} 16737EOF 16738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16739 (eval $ac_link) 2>&5 16740 ac_status=$? 16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16742 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16743 (./conftest; exit; ) >&5 2>/dev/null 16744 lt_status=$? 16745 case x$lt_status in 16746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16748 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 16749 esac 16750 else : 16751 # compilation failed 16752 lt_cv_dlopen_self_static=no 16753 fi 16754fi 16755rm -fr conftest* 16756 16757 16758fi 16759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16760$as_echo "$lt_cv_dlopen_self_static" >&6; } 16761 fi 16762 16763 CPPFLAGS="$save_CPPFLAGS" 16764 LDFLAGS="$save_LDFLAGS" 16765 LIBS="$save_LIBS" 16766 ;; 16767 esac 16768 16769 case $lt_cv_dlopen_self in 16770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16771 *) enable_dlopen_self=unknown ;; 16772 esac 16773 16774 case $lt_cv_dlopen_self_static in 16775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16776 *) enable_dlopen_self_static=unknown ;; 16777 esac 16778fi 16779 16780 16781# The else clause should only fire when bootstrapping the 16782# libtool distribution, otherwise you forgot to ship ltmain.sh 16783# with your package, and you will get complaints that there are 16784# no rules to generate ltmain.sh. 16785if test -f "$ltmain"; then 16786 # See if we are running on zsh, and set the options which allow our commands through 16787 # without removal of \ escapes. 16788 if test -n "${ZSH_VERSION+set}" ; then 16789 setopt NO_GLOB_SUBST 16790 fi 16791 # Now quote all the things that may contain metacharacters while being 16792 # careful not to overquote the AC_SUBSTed values. We take copies of the 16793 # variables and quote the copies for generation of the libtool script. 16794 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16795 SED SHELL STRIP \ 16796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16798 deplibs_check_method reload_flag reload_cmds need_locks \ 16799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16800 lt_cv_sys_global_symbol_to_c_name_address \ 16801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16802 old_postinstall_cmds old_postuninstall_cmds \ 16803 compiler_GCJ \ 16804 CC_GCJ \ 16805 LD_GCJ \ 16806 lt_prog_compiler_wl_GCJ \ 16807 lt_prog_compiler_pic_GCJ \ 16808 lt_prog_compiler_static_GCJ \ 16809 lt_prog_compiler_no_builtin_flag_GCJ \ 16810 export_dynamic_flag_spec_GCJ \ 16811 thread_safe_flag_spec_GCJ \ 16812 whole_archive_flag_spec_GCJ \ 16813 enable_shared_with_static_runtimes_GCJ \ 16814 old_archive_cmds_GCJ \ 16815 old_archive_from_new_cmds_GCJ \ 16816 predep_objects_GCJ \ 16817 postdep_objects_GCJ \ 16818 predeps_GCJ \ 16819 postdeps_GCJ \ 16820 compiler_lib_search_path_GCJ \ 16821 archive_cmds_GCJ \ 16822 archive_expsym_cmds_GCJ \ 16823 postinstall_cmds_GCJ \ 16824 postuninstall_cmds_GCJ \ 16825 old_archive_from_expsyms_cmds_GCJ \ 16826 allow_undefined_flag_GCJ \ 16827 no_undefined_flag_GCJ \ 16828 export_symbols_cmds_GCJ \ 16829 hardcode_libdir_flag_spec_GCJ \ 16830 hardcode_libdir_flag_spec_ld_GCJ \ 16831 hardcode_libdir_separator_GCJ \ 16832 hardcode_automatic_GCJ \ 16833 module_cmds_GCJ \ 16834 module_expsym_cmds_GCJ \ 16835 lt_cv_prog_compiler_c_o_GCJ \ 16836 exclude_expsyms_GCJ \ 16837 include_expsyms_GCJ; do 16838 16839 case $var in 16840 old_archive_cmds_GCJ | \ 16841 old_archive_from_new_cmds_GCJ | \ 16842 archive_cmds_GCJ | \ 16843 archive_expsym_cmds_GCJ | \ 16844 module_cmds_GCJ | \ 16845 module_expsym_cmds_GCJ | \ 16846 old_archive_from_expsyms_cmds_GCJ | \ 16847 export_symbols_cmds_GCJ | \ 16848 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16849 postinstall_cmds | postuninstall_cmds | \ 16850 old_postinstall_cmds | old_postuninstall_cmds | \ 16851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16852 # Double-quote double-evaled strings. 16853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16854 ;; 16855 *) 16856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16857 ;; 16858 esac 16859 done 16860 16861 case $lt_echo in 16862 *'\$0 --fallback-echo"') 16863 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16864 ;; 16865 esac 16866 16867cfgfile="$ofile" 16868 16869 cat <<__EOF__ >> "$cfgfile" 16870# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16871 16872# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16873 16874# Shell to use when invoking shell scripts. 16875SHELL=$lt_SHELL 16876 16877# Whether or not to build shared libraries. 16878build_libtool_libs=$enable_shared 16879 16880# Whether or not to build static libraries. 16881build_old_libs=$enable_static 16882 16883# Whether or not to add -lc for building shared libraries. 16884build_libtool_need_lc=$archive_cmds_need_lc_GCJ 16885 16886# Whether or not to disallow shared libs when runtime libs are static 16887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 16888 16889# Whether or not to optimize for fast installation. 16890fast_install=$enable_fast_install 16891 16892# The host system. 16893host_alias=$host_alias 16894host=$host 16895host_os=$host_os 16896 16897# The build system. 16898build_alias=$build_alias 16899build=$build 16900build_os=$build_os 16901 16902# An echo program that does not interpret backslashes. 16903echo=$lt_echo 16904 16905# The archiver. 16906AR=$lt_AR 16907AR_FLAGS=$lt_AR_FLAGS 16908 16909# A C compiler. 16910LTCC=$lt_LTCC 16911 16912# A language-specific compiler. 16913CC=$lt_compiler_GCJ 16914 16915# Is the compiler the GNU C compiler? 16916with_gcc=$GCC_GCJ 16917 16918# An ERE matcher. 16919EGREP=$lt_EGREP 16920 16921# The linker used to build libraries. 16922LD=$lt_LD_GCJ 16923 16924# Whether we need hard or soft links. 16925LN_S=$lt_LN_S 16926 16927# A BSD-compatible nm program. 16928NM=$lt_NM 16929 16930# A symbol stripping program 16931STRIP=$lt_STRIP 16932 16933# Used to examine libraries when file_magic_cmd begins "file" 16934MAGIC_CMD=$MAGIC_CMD 16935 16936# Used on cygwin: DLL creation program. 16937DLLTOOL="$DLLTOOL" 16938 16939# Used on cygwin: object dumper. 16940OBJDUMP="$OBJDUMP" 16941 16942# Used on cygwin: assembler. 16943AS="$AS" 16944 16945# The name of the directory that contains temporary libtool files. 16946objdir=$objdir 16947 16948# How to create reloadable object files. 16949reload_flag=$lt_reload_flag 16950reload_cmds=$lt_reload_cmds 16951 16952# How to pass a linker flag through the compiler. 16953wl=$lt_lt_prog_compiler_wl_GCJ 16954 16955# Object file suffix (normally "o"). 16956objext="$ac_objext" 16957 16958# Old archive suffix (normally "a"). 16959libext="$libext" 16960 16961# Shared library suffix (normally ".so"). 16962shrext_cmds='$shrext_cmds' 16963 16964# Executable file suffix (normally ""). 16965exeext="$exeext" 16966 16967# Additional compiler flags for building library objects. 16968pic_flag=$lt_lt_prog_compiler_pic_GCJ 16969pic_mode=$pic_mode 16970 16971# What is the maximum length of a command? 16972max_cmd_len=$lt_cv_sys_max_cmd_len 16973 16974# Does compiler simultaneously support -c and -o options? 16975compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 16976 16977# Must we lock files when doing compilation? 16978need_locks=$lt_need_locks 16979 16980# Do we need the lib prefix for modules? 16981need_lib_prefix=$need_lib_prefix 16982 16983# Do we need a version for libraries? 16984need_version=$need_version 16985 16986# Whether dlopen is supported. 16987dlopen_support=$enable_dlopen 16988 16989# Whether dlopen of programs is supported. 16990dlopen_self=$enable_dlopen_self 16991 16992# Whether dlopen of statically linked programs is supported. 16993dlopen_self_static=$enable_dlopen_self_static 16994 16995# Compiler flag to prevent dynamic linking. 16996link_static_flag=$lt_lt_prog_compiler_static_GCJ 16997 16998# Compiler flag to turn off builtin functions. 16999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17000 17001# Compiler flag to allow reflexive dlopens. 17002export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17003 17004# Compiler flag to generate shared objects directly from archives. 17005whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17006 17007# Compiler flag to generate thread-safe objects. 17008thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17009 17010# Library versioning type. 17011version_type=$version_type 17012 17013# Format of library name prefix. 17014libname_spec=$lt_libname_spec 17015 17016# List of archive names. First name is the real one, the rest are links. 17017# The last name is the one that the linker finds with -lNAME. 17018library_names_spec=$lt_library_names_spec 17019 17020# The coded name of the library, if different from the real name. 17021soname_spec=$lt_soname_spec 17022 17023# Commands used to build and install an old-style archive. 17024RANLIB=$lt_RANLIB 17025old_archive_cmds=$lt_old_archive_cmds_GCJ 17026old_postinstall_cmds=$lt_old_postinstall_cmds 17027old_postuninstall_cmds=$lt_old_postuninstall_cmds 17028 17029# Create an old-style archive from a shared archive. 17030old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17031 17032# Create a temporary old-style archive to link instead of a shared archive. 17033old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17034 17035# Commands used to build and install a shared archive. 17036archive_cmds=$lt_archive_cmds_GCJ 17037archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17038postinstall_cmds=$lt_postinstall_cmds 17039postuninstall_cmds=$lt_postuninstall_cmds 17040 17041# Commands used to build a loadable module (assumed same as above if empty) 17042module_cmds=$lt_module_cmds_GCJ 17043module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17044 17045# Commands to strip libraries. 17046old_striplib=$lt_old_striplib 17047striplib=$lt_striplib 17048 17049# Dependencies to place before the objects being linked to create a 17050# shared library. 17051predep_objects=$lt_predep_objects_GCJ 17052 17053# Dependencies to place after the objects being linked to create a 17054# shared library. 17055postdep_objects=$lt_postdep_objects_GCJ 17056 17057# Dependencies to place before the objects being linked to create a 17058# shared library. 17059predeps=$lt_predeps_GCJ 17060 17061# Dependencies to place after the objects being linked to create a 17062# shared library. 17063postdeps=$lt_postdeps_GCJ 17064 17065# The library search path used internally by the compiler when linking 17066# a shared library. 17067compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17068 17069# Method to check whether dependent libraries are shared objects. 17070deplibs_check_method=$lt_deplibs_check_method 17071 17072# Command to use when deplibs_check_method == file_magic. 17073file_magic_cmd=$lt_file_magic_cmd 17074 17075# Flag that allows shared libraries with undefined symbols to be built. 17076allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17077 17078# Flag that forces no undefined symbols. 17079no_undefined_flag=$lt_no_undefined_flag_GCJ 17080 17081# Commands used to finish a libtool library installation in a directory. 17082finish_cmds=$lt_finish_cmds 17083 17084# Same as above, but a single script fragment to be evaled but not shown. 17085finish_eval=$lt_finish_eval 17086 17087# Take the output of nm and produce a listing of raw symbols and C names. 17088global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17089 17090# Transform the output of nm in a proper C declaration 17091global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17092 17093# Transform the output of nm in a C name address pair 17094global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17095 17096# This is the shared library runtime path variable. 17097runpath_var=$runpath_var 17098 17099# This is the shared library path variable. 17100shlibpath_var=$shlibpath_var 17101 17102# Is shlibpath searched before the hard-coded library search path? 17103shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17104 17105# How to hardcode a shared library path into an executable. 17106hardcode_action=$hardcode_action_GCJ 17107 17108# Whether we should hardcode library paths into libraries. 17109hardcode_into_libs=$hardcode_into_libs 17110 17111# Flag to hardcode \$libdir into a binary during linking. 17112# This must work even if \$libdir does not exist. 17113hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17114 17115# If ld is used when linking, flag to hardcode \$libdir into 17116# a binary during linking. This must work even if \$libdir does 17117# not exist. 17118hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17119 17120# Whether we need a single -rpath flag with a separated argument. 17121hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17122 17123# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17124# resulting binary. 17125hardcode_direct=$hardcode_direct_GCJ 17126 17127# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17128# resulting binary. 17129hardcode_minus_L=$hardcode_minus_L_GCJ 17130 17131# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17132# the resulting binary. 17133hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17134 17135# Set to yes if building a shared library automatically hardcodes DIR into the library 17136# and all subsequent libraries and executables linked against it. 17137hardcode_automatic=$hardcode_automatic_GCJ 17138 17139# Variables whose values should be saved in libtool wrapper scripts and 17140# restored at relink time. 17141variables_saved_for_relink="$variables_saved_for_relink" 17142 17143# Whether libtool must link a program against all its dependency libraries. 17144link_all_deplibs=$link_all_deplibs_GCJ 17145 17146# Compile-time system search path for libraries 17147sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17148 17149# Run-time system search path for libraries 17150sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17151 17152# Fix the shell variable \$srcfile for the compiler. 17153fix_srcfile_path="$fix_srcfile_path_GCJ" 17154 17155# Set to yes if exported symbols are required. 17156always_export_symbols=$always_export_symbols_GCJ 17157 17158# The commands to list exported symbols. 17159export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17160 17161# The commands to extract the exported symbol list from a shared archive. 17162extract_expsyms_cmds=$lt_extract_expsyms_cmds 17163 17164# Symbols that should not be listed in the preloaded symbols. 17165exclude_expsyms=$lt_exclude_expsyms_GCJ 17166 17167# Symbols that must always be exported. 17168include_expsyms=$lt_include_expsyms_GCJ 17169 17170# ### END LIBTOOL TAG CONFIG: $tagname 17171 17172__EOF__ 17173 17174 17175else 17176 # If there is no Makefile yet, we rely on a make rule to execute 17177 # `config.status --recheck' to rerun these tests and create the 17178 # libtool script then. 17179 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17180 if test -f "$ltmain_in"; then 17181 test -f Makefile && make "$ltmain" 17182 fi 17183fi 17184 17185 17186ac_ext=c 17187ac_cpp='$CPP $CPPFLAGS' 17188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17190ac_compiler_gnu=$ac_cv_c_compiler_gnu 17191 17192CC="$lt_save_CC" 17193 17194 else 17195 tagname="" 17196 fi 17197 ;; 17198 17199 RC) 17200 17201 17202# Source file extension for RC test sources. 17203ac_ext=rc 17204 17205# Object file extension for compiled RC test sources. 17206objext=o 17207objext_RC=$objext 17208 17209# Code to be used in simple compile tests 17210lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17211 17212# Code to be used in simple link tests 17213lt_simple_link_test_code="$lt_simple_compile_test_code" 17214 17215# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17216 17217# If no C compiler was specified, use CC. 17218LTCC=${LTCC-"$CC"} 17219 17220# Allow CC to be a program name with arguments. 17221compiler=$CC 17222 17223 17224# save warnings/boilerplate of simple test code 17225ac_outfile=conftest.$ac_objext 17226printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17228_lt_compiler_boilerplate=`cat conftest.err` 17229$rm conftest* 17230 17231ac_outfile=conftest.$ac_objext 17232printf "$lt_simple_link_test_code" >conftest.$ac_ext 17233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17234_lt_linker_boilerplate=`cat conftest.err` 17235$rm conftest* 17236 17237 17238# Allow CC to be a program name with arguments. 17239lt_save_CC="$CC" 17240CC=${RC-"windres"} 17241compiler=$CC 17242compiler_RC=$CC 17243for cc_temp in $compiler""; do 17244 case $cc_temp in 17245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17247 \-*) ;; 17248 *) break;; 17249 esac 17250done 17251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17252 17253lt_cv_prog_compiler_c_o_RC=yes 17254 17255# The else clause should only fire when bootstrapping the 17256# libtool distribution, otherwise you forgot to ship ltmain.sh 17257# with your package, and you will get complaints that there are 17258# no rules to generate ltmain.sh. 17259if test -f "$ltmain"; then 17260 # See if we are running on zsh, and set the options which allow our commands through 17261 # without removal of \ escapes. 17262 if test -n "${ZSH_VERSION+set}" ; then 17263 setopt NO_GLOB_SUBST 17264 fi 17265 # Now quote all the things that may contain metacharacters while being 17266 # careful not to overquote the AC_SUBSTed values. We take copies of the 17267 # variables and quote the copies for generation of the libtool script. 17268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17269 SED SHELL STRIP \ 17270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17272 deplibs_check_method reload_flag reload_cmds need_locks \ 17273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17274 lt_cv_sys_global_symbol_to_c_name_address \ 17275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17276 old_postinstall_cmds old_postuninstall_cmds \ 17277 compiler_RC \ 17278 CC_RC \ 17279 LD_RC \ 17280 lt_prog_compiler_wl_RC \ 17281 lt_prog_compiler_pic_RC \ 17282 lt_prog_compiler_static_RC \ 17283 lt_prog_compiler_no_builtin_flag_RC \ 17284 export_dynamic_flag_spec_RC \ 17285 thread_safe_flag_spec_RC \ 17286 whole_archive_flag_spec_RC \ 17287 enable_shared_with_static_runtimes_RC \ 17288 old_archive_cmds_RC \ 17289 old_archive_from_new_cmds_RC \ 17290 predep_objects_RC \ 17291 postdep_objects_RC \ 17292 predeps_RC \ 17293 postdeps_RC \ 17294 compiler_lib_search_path_RC \ 17295 archive_cmds_RC \ 17296 archive_expsym_cmds_RC \ 17297 postinstall_cmds_RC \ 17298 postuninstall_cmds_RC \ 17299 old_archive_from_expsyms_cmds_RC \ 17300 allow_undefined_flag_RC \ 17301 no_undefined_flag_RC \ 17302 export_symbols_cmds_RC \ 17303 hardcode_libdir_flag_spec_RC \ 17304 hardcode_libdir_flag_spec_ld_RC \ 17305 hardcode_libdir_separator_RC \ 17306 hardcode_automatic_RC \ 17307 module_cmds_RC \ 17308 module_expsym_cmds_RC \ 17309 lt_cv_prog_compiler_c_o_RC \ 17310 exclude_expsyms_RC \ 17311 include_expsyms_RC; do 17312 17313 case $var in 17314 old_archive_cmds_RC | \ 17315 old_archive_from_new_cmds_RC | \ 17316 archive_cmds_RC | \ 17317 archive_expsym_cmds_RC | \ 17318 module_cmds_RC | \ 17319 module_expsym_cmds_RC | \ 17320 old_archive_from_expsyms_cmds_RC | \ 17321 export_symbols_cmds_RC | \ 17322 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17323 postinstall_cmds | postuninstall_cmds | \ 17324 old_postinstall_cmds | old_postuninstall_cmds | \ 17325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17326 # Double-quote double-evaled strings. 17327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17328 ;; 17329 *) 17330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17331 ;; 17332 esac 17333 done 17334 17335 case $lt_echo in 17336 *'\$0 --fallback-echo"') 17337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17338 ;; 17339 esac 17340 17341cfgfile="$ofile" 17342 17343 cat <<__EOF__ >> "$cfgfile" 17344# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17345 17346# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17347 17348# Shell to use when invoking shell scripts. 17349SHELL=$lt_SHELL 17350 17351# Whether or not to build shared libraries. 17352build_libtool_libs=$enable_shared 17353 17354# Whether or not to build static libraries. 17355build_old_libs=$enable_static 17356 17357# Whether or not to add -lc for building shared libraries. 17358build_libtool_need_lc=$archive_cmds_need_lc_RC 17359 17360# Whether or not to disallow shared libs when runtime libs are static 17361allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17362 17363# Whether or not to optimize for fast installation. 17364fast_install=$enable_fast_install 17365 17366# The host system. 17367host_alias=$host_alias 17368host=$host 17369host_os=$host_os 17370 17371# The build system. 17372build_alias=$build_alias 17373build=$build 17374build_os=$build_os 17375 17376# An echo program that does not interpret backslashes. 17377echo=$lt_echo 17378 17379# The archiver. 17380AR=$lt_AR 17381AR_FLAGS=$lt_AR_FLAGS 17382 17383# A C compiler. 17384LTCC=$lt_LTCC 17385 17386# A language-specific compiler. 17387CC=$lt_compiler_RC 17388 17389# Is the compiler the GNU C compiler? 17390with_gcc=$GCC_RC 17391 17392# An ERE matcher. 17393EGREP=$lt_EGREP 17394 17395# The linker used to build libraries. 17396LD=$lt_LD_RC 17397 17398# Whether we need hard or soft links. 17399LN_S=$lt_LN_S 17400 17401# A BSD-compatible nm program. 17402NM=$lt_NM 17403 17404# A symbol stripping program 17405STRIP=$lt_STRIP 17406 17407# Used to examine libraries when file_magic_cmd begins "file" 17408MAGIC_CMD=$MAGIC_CMD 17409 17410# Used on cygwin: DLL creation program. 17411DLLTOOL="$DLLTOOL" 17412 17413# Used on cygwin: object dumper. 17414OBJDUMP="$OBJDUMP" 17415 17416# Used on cygwin: assembler. 17417AS="$AS" 17418 17419# The name of the directory that contains temporary libtool files. 17420objdir=$objdir 17421 17422# How to create reloadable object files. 17423reload_flag=$lt_reload_flag 17424reload_cmds=$lt_reload_cmds 17425 17426# How to pass a linker flag through the compiler. 17427wl=$lt_lt_prog_compiler_wl_RC 17428 17429# Object file suffix (normally "o"). 17430objext="$ac_objext" 17431 17432# Old archive suffix (normally "a"). 17433libext="$libext" 17434 17435# Shared library suffix (normally ".so"). 17436shrext_cmds='$shrext_cmds' 17437 17438# Executable file suffix (normally ""). 17439exeext="$exeext" 17440 17441# Additional compiler flags for building library objects. 17442pic_flag=$lt_lt_prog_compiler_pic_RC 17443pic_mode=$pic_mode 17444 17445# What is the maximum length of a command? 17446max_cmd_len=$lt_cv_sys_max_cmd_len 17447 17448# Does compiler simultaneously support -c and -o options? 17449compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17450 17451# Must we lock files when doing compilation? 17452need_locks=$lt_need_locks 17453 17454# Do we need the lib prefix for modules? 17455need_lib_prefix=$need_lib_prefix 17456 17457# Do we need a version for libraries? 17458need_version=$need_version 17459 17460# Whether dlopen is supported. 17461dlopen_support=$enable_dlopen 17462 17463# Whether dlopen of programs is supported. 17464dlopen_self=$enable_dlopen_self 17465 17466# Whether dlopen of statically linked programs is supported. 17467dlopen_self_static=$enable_dlopen_self_static 17468 17469# Compiler flag to prevent dynamic linking. 17470link_static_flag=$lt_lt_prog_compiler_static_RC 17471 17472# Compiler flag to turn off builtin functions. 17473no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17474 17475# Compiler flag to allow reflexive dlopens. 17476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17477 17478# Compiler flag to generate shared objects directly from archives. 17479whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17480 17481# Compiler flag to generate thread-safe objects. 17482thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17483 17484# Library versioning type. 17485version_type=$version_type 17486 17487# Format of library name prefix. 17488libname_spec=$lt_libname_spec 17489 17490# List of archive names. First name is the real one, the rest are links. 17491# The last name is the one that the linker finds with -lNAME. 17492library_names_spec=$lt_library_names_spec 17493 17494# The coded name of the library, if different from the real name. 17495soname_spec=$lt_soname_spec 17496 17497# Commands used to build and install an old-style archive. 17498RANLIB=$lt_RANLIB 17499old_archive_cmds=$lt_old_archive_cmds_RC 17500old_postinstall_cmds=$lt_old_postinstall_cmds 17501old_postuninstall_cmds=$lt_old_postuninstall_cmds 17502 17503# Create an old-style archive from a shared archive. 17504old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17505 17506# Create a temporary old-style archive to link instead of a shared archive. 17507old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17508 17509# Commands used to build and install a shared archive. 17510archive_cmds=$lt_archive_cmds_RC 17511archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17512postinstall_cmds=$lt_postinstall_cmds 17513postuninstall_cmds=$lt_postuninstall_cmds 17514 17515# Commands used to build a loadable module (assumed same as above if empty) 17516module_cmds=$lt_module_cmds_RC 17517module_expsym_cmds=$lt_module_expsym_cmds_RC 17518 17519# Commands to strip libraries. 17520old_striplib=$lt_old_striplib 17521striplib=$lt_striplib 17522 17523# Dependencies to place before the objects being linked to create a 17524# shared library. 17525predep_objects=$lt_predep_objects_RC 17526 17527# Dependencies to place after the objects being linked to create a 17528# shared library. 17529postdep_objects=$lt_postdep_objects_RC 17530 17531# Dependencies to place before the objects being linked to create a 17532# shared library. 17533predeps=$lt_predeps_RC 17534 17535# Dependencies to place after the objects being linked to create a 17536# shared library. 17537postdeps=$lt_postdeps_RC 17538 17539# The library search path used internally by the compiler when linking 17540# a shared library. 17541compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17542 17543# Method to check whether dependent libraries are shared objects. 17544deplibs_check_method=$lt_deplibs_check_method 17545 17546# Command to use when deplibs_check_method == file_magic. 17547file_magic_cmd=$lt_file_magic_cmd 17548 17549# Flag that allows shared libraries with undefined symbols to be built. 17550allow_undefined_flag=$lt_allow_undefined_flag_RC 17551 17552# Flag that forces no undefined symbols. 17553no_undefined_flag=$lt_no_undefined_flag_RC 17554 17555# Commands used to finish a libtool library installation in a directory. 17556finish_cmds=$lt_finish_cmds 17557 17558# Same as above, but a single script fragment to be evaled but not shown. 17559finish_eval=$lt_finish_eval 17560 17561# Take the output of nm and produce a listing of raw symbols and C names. 17562global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17563 17564# Transform the output of nm in a proper C declaration 17565global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17566 17567# Transform the output of nm in a C name address pair 17568global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17569 17570# This is the shared library runtime path variable. 17571runpath_var=$runpath_var 17572 17573# This is the shared library path variable. 17574shlibpath_var=$shlibpath_var 17575 17576# Is shlibpath searched before the hard-coded library search path? 17577shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17578 17579# How to hardcode a shared library path into an executable. 17580hardcode_action=$hardcode_action_RC 17581 17582# Whether we should hardcode library paths into libraries. 17583hardcode_into_libs=$hardcode_into_libs 17584 17585# Flag to hardcode \$libdir into a binary during linking. 17586# This must work even if \$libdir does not exist. 17587hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17588 17589# If ld is used when linking, flag to hardcode \$libdir into 17590# a binary during linking. This must work even if \$libdir does 17591# not exist. 17592hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17593 17594# Whether we need a single -rpath flag with a separated argument. 17595hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17596 17597# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17598# resulting binary. 17599hardcode_direct=$hardcode_direct_RC 17600 17601# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17602# resulting binary. 17603hardcode_minus_L=$hardcode_minus_L_RC 17604 17605# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17606# the resulting binary. 17607hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17608 17609# Set to yes if building a shared library automatically hardcodes DIR into the library 17610# and all subsequent libraries and executables linked against it. 17611hardcode_automatic=$hardcode_automatic_RC 17612 17613# Variables whose values should be saved in libtool wrapper scripts and 17614# restored at relink time. 17615variables_saved_for_relink="$variables_saved_for_relink" 17616 17617# Whether libtool must link a program against all its dependency libraries. 17618link_all_deplibs=$link_all_deplibs_RC 17619 17620# Compile-time system search path for libraries 17621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17622 17623# Run-time system search path for libraries 17624sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17625 17626# Fix the shell variable \$srcfile for the compiler. 17627fix_srcfile_path="$fix_srcfile_path_RC" 17628 17629# Set to yes if exported symbols are required. 17630always_export_symbols=$always_export_symbols_RC 17631 17632# The commands to list exported symbols. 17633export_symbols_cmds=$lt_export_symbols_cmds_RC 17634 17635# The commands to extract the exported symbol list from a shared archive. 17636extract_expsyms_cmds=$lt_extract_expsyms_cmds 17637 17638# Symbols that should not be listed in the preloaded symbols. 17639exclude_expsyms=$lt_exclude_expsyms_RC 17640 17641# Symbols that must always be exported. 17642include_expsyms=$lt_include_expsyms_RC 17643 17644# ### END LIBTOOL TAG CONFIG: $tagname 17645 17646__EOF__ 17647 17648 17649else 17650 # If there is no Makefile yet, we rely on a make rule to execute 17651 # `config.status --recheck' to rerun these tests and create the 17652 # libtool script then. 17653 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17654 if test -f "$ltmain_in"; then 17655 test -f Makefile && make "$ltmain" 17656 fi 17657fi 17658 17659 17660ac_ext=c 17661ac_cpp='$CPP $CPPFLAGS' 17662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17664ac_compiler_gnu=$ac_cv_c_compiler_gnu 17665 17666CC="$lt_save_CC" 17667 17668 ;; 17669 17670 *) 17671 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 17672 ;; 17673 esac 17674 17675 # Append the new tag name to the list of available tags. 17676 if test -n "$tagname" ; then 17677 available_tags="$available_tags $tagname" 17678 fi 17679 fi 17680 done 17681 IFS="$lt_save_ifs" 17682 17683 # Now substitute the updated list of available tags. 17684 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 17685 mv "${ofile}T" "$ofile" 17686 chmod +x "$ofile" 17687 else 17688 rm -f "${ofile}T" 17689 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 17690 fi 17691fi 17692 17693 17694 17695# This can be used to rebuild libtool when needed 17696LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 17697 17698# Always use our own libtool. 17699LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17700 17701# Prevent multiple expansion 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 17713$as_echo_n "checking whether ln -s works... " >&6; } 17714LN_S=$as_ln_s 17715if test "$LN_S" = "ln -s"; then 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17717$as_echo "yes" >&6; } 17718else 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 17720$as_echo "no, using $LN_S" >&6; } 17721fi 17722 17723if test $ac_cv_c_compiler_gnu = yes; then 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 17725$as_echo_n "checking whether $CC needs -traditional... " >&6; } 17726if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 17727 $as_echo_n "(cached) " >&6 17728else 17729 ac_pattern="Autoconf.*'x'" 17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17731/* end confdefs.h. */ 17732#include <sgtty.h> 17733Autoconf TIOCGETP 17734_ACEOF 17735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17736 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 17737 ac_cv_prog_gcc_traditional=yes 17738else 17739 ac_cv_prog_gcc_traditional=no 17740fi 17741rm -f conftest* 17742 17743 17744 if test $ac_cv_prog_gcc_traditional = no; then 17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17746/* end confdefs.h. */ 17747#include <termio.h> 17748Autoconf TCGETA 17749_ACEOF 17750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17751 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 17752 ac_cv_prog_gcc_traditional=yes 17753fi 17754rm -f conftest* 17755 17756 fi 17757fi 17758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 17759$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 17760 if test $ac_cv_prog_gcc_traditional = yes; then 17761 CC="$CC -traditional" 17762 fi 17763fi 17764 17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 17766$as_echo_n "checking for working volatile... " >&6; } 17767if test "${ac_cv_c_volatile+set}" = set; then : 17768 $as_echo_n "(cached) " >&6 17769else 17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772 17773int 17774main () 17775{ 17776 17777volatile int x; 17778int * volatile y = (int *) 0; 17779return !x && !y; 17780 ; 17781 return 0; 17782} 17783_ACEOF 17784if ac_fn_c_try_compile "$LINENO"; then : 17785 ac_cv_c_volatile=yes 17786else 17787 ac_cv_c_volatile=no 17788fi 17789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17790fi 17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 17792$as_echo "$ac_cv_c_volatile" >&6; } 17793if test $ac_cv_c_volatile = no; then 17794 17795$as_echo "#define volatile /**/" >>confdefs.h 17796 17797fi 17798 17799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 17800$as_echo_n "checking for library containing strerror... " >&6; } 17801if test "${ac_cv_search_strerror+set}" = set; then : 17802 $as_echo_n "(cached) " >&6 17803else 17804 ac_func_search_save_LIBS=$LIBS 17805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807 17808/* Override any GCC internal prototype to avoid an error. 17809 Use char because int might match the return type of a GCC 17810 builtin and then its argument prototype would still apply. */ 17811#ifdef __cplusplus 17812extern "C" 17813#endif 17814char strerror (); 17815int 17816main () 17817{ 17818return strerror (); 17819 ; 17820 return 0; 17821} 17822_ACEOF 17823for ac_lib in '' cposix; do 17824 if test -z "$ac_lib"; then 17825 ac_res="none required" 17826 else 17827 ac_res=-l$ac_lib 17828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17829 fi 17830 if ac_fn_c_try_link "$LINENO"; then : 17831 ac_cv_search_strerror=$ac_res 17832fi 17833rm -f core conftest.err conftest.$ac_objext \ 17834 conftest$ac_exeext 17835 if test "${ac_cv_search_strerror+set}" = set; then : 17836 break 17837fi 17838done 17839if test "${ac_cv_search_strerror+set}" = set; then : 17840 17841else 17842 ac_cv_search_strerror=no 17843fi 17844rm conftest.$ac_ext 17845LIBS=$ac_func_search_save_LIBS 17846fi 17847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 17848$as_echo "$ac_cv_search_strerror" >&6; } 17849ac_res=$ac_cv_search_strerror 17850if test "$ac_res" != no; then : 17851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17852 17853fi 17854 17855# Extract the first word of "sh", so it can be a program name with args. 17856set dummy sh; ac_word=$2 17857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17858$as_echo_n "checking for $ac_word... " >&6; } 17859if test "${ac_cv_path_PATH_SH+set}" = set; then : 17860 $as_echo_n "(cached) " >&6 17861else 17862 case $PATH_SH in 17863 [\\/]* | ?:[\\/]*) 17864 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path. 17865 ;; 17866 *) 17867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17868for as_dir in $PATH 17869do 17870 IFS=$as_save_IFS 17871 test -z "$as_dir" && as_dir=. 17872 for ac_exec_ext in '' $ac_executable_extensions; do 17873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17874 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext" 17875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17876 break 2 17877 fi 17878done 17879 done 17880IFS=$as_save_IFS 17881 17882 ;; 17883esac 17884fi 17885PATH_SH=$ac_cv_path_PATH_SH 17886if test -n "$PATH_SH"; then 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5 17888$as_echo "$PATH_SH" >&6; } 17889else 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17891$as_echo "no" >&6; } 17892fi 17893 17894 17895# Extract the first word of "perl", so it can be a program name with args. 17896set dummy perl; ac_word=$2 17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17898$as_echo_n "checking for $ac_word... " >&6; } 17899if test "${ac_cv_path_PATH_PERL+set}" = set; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 case $PATH_PERL in 17903 [\\/]* | ?:[\\/]*) 17904 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 17905 ;; 17906 *) 17907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17908for as_dir in $PATH 17909do 17910 IFS=$as_save_IFS 17911 test -z "$as_dir" && as_dir=. 17912 for ac_exec_ext in '' $ac_executable_extensions; do 17913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17914 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17916 break 2 17917 fi 17918done 17919 done 17920IFS=$as_save_IFS 17921 17922 ;; 17923esac 17924fi 17925PATH_PERL=$ac_cv_path_PATH_PERL 17926if test -n "$PATH_PERL"; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 17928$as_echo "$PATH_PERL" >&6; } 17929else 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17931$as_echo "no" >&6; } 17932fi 17933 17934 17935 17936 17937# Check whether --with-net-snmp-config was given. 17938if test "${with_net_snmp_config+set}" = set; then : 17939 withval=$with_net_snmp_config; ans=$withval 17940else 17941 ans=yes 17942fi 17943 17944case "$ans" in 17945 no) ;; 17946 yes) 17947 ans=net-snmp-config 17948 ;; 17949 /*) ;; 17950 */*) 17951 as_fn_error "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5 17952 ;; 17953 *) 17954 ;; 17955esac 17956PROG_NET_SNMP_CONFIG=$ans 17957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5 17958$as_echo_n "checking for net-snmp-config path... " >&6; } 17959case "$PROG_NET_SNMP_CONFIG" in 17960 no) ;; 17961 /*) 17962 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG 17963 ;; 17964 *) # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args. 17965set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2 17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17967$as_echo_n "checking for $ac_word... " >&6; } 17968if test "${ac_cv_path_PATH_NET_SNMP_CONFIG+set}" = set; then : 17969 $as_echo_n "(cached) " >&6 17970else 17971 case $PATH_NET_SNMP_CONFIG in 17972 [\\/]* | ?:[\\/]*) 17973 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path. 17974 ;; 17975 *) 17976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17977for as_dir in $PATH 17978do 17979 IFS=$as_save_IFS 17980 test -z "$as_dir" && as_dir=. 17981 for ac_exec_ext in '' $ac_executable_extensions; do 17982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17983 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17985 break 2 17986 fi 17987done 17988 done 17989IFS=$as_save_IFS 17990 17991 ;; 17992esac 17993fi 17994PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG 17995if test -n "$PATH_NET_SNMP_CONFIG"; then 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 17997$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 17998else 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18000$as_echo "no" >&6; } 18001fi 18002 18003 18004 ;; 18005esac 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 18007$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 18008 18009case "$host" in 18010 *-*-vxworks*) 18011 ac_link="$ac_link $VX_KERNEL" 18012 ;; 18013esac 18014 18015 18016 18017case "$host" in 18018 *-pc-cygwin*) 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5 18020$as_echo_n "checking for main in -ladvapi32... " >&6; } 18021if test "${ac_cv_lib_advapi32_main+set}" = set; then : 18022 $as_echo_n "(cached) " >&6 18023else 18024 ac_check_lib_save_LIBS=$LIBS 18025LIBS="-ladvapi32 $LIBS" 18026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18027/* end confdefs.h. */ 18028 18029 18030int 18031main () 18032{ 18033return main (); 18034 ; 18035 return 0; 18036} 18037_ACEOF 18038if ac_fn_c_try_link "$LINENO"; then : 18039 ac_cv_lib_advapi32_main=yes 18040else 18041 ac_cv_lib_advapi32_main=no 18042fi 18043rm -f core conftest.err conftest.$ac_objext \ 18044 conftest$ac_exeext conftest.$ac_ext 18045LIBS=$ac_check_lib_save_LIBS 18046fi 18047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5 18048$as_echo "$ac_cv_lib_advapi32_main" >&6; } 18049if test "x$ac_cv_lib_advapi32_main" = x""yes; then : 18050 cat >>confdefs.h <<_ACEOF 18051#define HAVE_LIBADVAPI32 1 18052_ACEOF 18053 18054 LIBS="-ladvapi32 $LIBS" 18055 18056fi 18057 18058 ;; 18059esac 18060 18061ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 18062if test "x$ac_cv_func_gethostent" = x""yes; then : 18063 18064else 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 18066$as_echo_n "checking for library containing gethostent... " >&6; } 18067if test "${ac_cv_search_gethostent+set}" = set; then : 18068 $as_echo_n "(cached) " >&6 18069else 18070 ac_func_search_save_LIBS=$LIBS 18071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18072/* end confdefs.h. */ 18073 18074/* Override any GCC internal prototype to avoid an error. 18075 Use char because int might match the return type of a GCC 18076 builtin and then its argument prototype would still apply. */ 18077#ifdef __cplusplus 18078extern "C" 18079#endif 18080char gethostent (); 18081int 18082main () 18083{ 18084return gethostent (); 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089for ac_lib in '' nsl; do 18090 if test -z "$ac_lib"; then 18091 ac_res="none required" 18092 else 18093 ac_res=-l$ac_lib 18094 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS" 18095 fi 18096 if ac_fn_c_try_link "$LINENO"; then : 18097 ac_cv_search_gethostent=$ac_res 18098fi 18099rm -f core conftest.err conftest.$ac_objext \ 18100 conftest$ac_exeext 18101 if test "${ac_cv_search_gethostent+set}" = set; then : 18102 break 18103fi 18104done 18105if test "${ac_cv_search_gethostent+set}" = set; then : 18106 18107else 18108 ac_cv_search_gethostent=no 18109fi 18110rm conftest.$ac_ext 18111LIBS=$ac_func_search_save_LIBS 18112fi 18113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 18114$as_echo "$ac_cv_search_gethostent" >&6; } 18115ac_res=$ac_cv_search_gethostent 18116if test "$ac_res" != no; then : 18117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18118 18119fi 18120 18121fi 18122 18123ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog" 18124if test "x$ac_cv_func_openlog" = x""yes; then : 18125 18126else 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 18128$as_echo_n "checking for library containing openlog... " >&6; } 18129if test "${ac_cv_search_openlog+set}" = set; then : 18130 $as_echo_n "(cached) " >&6 18131else 18132 ac_func_search_save_LIBS=$LIBS 18133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135 18136/* Override any GCC internal prototype to avoid an error. 18137 Use char because int might match the return type of a GCC 18138 builtin and then its argument prototype would still apply. */ 18139#ifdef __cplusplus 18140extern "C" 18141#endif 18142char openlog (); 18143int 18144main () 18145{ 18146return openlog (); 18147 ; 18148 return 0; 18149} 18150_ACEOF 18151for ac_lib in '' gen; do 18152 if test -z "$ac_lib"; then 18153 ac_res="none required" 18154 else 18155 ac_res=-l$ac_lib 18156 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18157 fi 18158 if ac_fn_c_try_link "$LINENO"; then : 18159 ac_cv_search_openlog=$ac_res 18160fi 18161rm -f core conftest.err conftest.$ac_objext \ 18162 conftest$ac_exeext 18163 if test "${ac_cv_search_openlog+set}" = set; then : 18164 break 18165fi 18166done 18167if test "${ac_cv_search_openlog+set}" = set; then : 18168 18169else 18170 ac_cv_search_openlog=no 18171fi 18172rm conftest.$ac_ext 18173LIBS=$ac_func_search_save_LIBS 18174fi 18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 18176$as_echo "$ac_cv_search_openlog" >&6; } 18177ac_res=$ac_cv_search_openlog 18178if test "$ac_res" != no; then : 18179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18180 18181else 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 18183$as_echo_n "checking for library containing openlog... " >&6; } 18184if test "${ac_cv_search_openlog+set}" = set; then : 18185 $as_echo_n "(cached) " >&6 18186else 18187 ac_func_search_save_LIBS=$LIBS 18188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18189/* end confdefs.h. */ 18190 18191/* Override any GCC internal prototype to avoid an error. 18192 Use char because int might match the return type of a GCC 18193 builtin and then its argument prototype would still apply. */ 18194#ifdef __cplusplus 18195extern "C" 18196#endif 18197char openlog (); 18198int 18199main () 18200{ 18201return openlog (); 18202 ; 18203 return 0; 18204} 18205_ACEOF 18206for ac_lib in '' syslog; do 18207 if test -z "$ac_lib"; then 18208 ac_res="none required" 18209 else 18210 ac_res=-l$ac_lib 18211 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS" 18212 fi 18213 if ac_fn_c_try_link "$LINENO"; then : 18214 ac_cv_search_openlog=$ac_res 18215fi 18216rm -f core conftest.err conftest.$ac_objext \ 18217 conftest$ac_exeext 18218 if test "${ac_cv_search_openlog+set}" = set; then : 18219 break 18220fi 18221done 18222if test "${ac_cv_search_openlog+set}" = set; then : 18223 18224else 18225 ac_cv_search_openlog=no 18226fi 18227rm conftest.$ac_ext 18228LIBS=$ac_func_search_save_LIBS 18229fi 18230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 18231$as_echo "$ac_cv_search_openlog" >&6; } 18232ac_res=$ac_cv_search_openlog 18233if test "$ac_res" != no; then : 18234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18235 18236fi 18237 18238fi 18239 18240fi 18241 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 18243$as_echo_n "checking for library containing MD5Init... " >&6; } 18244if test "${ac_cv_search_MD5Init+set}" = set; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 ac_func_search_save_LIBS=$LIBS 18248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250 18251/* Override any GCC internal prototype to avoid an error. 18252 Use char because int might match the return type of a GCC 18253 builtin and then its argument prototype would still apply. */ 18254#ifdef __cplusplus 18255extern "C" 18256#endif 18257char MD5Init (); 18258int 18259main () 18260{ 18261return MD5Init (); 18262 ; 18263 return 0; 18264} 18265_ACEOF 18266for ac_lib in '' md5 md; do 18267 if test -z "$ac_lib"; then 18268 ac_res="none required" 18269 else 18270 ac_res=-l$ac_lib 18271 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18272 fi 18273 if ac_fn_c_try_link "$LINENO"; then : 18274 ac_cv_search_MD5Init=$ac_res 18275fi 18276rm -f core conftest.err conftest.$ac_objext \ 18277 conftest$ac_exeext 18278 if test "${ac_cv_search_MD5Init+set}" = set; then : 18279 break 18280fi 18281done 18282if test "${ac_cv_search_MD5Init+set}" = set; then : 18283 18284else 18285 ac_cv_search_MD5Init=no 18286fi 18287rm conftest.$ac_ext 18288LIBS=$ac_func_search_save_LIBS 18289fi 18290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 18291$as_echo "$ac_cv_search_MD5Init" >&6; } 18292ac_res=$ac_cv_search_MD5Init 18293if test "$ac_res" != no; then : 18294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18295 18296fi 18297 18298for ac_func in MD5Init 18299do : 18300 ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init" 18301if test "x$ac_cv_func_MD5Init" = x""yes; then : 18302 cat >>confdefs.h <<_ACEOF 18303#define HAVE_MD5INIT 1 18304_ACEOF 18305 18306fi 18307done 18308 18309 18310 18311 NTP_ORIG_LIBS="$LIBS" 18312 18313# Check whether --with-lineeditlibs was given. 18314if test "${with_lineeditlibs+set}" = set; then : 18315 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 18316else 18317 use_lineeditlibs="edit,editline" 18318fi 18319 18320 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 18322$as_echo_n "checking line editing libraries... " >&6; } 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 18324$as_echo "$use_lineeditlibs" >&6; } 18325 case "$use_lineeditlibs" in 18326 no) 18327 ntp_lib_lineedit=no 18328 ;; 18329 *) 18330 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 18331 for term_lib in "" termcap curses ncurses; do 18332 case "$term_lib" in 18333 '') 18334 TRY_LIB="-l$lineedit_lib" 18335 ;; 18336 *) TRY_LIB="-l$lineedit_lib -l$term_lib" 18337 esac # $term_lib 18338 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 18340$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18342/* end confdefs.h. */ 18343 18344/* Override any GCC internal prototype to avoid an error. 18345 Use char because int might match the return type of a GCC 18346 builtin and then its argument prototype would still apply. */ 18347#ifdef __cplusplus 18348extern "C" 18349#endif 18350char readline (); 18351int 18352main () 18353{ 18354return readline (); 18355 ; 18356 return 0; 18357} 18358_ACEOF 18359if ac_fn_c_try_link "$LINENO"; then : 18360 ntp_lib_lineedit="$TRY_LIB" 18361fi 18362rm -f core conftest.err conftest.$ac_objext \ 18363 conftest$ac_exeext conftest.$ac_ext 18364 case "$ntp_lib_lineedit" in 18365 '') 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18367$as_echo "no" >&6; } 18368 ;; 18369 *) 18370 # Use readline() 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18372$as_echo "yes" >&6; } 18373 break 18374 esac # $ntp_lib_lineedit 18375 case "$term_lib" in 18376 '') 18377 # do not try el_gets without a terminal library 18378 ;; 18379 *) 18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 18381$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18383/* end confdefs.h. */ 18384 18385/* Override any GCC internal prototype to avoid an error. 18386 Use char because int might match the return type of a GCC 18387 builtin and then its argument prototype would still apply. */ 18388#ifdef __cplusplus 18389extern "C" 18390#endif 18391char el_gets (); 18392int 18393main () 18394{ 18395return el_gets (); 18396 ; 18397 return 0; 18398} 18399_ACEOF 18400if ac_fn_c_try_link "$LINENO"; then : 18401 ntp_lib_lineedit="$TRY_LIB" 18402fi 18403rm -f core conftest.err conftest.$ac_objext \ 18404 conftest$ac_exeext conftest.$ac_ext 18405 case "$ntp_lib_lineedit" in 18406 '') 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18408$as_echo "no" >&6; } 18409 ;; 18410 *) # Use el_gets() 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18412$as_echo "yes" >&6; } 18413 break 18414 ;; 18415 esac # $ntp_lib_lineedit 18416 esac # $term_lib 18417 done 18418 case "$ntp_lib_lineedit" in 18419 '') ;; 18420 *) break ;; 18421 esac 18422 done 18423 LIBS="$NTP_ORIG_LIBS" 18424 ;; 18425 esac # $use_lineeditlibs 18426 18427 case "$ntp_lib_lineedit" in 18428 '') 18429 ntp_lib_lineedit="no" 18430 ;; 18431 no) 18432 ;; 18433 *) 18434 EDITLINE_LIBS="$ntp_lib_lineedit" 18435 18436 ;; 18437 esac # $ntp_lib_lineedit 18438 18439 case "$ntp_lib_lineedit" in 18440 no) 18441 ;; 18442 *) 18443 for ac_header in readline.h readline/readline.h histedit.h 18444do : 18445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18446ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18447eval as_val=\$$as_ac_Header 18448 if test "x$as_val" = x""yes; then : 18449 cat >>confdefs.h <<_ACEOF 18450#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18451_ACEOF 18452 18453fi 18454 18455done 18456 18457 for ac_header in history.h readline/history.h 18458do : 18459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18460ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18461eval as_val=\$$as_ac_Header 18462 if test "x$as_val" = x""yes; then : 18463 cat >>confdefs.h <<_ACEOF 18464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18465_ACEOF 18466 18467fi 18468 18469done 18470 18471 18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 18473$as_echo_n "checking whether readline supports history... " >&6; } 18474 18475 ntp_lib_lineedit_history="no" 18476 ORIG_LIBS="$LIBS" 18477 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18479/* end confdefs.h. */ 18480 18481/* Override any GCC internal prototype to avoid an error. 18482 Use char because int might match the return type of a GCC 18483 builtin and then its argument prototype would still apply. */ 18484#ifdef __cplusplus 18485extern "C" 18486#endif 18487char add_history (); 18488int 18489main () 18490{ 18491return add_history (); 18492 ; 18493 return 0; 18494} 18495_ACEOF 18496if ac_fn_c_try_link "$LINENO"; then : 18497 ntp_lib_lineedit_history="yes" 18498fi 18499rm -f core conftest.err conftest.$ac_objext \ 18500 conftest$ac_exeext conftest.$ac_ext 18501 LIBS="$ORIG_LIBS" 18502 18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 18504$as_echo "$ntp_lib_lineedit_history" >&6; } 18505 18506 case "$ntp_lib_lineedit_history" in 18507 yes) 18508 18509$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 18510 18511 esac # $ntp_lib_lineedit_history 18512 esac # $ntp_lib_lineedit 18513 $as_unset NTP_ORIG_LIBS TRY_LIB use_lineeditlibs 18514 18515 18516 18517case "$host" in 18518 *-*-*linux*) ;; 18519 *-*-osf4*) ;; 18520 *-*-osf5*) ;; 18521 *) 18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5 18523$as_echo_n "checking for sched_setscheduler in -lrt... " >&6; } 18524if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then : 18525 $as_echo_n "(cached) " >&6 18526else 18527 ac_check_lib_save_LIBS=$LIBS 18528LIBS="-lrt $LIBS" 18529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18530/* end confdefs.h. */ 18531 18532/* Override any GCC internal prototype to avoid an error. 18533 Use char because int might match the return type of a GCC 18534 builtin and then its argument prototype would still apply. */ 18535#ifdef __cplusplus 18536extern "C" 18537#endif 18538char sched_setscheduler (); 18539int 18540main () 18541{ 18542return sched_setscheduler (); 18543 ; 18544 return 0; 18545} 18546_ACEOF 18547if ac_fn_c_try_link "$LINENO"; then : 18548 ac_cv_lib_rt_sched_setscheduler=yes 18549else 18550 ac_cv_lib_rt_sched_setscheduler=no 18551fi 18552rm -f core conftest.err conftest.$ac_objext \ 18553 conftest$ac_exeext conftest.$ac_ext 18554LIBS=$ac_check_lib_save_LIBS 18555fi 18556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5 18557$as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; } 18558if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then : 18559 cat >>confdefs.h <<_ACEOF 18560#define HAVE_LIBRT 1 18561_ACEOF 18562 18563 LIBS="-lrt $LIBS" 18564 18565else 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5 18567$as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; } 18568if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then : 18569 $as_echo_n "(cached) " >&6 18570else 18571 ac_check_lib_save_LIBS=$LIBS 18572LIBS="-lposix4 $LIBS" 18573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18574/* end confdefs.h. */ 18575 18576/* Override any GCC internal prototype to avoid an error. 18577 Use char because int might match the return type of a GCC 18578 builtin and then its argument prototype would still apply. */ 18579#ifdef __cplusplus 18580extern "C" 18581#endif 18582char sched_setscheduler (); 18583int 18584main () 18585{ 18586return sched_setscheduler (); 18587 ; 18588 return 0; 18589} 18590_ACEOF 18591if ac_fn_c_try_link "$LINENO"; then : 18592 ac_cv_lib_posix4_sched_setscheduler=yes 18593else 18594 ac_cv_lib_posix4_sched_setscheduler=no 18595fi 18596rm -f core conftest.err conftest.$ac_objext \ 18597 conftest$ac_exeext conftest.$ac_ext 18598LIBS=$ac_check_lib_save_LIBS 18599fi 18600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5 18601$as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; } 18602if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then : 18603 cat >>confdefs.h <<_ACEOF 18604#define HAVE_LIBPOSIX4 1 18605_ACEOF 18606 18607 LIBS="-lposix4 $LIBS" 18608 18609fi 18610 18611fi 18612 18613 ;; 18614esac 18615 18616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 18617$as_echo_n "checking for library containing setsockopt... " >&6; } 18618if test "${ac_cv_search_setsockopt+set}" = set; then : 18619 $as_echo_n "(cached) " >&6 18620else 18621 ac_func_search_save_LIBS=$LIBS 18622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623/* end confdefs.h. */ 18624 18625/* Override any GCC internal prototype to avoid an error. 18626 Use char because int might match the return type of a GCC 18627 builtin and then its argument prototype would still apply. */ 18628#ifdef __cplusplus 18629extern "C" 18630#endif 18631char setsockopt (); 18632int 18633main () 18634{ 18635return setsockopt (); 18636 ; 18637 return 0; 18638} 18639_ACEOF 18640for ac_lib in '' socket xnet; do 18641 if test -z "$ac_lib"; then 18642 ac_res="none required" 18643 else 18644 ac_res=-l$ac_lib 18645 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18646 fi 18647 if ac_fn_c_try_link "$LINENO"; then : 18648 ac_cv_search_setsockopt=$ac_res 18649fi 18650rm -f core conftest.err conftest.$ac_objext \ 18651 conftest$ac_exeext 18652 if test "${ac_cv_search_setsockopt+set}" = set; then : 18653 break 18654fi 18655done 18656if test "${ac_cv_search_setsockopt+set}" = set; then : 18657 18658else 18659 ac_cv_search_setsockopt=no 18660fi 18661rm conftest.$ac_ext 18662LIBS=$ac_func_search_save_LIBS 18663fi 18664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 18665$as_echo "$ac_cv_search_setsockopt" >&6; } 18666ac_res=$ac_cv_search_setsockopt 18667if test "$ac_res" != no; then : 18668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18669 18670fi 18671 18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 18673$as_echo_n "checking for library containing res_init... " >&6; } 18674if test "${ac_cv_search_res_init+set}" = set; then : 18675 $as_echo_n "(cached) " >&6 18676else 18677 ac_func_search_save_LIBS=$LIBS 18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681/* Override any GCC internal prototype to avoid an error. 18682 Use char because int might match the return type of a GCC 18683 builtin and then its argument prototype would still apply. */ 18684#ifdef __cplusplus 18685extern "C" 18686#endif 18687char res_init (); 18688int 18689main () 18690{ 18691return res_init (); 18692 ; 18693 return 0; 18694} 18695_ACEOF 18696for ac_lib in '' resolv; do 18697 if test -z "$ac_lib"; then 18698 ac_res="none required" 18699 else 18700 ac_res=-l$ac_lib 18701 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS" 18702 fi 18703 if ac_fn_c_try_link "$LINENO"; then : 18704 ac_cv_search_res_init=$ac_res 18705fi 18706rm -f core conftest.err conftest.$ac_objext \ 18707 conftest$ac_exeext 18708 if test "${ac_cv_search_res_init+set}" = set; then : 18709 break 18710fi 18711done 18712if test "${ac_cv_search_res_init+set}" = set; then : 18713 18714else 18715 ac_cv_search_res_init=no 18716fi 18717rm conftest.$ac_ext 18718LIBS=$ac_func_search_save_LIBS 18719fi 18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 18721$as_echo "$ac_cv_search_res_init" >&6; } 18722ac_res=$ac_cv_search_res_init 18723if test "$ac_res" != no; then : 18724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18725 18726fi 18727 18728for ac_func in res_init __res_init 18729do : 18730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18731ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18732eval as_val=\$$as_ac_var 18733 if test "x$as_val" = x""yes; then : 18734 cat >>confdefs.h <<_ACEOF 18735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18736_ACEOF 18737 18738fi 18739done 18740 18741 18742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18743$as_echo_n "checking for ANSI C header files... " >&6; } 18744if test "${ac_cv_header_stdc+set}" = set; then : 18745 $as_echo_n "(cached) " >&6 18746else 18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18748/* end confdefs.h. */ 18749#include <stdlib.h> 18750#include <stdarg.h> 18751#include <string.h> 18752#include <float.h> 18753 18754int 18755main () 18756{ 18757 18758 ; 18759 return 0; 18760} 18761_ACEOF 18762if ac_fn_c_try_compile "$LINENO"; then : 18763 ac_cv_header_stdc=yes 18764else 18765 ac_cv_header_stdc=no 18766fi 18767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18768 18769if test $ac_cv_header_stdc = yes; then 18770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18772/* end confdefs.h. */ 18773#include <string.h> 18774 18775_ACEOF 18776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18777 $EGREP "memchr" >/dev/null 2>&1; then : 18778 18779else 18780 ac_cv_header_stdc=no 18781fi 18782rm -f conftest* 18783 18784fi 18785 18786if test $ac_cv_header_stdc = yes; then 18787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790#include <stdlib.h> 18791 18792_ACEOF 18793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18794 $EGREP "free" >/dev/null 2>&1; then : 18795 18796else 18797 ac_cv_header_stdc=no 18798fi 18799rm -f conftest* 18800 18801fi 18802 18803if test $ac_cv_header_stdc = yes; then 18804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18805 if test "$cross_compiling" = yes; then : 18806 : 18807else 18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18809/* end confdefs.h. */ 18810#include <ctype.h> 18811#include <stdlib.h> 18812#if ((' ' & 0x0FF) == 0x020) 18813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18815#else 18816# define ISLOWER(c) \ 18817 (('a' <= (c) && (c) <= 'i') \ 18818 || ('j' <= (c) && (c) <= 'r') \ 18819 || ('s' <= (c) && (c) <= 'z')) 18820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18821#endif 18822 18823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18824int 18825main () 18826{ 18827 int i; 18828 for (i = 0; i < 256; i++) 18829 if (XOR (islower (i), ISLOWER (i)) 18830 || toupper (i) != TOUPPER (i)) 18831 return 2; 18832 return 0; 18833} 18834_ACEOF 18835if ac_fn_c_try_run "$LINENO"; then : 18836 18837else 18838 ac_cv_header_stdc=no 18839fi 18840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18841 conftest.$ac_objext conftest.beam conftest.$ac_ext 18842fi 18843 18844fi 18845fi 18846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18847$as_echo "$ac_cv_header_stdc" >&6; } 18848if test $ac_cv_header_stdc = yes; then 18849 18850$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18851 18852fi 18853 18854for ac_header in bstring.h 18855do : 18856 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 18857if test "x$ac_cv_header_bstring_h" = x""yes; then : 18858 cat >>confdefs.h <<_ACEOF 18859#define HAVE_BSTRING_H 1 18860_ACEOF 18861 18862fi 18863 18864done 18865 18866ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 18867if test "x$ac_cv_header_dns_sd_h" = x""yes; then : 18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5 18869$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; } 18870if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then : 18871 $as_echo_n "(cached) " >&6 18872else 18873 ac_check_lib_save_LIBS=$LIBS 18874LIBS="-ldns_sd $LIBS" 18875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18876/* end confdefs.h. */ 18877 18878/* Override any GCC internal prototype to avoid an error. 18879 Use char because int might match the return type of a GCC 18880 builtin and then its argument prototype would still apply. */ 18881#ifdef __cplusplus 18882extern "C" 18883#endif 18884char DNSServiceRegister (); 18885int 18886main () 18887{ 18888return DNSServiceRegister (); 18889 ; 18890 return 0; 18891} 18892_ACEOF 18893if ac_fn_c_try_link "$LINENO"; then : 18894 ac_cv_lib_dns_sd_DNSServiceRegister=yes 18895else 18896 ac_cv_lib_dns_sd_DNSServiceRegister=no 18897fi 18898rm -f core conftest.err conftest.$ac_objext \ 18899 conftest$ac_exeext conftest.$ac_ext 18900LIBS=$ac_check_lib_save_LIBS 18901fi 18902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5 18903$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; } 18904if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then : 18905 18906$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 18907 18908fi 18909 18910fi 18911 18912 18913case "$ac_cv_lib_dns_sd_DNSServiceRegister" in 18914 yes) LIBS="-ldns_sd $LIBS" ;; 18915esac 18916for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h 18917do : 18918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18920eval as_val=\$$as_ac_Header 18921 if test "x$as_val" = x""yes; then : 18922 cat >>confdefs.h <<_ACEOF 18923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18924_ACEOF 18925 18926fi 18927 18928done 18929 18930 18931for ac_header in md5.h 18932do : 18933 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H 18934#include <sys/types.h> 18935#endif 18936 18937" 18938if test "x$ac_cv_header_md5_h" = x""yes; then : 18939 cat >>confdefs.h <<_ACEOF 18940#define HAVE_MD5_H 1 18941_ACEOF 18942 18943fi 18944 18945done 18946 18947for ac_header in memory.h netdb.h poll.h 18948do : 18949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18950ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18951eval as_val=\$$as_ac_Header 18952 if test "x$as_val" = x""yes; then : 18953 cat >>confdefs.h <<_ACEOF 18954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18955_ACEOF 18956 18957fi 18958 18959done 18960 18961for ac_header in sched.h sgtty.h stdlib.h string.h termio.h 18962do : 18963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18965eval as_val=\$$as_ac_Header 18966 if test "x$as_val" = x""yes; then : 18967 cat >>confdefs.h <<_ACEOF 18968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18969_ACEOF 18970 18971fi 18972 18973done 18974 18975for ac_header in termios.h timepps.h timex.h unistd.h 18976do : 18977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18979eval as_val=\$$as_ac_Header 18980 if test "x$as_val" = x""yes; then : 18981 cat >>confdefs.h <<_ACEOF 18982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18983_ACEOF 18984 18985fi 18986 18987done 18988 18989 18990case "$host" in 18991 *-*-aix*) 18992 for ac_header in utmpx.h 18993do : 18994 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 18995if test "x$ac_cv_header_utmpx_h" = x""yes; then : 18996 cat >>confdefs.h <<_ACEOF 18997#define HAVE_UTMPX_H 1 18998_ACEOF 18999 19000fi 19001 19002done 19003 19004 case "$ac_cv_header_utmpx_h" in 19005 yes) ;; 19006 *) for ac_header in utmp.h 19007do : 19008 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 19009if test "x$ac_cv_header_utmp_h" = x""yes; then : 19010 cat >>confdefs.h <<_ACEOF 19011#define HAVE_UTMP_H 1 19012_ACEOF 19013 19014fi 19015 19016done 19017 ;; 19018 esac 19019 ;; 19020 *) for ac_header in utmp.h utmpx.h 19021do : 19022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19023ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19024eval as_val=\$$as_ac_Header 19025 if test "x$as_val" = x""yes; then : 19026 cat >>confdefs.h <<_ACEOF 19027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19028_ACEOF 19029 19030fi 19031 19032done 19033 ;; 19034esac 19035 19036# 19037# On Suns only (so far) getpass() truncates the typed password to 8 19038# characters, but getpassphrase() allows up to 257. Most systems' 19039# getpass() does not truncate, at least not so as to affect ntpq and 19040# ntpdc password prompts. 19041# 19042# So check for getpassphrase(), but only on Sun operating systems. 19043# 19044 19045case "$host" in 19046 *-*-sunos*|*-*-solaris*) 19047 for ac_func in getpassphrase 19048do : 19049 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 19050if test "x$ac_cv_func_getpassphrase" = x""yes; then : 19051 cat >>confdefs.h <<_ACEOF 19052#define HAVE_GETPASSPHRASE 1 19053_ACEOF 19054 19055fi 19056done 19057 19058esac 19059 19060for ac_header in arpa/nameser.h 19061do : 19062 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" 19063if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then : 19064 cat >>confdefs.h <<_ACEOF 19065#define HAVE_ARPA_NAMESER_H 1 19066_ACEOF 19067 19068fi 19069 19070done 19071 19072for ac_header in sys/socket.h 19073do : 19074 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 19075if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 19076 cat >>confdefs.h <<_ACEOF 19077#define HAVE_SYS_SOCKET_H 1 19078_ACEOF 19079 19080fi 19081 19082done 19083 19084for ac_header in net/if.h 19085do : 19086 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H 19087#include <sys/socket.h> 19088#endif 19089 19090" 19091if test "x$ac_cv_header_net_if_h" = x""yes; then : 19092 cat >>confdefs.h <<_ACEOF 19093#define HAVE_NET_IF_H 1 19094_ACEOF 19095 19096fi 19097 19098done 19099 19100for ac_header in net/if6.h 19101do : 19102 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 19103if test "x$ac_cv_header_net_if6_h" = x""yes; then : 19104 cat >>confdefs.h <<_ACEOF 19105#define HAVE_NET_IF6_H 1 19106_ACEOF 19107 19108fi 19109 19110done 19111 19112for ac_header in net/route.h 19113do : 19114 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 19115#include <sys/types.h> 19116#include <sys/socket.h> 19117#include <net/if.h> 19118 19119" 19120if test "x$ac_cv_header_net_route_h" = x""yes; then : 19121 cat >>confdefs.h <<_ACEOF 19122#define HAVE_NET_ROUTE_H 1 19123_ACEOF 19124 19125fi 19126 19127done 19128 19129for ac_header in netinet/in_system.h netinet/in_systm.h 19130do : 19131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19132ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19133eval as_val=\$$as_ac_Header 19134 if test "x$as_val" = x""yes; then : 19135 cat >>confdefs.h <<_ACEOF 19136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19137_ACEOF 19138 19139fi 19140 19141done 19142 19143for ac_header in netinet/in.h 19144do : 19145 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 19146if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 19147 cat >>confdefs.h <<_ACEOF 19148#define HAVE_NETINET_IN_H 1 19149_ACEOF 19150 19151fi 19152 19153done 19154 19155for ac_header in netinet/ip.h 19156do : 19157 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H 19158#include <sys/types.h> 19159#endif 19160#if HAVE_NETINET_IN_H 19161#include <netinet/in.h> 19162#endif 19163#if HAVE_NETINET_IN_SYSTM_H 19164#include <netinet/in_systm.h> 19165#endif 19166 19167" 19168if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : 19169 cat >>confdefs.h <<_ACEOF 19170#define HAVE_NETINET_IP_H 1 19171_ACEOF 19172 19173fi 19174 19175done 19176 19177 19178# Check for IPTOS_PREC 19179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5 19180$as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; } 19181if test "${ac_cv_ip_tos+set}" = set; then : 19182 $as_echo_n "(cached) " >&6 19183else 19184 19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19186/* end confdefs.h. */ 19187 19188 #if HAVE_SYS_TYPES_H 19189 #include <sys/types.h> 19190 #endif 19191 #if HAVE_NETINET_IP_H 19192 #include <netinet/in.h> 19193 #include <netinet/ip.h> 19194 #endif 19195 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY) 19196 yes 19197 #endif 19198 19199_ACEOF 19200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19201 $EGREP "yes" >/dev/null 2>&1; then : 19202 ac_cv_ip_tos=yes 19203else 19204 ac_cv_ip_tos=no 19205 19206fi 19207rm -f conftest* 19208 19209 19210 19211fi 19212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5 19213$as_echo "$ac_cv_ip_tos" >&6; } 19214 19215case "$ac_cv_ip_tos" in 19216 yes) 19217 19218$as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h 19219 19220esac 19221 19222for ac_header in netinfo/ni.h 19223do : 19224 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 19225if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then : 19226 cat >>confdefs.h <<_ACEOF 19227#define HAVE_NETINFO_NI_H 1 19228_ACEOF 19229 19230$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 19231 19232fi 19233 19234done 19235 19236for ac_header in sun/audioio.h sys/audioio.h 19237do : 19238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19239ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19240eval as_val=\$$as_ac_Header 19241 if test "x$as_val" = x""yes; then : 19242 cat >>confdefs.h <<_ACEOF 19243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19244_ACEOF 19245 19246fi 19247 19248done 19249 19250for ac_header in sys/clkdefs.h sys/file.h 19251do : 19252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19253ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19254eval as_val=\$$as_ac_Header 19255 if test "x$as_val" = x""yes; then : 19256 cat >>confdefs.h <<_ACEOF 19257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19258_ACEOF 19259 19260fi 19261 19262done 19263 19264case "$host" in 19265 *-*-sunos4*) ;; 19266 *) for ac_header in sys/ioctl.h 19267do : 19268 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 19269if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 19270 cat >>confdefs.h <<_ACEOF 19271#define HAVE_SYS_IOCTL_H 1 19272_ACEOF 19273 19274fi 19275 19276done 19277 19278 ;; 19279esac 19280for ac_header in sys/ipc.h 19281do : 19282 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default" 19283if test "x$ac_cv_header_sys_ipc_h" = x""yes; then : 19284 cat >>confdefs.h <<_ACEOF 19285#define HAVE_SYS_IPC_H 1 19286_ACEOF 19287 19288fi 19289 19290done 19291 19292for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h 19293do : 19294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19295ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19296eval as_val=\$$as_ac_Header 19297 if test "x$as_val" = x""yes; then : 19298 cat >>confdefs.h <<_ACEOF 19299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19300_ACEOF 19301 19302fi 19303 19304done 19305 19306# HMS: Check sys/proc.h and sys/resource.h after some others 19307for ac_header in sys/ppstime.h 19308do : 19309 ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default" 19310if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then : 19311 cat >>confdefs.h <<_ACEOF 19312#define HAVE_SYS_PPSTIME_H 1 19313_ACEOF 19314 19315fi 19316 19317done 19318 19319case "$ac_cv_header_sched_h" in 19320 yes) ;; 19321 *) for ac_header in sys/sched.h 19322do : 19323 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 19324if test "x$ac_cv_header_sys_sched_h" = x""yes; then : 19325 cat >>confdefs.h <<_ACEOF 19326#define HAVE_SYS_SCHED_H 1 19327_ACEOF 19328 19329fi 19330 19331done 19332 ;; 19333esac 19334case "$host" in 19335 *-*-sco*) 19336 for ac_header in sys/sio.h 19337do : 19338 ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default" 19339if test "x$ac_cv_header_sys_sio_h" = x""yes; then : 19340 cat >>confdefs.h <<_ACEOF 19341#define HAVE_SYS_SIO_H 1 19342_ACEOF 19343 19344fi 19345 19346done 19347 19348 ;; 19349esac 19350# HMS: Check sys/shm.h after some others 19351for ac_header in sys/select.h sys/signal.h sys/sockio.h 19352do : 19353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19354ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19355eval as_val=\$$as_ac_Header 19356 if test "x$as_val" = x""yes; then : 19357 cat >>confdefs.h <<_ACEOF 19358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19359_ACEOF 19360 19361fi 19362 19363done 19364 19365# HMS: Checked sys/socket.h earlier 19366case "$host" in 19367 *-*-netbsd*) ;; 19368 *) for ac_header in machine/soundcard.h sys/soundcard.h 19369do : 19370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19371ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19372eval as_val=\$$as_ac_Header 19373 if test "x$as_val" = x""yes; then : 19374 cat >>confdefs.h <<_ACEOF 19375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19376_ACEOF 19377 19378fi 19379 19380done 19381 19382 ;; 19383esac 19384for ac_header in sys/stat.h sys/stream.h 19385do : 19386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19387ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19388eval as_val=\$$as_ac_Header 19389 if test "x$as_val" = x""yes; then : 19390 cat >>confdefs.h <<_ACEOF 19391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19392_ACEOF 19393 19394fi 19395 19396done 19397 19398for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h 19399do : 19400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19401ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19402eval as_val=\$$as_ac_Header 19403 if test "x$as_val" = x""yes; then : 19404 cat >>confdefs.h <<_ACEOF 19405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19406_ACEOF 19407 19408fi 19409 19410done 19411 19412for ac_header in sys/termios.h sys/time.h sys/signal.h 19413do : 19414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19416eval as_val=\$$as_ac_Header 19417 if test "x$as_val" = x""yes; then : 19418 cat >>confdefs.h <<_ACEOF 19419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19420_ACEOF 19421 19422fi 19423 19424done 19425 19426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19427/* end confdefs.h. */ 19428#if HAVE_SYS_TIME_H 19429# include <sys/time.h> 19430#endif 19431#if HAVE_ERRNO_H 19432# include <errno.h> 19433#endif 19434#include <sys/timepps.h> 19435#ifdef PPS_API_VERS_1 19436yes 19437#endif 19438 19439_ACEOF 19440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19441 $EGREP "yes" >/dev/null 2>&1; then : 19442 for ac_header in sys/timepps.h 19443do : 19444 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H 19445# include <sys/time.h> 19446#endif 19447#if HAVE_ERRNO_H 19448# include <errno.h> 19449#endif 19450 19451" 19452if test "x$ac_cv_header_sys_timepps_h" = x""yes; then : 19453 cat >>confdefs.h <<_ACEOF 19454#define HAVE_SYS_TIMEPPS_H 1 19455_ACEOF 19456 19457fi 19458 19459done 19460 19461 19462fi 19463rm -f conftest* 19464 19465for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h 19466do : 19467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19468ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19469eval as_val=\$$as_ac_Header 19470 if test "x$as_val" = x""yes; then : 19471 cat >>confdefs.h <<_ACEOF 19472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19473_ACEOF 19474 19475fi 19476 19477done 19478 19479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 19480$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 19481if test "${ac_cv_header_time+set}" = set; then : 19482 $as_echo_n "(cached) " >&6 19483else 19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19485/* end confdefs.h. */ 19486#include <sys/types.h> 19487#include <sys/time.h> 19488#include <time.h> 19489 19490int 19491main () 19492{ 19493if ((struct tm *) 0) 19494return 0; 19495 ; 19496 return 0; 19497} 19498_ACEOF 19499if ac_fn_c_try_compile "$LINENO"; then : 19500 ac_cv_header_time=yes 19501else 19502 ac_cv_header_time=no 19503fi 19504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19505fi 19506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 19507$as_echo "$ac_cv_header_time" >&6; } 19508if test $ac_cv_header_time = yes; then 19509 19510$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 19511 19512fi 19513 19514case "$host" in 19515*-convex-*) 19516 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 19517do : 19518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19519ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19520eval as_val=\$$as_ac_Header 19521 if test "x$as_val" = x""yes; then : 19522 cat >>confdefs.h <<_ACEOF 19523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19524_ACEOF 19525 19526fi 19527 19528done 19529 19530 ;; 19531*-*-bsdi*) 19532 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 19533do : 19534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19535ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19536eval as_val=\$$as_ac_Header 19537 if test "x$as_val" = x""yes; then : 19538 cat >>confdefs.h <<_ACEOF 19539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19540_ACEOF 19541 19542fi 19543 19544done 19545 19546 ;; 19547esac 19548 19549case "$host" in 19550 *-*-*linux*) 19551 for ac_func in __adjtimex __ntp_gettime 19552do : 19553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19554ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19555eval as_val=\$$as_ac_var 19556 if test "x$as_val" = x""yes; then : 19557 cat >>confdefs.h <<_ACEOF 19558#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19559_ACEOF 19560 19561fi 19562done 19563 19564 ;; 19565esac 19566case "$ac_cv_func___adjtimex" in 19567 yes) ;; 19568 *) 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 19570$as_echo_n "checking for nlist in -lelf... " >&6; } 19571if test "${ac_cv_lib_elf_nlist+set}" = set; then : 19572 $as_echo_n "(cached) " >&6 19573else 19574 ac_check_lib_save_LIBS=$LIBS 19575LIBS="-lelf $LIBS" 19576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19577/* end confdefs.h. */ 19578 19579/* Override any GCC internal prototype to avoid an error. 19580 Use char because int might match the return type of a GCC 19581 builtin and then its argument prototype would still apply. */ 19582#ifdef __cplusplus 19583extern "C" 19584#endif 19585char nlist (); 19586int 19587main () 19588{ 19589return nlist (); 19590 ; 19591 return 0; 19592} 19593_ACEOF 19594if ac_fn_c_try_link "$LINENO"; then : 19595 ac_cv_lib_elf_nlist=yes 19596else 19597 ac_cv_lib_elf_nlist=no 19598fi 19599rm -f core conftest.err conftest.$ac_objext \ 19600 conftest$ac_exeext conftest.$ac_ext 19601LIBS=$ac_check_lib_save_LIBS 19602fi 19603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 19604$as_echo "$ac_cv_lib_elf_nlist" >&6; } 19605if test "x$ac_cv_lib_elf_nlist" = x""yes; then : 19606 cat >>confdefs.h <<_ACEOF 19607#define HAVE_LIBELF 1 19608_ACEOF 19609 19610 LIBS="-lelf $LIBS" 19611 19612fi 19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5 19614$as_echo_n "checking for main in -lkvm... " >&6; } 19615if test "${ac_cv_lib_kvm_main+set}" = set; then : 19616 $as_echo_n "(cached) " >&6 19617else 19618 ac_check_lib_save_LIBS=$LIBS 19619LIBS="-lkvm $LIBS" 19620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19621/* end confdefs.h. */ 19622 19623 19624int 19625main () 19626{ 19627return main (); 19628 ; 19629 return 0; 19630} 19631_ACEOF 19632if ac_fn_c_try_link "$LINENO"; then : 19633 ac_cv_lib_kvm_main=yes 19634else 19635 ac_cv_lib_kvm_main=no 19636fi 19637rm -f core conftest.err conftest.$ac_objext \ 19638 conftest$ac_exeext conftest.$ac_ext 19639LIBS=$ac_check_lib_save_LIBS 19640fi 19641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5 19642$as_echo "$ac_cv_lib_kvm_main" >&6; } 19643if test "x$ac_cv_lib_kvm_main" = x""yes; then : 19644 cat >>confdefs.h <<_ACEOF 19645#define HAVE_LIBKVM 1 19646_ACEOF 19647 19648 LIBS="-lkvm $LIBS" 19649 19650fi 19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5 19652$as_echo_n "checking for nlist in -lld... " >&6; } 19653if test "${ac_cv_lib_ld_nlist+set}" = set; then : 19654 $as_echo_n "(cached) " >&6 19655else 19656 ac_check_lib_save_LIBS=$LIBS 19657LIBS="-lld $LIBS" 19658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19659/* end confdefs.h. */ 19660 19661/* Override any GCC internal prototype to avoid an error. 19662 Use char because int might match the return type of a GCC 19663 builtin and then its argument prototype would still apply. */ 19664#ifdef __cplusplus 19665extern "C" 19666#endif 19667char nlist (); 19668int 19669main () 19670{ 19671return nlist (); 19672 ; 19673 return 0; 19674} 19675_ACEOF 19676if ac_fn_c_try_link "$LINENO"; then : 19677 ac_cv_lib_ld_nlist=yes 19678else 19679 ac_cv_lib_ld_nlist=no 19680fi 19681rm -f core conftest.err conftest.$ac_objext \ 19682 conftest$ac_exeext conftest.$ac_ext 19683LIBS=$ac_check_lib_save_LIBS 19684fi 19685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5 19686$as_echo "$ac_cv_lib_ld_nlist" >&6; } 19687if test "x$ac_cv_lib_ld_nlist" = x""yes; then : 19688 cat >>confdefs.h <<_ACEOF 19689#define HAVE_LIBLD 1 19690_ACEOF 19691 19692 LIBS="-lld $LIBS" 19693 19694fi 19695 19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5 19697$as_echo_n "checking for nlist in -lmld... " >&6; } 19698if test "${ac_cv_lib_mld_nlist+set}" = set; then : 19699 $as_echo_n "(cached) " >&6 19700else 19701 ac_check_lib_save_LIBS=$LIBS 19702LIBS="-lmld $LIBS" 19703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19704/* end confdefs.h. */ 19705 19706/* Override any GCC internal prototype to avoid an error. 19707 Use char because int might match the return type of a GCC 19708 builtin and then its argument prototype would still apply. */ 19709#ifdef __cplusplus 19710extern "C" 19711#endif 19712char nlist (); 19713int 19714main () 19715{ 19716return nlist (); 19717 ; 19718 return 0; 19719} 19720_ACEOF 19721if ac_fn_c_try_link "$LINENO"; then : 19722 ac_cv_lib_mld_nlist=yes 19723else 19724 ac_cv_lib_mld_nlist=no 19725fi 19726rm -f core conftest.err conftest.$ac_objext \ 19727 conftest$ac_exeext conftest.$ac_ext 19728LIBS=$ac_check_lib_save_LIBS 19729fi 19730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5 19731$as_echo "$ac_cv_lib_mld_nlist" >&6; } 19732if test "x$ac_cv_lib_mld_nlist" = x""yes; then : 19733 cat >>confdefs.h <<_ACEOF 19734#define HAVE_LIBMLD 1 19735_ACEOF 19736 19737 LIBS="-lmld $LIBS" 19738 19739fi 19740 19741 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 19742if test "x$ac_cv_header_nlist_h" = x""yes; then : 19743 19744$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 19745 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 19747$as_echo_n "checking for n_un in struct nlist... " >&6; } 19748if test "${ac_cv_struct_nlist_n_un+set}" = set; then : 19749 $as_echo_n "(cached) " >&6 19750else 19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19752/* end confdefs.h. */ 19753#include <nlist.h> 19754int 19755main () 19756{ 19757struct nlist n; n.n_un.n_name = 0; 19758 ; 19759 return 0; 19760} 19761_ACEOF 19762if ac_fn_c_try_compile "$LINENO"; then : 19763 ac_cv_struct_nlist_n_un=yes 19764else 19765 ac_cv_struct_nlist_n_un=no 19766fi 19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19768fi 19769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5 19770$as_echo "$ac_cv_struct_nlist_n_un" >&6; } 19771 if test $ac_cv_struct_nlist_n_un = yes; then 19772 19773$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 19774 19775 fi 19776 19777fi 19778 19779 ;; 19780esac 19781 19782 19783for ac_header in sys/proc.h 19784do : 19785 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H 19786# include <sys/types.h> 19787#endif 19788#if HAVE_SYS_TIME_H 19789# include <sys/time.h> 19790#endif 19791 19792" 19793if test "x$ac_cv_header_sys_proc_h" = x""yes; then : 19794 cat >>confdefs.h <<_ACEOF 19795#define HAVE_SYS_PROC_H 1 19796_ACEOF 19797 19798fi 19799 19800done 19801 19802 19803for ac_header in sys/resource.h 19804do : 19805 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H 19806# include <sys/time.h> 19807#endif 19808 19809" 19810if test "x$ac_cv_header_sys_resource_h" = x""yes; then : 19811 cat >>confdefs.h <<_ACEOF 19812#define HAVE_SYS_RESOURCE_H 1 19813_ACEOF 19814 19815fi 19816 19817done 19818 19819 19820for ac_header in sys/shm.h 19821do : 19822 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H 19823# include <sys/types.h> 19824#endif 19825#if HAVE_SYS_IPC_H 19826# include <sys/ipc.h> 19827#endif 19828 19829" 19830if test "x$ac_cv_header_sys_shm_h" = x""yes; then : 19831 cat >>confdefs.h <<_ACEOF 19832#define HAVE_SYS_SHM_H 1 19833_ACEOF 19834 19835fi 19836 19837done 19838 19839 19840for ac_header in sys/timex.h 19841do : 19842 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H 19843# include <sys/time.h> 19844#endif 19845 19846" 19847if test "x$ac_cv_header_sys_timex_h" = x""yes; then : 19848 cat >>confdefs.h <<_ACEOF 19849#define HAVE_SYS_TIMEX_H 1 19850_ACEOF 19851 19852fi 19853 19854done 19855 19856 19857for ac_header in resolv.h 19858do : 19859 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H 19860#include <sys/types.h> 19861#endif 19862#if HAVE_NETINET_IN_H 19863#include <netinet/in.h> 19864#endif 19865#if HAVE_ARPA_NAMESER_H 19866#include <arpa/nameser.h> 19867#endif 19868 19869" 19870if test "x$ac_cv_header_resolv_h" = x""yes; then : 19871 cat >>confdefs.h <<_ACEOF 19872#define HAVE_RESOLV_H 1 19873_ACEOF 19874 19875fi 19876 19877done 19878 19879 19880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5 19881$as_echo_n "checking for basic volatile support... " >&6; } 19882if test "${ac_cv_c_volatile+set}" = set; then : 19883 $as_echo_n "(cached) " >&6 19884else 19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19886/* end confdefs.h. */ 19887 19888int 19889main () 19890{ 19891 19892volatile int x; 19893 ; 19894 return 0; 19895} 19896_ACEOF 19897if ac_fn_c_try_compile "$LINENO"; then : 19898 ac_cv_c_volatile=yes 19899else 19900 ac_cv_c_volatile=no 19901fi 19902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19903 19904fi 19905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 19906$as_echo "$ac_cv_c_volatile" >&6; } 19907case "$ac_cv_c_volatile" in 19908 yes) 19909 ;; 19910 *) 19911$as_echo "#define volatile /**/" >>confdefs.h 19912 19913 ;; 19914esac 19915 19916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19917$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19918if test "${ac_cv_c_const+set}" = set; then : 19919 $as_echo_n "(cached) " >&6 19920else 19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19922/* end confdefs.h. */ 19923 19924int 19925main () 19926{ 19927/* FIXME: Include the comments suggested by Paul. */ 19928#ifndef __cplusplus 19929 /* Ultrix mips cc rejects this. */ 19930 typedef int charset[2]; 19931 const charset cs; 19932 /* SunOS 4.1.1 cc rejects this. */ 19933 char const *const *pcpcc; 19934 char **ppc; 19935 /* NEC SVR4.0.2 mips cc rejects this. */ 19936 struct point {int x, y;}; 19937 static struct point const zero = {0,0}; 19938 /* AIX XL C 1.02.0.0 rejects this. 19939 It does not let you subtract one const X* pointer from another in 19940 an arm of an if-expression whose if-part is not a constant 19941 expression */ 19942 const char *g = "string"; 19943 pcpcc = &g + (g ? g-g : 0); 19944 /* HPUX 7.0 cc rejects these. */ 19945 ++pcpcc; 19946 ppc = (char**) pcpcc; 19947 pcpcc = (char const *const *) ppc; 19948 { /* SCO 3.2v4 cc rejects this. */ 19949 char *t; 19950 char const *s = 0 ? (char *) 0 : (char const *) 0; 19951 19952 *t++ = 0; 19953 if (s) return 0; 19954 } 19955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19956 int x[] = {25, 17}; 19957 const int *foo = &x[0]; 19958 ++foo; 19959 } 19960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19961 typedef const int *iptr; 19962 iptr p = 0; 19963 ++p; 19964 } 19965 { /* AIX XL C 1.02.0.0 rejects this saying 19966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19967 struct s { int j; const int *ap[3]; }; 19968 struct s *b; b->j = 5; 19969 } 19970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19971 const int foo = 10; 19972 if (!foo) return 0; 19973 } 19974 return !cs[0] && !zero.x; 19975#endif 19976 19977 ; 19978 return 0; 19979} 19980_ACEOF 19981if ac_fn_c_try_compile "$LINENO"; then : 19982 ac_cv_c_const=yes 19983else 19984 ac_cv_c_const=no 19985fi 19986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19987fi 19988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19989$as_echo "$ac_cv_c_const" >&6; } 19990if test $ac_cv_c_const = no; then 19991 19992$as_echo "#define const /**/" >>confdefs.h 19993 19994fi 19995 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 19997$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 19998if test "${ac_cv_c_bigendian+set}" = set; then : 19999 $as_echo_n "(cached) " >&6 20000else 20001 ac_cv_c_bigendian=unknown 20002 # See if we're dealing with a universal compiler. 20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20004/* end confdefs.h. */ 20005#ifndef __APPLE_CC__ 20006 not a universal capable compiler 20007 #endif 20008 typedef int dummy; 20009 20010_ACEOF 20011if ac_fn_c_try_compile "$LINENO"; then : 20012 20013 # Check for potential -arch flags. It is not universal unless 20014 # there are at least two -arch flags with different values. 20015 ac_arch= 20016 ac_prev= 20017 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 20018 if test -n "$ac_prev"; then 20019 case $ac_word in 20020 i?86 | x86_64 | ppc | ppc64) 20021 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 20022 ac_arch=$ac_word 20023 else 20024 ac_cv_c_bigendian=universal 20025 break 20026 fi 20027 ;; 20028 esac 20029 ac_prev= 20030 elif test "x$ac_word" = "x-arch"; then 20031 ac_prev=arch 20032 fi 20033 done 20034fi 20035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20036 if test $ac_cv_c_bigendian = unknown; then 20037 # See if sys/param.h defines the BYTE_ORDER macro. 20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20039/* end confdefs.h. */ 20040#include <sys/types.h> 20041 #include <sys/param.h> 20042 20043int 20044main () 20045{ 20046#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 20047 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 20048 && LITTLE_ENDIAN) 20049 bogus endian macros 20050 #endif 20051 20052 ; 20053 return 0; 20054} 20055_ACEOF 20056if ac_fn_c_try_compile "$LINENO"; then : 20057 # It does; now see whether it defined to BIG_ENDIAN or not. 20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20059/* end confdefs.h. */ 20060#include <sys/types.h> 20061 #include <sys/param.h> 20062 20063int 20064main () 20065{ 20066#if BYTE_ORDER != BIG_ENDIAN 20067 not big endian 20068 #endif 20069 20070 ; 20071 return 0; 20072} 20073_ACEOF 20074if ac_fn_c_try_compile "$LINENO"; then : 20075 ac_cv_c_bigendian=yes 20076else 20077 ac_cv_c_bigendian=no 20078fi 20079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20080fi 20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20082 fi 20083 if test $ac_cv_c_bigendian = unknown; then 20084 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20086/* end confdefs.h. */ 20087#include <limits.h> 20088 20089int 20090main () 20091{ 20092#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 20093 bogus endian macros 20094 #endif 20095 20096 ; 20097 return 0; 20098} 20099_ACEOF 20100if ac_fn_c_try_compile "$LINENO"; then : 20101 # It does; now see whether it defined to _BIG_ENDIAN or not. 20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20103/* end confdefs.h. */ 20104#include <limits.h> 20105 20106int 20107main () 20108{ 20109#ifndef _BIG_ENDIAN 20110 not big endian 20111 #endif 20112 20113 ; 20114 return 0; 20115} 20116_ACEOF 20117if ac_fn_c_try_compile "$LINENO"; then : 20118 ac_cv_c_bigendian=yes 20119else 20120 ac_cv_c_bigendian=no 20121fi 20122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20123fi 20124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20125 fi 20126 if test $ac_cv_c_bigendian = unknown; then 20127 # Compile a test program. 20128 if test "$cross_compiling" = yes; then : 20129 # Try to guess by grepping values from an object file. 20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20131/* end confdefs.h. */ 20132short int ascii_mm[] = 20133 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20134 short int ascii_ii[] = 20135 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20136 int use_ascii (int i) { 20137 return ascii_mm[i] + ascii_ii[i]; 20138 } 20139 short int ebcdic_ii[] = 20140 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20141 short int ebcdic_mm[] = 20142 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20143 int use_ebcdic (int i) { 20144 return ebcdic_mm[i] + ebcdic_ii[i]; 20145 } 20146 extern int foo; 20147 20148int 20149main () 20150{ 20151return use_ascii (foo) == use_ebcdic (foo); 20152 ; 20153 return 0; 20154} 20155_ACEOF 20156if ac_fn_c_try_compile "$LINENO"; then : 20157 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 20158 ac_cv_c_bigendian=yes 20159 fi 20160 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20161 if test "$ac_cv_c_bigendian" = unknown; then 20162 ac_cv_c_bigendian=no 20163 else 20164 # finding both strings is unlikely to happen, but who knows? 20165 ac_cv_c_bigendian=unknown 20166 fi 20167 fi 20168fi 20169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20170else 20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20172/* end confdefs.h. */ 20173$ac_includes_default 20174int 20175main () 20176{ 20177 20178 /* Are we little or big endian? From Harbison&Steele. */ 20179 union 20180 { 20181 long int l; 20182 char c[sizeof (long int)]; 20183 } u; 20184 u.l = 1; 20185 return u.c[sizeof (long int) - 1] == 1; 20186 20187 ; 20188 return 0; 20189} 20190_ACEOF 20191if ac_fn_c_try_run "$LINENO"; then : 20192 ac_cv_c_bigendian=no 20193else 20194 ac_cv_c_bigendian=yes 20195fi 20196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20197 conftest.$ac_objext conftest.beam conftest.$ac_ext 20198fi 20199 20200 fi 20201fi 20202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 20203$as_echo "$ac_cv_c_bigendian" >&6; } 20204 case $ac_cv_c_bigendian in #( 20205 yes) 20206 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 20207;; #( 20208 no) 20209 ;; #( 20210 universal) 20211 20212$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 20213 20214 ;; #( 20215 *) 20216 as_fn_error "unknown endianness 20217 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 20218 esac 20219 20220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 20221$as_echo_n "checking return type of signal handlers... " >&6; } 20222if test "${ac_cv_type_signal+set}" = set; then : 20223 $as_echo_n "(cached) " >&6 20224else 20225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20226/* end confdefs.h. */ 20227#include <sys/types.h> 20228#include <signal.h> 20229 20230int 20231main () 20232{ 20233return *(signal (0, 0)) (0) == 1; 20234 ; 20235 return 0; 20236} 20237_ACEOF 20238if ac_fn_c_try_compile "$LINENO"; then : 20239 ac_cv_type_signal=int 20240else 20241 ac_cv_type_signal=void 20242fi 20243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20244fi 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 20246$as_echo "$ac_cv_type_signal" >&6; } 20247 20248cat >>confdefs.h <<_ACEOF 20249#define RETSIGTYPE $ac_cv_type_signal 20250_ACEOF 20251 20252 20253ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 20254if test "x$ac_cv_type_off_t" = x""yes; then : 20255 20256else 20257 20258cat >>confdefs.h <<_ACEOF 20259#define off_t long int 20260_ACEOF 20261 20262fi 20263 20264ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20265if test "x$ac_cv_type_size_t" = x""yes; then : 20266 20267else 20268 20269cat >>confdefs.h <<_ACEOF 20270#define size_t unsigned int 20271_ACEOF 20272 20273fi 20274 20275ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" 20276if test "x$ac_cv_type_time_t" = x""yes; then : 20277 20278else 20279 20280cat >>confdefs.h <<_ACEOF 20281#define time_t long 20282_ACEOF 20283 20284fi 20285 20286# The cast to long int works around a bug in the HP C Compiler 20287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20289# This bug is HP SR number 8606223364. 20290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 20291$as_echo_n "checking size of time_t... " >&6; } 20292if test "${ac_cv_sizeof_time_t+set}" = set; then : 20293 $as_echo_n "(cached) " >&6 20294else 20295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 20296 20297else 20298 if test "$ac_cv_type_time_t" = yes; then 20299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20301{ as_fn_set_status 77 20302as_fn_error "cannot compute sizeof (time_t) 20303See \`config.log' for more details." "$LINENO" 5; }; } 20304 else 20305 ac_cv_sizeof_time_t=0 20306 fi 20307fi 20308 20309fi 20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 20311$as_echo "$ac_cv_sizeof_time_t" >&6; } 20312 20313 20314 20315cat >>confdefs.h <<_ACEOF 20316#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 20317_ACEOF 20318 20319 20320ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20321if test "x$ac_cv_type_uintptr_t" = x""yes; then : 20322 20323cat >>confdefs.h <<_ACEOF 20324#define HAVE_UINTPTR_T 1 20325_ACEOF 20326 20327 20328fi 20329 20330 20331 20332 20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 20334$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 20335if test "${ac_cv_struct_tm+set}" = set; then : 20336 $as_echo_n "(cached) " >&6 20337else 20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20339/* end confdefs.h. */ 20340#include <sys/types.h> 20341#include <time.h> 20342 20343int 20344main () 20345{ 20346struct tm tm; 20347 int *p = &tm.tm_sec; 20348 return !p; 20349 ; 20350 return 0; 20351} 20352_ACEOF 20353if ac_fn_c_try_compile "$LINENO"; then : 20354 ac_cv_struct_tm=time.h 20355else 20356 ac_cv_struct_tm=sys/time.h 20357fi 20358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20359fi 20360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 20361$as_echo "$ac_cv_struct_tm" >&6; } 20362if test $ac_cv_struct_tm = sys/time.h; then 20363 20364$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 20365 20366fi 20367 20368 20369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5 20370$as_echo_n "checking for u_int8_t... " >&6; } 20371if test "${ac_cv_type_u_int8_t+set}" = set; then : 20372 $as_echo_n "(cached) " >&6 20373else 20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20375/* end confdefs.h. */ 20376#include <sys/types.h> 20377int 20378main () 20379{ 20380u_int8_t len = 42; return 0; 20381 ; 20382 return 0; 20383} 20384_ACEOF 20385if ac_fn_c_try_compile "$LINENO"; then : 20386 ac_cv_type_u_int8_t=yes 20387else 20388 ac_cv_type_u_int8_t=no 20389fi 20390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20391 20392fi 20393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5 20394$as_echo "$ac_cv_type_u_int8_t" >&6; } 20395if test $ac_cv_type_u_int8_t = yes; then 20396 20397$as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h 20398 20399fi 20400 20401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5 20402$as_echo_n "checking for u_int64_t... " >&6; } 20403if test "${ac_cv_type_u_int64_t+set}" = set; then : 20404 $as_echo_n "(cached) " >&6 20405else 20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20407/* end confdefs.h. */ 20408#include <sys/types.h> 20409int 20410main () 20411{ 20412u_int64_t len = 42; return 0; 20413 ; 20414 return 0; 20415} 20416_ACEOF 20417if ac_fn_c_try_compile "$LINENO"; then : 20418 ac_cv_type_u_int64_t=yes 20419else 20420 ac_cv_type_u_int64_t=no 20421fi 20422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20423 20424fi 20425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5 20426$as_echo "$ac_cv_type_u_int64_t" >&6; } 20427if test $ac_cv_type_u_int64_t = yes; then 20428 20429$as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h 20430 20431fi 20432 20433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 20434$as_echo_n "checking for a fallback value for HZ... " >&6; } 20435if test "${ac_cv_var_default_hz+set}" = set; then : 20436 $as_echo_n "(cached) " >&6 20437else 20438 ac_cv_var_default_hz=100 20439case "$host" in 20440 alpha*-dec-osf4*|alpha*-dec-osf5*) 20441 ac_cv_var_default_hz=1024 20442 ;; 20443 mips-dec-ultrix4*) 20444 ac_cv_var_default_hz=256 20445 ;; 20446esac 20447fi 20448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5 20449$as_echo "$ac_cv_var_default_hz" >&6; } 20450 20451cat >>confdefs.h <<_ACEOF 20452#define DEFAULT_HZ $ac_cv_var_default_hz 20453_ACEOF 20454 20455 20456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 20457$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 20458if test "${ac_cv_var_override_hz+set}" = set; then : 20459 $as_echo_n "(cached) " >&6 20460else 20461 ac_cv_var_override_hz=no 20462case "$host" in 20463 alpha*-dec-osf4*|alpha*-dec-osf5*) 20464 ac_cv_var_override_hz=yes 20465 ;; 20466 mips-dec-ultrix4*) 20467 ac_cv_var_override_hz=yes 20468 ;; 20469 *-*-freebsd*) 20470 ac_cv_var_override_hz=yes 20471 ;; 20472 *-*-sunos4*) 20473 ac_cv_var_override_hz=yes 20474 ;; 20475esac 20476fi 20477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5 20478$as_echo "$ac_cv_var_override_hz" >&6; } 20479case "$ac_cv_var_override_hz" in 20480 yes) 20481 20482$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 20483 20484 ;; 20485esac 20486 20487 20488 20489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 20490$as_echo_n "checking for struct rt_msghdr... " >&6; } 20491if test "${ac_cv_struct_rt_msghdr+set}" = set; then : 20492 $as_echo_n "(cached) " >&6 20493else 20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20495/* end confdefs.h. */ 20496 20497#include <sys/types.h> 20498#include <sys/socket.h> 20499#include <net/if.h> 20500#include <net/route.h> 20501int 20502main () 20503{ 20504struct rt_msghdr p; 20505 ; 20506 return 0; 20507} 20508_ACEOF 20509if ac_fn_c_try_compile "$LINENO"; then : 20510 ac_cv_struct_rt_msghdr=yes 20511else 20512 ac_cv_struct_rt_msghdr=no 20513fi 20514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20515 20516fi 20517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5 20518$as_echo "$ac_cv_struct_rt_msghdr" >&6; } 20519 20520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 20521$as_echo_n "checking for struct rtattr... " >&6; } 20522if test "${ac_cv_struct_rtattr+set}" = set; then : 20523 $as_echo_n "(cached) " >&6 20524else 20525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20526/* end confdefs.h. */ 20527 20528#include <linux/rtnetlink.h> 20529int 20530main () 20531{ 20532struct rtattr p; 20533 ; 20534 return 0; 20535} 20536_ACEOF 20537if ac_fn_c_try_compile "$LINENO"; then : 20538 ac_cv_struct_rtattr=yes 20539else 20540 ac_cv_struct_rtattr=no 20541fi 20542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20543 20544fi 20545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtattr" >&5 20546$as_echo "$ac_cv_struct_rtattr" >&6; } 20547 20548if test $ac_cv_struct_rt_msghdr = yes -o $ac_cv_struct_rtattr = yes; then 20549 20550$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 20551 20552 if test $ac_cv_struct_rtattr = yes; then 20553 20554$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 20555 20556 fi 20557fi 20558 20559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 20560$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 20561if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then : 20562 $as_echo_n "(cached) " >&6 20563else 20564 20565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20566/* end confdefs.h. */ 20567#include <signal.h> 20568int 20569main () 20570{ 20571struct sigaction act; act.sa_sigaction = 0; 20572 ; 20573 return 0; 20574} 20575_ACEOF 20576if ac_fn_c_try_compile "$LINENO"; then : 20577 ac_cv_struct_sigaction_has_sa_sigaction=yes 20578else 20579 ac_cv_struct_sigaction_has_sa_sigaction=no 20580 20581fi 20582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20583 20584 20585fi 20586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5 20587$as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; } 20588if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then 20589 20590$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 20591 20592fi 20593 20594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 20595$as_echo_n "checking for struct ppsclockev... " >&6; } 20596if test "${ac_cv_struct_ppsclockev+set}" = set; then : 20597 $as_echo_n "(cached) " >&6 20598else 20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20600/* end confdefs.h. */ 20601 20602#include <sys/types.h> 20603#ifdef HAVE_SYS_TERMIOS_H 20604# include <sys/termios.h> 20605#endif 20606#ifdef HAVE_SYS_TIME_H 20607# include <sys/time.h> 20608#endif 20609#ifdef HAVE_SYS_PPSCLOCK_H 20610# include <sys/ppsclock.h> 20611#endif 20612int 20613main () 20614{ 20615 20616extern struct ppsclockev *pce; 20617return pce->serial; 20618 ; 20619 return 0; 20620} 20621_ACEOF 20622if ac_fn_c_try_compile "$LINENO"; then : 20623 ac_cv_struct_ppsclockev=yes 20624else 20625 ac_cv_struct_ppsclockev=no 20626fi 20627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20628 20629fi 20630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5 20631$as_echo "$ac_cv_struct_ppsclockev" >&6; } 20632if test $ac_cv_struct_ppsclockev = yes; then 20633 20634$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 20635 20636fi 20637 20638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 20639$as_echo_n "checking for struct sockaddr_storage... " >&6; } 20640if test "${ntp_cv_sockaddr_storage+set}" = set; then : 20641 $as_echo_n "(cached) " >&6 20642else 20643 20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20645/* end confdefs.h. */ 20646 20647 #ifdef HAVE_SYS_TYPES_H 20648 # include <sys/types.h> 20649 #endif 20650 #ifdef HAVE_SYS_SOCKET_H 20651 # include <sys/socket.h> 20652 #endif 20653 #ifdef HAVE_NETINET_IN_H 20654 # include <netinet/in.h> 20655 #endif 20656 20657int 20658main () 20659{ 20660 20661 struct sockaddr_storage n; 20662 20663 ; 20664 return 0; 20665} 20666_ACEOF 20667if ac_fn_c_try_compile "$LINENO"; then : 20668 ntp_cv_sockaddr_storage="yes" 20669else 20670 ntp_cv_sockaddr_storage="no" 20671 20672fi 20673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20674 20675 20676fi 20677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 20678$as_echo "$ntp_cv_sockaddr_storage" >&6; } 20679case "$ntp_cv_sockaddr_storage" in 20680 yes) 20681 20682$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 20683 20684esac 20685 20686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5 20687$as_echo_n "checking for sockaddr_storage.ss_family... " >&6; } 20688if test "${ntp_cv_have_ss_family+set}" = set; then : 20689 $as_echo_n "(cached) " >&6 20690else 20691 20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20693/* end confdefs.h. */ 20694 20695 #ifdef HAVE_SYS_TYPES_H 20696 # include <sys/types.h> 20697 #endif 20698 #ifdef HAVE_SYS_SOCKET_H 20699 # include <sys/socket.h> 20700 #endif 20701 #ifdef HAVE_NETINET_IN_H 20702 # include <netinet/in.h> 20703 #endif 20704 20705int 20706main () 20707{ 20708 20709 struct sockaddr_storage s; 20710 s.ss_family = 1; 20711 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716if ac_fn_c_try_compile "$LINENO"; then : 20717 ntp_cv_have_ss_family="yes" 20718else 20719 ntp_cv_have_ss_family="no" 20720 20721fi 20722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20723 20724 20725fi 20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5 20727$as_echo "$ntp_cv_have_ss_family" >&6; } 20728 20729case "$ntp_cv_have_ss_family" in 20730 no) 20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 20732$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 20733if test "${ntp_cv_have___ss_family+set}" = set; then : 20734 $as_echo_n "(cached) " >&6 20735else 20736 20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20738/* end confdefs.h. */ 20739 20740 #ifdef HAVE_SYS_TYPES_H 20741 # include <sys/types.h> 20742 #endif 20743 #ifdef HAVE_SYS_SOCKET_H 20744 # include <sys/socket.h> 20745 #endif 20746 #ifdef HAVE_NETINET_IN_H 20747 # include <netinet/in.h> 20748 #endif 20749 20750int 20751main () 20752{ 20753 20754 struct sockaddr_storage s; 20755 s.__ss_family = 1; 20756 20757 ; 20758 return 0; 20759} 20760_ACEOF 20761if ac_fn_c_try_compile "$LINENO"; then : 20762 ntp_cv_have___ss_family="yes" 20763else 20764 ntp_cv_have___ss_family="no" 20765 20766fi 20767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20768 20769 20770fi 20771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 20772$as_echo "$ntp_cv_have___ss_family" >&6; } 20773 case "$ntp_cv_have___ss_family" in 20774 yes) 20775 20776$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 20777 20778 esac 20779esac 20780 20781 20782 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5 20784$as_echo_n "checking for sockaddr_storage.ss_len... " >&6; } 20785if test "${ntp_cv_have_ss_len+set}" = set; then : 20786 $as_echo_n "(cached) " >&6 20787else 20788 20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20790/* end confdefs.h. */ 20791 20792 #ifdef HAVE_SYS_TYPES_H 20793 # include <sys/types.h> 20794 #endif 20795 #ifdef HAVE_SYS_SOCKET_H 20796 # include <sys/socket.h> 20797 #endif 20798 #ifdef HAVE_NETINET_IN_H 20799 # include <netinet/in.h> 20800 #endif 20801 20802int 20803main () 20804{ 20805 20806 struct sockaddr_storage s; 20807 s.ss_len = 1; 20808 20809 ; 20810 return 0; 20811} 20812_ACEOF 20813if ac_fn_c_try_compile "$LINENO"; then : 20814 ntp_cv_have_ss_len="yes" 20815else 20816 ntp_cv_have_ss_len="no" 20817 20818fi 20819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20820 20821 20822fi 20823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5 20824$as_echo "$ntp_cv_have_ss_len" >&6; } 20825 20826case "$ntp_cv_have_ss_len" in 20827 no) 20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5 20829$as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; } 20830if test "${ntp_cv_have___ss_len+set}" = set; then : 20831 $as_echo_n "(cached) " >&6 20832else 20833 20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20835/* end confdefs.h. */ 20836 20837 #ifdef HAVE_SYS_TYPES_H 20838 # include <sys/types.h> 20839 #endif 20840 #ifdef HAVE_SYS_SOCKET_H 20841 # include <sys/socket.h> 20842 #endif 20843 #ifdef HAVE_NETINET_IN_H 20844 # include <netinet/in.h> 20845 #endif 20846 20847int 20848main () 20849{ 20850 20851 struct sockaddr_storage s; 20852 s.__ss_len = 1; 20853 20854 ; 20855 return 0; 20856} 20857_ACEOF 20858if ac_fn_c_try_compile "$LINENO"; then : 20859 ntp_cv_have___ss_len="yes" 20860else 20861 ntp_cv_have___ss_len="no" 20862 20863fi 20864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20865 20866 20867fi 20868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5 20869$as_echo "$ntp_cv_have___ss_len" >&6; } 20870 case "$ntp_cv_have___ss_len" in 20871 yes) 20872 20873$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h 20874 20875 esac 20876esac 20877 20878 20879 20880# 20881# Look for in_port_t. 20882# 20883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 20884$as_echo_n "checking for in_port_t... " >&6; } 20885if test "${isc_cv_have_in_port_t+set}" = set; then : 20886 $as_echo_n "(cached) " >&6 20887else 20888 20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20890/* end confdefs.h. */ 20891 20892 #include <sys/types.h> 20893 #include <netinet/in.h> 20894 20895int 20896main () 20897{ 20898 20899 in_port_t port = 25; 20900 return (0); 20901 20902 ; 20903 return 0; 20904} 20905_ACEOF 20906if ac_fn_c_try_compile "$LINENO"; then : 20907 isc_cv_have_in_port_t=yes 20908else 20909 isc_cv_have_in_port_t=no 20910 20911fi 20912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20913 20914 20915fi 20916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 20917$as_echo "$isc_cv_have_in_port_t" >&6; } 20918case "$isc_cv_have_in_port_t" in 20919 no) 20920 20921$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 20922 20923esac 20924 20925case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 20926 *yes*) 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 20928$as_echo_n "checking for struct snd_size... " >&6; } 20929if test "${ac_cv_struct_snd_size+set}" = set; then : 20930 $as_echo_n "(cached) " >&6 20931else 20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20933/* end confdefs.h. */ 20934 20935#ifdef HAVE_MACHINE_SOUNDCARD_H 20936# include <machine/soundcard.h> 20937#endif 20938#ifdef HAVE_SYS_SOUNDCARD_H 20939# include <sys/soundcard.h> 20940#endif 20941int 20942main () 20943{ 20944 20945extern struct snd_size *ss; 20946return ss->rec_size; 20947 ; 20948 return 0; 20949} 20950_ACEOF 20951if ac_fn_c_try_compile "$LINENO"; then : 20952 ac_cv_struct_snd_size=yes 20953else 20954 ac_cv_struct_snd_size=no 20955fi 20956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20957 20958fi 20959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5 20960$as_echo "$ac_cv_struct_snd_size" >&6; } 20961 case "$ac_cv_struct_snd_size" in 20962 yes) 20963$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 20964 ;; 20965 esac 20966 ;; 20967esac 20968 20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 20970$as_echo_n "checking struct clockinfo for hz... " >&6; } 20971if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then : 20972 $as_echo_n "(cached) " >&6 20973else 20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20975/* end confdefs.h. */ 20976 20977#include <sys/time.h> 20978int 20979main () 20980{ 20981 20982extern struct clockinfo *pc; 20983return pc->hz; 20984 ; 20985 return 0; 20986} 20987_ACEOF 20988if ac_fn_c_try_compile "$LINENO"; then : 20989 ac_cv_struct_clockinfo_has_hz=yes 20990else 20991 ac_cv_struct_clockinfo_has_hz=no 20992fi 20993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20994 20995fi 20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5 20997$as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; } 20998if test $ac_cv_struct_clockinfo_has_hz = yes; then 20999 21000$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 21001 21002fi 21003 21004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 21005$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 21006if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then : 21007 $as_echo_n "(cached) " >&6 21008else 21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21010/* end confdefs.h. */ 21011 21012#include <sys/time.h> 21013int 21014main () 21015{ 21016 21017extern struct clockinfo *pc; 21018return pc->tickadj; 21019 ; 21020 return 0; 21021} 21022_ACEOF 21023if ac_fn_c_try_compile "$LINENO"; then : 21024 ac_cv_struct_clockinfo_has_tickadj=yes 21025else 21026 ac_cv_struct_clockinfo_has_tickadj=no 21027fi 21028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21029 21030fi 21031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5 21032$as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; } 21033if test $ac_cv_struct_clockinfo_has_tickadj = yes; then 21034 21035$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 21036 21037fi 21038 21039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 21040$as_echo_n "checking for struct timespec... " >&6; } 21041if test "${ac_cv_struct_timespec+set}" = set; then : 21042 $as_echo_n "(cached) " >&6 21043else 21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21045/* end confdefs.h. */ 21046 21047#include <sys/time.h> 21048/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */ 21049#ifdef HAVE_ERRNO_H 21050# include <errno.h> 21051#endif 21052#ifdef HAVE_SYS_TIMEPPS_H 21053# define FRAC 4294967296 21054# include <sys/timepps.h> 21055#endif 21056int 21057main () 21058{ 21059struct timespec n; 21060 ; 21061 return 0; 21062} 21063_ACEOF 21064if ac_fn_c_try_compile "$LINENO"; then : 21065 ac_cv_struct_timespec=yes 21066else 21067 ac_cv_struct_timespec=no 21068fi 21069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21070fi 21071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5 21072$as_echo "$ac_cv_struct_timespec" >&6; } 21073if test $ac_cv_struct_timespec = yes; then 21074 21075$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 21076 21077fi 21078 21079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 21080$as_echo_n "checking for struct ntptimeval... " >&6; } 21081if test "${ac_cv_struct_ntptimeval+set}" = set; then : 21082 $as_echo_n "(cached) " >&6 21083else 21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21085/* end confdefs.h. */ 21086 21087#include <sys/time.h> 21088#include <sys/timex.h> 21089int 21090main () 21091{ 21092struct ntptimeval n; 21093 ; 21094 return 0; 21095} 21096_ACEOF 21097if ac_fn_c_try_compile "$LINENO"; then : 21098 ac_cv_struct_ntptimeval=yes 21099else 21100 ac_cv_struct_ntptimeval=no 21101fi 21102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21103fi 21104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5 21105$as_echo "$ac_cv_struct_ntptimeval" >&6; } 21106if test $ac_cv_struct_ntptimeval = yes; then 21107 21108$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 21109 21110fi 21111 21112ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H 21113#include <sys/time.h> 21114#else 21115# ifdef HAVE_TIME_H 21116# include <time.h> 21117# endif 21118#endif 21119#ifdef HAVE_SYS_TIMEX_H 21120#include <sys/timex.h> 21121#else 21122# ifdef HAVE_TIMEX_H 21123# include <timex.h> 21124# endif 21125#endif 21126" 21127if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then : 21128 21129cat >>confdefs.h <<_ACEOF 21130#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 21131_ACEOF 21132 21133 21134fi 21135 21136 21137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 21138$as_echo_n "checking for inline... " >&6; } 21139if test "${ac_cv_c_inline+set}" = set; then : 21140 $as_echo_n "(cached) " >&6 21141else 21142 ac_cv_c_inline=no 21143for ac_kw in inline __inline__ __inline; do 21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21145/* end confdefs.h. */ 21146#ifndef __cplusplus 21147typedef int foo_t; 21148static $ac_kw foo_t static_foo () {return 0; } 21149$ac_kw foo_t foo () {return 0; } 21150#endif 21151 21152_ACEOF 21153if ac_fn_c_try_compile "$LINENO"; then : 21154 ac_cv_c_inline=$ac_kw 21155fi 21156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21157 test "$ac_cv_c_inline" != no && break 21158done 21159 21160fi 21161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 21162$as_echo "$ac_cv_c_inline" >&6; } 21163 21164case $ac_cv_c_inline in 21165 inline | yes) ;; 21166 *) 21167 case $ac_cv_c_inline in 21168 no) ac_val=;; 21169 *) ac_val=$ac_cv_c_inline;; 21170 esac 21171 cat >>confdefs.h <<_ACEOF 21172#ifndef __cplusplus 21173#define inline $ac_val 21174#endif 21175_ACEOF 21176 ;; 21177esac 21178 21179 21180case "$ac_cv_c_inline" in 21181 '') 21182 ;; 21183 *) 21184 21185$as_echo "#define HAVE_INLINE 1" >>confdefs.h 21186 21187 21188esac 21189 21190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 21191$as_echo_n "checking whether char is unsigned... " >&6; } 21192if test "${ac_cv_c_char_unsigned+set}" = set; then : 21193 $as_echo_n "(cached) " >&6 21194else 21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21196/* end confdefs.h. */ 21197$ac_includes_default 21198int 21199main () 21200{ 21201static int test_array [1 - 2 * !(((char) -1) < 0)]; 21202test_array [0] = 0 21203 21204 ; 21205 return 0; 21206} 21207_ACEOF 21208if ac_fn_c_try_compile "$LINENO"; then : 21209 ac_cv_c_char_unsigned=no 21210else 21211 ac_cv_c_char_unsigned=yes 21212fi 21213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21214fi 21215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 21216$as_echo "$ac_cv_c_char_unsigned" >&6; } 21217if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 21218 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 21219 21220fi 21221 # The cast to long int works around a bug in the HP C Compiler 21222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21224# This bug is HP SR number 8606223364. 21225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 21226$as_echo_n "checking size of signed char... " >&6; } 21227if test "${ac_cv_sizeof_signed_char+set}" = set; then : 21228 $as_echo_n "(cached) " >&6 21229else 21230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 21231 21232else 21233 if test "$ac_cv_type_signed_char" = yes; then 21234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21236{ as_fn_set_status 77 21237as_fn_error "cannot compute sizeof (signed char) 21238See \`config.log' for more details." "$LINENO" 5; }; } 21239 else 21240 ac_cv_sizeof_signed_char=0 21241 fi 21242fi 21243 21244fi 21245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 21246$as_echo "$ac_cv_sizeof_signed_char" >&6; } 21247 21248 21249 21250cat >>confdefs.h <<_ACEOF 21251#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 21252_ACEOF 21253 21254 21255# The cast to long int works around a bug in the HP C Compiler 21256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21258# This bug is HP SR number 8606223364. 21259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 21260$as_echo_n "checking size of int... " >&6; } 21261if test "${ac_cv_sizeof_int+set}" = set; then : 21262 $as_echo_n "(cached) " >&6 21263else 21264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 21265 21266else 21267 if test "$ac_cv_type_int" = yes; then 21268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21270{ as_fn_set_status 77 21271as_fn_error "cannot compute sizeof (int) 21272See \`config.log' for more details." "$LINENO" 5; }; } 21273 else 21274 ac_cv_sizeof_int=0 21275 fi 21276fi 21277 21278fi 21279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 21280$as_echo "$ac_cv_sizeof_int" >&6; } 21281 21282 21283 21284cat >>confdefs.h <<_ACEOF 21285#define SIZEOF_INT $ac_cv_sizeof_int 21286_ACEOF 21287 21288 21289# The cast to long int works around a bug in the HP C Compiler 21290# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21291# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21292# This bug is HP SR number 8606223364. 21293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 21294$as_echo_n "checking size of long... " >&6; } 21295if test "${ac_cv_sizeof_long+set}" = set; then : 21296 $as_echo_n "(cached) " >&6 21297else 21298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 21299 21300else 21301 if test "$ac_cv_type_long" = yes; then 21302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21304{ as_fn_set_status 77 21305as_fn_error "cannot compute sizeof (long) 21306See \`config.log' for more details." "$LINENO" 5; }; } 21307 else 21308 ac_cv_sizeof_long=0 21309 fi 21310fi 21311 21312fi 21313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 21314$as_echo "$ac_cv_sizeof_long" >&6; } 21315 21316 21317 21318cat >>confdefs.h <<_ACEOF 21319#define SIZEOF_LONG $ac_cv_sizeof_long 21320_ACEOF 21321 21322 21323 21324ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 21325if test "x$ac_cv_type_s_char" = x""yes; then : 21326 21327cat >>confdefs.h <<_ACEOF 21328#define HAVE_S_CHAR 1 21329_ACEOF 21330 21331 21332fi 21333 21334case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 21335 *yes) 21336 # We have a typedef for s_char. Might as well believe it... 21337 ;; 21338 no0no) 21339 # We have signed chars, can't say 'signed char', no s_char typedef. 21340 21341$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 21342 21343 ;; 21344 no1no) 21345 # We have signed chars, can say 'signed char', no s_char typedef. 21346 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 21347 21348 ;; 21349 yes0no) 21350 # We have unsigned chars, can't say 'signed char', no s_char typedef. 21351 as_fn_error "No way to specify a signed character!" "$LINENO" 5 21352 ;; 21353 yes1no) 21354 # We have unsigned chars, can say 'signed char', no s_char typedef. 21355 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 21356 21357 ;; 21358esac 21359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 21360$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 21361if test "${ac_cv_type_uid_t+set}" = set; then : 21362 $as_echo_n "(cached) " >&6 21363else 21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365/* end confdefs.h. */ 21366#include <sys/types.h> 21367 21368_ACEOF 21369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21370 $EGREP "uid_t" >/dev/null 2>&1; then : 21371 ac_cv_type_uid_t=yes 21372else 21373 ac_cv_type_uid_t=no 21374fi 21375rm -f conftest* 21376 21377fi 21378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 21379$as_echo "$ac_cv_type_uid_t" >&6; } 21380if test $ac_cv_type_uid_t = no; then 21381 21382$as_echo "#define uid_t int" >>confdefs.h 21383 21384 21385$as_echo "#define gid_t int" >>confdefs.h 21386 21387fi 21388 21389 21390case "$host" in 21391 *-*-aix[456]*) 21392 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 21393 # (returning ENOSYS). I didn't check 4.2. If, in the future, 21394 # IBM pulls its thumbs out long enough to implement clock_settime, 21395 # this conditional will need to change. Maybe use AC_TRY_RUN 21396 # instead to try to set the time to itself and check errno. 21397 ;; 21398 *) 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21400$as_echo_n "checking for library containing clock_gettime... " >&6; } 21401if test "${ac_cv_search_clock_gettime+set}" = set; then : 21402 $as_echo_n "(cached) " >&6 21403else 21404 ac_func_search_save_LIBS=$LIBS 21405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21406/* end confdefs.h. */ 21407 21408/* Override any GCC internal prototype to avoid an error. 21409 Use char because int might match the return type of a GCC 21410 builtin and then its argument prototype would still apply. */ 21411#ifdef __cplusplus 21412extern "C" 21413#endif 21414char clock_gettime (); 21415int 21416main () 21417{ 21418return clock_gettime (); 21419 ; 21420 return 0; 21421} 21422_ACEOF 21423for ac_lib in '' rt; do 21424 if test -z "$ac_lib"; then 21425 ac_res="none required" 21426 else 21427 ac_res=-l$ac_lib 21428 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21429 fi 21430 if ac_fn_c_try_link "$LINENO"; then : 21431 ac_cv_search_clock_gettime=$ac_res 21432fi 21433rm -f core conftest.err conftest.$ac_objext \ 21434 conftest$ac_exeext 21435 if test "${ac_cv_search_clock_gettime+set}" = set; then : 21436 break 21437fi 21438done 21439if test "${ac_cv_search_clock_gettime+set}" = set; then : 21440 21441else 21442 ac_cv_search_clock_gettime=no 21443fi 21444rm conftest.$ac_ext 21445LIBS=$ac_func_search_save_LIBS 21446fi 21447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21448$as_echo "$ac_cv_search_clock_gettime" >&6; } 21449ac_res=$ac_cv_search_clock_gettime 21450if test "$ac_res" != no; then : 21451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21452 21453fi 21454 21455 for ac_func in clock_gettime clock_settime 21456do : 21457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21458ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21459eval as_val=\$$as_ac_var 21460 if test "x$as_val" = x""yes; then : 21461 cat >>confdefs.h <<_ACEOF 21462#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21463_ACEOF 21464 21465fi 21466done 21467 21468 ;; 21469esac 21470for ac_func in daemon 21471do : 21472 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 21473if test "x$ac_cv_func_daemon" = x""yes; then : 21474 cat >>confdefs.h <<_ACEOF 21475#define HAVE_DAEMON 1 21476_ACEOF 21477 21478fi 21479done 21480 21481for ac_func in finite 21482do : 21483 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 21484if test "x$ac_cv_func_finite" = x""yes; then : 21485 cat >>confdefs.h <<_ACEOF 21486#define HAVE_FINITE 1 21487_ACEOF 21488 21489else 21490 for ac_func in isfinite 21491do : 21492 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 21493if test "x$ac_cv_func_isfinite" = x""yes; then : 21494 cat >>confdefs.h <<_ACEOF 21495#define HAVE_ISFINITE 1 21496_ACEOF 21497 21498else 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 21500$as_echo_n "checking for isfinite with <math.h>... " >&6; } 21501 _libs=$LIBS 21502 LIBS="$LIBS -lm" 21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21504/* end confdefs.h. */ 21505#include <math.h> 21506int 21507main () 21508{ 21509float f = 0.0; isfinite(f) 21510 ; 21511 return 0; 21512} 21513_ACEOF 21514if ac_fn_c_try_link "$LINENO"; then : 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21516$as_echo "yes" >&6; } 21517 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 21518 21519else 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21521$as_echo "no" >&6; } 21522fi 21523rm -f core conftest.err conftest.$ac_objext \ 21524 conftest$ac_exeext conftest.$ac_ext 21525 LIBS=$_libs 21526fi 21527done 21528 21529fi 21530done 21531 21532for ac_func in getbootfile getclock getdtablesize 21533do : 21534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21536eval as_val=\$$as_ac_var 21537 if test "x$as_val" = x""yes; then : 21538 cat >>confdefs.h <<_ACEOF 21539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21540_ACEOF 21541 21542fi 21543done 21544 21545 21546# Check whether --enable-getifaddrs was given. 21547if test "${enable_getifaddrs+set}" = set; then : 21548 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 21549else 21550 want_getifaddrs="yes" 21551fi 21552 21553 21554case $want_getifaddrs in 21555yes|glibc) 21556# 21557# Do we have getifaddrs() ? 21558# 21559case $host in 21560*-*linux*) 21561 # Some recent versions of glibc support getifaddrs() which does not 21562 # provide AF_INET6 addresses while the function provided by the USAGI 21563 # project handles the AF_INET6 case correctly. We need to avoid 21564 # using the former but prefer the latter unless overridden by 21565 # --enable-getifaddrs=glibc. 21566 if test $want_getifaddrs = glibc 21567 then 21568 for ac_func in getifaddrs 21569do : 21570 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 21571if test "x$ac_cv_func_getifaddrs" = x""yes; then : 21572 cat >>confdefs.h <<_ACEOF 21573#define HAVE_GETIFADDRS 1 21574_ACEOF 21575 21576fi 21577done 21578 21579 else 21580 save_LIBS="$LIBS" 21581 LIBS="-L/usr/local/v6/lib $LIBS" 21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5 21583$as_echo_n "checking for getifaddrs in -linet6... " >&6; } 21584if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then : 21585 $as_echo_n "(cached) " >&6 21586else 21587 ac_check_lib_save_LIBS=$LIBS 21588LIBS="-linet6 $LIBS" 21589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21590/* end confdefs.h. */ 21591 21592/* Override any GCC internal prototype to avoid an error. 21593 Use char because int might match the return type of a GCC 21594 builtin and then its argument prototype would still apply. */ 21595#ifdef __cplusplus 21596extern "C" 21597#endif 21598char getifaddrs (); 21599int 21600main () 21601{ 21602return getifaddrs (); 21603 ; 21604 return 0; 21605} 21606_ACEOF 21607if ac_fn_c_try_link "$LINENO"; then : 21608 ac_cv_lib_inet6_getifaddrs=yes 21609else 21610 ac_cv_lib_inet6_getifaddrs=no 21611fi 21612rm -f core conftest.err conftest.$ac_objext \ 21613 conftest$ac_exeext conftest.$ac_ext 21614LIBS=$ac_check_lib_save_LIBS 21615fi 21616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5 21617$as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; } 21618if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then : 21619 LIBS="$LIBS -linet6" 21620 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 21621 21622else 21623 LIBS=${save_LIBS} 21624fi 21625 21626 fi 21627 ;; 21628*) 21629 for ac_func in getifaddrs 21630do : 21631 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 21632if test "x$ac_cv_func_getifaddrs" = x""yes; then : 21633 cat >>confdefs.h <<_ACEOF 21634#define HAVE_GETIFADDRS 1 21635_ACEOF 21636 21637fi 21638done 21639 21640 ;; 21641esac 21642;; 21643no) 21644;; 21645esac 21646 21647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 21648$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 21649if test "${ac_cv_func_getsockname_arg2+set}" = set; then : 21650 $as_echo_n "(cached) " >&6 21651else 21652 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then : 21653 $as_echo_n "(cached) " >&6 21654else 21655 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do 21656 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 21657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21658/* end confdefs.h. */ 21659#ifdef HAVE_SYS_TYPES_H 21660#include <sys/types.h> 21661#endif 21662#ifdef HAVE_SYS_SOCKET_H 21663#include <sys/socket.h> 21664#endif 21665extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *); 21666int 21667main () 21668{ 21669 21670 ; 21671 return 0; 21672} 21673_ACEOF 21674if ac_fn_c_try_compile "$LINENO"; then : 21675 ac_not_found=no ; break 2 21676else 21677 ac_not_found=yes 21678fi 21679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21680 done 21681 done 21682 21683fi 21684 21685fi 21686if test "$ac_not_found" = yes; then 21687 ac_cv_func_getsockname_socklen_type='socklen_t' 21688fi 21689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5 21690$as_echo "$ac_cv_func_getsockname_socklen_type" >&6; } 21691 21692cat >>confdefs.h <<_ACEOF 21693#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type 21694_ACEOF 21695 21696 21697for ac_func in getrusage 21698do : 21699 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 21700if test "x$ac_cv_func_getrusage" = x""yes; then : 21701 cat >>confdefs.h <<_ACEOF 21702#define HAVE_GETRUSAGE 1 21703_ACEOF 21704 21705fi 21706done 21707 21708ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 21709if test "x$ac_cv_func_gettimeofday" = x""yes; then : 21710 21711else 21712 21713case "$host" in 21714 *-*-mpeix*) ac_cv_func_gettimeofday=yes 21715 ;; 21716esac 21717fi 21718 21719case "$host" in 21720 *-pc-cygwin*) 21721 ;; 21722 *) for ac_func in getuid 21723do : 21724 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 21725if test "x$ac_cv_func_getuid" = x""yes; then : 21726 cat >>confdefs.h <<_ACEOF 21727#define HAVE_GETUID 1 21728_ACEOF 21729 21730fi 21731done 21732 21733 ;; 21734esac 21735for ac_func in hstrerror 21736do : 21737 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 21738if test "x$ac_cv_func_hstrerror" = x""yes; then : 21739 cat >>confdefs.h <<_ACEOF 21740#define HAVE_HSTRERROR 1 21741_ACEOF 21742 21743fi 21744done 21745 21746 21747# 21748# Check for if_nametoindex() for IPv6 scoped addresses support 21749# 21750ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 21751if test "x$ac_cv_func_if_nametoindex" = x""yes; then : 21752 ac_cv_have_if_nametoindex=yes 21753else 21754 ac_cv_have_if_nametoindex=no 21755fi 21756 21757case $ac_cv_have_if_nametoindex in 21758 no) 21759 case "$host" in 21760 *-hp-hpux*) 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5 21762$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; } 21763if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then : 21764 $as_echo_n "(cached) " >&6 21765else 21766 ac_check_lib_save_LIBS=$LIBS 21767LIBS="-lipv6 $LIBS" 21768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21769/* end confdefs.h. */ 21770 21771/* Override any GCC internal prototype to avoid an error. 21772 Use char because int might match the return type of a GCC 21773 builtin and then its argument prototype would still apply. */ 21774#ifdef __cplusplus 21775extern "C" 21776#endif 21777char if_nametoindex (); 21778int 21779main () 21780{ 21781return if_nametoindex (); 21782 ; 21783 return 0; 21784} 21785_ACEOF 21786if ac_fn_c_try_link "$LINENO"; then : 21787 ac_cv_lib_ipv6_if_nametoindex=yes 21788else 21789 ac_cv_lib_ipv6_if_nametoindex=no 21790fi 21791rm -f core conftest.err conftest.$ac_objext \ 21792 conftest$ac_exeext conftest.$ac_ext 21793LIBS=$ac_check_lib_save_LIBS 21794fi 21795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 21796$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; } 21797if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then : 21798 ac_cv_have_if_nametoindex=yes 21799 LIBS="-lipv6 $LIBS" 21800fi 21801 21802 ;; 21803 esac 21804esac 21805case $ac_cv_have_if_nametoindex in 21806 yes) 21807 21808$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 21809 21810 ;; 21811esac 21812 21813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 21814$as_echo_n "checking for library containing inet_ntop... " >&6; } 21815if test "${ac_cv_search_inet_ntop+set}" = set; then : 21816 $as_echo_n "(cached) " >&6 21817else 21818 ac_func_search_save_LIBS=$LIBS 21819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21820/* end confdefs.h. */ 21821 21822/* Override any GCC internal prototype to avoid an error. 21823 Use char because int might match the return type of a GCC 21824 builtin and then its argument prototype would still apply. */ 21825#ifdef __cplusplus 21826extern "C" 21827#endif 21828char inet_ntop (); 21829int 21830main () 21831{ 21832return inet_ntop (); 21833 ; 21834 return 0; 21835} 21836_ACEOF 21837for ac_lib in '' resolv; do 21838 if test -z "$ac_lib"; then 21839 ac_res="none required" 21840 else 21841 ac_res=-l$ac_lib 21842 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS" 21843 fi 21844 if ac_fn_c_try_link "$LINENO"; then : 21845 ac_cv_search_inet_ntop=$ac_res 21846fi 21847rm -f core conftest.err conftest.$ac_objext \ 21848 conftest$ac_exeext 21849 if test "${ac_cv_search_inet_ntop+set}" = set; then : 21850 break 21851fi 21852done 21853if test "${ac_cv_search_inet_ntop+set}" = set; then : 21854 21855else 21856 ac_cv_search_inet_ntop=no 21857fi 21858rm conftest.$ac_ext 21859LIBS=$ac_func_search_save_LIBS 21860fi 21861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 21862$as_echo "$ac_cv_search_inet_ntop" >&6; } 21863ac_res=$ac_cv_search_inet_ntop 21864if test "$ac_res" != no; then : 21865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21866 21867fi 21868 21869ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 21870if test "x$ac_cv_func_inet_ntop" = x""yes; then : 21871 21872else 21873 21874$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 21875 21876fi 21877 21878ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 21879if test "x$ac_cv_func_inet_pton" = x""yes; then : 21880 21881else 21882 21883$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 21884 21885fi 21886 21887case "$ac_cv_header_kvm_h" in 21888 yes) 21889 for ac_func in kvm_open 21890do : 21891 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 21892if test "x$ac_cv_func_kvm_open" = x""yes; then : 21893 cat >>confdefs.h <<_ACEOF 21894#define HAVE_KVM_OPEN 1 21895_ACEOF 21896 21897fi 21898done 21899 21900 ;; 21901esac 21902for ac_func in memcpy memmove memset 21903do : 21904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21905ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21906eval as_val=\$$as_ac_var 21907 if test "x$as_val" = x""yes; then : 21908 cat >>confdefs.h <<_ACEOF 21909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21910_ACEOF 21911 21912fi 21913done 21914 21915case "$host" in 21916 *-*-sco3.2v5.0.*) 21917 # Just stubs. Idiots. 21918 ;; 21919 *) for ac_func in mkstemp 21920do : 21921 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 21922if test "x$ac_cv_func_mkstemp" = x""yes; then : 21923 cat >>confdefs.h <<_ACEOF 21924#define HAVE_MKSTEMP 1 21925_ACEOF 21926 21927fi 21928done 21929 21930 ;; 21931esac 21932for ac_func in mktime 21933do : 21934 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 21935if test "x$ac_cv_func_mktime" = x""yes; then : 21936 cat >>confdefs.h <<_ACEOF 21937#define HAVE_MKTIME 1 21938_ACEOF 21939 21940fi 21941done 21942 21943case "$host" in 21944 *-*-aix[456]*) 21945 # Just a stub. Idiots. 21946 ;; 21947 *-*-irix[45]*) 21948 # Just a stub in "old" Irix. Idiots. 21949 ;; 21950 *-*-*linux*) 21951 # there, but more trouble than it is worth for now (resolver problems) 21952 ;; 21953 *-*-qnx*) 21954 # Apparently there but not working in QNX. Idiots? 21955 ;; 21956 *-*-sco3.2v5.0.*) 21957 # Just a stub. Idiots. 21958 ;; 21959 alpha*-dec-osf4*|alpha*-dec-osf5*) 21960 # mlockall is there, as a #define calling memlk via <sys/mman.h> 21961 # Not easy to test for - cheat. 21962 for ac_func in memlk 21963do : 21964 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 21965if test "x$ac_cv_func_memlk" = x""yes; then : 21966 cat >>confdefs.h <<_ACEOF 21967#define HAVE_MEMLK 1 21968_ACEOF 21969 ac_cv_func_mlockall='yes' 21970fi 21971done 21972 21973 for ac_func in mlockall 21974do : 21975 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 21976if test "x$ac_cv_func_mlockall" = x""yes; then : 21977 cat >>confdefs.h <<_ACEOF 21978#define HAVE_MLOCKALL 1 21979_ACEOF 21980 21981fi 21982done 21983 21984 ;; 21985 *) for ac_func in mlockall 21986do : 21987 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 21988if test "x$ac_cv_func_mlockall" = x""yes; then : 21989 cat >>confdefs.h <<_ACEOF 21990#define HAVE_MLOCKALL 1 21991_ACEOF 21992 21993fi 21994done 21995 21996 ;; 21997esac 21998for ac_func in nice nlist 21999do : 22000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22001ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22002eval as_val=\$$as_ac_var 22003 if test "x$as_val" = x""yes; then : 22004 cat >>confdefs.h <<_ACEOF 22005#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22006_ACEOF 22007 22008fi 22009done 22010 22011case "$host" in 22012 *-*-solaris2.6) 22013 # Broken... 22014 ;; 22015 *) for ac_func in ntp_adjtime ntp_gettime 22016do : 22017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22019eval as_val=\$$as_ac_var 22020 if test "x$as_val" = x""yes; then : 22021 cat >>confdefs.h <<_ACEOF 22022#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22023_ACEOF 22024 22025fi 22026done 22027 22028 ;; 22029esac 22030for ac_func in plock pututline pututxline readlink recvmsg rtprio 22031do : 22032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22034eval as_val=\$$as_ac_var 22035 if test "x$as_val" = x""yes; then : 22036 cat >>confdefs.h <<_ACEOF 22037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22038_ACEOF 22039 22040fi 22041done 22042 22043case "$host" in 22044 *-*-aix[456]*) 22045 # Just a stub in AIX 4. Idiots. 22046 ;; 22047 *-*-solaris2.5*) 22048 # Just stubs in solaris2.5. Idiots. 22049 ;; 22050 *) for ac_func in sched_setscheduler 22051do : 22052 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 22053if test "x$ac_cv_func_sched_setscheduler" = x""yes; then : 22054 cat >>confdefs.h <<_ACEOF 22055#define HAVE_SCHED_SETSCHEDULER 1 22056_ACEOF 22057 22058fi 22059done 22060 22061 ;; 22062esac 22063for ac_func in setlinebuf setpgid setpriority setsid 22064do : 22065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22067eval as_val=\$$as_ac_var 22068 if test "x$as_val" = x""yes; then : 22069 cat >>confdefs.h <<_ACEOF 22070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22071_ACEOF 22072 22073fi 22074done 22075 22076for ac_func in setrlimit 22077do : 22078 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 22079if test "x$ac_cv_func_setrlimit" = x""yes; then : 22080 cat >>confdefs.h <<_ACEOF 22081#define HAVE_SETRLIMIT 1 22082_ACEOF 22083 22084fi 22085done 22086 22087for ac_func in settimeofday 22088do : 22089 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 22090if test "x$ac_cv_func_settimeofday" = x""yes; then : 22091 cat >>confdefs.h <<_ACEOF 22092#define HAVE_SETTIMEOFDAY 1 22093_ACEOF 22094 22095else 22096 22097case "$host" in 22098 *-*-mpeix*) ac_cv_func_settimeofday=yes 22099 ;; 22100esac 22101fi 22102done 22103 22104for ac_func in setvbuf sigaction 22105do : 22106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22108eval as_val=\$$as_ac_var 22109 if test "x$as_val" = x""yes; then : 22110 cat >>confdefs.h <<_ACEOF 22111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22112_ACEOF 22113 22114fi 22115done 22116 22117for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl 22118do : 22119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22120ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22121eval as_val=\$$as_ac_var 22122 if test "x$as_val" = x""yes; then : 22123 cat >>confdefs.h <<_ACEOF 22124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22125_ACEOF 22126 22127fi 22128done 22129 22130for ac_func in snprintf strdup strerror strstr 22131do : 22132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22134eval as_val=\$$as_ac_var 22135 if test "x$as_val" = x""yes; then : 22136 cat >>confdefs.h <<_ACEOF 22137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22138_ACEOF 22139 22140fi 22141done 22142 22143for ac_func in timegm 22144do : 22145 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 22146if test "x$ac_cv_func_timegm" = x""yes; then : 22147 cat >>confdefs.h <<_ACEOF 22148#define HAVE_TIMEGM 1 22149_ACEOF 22150 22151fi 22152done 22153 22154case "$host" in 22155 *-*-aix[456]*) 22156 # Just stubs. Idiots. 22157 ;; 22158 *-*-netbsd1*) 22159 # Just stubs. Idiots. 22160 ;; 22161 *-*-netbsdelf1*) 22162 # Just stubs. Idiots. 22163 ;; 22164 *-*-openbsd*) 22165 # Just stubs. Idiots. 22166 ;; 22167 *) for ac_func in timer_create timer_settime 22168do : 22169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22170ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22171eval as_val=\$$as_ac_var 22172 if test "x$as_val" = x""yes; then : 22173 cat >>confdefs.h <<_ACEOF 22174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22175_ACEOF 22176 22177fi 22178done 22179 22180 ;; 22181esac 22182case "$host" in 22183 *-pc-cygwin*) 22184 # I have no idea... 22185 ;; 22186 *) for ac_func in umask 22187do : 22188 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 22189if test "x$ac_cv_func_umask" = x""yes; then : 22190 cat >>confdefs.h <<_ACEOF 22191#define HAVE_UMASK 1 22192_ACEOF 22193 22194fi 22195done 22196 22197 ;; 22198esac 22199for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf 22200do : 22201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22202ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22203eval as_val=\$$as_ac_var 22204 if test "x$as_val" = x""yes; then : 22205 cat >>confdefs.h <<_ACEOF 22206#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22207_ACEOF 22208 22209fi 22210done 22211 22212 22213### 22214 22215# http://bugs.ntp.org/737 22216case "$ac_cv_func_recvmsg" in 22217 yes) 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 22219$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 22220 if test "${ac_cv_struct_iovec_help+set}" = set; then : 22221 $as_echo_n "(cached) " >&6 22222else 22223 for ac_cv_struct_iovec_help in '0' '1'; do 22224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22225/* end confdefs.h. */ 22226#ifdef HAVE_SYS_TYPES_H 22227#include <sys/types.h> 22228#endif 22229#ifdef HAVE_SYS_SOCKET_H 22230#include <sys/socket.h> 22231#endif 22232#if $ac_cv_struct_iovec_help 22233#include <sys/uio.h> 22234#endif 22235 22236void foo(); 22237void foo() { 22238 ssize_t x; 22239 int s = 0; 22240 struct iovec iov; 22241 struct msghdr mh; 22242 int flags = 0; 22243 22244 mh.msg_iov = &iov; 22245 x = recvmsg(s, &mh, flags); 22246} 22247int 22248main () 22249{ 22250 22251 ; 22252 return 0; 22253} 22254_ACEOF 22255if ac_fn_c_try_compile "$LINENO"; then : 22256 ac_worked=yes ; break 1 22257else 22258 ac_worked=no 22259fi 22260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22261 done 22262 22263fi 22264 case "$ac_worked$ac_cv_struct_iovec_help" in 22265 yes1) 22266 22267$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 22268 22269 ans=yes 22270 ;; 22271 *) ans=no 22272 esac 22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 22274$as_echo "$ans" >&6; } 22275 ;; 22276esac 22277 22278case "$host" in 22279 *-*-sunos4*) 22280 22281$as_echo "#define SPRINTF_CHAR 1" >>confdefs.h 22282 22283 ;; 22284esac 22285 22286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 22287$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 22288if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then : 22289 $as_echo_n "(cached) " >&6 22290else 22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22292/* end confdefs.h. */ 22293#include <sys/time.h> 22294int 22295main () 22296{ 22297 22298gettimeofday((struct timeval*)0,(struct timezone*)0); 22299settimeofday((struct timeval*)0,(struct timezone*)0); 22300 22301 ; 22302 return 0; 22303} 22304_ACEOF 22305if ac_fn_c_try_compile "$LINENO"; then : 22306 ac_cv_func_Xettimeofday_nargs=2 22307else 22308 ac_cv_func_Xettimeofday_nargs=1 22309fi 22310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22311 22312fi 22313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5 22314$as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; } 22315if test $ac_cv_func_Xettimeofday_nargs = 1; then 22316 22317$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 22318 22319fi 22320 22321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 22322$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 22323if test "${ac_cv_func_setpgrp_nargs+set}" = set; then : 22324 $as_echo_n "(cached) " >&6 22325else 22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22327/* end confdefs.h. */ 22328 22329#ifdef HAVE_SYS_TYPES_H 22330# include <sys/types.h> 22331#endif 22332#ifdef HAVE_UNISTD_H 22333# include <unistd.h> 22334#endif 22335 22336int 22337main () 22338{ 22339setpgrp(0,0); 22340 ; 22341 return 0; 22342} 22343_ACEOF 22344if ac_fn_c_try_compile "$LINENO"; then : 22345 ac_cv_func_setpgrp_nargs=2 22346else 22347 ac_cv_func_setpgrp_nargs=0 22348fi 22349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22350 22351fi 22352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5 22353$as_echo "$ac_cv_func_setpgrp_nargs" >&6; } 22354if test $ac_cv_func_setpgrp_nargs = 0; then 22355 22356$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 22357 22358fi 22359 22360save_CFLAGS=$CFLAGS 22361CFLAGS="$CFLAGS -I$srcdir/include" 22362 22363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5 22364$as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; } 22365if test "${ac_cv_func_qsort_argtype+set}" = set; then : 22366 $as_echo_n "(cached) " >&6 22367else 22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22369/* end confdefs.h. */ 22370 22371#include "l_stdlib.h" 22372 22373extern void *base; 22374extern sortfunc (const void *, const void *); 22375int sortfunc(a, b) 22376 const void *a; 22377 const void *b; { return 0; } 22378 22379int 22380main () 22381{ 22382 22383qsort(base, 2, sizeof(char *), sortfunc); 22384 22385 ; 22386 return 0; 22387} 22388_ACEOF 22389if ac_fn_c_try_compile "$LINENO"; then : 22390 ac_cv_func_qsort_argtype=void 22391else 22392 ac_cv_func_qsort_argtype=char 22393fi 22394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22395 22396fi 22397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5 22398$as_echo "$ac_cv_func_qsort_argtype" >&6; } 22399case "$ac_cv_func_qsort_argtype" in 22400 void) 22401 22402$as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h 22403 22404 ;; 22405esac 22406 22407CFLAGS=$save_CFLAGS 22408 22409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 22410$as_echo_n "checking if we need to declare 'errno'... " >&6; } 22411if test "${ac_cv_decl_errno+set}" = set; then : 22412 $as_echo_n "(cached) " >&6 22413else 22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22415/* end confdefs.h. */ 22416#ifdef HAVE_ERRNO_H 22417#include <errno.h> 22418#endif 22419int 22420main () 22421{ 22422errno = 0; 22423 ; 22424 return 0; 22425} 22426_ACEOF 22427if ac_fn_c_try_compile "$LINENO"; then : 22428 ac_cv_decl_errno=no 22429else 22430 ac_cv_decl_errno=yes 22431fi 22432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22433fi 22434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5 22435$as_echo "$ac_cv_decl_errno" >&6; } 22436case "$ac_cv_decl_errno" in 22437 yes) 22438$as_echo "#define DECL_ERRNO 1" >>confdefs.h 22439 ;; 22440esac 22441 22442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 22443$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 22444if test "${ac_cv_decl_h_errno+set}" = set; then : 22445 $as_echo_n "(cached) " >&6 22446else 22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22448/* end confdefs.h. */ 22449#include <sys/types.h> 22450#ifdef HAVE_NETINET_IN_H 22451#include <netinet/in.h> 22452#endif 22453#ifdef HAVE_ARPA_NAMESER_H 22454#include <arpa/nameser.h> 22455#endif 22456#ifdef HAVE_NETDB_H 22457#include <netdb.h> 22458#endif 22459#ifdef HAVE_RESOLV_H 22460#include <resolv.h> 22461#endif 22462int 22463main () 22464{ 22465extern int h_errno; 22466 ; 22467 return 0; 22468} 22469_ACEOF 22470if ac_fn_c_try_compile "$LINENO"; then : 22471 ac_cv_decl_h_errno=yes 22472else 22473 ac_cv_decl_h_errno=no 22474fi 22475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22476fi 22477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5 22478$as_echo "$ac_cv_decl_h_errno" >&6; } 22479case "$ac_cv_decl_h_errno" in 22480 yes) 22481$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 22482 ;; 22483esac 22484 22485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5 22486$as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; } 22487if test "${ac_cv_decl_sys_errlist+set}" = set; then : 22488 $as_echo_n "(cached) " >&6 22489else 22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22491/* end confdefs.h. */ 22492#include <stdio.h> 22493#ifdef HAVE_ERRNO_H 22494#include <errno.h> 22495#endif 22496int 22497main () 22498{ 22499extern char *sys_errlist[]; 22500 22501 ; 22502 return 0; 22503} 22504_ACEOF 22505if ac_fn_c_try_compile "$LINENO"; then : 22506 ac_cv_decl_sys_errlist=yes 22507else 22508 ac_cv_decl_sys_errlist=no 22509fi 22510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22511fi 22512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5 22513$as_echo "$ac_cv_decl_sys_errlist" >&6; } 22514case "$ac_cv_decl_sys_errlist" in 22515 yes) 22516$as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h 22517 ;; 22518esac 22519 22520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 22521$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 22522if test "${ac_cv_decl_syscall+set}" = set; then : 22523 $as_echo_n "(cached) " >&6 22524else 22525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22526/* end confdefs.h. */ 22527 22528#ifdef HAVE_SYS_TYPES_H 22529# include <sys/types.h> 22530#endif 22531#ifdef HAVE_UNISTD_H 22532# include <unistd.h> 22533#endif 22534 22535int 22536main () 22537{ 22538extern int syscall (int, ...); 22539 ; 22540 return 0; 22541} 22542_ACEOF 22543if ac_fn_c_try_compile "$LINENO"; then : 22544 ac_cv_decl_syscall=yes 22545else 22546 ac_cv_decl_syscall=no 22547fi 22548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22549fi 22550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5 22551$as_echo "$ac_cv_decl_syscall" >&6; } 22552case "$ac_cv_decl_syscall" in 22553 yes) 22554$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 22555 ;; 22556esac 22557 22558case "$host" in 22559 *-*-aix4.3.*) 22560 22561$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 22562 # Needed for XLC under AIX 4.3.2 22563 ;; 22564 *-*-mpeix*) 22565 22566$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 22567 22568 22569$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 22570 22571 22572$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 22573 22574 22575$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 22576 22577 22578$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 22579 22580 22581$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 22582 22583 22584$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 22585 22586 ;; 22587 *-*-osf[45]*) 22588 22589$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 22590 22591 22592$as_echo "#define DECL_STIME_1 1" >>confdefs.h 22593 22594 ;; 22595 *-*-qnx*) 22596 22597$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 22598 22599 ;; 22600 *-*-riscos4*) 22601 22602$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 22603 22604 22605$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 22606 22607 22608$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 22609 22610 22611$as_echo "#define DECL_IPC_0 1" >>confdefs.h 22612 22613 22614$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 22615 22616 22617$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 22618 22619 22620$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 22621 22622 22623$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 22624 22625 22626$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 22627 22628 22629$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 22630 22631 22632$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 22633 22634 22635$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 22636 22637 22638$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 22639 22640 22641$as_echo "#define DECL_TIME_0 1" >>confdefs.h 22642 22643 22644$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 22645 22646 22647$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 22648 22649 ;; 22650 *-*-solaris2*) 22651 22652$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 22653 22654 22655$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 22656 22657 case "$host" in 22658 *-*-solaris2.4) 22659 22660$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 22661 22662 ;; 22663 esac 22664 ;; 22665 *-*-sunos4*) 22666 22667$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 22668 22669 22670$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 22671 22672 22673$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 22674 22675 22676$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 22677 22678 22679$as_echo "#define DECL_IPC_0 1" >>confdefs.h 22680 22681 22682$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 22683 22684 22685$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 22686 22687 22688$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 22689 22690 22691$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 22692 22693 22694$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 22695 22696 22697$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 22698 22699 22700$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 22701 22702 22703$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 22704 22705 case "`basename $ac_cv_prog_CC`" in 22706 acc*) ;; 22707 *) 22708$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 22709 22710 ;; 22711 esac 22712 22713$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 22714 22715 22716$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 22717 22718 22719$as_echo "#define DECL_TIME_0 1" >>confdefs.h 22720 22721 22722$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 22723 22724 22725$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 22726 22727 22728$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 22729 22730 22731$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 22732 22733 ;; 22734 *-*-ultrix4*) 22735 22736$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 22737 22738 22739$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 22740 22741 22742$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 22743 22744 22745$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 22746 22747 22748$as_echo "#define DECL_IPC_0 1" >>confdefs.h 22749 22750 22751$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 22752 22753 22754$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 22755 22756 22757$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 22758 22759 22760$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 22761 22762 22763$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 22764 22765 22766$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 22767 22768 22769$as_echo "#define DECL_STIME_0 1" >>confdefs.h 22770 22771 22772$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 22773 22774 22775$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 22776 22777 ;; 22778esac 22779 22780case "$host" in 22781 *-*-sco3.2*) 22782 22783$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 22784 22785 ;; 22786esac 22787 22788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5 22789$as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; } 22790if test "${ac_cv_var_rcvbuf_slop+set}" = set; then : 22791 $as_echo_n "(cached) " >&6 22792else 22793 ans=no 22794case "$host" in 22795 *-*-hpux[567]*) 22796 ans=yes 22797 ;; 22798esac 22799ac_cv_var_rcvbuf_slop=$ans 22800fi 22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5 22802$as_echo "$ac_cv_var_rcvbuf_slop" >&6; } 22803case "$ac_cv_var_rcvbuf_slop" in 22804 yes) 22805$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 22806 ;; 22807esac 22808 22809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 22810$as_echo_n "checking if we will open the broadcast socket... " >&6; } 22811if test "${ac_cv_var_open_bcast_socket+set}" = set; then : 22812 $as_echo_n "(cached) " >&6 22813else 22814 ans=yes 22815case "$host" in 22816 *-*-domainos) 22817 ans=no 22818 ;; 22819esac 22820ac_cv_var_open_bcast_socket=$ans 22821fi 22822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5 22823$as_echo "$ac_cv_var_open_bcast_socket" >&6; } 22824case "$ac_cv_var_open_bcast_socket" in 22825 yes) 22826$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 22827 ;; 22828esac 22829 22830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5 22831$as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; } 22832if test "${ac_cv_var_hpux_findconfig+set}" = set; then : 22833 $as_echo_n "(cached) " >&6 22834else 22835 ans=no 22836case "$host" in 22837 *-*-hpux*) 22838 ans=yes 22839 ;; 22840esac 22841ac_cv_var_hpux_findconfig=$ans 22842fi 22843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5 22844$as_echo "$ac_cv_var_hpux_findconfig" >&6; } 22845case "$ac_cv_var_hpux_findconfig" in 22846 yes) 22847$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 22848 ;; 22849esac 22850 22851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 22852$as_echo_n "checking if process groups are set with -pid... " >&6; } 22853if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then : 22854 $as_echo_n "(cached) " >&6 22855else 22856 case "$host" in 22857 *-*-hpux[567]*) 22858 ans=no 22859 ;; 22860 *-*-hpux*) 22861 ans=yes 22862 ;; 22863 *-*-*linux*) 22864 ans=yes 22865 ;; 22866 *-*-sunos3*) 22867 ans=yes 22868 ;; 22869 *-*-ultrix2*) 22870 ans=yes 22871 ;; 22872 *) 22873 ans=no 22874 ;; 22875esac 22876ac_cv_arg_setpgrp_negpid=$ans 22877fi 22878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5 22879$as_echo "$ac_cv_arg_setpgrp_negpid" >&6; } 22880case "$ac_cv_arg_setpgrp_negpid" in 22881 yes) 22882$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 22883 ;; 22884esac 22885 22886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 22887$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 22888if test "${ntp_cv_func_ctty_for_f_setown+set}" = set; then : 22889 $as_echo_n "(cached) " >&6 22890else 22891 22892 case "$host" in 22893 *-*-bsdi23*) 22894 ans=yes 22895 ;; 22896 *-*-freebsd*) 22897 ans=yes 22898 ;; 22899 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 22900 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 22901 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 22902 # in $host may be followed by "aout", "ecoff", or "elf". 22903 *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7) 22904 ans=yes 22905 ;; 22906 *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7) 22907 ans=yes 22908 ;; 22909 *-*-openbsd*) 22910 ans=yes 22911 ;; 22912 *-*-osf*) 22913 ans=yes 22914 ;; 22915 *-*-darwin*) 22916 ans=yes 22917 ;; 22918 *) 22919 ans=no 22920 esac 22921 ntp_cv_func_ctty_for_f_setown=$ans 22922 22923 22924fi 22925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 22926$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 22927case "$ntp_cv_func_ctty_for_f_setown" in 22928 yes) 22929 22930$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 22931 22932esac 22933 22934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5 22935$as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; } 22936if test "${ac_cv_os_routeupdates+set}" = set; then : 22937 $as_echo_n "(cached) " >&6 22938else 22939 case "$host" in 22940 *-*-netbsd*) 22941 ans=yes 22942 ;; 22943 *) ans=no 22944 ;; 22945esac 22946ac_cv_os_routeupdates=$ans 22947fi 22948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5 22949$as_echo "$ac_cv_os_routeupdates" >&6; } 22950case "$ac_cv_os_routeupdates" in 22951 yes) 22952$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 22953 ;; 22954esac 22955 22956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5 22957$as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; } 22958if test "${ac_cv_os_wildcardreuse+set}" = set; then : 22959 $as_echo_n "(cached) " >&6 22960else 22961 case "$host" in 22962 *-*-*linux*) 22963 ans=yes 22964 ;; 22965 *) ans=no 22966 ;; 22967esac 22968ac_cv_os_wildcardreuse=$ans 22969fi 22970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5 22971$as_echo "$ac_cv_os_wildcardreuse" >&6; } 22972case "$ac_cv_os_wildcardreuse" in 22973 yes) 22974$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 22975 ;; 22976esac 22977 22978ntp_warning='GRONK' 22979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 22980$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 22981case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 22982 yes*) 22983 ntp_warning='' 22984 ans='clock_settime()' 22985 ;; 22986 noyes*) 22987 ntp_warning='But clock_settime() would be better (if we had it)' 22988 ans='settimeofday()' 22989 ;; 22990 nonoyes) 22991 ntp_warning='Which is the worst of the three' 22992 ans='stime()' 22993 ;; 22994 *) 22995 case "$build" in 22996 $host) ntp_warning='Which leaves us with nothing to use!' 22997 ans=none 22998 ;; 22999esac 23000esac 23001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23002$as_echo "$ans" >&6; } 23003case "$ntp_warning" in 23004 '') ;; 23005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 23006$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 23007 ;; 23008esac 23009 23010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5 23011$as_echo_n "checking if we have a losing syscall()... " >&6; } 23012if test "${ac_cv_var_syscall_bug+set}" = set; then : 23013 $as_echo_n "(cached) " >&6 23014else 23015 case "$host" in 23016 *-*-solaris2.4*) 23017 ans=yes 23018 ;; 23019 *) ans=no 23020 ;; 23021esac 23022ac_cv_var_syscall_bug=$ans 23023fi 23024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5 23025$as_echo "$ac_cv_var_syscall_bug" >&6; } 23026case "$ac_cv_var_syscall_bug" in 23027 yes) 23028$as_echo "#define SYSCALL_BUG 1" >>confdefs.h 23029 ;; 23030esac 23031 23032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 23033$as_echo_n "checking for SIGIO... " >&6; } 23034if test "${ac_cv_hdr_def_sigio+set}" = set; then : 23035 $as_echo_n "(cached) " >&6 23036else 23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23038/* end confdefs.h. */ 23039#include <signal.h> 23040#ifdef SIGIO 23041 yes 23042#endif 23043 23044_ACEOF 23045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23046 $EGREP "yes" >/dev/null 2>&1; then : 23047 ac_cv_hdr_def_sigio=yes 23048else 23049 ac_cv_hdr_def_sigio=no 23050fi 23051rm -f conftest* 23052 23053fi 23054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5 23055$as_echo "$ac_cv_hdr_def_sigio" >&6; } 23056 23057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5 23058$as_echo_n "checking if we want to use signalled IO... " >&6; } 23059if test "${ac_cv_var_signalled_io+set}" = set; then : 23060 $as_echo_n "(cached) " >&6 23061else 23062 ans=no 23063case "$ac_cv_hdr_def_sigio" in 23064 yes) 23065 ans=yes 23066 case "$host" in 23067 alpha*-dec-osf4*|alpha*-dec-osf5*) 23068 ans=no 23069 ;; 23070 *-convex-*) 23071 ans=no 23072 ;; 23073 *-dec-*) 23074 ans=no 23075 ;; 23076 *-pc-cygwin*) 23077 ans=no 23078 ;; 23079 *-sni-sysv*) 23080 ans=no 23081 ;; 23082 *-univel-sysv*) 23083 ans=no 23084 ;; 23085 *-*-irix6*) 23086 ans=no 23087 ;; 23088 *-*-freebsd*) 23089 ans=no 23090 ;; 23091 *-*-*linux*) 23092 ans=no 23093 ;; 23094 *-*-unicosmp*) 23095 ans=no 23096 ;; 23097 esac 23098 ;; 23099esac 23100ac_cv_var_signalled_io=$ans 23101fi 23102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5 23103$as_echo "$ac_cv_var_signalled_io" >&6; } 23104case "$ac_cv_var_signalled_io" in 23105 yes) 23106$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 23107 ;; 23108esac 23109 23110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 23111$as_echo_n "checking for SIGPOLL... " >&6; } 23112if test "${ac_cv_hdr_def_sigpoll+set}" = set; then : 23113 $as_echo_n "(cached) " >&6 23114else 23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23116/* end confdefs.h. */ 23117#include <signal.h> 23118#ifdef SIGPOLL 23119 yes 23120#endif 23121 23122_ACEOF 23123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23124 $EGREP "yes" >/dev/null 2>&1; then : 23125 ac_cv_hdr_def_sigpoll=yes 23126else 23127 ac_cv_hdr_def_sigpoll=no 23128fi 23129rm -f conftest* 23130 23131fi 23132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5 23133$as_echo "$ac_cv_hdr_def_sigpoll" >&6; } 23134 23135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5 23136$as_echo_n "checking for SIGSYS... " >&6; } 23137if test "${ac_cv_hdr_def_sigsys+set}" = set; then : 23138 $as_echo_n "(cached) " >&6 23139else 23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23141/* end confdefs.h. */ 23142#include <signal.h> 23143#ifdef SIGSYS 23144 yes 23145#endif 23146 23147_ACEOF 23148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23149 $EGREP "yes" >/dev/null 2>&1; then : 23150 ac_cv_hdr_def_sigsys=yes 23151else 23152 ac_cv_hdr_def_sigsys=no 23153fi 23154rm -f conftest* 23155 23156fi 23157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5 23158$as_echo "$ac_cv_hdr_def_sigsys" >&6; } 23159 23160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 23161$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 23162if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then : 23163 $as_echo_n "(cached) " >&6 23164else 23165 ans=no 23166case "$ac_cv_hdr_def_sigpoll" in 23167 yes) 23168 case "$host" in 23169 mips-sgi-irix*) 23170 ans=no 23171 ;; 23172 vax-dec-bsd) 23173 ans=no 23174 ;; 23175 *-pc-cygwin*) 23176 ans=no 23177 ;; 23178 *-sni-sysv*) 23179 ans=no 23180 ;; 23181 *-*-aix[456]*) 23182 ans=no 23183 ;; 23184 *-*-hpux*) 23185 ans=no 23186 ;; 23187 *-*-*linux*) 23188 ans=no 23189 ;; 23190 *-*-osf*) 23191 ans=no 23192 ;; 23193 *-*-qnx*) 23194 ans=no 23195 ;; 23196 *-*-sunos*) 23197 ans=no 23198 ;; 23199 *-*-solaris*) 23200 ans=no 23201 ;; 23202 *-*-ultrix*) 23203 ans=no 23204 ;; 23205 *-*-unicosmp*) 23206 ans=no 23207 ;; 23208 *) ans=yes 23209 ;; 23210 esac 23211 ;; 23212esac 23213ac_cv_var_use_udp_sigpoll=$ans 23214fi 23215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5 23216$as_echo "$ac_cv_var_use_udp_sigpoll" >&6; } 23217case "$ac_cv_var_use_udp_sigpoll" in 23218 yes) 23219$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 23220 ;; 23221esac 23222 23223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 23224$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 23225if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then : 23226 $as_echo_n "(cached) " >&6 23227else 23228 ans=no 23229case "$ac_cv_hdr_def_sigpoll" in 23230 yes) 23231 case "$host" in 23232 mips-sgi-irix*) 23233 ans=no 23234 ;; 23235 vax-dec-bsd) 23236 ans=no 23237 ;; 23238 *-pc-cygwin*) 23239 ans=no 23240 ;; 23241 *-sni-sysv*) 23242 ans=no 23243 ;; 23244 *-*-aix[456]*) 23245 ans=no 23246 ;; 23247 *-*-hpux*) 23248 ans=no 23249 ;; 23250 *-*-*linux*) 23251 ans=no 23252 ;; 23253 *-*-osf*) 23254 ans=no 23255 ;; 23256 *-*-sunos*) 23257 ans=no 23258 ;; 23259 *-*-ultrix*) 23260 ans=no 23261 ;; 23262 *-*-qnx*) 23263 ans=no 23264 ;; 23265 *-*-unicosmp*) 23266 ans=no 23267 ;; 23268 *) ans=yes 23269 ;; 23270 esac 23271 ;; 23272esac 23273ac_cv_var_use_tty_sigpoll=$ans 23274fi 23275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5 23276$as_echo "$ac_cv_var_use_tty_sigpoll" >&6; } 23277case "$ac_cv_var_use_tty_sigpoll" in 23278 yes) 23279$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 23280 ;; 23281esac 23282 23283case "$ac_cv_header_sys_sio_h" in 23284 yes) 23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5 23286$as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; } 23287if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then : 23288 $as_echo_n "(cached) " >&6 23289else 23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23291/* end confdefs.h. */ 23292#include <sys/sio.h> 23293#ifdef TIOCDCDTIMESTAMP 23294 yes 23295#endif 23296 23297_ACEOF 23298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23299 $EGREP "yes" >/dev/null 2>&1; then : 23300 ac_cv_hdr_def_tiocdcdtimestamp=yes 23301else 23302 ac_cv_hdr_def_tiocdcdtimestamp=no 23303fi 23304rm -f conftest* 23305 23306fi 23307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5 23308$as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; } 23309 ;; 23310esac 23311 23312case "$ac_cv_hdr_def_tiocdcdtimestamp" in 23313 yes) 23314 ac_cv_var_oncore_ok=yes 23315 ;; 23316esac 23317 23318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5 23319$as_echo_n "checking if nlist() values might require extra indirection... " >&6; } 23320if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then : 23321 $as_echo_n "(cached) " >&6 23322else 23323 ans=no 23324case "$host" in 23325 *-*-aix*) 23326 ans=yes 23327 ;; 23328esac 23329ac_cv_var_nlist_extra_indirection=$ans 23330fi 23331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5 23332$as_echo "$ac_cv_var_nlist_extra_indirection" >&6; } 23333case "$ac_cv_var_nlist_extra_indirection" in 23334 yes) 23335$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 23336 ;; 23337esac 23338 23339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 23340$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 23341if test "${ac_cv_var_min_rec_tickadj+set}" = set; then : 23342 $as_echo_n "(cached) " >&6 23343else 23344 ans=no 23345case "$host" in 23346 *-*-aix*) 23347 ans=40 23348 ;; 23349esac 23350ac_cv_var_min_rec_tickadj=$ans 23351fi 23352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5 23353$as_echo "$ac_cv_var_min_rec_tickadj" >&6; } 23354case "$ac_cv_var_min_rec_tickadj" in 23355 ''|no) ;; 23356 *) 23357cat >>confdefs.h <<_ACEOF 23358#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj 23359_ACEOF 23360 ;; 23361esac 23362 23363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 23364$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 23365if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then : 23366 $as_echo_n "(cached) " >&6 23367else 23368 ans=no 23369case "$host" in 23370 i?86-*-*linux*) 23371 ans=yes 23372 ;; 23373 mips-sgi-irix*) 23374 ans=yes 23375 ;; 23376 i?86-*-freebsd[123].*) 23377 ;; 23378 i?86-*-freebsd*) 23379 ans=yes 23380 ;; 23381 *-*-unicosmp*) 23382 ans=yes 23383 ;; 23384esac 23385ac_cv_var_no_parenb_ignpar=$ans 23386fi 23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5 23388$as_echo "$ac_cv_var_no_parenb_ignpar" >&6; } 23389case "$ac_cv_var_no_parenb_ignpar" in 23390 yes) 23391$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 23392 ;; 23393esac 23394 23395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5 23396$as_echo_n "checking if we're including ntpd debugging code... " >&6; } 23397# Check whether --enable-debugging was given. 23398if test "${enable_debugging+set}" = set; then : 23399 enableval=$enable_debugging; ntp_ok=$enableval 23400else 23401 ntp_ok=yes 23402fi 23403 23404if test "$ntp_ok" = "yes"; then 23405 23406$as_echo "#define DEBUG 1" >>confdefs.h 23407 23408fi 23409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23410$as_echo "$ntp_ok" >&6; } 23411 23412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5 23413$as_echo_n "checking if we including processing time debugging code... " >&6; } 23414# Check whether --enable-debug-timing was given. 23415if test "${enable_debug_timing+set}" = set; then : 23416 enableval=$enable_debug_timing; ntp_ok=$enableval 23417else 23418 ntp_ok=no 23419fi 23420 23421if test "$ntp_ok" = "yes"; then 23422 23423$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 23424 23425fi 23426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23427$as_echo "$ntp_ok" >&6; } 23428 23429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 23430$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 23431# Check whether --enable-dst_minutes was given. 23432if test "${enable_dst_minutes+set}" = set; then : 23433 enableval=$enable_dst_minutes; ans=$enableval 23434else 23435 ans=60 23436 23437fi 23438 23439 23440cat >>confdefs.h <<_ACEOF 23441#define DSTMINUTES $ans 23442_ACEOF 23443 23444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23445$as_echo "$ans" >&6; } 23446 23447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 23448$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 23449# Check whether --enable-ignore-dns-errors was given. 23450if test "${enable_ignore_dns_errors+set}" = set; then : 23451 enableval=$enable_ignore_dns_errors; ans=$enableval 23452else 23453 ans=no 23454 23455fi 23456 23457case "$ans" in 23458 yes) 23459 23460$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 23461 23462esac 23463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23464$as_echo "$ans" >&6; } 23465 23466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5 23467$as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; } 23468# Check whether --enable-force-defer-DNS was given. 23469if test "${enable_force_defer_DNS+set}" = set; then : 23470 enableval=$enable_force_defer_DNS; ans=$enableval 23471else 23472 ans=no 23473 23474fi 23475 23476case "$ans" in 23477 yes) 23478 23479$as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h 23480 23481esac 23482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23483$as_echo "$ans" >&6; } 23484 23485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5 23486$as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; } 23487if test "${ac_cv_var_tty_clk+set}" = set; then : 23488 $as_echo_n "(cached) " >&6 23489else 23490 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in 23491 *yes*) ac_cv_var_tty_clk=yes ;; 23492 *) ac_cv_var_tty_clk=no ;; 23493 esac 23494fi 23495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5 23496$as_echo "$ac_cv_var_tty_clk" >&6; } 23497case "$ac_cv_var_tty_clk" in 23498 yes) 23499$as_echo "#define TTYCLK 1" >>confdefs.h 23500 ;; 23501esac 23502 23503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5 23504$as_echo_n "checking for the ppsclock streams module... " >&6; } 23505if test "${ac_cv_var_ppsclock+set}" = set; then : 23506 $as_echo_n "(cached) " >&6 23507else 23508 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev 23509fi 23510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5 23511$as_echo "$ac_cv_var_ppsclock" >&6; } 23512case "$ac_cv_var_ppsclock" in 23513 yes) 23514$as_echo "#define PPS 1" >>confdefs.h 23515 ;; 23516esac 23517 23518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5 23519$as_echo_n "checking for kernel multicast support... " >&6; } 23520if test "${ac_cv_var_mcast+set}" = set; then : 23521 $as_echo_n "(cached) " >&6 23522else 23523 ac_cv_var_mcast=no 23524 case "$host" in 23525 i386-sequent-sysv4) ;; 23526 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23527/* end confdefs.h. */ 23528#include <netinet/in.h> 23529#ifdef IP_ADD_MEMBERSHIP 23530 yes 23531#endif 23532 23533_ACEOF 23534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23535 $EGREP "yes" >/dev/null 2>&1; then : 23536 ac_cv_var_mcast=yes 23537fi 23538rm -f conftest* 23539 ;; 23540 esac 23541fi 23542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5 23543$as_echo "$ac_cv_var_mcast" >&6; } 23544case "$ac_cv_var_mcast" in 23545 yes) 23546 23547$as_echo "#define MCAST 1" >>confdefs.h 23548 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5 23550$as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; } 23551if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then : 23552 $as_echo_n "(cached) " >&6 23553else 23554 case "$host" in 23555 *-*-netbsd*|*-*-*linux*) 23556 ac_cv_var_typeof_ip_multicast_loop=u_int 23557 ;; 23558 *-*-winnt*) 23559 ac_cv_var_typeof_ip_multicast_loop=BOOL 23560 ;; 23561 *) ac_cv_var_typeof_ip_multicast_loop=u_char 23562 ;; 23563 esac 23564fi 23565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5 23566$as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; } 23567 23568cat >>confdefs.h <<_ACEOF 23569#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop 23570_ACEOF 23571 23572 ;; 23573esac 23574 23575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 23576$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 23577if test "${ac_cv_var_ntp_syscalls+set}" = set; then : 23578 $as_echo_n "(cached) " >&6 23579else 23580 ac_cv_var_ntp_syscalls=no 23581 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 23582 yesyes*) 23583 ac_cv_var_ntp_syscalls=libc 23584 ;; 23585 *yes) 23586 ac_cv_var_ntp_syscalls=inline 23587 ;; 23588 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23589/* end confdefs.h. */ 23590#include <sys/syscall.h> 23591#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) 23592 yes 23593#endif 23594 23595_ACEOF 23596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23597 $EGREP "yes" >/dev/null 2>&1; then : 23598 ac_cv_var_ntp_syscalls=kernel 23599fi 23600rm -f conftest* 23601 23602 ;; 23603 esac 23604fi 23605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5 23606$as_echo "$ac_cv_var_ntp_syscalls" >&6; } 23607case "$ac_cv_var_ntp_syscalls" in 23608 libc) 23609 23610$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 23611 23612 ;; 23613 kernel) 23614 23615$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 23616 23617 ;; 23618 *) 23619 ;; 23620esac 23621 23622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 23623$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 23624if test "${ac_cv_var_sta_fll+set}" = set; then : 23625 $as_echo_n "(cached) " >&6 23626else 23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23628/* end confdefs.h. */ 23629#include <sys/timex.h> 23630#ifdef STA_FLL 23631 yes 23632#endif 23633 23634_ACEOF 23635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23636 $EGREP "yes" >/dev/null 2>&1; then : 23637 ac_cv_var_sta_fll=yes 23638else 23639 ac_cv_var_sta_fll=no 23640fi 23641rm -f conftest* 23642 23643fi 23644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5 23645$as_echo "$ac_cv_var_sta_fll" >&6; } 23646 23647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 23648$as_echo_n "checking if we have kernel PLL support... " >&6; } 23649if test "${ac_cv_var_kernel_pll+set}" = set; then : 23650 $as_echo_n "(cached) " >&6 23651else 23652 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in 23653 *no*) 23654 ac_cv_var_kernel_pll=no 23655 ;; 23656 *) ac_cv_var_kernel_pll=yes 23657 ;; 23658esac 23659fi 23660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5 23661$as_echo "$ac_cv_var_kernel_pll" >&6; } 23662case "$ac_cv_var_kernel_pll" in 23663 yes) 23664 23665$as_echo "#define KERNEL_PLL 1" >>confdefs.h 23666 23667 ;; 23668esac 23669 23670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 23671$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 23672if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then : 23673 $as_echo_n "(cached) " >&6 23674else 23675 ans=no 23676 case "$host" in 23677 *-fujitsu-uxp*) 23678 ans=yes 23679 ;; 23680 *-ncr-sysv4*) 23681 ans=yes 23682 ;; 23683 *-univel-sysv*) 23684 ans=yes 23685 ;; 23686 esac 23687 ac_cv_var_size_returned_in_buffer=$ans 23688fi 23689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5 23690$as_echo "$ac_cv_var_size_returned_in_buffer" >&6; } 23691case "$ac_cv_var_size_returned_in_buffer" in 23692 yes) 23693$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 23694 ;; 23695esac 23696 23697 23698# Check for ioctls TIOCGPPSEV 23699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5 23700$as_echo_n "checking ioctl TIOCGPPSEV... " >&6; } 23701if test "$ac_cv_header_termios_h" = "yes"; then 23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23703/* end confdefs.h. */ 23704#include <termios.h> 23705#ifdef TIOCGPPSEV 23706 yes 23707#endif 23708 23709_ACEOF 23710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23711 $EGREP "yes" >/dev/null 2>&1; then : 23712 ntp_ok=yes 23713else 23714 ntp_ok=no 23715fi 23716rm -f conftest* 23717 23718else 23719ntp_ok=no 23720fi 23721if test "$ntp_ok" = "yes"; then 23722 23723$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 23724 23725 ac_cv_var_oncore_ok=yes 23726fi 23727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23728$as_echo "$ntp_ok" >&6; } 23729 23730# Check for ioctls TIOCSPPS 23731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5 23732$as_echo_n "checking ioctl TIOCSPPS... " >&6; } 23733if test "$ac_cv_header_termios_h" = "yes"; then 23734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23735/* end confdefs.h. */ 23736#include <termios.h> 23737#ifdef TIOCSPPS 23738 yes 23739#endif 23740 23741_ACEOF 23742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23743 $EGREP "yes" >/dev/null 2>&1; then : 23744 ntp_ok=yes 23745else 23746 ntp_ok=no 23747fi 23748rm -f conftest* 23749 23750else 23751 ntp_ok=no 23752fi 23753 23754if test "$ntp_ok" = "yes"; then 23755 23756$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 23757 23758fi 23759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23760$as_echo "$ntp_ok" >&6; } 23761 23762# Check for ioctls CIOGETEV 23763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5 23764$as_echo_n "checking ioctl CIOGETEV... " >&6; } 23765if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then 23766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23767/* end confdefs.h. */ 23768#include <sys/ppsclock.h> 23769#ifdef CIOGETEV 23770 yes 23771#endif 23772 23773_ACEOF 23774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23775 $EGREP "yes" >/dev/null 2>&1; then : 23776 ntp_ok=yes 23777else 23778 ntp_ok=no 23779fi 23780rm -f conftest* 23781 23782else 23783ntp_ok=no 23784fi 23785if test "$ntp_ok" = "yes"; then 23786 ac_cv_var_oncore_ok=yes 23787 23788$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 23789 23790fi 23791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23792$as_echo "$ntp_ok" >&6; } 23793 23794 23795# ATOM/PPSAPI stuff. 23796 23797# ATOM used to require struct timespec, but that's been fixed now. 23798 23799# case "$ac_cv_struct_timespec" in 23800# 'yes') 23801# ac_cv_var_atom_ok=yes 23802# ;; 23803# esac 23804ac_cv_var_atom_ok=yes 23805 23806# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 23807 23808# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 23809 23810# The PPSAPI needs struct timespec. 23811 23812# The PPSAPI also needs a timepps header. 23813 23814case "$ac_cv_c_inline$ac_cv_struct_timespec" in 23815 inlineyes) 23816 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 23817 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 23818 23819$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 23820 23821 ac_cv_var_jupiter_ok=yes 23822 ac_cv_var_oncore_ok=yes 23823 ac_cv_var_parse_ok=yes 23824 ac_cv_var_ripe_ncc_ok=yes 23825 ;; 23826 esac 23827 ;; 23828esac 23829 23830# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 23831ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 23832if test "x$ac_cv_header_linux_serial_h" = x""yes; then : 23833 23834fi 23835 23836 23837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 23838$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 23839case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 23840 yesyes) 23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23842/* end confdefs.h. */ 23843#include <sys/time.h> 23844typedef int u_int; 23845 23846#include <sys/ppsclock.h> 23847#include <linux/serial.h> 23848 23849#ifdef TIOCGSERIAL 23850#ifdef TIOCSSERIAL 23851#ifdef ASYNC_PPS_CD_POS 23852#ifdef ASYNC_PPS_CD_NEG 23853#ifdef CIOGETEV 23854 yes 23855#endif 23856#endif 23857#endif 23858#endif 23859#endif 23860 23861_ACEOF 23862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23863 $EGREP "yes" >/dev/null 2>&1; then : 23864 ntp_ok=yes 23865fi 23866rm -f conftest* 23867 23868 ;; 23869 *) 23870 ntp_ok=no 23871 ;; 23872esac 23873if test "$ntp_ok" = "yes"; then 23874 23875$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 23876 23877fi 23878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23879$as_echo "$ntp_ok" >&6; } 23880 23881# Check for SHMEM_STATUS support 23882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 23883$as_echo_n "checking SHMEM_STATUS support... " >&6; } 23884case "$ac_cv_header_sys_mman_h" in 23885 yes) ntp_ok=yes ;; 23886 *) ntp_ok=no ;; 23887esac 23888if test "$ntp_ok" = "yes"; then 23889 23890$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 23891 23892fi 23893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23894$as_echo "$ntp_ok" >&6; } 23895 23896 23897ntp_refclock=no 23898 23899# HPUX only, and by explicit request 23900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 23901$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 23902# Check whether --enable-BANCOMM was given. 23903if test "${enable_BANCOMM+set}" = set; then : 23904 enableval=$enable_BANCOMM; ntp_ok=$enableval 23905else 23906 ntp_ok=no 23907fi 23908 23909if test "$ntp_ok" = "yes"; then 23910 ntp_refclock=yes 23911 23912$as_echo "#define CLOCK_BANC 1" >>confdefs.h 23913 23914fi 23915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23916$as_echo "$ntp_ok" >&6; } 23917case "$ntp_ok$host" in 23918 yes*-*-hpux*) ;; 23919 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23920$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23921esac 23922 23923#HPUX only, and only by explicit request 23924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 23925$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 23926# Check whether --enable-GPSVME was given. 23927if test "${enable_GPSVME+set}" = set; then : 23928 enableval=$enable_GPSVME; ntp_ok=$enableval 23929else 23930 ntp_ok=no 23931fi 23932 23933if test "$ntp_ok" = "yes"; then 23934 ntp_refclock=yes 23935 23936$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 23937 23938fi 23939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23940$as_echo "$ntp_ok" >&6; } 23941case "$ntp_ok$host" in 23942 yes*-*-hpux*) ;; 23943 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23944$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23945esac 23946 23947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 23948$as_echo_n "checking for PCL720 clock support... " >&6; } 23949case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 23950 yesyesyes) 23951 23952$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 23953 23954 ans=yes 23955 ;; 23956 *) 23957 ans=no 23958 ;; 23959esac 23960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23961$as_echo "$ans" >&6; } 23962 23963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 23964$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 23965# Check whether --enable-all-clocks was given. 23966if test "${enable_all_clocks+set}" = set; then : 23967 enableval=$enable_all_clocks; ntp_eac=$enableval 23968else 23969 ntp_eac=yes 23970fi 23971 23972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 23973$as_echo "$ntp_eac" >&6; } 23974 23975# HMS: Should we also require ac_cv_var_parse_ok? 23976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 23977$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 23978case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 23979 yes*yes*) 23980 ntp_canparse=yes 23981 ;; 23982 *) ntp_canparse=no 23983 ;; 23984esac 23985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 23986$as_echo "$ntp_canparse" >&6; } 23987 23988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 23989$as_echo_n "checking if we have support for audio clocks... " >&6; } 23990case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 23991 *yes*) 23992 ntp_canaudio=yes 23993 23994$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 23995 23996 ;; 23997 *) ntp_canaudio=no ;; 23998esac 23999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 24000$as_echo "$ntp_canaudio" >&6; } 24001 24002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 24003$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 24004case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 24005 yesyes) 24006 ntp_canshm=yes 24007 ;; 24008 *) ntp_canshm=no ;; 24009esac 24010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 24011$as_echo "$ntp_canshm" >&6; } 24012 24013# Requires modem control 24014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 24015$as_echo_n "checking ACTS modem service... " >&6; } 24016# Check whether --enable-ACTS was given. 24017if test "${enable_ACTS+set}" = set; then : 24018 enableval=$enable_ACTS; ntp_ok=$enableval 24019else 24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24021/* end confdefs.h. */ 24022#include <termios.h> 24023#ifdef HAVE_SYS_IOCTL_H 24024#include <sys/ioctl.h> 24025#endif 24026#ifdef TIOCMBIS 24027 yes 24028#endif 24029 24030_ACEOF 24031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24032 $EGREP "yes" >/dev/null 2>&1; then : 24033 ntp_ok=$ntp_eac 24034else 24035 ntp_ok=no 24036fi 24037rm -f conftest* 24038 24039fi 24040 24041if test "$ntp_ok" = "yes"; then 24042 ntp_refclock=yes 24043 24044$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 24045 24046fi 24047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24048$as_echo "$ntp_ok" >&6; } 24049 24050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 24051$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 24052# Check whether --enable-ARBITER was given. 24053if test "${enable_ARBITER+set}" = set; then : 24054 enableval=$enable_ARBITER; ntp_ok=$enableval 24055else 24056 ntp_ok=$ntp_eac 24057fi 24058 24059if test "$ntp_ok" = "yes"; then 24060 ntp_refclock=yes 24061 24062$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 24063 24064fi 24065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24066$as_echo "$ntp_ok" >&6; } 24067 24068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 24069$as_echo_n "checking Arcron MSF receiver... " >&6; } 24070# Check whether --enable-ARCRON_MSF was given. 24071if test "${enable_ARCRON_MSF+set}" = set; then : 24072 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 24073else 24074 ntp_ok=$ntp_eac 24075fi 24076 24077if test "$ntp_ok" = "yes"; then 24078 ntp_refclock=yes 24079 24080$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 24081 24082fi 24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24084$as_echo "$ntp_ok" >&6; } 24085 24086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 24087$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 24088# Check whether --enable-AS2201 was given. 24089if test "${enable_AS2201+set}" = set; then : 24090 enableval=$enable_AS2201; ntp_ok=$enableval 24091else 24092 ntp_ok=$ntp_eac 24093fi 24094 24095if test "$ntp_ok" = "yes"; then 24096 ntp_refclock=yes 24097 24098$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 24099 24100fi 24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24102$as_echo "$ntp_ok" >&6; } 24103 24104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 24105$as_echo_n "checking ATOM PPS interface... " >&6; } 24106# Check whether --enable-ATOM was given. 24107if test "${enable_ATOM+set}" = set; then : 24108 enableval=$enable_ATOM; ntp_ok=$enableval 24109else 24110 ntp_ok=$ntp_eac 24111fi 24112 24113case "$ac_cv_var_atom_ok" in 24114 no) ntp_ok=no ;; 24115esac 24116if test "$ntp_ok" = "yes"; then 24117 ntp_refclock=yes 24118 24119$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 24120 24121fi 24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24123$as_echo "$ntp_ok" >&6; } 24124 24125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 24126$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 24127# Check whether --enable-CHRONOLOG was given. 24128if test "${enable_CHRONOLOG+set}" = set; then : 24129 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 24130else 24131 ntp_ok=$ntp_eac 24132fi 24133 24134if test "$ntp_ok" = "yes"; then 24135 ntp_refclock=yes 24136 24137$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 24138 24139fi 24140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24141$as_echo "$ntp_ok" >&6; } 24142 24143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 24144$as_echo_n "checking CHU modem/decoder... " >&6; } 24145# Check whether --enable-CHU was given. 24146if test "${enable_CHU+set}" = set; then : 24147 enableval=$enable_CHU; ntp_ok=$enableval 24148else 24149 ntp_ok=$ntp_eac 24150fi 24151 24152if test "$ntp_ok" = "yes"; then 24153 ntp_refclock=yes 24154 24155$as_echo "#define CLOCK_CHU 1" >>confdefs.h 24156 24157fi 24158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24159$as_echo "$ntp_ok" >&6; } 24160ac_refclock_chu=$ntp_ok 24161 24162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 24163$as_echo_n "checking CHU audio/decoder... " >&6; } 24164# Check whether --enable-AUDIO-CHU was given. 24165if test "${enable_AUDIO_CHU+set}" = set; then : 24166 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 24167else 24168 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in 24169 *no*) ntp_ok=no ;; 24170 *) ntp_ok=yes ;; 24171esac 24172fi 24173 24174if test "$ntp_ok" = "yes"; then 24175 24176$as_echo "#define AUDIO_CHU 1" >>confdefs.h 24177 24178fi 24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24180$as_echo "$ntp_ok" >&6; } 24181# We used to check for sunos/solaris target... 24182case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in 24183 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 24184$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;; 24185esac 24186 24187# Not under HP-UX 24188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 24189$as_echo_n "checking Datum Programmable Time System... " >&6; } 24190# Check whether --enable-DATUM was given. 24191if test "${enable_DATUM+set}" = set; then : 24192 enableval=$enable_DATUM; ntp_ok=$enableval 24193else 24194 case "$ac_cv_header_termios_h" in 24195 yes) 24196 ntp_ok=$ntp_eac 24197 ;; 24198 *) ntp_ok=no 24199 ;; 24200 esac 24201fi 24202 24203if test "$ntp_ok" = "yes"; then 24204 ntp_refclock=yes 24205 24206$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 24207 24208fi 24209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24210$as_echo "$ntp_ok" >&6; } 24211 24212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 24213$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 24214# Check whether --enable-DUMBCLOCK was given. 24215if test "${enable_DUMBCLOCK+set}" = set; then : 24216 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 24217else 24218 ntp_ok=$ntp_eac 24219fi 24220 24221if test "$ntp_ok" = "yes"; then 24222 ntp_refclock=yes 24223 24224$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 24225 24226fi 24227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24228$as_echo "$ntp_ok" >&6; } 24229 24230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 24231$as_echo_n "checking Forum Graphic GPS... " >&6; } 24232# Check whether --enable-FG was given. 24233if test "${enable_FG+set}" = set; then : 24234 enableval=$enable_FG; ntp_ok=$enableval 24235else 24236 ntp_ok=$ntp_eac 24237fi 24238 24239if test "$ntp_ok" = "yes"; then 24240 ntp_refclock=yes 24241 24242$as_echo "#define CLOCK_FG 1" >>confdefs.h 24243 24244fi 24245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24246$as_echo "$ntp_ok" >&6; } 24247 24248# Requires modem control 24249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 24250$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 24251# Check whether --enable-HEATH was given. 24252if test "${enable_HEATH+set}" = set; then : 24253 enableval=$enable_HEATH; ntp_ok=$enableval 24254else 24255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24256/* end confdefs.h. */ 24257#include <termios.h> 24258#ifdef HAVE_SYS_IOCTL_H 24259#include <sys/ioctl.h> 24260#endif 24261#ifdef TIOCMBIS 24262 yes 24263#endif 24264 24265_ACEOF 24266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24267 $EGREP "yes" >/dev/null 2>&1; then : 24268 ntp_ok=$ntp_eac 24269else 24270 ntp_ok=no 24271fi 24272rm -f conftest* 24273 24274fi 24275 24276if test "$ntp_ok" = "yes"; then 24277 ntp_refclock=yes 24278 24279$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 24280 24281fi 24282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24283$as_echo "$ntp_ok" >&6; } 24284 24285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 24286$as_echo_n "checking for hopf serial clock device... " >&6; } 24287# Check whether --enable-HOPFSERIAL was given. 24288if test "${enable_HOPFSERIAL+set}" = set; then : 24289 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 24290else 24291 ntp_ok=$ntp_eac 24292fi 24293 24294if test "$ntp_ok" = "yes"; then 24295 ntp_refclock=yes 24296 24297$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 24298 24299fi 24300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24301$as_echo "$ntp_ok" >&6; } 24302 24303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 24304$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 24305# Check whether --enable-HOPFPCI was given. 24306if test "${enable_HOPFPCI+set}" = set; then : 24307 enableval=$enable_HOPFPCI; ntp_ok=$enableval 24308else 24309 ntp_ok=$ntp_eac 24310fi 24311 24312if test "$ntp_ok" = "yes"; then 24313 ntp_refclock=yes 24314 24315$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 24316 24317fi 24318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24319$as_echo "$ntp_ok" >&6; } 24320 24321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 24322$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 24323# Check whether --enable-HPGPS was given. 24324if test "${enable_HPGPS+set}" = set; then : 24325 enableval=$enable_HPGPS; ntp_ok=$enableval 24326else 24327 ntp_ok=$ntp_eac 24328fi 24329 24330if test "$ntp_ok" = "yes"; then 24331 ntp_refclock=yes 24332 24333$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 24334 24335fi 24336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24337$as_echo "$ntp_ok" >&6; } 24338 24339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 24340$as_echo_n "checking IRIG audio decoder... " >&6; } 24341# Check whether --enable-IRIG was given. 24342if test "${enable_IRIG+set}" = set; then : 24343 enableval=$enable_IRIG; ntp_ok=$enableval 24344else 24345 case "$ntp_eac$ntp_canaudio" in 24346 *no*) ntp_ok=no ;; 24347 *) ntp_ok=yes ;; 24348 esac 24349fi 24350 24351if test "$ntp_ok" = "yes"; then 24352 ntp_refclock=yes 24353 24354$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 24355 24356fi 24357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24358$as_echo "$ntp_ok" >&6; } 24359case "$ntp_ok$ntp_canaudio" in 24360 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 24361$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 24362esac 24363 24364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 24365$as_echo_n "checking for JJY receiver... " >&6; } 24366# Check whether --enable-JJY was given. 24367if test "${enable_JJY+set}" = set; then : 24368 enableval=$enable_JJY; ntp_ok=$enableval 24369else 24370 ntp_ok=$ntp_eac 24371fi 24372 24373if test "$ntp_ok" = "yes"; then 24374 ntp_refclock=yes 24375 24376$as_echo "#define CLOCK_JJY 1" >>confdefs.h 24377 24378fi 24379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24380$as_echo "$ntp_ok" >&6; } 24381 24382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 24383$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 24384# Check whether --enable-JUPITER was given. 24385if test "${enable_JUPITER+set}" = set; then : 24386 enableval=$enable_JUPITER; ntp_ok=$enableval 24387else 24388 ntp_ok=$ntp_eac 24389fi 24390 24391case "$ac_cv_var_jupiter_ok" in 24392 no) ntp_ok=no ;; 24393esac 24394if test "$ntp_ok" = "yes"; then 24395 ntp_refclock=yes 24396 24397$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 24398 24399fi 24400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24401$as_echo "$ntp_ok" >&6; } 24402 24403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 24404$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 24405# Check whether --enable-LEITCH was given. 24406if test "${enable_LEITCH+set}" = set; then : 24407 enableval=$enable_LEITCH; ntp_ok=$enableval 24408else 24409 ntp_ok=$ntp_eac 24410fi 24411 24412if test "$ntp_ok" = "yes"; then 24413 ntp_refclock=yes 24414 24415$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 24416 24417fi 24418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24419$as_echo "$ntp_ok" >&6; } 24420 24421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 24422$as_echo_n "checking local clock reference... " >&6; } 24423# Check whether --enable-LOCAL-CLOCK was given. 24424if test "${enable_LOCAL_CLOCK+set}" = set; then : 24425 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 24426else 24427 ntp_ok=$ntp_eac 24428fi 24429 24430if test "$ntp_ok" = "yes"; then 24431 ntp_refclock=yes 24432 24433$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 24434 24435fi 24436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24437$as_echo "$ntp_ok" >&6; } 24438 24439 24440# Not Ultrix 24441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 24442$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 24443# Check whether --enable-MX4200 was given. 24444if test "${enable_MX4200+set}" = set; then : 24445 enableval=$enable_MX4200; ntp_ok=$enableval 24446else 24447 case "$ac_cv_var_ppsclock" in 24448 yes) ntp_ok=$ntp_eac 24449 ;; 24450 *) ntp_ok=no 24451 ;; 24452 esac 24453fi 24454 24455if test "$ntp_ok" = "yes"; then 24456 ntp_refclock=yes 24457 24458$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 24459 24460fi 24461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24462$as_echo "$ntp_ok" >&6; } 24463case "$ntp_ok$host" in 24464 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 24465$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 24466esac 24467 24468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 24469$as_echo_n "checking for NeoClock4X receiver... " >&6; } 24470# Check whether --enable-NEOCLOCK4X was given. 24471if test "${enable_NEOCLOCK4X+set}" = set; then : 24472 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 24473else 24474 ntp_ok=$ntp_eac 24475fi 24476 24477if test "$ntp_ok" = "yes"; then 24478 ntp_refclock=yes 24479 24480$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 24481 24482fi 24483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24484$as_echo "$ntp_ok" >&6; } 24485 24486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 24487$as_echo_n "checking NMEA GPS receiver... " >&6; } 24488# Check whether --enable-NMEA was given. 24489if test "${enable_NMEA+set}" = set; then : 24490 enableval=$enable_NMEA; ntp_ok=$enableval 24491else 24492 ntp_ok=$ntp_eac 24493fi 24494 24495if test "$ntp_ok" = "yes"; then 24496 ntp_refclock=yes 24497 24498$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 24499 24500fi 24501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24502$as_echo "$ntp_ok" >&6; } 24503 24504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 24505$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 24506# Check whether --enable-ONCORE was given. 24507if test "${enable_ONCORE+set}" = set; then : 24508 enableval=$enable_ONCORE; ntp_ok=$enableval 24509else 24510 ntp_ok=$ntp_eac 24511fi 24512 24513case "$ac_cv_var_oncore_ok" in 24514 no) ntp_ok=no ;; 24515esac 24516if test "$ntp_ok" = "yes"; then 24517 ntp_refclock=yes 24518 24519$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 24520 24521fi 24522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24523$as_echo "$ntp_ok" >&6; } 24524 24525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 24526$as_echo_n "checking for Palisade clock... " >&6; } 24527# Check whether --enable-PALISADE was given. 24528if test "${enable_PALISADE+set}" = set; then : 24529 enableval=$enable_PALISADE; ntp_ok=$enableval 24530else 24531 case "$ac_cv_header_termios_h" in 24532 yes) 24533 ntp_ok=$ntp_eac 24534 ;; 24535 *) ntp_ok=no 24536 ;; 24537 esac 24538fi 24539 24540 24541if test "$ntp_ok" = "yes"; then 24542 ntp_refclock=yes 24543 24544$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 24545 24546fi 24547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24548$as_echo "$ntp_ok" >&6; } 24549 24550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 24551$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 24552# Check whether --enable-PCF was given. 24553if test "${enable_PCF+set}" = set; then : 24554 enableval=$enable_PCF; ntp_ok=$enableval 24555else 24556 ntp_ok=$ntp_eac 24557fi 24558 24559if test "$ntp_ok" = "yes"; then 24560 ntp_refclock=yes 24561 24562$as_echo "#define CLOCK_PCF 1" >>confdefs.h 24563 24564fi 24565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24566$as_echo "$ntp_ok" >&6; } 24567 24568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 24569$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 24570# Check whether --enable-PST was given. 24571if test "${enable_PST+set}" = set; then : 24572 enableval=$enable_PST; ntp_ok=$enableval 24573else 24574 ntp_ok=$ntp_eac 24575fi 24576 24577if test "$ntp_ok" = "yes"; then 24578 ntp_refclock=yes 24579 24580$as_echo "#define CLOCK_PST 1" >>confdefs.h 24581 24582fi 24583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24584$as_echo "$ntp_ok" >&6; } 24585 24586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 24587$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 24588# Check whether --enable-RIPENCC was given. 24589if test "${enable_RIPENCC+set}" = set; then : 24590 enableval=$enable_RIPENCC; ntp_ok=$enableval 24591else 24592 ntp_ok=no 24593fi 24594 24595# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 24596case "$ac_cv_var_ripe_ncc_ok" in 24597 no) ntp_ok=no ;; 24598esac 24599if test "$ntp_ok" = "yes"; then 24600 ntp_refclock=yes 24601 24602$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 24603 24604fi 24605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24606$as_echo "$ntp_ok" >&6; } 24607 24608# Danny Meyer says SHM compiles (with a few warnings) under Win32. 24609# For *IX, we need sys/ipc.h and sys/shm.h. 24610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 24611$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 24612# Check whether --enable-SHM was given. 24613if test "${enable_SHM+set}" = set; then : 24614 enableval=$enable_SHM; ntp_ok=$enableval 24615else 24616 case "$ntp_eac$ntp_canshm" in 24617 *no*) ntp_ok=no ;; 24618 *) ntp_ok=yes ;; 24619esac 24620fi 24621 24622if test "$ntp_ok" = "yes"; then 24623 ntp_refclock=yes 24624 24625$as_echo "#define CLOCK_SHM 1" >>confdefs.h 24626 24627fi 24628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24629$as_echo "$ntp_ok" >&6; } 24630 24631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 24632$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 24633# Check whether --enable-SPECTRACOM was given. 24634if test "${enable_SPECTRACOM+set}" = set; then : 24635 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 24636else 24637 ntp_ok=$ntp_eac 24638fi 24639 24640if test "$ntp_ok" = "yes"; then 24641 ntp_refclock=yes 24642 24643$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 24644 24645fi 24646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24647$as_echo "$ntp_ok" >&6; } 24648 24649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 24650$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 24651# Check whether --enable-TPRO was given. 24652if test "${enable_TPRO+set}" = set; then : 24653 enableval=$enable_TPRO; ntp_ok=$enableval 24654else 24655 case "$ac_cv_header_sys_tpro_h" in 24656 yes) 24657 ntp_ok=$ntp_eac 24658 ;; 24659 *) ntp_ok=no 24660 ;; 24661 esac 24662fi 24663 24664if test "$ntp_ok" = "yes"; then 24665 ntp_refclock=yes 24666 24667$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 24668 24669fi 24670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24671$as_echo "$ntp_ok" >&6; } 24672case "$ntp_ok$ac_cv_header_sys_tpro" in 24673 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 24674$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 24675esac 24676 24677 24678# Not on a vax-dec-bsd 24679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 24680$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 24681# Check whether --enable-TRUETIME was given. 24682if test "${enable_TRUETIME+set}" = set; then : 24683 enableval=$enable_TRUETIME; ntp_ok=$enableval 24684else 24685 case "$host" in 24686 vax-dec-bsd) 24687 ntp_ok=no 24688 ;; 24689 *) 24690 ntp_ok=$ntp_eac 24691 ;; 24692 esac 24693fi 24694 24695 24696if test "$ntp_ok" = "yes"; then 24697 ntp_refclock=yes 24698 24699$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 24700 24701fi 24702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24703$as_echo "$ntp_ok" >&6; } 24704case "$ntp_ok$host" in 24705 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 24706$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 24707esac 24708 24709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 24710$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 24711# Check whether --enable-TT560 was given. 24712if test "${enable_TT560+set}" = set; then : 24713 enableval=$enable_TT560; ntp_ok=$enableval 24714else 24715 ntp_ok=no 24716fi 24717 24718if test "$ntp_ok" = "yes"; then 24719 ntp_refclock=yes 24720 24721$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 24722 24723fi 24724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24725$as_echo "$ntp_ok" >&6; } 24726 24727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 24728$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 24729# Check whether --enable-ULINK was given. 24730if test "${enable_ULINK+set}" = set; then : 24731 enableval=$enable_ULINK; ntp_ok=$enableval 24732else 24733 ntp_ok=$ntp_eac 24734fi 24735 24736if test "$ntp_ok" = "yes"; then 24737 ntp_refclock=yes 24738 24739$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 24740 24741fi 24742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24743$as_echo "$ntp_ok" >&6; } 24744 24745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 24746$as_echo_n "checking WWV receiver... " >&6; } 24747# Check whether --enable-WWV was given. 24748if test "${enable_WWV+set}" = set; then : 24749 enableval=$enable_WWV; ntp_ok=$enableval 24750else 24751 case "$ntp_eac$ntp_canaudio" in 24752 *no*) ntp_ok=no ;; 24753 *) ntp_ok=yes ;; 24754 esac 24755fi 24756 24757if test "$ntp_ok" = "yes"; then 24758 ntp_refclock=yes 24759 24760$as_echo "#define CLOCK_WWV 1" >>confdefs.h 24761 24762fi 24763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24764$as_echo "$ntp_ok" >&6; } 24765case "$ntp_ok$ntp_canaudio" in 24766 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 24767$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 24768esac 24769 24770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 24771$as_echo_n "checking for Zyfer receiver... " >&6; } 24772# Check whether --enable-ZYFER was given. 24773if test "${enable_ZYFER+set}" = set; then : 24774 enableval=$enable_ZYFER; ntp_ok=$enableval 24775else 24776 ntp_ok=$ntp_eac 24777fi 24778 24779if test "$ntp_ok" = "yes"; then 24780 ntp_refclock=yes 24781 24782$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 24783 24784fi 24785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24786$as_echo "$ntp_ok" >&6; } 24787 24788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 24789$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 24790# Check whether --enable-parse-clocks was given. 24791if test "${enable_parse_clocks+set}" = set; then : 24792 enableval=$enable_parse_clocks; ntp_eapc=$enableval 24793else 24794 case "$ntp_eac" in 24795 yes) ntp_eapc=$ntp_canparse ;; 24796 *) ntp_eapc=no ;; 24797 esac 24798 # Delete the next line one of these days 24799 ntp_eapc=no 24800fi 24801 24802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 24803$as_echo "$ntp_eapc" >&6; } 24804 24805case "$ntp_eac$ntp_eapc$ntp_canparse" in 24806 noyes*) 24807 as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 24808 ;; 24809 yesyesno) 24810 as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 24811 ;; 24812 *) ;; 24813esac 24814 24815ntp_libparse=no 24816ntp_parseutil=no 24817ntp_rawdcf=no 24818 24819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 24820$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 24821# Check whether --enable-COMPUTIME was given. 24822if test "${enable_COMPUTIME+set}" = set; then : 24823 enableval=$enable_COMPUTIME; ntp_ok=$enableval 24824else 24825 ntp_ok=$ntp_eapc 24826fi 24827 24828if test "$ntp_ok" = "yes"; then 24829 ntp_libparse=yes 24830 ntp_refclock=yes 24831 24832$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 24833 24834fi 24835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24836$as_echo "$ntp_ok" >&6; } 24837case "$ntp_ok$ntp_canparse" in 24838 yesno) 24839 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24840 ;; 24841esac 24842 24843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 24844$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 24845# Check whether --enable-DCF7000 was given. 24846if test "${enable_DCF7000+set}" = set; then : 24847 enableval=$enable_DCF7000; ntp_ok=$enableval 24848else 24849 ntp_ok=$ntp_eapc 24850fi 24851 24852if test "$ntp_ok" = "yes"; then 24853 ntp_libparse=yes 24854 ntp_refclock=yes 24855 24856$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 24857 24858fi 24859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24860$as_echo "$ntp_ok" >&6; } 24861case "$ntp_ok$ntp_canparse" in 24862 yesno) 24863 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24864 ;; 24865esac 24866 24867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 24868$as_echo_n "checking HOPF 6021 clock... " >&6; } 24869# Check whether --enable-HOPF6021 was given. 24870if test "${enable_HOPF6021+set}" = set; then : 24871 enableval=$enable_HOPF6021; ntp_ok=$enableval 24872else 24873 ntp_ok=$ntp_eapc 24874fi 24875 24876if test "$ntp_ok" = "yes"; then 24877 ntp_libparse=yes 24878 ntp_refclock=yes 24879 24880$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 24881 24882fi 24883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24884$as_echo "$ntp_ok" >&6; } 24885case "$ntp_ok$ntp_canparse" in 24886 yesno) 24887 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24888 ;; 24889esac 24890 24891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 24892$as_echo_n "checking Meinberg clocks... " >&6; } 24893# Check whether --enable-MEINBERG was given. 24894if test "${enable_MEINBERG+set}" = set; then : 24895 enableval=$enable_MEINBERG; ntp_ok=$enableval 24896else 24897 ntp_ok=$ntp_eapc 24898fi 24899 24900if test "$ntp_ok" = "yes"; then 24901 ntp_libparse=yes 24902 ntp_refclock=yes 24903 24904$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 24905 24906fi 24907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24908$as_echo "$ntp_ok" >&6; } 24909case "$ntp_ok$ntp_canparse" in 24910 yesno) 24911 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24912 ;; 24913esac 24914 24915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 24916$as_echo_n "checking DCF77 raw time code... " >&6; } 24917# Check whether --enable-RAWDCF was given. 24918if test "${enable_RAWDCF+set}" = set; then : 24919 enableval=$enable_RAWDCF; ntp_ok=$enableval 24920else 24921 ntp_ok=$ntp_eapc 24922fi 24923 24924if test "$ntp_ok" = "yes"; then 24925 ntp_libparse=yes 24926 ntp_parseutil=yes 24927 ntp_refclock=yes 24928 ntp_rawdcf=yes 24929 24930$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 24931 24932fi 24933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24934$as_echo "$ntp_ok" >&6; } 24935case "$ntp_ok$ntp_canparse" in 24936 yesno) 24937 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24938 ;; 24939esac 24940 24941case "$ntp_rawdcf" in 24942 yes) 24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 24944$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 24945if test "${ac_cv_var_rawdcf_parity+set}" = set; then : 24946 $as_echo_n "(cached) " >&6 24947else 24948 ans=no 24949 case "$host" in 24950 *-*-*linux*) 24951 ans=yes 24952 ;; 24953 esac 24954 ac_cv_var_rawdcf_parity=$ans 24955fi 24956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5 24957$as_echo "$ac_cv_var_rawdcf_parity" >&6; } 24958 case "$ac_cv_var_rawdcf_parity" in 24959 yes) 24960$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 24961 ;; 24962 esac 24963 ;; 24964 24965 *) # HMS: Is this a good idea? 24966 ac_cv_var_rawdcf_parity=no 24967 ;; 24968esac 24969 24970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 24971$as_echo_n "checking RCC 8000 clock... " >&6; } 24972# Check whether --enable-RCC8000 was given. 24973if test "${enable_RCC8000+set}" = set; then : 24974 enableval=$enable_RCC8000; ntp_ok=$enableval 24975else 24976 ntp_ok=$ntp_eapc 24977fi 24978 24979if test "$ntp_ok" = "yes"; then 24980 ntp_libparse=yes 24981 ntp_refclock=yes 24982 24983$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 24984 24985fi 24986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 24987$as_echo "$ntp_ok" >&6; } 24988case "$ntp_ok$ntp_canparse" in 24989 yesno) 24990 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 24991 ;; 24992esac 24993 24994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 24995$as_echo_n "checking Schmid DCF77 clock... " >&6; } 24996# Check whether --enable-SCHMID was given. 24997if test "${enable_SCHMID+set}" = set; then : 24998 enableval=$enable_SCHMID; ntp_ok=$enableval 24999else 25000 ntp_ok=$ntp_eapc 25001fi 25002 25003if test "$ntp_ok" = "yes"; then 25004 ntp_libparse=yes 25005 ntp_refclock=yes 25006 25007$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 25008 25009fi 25010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25011$as_echo "$ntp_ok" >&6; } 25012case "$ntp_ok$ntp_canparse" in 25013 yesno) 25014 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 25015 ;; 25016esac 25017 25018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 25019$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 25020# Check whether --enable-TRIMTAIP was given. 25021if test "${enable_TRIMTAIP+set}" = set; then : 25022 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 25023else 25024 ntp_ok=$ntp_eapc 25025fi 25026 25027if test "$ntp_ok" = "yes"; then 25028 ntp_libparse=yes 25029 ntp_refclock=yes 25030 25031$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 25032 25033fi 25034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25035$as_echo "$ntp_ok" >&6; } 25036case "$ntp_ok$ntp_canparse" in 25037 yesno) 25038 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 25039 ;; 25040esac 25041 25042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 25043$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 25044# Check whether --enable-TRIMTSIP was given. 25045if test "${enable_TRIMTSIP+set}" = set; then : 25046 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 25047else 25048 ntp_ok=$ntp_eapc 25049fi 25050 25051if test "$ntp_ok" = "yes"; then 25052 ntp_libparse=yes 25053 ntp_refclock=yes 25054 25055$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 25056 25057fi 25058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25059$as_echo "$ntp_ok" >&6; } 25060case "$ntp_ok$ntp_canparse" in 25061 yesno) 25062 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 25063 ;; 25064esac 25065 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 25067$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 25068# Check whether --enable-WHARTON was given. 25069if test "${enable_WHARTON+set}" = set; then : 25070 enableval=$enable_WHARTON; ntp_ok=$enableval 25071else 25072 ntp_ok=$ntp_eapc 25073fi 25074 25075if test "$ntp_ok" = "yes"; then 25076 ntp_libparse=yes 25077 ntp_refclock=yes 25078 25079$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 25080 25081fi 25082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25083$as_echo "$ntp_ok" >&6; } 25084case "$ntp_ok$ntp_canparse" in 25085 yesno) 25086 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 25087 ;; 25088esac 25089 25090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 25091$as_echo_n "checking VARITEXT clock... " >&6; } 25092# Check whether --enable-VARITEXT was given. 25093if test "${enable_VARITEXT+set}" = set; then : 25094 enableval=$enable_VARITEXT; ntp_ok=$enableval 25095else 25096 ntp_ok=$ntp_eapc 25097fi 25098 25099if test "$ntp_ok" = "yes"; then 25100 ntp_libparse=yes 25101 ntp_refclock=yes 25102 25103$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 25104 25105fi 25106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25107$as_echo "$ntp_ok" >&6; } 25108case "$ntp_ok$ntp_canparse" in 25109 yesno) 25110 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 25111 ;; 25112esac 25113 25114 25115 25116 25117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 25118$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 25119ans=no 25120case "$ntp_libparse" in 25121 yes) 25122 ans=yes 25123 25124$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 25125 25126 LIBPARSE=../libparse/libparse.a 25127 MAKE_LIBPARSE=libparse.a 25128 # HMS: check_y2k trips the 34 year problem now... 25129 false && MAKE_CHECK_Y2K=check_y2k 25130 ;; 25131esac 25132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25133$as_echo "$ans" >&6; } 25134 25135 25136# AC_SUBST(RSAOBJS) 25137# AC_SUBST(RSASRCS) 25138# AC_SUBST(RSADIR) 25139# AC_SUBST(RSAREF) 25140# AC_SUBST(LIBRSAREF) 25141# AC_SUBST(MAKE_LIBRSAREF) 25142 25143 25144 25145 25146 25147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 25148$as_echo_n "checking for openssl library directory... " >&6; } 25149 25150# Check whether --with-openssl-libdir was given. 25151if test "${with_openssl_libdir+set}" = set; then : 25152 withval=$with_openssl_libdir; ans=$withval 25153else 25154 case "$build" in 25155 $host) ans=yes ;; 25156 *) ans=no ;; 25157esac 25158fi 25159 25160case "$ans" in 25161 no) ;; 25162 yes) # Look in: 25163 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib" 25164 ;; 25165 *) # Look where they said 25166 ;; 25167esac 25168case "$ans" in 25169 no) ;; 25170 *) # Look for libcrypto.a and libssl.a: 25171 for i in $ans no 25172 do 25173 case "$host" in 25174 *-*-darwin*) 25175 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 25176 ;; 25177 *) 25178 test -f $i/libcrypto.so -a -f $i/libssl.so && break 25179 test -f $i/libcrypto.a -a -f $i/libssl.a && break 25180 ;; 25181 esac 25182 done 25183 case "$i" in 25184 no) 25185 ans=no 25186 OPENSSL_LIB= 25187 ;; 25188 *) ans=$i 25189 OPENSSL_LIB=$ans 25190 ;; 25191 esac 25192 ;; 25193esac 25194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25195$as_echo "$ans" >&6; } 25196 25197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 25198$as_echo_n "checking for openssl include directory... " >&6; } 25199 25200# Check whether --with-openssl-incdir was given. 25201if test "${with_openssl_incdir+set}" = set; then : 25202 withval=$with_openssl_incdir; ans=$withval 25203else 25204 case "$build" in 25205 $host) ans=yes ;; 25206 *) ans=no ;; 25207esac 25208fi 25209 25210case "$ans" in 25211 no) ;; 25212 yes) # look in: 25213 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include" 25214 ;; 25215 *) # Look where they said 25216 ;; 25217esac 25218case "$ans" in 25219 no) ;; 25220 *) # look for openssl/opensslconf.h: 25221 for i in $ans no 25222 do 25223 test -f $i/openssl/opensslconf.h && break 25224 done 25225 case "$i" in 25226 no) 25227 ans=no 25228 OPENSSL_INC= 25229 ;; 25230 *) ans=$i 25231 OPENSSL_INC=$ans 25232 ;; 25233 esac 25234 ;; 25235esac 25236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25237$as_echo "$ans" >&6; } 25238 25239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 25240$as_echo_n "checking if we will use crypto... " >&6; } 25241 25242# Check whether --with-crypto was given. 25243if test "${with_crypto+set}" = set; then : 25244 withval=$with_crypto; ans=$withval 25245else 25246 ans=yes 25247fi 25248 25249case "$ans" in 25250 no) 25251 ;; 25252 yes|openssl) 25253 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC" 25254 then 25255 ans=no 25256 else 25257 ans=yes 25258 fi 25259esac 25260ntp_openssl=$ans 25261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25262$as_echo "$ans" >&6; } 25263 25264case "$ntp_openssl" in 25265 yes) 25266 # We have OpenSSL inc/lib - use them. 25267 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC" 25268 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB" 25269 case "$need_dash_r" in 25270 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB" 25271 esac 25272 LCRYPTO=-lcrypto 25273 25274 25275$as_echo "#define OPENSSL /**/" >>confdefs.h 25276 25277esac 25278 25279# 25280# OpenSSL has a number of callback prototypes inside other function 25281# prototypes which trigger copious warnings with -Wstrict-prototypes, 25282# (which is included in -Wall). 25283# 25284# An example: 25285# 25286# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 25287# int (*cb)(), int sgckey); 25288# ^^^^^^^^^^^ 25289# 25290# The OpenSSL headers probably haven't been fixed in this regard 25291# due to the hoops you have to jump through to stay compatible with 25292# K&R C compilers. 25293# 25294case "$GCC$ntp_openssl" in 25295 yesyes) 25296 CFLAGS="$CFLAGS -Wno-strict-prototypes" 25297esac 25298 25299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5 25300$as_echo_n "checking if we want to compile with ElectricFence... " >&6; } 25301 25302# Check whether --with-electricfence was given. 25303if test "${with_electricfence+set}" = set; then : 25304 withval=$with_electricfence; ans=$withval 25305else 25306 ans=no 25307fi 25308 25309case "$ans" in 25310 no) ;; 25311 *) 25312 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a" 25313 EF_PROGS="eftest tstheap" 25314 25315 EF_LIBS=libefence.a 25316 25317 ans=yes 25318 ;; 25319esac 25320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25321$as_echo "$ans" >&6; } 25322 25323 25324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 25325$as_echo_n "checking if we want to run check-layout... " >&6; } 25326case "$cross_compiling$PATH_PERL" in 25327 no/*) 25328 MAKE_CHECK_LAYOUT=check-layout 25329 ans=yes 25330 ;; 25331 *) 25332 ans=no 25333 ;; 25334esac 25335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25336$as_echo "$ans" >&6; } 25337 25338 25339 25340 25341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 25342$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 25343ans=no 25344if test "$ntp_parseutil" = "yes"; then 25345 case "$host" in 25346 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 25347 ans="dcfd testdcf" 25348 DCFD=dcfd 25349 TESTDCF=testdcf 25350 ;; 25351 esac 25352fi 25353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25354$as_echo "$ans" >&6; } 25355 25356 25357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 25358$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 25359ans=no 25360case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 25361 yesyes) 25362 case "$host" in 25363 sparc-*-sunos4*) 25364 case "$ac_cv_var_kernel_pll" in 25365 yes) 25366 25367$as_echo "#define PPS_SYNC 1" >>confdefs.h 25368 25369 ;; 25370 esac 25371 ans=parsestreams 25372 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 25373 ;; 25374 sparc-*-solaris2*) 25375 ans=parsesolaris 25376 MAKE_PARSEKMODULE=parse 25377 for ac_header in strings.h 25378do : 25379 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 25380if test "x$ac_cv_header_strings_h" = x""yes; then : 25381 cat >>confdefs.h <<_ACEOF 25382#define HAVE_STRINGS_H 1 25383_ACEOF 25384 25385fi 25386 25387done 25388 25389 ;; 25390 esac 25391 ;; 25392esac 25393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25394$as_echo "$ans" >&6; } 25395 25396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 25397$as_echo_n "checking if we need basic refclock support... " >&6; } 25398if test "$ntp_refclock" = "yes"; then 25399 25400$as_echo "#define REFCLOCK 1" >>confdefs.h 25401 25402fi 25403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 25404$as_echo "$ntp_refclock" >&6; } 25405 25406 25407 25408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 25409$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 25410case "$host" in 25411 *-*-hpux[56789]*) 25412 ans=yes 25413 ;; 25414 *) ans=no 25415 ;; 25416esac 25417if test "$ans" = "yes"; then 25418 MAKE_ADJTIMED=adjtimed 25419 25420$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 25421 25422fi 25423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25424$as_echo "$ans" >&6; } 25425 25426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 25427$as_echo_n "checking if we want QNX adjtime support... " >&6; } 25428case "$host" in 25429 *-*-qnx*) 25430 ans=yes 25431 ;; 25432 *) ans=no 25433 ;; 25434esac 25435if test "$ans" = "yes"; then 25436 25437$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 25438 25439fi 25440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25441$as_echo "$ans" >&6; } 25442 25443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 25444$as_echo_n "checking if we can read kmem... " >&6; } 25445 25446# the default is to enable it if the system has the capability 25447 25448case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 25449 *yes*) 25450 ans=yes 25451 ;; 25452 *) ans=no 25453esac 25454 25455case "$host" in 25456 *-*-domainos) # Won't be found... 25457 ans=no 25458 ;; 25459 *-*-hpux*) 25460 #ans=no 25461 ;; 25462 *-*-irix[456]*) 25463 ans=no 25464 ;; 25465 *-*-*linux*) 25466 ans=no 25467 ;; 25468 *-*-winnt3.5) 25469 ans=no 25470 ;; 25471 *-*-unicosmp*) 25472 ans=no 25473 ;; 25474esac 25475 25476# --enable-kmem / --disable-kmem controls if present 25477# Check whether --enable-kmem was given. 25478if test "${enable_kmem+set}" = set; then : 25479 enableval=$enable_kmem; ans=$enableval 25480 25481fi 25482 25483 25484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25485$as_echo "$ans" >&6; } 25486 25487case "$ans" in 25488 yes) 25489 can_kmem=yes 25490 ;; 25491 *) 25492 can_kmem=no 25493 25494$as_echo "#define NOKMEM 1" >>confdefs.h 25495 25496esac 25497 25498 25499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 25500$as_echo_n "checking if adjtime is accurate... " >&6; } 25501 25502# target-dependent defaults 25503 25504case "$host" in 25505 i386-sequent-ptx*) 25506 ans=no 25507 ;; 25508 i386-unknown-osf1*) 25509 ans=yes 25510 ;; 25511 mips-sgi-irix[456]*) 25512 ans=yes 25513 ;; 25514 *-fujitsu-uxp*) 25515 ans=yes 25516 ;; 25517 *-ibm-aix[456]*) 25518 ans=yes 25519 ;; 25520 *-*-*linux*) 25521 ans=yes 25522 ;; 25523 *-*-solaris2.[01]) 25524 ans=no 25525 ;; 25526 *-*-solaris2*) 25527 ans=yes 25528 ;; 25529 *-*-unicosmp*) 25530 ans=yes 25531 ;; 25532 *) ans=no 25533esac 25534 25535# --enable-accurate-adjtime / --disable-accurate-adjtime 25536# override the default 25537# Check whether --enable-accurate-adjtime was given. 25538if test "${enable_accurate_adjtime+set}" = set; then : 25539 enableval=$enable_accurate_adjtime; ans=$enableval 25540fi 25541 25542 25543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25544$as_echo "$ans" >&6; } 25545 25546case "$ans" in 25547 yes) 25548 25549$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 25550 25551 adjtime_is_accurate=yes 25552 ;; 25553 *) 25554 adjtime_is_accurate=no 25555esac 25556 25557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 25558$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 25559if test "${ac_cv_var_nlist_tick+set}" = set; then : 25560 $as_echo_n "(cached) " >&6 25561else 25562 ans=_tick 25563case "$host" in 25564 m68*-hp-hpux*) # HP9000/300? 25565 ans=_old_tick 25566 ;; 25567 *-apple-aux[23]*) 25568 ans=tick 25569 ;; 25570 *-hp-hpux*) 25571 ans=old_tick 25572 ;; 25573 *-ibm-aix[3456]*) 25574 ans=no 25575 ;; 25576 *-*-mpeix*) 25577 ans=no 25578 ;; 25579 *-*-ptx*) 25580 ans=tick 25581 ;; 25582 *-*-sco3.2v[45]*) 25583 ans=no 25584 ;; 25585 *-*-solaris2*) 25586 ans=nsec_per_tick 25587 ;; 25588 *-*-sysv4*) 25589 ans=tick 25590 ;; 25591esac 25592ac_cv_var_nlist_tick=$ans 25593fi 25594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5 25595$as_echo "$ac_cv_var_nlist_tick" >&6; } 25596case "$ac_cv_var_nlist_tick" in 25597 ''|no) ;; # HMS: I think we can only get 'no' here... 25598 *) 25599cat >>confdefs.h <<_ACEOF 25600#define K_TICK_NAME "$ac_cv_var_nlist_tick" 25601_ACEOF 25602 ;; 25603esac 25604# 25605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 25606$as_echo_n "checking for the units of 'tick'... " >&6; } 25607if test "${ac_cv_var_tick_nano+set}" = set; then : 25608 $as_echo_n "(cached) " >&6 25609else 25610 ans=usec 25611case "$host" in 25612 *-*-solaris2*) 25613 ans=nsec 25614 ;; 25615esac 25616ac_cv_var_tick_nano=$ans 25617fi 25618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5 25619$as_echo "$ac_cv_var_tick_nano" >&6; } 25620case "$ac_cv_var_tick_nano" in 25621 nsec) 25622 25623$as_echo "#define TICK_NANO 1" >>confdefs.h 25624 25625 ;; 25626esac 25627# 25628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 25629$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 25630if test "${ac_cv_var_nlist_tickadj+set}" = set; then : 25631 $as_echo_n "(cached) " >&6 25632else 25633 ans=_tickadj 25634case "$host" in 25635 m68*-hp-hpux*) # HP9000/300? 25636 ans=_tickadj 25637 ;; 25638 *-apple-aux[23]*) 25639 ans=tickadj 25640 ;; 25641 *-hp-hpux10*) 25642 ans=no 25643 ;; 25644 *-hp-hpux9*) 25645 ans=no 25646 ;; 25647 *-hp-hpux*) 25648 ans=tickadj 25649 ;; 25650 *-*-aix*) 25651 ans=tickadj 25652 ;; 25653 *-*-mpeix*) 25654 ans=no 25655 ;; 25656 *-*-ptx*) 25657 ans=tickadj 25658 ;; 25659 *-*-sco3.2v4*) 25660 ans=no 25661 ;; 25662 *-*-sco3.2v5.0*) 25663 ans=clock_drift 25664 ;; 25665 *-*-solaris2*) 25666 ans=no # hrestime_adj 25667 ;; 25668 *-*-sysv4*) 25669 ans=tickadj 25670 ;; 25671esac 25672ac_cv_var_nlist_tickadj=$ans 25673fi 25674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5 25675$as_echo "$ac_cv_var_nlist_tickadj" >&6; } 25676case "$ac_cv_var_nlist_tickadj" in 25677 ''|no) ;; # HMS: I think we can only get 'no' here... 25678 *) 25679cat >>confdefs.h <<_ACEOF 25680#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj" 25681_ACEOF 25682 ;; 25683esac 25684# 25685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 25686$as_echo_n "checking for the units of 'tickadj'... " >&6; } 25687if test "${ac_cv_var_tickadj_nano+set}" = set; then : 25688 $as_echo_n "(cached) " >&6 25689else 25690 ans=usec 25691case "$host" in 25692 *-*-solaris2*) 25693 ans=nsec 25694 ;; 25695esac 25696ac_cv_var_tickadj_nano=$ans 25697fi 25698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5 25699$as_echo "$ac_cv_var_tickadj_nano" >&6; } 25700case "$ac_cv_var_tickadj_nano" in 25701 nsec) 25702 25703$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 25704 25705 ;; 25706esac 25707# 25708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 25709$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 25710if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then : 25711 $as_echo_n "(cached) " >&6 25712else 25713 case "$host" in 25714 *-apple-aux[23]*) 25715 ans=no 25716 ;; 25717 *-sni-sysv*) 25718 ans=dosynctodr 25719 ;; 25720 *-*-aix*) 25721 ans=dosynctodr 25722 ;; 25723 *-*-hpux*) 25724 ans=no 25725 ;; 25726 *-*-mpeix*) 25727 ans=no 25728 ;; 25729 *-*-nextstep*) 25730 ans=_dosynctodr 25731 ;; 25732 *-*-ptx*) 25733 ans=doresettodr 25734 ;; 25735 *-*-sco3.2v4*) 25736 ans=no 25737 ;; 25738 *-*-sco3.2v5*) 25739 ans=track_rtc 25740 ;; 25741 *-*-solaris2*) 25742 ans=dosynctodr 25743 ;; 25744 *-*-sysv4*) 25745 ans=doresettodr 25746 ;; 25747 *) 25748 ans=_dosynctodr 25749 ;; 25750esac 25751ac_cv_var_nlist_dosynctodr=$ans 25752fi 25753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5 25754$as_echo "$ac_cv_var_nlist_dosynctodr" >&6; } 25755case "$ac_cv_var_nlist_dosynctodr" in 25756 no) ;; 25757 *) 25758cat >>confdefs.h <<_ACEOF 25759#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr" 25760_ACEOF 25761 25762 ;; 25763esac 25764# 25765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 25766$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 25767if test "${ac_cv_var_nlist_noprintf+set}" = set; then : 25768 $as_echo_n "(cached) " >&6 25769else 25770 case "$host" in 25771 *-apple-aux[23]*) 25772 ans=no 25773 ;; 25774 *-sni-sysv*) 25775 ans=noprintf 25776 ;; 25777 *-*-aix*) 25778 ans=noprintf 25779 ;; 25780 *-*-hpux*) 25781 ans=no 25782 ;; 25783 *-*-mpeix*) 25784 ans=no 25785 ;; 25786 *-*-ptx*) 25787 ans=noprintf 25788 ;; 25789 *-*-nextstep*) 25790 ans=_noprintf 25791 ;; 25792 *-*-solaris2*) 25793 ans=noprintf 25794 ;; 25795 *-*-sysv4*) 25796 ans=noprintf 25797 ;; 25798 *) 25799 ans=_noprintf 25800 ;; 25801esac 25802ac_cv_var_nlist_noprintf=$ans 25803fi 25804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5 25805$as_echo "$ac_cv_var_nlist_noprintf" >&6; } 25806case "$ac_cv_var_nlist_noprintf" in 25807 no) ;; 25808 *) 25809cat >>confdefs.h <<_ACEOF 25810#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf" 25811_ACEOF 25812 25813 ;; 25814esac 25815 25816 25817 25818 25819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 25820$as_echo_n "checking for a default value for 'tick'... " >&6; } 25821 25822# target-dependent default for tick 25823 25824case "$host" in 25825 *-*-pc-cygwin*) 25826 as_fn_error "tick needs work for cygwin" "$LINENO" 5 25827 ;; 25828 *-univel-sysv*) 25829 ans=10000 25830 ;; 25831 *-*-irix*) 25832 ans=10000 25833 ;; 25834 *-*-*linux*) 25835 ans=txc.tick 25836 ;; 25837 *-*-mpeix*) 25838 ans=no 25839 ;; 25840 *-*-winnt3.5) 25841 ans='(every / 10)' 25842 ;; 25843 *-*-unicosmp*) 25844 ans=10000 25845 ;; 25846 *) 25847 ans='1000000L/hz' 25848 ;; 25849esac 25850 25851# Check whether --enable-tick was given. 25852if test "${enable_tick+set}" = set; then : 25853 enableval=$enable_tick; ans=$enableval 25854 25855fi 25856 25857 25858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25859$as_echo "$ans" >&6; } 25860 25861case "$ans" in 25862 ''|no) ;; # HMS: I think we can only get 'no' here... 25863 *) 25864cat >>confdefs.h <<_ACEOF 25865#define PRESET_TICK $ans 25866_ACEOF 25867 ;; 25868esac 25869 25870 25871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 25872$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 25873 25874# target-specific default 25875 25876ans='500/hz' 25877 25878case "$host" in 25879 *-fujitsu-uxp*) 25880 case "$adjtime_is_accurate" in 25881 yes) 25882 ans='tick/16' 25883 esac 25884 ;; 25885 XXX-*-pc-cygwin*) 25886 ans=no 25887 ;; 25888 *-univel-sysv*) 25889 ans=80 25890 ;; 25891 *-*-aix*) 25892 case "$can_kmem" in 25893 no) 25894 ans=1000 25895 esac 25896 ;; 25897 *-*-domainos) # Skippy: won't be found... 25898 case "$can_kmem" in 25899 no) 25900 ans=668 25901 esac 25902 ;; 25903 *-*-hpux*) 25904 case "$adjtime_is_accurate" in 25905 yes) 25906 ans='tick/16' 25907 esac 25908 ;; 25909 *-*-irix*) 25910 ans=150 25911 ;; 25912 *-*-mpeix*) 25913 ans=no 25914 ;; 25915 *-*-sco3.2v5.0*) 25916 ans=10000L/hz 25917 ;; 25918 *-*-winnt3.5) 25919 ans=50 25920 ;; 25921 *-*-unicosmp*) 25922 ans=150 25923esac 25924 25925# Check whether --enable-tickadj was given. 25926if test "${enable_tickadj+set}" = set; then : 25927 enableval=$enable_tickadj; ans=$enableval 25928 25929fi 25930 25931 25932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25933$as_echo "$ans" >&6; } 25934 25935default_tickadj=$ans 25936 25937case "$default_tickadj" in 25938 ''|no) ;; # HMS: I think we can only get 'no' here... 25939 *) 25940cat >>confdefs.h <<_ACEOF 25941#define PRESET_TICKADJ $default_tickadj 25942_ACEOF 25943 ;; 25944esac 25945 25946# Newer versions of ReliantUNIX round adjtime() values down to 25947# 1/100s (system tick). Sigh ... 25948# Unfortunately, there is no easy way to know if particular release 25949# has this "feature" or any obvious way to test for it. 25950case "$host" in 25951 mips-sni-sysv4*) 25952$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 25953 ;; 25954esac 25955 25956case "$host" in 25957 *-*-sco3.2v5*) 25958$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 25959 ;; 25960esac 25961 25962ac_cv_make_tickadj=yes 25963case "$can_kmem$ac_cv_var_tick$default_tickadj" in 25964 nonono) # Don't read KMEM, no presets. Bogus. 25965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 25966$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 25967 ac_cv_make_tickadj=no 25968 ;; 25969 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 25970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 25971$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 25972 ac_cv_make_tickadj=no 25973 ;; 25974 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 25975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 25976$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 25977 ac_cv_make_tickadj=no 25978 ;; 25979 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 25980 ;; 25981 yesnono) # Read KMEM, no presets. Cool. 25982 ;; 25983 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 25984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 25985$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 25986 ;; 25987 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 25988 ;; 25989 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 25990 ;; 25991 *) # Generally bogus. 25992 as_fn_error "This shouldn't happen." "$LINENO" 5 25993 ;; 25994esac 25995 25996 25997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 25998$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 25999if test "${ac_cv_make_ntptime+set}" = set; then : 26000 $as_echo_n "(cached) " >&6 26001else 26002 case "$host" in 26003 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in 26004 yesyes) 26005 ans=yes 26006 ;; 26007 *) 26008 ans=no 26009 ;; 26010 esac 26011 ;; 26012esac 26013ac_cv_make_ntptime=$ans 26014fi 26015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 26016$as_echo "$ac_cv_make_ntptime" >&6; } 26017case "$ac_cv_make_ntptime" in 26018 yes) 26019 MAKE_NTPTIME=ntptime 26020 ;; 26021esac 26022 26023 26024case "$host" in 26025 mips-sni-sysv4*) 26026 # tickadj is pretty useless on newer versions of ReliantUNIX 26027 # Do not bother 26028 ac_cv_make_tickadj=no 26029 ;; 26030 *-*-irix*) 26031 ac_cv_make_tickadj=no 26032 ;; 26033 *-*-solaris2*) 26034 # DLM says tickadj is a no-no starting with solaris2.5 26035 case "$host" in 26036 *-*-solaris2.1[0-9]*) 26037 ac_cv_make_tickadj=no 26038 ;; 26039 *-*-solaris2.[0-4]*) ;; 26040 *) ac_cv_make_tickadj=no ;; 26041 esac 26042 ;; 26043 *-*-unicosmp*) 26044 ac_cv_make_tickadj=no 26045 ;; 26046esac 26047 26048# 26049# Despite all the above, we always make tickadj. Setting 26050# ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false 26051# report that the configuration variable was cached. It may 26052# be better to simply remove the hunk above, I did not want 26053# to remove it if there is hope it will be used again. 26054# 26055$as_unset ac_cv_make_tickadj 26056 26057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 26058$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 26059if test "${ac_cv_make_tickadj+set}" = set; then : 26060 $as_echo_n "(cached) " >&6 26061else 26062 ac_cv_make_tickadj=yes 26063fi 26064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5 26065$as_echo "$ac_cv_make_tickadj" >&6; } 26066case "$ac_cv_make_tickadj" in 26067 yes) 26068 MAKE_TICKADJ=tickadj 26069 ;; 26070esac 26071 26072 26073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 26074$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 26075if test "${ac_cv_make_timetrim+set}" = set; then : 26076 $as_echo_n "(cached) " >&6 26077else 26078 case "$host" in 26079 *-*-irix*) 26080 ac_cv_make_timetrim=yes 26081 ;; 26082 *-*-unicosmp*) 26083 ac_cv_make_timetrim=yes 26084 ;; 26085 *) 26086 ac_cv_make_timetrim=no 26087 ;; 26088esac 26089fi 26090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5 26091$as_echo "$ac_cv_make_timetrim" >&6; } 26092case "$ac_cv_make_timetrim" in 26093 yes) 26094 MAKE_TIMETRIM=timetrim 26095 ;; 26096esac 26097 26098 26099 26100 26101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 26102$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 26103 26104# Check whether --enable-simulator was given. 26105if test "${enable_simulator+set}" = set; then : 26106 enableval=$enable_simulator; ans=$enableval 26107else 26108 ans=no 26109 26110fi 26111 26112 26113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26114$as_echo "$ans" >&6; } 26115 26116case "$ans" in 26117 yes) 26118 MAKE_NTPDSIM=ntpdsim 26119 MAKE_LIBNTPSIM=libntpsim.a 26120 ;; 26121esac 26122 26123case "$build" in 26124 $host) 26125 ;; 26126 *) case "$host" in 26127 *-*-vxworks*) 26128 LDFLAGS="$LDFLAGS -r" 26129 ;; 26130 esac 26131 ;; 26132esac 26133 26134 26135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 26136$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 26137 26138# Check whether --with-ntpsnmpd was given. 26139if test "${with_ntpsnmpd+set}" = set; then : 26140 withval=$with_ntpsnmpd; ans=$withval 26141else 26142 case "$PATH_NET_SNMP_CONFIG" in 26143 /*) ans=yes ;; 26144 *) ans=no ;; 26145 esac 26146fi 26147 26148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26149$as_echo "$ans" >&6; } 26150 26151case "$ans" in 26152 yes) 26153 case "$PATH_NET_SNMP_CONFIG" in 26154 /*) 26155 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 26156 26157 # HMS: we really want to separate CPPFLAGS and CFLAGS 26158 foo=`$PATH_NET_SNMP_CONFIG --cflags` 26159 SNMP_CPPFLAGS= 26160 SNMP_CFLAGS= 26161 for i in $foo; do 26162 case "$i" in 26163 -D*|-U*|-I*) 26164 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 26165 ;; 26166 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 26167 ;; 26168 esac 26169 done 26170 26171 26172 26173 save_CFLAGS=$CFLAGS 26174 save_CPPFLAGS=$CPPFLAGS 26175 save_LIBS=$LIBS 26176 CFLAGS=$SNMP_CFLAGS 26177 CPPFLAGS=$SNMP_CPPFLAGS 26178 26179 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default" 26180if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = x""yes; then : 26181 MAKE_NTPSNMPD=ntpsnmpd 26182else 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 26184$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 26185fi 26186 26187 26188 26189 # Do this last, as we're messing up LIBS. 26190 26191 # check -lnetsnmp for netsnmp_daemonize 26192 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 26194$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 26195if test "${ac_cv_lib_netsnmp_netsnmp_daemonize+set}" = set; then : 26196 $as_echo_n "(cached) " >&6 26197else 26198 ac_check_lib_save_LIBS=$LIBS 26199LIBS="-lnetsnmp $LIBS" 26200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26201/* end confdefs.h. */ 26202 26203/* Override any GCC internal prototype to avoid an error. 26204 Use char because int might match the return type of a GCC 26205 builtin and then its argument prototype would still apply. */ 26206#ifdef __cplusplus 26207extern "C" 26208#endif 26209char netsnmp_daemonize (); 26210int 26211main () 26212{ 26213return netsnmp_daemonize (); 26214 ; 26215 return 0; 26216} 26217_ACEOF 26218if ac_fn_c_try_link "$LINENO"; then : 26219 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 26220else 26221 ac_cv_lib_netsnmp_netsnmp_daemonize=no 26222fi 26223rm -f core conftest.err conftest.$ac_objext \ 26224 conftest$ac_exeext conftest.$ac_ext 26225LIBS=$ac_check_lib_save_LIBS 26226fi 26227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 26228$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 26229if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = x""yes; then : 26230 cat >>confdefs.h <<_ACEOF 26231#define HAVE_LIBNETSNMP 1 26232_ACEOF 26233 26234 LIBS="-lnetsnmp $LIBS" 26235 26236else 26237 26238$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 26239 26240fi 26241 26242 26243 CFLAGS=$save_CFLAGS 26244 CPPFLAGS=$save_CPPFLAGS 26245 LIBS=$save_LIBS 26246 26247 ;; 26248 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&5 26249$as_echo "$as_me: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&2;} 26250 ;; 26251 esac 26252 ;; 26253esac 26254 26255 26256 26257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 26258$as_echo_n "checking if we should always slew the time... " >&6; } 26259 26260# target-specific defaults 26261 26262case "$host" in 26263 *-apple-aux[23]*) 26264 ans=yes 26265 ;; 26266 *-*-bsdi[012]*) 26267 ans=no 26268 ;; 26269 *-*-bsdi*) 26270 ans=yes 26271 ;; 26272 *-*-openvms*) # HMS: won't be found 26273 ans=yes 26274 ;; 26275 *) ans=no 26276 ;; 26277esac 26278 26279# --enable-slew-always / --disable-slew-always overrides default 26280 26281# Check whether --enable-slew-always was given. 26282if test "${enable_slew_always+set}" = set; then : 26283 enableval=$enable_slew_always; ans=$enableval 26284 26285fi 26286 26287 26288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26289$as_echo "$ans" >&6; } 26290 26291case "$ans" in 26292 yes) 26293$as_echo "#define SLEWALWAYS 1" >>confdefs.h 26294 ;; 26295esac 26296 26297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 26298$as_echo_n "checking if we should step and slew the time... " >&6; } 26299 26300case "$host" in 26301 *-sni-sysv*) 26302 ans=yes 26303 ;; 26304 *-univel-sysv*) 26305 ans=no 26306 ;; 26307 *-*-ptx*) 26308 ans=yes 26309 ;; 26310 *-*-solaris2.1[0-9]*) 26311 ans=no 26312 ;; 26313 *-*-solaris2.[012]*) 26314 ans=yes 26315 ;; 26316 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 26317 ans=yes 26318 ;; 26319 *) ans=no 26320 ;; 26321esac 26322 26323 26324# Check whether --enable-step-slew was given. 26325if test "${enable_step_slew+set}" = set; then : 26326 enableval=$enable_step_slew; ans=$enableval 26327 26328fi 26329 26330 26331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26332$as_echo "$ans" >&6; } 26333 26334case "$ans" in 26335 yes) 26336$as_echo "#define STEP_SLEW 1" >>confdefs.h 26337 ;; 26338esac 26339 26340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 26341$as_echo_n "checking if ntpdate should step the time... " >&6; } 26342 26343case "$host" in 26344 *-apple-aux[23]*) 26345 ans=yes 26346 ;; 26347 *) ans=no 26348esac 26349 26350# Check whether --enable-ntpdate-step was given. 26351if test "${enable_ntpdate_step+set}" = set; then : 26352 enableval=$enable_ntpdate_step; ans=$enableval 26353 26354fi 26355 26356 26357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26358$as_echo "$ans" >&6; } 26359 26360case "$ans" in 26361 yes) 26362$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 26363 ;; 26364esac 26365 26366 26367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 26368$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 26369 26370case "$host" in 26371 *-*-nextstep*) 26372 ans=yes 26373 ;; 26374 *-*-openvms*) # HMS: won't be found 26375 ans=yes 26376 ;; 26377 *) 26378 ans=no 26379esac 26380 26381# Check whether --enable-hourly-todr-sync was given. 26382if test "${enable_hourly_todr_sync+set}" = set; then : 26383 enableval=$enable_hourly_todr_sync; ans=$enableval 26384 26385fi 26386 26387 26388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26389$as_echo "$ans" >&6; } 26390 26391case "$ac_cv_var_sync_todr" in 26392 yes) 26393$as_echo "#define DOSYNCTODR 1" >>confdefs.h 26394 ;; 26395esac 26396 26397 26398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 26399$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 26400 26401case "$host" in 26402 *-*-solaris2.6) 26403 unamev=`uname -v` 26404 case "$unamev" in 26405 Generic_105181-*) 26406 old_IFS="$IFS" 26407 IFS="-" 26408 set $unamev 26409 IFS="$old_IFS" 26410 if test "$2" -ge 17 26411 then 26412 # Generic_105181-17 and higher 26413 ans=no 26414 else 26415 ans=yes 26416 fi 26417 ;; 26418 *) 26419 ans=yes 26420 esac 26421 ;; 26422 *-*-solaris2.7) 26423 unamev=`uname -v` 26424 case "$unamev" in 26425 Generic_106541-*) 26426 old_IFS="$IFS" 26427 IFS="-" 26428 set $unamev 26429 IFS="$old_IFS" 26430 if test "$2" -ge 07 26431 then 26432 # Generic_106541-07 and higher 26433 ans=no 26434 else 26435 ans=yes 26436 fi 26437 ;; 26438 *) 26439 ans=yes 26440 esac 26441 ;; 26442 *) 26443 ans=no 26444esac 26445 26446# Check whether --enable-kernel-fll-bug was given. 26447if test "${enable_kernel_fll_bug+set}" = set; then : 26448 enableval=$enable_kernel_fll_bug; ans=$enableval 26449 26450fi 26451 26452 26453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26454$as_echo "$ans" >&6; } 26455 26456case "$ans" in 26457 yes) 26458$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 26459 ;; 26460esac 26461 26462 26463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 26464$as_echo_n "checking if we want new session key behavior... " >&6; } 26465 26466# Check whether --enable-bug1243-fix was given. 26467if test "${enable_bug1243_fix+set}" = set; then : 26468 enableval=$enable_bug1243_fix; ans=$enableval 26469else 26470 ans=yes 26471 26472fi 26473 26474 26475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26476$as_echo "$ans" >&6; } 26477 26478case "$ans" in 26479 no) 26480 26481$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 26482 26483esac 26484 26485 26486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 26487$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 26488 26489case "$host" in 26490 *-*-solaris2.[89]) 26491 ans=yes 26492 ;; 26493 *-*-solaris2.1[0-9]*) 26494 ans=yes 26495 ;; 26496 *) ans=no 26497esac 26498 26499# Check whether --enable-irig-sawtooth was given. 26500if test "${enable_irig_sawtooth+set}" = set; then : 26501 enableval=$enable_irig_sawtooth; ans=$enableval 26502 26503fi 26504 26505 26506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26507$as_echo "$ans" >&6; } 26508 26509case "$ans" in 26510 yes) 26511$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 26512 ;; 26513esac 26514 26515 26516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 26517$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 26518 26519# Check whether --enable-nist was given. 26520if test "${enable_nist+set}" = set; then : 26521 enableval=$enable_nist; ans=$enableval 26522else 26523 ans=no 26524 26525fi 26526 26527 26528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26529$as_echo "$ans" >&6; } 26530 26531case "$ans" in 26532 yes) 26533$as_echo "#define LOCKCLOCK 1" >>confdefs.h 26534 ;; 26535esac 26536 26537 26538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 26539$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 26540 26541# Check whether --enable-ntp-signd was given. 26542if test "${enable_ntp_signd+set}" = set; then : 26543 enableval=$enable_ntp_signd; ans=$enableval 26544else 26545 ans=no 26546 26547fi 26548 26549 26550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 26551$as_echo "$ans" >&6; } 26552 26553case "$ans" in 26554 no) 26555 ntp_signd_path= 26556 ;; 26557 yes) 26558 ntp_signd_path=/var/run/ntp_signd 26559 ;; 26560 *) 26561 ntp_signd_path="$ans" 26562esac 26563 26564case "$ntp_signd_path" in 26565 '') 26566 ;; 26567 *) 26568 26569$as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h 26570 26571 26572cat >>confdefs.h <<_ACEOF 26573#define NTP_SIGND_PATH "$ntp_signd_path" 26574_ACEOF 26575 26576esac 26577 26578 26579for ac_header in sys/clockctl.h 26580do : 26581 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 26582if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then : 26583 cat >>confdefs.h <<_ACEOF 26584#define HAVE_SYS_CLOCKCTL_H 1 26585_ACEOF 26586 26587fi 26588 26589done 26590 26591 26592case "$host" in 26593 *-*-netbsd*) 26594 ans=yes 26595 ;; 26596 *) ans=no 26597 ;; 26598esac 26599 26600# Check whether --enable-clockctl was given. 26601if test "${enable_clockctl+set}" = set; then : 26602 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 26603else 26604 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 26605 26606fi 26607 26608 26609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 26610$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 26611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 26612$as_echo "$ntp_use_dev_clockctl" >&6; } 26613 26614 26615for ac_header in sys/capability.h 26616do : 26617 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 26618if test "x$ac_cv_header_sys_capability_h" = x""yes; then : 26619 cat >>confdefs.h <<_ACEOF 26620#define HAVE_SYS_CAPABILITY_H 1 26621_ACEOF 26622 26623fi 26624 26625done 26626 26627for ac_header in sys/prctl.h 26628do : 26629 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 26630if test "x$ac_cv_header_sys_prctl_h" = x""yes; then : 26631 cat >>confdefs.h <<_ACEOF 26632#define HAVE_SYS_PRCTL_H 1 26633_ACEOF 26634 26635fi 26636 26637done 26638 26639 26640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 26641$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 26642 26643case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 26644 yesyes) 26645 ntp_have_linuxcaps=yes 26646 ;; 26647 *) 26648 ntp_have_linuxcaps=no 26649esac 26650 26651# Check whether --enable-linuxcaps was given. 26652if test "${enable_linuxcaps+set}" = set; then : 26653 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 26654 26655fi 26656 26657 26658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 26659$as_echo "$ntp_have_linuxcaps" >&6; } 26660 26661case "$ntp_have_linuxcaps" in 26662 yes) 26663 26664$as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h 26665 26666 LIBS="$LIBS -lcap" 26667esac 26668 26669case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in 26670 *yes*) 26671 26672$as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h 26673 26674esac 26675 26676 26677for ac_header in libscf.h 26678do : 26679 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 26680if test "x$ac_cv_header_libscf_h" = x""yes; then : 26681 cat >>confdefs.h <<_ACEOF 26682#define HAVE_LIBSCF_H 1 26683_ACEOF 26684 26685fi 26686 26687done 26688 26689 26690case "$ac_cv_header_libscf_h" in 26691 yes) 26692 LSCF=-lscf 26693 26694esac 26695 26696ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 26697if test "x$ac_cv_func_setppriv" = x""yes; then : 26698 26699$as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h 26700 26701 26702fi 26703 26704 26705 26706# 26707# ISC stuff 26708# 26709 26710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 26711$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 26712if test "${isc_cv_platform_havesalen+set}" = set; then : 26713 $as_echo_n "(cached) " >&6 26714else 26715 26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26717/* end confdefs.h. */ 26718 26719 #include <sys/types.h> 26720 #include <sys/socket.h> 26721 26722int 26723main () 26724{ 26725 26726 extern struct sockaddr *ps; 26727 return ps->sa_len; 26728 26729 ; 26730 return 0; 26731} 26732_ACEOF 26733if ac_fn_c_try_compile "$LINENO"; then : 26734 isc_cv_platform_havesalen=yes 26735else 26736 isc_cv_platform_havesalen=no 26737 26738fi 26739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26740 26741 26742fi 26743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 26744$as_echo "$isc_cv_platform_havesalen" >&6; } 26745if test $isc_cv_platform_havesalen = yes; then 26746 26747$as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h 26748 26749fi 26750 26751# Check whether --enable-ipv6 was given. 26752if test "${enable_ipv6+set}" = set; then : 26753 enableval=$enable_ipv6; 26754fi 26755 26756 26757case "$enable_ipv6" in 26758 yes|''|autodetect) 26759 case "$host" in 26760 powerpc-ibm-aix4*) ;; 26761 *) 26762 26763$as_echo "#define WANT_IPV6 /**/" >>confdefs.h 26764 26765 ;; 26766 esac 26767 ;; 26768 no) 26769 ;; 26770esac 26771 26772 26773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 26774$as_echo_n "checking for IPv6 structures... " >&6; } 26775if test "${ac_cv_isc_found_ipv6+set}" = set; then : 26776 $as_echo_n "(cached) " >&6 26777else 26778 26779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26780/* end confdefs.h. */ 26781 26782 26783 #include <sys/types.h> 26784 #include <sys/socket.h> 26785 #include <netinet/in.h> 26786 26787int 26788main () 26789{ 26790 26791 struct sockaddr_in6 sin6; 26792 26793 26794 ; 26795 return 0; 26796} 26797 26798_ACEOF 26799if ac_fn_c_try_compile "$LINENO"; then : 26800 ac_cv_isc_found_ipv6=yes 26801else 26802 ac_cv_isc_found_ipv6=no 26803 26804fi 26805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26806 26807 26808fi 26809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5 26810$as_echo "$ac_cv_isc_found_ipv6" >&6; } 26811 26812# 26813# See whether IPv6 support is provided via a Kame add-on. 26814# This is done before other IPv6 linking tests so LIBS is properly set. 26815# 26816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 26817$as_echo_n "checking for Kame IPv6 support... " >&6; } 26818 26819# Check whether --with-kame was given. 26820if test "${with_kame+set}" = set; then : 26821 withval=$with_kame; use_kame="$withval" 26822else 26823 use_kame="no" 26824fi 26825 26826 26827 26828case "$use_kame" in 26829 no) 26830 ;; 26831 yes) 26832 kame_path=/usr/local/v6 26833 ;; 26834 *) 26835 kame_path="$use_kame" 26836 ;; 26837esac 26838 26839case "$use_kame" in 26840 no) 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26842$as_echo "no" >&6; } 26843 ;; 26844 *) 26845 if test -f $kame_path/lib/libinet6.a; then 26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 26847$as_echo "$kame_path/lib/libinet6.a" >&6; } 26848 LIBS="-L$kame_path/lib -linet6 $LIBS" 26849 else 26850 as_fn_error "$kame_path/lib/libinet6.a not found. 26851 26852Please choose the proper path with the following command: 26853 26854 configure --with-kame=PATH 26855" "$LINENO" 5 26856 fi 26857 ;; 26858esac 26859 26860# 26861# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 26862# Including it on Kame-using platforms is very bad, though, because 26863# Kame uses #error against direct inclusion. So include it on only 26864# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 26865# This is done before the in6_pktinfo check because that's what 26866# netinet6/in6.h is needed for. 26867# 26868case "$host" in 26869 *-bsdi4.[01]*) 26870 26871$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 26872 26873 isc_netinet6in6_hack="#include <netinet6/in6.h>" 26874 ;; 26875 *) 26876 isc_netinet6in6_hack="" 26877esac 26878 26879# 26880# This is similar to the netinet6/in6.h issue. 26881# 26882case "$host" in 26883 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 26884 26885$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 26886 26887 isc_netinetin6_hack="#include <netinet/in6.h>" 26888 ;; 26889 *) 26890 isc_netinetin6_hack="" 26891esac 26892 26893 26894case "$ac_cv_isc_found_ipv6" in 26895 yes) 26896 26897$as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h 26898 26899 26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 26901$as_echo_n "checking for in6_pktinfo... " >&6; } 26902if test "${ac_cv_have_in6_pktinfo+set}" = set; then : 26903 $as_echo_n "(cached) " >&6 26904else 26905 26906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26907/* end confdefs.h. */ 26908 26909 26910 #include <sys/types.h> 26911 #include <sys/socket.h> 26912 #include <netinet/in.h> 26913 $isc_netinetin6_hack 26914 $isc_netinet6in6_hack 26915 26916int 26917main () 26918{ 26919 26920 struct in6_pktinfo xyzzy; 26921 26922 26923 ; 26924 return 0; 26925} 26926 26927_ACEOF 26928if ac_fn_c_try_compile "$LINENO"; then : 26929 ac_cv_have_in6_pktinfo=yes 26930else 26931 ac_cv_have_in6_pktinfo=no 26932 26933fi 26934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26935 26936 26937fi 26938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5 26939$as_echo "$ac_cv_have_in6_pktinfo" >&6; } 26940 26941 case "$ac_cv_have_in6_pktinfo" in 26942 yes) 26943 26944$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h 26945 26946 esac 26947 26948 26949 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 26951$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 26952if test "${ac_cv_have_sin6_scope_id+set}" = set; then : 26953 $as_echo_n "(cached) " >&6 26954else 26955 26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26957/* end confdefs.h. */ 26958 26959 26960 #include <sys/types.h> 26961 #include <sys/socket.h> 26962 #include <netinet/in.h> 26963 $isc_netinetin6_hack 26964 $isc_netinet6in6_hack 26965 26966int 26967main () 26968{ 26969 26970 struct sockaddr_in6 xyzzy; 26971 xyzzy.sin6_scope_id = 0; 26972 26973 26974 ; 26975 return 0; 26976} 26977 26978_ACEOF 26979if ac_fn_c_try_compile "$LINENO"; then : 26980 ac_cv_have_sin6_scope_id=yes 26981else 26982 ac_cv_have_sin6_scope_id=no 26983 26984fi 26985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26986 26987 26988fi 26989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5 26990$as_echo "$ac_cv_have_sin6_scope_id" >&6; } 26991 26992 case "$ac_cv_have_sin6_scope_id" in 26993 yes) 26994 26995$as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h 26996 26997 esac 26998esac 26999 27000 27001# We need this check run even without ac_cv_isc_found_ipv6=yes 27002 27003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 27004$as_echo_n "checking for in6addr_any... " >&6; } 27005if test "${isc_cv_have_in6addr_any+set}" = set; then : 27006 $as_echo_n "(cached) " >&6 27007else 27008 27009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27010/* end confdefs.h. */ 27011 27012 27013 #include <sys/types.h> 27014 #include <sys/socket.h> 27015 #include <netinet/in.h> 27016 $isc_netinetin6_hack 27017 $isc_netinet6in6_hack 27018 27019int 27020main () 27021{ 27022 27023 struct in6_addr in6; 27024 in6 = in6addr_any; 27025 27026 27027 ; 27028 return 0; 27029} 27030 27031_ACEOF 27032if ac_fn_c_try_link "$LINENO"; then : 27033 isc_cv_have_in6addr_any=yes 27034else 27035 isc_cv_have_in6addr_any=no 27036 27037fi 27038rm -f core conftest.err conftest.$ac_objext \ 27039 conftest$ac_exeext conftest.$ac_ext 27040 27041 27042fi 27043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5 27044$as_echo "$isc_cv_have_in6addr_any" >&6; } 27045 27046case "$isc_cv_have_in6addr_any" in 27047 no) 27048 27049$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h 27050 27051esac 27052 27053 27054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 27055$as_echo_n "checking for struct if_laddrconf... " >&6; } 27056if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then : 27057 $as_echo_n "(cached) " >&6 27058else 27059 27060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27061/* end confdefs.h. */ 27062 27063 27064 #include <sys/types.h> 27065 #include <net/if6.h> 27066 27067int 27068main () 27069{ 27070 27071 struct if_laddrconf a; 27072 27073 27074 ; 27075 return 0; 27076} 27077 27078_ACEOF 27079if ac_fn_c_try_compile "$LINENO"; then : 27080 ac_cv_isc_struct_if_laddrconf=yes 27081else 27082 ac_cv_isc_struct_if_laddrconf=no 27083 27084fi 27085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27086 27087 27088fi 27089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5 27090$as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; } 27091 27092case "$ac_cv_isc_struct_if_laddrconf" in 27093 yes) 27094 27095$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h 27096 27097esac 27098 27099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 27100$as_echo_n "checking for struct if_laddrreq... " >&6; } 27101if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then : 27102 $as_echo_n "(cached) " >&6 27103else 27104 27105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27106/* end confdefs.h. */ 27107 27108 27109 #include <sys/types.h> 27110 #include <net/if6.h> 27111 27112int 27113main () 27114{ 27115 27116 struct if_laddrreq a; 27117 27118 27119 ; 27120 return 0; 27121} 27122 27123_ACEOF 27124if ac_fn_c_try_compile "$LINENO"; then : 27125 ac_cv_isc_struct_if_laddrreq=yes 27126else 27127 ac_cv_isc_struct_if_laddrreq=no 27128 27129fi 27130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27131 27132 27133fi 27134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5 27135$as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; } 27136 27137case "$ac_cv_isc_struct_if_laddrreq" in 27138 yes) 27139 27140$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h 27141 27142esac 27143 27144# 27145# Look for a sysctl call to get the list of network interfaces. 27146# 27147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 27148$as_echo_n "checking for interface list sysctl... " >&6; } 27149if test "${ac_cv_iflist_sysctl+set}" = set; then : 27150 $as_echo_n "(cached) " >&6 27151else 27152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27153/* end confdefs.h. */ 27154 27155 #include <sys/param.h> 27156 #include <sys/sysctl.h> 27157 #include <sys/socket.h> 27158 #ifdef NET_RT_IFLIST 27159 found_rt_iflist 27160 #endif 27161 27162_ACEOF 27163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27164 $EGREP "found_rt_iflist" >/dev/null 2>&1; then : 27165 ac_cv_iflist_sysctl=yes 27166else 27167 ac_cv_iflist_sysctl=no 27168 27169fi 27170rm -f conftest* 27171 27172 27173fi 27174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5 27175$as_echo "$ac_cv_iflist_sysctl" >&6; } 27176 27177case "$ac_cv_iflist_sysctl" in 27178 yes) 27179 27180$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 27181 27182esac 27183 27184### 27185 27186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 27187$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 27188# Check whether --enable-saveconfig was given. 27189if test "${enable_saveconfig+set}" = set; then : 27190 enableval=$enable_saveconfig; ntp_ok=$enableval 27191else 27192 ntp_ok=yes 27193fi 27194 27195ntp_saveconfig_enabled=0 27196if test "$ntp_ok" = "yes"; then 27197 ntp_saveconfig_enabled=1 27198 27199$as_echo "#define SAVECONFIG 1" >>confdefs.h 27200 27201fi 27202 if test x$ntp_saveconfig_enabled = x1; then 27203 SAVECONFIG_ENABLED_TRUE= 27204 SAVECONFIG_ENABLED_FALSE='#' 27205else 27206 SAVECONFIG_ENABLED_TRUE='#' 27207 SAVECONFIG_ENABLED_FALSE= 27208fi 27209 27210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 27211$as_echo "$ntp_ok" >&6; } 27212 27213### 27214 27215 27216 ac_expanded=`( 27217 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 27218 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 27219 eval echo \""$sysconfdir"\" 27220 )` 27221 27222cat >>confdefs.h <<_ACEOF 27223#define NTP_KEYSDIR "$ac_expanded" 27224_ACEOF 27225 27226 27227 27228ac_config_files="$ac_config_files Makefile" 27229 27230ac_config_files="$ac_config_files ElectricFence/Makefile" 27231 27232ac_config_files="$ac_config_files adjtimed/Makefile" 27233 27234ac_config_files="$ac_config_files clockstuff/Makefile" 27235 27236ac_config_files="$ac_config_files include/Makefile" 27237 27238ac_config_files="$ac_config_files include/isc/Makefile" 27239 27240ac_config_files="$ac_config_files kernel/Makefile" 27241 27242ac_config_files="$ac_config_files kernel/sys/Makefile" 27243 27244ac_config_files="$ac_config_files libntp/Makefile" 27245 27246ac_config_files="$ac_config_files libparse/Makefile" 27247 27248ac_config_files="$ac_config_files ntpd/Makefile" 27249 27250ac_config_files="$ac_config_files ntpdate/Makefile" 27251 27252ac_config_files="$ac_config_files ntpdc/Makefile" 27253 27254ac_config_files="$ac_config_files ntpdc/nl.pl" 27255 27256ac_config_files="$ac_config_files ntpq/Makefile" 27257 27258ac_config_files="$ac_config_files ntpsnmpd/Makefile" 27259 27260ac_config_files="$ac_config_files parseutil/Makefile" 27261 27262ac_config_files="$ac_config_files scripts/Makefile" 27263 27264ac_config_files="$ac_config_files scripts/calc_tickadj" 27265 27266ac_config_files="$ac_config_files scripts/checktime" 27267 27268ac_config_files="$ac_config_files scripts/freq_adj" 27269 27270ac_config_files="$ac_config_files scripts/html2man" 27271 27272ac_config_files="$ac_config_files scripts/mkver" 27273 27274ac_config_files="$ac_config_files scripts/ntp-wait" 27275 27276ac_config_files="$ac_config_files scripts/ntpsweep" 27277 27278ac_config_files="$ac_config_files scripts/ntptrace" 27279 27280ac_config_files="$ac_config_files scripts/ntpver" 27281 27282ac_config_files="$ac_config_files scripts/plot_summary" 27283 27284ac_config_files="$ac_config_files scripts/summary" 27285 27286ac_config_files="$ac_config_files util/Makefile" 27287 27288 27289subdirs="$subdirs sntp" 27290 27291 27292cat >confcache <<\_ACEOF 27293# This file is a shell script that caches the results of configure 27294# tests run on this system so they can be shared between configure 27295# scripts and configure runs, see configure's option --config-cache. 27296# It is not useful on other systems. If it contains results you don't 27297# want to keep, you may remove or edit it. 27298# 27299# config.status only pays attention to the cache file if you give it 27300# the --recheck option to rerun configure. 27301# 27302# `ac_cv_env_foo' variables (set or unset) will be overridden when 27303# loading this file, other *unset* `ac_cv_foo' will be assigned the 27304# following values. 27305 27306_ACEOF 27307 27308# The following way of writing the cache mishandles newlines in values, 27309# but we know of no workaround that is simple, portable, and efficient. 27310# So, we kill variables containing newlines. 27311# Ultrix sh set writes to stderr and can't be redirected directly, 27312# and sets the high bit in the cache file unless we assign to the vars. 27313( 27314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27315 eval ac_val=\$$ac_var 27316 case $ac_val in #( 27317 *${as_nl}*) 27318 case $ac_var in #( 27319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27320$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27321 esac 27322 case $ac_var in #( 27323 _ | IFS | as_nl) ;; #( 27324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27325 *) { eval $ac_var=; unset $ac_var;} ;; 27326 esac ;; 27327 esac 27328 done 27329 27330 (set) 2>&1 | 27331 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27332 *${as_nl}ac_space=\ *) 27333 # `set' does not quote correctly, so add quotes: double-quote 27334 # substitution turns \\\\ into \\, and sed turns \\ into \. 27335 sed -n \ 27336 "s/'/'\\\\''/g; 27337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27338 ;; #( 27339 *) 27340 # `set' quotes correctly as required by POSIX, so do not add quotes. 27341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27342 ;; 27343 esac | 27344 sort 27345) | 27346 sed ' 27347 /^ac_cv_env_/b end 27348 t clear 27349 :clear 27350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27351 t end 27352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27353 :end' >>confcache 27354if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27355 if test -w "$cache_file"; then 27356 test "x$cache_file" != "x/dev/null" && 27357 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27358$as_echo "$as_me: updating cache $cache_file" >&6;} 27359 cat confcache >$cache_file 27360 else 27361 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27362$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27363 fi 27364fi 27365rm -f confcache 27366 27367test "x$prefix" = xNONE && prefix=$ac_default_prefix 27368# Let make expand exec_prefix. 27369test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27370 27371DEFS=-DHAVE_CONFIG_H 27372 27373ac_libobjs= 27374ac_ltlibobjs= 27375for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27376 # 1. Remove the extension, and $U if already installed. 27377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27378 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27380 # will be set to the directory where LIBOBJS objects are built. 27381 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27382 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 27383done 27384LIBOBJS=$ac_libobjs 27385 27386LTLIBOBJS=$ac_ltlibobjs 27387 27388 27389 if test -n "$EXEEXT"; then 27390 am__EXEEXT_TRUE= 27391 am__EXEEXT_FALSE='#' 27392else 27393 am__EXEEXT_TRUE='#' 27394 am__EXEEXT_FALSE= 27395fi 27396 27397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27398 as_fn_error "conditional \"AMDEP\" was never defined. 27399Usually this means the macro was only invoked conditionally." "$LINENO" 5 27400fi 27401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27402 as_fn_error "conditional \"am__fastdepCC\" was never defined. 27403Usually this means the macro was only invoked conditionally." "$LINENO" 5 27404fi 27405if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27406 as_fn_error "conditional \"am__fastdepCC\" was never defined. 27407Usually this means the macro was only invoked conditionally." "$LINENO" 5 27408fi 27409if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 27410 as_fn_error "conditional \"VPATH_HACK\" was never defined. 27411Usually this means the macro was only invoked conditionally." "$LINENO" 5 27412fi 27413if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 27414 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined. 27415Usually this means the macro was only invoked conditionally." "$LINENO" 5 27416fi 27417if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 27418 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined. 27419Usually this means the macro was only invoked conditionally." "$LINENO" 5 27420fi 27421if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 27422 as_fn_error "conditional \"NTP_CROSSCOMPILE\" was never defined. 27423Usually this means the macro was only invoked conditionally." "$LINENO" 5 27424fi 27425 27426if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 27427 as_fn_error "conditional \"SAVECONFIG_ENABLED\" was never defined. 27428Usually this means the macro was only invoked conditionally." "$LINENO" 5 27429fi 27430 27431: ${CONFIG_STATUS=./config.status} 27432ac_write_fail=0 27433ac_clean_files_save=$ac_clean_files 27434ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27435{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27436$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27437as_write_fail=0 27438cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 27439#! $SHELL 27440# Generated by $as_me. 27441# Run this file to recreate the current configuration. 27442# Compiler output produced by configure, useful for debugging 27443# configure, is in config.log if it exists. 27444 27445debug=false 27446ac_cs_recheck=false 27447ac_cs_silent=false 27448 27449SHELL=\${CONFIG_SHELL-$SHELL} 27450export SHELL 27451_ASEOF 27452cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 27453## -------------------- ## 27454## M4sh Initialization. ## 27455## -------------------- ## 27456 27457# Be more Bourne compatible 27458DUALCASE=1; export DUALCASE # for MKS sh 27459if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27460 emulate sh 27461 NULLCMD=: 27462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27463 # is contrary to our usage. Disable this feature. 27464 alias -g '${1+"$@"}'='"$@"' 27465 setopt NO_GLOB_SUBST 27466else 27467 case `(set -o) 2>/dev/null` in #( 27468 *posix*) : 27469 set -o posix ;; #( 27470 *) : 27471 ;; 27472esac 27473fi 27474 27475 27476as_nl=' 27477' 27478export as_nl 27479# Printing a long string crashes Solaris 7 /usr/bin/printf. 27480as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27483# Prefer a ksh shell builtin over an external printf program on Solaris, 27484# but without wasting forks for bash or zsh. 27485if test -z "$BASH_VERSION$ZSH_VERSION" \ 27486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 27487 as_echo='print -r --' 27488 as_echo_n='print -rn --' 27489elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27490 as_echo='printf %s\n' 27491 as_echo_n='printf %s' 27492else 27493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27494 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27495 as_echo_n='/usr/ucb/echo -n' 27496 else 27497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27498 as_echo_n_body='eval 27499 arg=$1; 27500 case $arg in #( 27501 *"$as_nl"*) 27502 expr "X$arg" : "X\\(.*\\)$as_nl"; 27503 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27504 esac; 27505 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27506 ' 27507 export as_echo_n_body 27508 as_echo_n='sh -c $as_echo_n_body as_echo' 27509 fi 27510 export as_echo_body 27511 as_echo='sh -c $as_echo_body as_echo' 27512fi 27513 27514# The user is always right. 27515if test "${PATH_SEPARATOR+set}" != set; then 27516 PATH_SEPARATOR=: 27517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27519 PATH_SEPARATOR=';' 27520 } 27521fi 27522 27523 27524# IFS 27525# We need space, tab and new line, in precisely that order. Quoting is 27526# there to prevent editors from complaining about space-tab. 27527# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27528# splitting by setting IFS to empty value.) 27529IFS=" "" $as_nl" 27530 27531# Find who we are. Look in the path if we contain no directory separator. 27532case $0 in #(( 27533 *[\\/]* ) as_myself=$0 ;; 27534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27535for as_dir in $PATH 27536do 27537 IFS=$as_save_IFS 27538 test -z "$as_dir" && as_dir=. 27539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27540 done 27541IFS=$as_save_IFS 27542 27543 ;; 27544esac 27545# We did not find ourselves, most probably we were run as `sh COMMAND' 27546# in which case we are not to be found in the path. 27547if test "x$as_myself" = x; then 27548 as_myself=$0 27549fi 27550if test ! -f "$as_myself"; then 27551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27552 exit 1 27553fi 27554 27555# Unset variables that we do not need and which cause bugs (e.g. in 27556# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 27557# suppresses any "Segmentation fault" message there. '((' could 27558# trigger a bug in pdksh 5.2.14. 27559for as_var in BASH_ENV ENV MAIL MAILPATH 27560do eval test x\${$as_var+set} = xset \ 27561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 27562done 27563PS1='$ ' 27564PS2='> ' 27565PS4='+ ' 27566 27567# NLS nuisances. 27568LC_ALL=C 27569export LC_ALL 27570LANGUAGE=C 27571export LANGUAGE 27572 27573# CDPATH. 27574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27575 27576 27577# as_fn_error ERROR [LINENO LOG_FD] 27578# --------------------------------- 27579# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 27580# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 27581# script with status $?, using 1 if that was 0. 27582as_fn_error () 27583{ 27584 as_status=$?; test $as_status -eq 0 && as_status=1 27585 if test "$3"; then 27586 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 27587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 27588 fi 27589 $as_echo "$as_me: error: $1" >&2 27590 as_fn_exit $as_status 27591} # as_fn_error 27592 27593 27594# as_fn_set_status STATUS 27595# ----------------------- 27596# Set $? to STATUS, without forking. 27597as_fn_set_status () 27598{ 27599 return $1 27600} # as_fn_set_status 27601 27602# as_fn_exit STATUS 27603# ----------------- 27604# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 27605as_fn_exit () 27606{ 27607 set +e 27608 as_fn_set_status $1 27609 exit $1 27610} # as_fn_exit 27611 27612# as_fn_unset VAR 27613# --------------- 27614# Portably unset VAR. 27615as_fn_unset () 27616{ 27617 { eval $1=; unset $1;} 27618} 27619as_unset=as_fn_unset 27620# as_fn_append VAR VALUE 27621# ---------------------- 27622# Append the text in VALUE to the end of the definition contained in VAR. Take 27623# advantage of any shell optimizations that allow amortized linear growth over 27624# repeated appends, instead of the typical quadratic growth present in naive 27625# implementations. 27626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 27627 eval 'as_fn_append () 27628 { 27629 eval $1+=\$2 27630 }' 27631else 27632 as_fn_append () 27633 { 27634 eval $1=\$$1\$2 27635 } 27636fi # as_fn_append 27637 27638# as_fn_arith ARG... 27639# ------------------ 27640# Perform arithmetic evaluation on the ARGs, and store the result in the 27641# global $as_val. Take advantage of shells that can avoid forks. The arguments 27642# must be portable across $(()) and expr. 27643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 27644 eval 'as_fn_arith () 27645 { 27646 as_val=$(( $* )) 27647 }' 27648else 27649 as_fn_arith () 27650 { 27651 as_val=`expr "$@" || test $? -eq 1` 27652 } 27653fi # as_fn_arith 27654 27655 27656if expr a : '\(a\)' >/dev/null 2>&1 && 27657 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27658 as_expr=expr 27659else 27660 as_expr=false 27661fi 27662 27663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27664 as_basename=basename 27665else 27666 as_basename=false 27667fi 27668 27669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27670 as_dirname=dirname 27671else 27672 as_dirname=false 27673fi 27674 27675as_me=`$as_basename -- "$0" || 27676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27677 X"$0" : 'X\(//\)$' \| \ 27678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27679$as_echo X/"$0" | 27680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27681 s//\1/ 27682 q 27683 } 27684 /^X\/\(\/\/\)$/{ 27685 s//\1/ 27686 q 27687 } 27688 /^X\/\(\/\).*/{ 27689 s//\1/ 27690 q 27691 } 27692 s/.*/./; q'` 27693 27694# Avoid depending upon Character Ranges. 27695as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27697as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27698as_cr_digits='0123456789' 27699as_cr_alnum=$as_cr_Letters$as_cr_digits 27700 27701ECHO_C= ECHO_N= ECHO_T= 27702case `echo -n x` in #((((( 27703-n*) 27704 case `echo 'xy\c'` in 27705 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27706 xy) ECHO_C='\c';; 27707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 27708 ECHO_T=' ';; 27709 esac;; 27710*) 27711 ECHO_N='-n';; 27712esac 27713 27714rm -f conf$$ conf$$.exe conf$$.file 27715if test -d conf$$.dir; then 27716 rm -f conf$$.dir/conf$$.file 27717else 27718 rm -f conf$$.dir 27719 mkdir conf$$.dir 2>/dev/null 27720fi 27721if (echo >conf$$.file) 2>/dev/null; then 27722 if ln -s conf$$.file conf$$ 2>/dev/null; then 27723 as_ln_s='ln -s' 27724 # ... but there are two gotchas: 27725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27727 # In both cases, we have to default to `cp -p'. 27728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27729 as_ln_s='cp -p' 27730 elif ln conf$$.file conf$$ 2>/dev/null; then 27731 as_ln_s=ln 27732 else 27733 as_ln_s='cp -p' 27734 fi 27735else 27736 as_ln_s='cp -p' 27737fi 27738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27739rmdir conf$$.dir 2>/dev/null 27740 27741 27742# as_fn_mkdir_p 27743# ------------- 27744# Create "$as_dir" as a directory, including parents if necessary. 27745as_fn_mkdir_p () 27746{ 27747 27748 case $as_dir in #( 27749 -*) as_dir=./$as_dir;; 27750 esac 27751 test -d "$as_dir" || eval $as_mkdir_p || { 27752 as_dirs= 27753 while :; do 27754 case $as_dir in #( 27755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27756 *) as_qdir=$as_dir;; 27757 esac 27758 as_dirs="'$as_qdir' $as_dirs" 27759 as_dir=`$as_dirname -- "$as_dir" || 27760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27761 X"$as_dir" : 'X\(//\)[^/]' \| \ 27762 X"$as_dir" : 'X\(//\)$' \| \ 27763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27764$as_echo X"$as_dir" | 27765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27766 s//\1/ 27767 q 27768 } 27769 /^X\(\/\/\)[^/].*/{ 27770 s//\1/ 27771 q 27772 } 27773 /^X\(\/\/\)$/{ 27774 s//\1/ 27775 q 27776 } 27777 /^X\(\/\).*/{ 27778 s//\1/ 27779 q 27780 } 27781 s/.*/./; q'` 27782 test -d "$as_dir" && break 27783 done 27784 test -z "$as_dirs" || eval "mkdir $as_dirs" 27785 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 27786 27787 27788} # as_fn_mkdir_p 27789if mkdir -p . 2>/dev/null; then 27790 as_mkdir_p='mkdir -p "$as_dir"' 27791else 27792 test -d ./-p && rmdir ./-p 27793 as_mkdir_p=false 27794fi 27795 27796if test -x / >/dev/null 2>&1; then 27797 as_test_x='test -x' 27798else 27799 if ls -dL / >/dev/null 2>&1; then 27800 as_ls_L_option=L 27801 else 27802 as_ls_L_option= 27803 fi 27804 as_test_x=' 27805 eval sh -c '\'' 27806 if test -d "$1"; then 27807 test -d "$1/."; 27808 else 27809 case $1 in #( 27810 -*)set "./$1";; 27811 esac; 27812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 27813 ???[sx]*):;;*)false;;esac;fi 27814 '\'' sh 27815 ' 27816fi 27817as_executable_p=$as_test_x 27818 27819# Sed expression to map a string onto a valid CPP name. 27820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27821 27822# Sed expression to map a string onto a valid variable name. 27823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27824 27825 27826exec 6>&1 27827## ----------------------------------- ## 27828## Main body of $CONFIG_STATUS script. ## 27829## ----------------------------------- ## 27830_ASEOF 27831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27832 27833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27834# Save the log message, to keep $0 and so on meaningful, and to 27835# report actual input values of CONFIG_FILES etc. instead of their 27836# values after options handling. 27837ac_log=" 27838This file was extended by ntp $as_me 4.2.6, which was 27839generated by GNU Autoconf 2.65. Invocation command line was 27840 27841 CONFIG_FILES = $CONFIG_FILES 27842 CONFIG_HEADERS = $CONFIG_HEADERS 27843 CONFIG_LINKS = $CONFIG_LINKS 27844 CONFIG_COMMANDS = $CONFIG_COMMANDS 27845 $ $0 $@ 27846 27847on `(hostname || uname -n) 2>/dev/null | sed 1q` 27848" 27849 27850_ACEOF 27851 27852case $ac_config_files in *" 27853"*) set x $ac_config_files; shift; ac_config_files=$*;; 27854esac 27855 27856case $ac_config_headers in *" 27857"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27858esac 27859 27860 27861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27862# Files that config.status was made for. 27863config_files="$ac_config_files" 27864config_headers="$ac_config_headers" 27865config_commands="$ac_config_commands" 27866 27867_ACEOF 27868 27869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27870ac_cs_usage="\ 27871\`$as_me' instantiates files and other configuration actions 27872from templates according to the current configuration. Unless the files 27873and actions are specified as TAGs, all are instantiated by default. 27874 27875Usage: $0 [OPTION]... [TAG]... 27876 27877 -h, --help print this help, then exit 27878 -V, --version print version number and configuration settings, then exit 27879 --config print configuration, then exit 27880 -q, --quiet, --silent 27881 do not print progress messages 27882 -d, --debug don't remove temporary files 27883 --recheck update $as_me by reconfiguring in the same conditions 27884 --file=FILE[:TEMPLATE] 27885 instantiate the configuration file FILE 27886 --header=FILE[:TEMPLATE] 27887 instantiate the configuration header FILE 27888 27889Configuration files: 27890$config_files 27891 27892Configuration headers: 27893$config_headers 27894 27895Configuration commands: 27896$config_commands 27897 27898Report bugs to the package provider." 27899 27900_ACEOF 27901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27902ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27903ac_cs_version="\\ 27904ntp config.status 4.2.6 27905configured by $0, generated by GNU Autoconf 2.65, 27906 with options \\"\$ac_cs_config\\" 27907 27908Copyright (C) 2009 Free Software Foundation, Inc. 27909This config.status script is free software; the Free Software Foundation 27910gives unlimited permission to copy, distribute and modify it." 27911 27912ac_pwd='$ac_pwd' 27913srcdir='$srcdir' 27914INSTALL='$INSTALL' 27915MKDIR_P='$MKDIR_P' 27916AWK='$AWK' 27917test -n "\$AWK" || AWK=awk 27918_ACEOF 27919 27920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27921# The default lists apply if the user does not specify any file. 27922ac_need_defaults=: 27923while test $# != 0 27924do 27925 case $1 in 27926 --*=*) 27927 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27929 ac_shift=: 27930 ;; 27931 *) 27932 ac_option=$1 27933 ac_optarg=$2 27934 ac_shift=shift 27935 ;; 27936 esac 27937 27938 case $ac_option in 27939 # Handling of the options. 27940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27941 ac_cs_recheck=: ;; 27942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27943 $as_echo "$ac_cs_version"; exit ;; 27944 --config | --confi | --conf | --con | --co | --c ) 27945 $as_echo "$ac_cs_config"; exit ;; 27946 --debug | --debu | --deb | --de | --d | -d ) 27947 debug=: ;; 27948 --file | --fil | --fi | --f ) 27949 $ac_shift 27950 case $ac_optarg in 27951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27952 esac 27953 as_fn_append CONFIG_FILES " '$ac_optarg'" 27954 ac_need_defaults=false;; 27955 --header | --heade | --head | --hea ) 27956 $ac_shift 27957 case $ac_optarg in 27958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27959 esac 27960 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27961 ac_need_defaults=false;; 27962 --he | --h) 27963 # Conflict between --help and --header 27964 as_fn_error "ambiguous option: \`$1' 27965Try \`$0 --help' for more information.";; 27966 --help | --hel | -h ) 27967 $as_echo "$ac_cs_usage"; exit ;; 27968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27969 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27970 ac_cs_silent=: ;; 27971 27972 # This is an error. 27973 -*) as_fn_error "unrecognized option: \`$1' 27974Try \`$0 --help' for more information." ;; 27975 27976 *) as_fn_append ac_config_targets " $1" 27977 ac_need_defaults=false ;; 27978 27979 esac 27980 shift 27981done 27982 27983ac_configure_extra_args= 27984 27985if $ac_cs_silent; then 27986 exec 6>/dev/null 27987 ac_configure_extra_args="$ac_configure_extra_args --silent" 27988fi 27989 27990_ACEOF 27991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27992if \$ac_cs_recheck; then 27993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27994 shift 27995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27996 CONFIG_SHELL='$SHELL' 27997 export CONFIG_SHELL 27998 exec "\$@" 27999fi 28000 28001_ACEOF 28002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28003exec 5>>config.log 28004{ 28005 echo 28006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28007## Running $as_me. ## 28008_ASBOX 28009 $as_echo "$ac_log" 28010} >&5 28011 28012_ACEOF 28013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28014# 28015# INIT-COMMANDS 28016# 28017AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28018 28019_ACEOF 28020 28021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28022 28023# Handling of arguments. 28024for ac_config_target in $ac_config_targets 28025do 28026 case $ac_config_target in 28027 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28028 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28029 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 28030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28031 "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;; 28032 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 28033 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 28034 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 28035 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 28036 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 28037 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 28038 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 28039 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 28040 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 28041 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 28042 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 28043 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 28044 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 28045 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 28046 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 28047 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 28048 "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;; 28049 "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;; 28050 "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;; 28051 "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;; 28052 "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;; 28053 "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;; 28054 "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;; 28055 "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;; 28056 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 28057 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 28058 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 28059 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 28060 28061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 28062 esac 28063done 28064 28065 28066# If the user did not use the arguments to specify the items to instantiate, 28067# then the envvar interface is used. Set only those that are not. 28068# We use the long form for the default assignment because of an extremely 28069# bizarre bug on SunOS 4.1.3. 28070if $ac_need_defaults; then 28071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28074fi 28075 28076# Have a temporary directory for convenience. Make it in the build tree 28077# simply because there is no reason against having it here, and in addition, 28078# creating and moving files from /tmp can sometimes cause problems. 28079# Hook for its removal unless debugging. 28080# Note that there is a small window in which the directory will not be cleaned: 28081# after its creation but before its name has been assigned to `$tmp'. 28082$debug || 28083{ 28084 tmp= 28085 trap 'exit_status=$? 28086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 28087' 0 28088 trap 'as_fn_exit 1' 1 2 13 15 28089} 28090# Create a (secure) tmp directory for tmp files. 28091 28092{ 28093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28094 test -n "$tmp" && test -d "$tmp" 28095} || 28096{ 28097 tmp=./conf$$-$RANDOM 28098 (umask 077 && mkdir "$tmp") 28099} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 28100 28101# Set up the scripts for CONFIG_FILES section. 28102# No need to generate them if there are no CONFIG_FILES. 28103# This happens for instance with `./config.status config.h'. 28104if test -n "$CONFIG_FILES"; then 28105 28106 28107ac_cr=`echo X | tr X '\015'` 28108# On cygwin, bash can eat \r inside `` if the user requested igncr. 28109# But we know of no other shell where ac_cr would be empty at this 28110# point, so we can use a bashism as a fallback. 28111if test "x$ac_cr" = x; then 28112 eval ac_cr=\$\'\\r\' 28113fi 28114ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28115if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28116 ac_cs_awk_cr='\r' 28117else 28118 ac_cs_awk_cr=$ac_cr 28119fi 28120 28121echo 'BEGIN {' >"$tmp/subs1.awk" && 28122_ACEOF 28123 28124 28125{ 28126 echo "cat >conf$$subs.awk <<_ACEOF" && 28127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28128 echo "_ACEOF" 28129} >conf$$subs.sh || 28130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 28131ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 28132ac_delim='%!_!# ' 28133for ac_last_try in false false false false false :; do 28134 . ./conf$$subs.sh || 28135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 28136 28137 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28138 if test $ac_delim_n = $ac_delim_num; then 28139 break 28140 elif $ac_last_try; then 28141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 28142 else 28143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28144 fi 28145done 28146rm -f conf$$subs.sh 28147 28148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28149cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 28150_ACEOF 28151sed -n ' 28152h 28153s/^/S["/; s/!.*/"]=/ 28154p 28155g 28156s/^[^!]*!// 28157:repl 28158t repl 28159s/'"$ac_delim"'$// 28160t delim 28161:nl 28162h 28163s/\(.\{148\}\)..*/\1/ 28164t more1 28165s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28166p 28167n 28168b repl 28169:more1 28170s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28171p 28172g 28173s/.\{148\}// 28174t nl 28175:delim 28176h 28177s/\(.\{148\}\)..*/\1/ 28178t more2 28179s/["\\]/\\&/g; s/^/"/; s/$/"/ 28180p 28181b 28182:more2 28183s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28184p 28185g 28186s/.\{148\}// 28187t delim 28188' <conf$$subs.awk | sed ' 28189/^[^""]/{ 28190 N 28191 s/\n// 28192} 28193' >>$CONFIG_STATUS || ac_write_fail=1 28194rm -f conf$$subs.awk 28195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28196_ACAWK 28197cat >>"\$tmp/subs1.awk" <<_ACAWK && 28198 for (key in S) S_is_set[key] = 1 28199 FS = "" 28200 28201} 28202{ 28203 line = $ 0 28204 nfields = split(line, field, "@") 28205 substed = 0 28206 len = length(field[1]) 28207 for (i = 2; i < nfields; i++) { 28208 key = field[i] 28209 keylen = length(key) 28210 if (S_is_set[key]) { 28211 value = S[key] 28212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28213 len += length(value) + length(field[++i]) 28214 substed = 1 28215 } else 28216 len += 1 + keylen 28217 } 28218 28219 print line 28220} 28221 28222_ACAWK 28223_ACEOF 28224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28225if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28226 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28227else 28228 cat 28229fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 28230 || as_fn_error "could not setup config files machinery" "$LINENO" 5 28231_ACEOF 28232 28233# VPATH may cause trouble with some makes, so we remove $(srcdir), 28234# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28235# trailing colons and then remove the whole line if VPATH becomes empty 28236# (actually we leave an empty line to preserve line numbers). 28237if test "x$srcdir" = x.; then 28238 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28239s/:*\$(srcdir):*/:/ 28240s/:*\${srcdir}:*/:/ 28241s/:*@srcdir@:*/:/ 28242s/^\([^=]*=[ ]*\):*/\1/ 28243s/:*$// 28244s/^[^=]*=[ ]*$// 28245}' 28246fi 28247 28248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28249fi # test -n "$CONFIG_FILES" 28250 28251# Set up the scripts for CONFIG_HEADERS section. 28252# No need to generate them if there are no CONFIG_HEADERS. 28253# This happens for instance with `./config.status Makefile'. 28254if test -n "$CONFIG_HEADERS"; then 28255cat >"$tmp/defines.awk" <<\_ACAWK || 28256BEGIN { 28257_ACEOF 28258 28259# Transform confdefs.h into an awk script `defines.awk', embedded as 28260# here-document in config.status, that substitutes the proper values into 28261# config.h.in to produce config.h. 28262 28263# Create a delimiter string that does not exist in confdefs.h, to ease 28264# handling of long lines. 28265ac_delim='%!_!# ' 28266for ac_last_try in false false :; do 28267 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 28268 if test -z "$ac_t"; then 28269 break 28270 elif $ac_last_try; then 28271 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 28272 else 28273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28274 fi 28275done 28276 28277# For the awk script, D is an array of macro values keyed by name, 28278# likewise P contains macro parameters if any. Preserve backslash 28279# newline sequences. 28280 28281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28282sed -n ' 28283s/.\{148\}/&'"$ac_delim"'/g 28284t rset 28285:rset 28286s/^[ ]*#[ ]*define[ ][ ]*/ / 28287t def 28288d 28289:def 28290s/\\$// 28291t bsnl 28292s/["\\]/\\&/g 28293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28294D["\1"]=" \3"/p 28295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28296d 28297:bsnl 28298s/["\\]/\\&/g 28299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28300D["\1"]=" \3\\\\\\n"\\/p 28301t cont 28302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28303t cont 28304d 28305:cont 28306n 28307s/.\{148\}/&'"$ac_delim"'/g 28308t clear 28309:clear 28310s/\\$// 28311t bsnlc 28312s/["\\]/\\&/g; s/^/"/; s/$/"/p 28313d 28314:bsnlc 28315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28316b cont 28317' <confdefs.h | sed ' 28318s/'"$ac_delim"'/"\\\ 28319"/g' >>$CONFIG_STATUS || ac_write_fail=1 28320 28321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28322 for (key in D) D_is_set[key] = 1 28323 FS = "" 28324} 28325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28326 line = \$ 0 28327 split(line, arg, " ") 28328 if (arg[1] == "#") { 28329 defundef = arg[2] 28330 mac1 = arg[3] 28331 } else { 28332 defundef = substr(arg[1], 2) 28333 mac1 = arg[2] 28334 } 28335 split(mac1, mac2, "(") #) 28336 macro = mac2[1] 28337 prefix = substr(line, 1, index(line, defundef) - 1) 28338 if (D_is_set[macro]) { 28339 # Preserve the white space surrounding the "#". 28340 print prefix "define", macro P[macro] D[macro] 28341 next 28342 } else { 28343 # Replace #undef with comments. This is necessary, for example, 28344 # in the case of _POSIX_SOURCE, which is predefined and required 28345 # on some systems where configure will not decide to define it. 28346 if (defundef == "undef") { 28347 print "/*", prefix defundef, macro, "*/" 28348 next 28349 } 28350 } 28351} 28352{ print } 28353_ACAWK 28354_ACEOF 28355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28356 as_fn_error "could not setup config headers machinery" "$LINENO" 5 28357fi # test -n "$CONFIG_HEADERS" 28358 28359 28360eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28361shift 28362for ac_tag 28363do 28364 case $ac_tag in 28365 :[FHLC]) ac_mode=$ac_tag; continue;; 28366 esac 28367 case $ac_mode$ac_tag in 28368 :[FHL]*:*);; 28369 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 28370 :[FH]-) ac_tag=-:-;; 28371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28372 esac 28373 ac_save_IFS=$IFS 28374 IFS=: 28375 set x $ac_tag 28376 IFS=$ac_save_IFS 28377 shift 28378 ac_file=$1 28379 shift 28380 28381 case $ac_mode in 28382 :L) ac_source=$1;; 28383 :[FH]) 28384 ac_file_inputs= 28385 for ac_f 28386 do 28387 case $ac_f in 28388 -) ac_f="$tmp/stdin";; 28389 *) # Look for the file first in the build tree, then in the source tree 28390 # (if the path is not absolute). The absolute path cannot be DOS-style, 28391 # because $ac_f cannot contain `:'. 28392 test -f "$ac_f" || 28393 case $ac_f in 28394 [\\/$]*) false;; 28395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28396 esac || 28397 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 28398 esac 28399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28400 as_fn_append ac_file_inputs " '$ac_f'" 28401 done 28402 28403 # Let's still pretend it is `configure' which instantiates (i.e., don't 28404 # use $as_me), people would be surprised to read: 28405 # /* config.h. Generated by config.status. */ 28406 configure_input='Generated from '` 28407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28408 `' by configure.' 28409 if test x"$ac_file" != x-; then 28410 configure_input="$ac_file. $configure_input" 28411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 28412$as_echo "$as_me: creating $ac_file" >&6;} 28413 fi 28414 # Neutralize special characters interpreted by sed in replacement strings. 28415 case $configure_input in #( 28416 *\&* | *\|* | *\\* ) 28417 ac_sed_conf_input=`$as_echo "$configure_input" | 28418 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28419 *) ac_sed_conf_input=$configure_input;; 28420 esac 28421 28422 case $ac_tag in 28423 *:-:* | *:-) cat >"$tmp/stdin" \ 28424 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 28425 esac 28426 ;; 28427 esac 28428 28429 ac_dir=`$as_dirname -- "$ac_file" || 28430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28431 X"$ac_file" : 'X\(//\)[^/]' \| \ 28432 X"$ac_file" : 'X\(//\)$' \| \ 28433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28434$as_echo X"$ac_file" | 28435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28436 s//\1/ 28437 q 28438 } 28439 /^X\(\/\/\)[^/].*/{ 28440 s//\1/ 28441 q 28442 } 28443 /^X\(\/\/\)$/{ 28444 s//\1/ 28445 q 28446 } 28447 /^X\(\/\).*/{ 28448 s//\1/ 28449 q 28450 } 28451 s/.*/./; q'` 28452 as_dir="$ac_dir"; as_fn_mkdir_p 28453 ac_builddir=. 28454 28455case "$ac_dir" in 28456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28457*) 28458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28459 # A ".." for each directory in $ac_dir_suffix. 28460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28461 case $ac_top_builddir_sub in 28462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28464 esac ;; 28465esac 28466ac_abs_top_builddir=$ac_pwd 28467ac_abs_builddir=$ac_pwd$ac_dir_suffix 28468# for backward compatibility: 28469ac_top_builddir=$ac_top_build_prefix 28470 28471case $srcdir in 28472 .) # We are building in place. 28473 ac_srcdir=. 28474 ac_top_srcdir=$ac_top_builddir_sub 28475 ac_abs_top_srcdir=$ac_pwd ;; 28476 [\\/]* | ?:[\\/]* ) # Absolute name. 28477 ac_srcdir=$srcdir$ac_dir_suffix; 28478 ac_top_srcdir=$srcdir 28479 ac_abs_top_srcdir=$srcdir ;; 28480 *) # Relative name. 28481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28482 ac_top_srcdir=$ac_top_build_prefix$srcdir 28483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28484esac 28485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28486 28487 28488 case $ac_mode in 28489 :F) 28490 # 28491 # CONFIG_FILE 28492 # 28493 28494 case $INSTALL in 28495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28497 esac 28498 ac_MKDIR_P=$MKDIR_P 28499 case $MKDIR_P in 28500 [\\/$]* | ?:[\\/]* ) ;; 28501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28502 esac 28503_ACEOF 28504 28505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28506# If the template does not know about datarootdir, expand it. 28507# FIXME: This hack should be removed a few years after 2.60. 28508ac_datarootdir_hack=; ac_datarootdir_seen= 28509ac_sed_dataroot=' 28510/datarootdir/ { 28511 p 28512 q 28513} 28514/@datadir@/p 28515/@docdir@/p 28516/@infodir@/p 28517/@localedir@/p 28518/@mandir@/p' 28519case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28520*datarootdir*) ac_datarootdir_seen=yes;; 28521*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28523$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28524_ACEOF 28525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28526 ac_datarootdir_hack=' 28527 s&@datadir@&$datadir&g 28528 s&@docdir@&$docdir&g 28529 s&@infodir@&$infodir&g 28530 s&@localedir@&$localedir&g 28531 s&@mandir@&$mandir&g 28532 s&\\\${datarootdir}&$datarootdir&g' ;; 28533esac 28534_ACEOF 28535 28536# Neutralize VPATH when `$srcdir' = `.'. 28537# Shell code in configure.ac might set extrasub. 28538# FIXME: do we really want to maintain this feature? 28539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28540ac_sed_extra="$ac_vpsub 28541$extrasub 28542_ACEOF 28543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28544:t 28545/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28546s|@configure_input@|$ac_sed_conf_input|;t t 28547s&@top_builddir@&$ac_top_builddir_sub&;t t 28548s&@top_build_prefix@&$ac_top_build_prefix&;t t 28549s&@srcdir@&$ac_srcdir&;t t 28550s&@abs_srcdir@&$ac_abs_srcdir&;t t 28551s&@top_srcdir@&$ac_top_srcdir&;t t 28552s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28553s&@builddir@&$ac_builddir&;t t 28554s&@abs_builddir@&$ac_abs_builddir&;t t 28555s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28556s&@INSTALL@&$ac_INSTALL&;t t 28557s&@MKDIR_P@&$ac_MKDIR_P&;t t 28558$ac_datarootdir_hack 28559" 28560eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 28561 || as_fn_error "could not create $ac_file" "$LINENO" 5 28562 28563test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 28565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 28566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28567which seems to be undefined. Please make sure it is defined." >&5 28568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28569which seems to be undefined. Please make sure it is defined." >&2;} 28570 28571 rm -f "$tmp/stdin" 28572 case $ac_file in 28573 -) cat "$tmp/out" && rm -f "$tmp/out";; 28574 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 28575 esac \ 28576 || as_fn_error "could not create $ac_file" "$LINENO" 5 28577 ;; 28578 :H) 28579 # 28580 # CONFIG_HEADER 28581 # 28582 if test x"$ac_file" != x-; then 28583 { 28584 $as_echo "/* $configure_input */" \ 28585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 28586 } >"$tmp/config.h" \ 28587 || as_fn_error "could not create $ac_file" "$LINENO" 5 28588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28590$as_echo "$as_me: $ac_file is unchanged" >&6;} 28591 else 28592 rm -f "$ac_file" 28593 mv "$tmp/config.h" "$ac_file" \ 28594 || as_fn_error "could not create $ac_file" "$LINENO" 5 28595 fi 28596 else 28597 $as_echo "/* $configure_input */" \ 28598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 28599 || as_fn_error "could not create -" "$LINENO" 5 28600 fi 28601# Compute "$ac_file"'s index in $config_headers. 28602_am_arg="$ac_file" 28603_am_stamp_count=1 28604for _am_header in $config_headers :; do 28605 case $_am_header in 28606 $_am_arg | $_am_arg:* ) 28607 break ;; 28608 * ) 28609 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28610 esac 28611done 28612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28614 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28615 X"$_am_arg" : 'X\(//\)$' \| \ 28616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28617$as_echo X"$_am_arg" | 28618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28619 s//\1/ 28620 q 28621 } 28622 /^X\(\/\/\)[^/].*/{ 28623 s//\1/ 28624 q 28625 } 28626 /^X\(\/\/\)$/{ 28627 s//\1/ 28628 q 28629 } 28630 /^X\(\/\).*/{ 28631 s//\1/ 28632 q 28633 } 28634 s/.*/./; q'`/stamp-h$_am_stamp_count 28635 ;; 28636 28637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28638$as_echo "$as_me: executing $ac_file commands" >&6;} 28639 ;; 28640 esac 28641 28642 28643 case $ac_file$ac_mode in 28644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 28645 # Autoconf 2.62 quotes --file arguments for eval, but not when files 28646 # are listed without --file. Let's play safe and only enable the eval 28647 # if we detect the quoting. 28648 case $CONFIG_FILES in 28649 *\'*) eval set x "$CONFIG_FILES" ;; 28650 *) set x $CONFIG_FILES ;; 28651 esac 28652 shift 28653 for mf 28654 do 28655 # Strip MF so we end up with the name of the file. 28656 mf=`echo "$mf" | sed -e 's/:.*$//'` 28657 # Check whether this is an Automake generated Makefile or not. 28658 # We used to match only the files named `Makefile.in', but 28659 # some people rename them; so instead we look at the file content. 28660 # Grep'ing the first line is not enough: some people post-process 28661 # each Makefile.in and add a new line on top of each file to say so. 28662 # Grep'ing the whole file is not good either: AIX grep has a line 28663 # limit of 2048, but all sed's we know have understand at least 4000. 28664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28665 dirpart=`$as_dirname -- "$mf" || 28666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28667 X"$mf" : 'X\(//\)[^/]' \| \ 28668 X"$mf" : 'X\(//\)$' \| \ 28669 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28670$as_echo X"$mf" | 28671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28672 s//\1/ 28673 q 28674 } 28675 /^X\(\/\/\)[^/].*/{ 28676 s//\1/ 28677 q 28678 } 28679 /^X\(\/\/\)$/{ 28680 s//\1/ 28681 q 28682 } 28683 /^X\(\/\).*/{ 28684 s//\1/ 28685 q 28686 } 28687 s/.*/./; q'` 28688 else 28689 continue 28690 fi 28691 # Extract the definition of DEPDIR, am__include, and am__quote 28692 # from the Makefile without running `make'. 28693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28694 test -z "$DEPDIR" && continue 28695 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28696 test -z "am__include" && continue 28697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28698 # When using ansi2knr, U may be empty or an underscore; expand it 28699 U=`sed -n 's/^U = //p' < "$mf"` 28700 # Find all dependency output files, they are included files with 28701 # $(DEPDIR) in their names. We invoke sed twice because it is the 28702 # simplest approach to changing $(DEPDIR) to its actual value in the 28703 # expansion. 28704 for file in `sed -n " 28705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28707 # Make sure the directory exists. 28708 test -f "$dirpart/$file" && continue 28709 fdir=`$as_dirname -- "$file" || 28710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28711 X"$file" : 'X\(//\)[^/]' \| \ 28712 X"$file" : 'X\(//\)$' \| \ 28713 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28714$as_echo X"$file" | 28715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28716 s//\1/ 28717 q 28718 } 28719 /^X\(\/\/\)[^/].*/{ 28720 s//\1/ 28721 q 28722 } 28723 /^X\(\/\/\)$/{ 28724 s//\1/ 28725 q 28726 } 28727 /^X\(\/\).*/{ 28728 s//\1/ 28729 q 28730 } 28731 s/.*/./; q'` 28732 as_dir=$dirpart/$fdir; as_fn_mkdir_p 28733 # echo "creating $dirpart/$file" 28734 echo '# dummy' > "$dirpart/$file" 28735 done 28736 done 28737} 28738 ;; 28739 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 28740 "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;; 28741 "scripts/checktime":F) chmod +x scripts/checktime ;; 28742 "scripts/freq_adj":F) chmod +x scripts/freq_adj ;; 28743 "scripts/html2man":F) chmod +x scripts/html2man ;; 28744 "scripts/mkver":F) chmod +x scripts/mkver ;; 28745 "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;; 28746 "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;; 28747 "scripts/ntptrace":F) chmod +x scripts/ntptrace ;; 28748 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 28749 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 28750 "scripts/summary":F) chmod +x scripts/summary ;; 28751 28752 esac 28753done # for ac_tag 28754 28755 28756as_fn_exit 0 28757_ACEOF 28758ac_clean_files=$ac_clean_files_save 28759 28760test $ac_write_fail = 0 || 28761 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 28762 28763 28764# configure is writing to config.log, and then calls config.status. 28765# config.status does its own redirection, appending to config.log. 28766# Unfortunately, on DOS this fails, as config.log is still kept open 28767# by configure, so config.status won't be able to write to it; its 28768# output is simply discarded. So we exec the FD to /dev/null, 28769# effectively closing config.log, so it can be properly (re)opened and 28770# appended to by config.status. When coming back to configure, we 28771# need to make the FD available again. 28772if test "$no_create" != yes; then 28773 ac_cs_success=: 28774 ac_config_status_args= 28775 test "$silent" = yes && 28776 ac_config_status_args="$ac_config_status_args --quiet" 28777 exec 5>/dev/null 28778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28779 exec 5>>config.log 28780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28781 # would make configure fail if this is the last instruction. 28782 $ac_cs_success || as_fn_exit $? 28783fi 28784 28785# 28786# CONFIG_SUBDIRS section. 28787# 28788if test "$no_recursion" != yes; then 28789 28790 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 28791 # so they do not pile up. 28792 ac_sub_configure_args= 28793 ac_prev= 28794 eval "set x $ac_configure_args" 28795 shift 28796 for ac_arg 28797 do 28798 if test -n "$ac_prev"; then 28799 ac_prev= 28800 continue 28801 fi 28802 case $ac_arg in 28803 -cache-file | --cache-file | --cache-fil | --cache-fi \ 28804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 28805 ac_prev=cache_file ;; 28806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 28807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 28808 | --c=*) 28809 ;; 28810 --config-cache | -C) 28811 ;; 28812 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 28813 ac_prev=srcdir ;; 28814 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 28815 ;; 28816 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28817 ac_prev=prefix ;; 28818 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28819 ;; 28820 --disable-option-checking) 28821 ;; 28822 *) 28823 case $ac_arg in 28824 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28825 esac 28826 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 28827 esac 28828 done 28829 28830 # Always prepend --prefix to ensure using the same prefix 28831 # in subdir configurations. 28832 ac_arg="--prefix=$prefix" 28833 case $ac_arg in 28834 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28835 esac 28836 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 28837 28838 # Pass --silent 28839 if test "$silent" = yes; then 28840 ac_sub_configure_args="--silent $ac_sub_configure_args" 28841 fi 28842 28843 # Always prepend --disable-option-checking to silence warnings, since 28844 # different subdirs can have different --enable and --with options. 28845 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 28846 28847 ac_popdir=`pwd` 28848 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 28849 28850 # Do not complain, so a configure script can configure whichever 28851 # parts of a large source tree are present. 28852 test -d "$srcdir/$ac_dir" || continue 28853 28854 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 28855 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 28856 $as_echo "$ac_msg" >&6 28857 as_dir="$ac_dir"; as_fn_mkdir_p 28858 ac_builddir=. 28859 28860case "$ac_dir" in 28861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28862*) 28863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28864 # A ".." for each directory in $ac_dir_suffix. 28865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28866 case $ac_top_builddir_sub in 28867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28869 esac ;; 28870esac 28871ac_abs_top_builddir=$ac_pwd 28872ac_abs_builddir=$ac_pwd$ac_dir_suffix 28873# for backward compatibility: 28874ac_top_builddir=$ac_top_build_prefix 28875 28876case $srcdir in 28877 .) # We are building in place. 28878 ac_srcdir=. 28879 ac_top_srcdir=$ac_top_builddir_sub 28880 ac_abs_top_srcdir=$ac_pwd ;; 28881 [\\/]* | ?:[\\/]* ) # Absolute name. 28882 ac_srcdir=$srcdir$ac_dir_suffix; 28883 ac_top_srcdir=$srcdir 28884 ac_abs_top_srcdir=$srcdir ;; 28885 *) # Relative name. 28886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28887 ac_top_srcdir=$ac_top_build_prefix$srcdir 28888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28889esac 28890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28891 28892 28893 cd "$ac_dir" 28894 28895 # Check for guested configure; otherwise get Cygnus style configure. 28896 if test -f "$ac_srcdir/configure.gnu"; then 28897 ac_sub_configure=$ac_srcdir/configure.gnu 28898 elif test -f "$ac_srcdir/configure"; then 28899 ac_sub_configure=$ac_srcdir/configure 28900 elif test -f "$ac_srcdir/configure.in"; then 28901 # This should be Cygnus configure. 28902 ac_sub_configure=$ac_aux_dir/configure 28903 else 28904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 28905$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 28906 ac_sub_configure= 28907 fi 28908 28909 # The recursion is here. 28910 if test -n "$ac_sub_configure"; then 28911 # Make the cache file name correct relative to the subdirectory. 28912 case $cache_file in 28913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 28914 *) # Relative name. 28915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 28916 esac 28917 28918 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 28919$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 28920 # The eval makes quoting arguments work. 28921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 28922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 28923 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 28924 fi 28925 28926 cd "$ac_popdir" 28927 done 28928fi 28929if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28931$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28932fi 28933 28934