1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p14. 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugs.ntp.org./ about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ntp' 592PACKAGE_TARNAME='ntp' 593PACKAGE_VERSION='4.2.8p14' 594PACKAGE_STRING='ntp 4.2.8p14' 595PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596PACKAGE_URL='http://www.ntp.org./' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639subdirs 640PERLLIBDIR 641NTP_KEYSDIR 642BUILD_TEST_NTP_SIGND_FALSE 643BUILD_TEST_NTP_SIGND_TRUE 644BUILD_TEST_NTP_SCANNER_FALSE 645BUILD_TEST_NTP_SCANNER_TRUE 646BUILD_TEST_NTP_RESTRICT_FALSE 647BUILD_TEST_NTP_RESTRICT_TRUE 648GTEST_AVAILABLE_FALSE 649GTEST_AVAILABLE_TRUE 650GTEST_CPPFLAGS 651GTEST_CXXFLAGS 652GTEST_LIBS 653GTEST_LDFLAGS 654GTEST_CONFIG 655UNITYBUILD_AVAILABLE_FALSE 656UNITYBUILD_AVAILABLE_TRUE 657PATH_RUBY 658HAVE_LEAPSMEARINTERVAL 659SAVECONFIG_ENABLED_FALSE 660SAVECONFIG_ENABLED_TRUE 661LSCF 662MAKE_NTPSNMPD 663SNMP_CFLAGS 664SNMP_CPPFLAGS 665SNMP_LIBS 666BUILD_SNTP_FALSE 667BUILD_SNTP_TRUE 668SNTP 669MAKE_NTPDSIM 670MAKE_LIBNTPSIM 671MAKE_TIMETRIM 672MAKE_TICKADJ 673MAKE_NTPTIME 674MAKE_ADJTIMED 675CHUTEST 676PROPDELAY 677MAKE_PARSEKMODULE 678DCFD 679TESTDCF 680MAKE_CHECK_LAYOUT 681VER_SUFFIX 682MAKE_CHECK_Y2K 683MAKE_LIBPARSE_KERNEL 684MAKE_LIBPARSE 685LIBPARSE 686HAVE_RLIMIT_STACK 687HAVE_RLIMIT_MEMLOCK 688LDADD_NLIST 689PATH_NET_SNMP_CONFIG 690CONFIG_SHELL 691PATH_TEST 692PATH_PERL 693LIBOBJS 694PTHREADS_FALSE 695PTHREADS_TRUE 696LIBISC_PTHREADS_NOTHREADS 697PTHREAD_LIBS 698LTHREAD_LIBS 699BUILD_THREAD 700HAVE_INLINE 701LDADD_LIBUTIL 702ALLOCA 703LIBM 704EDITLINE_LIBS 705LDADD_LIBNTP 706NTP_CROSSCOMPILE_FALSE 707NTP_CROSSCOMPILE_TRUE 708BUILD_LIBEVENT_FALSE 709BUILD_LIBEVENT_TRUE 710LDADD_LIBEVENT 711CPPFLAGS_LIBEVENT 712CFLAGS_LIBEVENT 713PKG_CONFIG 714LIBOPTS_DIR 715LIBOPTS_CFLAGS 716LIBOPTS_LDADD 717NEED_LIBOPTS_FALSE 718NEED_LIBOPTS_TRUE 719INSTALL_LIBOPTS_FALSE 720INSTALL_LIBOPTS_TRUE 721POSIX_SHELL 722GL_GENERATE_STDNORETURN_H_FALSE 723GL_GENERATE_STDNORETURN_H_TRUE 724STDNORETURN_H 725LIBTOOL_DEPS 726LT_SYS_LIBRARY_PATH 727OTOOL64 728OTOOL 729LIPO 730NMEDIT 731DSYMUTIL 732MANIFEST_TOOL 733RANLIB 734DLLTOOL 735OBJDUMP 736LN_S 737NM 738ac_ct_DUMPBIN 739DUMPBIN 740LD 741FGREP 742SED 743LIBTOOL 744ac_ct_AR 745AR 746INSTALL_UPDATE_LEAP_FALSE 747INSTALL_UPDATE_LEAP_TRUE 748UPDATE_LEAP_NI 749UPDATE_LEAP_MS 750UPDATE_LEAP_DS 751UPDATE_LEAP_DL 752UPDATE_LEAP_DB 753TIMETRIM_NI 754TIMETRIM_MS 755TIMETRIM_DS 756TIMETRIM_DL 757TIMETRIM_DB 758TICKADJ_NI 759TICKADJ_MS 760TICKADJ_DS 761TICKADJ_DL 762TICKADJ_DB 763SNTP_NI 764SNTP_MS 765SNTP_DS 766SNTP_DL 767SNTP_DB 768NTP_WAIT_NI 769NTP_WAIT_MS 770NTP_WAIT_DS 771NTP_WAIT_DL 772NTP_WAIT_DB 773NTP_KEYGEN_NI 774NTP_KEYGEN_MS 775NTP_KEYGEN_DS 776NTP_KEYGEN_DL 777NTP_KEYGEN_DB 778NTPTRACE_NI 779NTPTRACE_MS 780NTPTRACE_DS 781NTPTRACE_DL 782NTPTRACE_DB 783NTPTIME_NI 784NTPTIME_MS 785NTPTIME_DS 786NTPTIME_DL 787NTPTIME_DB 788INSTALL_NTPSWEEP_FALSE 789INSTALL_NTPSWEEP_TRUE 790NTPSWEEP_NI 791NTPSWEEP_MS 792NTPSWEEP_DS 793NTPSWEEP_DL 794NTPSWEEP_DB 795NTPSNMPD_NI 796NTPSNMPD_MS 797NTPSNMPD_DS 798NTPSNMPD_DL 799NTPSNMPD_DB 800NTPQ_NI 801NTPQ_MS 802NTPQ_DS 803NTPQ_DL 804NTPQ_DB 805NTPD_NI 806NTPD_MS 807NTPD_DS 808NTPD_DL 809NTPD_DB 810NTPDSIM_NI 811NTPDSIM_MS 812NTPDSIM_DS 813NTPDSIM_DL 814NTPDSIM_DB 815NTPDC_NI 816NTPDC_MS 817NTPDC_DS 818NTPDC_DL 819NTPDC_DB 820NTPDATE_NI 821NTPDATE_MS 822NTPDATE_DS 823NTPDATE_DL 824NTPDATE_DB 825MANTAGFMT 826CALC_TICKADJ_NI 827CALC_TICKADJ_MS 828CALC_TICKADJ_DS 829CALC_TICKADJ_DL 830CALC_TICKADJ_DB 831WANT_CALC_TICKADJ_MS_FALSE 832WANT_CALC_TICKADJ_MS_TRUE 833VPATH_HACK_FALSE 834VPATH_HACK_TRUE 835NTP_HARD_LDFLAGS 836NTP_HARD_CPPFLAGS 837NTP_HARD_CFLAGS 838YFLAGS 839YACC 840LDFLAGS_NTP 841LDADD_NTP 842CPPFLAGS_NTP 843CFLAGS_NTP 844EGREP 845GREP 846CPP 847am__fastdepCC_FALSE 848am__fastdepCC_TRUE 849CCDEPMODE 850am__nodep 851AMDEPBACKSLASH 852AMDEP_FALSE 853AMDEP_TRUE 854am__quote 855am__include 856DEPDIR 857OBJEXT 858EXEEXT 859ac_ct_CC 860CPPFLAGS 861LDFLAGS 862CFLAGS 863CC 864host_os 865host_vendor 866host_cpu 867host 868build_os 869build_vendor 870build_cpu 871build 872AM_BACKSLASH 873AM_DEFAULT_VERBOSITY 874AM_DEFAULT_V 875AM_V 876am__untar 877am__tar 878AMTAR 879am__leading_dot 880SET_MAKE 881AWK 882mkdir_p 883MKDIR_P 884INSTALL_STRIP_PROGRAM 885STRIP 886install_sh 887MAKEINFO 888AUTOHEADER 889AUTOMAKE 890AUTOCONF 891ACLOCAL 892VERSION 893PACKAGE 894CYGPATH_W 895am__isrc 896INSTALL_DATA 897INSTALL_SCRIPT 898INSTALL_PROGRAM 899target_alias 900host_alias 901build_alias 902LIBS 903ECHO_T 904ECHO_N 905ECHO_C 906DEFS 907mandir 908localedir 909libdir 910psdir 911pdfdir 912dvidir 913htmldir 914infodir 915docdir 916oldincludedir 917includedir 918localstatedir 919sharedstatedir 920sysconfdir 921datadir 922datarootdir 923libexecdir 924sbindir 925bindir 926program_transform_name 927prefix 928exec_prefix 929PACKAGE_URL 930PACKAGE_BUGREPORT 931PACKAGE_STRING 932PACKAGE_VERSION 933PACKAGE_TARNAME 934PACKAGE_NAME 935PATH_SEPARATOR 936SHELL' 937ac_subst_files='calc_tickadj_opts 938ntp_wait_opts 939ntpsweep_opts 940ntptrace_opts 941summary_opts 942plot_summary_opts' 943ac_user_opts=' 944enable_option_checking 945enable_silent_rules 946enable_dependency_tracking 947with_hardenfile 948with_locfile 949enable_shared 950enable_static 951with_pic 952enable_fast_install 953with_aix_soname 954with_gnu_ld 955with_sysroot 956enable_libtool_lock 957enable_nls 958enable_local_libopts 959enable_libopts_install 960with_autoopts_config 961enable_local_libevent 962with_lineeditlibs 963enable_debugging 964enable_thread_support 965with_threads 966with_yielding_select 967enable_c99_snprintf 968enable_clockctl 969enable_linuxcaps 970enable_solarisprivs 971enable_trustedbsd_mac 972enable_signalled_io 973with_arlib 974with_net_snmp_config 975enable_libseccomp 976with_stack_limit 977with_memlock 978enable_debug_timing 979enable_dst_minutes 980enable_ignore_dns_errors 981enable_BANCOMM 982enable_GPSVME 983enable_all_clocks 984enable_ACTS 985enable_ARBITER 986enable_ARCRON_MSF 987enable_AS2201 988enable_ATOM 989enable_CHRONOLOG 990enable_CHU 991enable_AUDIO_CHU 992enable_DATUM 993enable_DUMBCLOCK 994enable_FG 995enable_HEATH 996enable_HOPFSERIAL 997enable_HOPFPCI 998enable_HPGPS 999enable_IRIG 1000enable_JJY 1001enable_JUPITER 1002enable_LEITCH 1003enable_LOCAL_CLOCK 1004enable_MX4200 1005enable_NEOCLOCK4X 1006enable_NMEA 1007enable_GPSD 1008enable_ONCORE 1009enable_PALISADE 1010enable_PCF 1011enable_PST 1012enable_RIPENCC 1013enable_SHM 1014enable_SPECTRACOM 1015enable_TPRO 1016enable_TRUETIME 1017enable_TT560 1018enable_ULINK 1019enable_TSYNCPCI 1020enable_WWV 1021enable_ZYFER 1022enable_parse_clocks 1023enable_COMPUTIME 1024enable_DCF7000 1025enable_HOPF6021 1026enable_MEINBERG 1027enable_RAWDCF 1028enable_RCC8000 1029enable_SCHMID 1030enable_TRIMTAIP 1031enable_TRIMTSIP 1032enable_WHARTON 1033enable_VARITEXT 1034enable_SEL240X 1035with_crypto 1036with_openssl_libdir 1037with_openssl_incdir 1038with_rpath 1039enable_openssl_random 1040enable_autokey 1041enable_kmem 1042enable_accurate_adjtime 1043enable_tick 1044enable_tickadj 1045enable_simulator 1046with_sntp 1047with_ntpsnmpd 1048enable_slew_always 1049enable_step_slew 1050enable_ntpdate_step 1051enable_hourly_todr_sync 1052enable_kernel_fll_bug 1053enable_bug1243_fix 1054enable_bug3020_fix 1055enable_bug3527_fix 1056enable_irig_sawtooth 1057enable_nist 1058enable_ntp_signd 1059enable_ipv6 1060with_kame 1061enable_getifaddrs 1062enable_saveconfig 1063enable_leap_smear 1064enable_dynamic_interleave 1065with_gtest 1066enable_problem_tests 1067' 1068 ac_precious_vars='build_alias 1069host_alias 1070target_alias 1071CC 1072CFLAGS 1073LDFLAGS 1074LIBS 1075CPPFLAGS 1076CPP 1077YACC 1078YFLAGS 1079LT_SYS_LIBRARY_PATH' 1080ac_subdirs_all='sntp' 1081 1082# Initialize some variables set by options. 1083ac_init_help= 1084ac_init_version=false 1085ac_unrecognized_opts= 1086ac_unrecognized_sep= 1087# The variables have the same names as the options, with 1088# dashes changed to underlines. 1089cache_file=/dev/null 1090exec_prefix=NONE 1091no_create= 1092no_recursion= 1093prefix=NONE 1094program_prefix=NONE 1095program_suffix=NONE 1096program_transform_name=s,x,x, 1097silent= 1098site= 1099srcdir= 1100verbose= 1101x_includes=NONE 1102x_libraries=NONE 1103 1104# Installation directory options. 1105# These are left unexpanded so users can "make install exec_prefix=/foo" 1106# and all the variables that are supposed to be based on exec_prefix 1107# by default will actually change. 1108# Use braces instead of parens because sh, perl, etc. also accept them. 1109# (The list follows the same order as the GNU Coding Standards.) 1110bindir='${exec_prefix}/bin' 1111sbindir='${exec_prefix}/sbin' 1112libexecdir='${exec_prefix}/libexec' 1113datarootdir='${prefix}/share' 1114datadir='${datarootdir}' 1115sysconfdir='${prefix}/etc' 1116sharedstatedir='${prefix}/com' 1117localstatedir='${prefix}/var' 1118includedir='${prefix}/include' 1119oldincludedir='/usr/include' 1120docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1121infodir='${datarootdir}/info' 1122htmldir='${docdir}' 1123dvidir='${docdir}' 1124pdfdir='${docdir}' 1125psdir='${docdir}' 1126libdir='${exec_prefix}/lib' 1127localedir='${datarootdir}/locale' 1128mandir='${datarootdir}/man' 1129 1130ac_prev= 1131ac_dashdash= 1132for ac_option 1133do 1134 # If the previous option needs an argument, assign it. 1135 if test -n "$ac_prev"; then 1136 eval $ac_prev=\$ac_option 1137 ac_prev= 1138 continue 1139 fi 1140 1141 case $ac_option in 1142 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1143 *=) ac_optarg= ;; 1144 *) ac_optarg=yes ;; 1145 esac 1146 1147 # Accept the important Cygnus configure options, so we can diagnose typos. 1148 1149 case $ac_dashdash$ac_option in 1150 --) 1151 ac_dashdash=yes ;; 1152 1153 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1154 ac_prev=bindir ;; 1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1156 bindir=$ac_optarg ;; 1157 1158 -build | --build | --buil | --bui | --bu) 1159 ac_prev=build_alias ;; 1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1161 build_alias=$ac_optarg ;; 1162 1163 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1165 ac_prev=cache_file ;; 1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1168 cache_file=$ac_optarg ;; 1169 1170 --config-cache | -C) 1171 cache_file=config.cache ;; 1172 1173 -datadir | --datadir | --datadi | --datad) 1174 ac_prev=datadir ;; 1175 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1176 datadir=$ac_optarg ;; 1177 1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1179 | --dataroo | --dataro | --datar) 1180 ac_prev=datarootdir ;; 1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1183 datarootdir=$ac_optarg ;; 1184 1185 -disable-* | --disable-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid feature name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"enable_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval enable_$ac_useropt=no ;; 1200 1201 -docdir | --docdir | --docdi | --doc | --do) 1202 ac_prev=docdir ;; 1203 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1204 docdir=$ac_optarg ;; 1205 1206 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1207 ac_prev=dvidir ;; 1208 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1209 dvidir=$ac_optarg ;; 1210 1211 -enable-* | --enable-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid feature name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"enable_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval enable_$ac_useropt=\$ac_optarg ;; 1226 1227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1229 | --exec | --exe | --ex) 1230 ac_prev=exec_prefix ;; 1231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1233 | --exec=* | --exe=* | --ex=*) 1234 exec_prefix=$ac_optarg ;; 1235 1236 -gas | --gas | --ga | --g) 1237 # Obsolete; use --with-gas. 1238 with_gas=yes ;; 1239 1240 -help | --help | --hel | --he | -h) 1241 ac_init_help=long ;; 1242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1243 ac_init_help=recursive ;; 1244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1245 ac_init_help=short ;; 1246 1247 -host | --host | --hos | --ho) 1248 ac_prev=host_alias ;; 1249 -host=* | --host=* | --hos=* | --ho=*) 1250 host_alias=$ac_optarg ;; 1251 1252 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1253 ac_prev=htmldir ;; 1254 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1255 | --ht=*) 1256 htmldir=$ac_optarg ;; 1257 1258 -includedir | --includedir | --includedi | --included | --include \ 1259 | --includ | --inclu | --incl | --inc) 1260 ac_prev=includedir ;; 1261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1262 | --includ=* | --inclu=* | --incl=* | --inc=*) 1263 includedir=$ac_optarg ;; 1264 1265 -infodir | --infodir | --infodi | --infod | --info | --inf) 1266 ac_prev=infodir ;; 1267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1268 infodir=$ac_optarg ;; 1269 1270 -libdir | --libdir | --libdi | --libd) 1271 ac_prev=libdir ;; 1272 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1273 libdir=$ac_optarg ;; 1274 1275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1276 | --libexe | --libex | --libe) 1277 ac_prev=libexecdir ;; 1278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1279 | --libexe=* | --libex=* | --libe=*) 1280 libexecdir=$ac_optarg ;; 1281 1282 -localedir | --localedir | --localedi | --localed | --locale) 1283 ac_prev=localedir ;; 1284 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1285 localedir=$ac_optarg ;; 1286 1287 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1288 | --localstate | --localstat | --localsta | --localst | --locals) 1289 ac_prev=localstatedir ;; 1290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1291 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1292 localstatedir=$ac_optarg ;; 1293 1294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1295 ac_prev=mandir ;; 1296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1297 mandir=$ac_optarg ;; 1298 1299 -nfp | --nfp | --nf) 1300 # Obsolete; use --without-fp. 1301 with_fp=no ;; 1302 1303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1304 | --no-cr | --no-c | -n) 1305 no_create=yes ;; 1306 1307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1309 no_recursion=yes ;; 1310 1311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1313 | --oldin | --oldi | --old | --ol | --o) 1314 ac_prev=oldincludedir ;; 1315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1318 oldincludedir=$ac_optarg ;; 1319 1320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1321 ac_prev=prefix ;; 1322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1323 prefix=$ac_optarg ;; 1324 1325 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1326 | --program-pre | --program-pr | --program-p) 1327 ac_prev=program_prefix ;; 1328 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1330 program_prefix=$ac_optarg ;; 1331 1332 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1333 | --program-suf | --program-su | --program-s) 1334 ac_prev=program_suffix ;; 1335 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1337 program_suffix=$ac_optarg ;; 1338 1339 -program-transform-name | --program-transform-name \ 1340 | --program-transform-nam | --program-transform-na \ 1341 | --program-transform-n | --program-transform- \ 1342 | --program-transform | --program-transfor \ 1343 | --program-transfo | --program-transf \ 1344 | --program-trans | --program-tran \ 1345 | --progr-tra | --program-tr | --program-t) 1346 ac_prev=program_transform_name ;; 1347 -program-transform-name=* | --program-transform-name=* \ 1348 | --program-transform-nam=* | --program-transform-na=* \ 1349 | --program-transform-n=* | --program-transform-=* \ 1350 | --program-transform=* | --program-transfor=* \ 1351 | --program-transfo=* | --program-transf=* \ 1352 | --program-trans=* | --program-tran=* \ 1353 | --progr-tra=* | --program-tr=* | --program-t=*) 1354 program_transform_name=$ac_optarg ;; 1355 1356 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1357 ac_prev=pdfdir ;; 1358 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1359 pdfdir=$ac_optarg ;; 1360 1361 -psdir | --psdir | --psdi | --psd | --ps) 1362 ac_prev=psdir ;; 1363 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1364 psdir=$ac_optarg ;; 1365 1366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1367 | -silent | --silent | --silen | --sile | --sil) 1368 silent=yes ;; 1369 1370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1371 ac_prev=sbindir ;; 1372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1373 | --sbi=* | --sb=*) 1374 sbindir=$ac_optarg ;; 1375 1376 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1378 | --sharedst | --shareds | --shared | --share | --shar \ 1379 | --sha | --sh) 1380 ac_prev=sharedstatedir ;; 1381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1384 | --sha=* | --sh=*) 1385 sharedstatedir=$ac_optarg ;; 1386 1387 -site | --site | --sit) 1388 ac_prev=site ;; 1389 -site=* | --site=* | --sit=*) 1390 site=$ac_optarg ;; 1391 1392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1393 ac_prev=srcdir ;; 1394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1395 srcdir=$ac_optarg ;; 1396 1397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1398 | --syscon | --sysco | --sysc | --sys | --sy) 1399 ac_prev=sysconfdir ;; 1400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1402 sysconfdir=$ac_optarg ;; 1403 1404 -target | --target | --targe | --targ | --tar | --ta | --t) 1405 ac_prev=target_alias ;; 1406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1407 target_alias=$ac_optarg ;; 1408 1409 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1410 verbose=yes ;; 1411 1412 -version | --version | --versio | --versi | --vers | -V) 1413 ac_init_version=: ;; 1414 1415 -with-* | --with-*) 1416 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1417 # Reject names that are not valid shell variable names. 1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1419 as_fn_error $? "invalid package name: $ac_useropt" 1420 ac_useropt_orig=$ac_useropt 1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1422 case $ac_user_opts in 1423 *" 1424"with_$ac_useropt" 1425"*) ;; 1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1427 ac_unrecognized_sep=', ';; 1428 esac 1429 eval with_$ac_useropt=\$ac_optarg ;; 1430 1431 -without-* | --without-*) 1432 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1433 # Reject names that are not valid shell variable names. 1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1435 as_fn_error $? "invalid package name: $ac_useropt" 1436 ac_useropt_orig=$ac_useropt 1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1438 case $ac_user_opts in 1439 *" 1440"with_$ac_useropt" 1441"*) ;; 1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1443 ac_unrecognized_sep=', ';; 1444 esac 1445 eval with_$ac_useropt=no ;; 1446 1447 --x) 1448 # Obsolete; use --with-x. 1449 with_x=yes ;; 1450 1451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1452 | --x-incl | --x-inc | --x-in | --x-i) 1453 ac_prev=x_includes ;; 1454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1456 x_includes=$ac_optarg ;; 1457 1458 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1460 ac_prev=x_libraries ;; 1461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1463 x_libraries=$ac_optarg ;; 1464 1465 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1466Try \`$0 --help' for more information" 1467 ;; 1468 1469 *=*) 1470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1471 # Reject names that are not valid shell variable names. 1472 case $ac_envvar in #( 1473 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1474 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1475 esac 1476 eval $ac_envvar=\$ac_optarg 1477 export $ac_envvar ;; 1478 1479 *) 1480 # FIXME: should be removed in autoconf 3.0. 1481 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1483 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1484 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1485 ;; 1486 1487 esac 1488done 1489 1490if test -n "$ac_prev"; then 1491 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1492 as_fn_error $? "missing argument to $ac_option" 1493fi 1494 1495if test -n "$ac_unrecognized_opts"; then 1496 case $enable_option_checking in 1497 no) ;; 1498 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1499 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1500 esac 1501fi 1502 1503# Check all directory arguments for consistency. 1504for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1505 datadir sysconfdir sharedstatedir localstatedir includedir \ 1506 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1507 libdir localedir mandir 1508do 1509 eval ac_val=\$$ac_var 1510 # Remove trailing slashes. 1511 case $ac_val in 1512 */ ) 1513 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1514 eval $ac_var=\$ac_val;; 1515 esac 1516 # Be sure to have absolute directory names. 1517 case $ac_val in 1518 [\\/$]* | ?:[\\/]* ) continue;; 1519 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1520 esac 1521 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1522done 1523 1524# There might be people who depend on the old broken behavior: `$host' 1525# used to hold the argument of --host etc. 1526# FIXME: To remove some day. 1527build=$build_alias 1528host=$host_alias 1529target=$target_alias 1530 1531# FIXME: To remove some day. 1532if test "x$host_alias" != x; then 1533 if test "x$build_alias" = x; then 1534 cross_compiling=maybe 1535 elif test "x$build_alias" != "x$host_alias"; then 1536 cross_compiling=yes 1537 fi 1538fi 1539 1540ac_tool_prefix= 1541test -n "$host_alias" && ac_tool_prefix=$host_alias- 1542 1543test "$silent" = yes && exec 6>/dev/null 1544 1545 1546ac_pwd=`pwd` && test -n "$ac_pwd" && 1547ac_ls_di=`ls -di .` && 1548ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1549 as_fn_error $? "working directory cannot be determined" 1550test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1551 as_fn_error $? "pwd does not report name of working directory" 1552 1553 1554# Find the source files, if location was not specified. 1555if test -z "$srcdir"; then 1556 ac_srcdir_defaulted=yes 1557 # Try the directory containing this script, then the parent directory. 1558 ac_confdir=`$as_dirname -- "$as_myself" || 1559$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1560 X"$as_myself" : 'X\(//\)[^/]' \| \ 1561 X"$as_myself" : 'X\(//\)$' \| \ 1562 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1563$as_echo X"$as_myself" | 1564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1565 s//\1/ 1566 q 1567 } 1568 /^X\(\/\/\)[^/].*/{ 1569 s//\1/ 1570 q 1571 } 1572 /^X\(\/\/\)$/{ 1573 s//\1/ 1574 q 1575 } 1576 /^X\(\/\).*/{ 1577 s//\1/ 1578 q 1579 } 1580 s/.*/./; q'` 1581 srcdir=$ac_confdir 1582 if test ! -r "$srcdir/$ac_unique_file"; then 1583 srcdir=.. 1584 fi 1585else 1586 ac_srcdir_defaulted=no 1587fi 1588if test ! -r "$srcdir/$ac_unique_file"; then 1589 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1590 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1591fi 1592ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1593ac_abs_confdir=`( 1594 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1595 pwd)` 1596# When building in place, set srcdir=. 1597if test "$ac_abs_confdir" = "$ac_pwd"; then 1598 srcdir=. 1599fi 1600# Remove unnecessary trailing slashes from srcdir. 1601# Double slashes in file names in object file debugging info 1602# mess up M-x gdb in Emacs. 1603case $srcdir in 1604*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1605esac 1606for ac_var in $ac_precious_vars; do 1607 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1608 eval ac_env_${ac_var}_value=\$${ac_var} 1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1610 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1611done 1612 1613# 1614# Report the --help message. 1615# 1616if test "$ac_init_help" = "long"; then 1617 # Omit some internal or obsolete options to make the list less imposing. 1618 # This message is too long to be a string in the A/UX 3.1 sh. 1619 cat <<_ACEOF 1620\`configure' configures ntp 4.2.8p14 to adapt to many kinds of systems. 1621 1622Usage: $0 [OPTION]... [VAR=VALUE]... 1623 1624To assign environment variables (e.g., CC, CFLAGS...), specify them as 1625VAR=VALUE. See below for descriptions of some of the useful variables. 1626 1627Defaults for the options are specified in brackets. 1628 1629Configuration: 1630 -h, --help display this help and exit 1631 --help=short display options specific to this package 1632 --help=recursive display the short help of all the included packages 1633 -V, --version display version information and exit 1634 -q, --quiet, --silent do not print \`checking ...' messages 1635 --cache-file=FILE cache test results in FILE [disabled] 1636 -C, --config-cache alias for \`--cache-file=config.cache' 1637 -n, --no-create do not create output files 1638 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1639 1640Installation directories: 1641 --prefix=PREFIX install architecture-independent files in PREFIX 1642 [$ac_default_prefix] 1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1644 [PREFIX] 1645 1646By default, \`make install' will install all the files in 1647\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1648an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1649for instance \`--prefix=\$HOME'. 1650 1651For better control, use the options below. 1652 1653Fine tuning of the installation directories: 1654 --bindir=DIR user executables [EPREFIX/bin] 1655 --sbindir=DIR system admin executables [EPREFIX/sbin] 1656 --libexecdir=DIR program executables [EPREFIX/libexec] 1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1660 --libdir=DIR object code libraries [EPREFIX/lib] 1661 --includedir=DIR C header files [PREFIX/include] 1662 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1665 --infodir=DIR info documentation [DATAROOTDIR/info] 1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1667 --mandir=DIR man documentation [DATAROOTDIR/man] 1668 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1669 --htmldir=DIR html documentation [DOCDIR] 1670 --dvidir=DIR dvi documentation [DOCDIR] 1671 --pdfdir=DIR pdf documentation [DOCDIR] 1672 --psdir=DIR ps documentation [DOCDIR] 1673_ACEOF 1674 1675 cat <<\_ACEOF 1676 1677Program names: 1678 --program-prefix=PREFIX prepend PREFIX to installed program names 1679 --program-suffix=SUFFIX append SUFFIX to installed program names 1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1681 1682System types: 1683 --build=BUILD configure for building on BUILD [guessed] 1684 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1685_ACEOF 1686fi 1687 1688if test -n "$ac_init_help"; then 1689 case $ac_init_help in 1690 short | recursive ) echo "Configuration of ntp 4.2.8p14:";; 1691 esac 1692 cat <<\_ACEOF 1693 1694Optional Features and Packages: 1695 --disable-option-checking ignore unrecognized --enable/--with options 1696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1700 --enable-silent-rules less verbose build output (undo: "make V=1") 1701 --disable-silent-rules verbose build output (undo: "make V=0") 1702 --enable-dependency-tracking 1703 do not reject slow dependency extractors 1704 --disable-dependency-tracking 1705 speeds up one-time build 1706 --with-hardenfile=XXX os-specific or "/dev/null" 1707 --with-locfile=XXX os-specific or "legacy" 1708 --enable-shared[=PKGS] build shared libraries [default=no] 1709 --enable-static[=PKGS] build static libraries [default=yes] 1710 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1711 both] 1712 --enable-fast-install[=PKGS] 1713 optimize for fast installation [default=yes] 1714 --with-aix-soname=aix|svr4|both 1715 shared library versioning (aka "SONAME") variant to 1716 provide on AIX, [default=aix]. 1717 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1718 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1719 compiler's sysroot if not specified). 1720 --disable-libtool-lock avoid locking (might break parallel builds) 1721 --disable-nls disable nls support in libopts 1722 --enable-local-libopts Use the supplied libopts tearoff code 1723 --enable-libopts-install 1724 Install libopts with client installation 1725 --with-autoopts-config specify the config-info script 1726 --enable-local-libevent Force using the supplied libevent tearoff code 1727 --with-lineeditlibs edit,editline (readline may be specified if desired) 1728 defaults: + yes, - no, s system-specific 1729 --enable-debugging + include ntpd debugging code 1730 --enable-thread-support s use threads (+ if available) 1731 --with-threads with threads [auto] 1732 --with-yielding-select with yielding select [auto] 1733 --enable-c99-snprintf s force replacement 1734 --enable-clockctl s Use /dev/clockctl for non-root clock control 1735 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1736 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1737 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock 1738 control 1739 --enable-signalled-io s Use signalled IO if we can 1740 --with-arlib - deprecated, arlib not distributed 1741 --with-net-snmp-config + =net-snmp-config 1742 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp 1743 sandboxing (default is no) 1744 --with-stack-limit ? =50 (200 for openbsd) 4k pages 1745 --with-memlock ? =32 (-1 on linux) megabytes 1746 --enable-debug-timing - include processing time debugging code (costs 1747 performance) 1748 --enable-dst-minutes =60 minutes per DST adjustment 1749 --enable-ignore-dns-errors 1750 - retry DNS queries on any error 1751 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1752 --enable-GPSVME - TrueTime GPS receiver/VME interface 1753 --enable-all-clocks + include all suitable non-PARSE clocks: 1754 --enable-ACTS s ACTS modem service 1755 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1756 --enable-ARCRON-MSF + Arcron MSF receiver 1757 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1758 --enable-ATOM s ATOM PPS interface 1759 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1760 --enable-CHU + CHU modem/decoder 1761 --enable-AUDIO-CHU s CHU audio/decoder 1762 --enable-DATUM s Datum Programmable Time System 1763 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1764 --enable-FG + Forum Graphic GPS 1765 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1766 --enable-HOPFSERIAL + hopf serial clock device 1767 --enable-HOPFPCI + hopf 6039 PCI board 1768 --enable-HPGPS + HP 58503A GPS receiver 1769 --enable-IRIG s IRIG audio decoder 1770 --enable-JJY + JJY receiver 1771 --enable-JUPITER s Rockwell Jupiter GPS receiver 1772 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1773 --enable-LOCAL-CLOCK + local clock reference 1774 --enable-MX4200 s Magnavox MX4200 GPS receiver 1775 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1776 --enable-NMEA + NMEA GPS receiver 1777 --enable-GPSD + GPSD JSON receiver 1778 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1779 --enable-PALISADE s Palisade clock 1780 --enable-PCF + Conrad parallel port radio clock 1781 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1782 --enable-RIPENCC - RIPENCC specific Trimble driver 1783 --enable-SHM s SHM clock attached thru shared memory 1784 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1785 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1786 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1787 --enable-TT560 - TrueTime 560 IRIG-B decoder 1788 --enable-ULINK + Ultralink WWVB receiver 1789 --enable-TSYNCPCI s Spectracom TSYNC timing board 1790 --enable-WWV s WWV Audio receiver 1791 --enable-ZYFER + Zyfer GPStarplus receiver 1792 --enable-parse-clocks - include all suitable PARSE clocks: 1793 --enable-COMPUTIME s Diem Computime Radio Clock 1794 --enable-DCF7000 s ELV/DCF7000 clock 1795 --enable-HOPF6021 s HOPF 6021 clock 1796 --enable-MEINBERG s Meinberg clocks 1797 --enable-RAWDCF s DCF77 raw time code 1798 --enable-RCC8000 s RCC 8000 clock 1799 --enable-SCHMID s Schmid DCF77 clock 1800 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1801 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1802 --enable-WHARTON s WHARTON 400A Series clock 1803 --enable-VARITEXT s VARITEXT clock 1804 --enable-SEL240X s SEL240X clock 1805 --with-crypto + =openssl,libcrypto 1806 1807 --with-openssl-libdir + =/something/reasonable 1808 1809 --with-openssl-incdir + =/something/reasonable 1810 1811 --without-rpath s Disable auto-added -R linker paths 1812 1813 --enable-openssl-random Use OpenSSL's crypto random number functions, if 1814 available (default is yes) 1815 --enable-autokey + support NTP Autokey protocol 1816 --enable-kmem s read /dev/kmem for tick and/or tickadj 1817 --enable-accurate-adjtime 1818 s the adjtime() call is accurate 1819 --enable-tick=VALUE s force a value for 'tick' 1820 --enable-tickadj=VALUE s force a value for 'tickadj' 1821 --enable-simulator - build/install the NTPD simulator? 1822 --without-sntp - disable building sntp and sntp/tests 1823 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1824 --enable-slew-always s always slew the time 1825 --enable-step-slew s step and slew the time 1826 --enable-ntpdate-step s if ntpdate should step the time 1827 --enable-hourly-todr-sync 1828 s if we should sync TODR hourly 1829 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1830 --enable-bug1243-fix + use unmodified autokey session keys 1831 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter 1832 --enable-bug3527-fix + provide correct mode7 fudgetime2 behavior 1833 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1834 --enable-nist - if we should enable the NIST lockclock scheme 1835 --enable-ntp-signd - Provide support for Samba's signing daemon, 1836 =/var/run/ntp_signd 1837 --enable-ipv6 s use IPv6? 1838 1839 --with-kame - =/usr/local/v6 1840 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1841 --enable-saveconfig + saveconfig mechanism 1842 --enable-leap-smear - experimental leap smear code 1843 --enable-dynamic-interleave 1844 - dynamic interleave support 1845 --with-gtest Use the gtest framework (Default: if it's available) 1846 --enable-problem-tests + enable tests with undiagnosed problems 1847 1848Some influential environment variables: 1849 CC C compiler command 1850 CFLAGS C compiler flags 1851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1852 nonstandard directory <lib dir> 1853 LIBS libraries to pass to the linker, e.g. -l<library> 1854 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1855 you have headers in a nonstandard directory <include dir> 1856 CPP C preprocessor 1857 YACC The `Yet Another Compiler Compiler' implementation to use. 1858 Defaults to the first program found out of: `bison -y', `byacc', 1859 `yacc'. 1860 YFLAGS The list of arguments that will be passed by default to $YACC. 1861 This script will default YFLAGS to the empty string to avoid a 1862 default value of `-d' given by some make applications. 1863 LT_SYS_LIBRARY_PATH 1864 User-defined run-time library search path. 1865 1866Use these variables to override the choices made by `configure' or to help 1867it to find libraries and programs with nonstandard names/locations. 1868 1869Report bugs to <http://bugs.ntp.org./>. 1870ntp home page: <http://www.ntp.org./>. 1871_ACEOF 1872ac_status=$? 1873fi 1874 1875if test "$ac_init_help" = "recursive"; then 1876 # If there are subdirs, report their specific --help. 1877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1878 test -d "$ac_dir" || 1879 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1880 continue 1881 ac_builddir=. 1882 1883case "$ac_dir" in 1884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1885*) 1886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1887 # A ".." for each directory in $ac_dir_suffix. 1888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1889 case $ac_top_builddir_sub in 1890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1892 esac ;; 1893esac 1894ac_abs_top_builddir=$ac_pwd 1895ac_abs_builddir=$ac_pwd$ac_dir_suffix 1896# for backward compatibility: 1897ac_top_builddir=$ac_top_build_prefix 1898 1899case $srcdir in 1900 .) # We are building in place. 1901 ac_srcdir=. 1902 ac_top_srcdir=$ac_top_builddir_sub 1903 ac_abs_top_srcdir=$ac_pwd ;; 1904 [\\/]* | ?:[\\/]* ) # Absolute name. 1905 ac_srcdir=$srcdir$ac_dir_suffix; 1906 ac_top_srcdir=$srcdir 1907 ac_abs_top_srcdir=$srcdir ;; 1908 *) # Relative name. 1909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1910 ac_top_srcdir=$ac_top_build_prefix$srcdir 1911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1912esac 1913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1914 1915 cd "$ac_dir" || { ac_status=$?; continue; } 1916 # Check for guested configure. 1917 if test -f "$ac_srcdir/configure.gnu"; then 1918 echo && 1919 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1920 elif test -f "$ac_srcdir/configure"; then 1921 echo && 1922 $SHELL "$ac_srcdir/configure" --help=recursive 1923 else 1924 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1925 fi || ac_status=$? 1926 cd "$ac_pwd" || { ac_status=$?; break; } 1927 done 1928fi 1929 1930test -n "$ac_init_help" && exit $ac_status 1931if $ac_init_version; then 1932 cat <<\_ACEOF 1933ntp configure 4.2.8p14 1934generated by GNU Autoconf 2.69 1935 1936Copyright (C) 2012 Free Software Foundation, Inc. 1937This configure script is free software; the Free Software Foundation 1938gives unlimited permission to copy, distribute and modify it. 1939_ACEOF 1940 exit 1941fi 1942 1943## ------------------------ ## 1944## Autoconf initialization. ## 1945## ------------------------ ## 1946 1947# ac_fn_c_try_compile LINENO 1948# -------------------------- 1949# Try to compile conftest.$ac_ext, and return whether this succeeded. 1950ac_fn_c_try_compile () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 rm -f conftest.$ac_objext 1954 if { { ac_try="$ac_compile" 1955case "(($ac_try" in 1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1957 *) ac_try_echo=$ac_try;; 1958esac 1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1960$as_echo "$ac_try_echo"; } >&5 1961 (eval "$ac_compile") 2>conftest.err 1962 ac_status=$? 1963 if test -s conftest.err; then 1964 grep -v '^ *+' conftest.err >conftest.er1 1965 cat conftest.er1 >&5 1966 mv -f conftest.er1 conftest.err 1967 fi 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; } && { 1970 test -z "$ac_c_werror_flag" || 1971 test ! -s conftest.err 1972 } && test -s conftest.$ac_objext; then : 1973 ac_retval=0 1974else 1975 $as_echo "$as_me: failed program was:" >&5 1976sed 's/^/| /' conftest.$ac_ext >&5 1977 1978 ac_retval=1 1979fi 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 as_fn_set_status $ac_retval 1982 1983} # ac_fn_c_try_compile 1984 1985# ac_fn_c_try_cpp LINENO 1986# ---------------------- 1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1988ac_fn_c_try_cpp () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 if { { ac_try="$ac_cpp conftest.$ac_ext" 1992case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995esac 1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997$as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } > conftest.i && { 2007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2008 test ! -s conftest.err 2009 }; then : 2010 ac_retval=0 2011else 2012 $as_echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016fi 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020} # ac_fn_c_try_cpp 2021 2022# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2023# ------------------------------------------------------- 2024# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2025# the include files in INCLUDES and setting the cache variable VAR 2026# accordingly. 2027ac_fn_c_check_header_mongrel () 2028{ 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 if eval \${$3+:} false; then : 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2032$as_echo_n "checking for $2... " >&6; } 2033if eval \${$3+:} false; then : 2034 $as_echo_n "(cached) " >&6 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039else 2040 # Is the header compilable? 2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2042$as_echo_n "checking $2 usability... " >&6; } 2043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044/* end confdefs.h. */ 2045$4 2046#include <$2> 2047_ACEOF 2048if ac_fn_c_try_compile "$LINENO"; then : 2049 ac_header_compiler=yes 2050else 2051 ac_header_compiler=no 2052fi 2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2055$as_echo "$ac_header_compiler" >&6; } 2056 2057# Is the header present? 2058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2059$as_echo_n "checking $2 presence... " >&6; } 2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062#include <$2> 2063_ACEOF 2064if ac_fn_c_try_cpp "$LINENO"; then : 2065 ac_header_preproc=yes 2066else 2067 ac_header_preproc=no 2068fi 2069rm -f conftest.err conftest.i conftest.$ac_ext 2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2071$as_echo "$ac_header_preproc" >&6; } 2072 2073# So? What about this header? 2074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2075 yes:no: ) 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2080 ;; 2081 no:yes:* ) 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2085$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2089$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2092( $as_echo "## ------------------------------------ ## 2093## Report this to http://bugs.ntp.org./ ## 2094## ------------------------------------ ##" 2095 ) | sed "s/^/$as_me: WARNING: /" >&2 2096 ;; 2097esac 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2099$as_echo_n "checking for $2... " >&6; } 2100if eval \${$3+:} false; then : 2101 $as_echo_n "(cached) " >&6 2102else 2103 eval "$3=\$ac_header_compiler" 2104fi 2105eval ac_res=\$$3 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2107$as_echo "$ac_res" >&6; } 2108fi 2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2110 2111} # ac_fn_c_check_header_mongrel 2112 2113# ac_fn_c_try_run LINENO 2114# ---------------------- 2115# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2116# that executables *can* be run. 2117ac_fn_c_try_run () 2118{ 2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2120 if { { ac_try="$ac_link" 2121case "(($ac_try" in 2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2123 *) ac_try_echo=$ac_try;; 2124esac 2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2126$as_echo "$ac_try_echo"; } >&5 2127 (eval "$ac_link") 2>&5 2128 ac_status=$? 2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2130 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2131 { { case "(($ac_try" in 2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2133 *) ac_try_echo=$ac_try;; 2134esac 2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2136$as_echo "$ac_try_echo"; } >&5 2137 (eval "$ac_try") 2>&5 2138 ac_status=$? 2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2140 test $ac_status = 0; }; }; then : 2141 ac_retval=0 2142else 2143 $as_echo "$as_me: program exited with status $ac_status" >&5 2144 $as_echo "$as_me: failed program was:" >&5 2145sed 's/^/| /' conftest.$ac_ext >&5 2146 2147 ac_retval=$ac_status 2148fi 2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2151 as_fn_set_status $ac_retval 2152 2153} # ac_fn_c_try_run 2154 2155# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2156# ------------------------------------------------------- 2157# Tests whether HEADER exists and can be compiled using the include files in 2158# INCLUDES, setting the cache variable VAR accordingly. 2159ac_fn_c_check_header_compile () 2160{ 2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2163$as_echo_n "checking for $2... " >&6; } 2164if eval \${$3+:} false; then : 2165 $as_echo_n "(cached) " >&6 2166else 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170#include <$2> 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 eval "$3=yes" 2174else 2175 eval "$3=no" 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178fi 2179eval ac_res=\$$3 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2181$as_echo "$ac_res" >&6; } 2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2183 2184} # ac_fn_c_check_header_compile 2185 2186# ac_fn_c_try_link LINENO 2187# ----------------------- 2188# Try to link conftest.$ac_ext, and return whether this succeeded. 2189ac_fn_c_try_link () 2190{ 2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 rm -f conftest.$ac_objext conftest$ac_exeext 2193 if { { ac_try="$ac_link" 2194case "(($ac_try" in 2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2196 *) ac_try_echo=$ac_try;; 2197esac 2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2199$as_echo "$ac_try_echo"; } >&5 2200 (eval "$ac_link") 2>conftest.err 2201 ac_status=$? 2202 if test -s conftest.err; then 2203 grep -v '^ *+' conftest.err >conftest.er1 2204 cat conftest.er1 >&5 2205 mv -f conftest.er1 conftest.err 2206 fi 2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2208 test $ac_status = 0; } && { 2209 test -z "$ac_c_werror_flag" || 2210 test ! -s conftest.err 2211 } && test -s conftest$ac_exeext && { 2212 test "$cross_compiling" = yes || 2213 test -x conftest$ac_exeext 2214 }; then : 2215 ac_retval=0 2216else 2217 $as_echo "$as_me: failed program was:" >&5 2218sed 's/^/| /' conftest.$ac_ext >&5 2219 2220 ac_retval=1 2221fi 2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2224 # interfere with the next link command; also delete a directory that is 2225 # left behind by Apple's compiler. We do this before executing the actions. 2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2228 as_fn_set_status $ac_retval 2229 2230} # ac_fn_c_try_link 2231 2232# ac_fn_c_check_func LINENO FUNC VAR 2233# ---------------------------------- 2234# Tests whether FUNC exists, setting the cache variable VAR accordingly 2235ac_fn_c_check_func () 2236{ 2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2239$as_echo_n "checking for $2... " >&6; } 2240if eval \${$3+:} false; then : 2241 $as_echo_n "(cached) " >&6 2242else 2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2244/* end confdefs.h. */ 2245/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2246 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2247#define $2 innocuous_$2 2248 2249/* System header to define __stub macros and hopefully few prototypes, 2250 which can conflict with char $2 (); below. 2251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2252 <limits.h> exists even on freestanding compilers. */ 2253 2254#ifdef __STDC__ 2255# include <limits.h> 2256#else 2257# include <assert.h> 2258#endif 2259 2260#undef $2 2261 2262/* Override any GCC internal prototype to avoid an error. 2263 Use char because int might match the return type of a GCC 2264 builtin and then its argument prototype would still apply. */ 2265#ifdef __cplusplus 2266extern "C" 2267#endif 2268char $2 (); 2269/* The GNU C library defines this for functions which it implements 2270 to always fail with ENOSYS. Some functions are actually named 2271 something starting with __ and the normal name is an alias. */ 2272#if defined __stub_$2 || defined __stub___$2 2273choke me 2274#endif 2275 2276int 2277main () 2278{ 2279return $2 (); 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284if ac_fn_c_try_link "$LINENO"; then : 2285 eval "$3=yes" 2286else 2287 eval "$3=no" 2288fi 2289rm -f core conftest.err conftest.$ac_objext \ 2290 conftest$ac_exeext conftest.$ac_ext 2291fi 2292eval ac_res=\$$3 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2294$as_echo "$ac_res" >&6; } 2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2296 2297} # ac_fn_c_check_func 2298 2299# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2300# ------------------------------------------- 2301# Tests whether TYPE exists after having included INCLUDES, setting cache 2302# variable VAR accordingly. 2303ac_fn_c_check_type () 2304{ 2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2307$as_echo_n "checking for $2... " >&6; } 2308if eval \${$3+:} false; then : 2309 $as_echo_n "(cached) " >&6 2310else 2311 eval "$3=no" 2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2313/* end confdefs.h. */ 2314$4 2315int 2316main () 2317{ 2318if (sizeof ($2)) 2319 return 0; 2320 ; 2321 return 0; 2322} 2323_ACEOF 2324if ac_fn_c_try_compile "$LINENO"; then : 2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2326/* end confdefs.h. */ 2327$4 2328int 2329main () 2330{ 2331if (sizeof (($2))) 2332 return 0; 2333 ; 2334 return 0; 2335} 2336_ACEOF 2337if ac_fn_c_try_compile "$LINENO"; then : 2338 2339else 2340 eval "$3=yes" 2341fi 2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2343fi 2344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2345fi 2346eval ac_res=\$$3 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2348$as_echo "$ac_res" >&6; } 2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2350 2351} # ac_fn_c_check_type 2352 2353# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2354# -------------------------------------------- 2355# Tries to find the compile-time value of EXPR in a program that includes 2356# INCLUDES, setting VAR accordingly. Returns whether the value could be 2357# computed 2358ac_fn_c_compute_int () 2359{ 2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2361 if test "$cross_compiling" = yes; then 2362 # Depending upon the size, compute the lo and hi bounds. 2363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2364/* end confdefs.h. */ 2365$4 2366int 2367main () 2368{ 2369static int test_array [1 - 2 * !(($2) >= 0)]; 2370test_array [0] = 0; 2371return test_array [0]; 2372 2373 ; 2374 return 0; 2375} 2376_ACEOF 2377if ac_fn_c_try_compile "$LINENO"; then : 2378 ac_lo=0 ac_mid=0 2379 while :; do 2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2381/* end confdefs.h. */ 2382$4 2383int 2384main () 2385{ 2386static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2387test_array [0] = 0; 2388return test_array [0]; 2389 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394if ac_fn_c_try_compile "$LINENO"; then : 2395 ac_hi=$ac_mid; break 2396else 2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2398 if test $ac_lo -le $ac_mid; then 2399 ac_lo= ac_hi= 2400 break 2401 fi 2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2403fi 2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2405 done 2406else 2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2408/* end confdefs.h. */ 2409$4 2410int 2411main () 2412{ 2413static int test_array [1 - 2 * !(($2) < 0)]; 2414test_array [0] = 0; 2415return test_array [0]; 2416 2417 ; 2418 return 0; 2419} 2420_ACEOF 2421if ac_fn_c_try_compile "$LINENO"; then : 2422 ac_hi=-1 ac_mid=-1 2423 while :; do 2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2425/* end confdefs.h. */ 2426$4 2427int 2428main () 2429{ 2430static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2431test_array [0] = 0; 2432return test_array [0]; 2433 2434 ; 2435 return 0; 2436} 2437_ACEOF 2438if ac_fn_c_try_compile "$LINENO"; then : 2439 ac_lo=$ac_mid; break 2440else 2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2442 if test $ac_mid -le $ac_hi; then 2443 ac_lo= ac_hi= 2444 break 2445 fi 2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2447fi 2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2449 done 2450else 2451 ac_lo= ac_hi= 2452fi 2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2454fi 2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2456# Binary search between lo and hi bounds. 2457while test "x$ac_lo" != "x$ac_hi"; do 2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2460/* end confdefs.h. */ 2461$4 2462int 2463main () 2464{ 2465static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2466test_array [0] = 0; 2467return test_array [0]; 2468 2469 ; 2470 return 0; 2471} 2472_ACEOF 2473if ac_fn_c_try_compile "$LINENO"; then : 2474 ac_hi=$ac_mid 2475else 2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2477fi 2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2479done 2480case $ac_lo in #(( 2481?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2482'') ac_retval=1 ;; 2483esac 2484 else 2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2486/* end confdefs.h. */ 2487$4 2488static long int longval () { return $2; } 2489static unsigned long int ulongval () { return $2; } 2490#include <stdio.h> 2491#include <stdlib.h> 2492int 2493main () 2494{ 2495 2496 FILE *f = fopen ("conftest.val", "w"); 2497 if (! f) 2498 return 1; 2499 if (($2) < 0) 2500 { 2501 long int i = longval (); 2502 if (i != ($2)) 2503 return 1; 2504 fprintf (f, "%ld", i); 2505 } 2506 else 2507 { 2508 unsigned long int i = ulongval (); 2509 if (i != ($2)) 2510 return 1; 2511 fprintf (f, "%lu", i); 2512 } 2513 /* Do not output a trailing newline, as this causes \r\n confusion 2514 on some platforms. */ 2515 return ferror (f) || fclose (f) != 0; 2516 2517 ; 2518 return 0; 2519} 2520_ACEOF 2521if ac_fn_c_try_run "$LINENO"; then : 2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2523else 2524 ac_retval=1 2525fi 2526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2527 conftest.$ac_objext conftest.beam conftest.$ac_ext 2528rm -f conftest.val 2529 2530 fi 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 as_fn_set_status $ac_retval 2533 2534} # ac_fn_c_compute_int 2535 2536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2537# --------------------------------------------- 2538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2539# accordingly. 2540ac_fn_c_check_decl () 2541{ 2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2543 as_decl_name=`echo $2|sed 's/ *(.*//'` 2544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2546$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2547if eval \${$3+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549else 2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2551/* end confdefs.h. */ 2552$4 2553int 2554main () 2555{ 2556#ifndef $as_decl_name 2557#ifdef __cplusplus 2558 (void) $as_decl_use; 2559#else 2560 (void) $as_decl_name; 2561#endif 2562#endif 2563 2564 ; 2565 return 0; 2566} 2567_ACEOF 2568if ac_fn_c_try_compile "$LINENO"; then : 2569 eval "$3=yes" 2570else 2571 eval "$3=no" 2572fi 2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2574fi 2575eval ac_res=\$$3 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2577$as_echo "$ac_res" >&6; } 2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2579 2580} # ac_fn_c_check_decl 2581 2582# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2583# ---------------------------------------------------- 2584# Tries to find if the field MEMBER exists in type AGGR, after including 2585# INCLUDES, setting cache variable VAR accordingly. 2586ac_fn_c_check_member () 2587{ 2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2590$as_echo_n "checking for $2.$3... " >&6; } 2591if eval \${$4+:} false; then : 2592 $as_echo_n "(cached) " >&6 2593else 2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2595/* end confdefs.h. */ 2596$5 2597int 2598main () 2599{ 2600static $2 ac_aggr; 2601if (ac_aggr.$3) 2602return 0; 2603 ; 2604 return 0; 2605} 2606_ACEOF 2607if ac_fn_c_try_compile "$LINENO"; then : 2608 eval "$4=yes" 2609else 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2611/* end confdefs.h. */ 2612$5 2613int 2614main () 2615{ 2616static $2 ac_aggr; 2617if (sizeof ac_aggr.$3) 2618return 0; 2619 ; 2620 return 0; 2621} 2622_ACEOF 2623if ac_fn_c_try_compile "$LINENO"; then : 2624 eval "$4=yes" 2625else 2626 eval "$4=no" 2627fi 2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2629fi 2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2631fi 2632eval ac_res=\$$4 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2634$as_echo "$ac_res" >&6; } 2635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2636 2637} # ac_fn_c_check_member 2638cat >config.log <<_ACEOF 2639This file contains any messages produced by compilers while 2640running configure, to aid debugging if configure makes a mistake. 2641 2642It was created by ntp $as_me 4.2.8p14, which was 2643generated by GNU Autoconf 2.69. Invocation command line was 2644 2645 $ $0 $@ 2646 2647_ACEOF 2648exec 5>>config.log 2649{ 2650cat <<_ASUNAME 2651## --------- ## 2652## Platform. ## 2653## --------- ## 2654 2655hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2656uname -m = `(uname -m) 2>/dev/null || echo unknown` 2657uname -r = `(uname -r) 2>/dev/null || echo unknown` 2658uname -s = `(uname -s) 2>/dev/null || echo unknown` 2659uname -v = `(uname -v) 2>/dev/null || echo unknown` 2660 2661/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2662/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2663 2664/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2665/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2666/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2667/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2668/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2669/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2670/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2671 2672_ASUNAME 2673 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 $as_echo "PATH: $as_dir" 2680 done 2681IFS=$as_save_IFS 2682 2683} >&5 2684 2685cat >&5 <<_ACEOF 2686 2687 2688## ----------- ## 2689## Core tests. ## 2690## ----------- ## 2691 2692_ACEOF 2693 2694 2695# Keep a trace of the command line. 2696# Strip out --no-create and --no-recursion so they do not pile up. 2697# Strip out --silent because we don't want to record it for future runs. 2698# Also quote any args containing shell meta-characters. 2699# Make two passes to allow for proper duplicate-argument suppression. 2700ac_configure_args= 2701ac_configure_args0= 2702ac_configure_args1= 2703ac_must_keep_next=false 2704for ac_pass in 1 2 2705do 2706 for ac_arg 2707 do 2708 case $ac_arg in 2709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2711 | -silent | --silent | --silen | --sile | --sil) 2712 continue ;; 2713 *\'*) 2714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2715 esac 2716 case $ac_pass in 2717 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2718 2) 2719 as_fn_append ac_configure_args1 " '$ac_arg'" 2720 if test $ac_must_keep_next = true; then 2721 ac_must_keep_next=false # Got value, back to normal. 2722 else 2723 case $ac_arg in 2724 *=* | --config-cache | -C | -disable-* | --disable-* \ 2725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2727 | -with-* | --with-* | -without-* | --without-* | --x) 2728 case "$ac_configure_args0 " in 2729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2730 esac 2731 ;; 2732 -* ) ac_must_keep_next=true ;; 2733 esac 2734 fi 2735 as_fn_append ac_configure_args " '$ac_arg'" 2736 ;; 2737 esac 2738 done 2739done 2740{ ac_configure_args0=; unset ac_configure_args0;} 2741{ ac_configure_args1=; unset ac_configure_args1;} 2742 2743# When interrupted or exit'd, cleanup temporary files, and complete 2744# config.log. We remove comments because anyway the quotes in there 2745# would cause problems or look ugly. 2746# WARNING: Use '\'' to represent an apostrophe within the trap. 2747# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2748trap 'exit_status=$? 2749 # Save into config.log some information that might help in debugging. 2750 { 2751 echo 2752 2753 $as_echo "## ---------------- ## 2754## Cache variables. ## 2755## ---------------- ##" 2756 echo 2757 # The following way of writing the cache mishandles newlines in values, 2758( 2759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2760 eval ac_val=\$$ac_var 2761 case $ac_val in #( 2762 *${as_nl}*) 2763 case $ac_var in #( 2764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2765$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2766 esac 2767 case $ac_var in #( 2768 _ | IFS | as_nl) ;; #( 2769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2770 *) { eval $ac_var=; unset $ac_var;} ;; 2771 esac ;; 2772 esac 2773 done 2774 (set) 2>&1 | 2775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2776 *${as_nl}ac_space=\ *) 2777 sed -n \ 2778 "s/'\''/'\''\\\\'\'''\''/g; 2779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2780 ;; #( 2781 *) 2782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2783 ;; 2784 esac | 2785 sort 2786) 2787 echo 2788 2789 $as_echo "## ----------------- ## 2790## Output variables. ## 2791## ----------------- ##" 2792 echo 2793 for ac_var in $ac_subst_vars 2794 do 2795 eval ac_val=\$$ac_var 2796 case $ac_val in 2797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2798 esac 2799 $as_echo "$ac_var='\''$ac_val'\''" 2800 done | sort 2801 echo 2802 2803 if test -n "$ac_subst_files"; then 2804 $as_echo "## ------------------- ## 2805## File substitutions. ## 2806## ------------------- ##" 2807 echo 2808 for ac_var in $ac_subst_files 2809 do 2810 eval ac_val=\$$ac_var 2811 case $ac_val in 2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2813 esac 2814 $as_echo "$ac_var='\''$ac_val'\''" 2815 done | sort 2816 echo 2817 fi 2818 2819 if test -s confdefs.h; then 2820 $as_echo "## ----------- ## 2821## confdefs.h. ## 2822## ----------- ##" 2823 echo 2824 cat confdefs.h 2825 echo 2826 fi 2827 test "$ac_signal" != 0 && 2828 $as_echo "$as_me: caught signal $ac_signal" 2829 $as_echo "$as_me: exit $exit_status" 2830 } >&5 2831 rm -f core *.core core.conftest.* && 2832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2833 exit $exit_status 2834' 0 2835for ac_signal in 1 2 13 15; do 2836 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2837done 2838ac_signal=0 2839 2840# confdefs.h avoids OS command line length limits that DEFS can exceed. 2841rm -f -r conftest* confdefs.h 2842 2843$as_echo "/* confdefs.h */" > confdefs.h 2844 2845# Predefined preprocessor variables. 2846 2847cat >>confdefs.h <<_ACEOF 2848#define PACKAGE_NAME "$PACKAGE_NAME" 2849_ACEOF 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2853_ACEOF 2854 2855cat >>confdefs.h <<_ACEOF 2856#define PACKAGE_VERSION "$PACKAGE_VERSION" 2857_ACEOF 2858 2859cat >>confdefs.h <<_ACEOF 2860#define PACKAGE_STRING "$PACKAGE_STRING" 2861_ACEOF 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2865_ACEOF 2866 2867cat >>confdefs.h <<_ACEOF 2868#define PACKAGE_URL "$PACKAGE_URL" 2869_ACEOF 2870 2871 2872# Let the site file select an alternate cache file if it wants to. 2873# Prefer an explicitly selected file to automatically selected ones. 2874ac_site_file1=NONE 2875ac_site_file2=NONE 2876if test -n "$CONFIG_SITE"; then 2877 # We do not want a PATH search for config.site. 2878 case $CONFIG_SITE in #(( 2879 -*) ac_site_file1=./$CONFIG_SITE;; 2880 */*) ac_site_file1=$CONFIG_SITE;; 2881 *) ac_site_file1=./$CONFIG_SITE;; 2882 esac 2883elif test "x$prefix" != xNONE; then 2884 ac_site_file1=$prefix/share/config.site 2885 ac_site_file2=$prefix/etc/config.site 2886else 2887 ac_site_file1=$ac_default_prefix/share/config.site 2888 ac_site_file2=$ac_default_prefix/etc/config.site 2889fi 2890for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2891do 2892 test "x$ac_site_file" = xNONE && continue 2893 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2895$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2896 sed 's/^/| /' "$ac_site_file" >&5 2897 . "$ac_site_file" \ 2898 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2900as_fn_error $? "failed to load site script $ac_site_file 2901See \`config.log' for more details" "$LINENO" 5; } 2902 fi 2903done 2904 2905if test -r "$cache_file"; then 2906 # Some versions of bash will fail to source /dev/null (special files 2907 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2910$as_echo "$as_me: loading cache $cache_file" >&6;} 2911 case $cache_file in 2912 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2913 *) . "./$cache_file";; 2914 esac 2915 fi 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2918$as_echo "$as_me: creating cache $cache_file" >&6;} 2919 >$cache_file 2920fi 2921 2922as_fn_append ac_header_list " stdarg.h" 2923# Check that the precious variables saved in the cache have kept the same 2924# value. 2925ac_cache_corrupted=false 2926for ac_var in $ac_precious_vars; do 2927 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2928 eval ac_new_set=\$ac_env_${ac_var}_set 2929 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2930 eval ac_new_val=\$ac_env_${ac_var}_value 2931 case $ac_old_set,$ac_new_set in 2932 set,) 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2934$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2935 ac_cache_corrupted=: ;; 2936 ,set) 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2938$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2939 ac_cache_corrupted=: ;; 2940 ,);; 2941 *) 2942 if test "x$ac_old_val" != "x$ac_new_val"; then 2943 # differences in whitespace do not lead to failure. 2944 ac_old_val_w=`echo x $ac_old_val` 2945 ac_new_val_w=`echo x $ac_new_val` 2946 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2948$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2949 ac_cache_corrupted=: 2950 else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2952$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2953 eval $ac_var=\$ac_old_val 2954 fi 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2956$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2958$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2959 fi;; 2960 esac 2961 # Pass precious variables to config.status. 2962 if test "$ac_new_set" = set; then 2963 case $ac_new_val in 2964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2965 *) ac_arg=$ac_var=$ac_new_val ;; 2966 esac 2967 case " $ac_configure_args " in 2968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2969 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2970 esac 2971 fi 2972done 2973if $ac_cache_corrupted; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2977$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2978 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2979fi 2980## -------------------- ## 2981## Main body of script. ## 2982## -------------------- ## 2983 2984ac_ext=c 2985ac_cpp='$CPP $CPPFLAGS' 2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2988ac_compiler_gnu=$ac_cv_c_compiler_gnu 2989 2990 2991 2992ac_aux_dir= 2993for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do 2994 if test -f "$ac_dir/install-sh"; then 2995 ac_aux_dir=$ac_dir 2996 ac_install_sh="$ac_aux_dir/install-sh -c" 2997 break 2998 elif test -f "$ac_dir/install.sh"; then 2999 ac_aux_dir=$ac_dir 3000 ac_install_sh="$ac_aux_dir/install.sh -c" 3001 break 3002 elif test -f "$ac_dir/shtool"; then 3003 ac_aux_dir=$ac_dir 3004 ac_install_sh="$ac_aux_dir/shtool install -c" 3005 break 3006 fi 3007done 3008if test -z "$ac_aux_dir"; then 3009 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5 3010fi 3011 3012# These three variables are undocumented and unsupported, 3013# and are intended to be withdrawn in a future Autoconf release. 3014# They can cause serious problems if a builder's source tree is in a directory 3015# whose full name contains unusual characters. 3016ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3017ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3018ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3019 3020 3021ac_ext=c 3022ac_cpp='$CPP $CPPFLAGS' 3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3025ac_compiler_gnu=$ac_cv_c_compiler_gnu 3026 3027 3028 3029 3030 3031 3032# Bump ntp_configure_cache_version for each change to configure.ac or 3033# .m4 files which invalidates cached values from previous configure 3034# runs. 3035# 3036# If the change affects cache variables used only by the main NTP 3037# configure.ac, then only its version number should be bumped, while 3038# the subdir configure.ac version numbers should be unchanged. The 3039# same is true for a test/variable that is used only by one subdir 3040# being changed incompatibly; only that subdir's cache version needs 3041# bumping. 3042# 3043# If a change affects variables shared by all NTP configure scripts, 3044# please bump the version numbers of each. If you are not sure, the 3045# safe choice is to bump all on any cache-invalidating change. 3046# 3047# In order to avoid the risk of version stamp collision between -stable 3048# and -dev branches, do not simply increment the version, instead use 3049# the date YYYYMMDD optionally with -HHMM if there is more than one 3050# bump in a day. 3051 3052ntp_configure_cache_version=20120806 3053 3054# When the cache version of config.cache and configure do not 3055# match, NTP_CACHEVERSION will flush the cache. 3056 3057 3058 3059 ntp_cache_flush=1 3060 3061 case "$ntp_cv_main_cache_version" in 3062 $ntp_configure_cache_version) 3063 # same version, good 3064 ntp_cache_flush=0 3065 ;; 3066 '') 3067 # No cache, predates ntp_cv_main_cache_version, or is empty. 3068 case "$cache_file" in 3069 /dev/null) 3070 ntp_cache_flush=0 3071 ;; 3072 *) 3073 case "$NTP_CACHEVERSION_PARENT" in 3074 '') 3075 # Do not clear the cache immediately after it is created 3076 # empty as it is noisy. Differentiate a newly-created 3077 # config.cache from one predating the cache version 3078 # mechanism by looking for the first cached variable set 3079 # by Autoconf 3080 case "$ac_cv_path_install" in 3081 '') 3082 # empty config.cache file 3083 ntp_cache_flush=0 3084 esac 3085 ;; 3086 *) 3087 # Parent configure just created cache from empty, 3088 # flushing would be counterproductive. 3089 ntp_cache_flush=0; 3090 ;; 3091 esac 3092 esac 3093 ;; 3094 *) 3095 # configure cache version mismatches config.cache version 3096 ;; 3097 esac 3098 3099 case "$ntp_cache_flush" in 3100 1) 3101 c_version="${ntp_cv_main_cache_version:-(no version found)}" 3102 3103 # Do we flush all variables or exclude others' version stamps? 3104 3105 case "$NTP_CACHEVERSION_PARENT" in 3106 '') 3107 # Clear all *_cv_* variables including our child subdirs' 3108 # ntp_cv_*_cache_version variables. This prevents subdir 3109 # configure scripts from noticing a version mismatch just 3110 # after the top configure in the invocation cleared and 3111 # recreated the cache. 3112 3113 c_varname_list=`set | 3114 sed -n -e 's/=.*$//' \ 3115 -e '/_cv_/p' 3116 ` 3117 ;; 3118 *) 3119 # This is not the top configure this particular invocation. 3120 # Clear all *_cv_* variables sparing the version stamps 3121 # of other configure scripts, so we don't trigger 3122 # useless repeated clearings. 3123 3124 c_varname_list=`set | 3125 sed -n -e 's/=.*$//' \ 3126 -e '/ntp_cv_.*_cache_version/d' \ 3127 -e '/_cv_/p' 3128 ` 3129 esac 3130 3131 for c_varname in $c_varname_list 3132 do 3133 { eval $c_varname=; unset $c_varname; } 3134 done 3135 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3137$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 3139$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3141$as_echo "$as_me: $cache_file version: $c_version" >&6;} 3142 { c_varname=; unset c_varname;} 3143 { c_varname_list=; unset c_varname_list;} 3144 { c_version=; unset c_version;} 3145 esac 3146 3147 { ntp_cache_flush=; unset ntp_cache_flush;} 3148 3149 # save configure version in config.cache for next time 3150 ntp_cv_main_cache_version="$ntp_configure_cache_version" 3151 3152 # let any subdir configure.ac NTP_CACHEVERSION invocations 3153 # know they are not the top level. 3154 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 3155 3156 3157am__api_version='1.15' 3158 3159# Find a good install program. We prefer a C program (faster), 3160# so one script is as good as another. But avoid the broken or 3161# incompatible versions: 3162# SysV /etc/install, /usr/sbin/install 3163# SunOS /usr/etc/install 3164# IRIX /sbin/install 3165# AIX /bin/install 3166# AmigaOS /C/install, which installs bootblocks on floppy discs 3167# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3168# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3169# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3170# OS/2's system install, which has a completely different semantic 3171# ./install, which can be erroneously created by make from ./install.sh. 3172# Reject install programs that cannot install multiple files. 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3174$as_echo_n "checking for a BSD-compatible install... " >&6; } 3175if test -z "$INSTALL"; then 3176if ${ac_cv_path_install+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 # Account for people who put trailing slashes in PATH elements. 3185case $as_dir/ in #(( 3186 ./ | .// | /[cC]/* | \ 3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3188 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3189 /usr/ucb/* ) ;; 3190 *) 3191 # OSF1 and SCO ODT 3.0 have their own names for install. 3192 # Don't use installbsd from OSF since it installs stuff as root 3193 # by default. 3194 for ac_prog in ginstall scoinst install; do 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3197 if test $ac_prog = install && 3198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3199 # AIX install. It has an incompatible calling convention. 3200 : 3201 elif test $ac_prog = install && 3202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3203 # program-specific install script used by HP pwplus--don't use. 3204 : 3205 else 3206 rm -rf conftest.one conftest.two conftest.dir 3207 echo one > conftest.one 3208 echo two > conftest.two 3209 mkdir conftest.dir 3210 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3211 test -s conftest.one && test -s conftest.two && 3212 test -s conftest.dir/conftest.one && 3213 test -s conftest.dir/conftest.two 3214 then 3215 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3216 break 3 3217 fi 3218 fi 3219 fi 3220 done 3221 done 3222 ;; 3223esac 3224 3225 done 3226IFS=$as_save_IFS 3227 3228rm -rf conftest.one conftest.two conftest.dir 3229 3230fi 3231 if test "${ac_cv_path_install+set}" = set; then 3232 INSTALL=$ac_cv_path_install 3233 else 3234 # As a last resort, use the slow shell script. Don't cache a 3235 # value for INSTALL within a source directory, because that will 3236 # break other packages using the cache if that directory is 3237 # removed, or if the value is a relative name. 3238 INSTALL=$ac_install_sh 3239 fi 3240fi 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3242$as_echo "$INSTALL" >&6; } 3243 3244# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3245# It thinks the first close brace ends the variable substitution. 3246test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3247 3248test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3249 3250test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3251 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3253$as_echo_n "checking whether build environment is sane... " >&6; } 3254# Reject unsafe characters in $srcdir or the absolute working directory 3255# name. Accept space and tab only in the latter. 3256am_lf=' 3257' 3258case `pwd` in 3259 *[\\\"\#\$\&\'\`$am_lf]*) 3260 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3261esac 3262case $srcdir in 3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3264 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3265esac 3266 3267# Do 'set' in a subshell so we don't clobber the current shell's 3268# arguments. Must try -L first in case configure is actually a 3269# symlink; some systems play weird games with the mod time of symlinks 3270# (eg FreeBSD returns the mod time of the symlink's containing 3271# directory). 3272if ( 3273 am_has_slept=no 3274 for am_try in 1 2; do 3275 echo "timestamp, slept: $am_has_slept" > conftest.file 3276 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3277 if test "$*" = "X"; then 3278 # -L didn't work. 3279 set X `ls -t "$srcdir/configure" conftest.file` 3280 fi 3281 if test "$*" != "X $srcdir/configure conftest.file" \ 3282 && test "$*" != "X conftest.file $srcdir/configure"; then 3283 3284 # If neither matched, then we have a broken ls. This can happen 3285 # if, for instance, CONFIG_SHELL is bash and it inherits a 3286 # broken ls alias from the environment. This has actually 3287 # happened. Such a system could not be considered "sane". 3288 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3289 alias in your environment" "$LINENO" 5 3290 fi 3291 if test "$2" = conftest.file || test $am_try -eq 2; then 3292 break 3293 fi 3294 # Just in case. 3295 sleep 1 3296 am_has_slept=yes 3297 done 3298 test "$2" = conftest.file 3299 ) 3300then 3301 # Ok. 3302 : 3303else 3304 as_fn_error $? "newly created file is older than distributed files! 3305Check your system clock" "$LINENO" 5 3306fi 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3308$as_echo "yes" >&6; } 3309# If we didn't sleep, we still need to ensure time stamps of config.status and 3310# generated files are strictly newer. 3311am_sleep_pid= 3312if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3313 ( sleep 1 ) & 3314 am_sleep_pid=$! 3315fi 3316 3317rm -f conftest.file 3318 3319test "$program_prefix" != NONE && 3320 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3321# Use a double $ so make ignores it. 3322test "$program_suffix" != NONE && 3323 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3324# Double any \ or $. 3325# By default was `s,x,x', remove it if useless. 3326ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3327program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3328 3329# Expand $ac_aux_dir to an absolute path. 3330am_aux_dir=`cd "$ac_aux_dir" && pwd` 3331 3332if test x"${MISSING+set}" != xset; then 3333 case $am_aux_dir in 3334 *\ * | *\ *) 3335 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3336 *) 3337 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3338 esac 3339fi 3340# Use eval to expand $SHELL 3341if eval "$MISSING --is-lightweight"; then 3342 am_missing_run="$MISSING " 3343else 3344 am_missing_run= 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3346$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3347fi 3348 3349if test x"${install_sh+set}" != xset; then 3350 case $am_aux_dir in 3351 *\ * | *\ *) 3352 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3353 *) 3354 install_sh="\${SHELL} $am_aux_dir/install-sh" 3355 esac 3356fi 3357 3358# Installed binaries are usually stripped using 'strip' when the user 3359# run "make install-strip". However 'strip' might not be the right 3360# tool to use in cross-compilation environments, therefore Automake 3361# will honor the 'STRIP' environment variable to overrule this program. 3362if test "$cross_compiling" != no; then 3363 if test -n "$ac_tool_prefix"; then 3364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3365set dummy ${ac_tool_prefix}strip; ac_word=$2 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367$as_echo_n "checking for $ac_word... " >&6; } 3368if ${ac_cv_prog_STRIP+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 if test -n "$STRIP"; then 3372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3373else 3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375for as_dir in $PATH 3376do 3377 IFS=$as_save_IFS 3378 test -z "$as_dir" && as_dir=. 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3381 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385done 3386 done 3387IFS=$as_save_IFS 3388 3389fi 3390fi 3391STRIP=$ac_cv_prog_STRIP 3392if test -n "$STRIP"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3394$as_echo "$STRIP" >&6; } 3395else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397$as_echo "no" >&6; } 3398fi 3399 3400 3401fi 3402if test -z "$ac_cv_prog_STRIP"; then 3403 ac_ct_STRIP=$STRIP 3404 # Extract the first word of "strip", so it can be a program name with args. 3405set dummy strip; ac_word=$2 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3407$as_echo_n "checking for $ac_word... " >&6; } 3408if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3409 $as_echo_n "(cached) " >&6 3410else 3411 if test -n "$ac_ct_STRIP"; then 3412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3413else 3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH 3416do 3417 IFS=$as_save_IFS 3418 test -z "$as_dir" && as_dir=. 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3421 ac_cv_prog_ac_ct_STRIP="strip" 3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425done 3426 done 3427IFS=$as_save_IFS 3428 3429fi 3430fi 3431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3432if test -n "$ac_ct_STRIP"; then 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3434$as_echo "$ac_ct_STRIP" >&6; } 3435else 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437$as_echo "no" >&6; } 3438fi 3439 3440 if test "x$ac_ct_STRIP" = x; then 3441 STRIP=":" 3442 else 3443 case $cross_compiling:$ac_tool_warned in 3444yes:) 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3447ac_tool_warned=yes ;; 3448esac 3449 STRIP=$ac_ct_STRIP 3450 fi 3451else 3452 STRIP="$ac_cv_prog_STRIP" 3453fi 3454 3455fi 3456INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3457 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3459$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3460if test -z "$MKDIR_P"; then 3461 if ${ac_cv_path_mkdir+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463else 3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_prog in mkdir gmkdir; do 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3472 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3473 'mkdir (GNU coreutils) '* | \ 3474 'mkdir (coreutils) '* | \ 3475 'mkdir (fileutils) '4.1*) 3476 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3477 break 3;; 3478 esac 3479 done 3480 done 3481 done 3482IFS=$as_save_IFS 3483 3484fi 3485 3486 test -d ./--version && rmdir ./--version 3487 if test "${ac_cv_path_mkdir+set}" = set; then 3488 MKDIR_P="$ac_cv_path_mkdir -p" 3489 else 3490 # As a last resort, use the slow shell script. Don't cache a 3491 # value for MKDIR_P within a source directory, because that will 3492 # break other packages using the cache if that directory is 3493 # removed, or if the value is a relative name. 3494 MKDIR_P="$ac_install_sh -d" 3495 fi 3496fi 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3498$as_echo "$MKDIR_P" >&6; } 3499 3500for ac_prog in gawk mawk nawk awk 3501do 3502 # Extract the first word of "$ac_prog", so it can be a program name with args. 3503set dummy $ac_prog; ac_word=$2 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3505$as_echo_n "checking for $ac_word... " >&6; } 3506if ${ac_cv_prog_AWK+:} false; then : 3507 $as_echo_n "(cached) " >&6 3508else 3509 if test -n "$AWK"; then 3510 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3511else 3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_AWK="$ac_prog" 3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524 done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529AWK=$ac_cv_prog_AWK 3530if test -n "$AWK"; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3532$as_echo "$AWK" >&6; } 3533else 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535$as_echo "no" >&6; } 3536fi 3537 3538 3539 test -n "$AWK" && break 3540done 3541 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3543$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3544set x ${MAKE-make} 3545ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3546if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 cat >conftest.make <<\_ACEOF 3550SHELL = /bin/sh 3551all: 3552 @echo '@@@%%%=$(MAKE)=@@@%%%' 3553_ACEOF 3554# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3555case `${MAKE-make} -f conftest.make 2>/dev/null` in 3556 *@@@%%%=?*=@@@%%%*) 3557 eval ac_cv_prog_make_${ac_make}_set=yes;; 3558 *) 3559 eval ac_cv_prog_make_${ac_make}_set=no;; 3560esac 3561rm -f conftest.make 3562fi 3563if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3565$as_echo "yes" >&6; } 3566 SET_MAKE= 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570 SET_MAKE="MAKE=${MAKE-make}" 3571fi 3572 3573rm -rf .tst 2>/dev/null 3574mkdir .tst 2>/dev/null 3575if test -d .tst; then 3576 am__leading_dot=. 3577else 3578 am__leading_dot=_ 3579fi 3580rmdir .tst 2>/dev/null 3581 3582# Check whether --enable-silent-rules was given. 3583if test "${enable_silent_rules+set}" = set; then : 3584 enableval=$enable_silent_rules; 3585fi 3586 3587case $enable_silent_rules in # ((( 3588 yes) AM_DEFAULT_VERBOSITY=0;; 3589 no) AM_DEFAULT_VERBOSITY=1;; 3590 *) AM_DEFAULT_VERBOSITY=1;; 3591esac 3592am_make=${MAKE-make} 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3594$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3595if ${am_cv_make_support_nested_variables+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if $as_echo 'TRUE=$(BAR$(V)) 3599BAR0=false 3600BAR1=true 3601V=1 3602am__doit: 3603 @$(TRUE) 3604.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3605 am_cv_make_support_nested_variables=yes 3606else 3607 am_cv_make_support_nested_variables=no 3608fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3611$as_echo "$am_cv_make_support_nested_variables" >&6; } 3612if test $am_cv_make_support_nested_variables = yes; then 3613 AM_V='$(V)' 3614 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3615else 3616 AM_V=$AM_DEFAULT_VERBOSITY 3617 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3618fi 3619AM_BACKSLASH='\' 3620 3621if test "`cd $srcdir && pwd`" != "`pwd`"; then 3622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3623 # is not polluted with repeated "-I." 3624 am__isrc=' -I$(srcdir)' 3625 # test to see if srcdir already configured 3626 if test -f $srcdir/config.status; then 3627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3628 fi 3629fi 3630 3631# test whether we have cygpath 3632if test -z "$CYGPATH_W"; then 3633 if (cygpath --version) >/dev/null 2>/dev/null; then 3634 CYGPATH_W='cygpath -w' 3635 else 3636 CYGPATH_W=echo 3637 fi 3638fi 3639 3640 3641# Define the identity of the package. 3642 PACKAGE='ntp' 3643 VERSION='4.2.8p14' 3644 3645 3646cat >>confdefs.h <<_ACEOF 3647#define PACKAGE "$PACKAGE" 3648_ACEOF 3649 3650 3651cat >>confdefs.h <<_ACEOF 3652#define VERSION "$VERSION" 3653_ACEOF 3654 3655# Some tools Automake needs. 3656 3657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3658 3659 3660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3661 3662 3663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3664 3665 3666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3667 3668 3669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3670 3671# For better backward compatibility. To be removed once Automake 1.9.x 3672# dies out for good. For more background, see: 3673# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3674# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3675mkdir_p='$(MKDIR_P)' 3676 3677# We need awk for the "check" target (and possibly the TAP driver). The 3678# system "awk" is bad on some platforms. 3679# Always define AMTAR for backward compatibility. Yes, it's still used 3680# in the wild :-( We should find a proper way to deprecate it ... 3681AMTAR='$${TAR-tar}' 3682 3683 3684# We'll loop over all known methods to create a tar archive until one works. 3685_am_tools='gnutar pax cpio none' 3686 3687am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3688 3689 3690 3691 3692 3693 3694# POSIX will say in a future version that running "rm -f" with no argument 3695# is OK; and we want to be able to make that assumption in our Makefile 3696# recipes. So use an aggressive probe to check that the usage we want is 3697# actually supported "in the wild" to an acceptable degree. 3698# See automake bug#10828. 3699# To make any issue more visible, cause the running configure to be aborted 3700# by default if the 'rm' program in use doesn't match our expectations; the 3701# user can still override this though. 3702if rm -f && rm -fr && rm -rf; then : OK; else 3703 cat >&2 <<'END' 3704Oops! 3705 3706Your 'rm' program seems unable to run without file operands specified 3707on the command line, even when the '-f' option is present. This is contrary 3708to the behaviour of most rm programs out there, and not conforming with 3709the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3710 3711Please tell bug-automake@gnu.org about your system, including the value 3712of your $PATH and any error possibly output before this message. This 3713can help us improve future automake versions. 3714 3715END 3716 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3717 echo 'Configuration will proceed anyway, since you have set the' >&2 3718 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3719 echo >&2 3720 else 3721 cat >&2 <<'END' 3722Aborting the configuration process, to ensure you take notice of the issue. 3723 3724You can download and install GNU coreutils to get an 'rm' implementation 3725that behaves properly: <http://www.gnu.org/software/coreutils/>. 3726 3727If you want to complete the configuration process using your problematic 3728'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3729to "yes", and re-run configure. 3730 3731END 3732 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3733 fi 3734fi 3735 3736 3737# Check whether --enable-silent-rules was given. 3738if test "${enable_silent_rules+set}" = set; then : 3739 enableval=$enable_silent_rules; 3740fi 3741 3742case $enable_silent_rules in # ((( 3743 yes) AM_DEFAULT_VERBOSITY=0;; 3744 no) AM_DEFAULT_VERBOSITY=1;; 3745 *) AM_DEFAULT_VERBOSITY=0;; 3746esac 3747am_make=${MAKE-make} 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3749$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3750if ${am_cv_make_support_nested_variables+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 if $as_echo 'TRUE=$(BAR$(V)) 3754BAR0=false 3755BAR1=true 3756V=1 3757am__doit: 3758 @$(TRUE) 3759.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3760 am_cv_make_support_nested_variables=yes 3761else 3762 am_cv_make_support_nested_variables=no 3763fi 3764fi 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3766$as_echo "$am_cv_make_support_nested_variables" >&6; } 3767if test $am_cv_make_support_nested_variables = yes; then 3768 AM_V='$(V)' 3769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3770else 3771 AM_V=$AM_DEFAULT_VERBOSITY 3772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3773fi 3774AM_BACKSLASH='\' 3775 3776 3777# Make sure we can run config.sub. 3778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3780 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3782$as_echo_n "checking build system type... " >&6; } 3783if ${ac_cv_build+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 ac_build_alias=$build_alias 3787test "x$ac_build_alias" = x && 3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3789test "x$ac_build_alias" = x && 3790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3793 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3796$as_echo "$ac_cv_build" >&6; } 3797case $ac_cv_build in 3798*-*-*) ;; 3799*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3800esac 3801build=$ac_cv_build 3802ac_save_IFS=$IFS; IFS='-' 3803set x $ac_cv_build 3804shift 3805build_cpu=$1 3806build_vendor=$2 3807shift; shift 3808# Remember, the first character of IFS is used to create $*, 3809# except with old shells: 3810build_os=$* 3811IFS=$ac_save_IFS 3812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3813 3814 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3816$as_echo_n "checking host system type... " >&6; } 3817if ${ac_cv_host+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 if test "x$host_alias" = x; then 3821 ac_cv_host=$ac_cv_build 3822else 3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3825fi 3826 3827fi 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3829$as_echo "$ac_cv_host" >&6; } 3830case $ac_cv_host in 3831*-*-*) ;; 3832*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3833esac 3834host=$ac_cv_host 3835ac_save_IFS=$IFS; IFS='-' 3836set x $ac_cv_host 3837shift 3838host_cpu=$1 3839host_vendor=$2 3840shift; shift 3841# Remember, the first character of IFS is used to create $*, 3842# except with old shells: 3843host_os=$* 3844IFS=$ac_save_IFS 3845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3846 3847 3848 3849cat >>confdefs.h <<_ACEOF 3850#define STR_SYSTEM "$host" 3851_ACEOF 3852 3853ac_config_headers="$ac_config_headers config.h" 3854 3855 3856ntp_atom_ok=${ntp_atom_ok=no} 3857ntp_oncore_ok=${ntp_oncore_ok=no} 3858ntp_parse_ok=${ntp_parse_ok=no} 3859ntp_ripe_ncc_ok=${ntp_parse_ok=no} 3860ntp_jupiter_ok=${ntp_jupiter_ok=no} 3861 3862DEPDIR="${am__leading_dot}deps" 3863 3864ac_config_commands="$ac_config_commands depfiles" 3865 3866 3867am_make=${MAKE-make} 3868cat > confinc << 'END' 3869am__doit: 3870 @echo this is the am__doit target 3871.PHONY: am__doit 3872END 3873# If we don't find an include directive, just comment out the code. 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3875$as_echo_n "checking for style of include used by $am_make... " >&6; } 3876am__include="#" 3877am__quote= 3878_am_result=none 3879# First try GNU make style include. 3880echo "include confinc" > confmf 3881# Ignore all kinds of additional output from 'make'. 3882case `$am_make -s -f confmf 2> /dev/null` in #( 3883*the\ am__doit\ target*) 3884 am__include=include 3885 am__quote= 3886 _am_result=GNU 3887 ;; 3888esac 3889# Now try BSD make style include. 3890if test "$am__include" = "#"; then 3891 echo '.include "confinc"' > confmf 3892 case `$am_make -s -f confmf 2> /dev/null` in #( 3893 *the\ am__doit\ target*) 3894 am__include=.include 3895 am__quote="\"" 3896 _am_result=BSD 3897 ;; 3898 esac 3899fi 3900 3901 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3903$as_echo "$_am_result" >&6; } 3904rm -f confinc confmf 3905 3906# Check whether --enable-dependency-tracking was given. 3907if test "${enable_dependency_tracking+set}" = set; then : 3908 enableval=$enable_dependency_tracking; 3909fi 3910 3911if test "x$enable_dependency_tracking" != xno; then 3912 am_depcomp="$ac_aux_dir/depcomp" 3913 AMDEPBACKSLASH='\' 3914 am__nodep='_no' 3915fi 3916 if test "x$enable_dependency_tracking" != xno; then 3917 AMDEP_TRUE= 3918 AMDEP_FALSE='#' 3919else 3920 AMDEP_TRUE='#' 3921 AMDEP_FALSE= 3922fi 3923 3924 3925 3926case "$build" in 3927 *-*-freebsd1?.*) 3928 cclist=cc 3929 ;; 3930 *) 3931 cclist="cc gcc" 3932 ;; 3933esac 3934 3935 3936#AC_USE_SYSTEM_EXTENSIONS 3937 3938ac_ext=c 3939ac_cpp='$CPP $CPPFLAGS' 3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3943if test -n "$ac_tool_prefix"; then 3944 for ac_prog in $cclist 3945 do 3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3949$as_echo_n "checking for $ac_word... " >&6; } 3950if ${ac_cv_prog_CC+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 if test -n "$CC"; then 3954 ac_cv_prog_CC="$CC" # Let the user override the test. 3955else 3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3957for as_dir in $PATH 3958do 3959 IFS=$as_save_IFS 3960 test -z "$as_dir" && as_dir=. 3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3965 break 2 3966 fi 3967done 3968 done 3969IFS=$as_save_IFS 3970 3971fi 3972fi 3973CC=$ac_cv_prog_CC 3974if test -n "$CC"; then 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3976$as_echo "$CC" >&6; } 3977else 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3979$as_echo "no" >&6; } 3980fi 3981 3982 3983 test -n "$CC" && break 3984 done 3985fi 3986if test -z "$CC"; then 3987 ac_ct_CC=$CC 3988 for ac_prog in $cclist 3989do 3990 # Extract the first word of "$ac_prog", so it can be a program name with args. 3991set dummy $ac_prog; ac_word=$2 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993$as_echo_n "checking for $ac_word... " >&6; } 3994if ${ac_cv_prog_ac_ct_CC+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -n "$ac_ct_CC"; then 3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3999else 4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4007 ac_cv_prog_ac_ct_CC="$ac_prog" 4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012 done 4013IFS=$as_save_IFS 4014 4015fi 4016fi 4017ac_ct_CC=$ac_cv_prog_ac_ct_CC 4018if test -n "$ac_ct_CC"; then 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4020$as_echo "$ac_ct_CC" >&6; } 4021else 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023$as_echo "no" >&6; } 4024fi 4025 4026 4027 test -n "$ac_ct_CC" && break 4028done 4029 4030 if test "x$ac_ct_CC" = x; then 4031 CC="" 4032 else 4033 case $cross_compiling:$ac_tool_warned in 4034yes:) 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4037ac_tool_warned=yes ;; 4038esac 4039 CC=$ac_ct_CC 4040 fi 4041fi 4042 4043 4044test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4046as_fn_error $? "no acceptable C compiler found in \$PATH 4047See \`config.log' for more details" "$LINENO" 5; } 4048 4049# Provide some information about the compiler. 4050$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4051set X $ac_compile 4052ac_compiler=$2 4053for ac_option in --version -v -V -qversion; do 4054 { { ac_try="$ac_compiler $ac_option >&5" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060$as_echo "$ac_try_echo"; } >&5 4061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4062 ac_status=$? 4063 if test -s conftest.err; then 4064 sed '10a\ 4065... rest of stderr output deleted ... 4066 10q' conftest.err >conftest.er1 4067 cat conftest.er1 >&5 4068 fi 4069 rm -f conftest.er1 conftest.err 4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071 test $ac_status = 0; } 4072done 4073 4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076 4077int 4078main () 4079{ 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085ac_clean_files_save=$ac_clean_files 4086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4087# Try to create an executable without -o first, disregard a.out. 4088# It will help us diagnose broken compilers, and finding out an intuition 4089# of exeext. 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4091$as_echo_n "checking whether the C compiler works... " >&6; } 4092ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4093 4094# The possible output files: 4095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4096 4097ac_rmfiles= 4098for ac_file in $ac_files 4099do 4100 case $ac_file in 4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4103 esac 4104done 4105rm -f $ac_rmfiles 4106 4107if { { ac_try="$ac_link_default" 4108case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111esac 4112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4113$as_echo "$ac_try_echo"; } >&5 4114 (eval "$ac_link_default") 2>&5 4115 ac_status=$? 4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4117 test $ac_status = 0; }; then : 4118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4119# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4120# in a Makefile. We should not override ac_cv_exeext if it was cached, 4121# so that the user can short-circuit this test for compilers unknown to 4122# Autoconf. 4123for ac_file in $ac_files '' 4124do 4125 test -f "$ac_file" || continue 4126 case $ac_file in 4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4128 ;; 4129 [ab].out ) 4130 # We found the default executable, but exeext='' is most 4131 # certainly right. 4132 break;; 4133 *.* ) 4134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4135 then :; else 4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4137 fi 4138 # We set ac_cv_exeext here because the later test for it is not 4139 # safe: cross compilers may not add the suffix if given an `-o' 4140 # argument, so we may need to know it at that point already. 4141 # Even if this section looks crufty: it has the advantage of 4142 # actually working. 4143 break;; 4144 * ) 4145 break;; 4146 esac 4147done 4148test "$ac_cv_exeext" = no && ac_cv_exeext= 4149 4150else 4151 ac_file='' 4152fi 4153if test -z "$ac_file"; then : 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4155$as_echo "no" >&6; } 4156$as_echo "$as_me: failed program was:" >&5 4157sed 's/^/| /' conftest.$ac_ext >&5 4158 4159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4161as_fn_error 77 "C compiler cannot create executables 4162See \`config.log' for more details" "$LINENO" 5; } 4163else 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4165$as_echo "yes" >&6; } 4166fi 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4168$as_echo_n "checking for C compiler default output file name... " >&6; } 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4170$as_echo "$ac_file" >&6; } 4171ac_exeext=$ac_cv_exeext 4172 4173rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4174ac_clean_files=$ac_clean_files_save 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4176$as_echo_n "checking for suffix of executables... " >&6; } 4177if { { ac_try="$ac_link" 4178case "(($ac_try" in 4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4180 *) ac_try_echo=$ac_try;; 4181esac 4182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4183$as_echo "$ac_try_echo"; } >&5 4184 (eval "$ac_link") 2>&5 4185 ac_status=$? 4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4187 test $ac_status = 0; }; then : 4188 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4189# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4190# work properly (i.e., refer to `conftest.exe'), while it won't with 4191# `rm'. 4192for ac_file in conftest.exe conftest conftest.*; do 4193 test -f "$ac_file" || continue 4194 case $ac_file in 4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4197 break;; 4198 * ) break;; 4199 esac 4200done 4201else 4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4204as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4205See \`config.log' for more details" "$LINENO" 5; } 4206fi 4207rm -f conftest conftest$ac_cv_exeext 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4209$as_echo "$ac_cv_exeext" >&6; } 4210 4211rm -f conftest.$ac_ext 4212EXEEXT=$ac_cv_exeext 4213ac_exeext=$EXEEXT 4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216#include <stdio.h> 4217int 4218main () 4219{ 4220FILE *f = fopen ("conftest.out", "w"); 4221 return ferror (f) || fclose (f) != 0; 4222 4223 ; 4224 return 0; 4225} 4226_ACEOF 4227ac_clean_files="$ac_clean_files conftest.out" 4228# Check that the compiler produces executables we can run. If not, either 4229# the compiler is broken, or we cross compile. 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4231$as_echo_n "checking whether we are cross compiling... " >&6; } 4232if test "$cross_compiling" != yes; then 4233 { { ac_try="$ac_link" 4234case "(($ac_try" in 4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4236 *) ac_try_echo=$ac_try;; 4237esac 4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4239$as_echo "$ac_try_echo"; } >&5 4240 (eval "$ac_link") 2>&5 4241 ac_status=$? 4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4243 test $ac_status = 0; } 4244 if { ac_try='./conftest$ac_cv_exeext' 4245 { { case "(($ac_try" in 4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4247 *) ac_try_echo=$ac_try;; 4248esac 4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4250$as_echo "$ac_try_echo"; } >&5 4251 (eval "$ac_try") 2>&5 4252 ac_status=$? 4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4254 test $ac_status = 0; }; }; then 4255 cross_compiling=no 4256 else 4257 if test "$cross_compiling" = maybe; then 4258 cross_compiling=yes 4259 else 4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4262as_fn_error $? "cannot run C compiled programs. 4263If you meant to cross compile, use \`--host'. 4264See \`config.log' for more details" "$LINENO" 5; } 4265 fi 4266 fi 4267fi 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4269$as_echo "$cross_compiling" >&6; } 4270 4271rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4272ac_clean_files=$ac_clean_files_save 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4274$as_echo_n "checking for suffix of object files... " >&6; } 4275if ${ac_cv_objext+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280 4281int 4282main () 4283{ 4284 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289rm -f conftest.o conftest.obj 4290if { { ac_try="$ac_compile" 4291case "(($ac_try" in 4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4293 *) ac_try_echo=$ac_try;; 4294esac 4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4296$as_echo "$ac_try_echo"; } >&5 4297 (eval "$ac_compile") 2>&5 4298 ac_status=$? 4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4300 test $ac_status = 0; }; then : 4301 for ac_file in conftest.o conftest.obj conftest.*; do 4302 test -f "$ac_file" || continue; 4303 case $ac_file in 4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4306 break;; 4307 esac 4308done 4309else 4310 $as_echo "$as_me: failed program was:" >&5 4311sed 's/^/| /' conftest.$ac_ext >&5 4312 4313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4315as_fn_error $? "cannot compute suffix of object files: cannot compile 4316See \`config.log' for more details" "$LINENO" 5; } 4317fi 4318rm -f conftest.$ac_cv_objext conftest.$ac_ext 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4321$as_echo "$ac_cv_objext" >&6; } 4322OBJEXT=$ac_cv_objext 4323ac_objext=$OBJEXT 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4325$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4326if ${ac_cv_c_compiler_gnu+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331 4332int 4333main () 4334{ 4335#ifndef __GNUC__ 4336 choke me 4337#endif 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343if ac_fn_c_try_compile "$LINENO"; then : 4344 ac_compiler_gnu=yes 4345else 4346 ac_compiler_gnu=no 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349ac_cv_c_compiler_gnu=$ac_compiler_gnu 4350 4351fi 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4353$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4354if test $ac_compiler_gnu = yes; then 4355 GCC=yes 4356else 4357 GCC= 4358fi 4359ac_test_CFLAGS=${CFLAGS+set} 4360ac_save_CFLAGS=$CFLAGS 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4362$as_echo_n "checking whether $CC accepts -g... " >&6; } 4363if ${ac_cv_prog_cc_g+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 ac_save_c_werror_flag=$ac_c_werror_flag 4367 ac_c_werror_flag=yes 4368 ac_cv_prog_cc_g=no 4369 CFLAGS="-g" 4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371/* end confdefs.h. */ 4372 4373int 4374main () 4375{ 4376 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381if ac_fn_c_try_compile "$LINENO"; then : 4382 ac_cv_prog_cc_g=yes 4383else 4384 CFLAGS="" 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386/* end confdefs.h. */ 4387 4388int 4389main () 4390{ 4391 4392 ; 4393 return 0; 4394} 4395_ACEOF 4396if ac_fn_c_try_compile "$LINENO"; then : 4397 4398else 4399 ac_c_werror_flag=$ac_save_c_werror_flag 4400 CFLAGS="-g" 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403 4404int 4405main () 4406{ 4407 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412if ac_fn_c_try_compile "$LINENO"; then : 4413 ac_cv_prog_cc_g=yes 4414fi 4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418fi 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420 ac_c_werror_flag=$ac_save_c_werror_flag 4421fi 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4423$as_echo "$ac_cv_prog_cc_g" >&6; } 4424if test "$ac_test_CFLAGS" = set; then 4425 CFLAGS=$ac_save_CFLAGS 4426elif test $ac_cv_prog_cc_g = yes; then 4427 if test "$GCC" = yes; then 4428 CFLAGS="-g -O2" 4429 else 4430 CFLAGS="-g" 4431 fi 4432else 4433 if test "$GCC" = yes; then 4434 CFLAGS="-O2" 4435 else 4436 CFLAGS= 4437 fi 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4440$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4441if ${ac_cv_prog_cc_c89+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 ac_cv_prog_cc_c89=no 4445ac_save_CC=$CC 4446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448#include <stdarg.h> 4449#include <stdio.h> 4450struct stat; 4451/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4452struct buf { int x; }; 4453FILE * (*rcsopen) (struct buf *, struct stat *, int); 4454static char *e (p, i) 4455 char **p; 4456 int i; 4457{ 4458 return p[i]; 4459} 4460static char *f (char * (*g) (char **, int), char **p, ...) 4461{ 4462 char *s; 4463 va_list v; 4464 va_start (v,p); 4465 s = g (p, va_arg (v,int)); 4466 va_end (v); 4467 return s; 4468} 4469 4470/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4471 function prototypes and stuff, but not '\xHH' hex character constants. 4472 These don't provoke an error unfortunately, instead are silently treated 4473 as 'x'. The following induces an error, until -std is added to get 4474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4475 array size at least. It's necessary to write '\x00'==0 to get something 4476 that's true only with -std. */ 4477int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4478 4479/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4480 inside strings and character constants. */ 4481#define FOO(x) 'x' 4482int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4483 4484int test (int i, double x); 4485struct s1 {int (*f) (int a);}; 4486struct s2 {int (*f) (double a);}; 4487int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4488int argc; 4489char **argv; 4490int 4491main () 4492{ 4493return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4500do 4501 CC="$ac_save_CC $ac_arg" 4502 if ac_fn_c_try_compile "$LINENO"; then : 4503 ac_cv_prog_cc_c89=$ac_arg 4504fi 4505rm -f core conftest.err conftest.$ac_objext 4506 test "x$ac_cv_prog_cc_c89" != "xno" && break 4507done 4508rm -f conftest.$ac_ext 4509CC=$ac_save_CC 4510 4511fi 4512# AC_CACHE_VAL 4513case "x$ac_cv_prog_cc_c89" in 4514 x) 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4516$as_echo "none needed" >&6; } ;; 4517 xno) 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4519$as_echo "unsupported" >&6; } ;; 4520 *) 4521 CC="$CC $ac_cv_prog_cc_c89" 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4523$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4524esac 4525if test "x$ac_cv_prog_cc_c89" != xno; then : 4526 4527fi 4528 4529ac_ext=c 4530ac_cpp='$CPP $CPPFLAGS' 4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4533ac_compiler_gnu=$ac_cv_c_compiler_gnu 4534 4535ac_ext=c 4536ac_cpp='$CPP $CPPFLAGS' 4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539ac_compiler_gnu=$ac_cv_c_compiler_gnu 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4541$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4542if ${am_cv_prog_cc_c_o+:} false; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546/* end confdefs.h. */ 4547 4548int 4549main () 4550{ 4551 4552 ; 4553 return 0; 4554} 4555_ACEOF 4556 # Make sure it works both with $CC and with simple cc. 4557 # Following AC_PROG_CC_C_O, we do the test twice because some 4558 # compilers refuse to overwrite an existing .o file with -o, 4559 # though they will create one. 4560 am_cv_prog_cc_c_o=yes 4561 for am_i in 1 2; do 4562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } \ 4567 && test -f conftest2.$ac_objext; then 4568 : OK 4569 else 4570 am_cv_prog_cc_c_o=no 4571 break 4572 fi 4573 done 4574 rm -f core conftest* 4575 unset am_i 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4578$as_echo "$am_cv_prog_cc_c_o" >&6; } 4579if test "$am_cv_prog_cc_c_o" != yes; then 4580 # Losing compiler, so override with the script. 4581 # FIXME: It is wrong to rewrite CC. 4582 # But if we don't then we get into trouble of one sort or another. 4583 # A longer-term fix would be to have automake use am__CC in this case, 4584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4585 CC="$am_aux_dir/compile $CC" 4586fi 4587ac_ext=c 4588ac_cpp='$CPP $CPPFLAGS' 4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4591ac_compiler_gnu=$ac_cv_c_compiler_gnu 4592 4593 4594depcc="$CC" am_compiler_list= 4595 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4597$as_echo_n "checking dependency style of $depcc... " >&6; } 4598if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4602 # We make a subdir and do the tests there. Otherwise we can end up 4603 # making bogus files that we don't know about and never remove. For 4604 # instance it was reported that on HP-UX the gcc test will end up 4605 # making a dummy file named 'D' -- because '-MD' means "put the output 4606 # in D". 4607 rm -rf conftest.dir 4608 mkdir conftest.dir 4609 # Copy depcomp to subdir because otherwise we won't find it if we're 4610 # using a relative directory. 4611 cp "$am_depcomp" conftest.dir 4612 cd conftest.dir 4613 # We will build objects and dependencies in a subdirectory because 4614 # it helps to detect inapplicable dependency modes. For instance 4615 # both Tru64's cc and ICC support -MD to output dependencies as a 4616 # side effect of compilation, but ICC will put the dependencies in 4617 # the current directory while Tru64 will put them in the object 4618 # directory. 4619 mkdir sub 4620 4621 am_cv_CC_dependencies_compiler_type=none 4622 if test "$am_compiler_list" = ""; then 4623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4624 fi 4625 am__universal=false 4626 case " $depcc " in #( 4627 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4628 esac 4629 4630 for depmode in $am_compiler_list; do 4631 # Setup a source with many dependencies, because some compilers 4632 # like to wrap large dependency lists on column 80 (with \), and 4633 # we should not choose a depcomp mode which is confused by this. 4634 # 4635 # We need to recreate these files for each test, as the compiler may 4636 # overwrite some of them when testing with obscure command lines. 4637 # This happens at least with the AIX C compiler. 4638 : > sub/conftest.c 4639 for i in 1 2 3 4 5 6; do 4640 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4641 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4642 # Solaris 10 /bin/sh. 4643 echo '/* dummy */' > sub/conftst$i.h 4644 done 4645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4646 4647 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4648 # mode. It turns out that the SunPro C++ compiler does not properly 4649 # handle '-M -o', and we need to detect this. Also, some Intel 4650 # versions had trouble with output in subdirs. 4651 am__obj=sub/conftest.${OBJEXT-o} 4652 am__minus_obj="-o $am__obj" 4653 case $depmode in 4654 gcc) 4655 # This depmode causes a compiler race in universal mode. 4656 test "$am__universal" = false || continue 4657 ;; 4658 nosideeffect) 4659 # After this tag, mechanisms are not by side-effect, so they'll 4660 # only be used when explicitly requested. 4661 if test "x$enable_dependency_tracking" = xyes; then 4662 continue 4663 else 4664 break 4665 fi 4666 ;; 4667 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4668 # This compiler won't grok '-c -o', but also, the minuso test has 4669 # not run yet. These depmodes are late enough in the game, and 4670 # so weak that their functioning should not be impacted. 4671 am__obj=conftest.${OBJEXT-o} 4672 am__minus_obj= 4673 ;; 4674 none) break ;; 4675 esac 4676 if depmode=$depmode \ 4677 source=sub/conftest.c object=$am__obj \ 4678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4679 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4680 >/dev/null 2>conftest.err && 4681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4683 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4685 # icc doesn't choke on unknown options, it will just issue warnings 4686 # or remarks (even with -Werror). So we grep stderr for any message 4687 # that says an option was ignored or not supported. 4688 # When given -MP, icc 7.0 and 7.1 complain thusly: 4689 # icc: Command line warning: ignoring option '-M'; no argument required 4690 # The diagnosis changed in icc 8.0: 4691 # icc: Command line remark: option '-MP' not supported 4692 if (grep 'ignoring option' conftest.err || 4693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4694 am_cv_CC_dependencies_compiler_type=$depmode 4695 break 4696 fi 4697 fi 4698 done 4699 4700 cd .. 4701 rm -rf conftest.dir 4702else 4703 am_cv_CC_dependencies_compiler_type=none 4704fi 4705 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4708$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4709CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4710 4711 if 4712 test "x$enable_dependency_tracking" != xno \ 4713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4714 am__fastdepCC_TRUE= 4715 am__fastdepCC_FALSE='#' 4716else 4717 am__fastdepCC_TRUE='#' 4718 am__fastdepCC_FALSE= 4719fi 4720 4721 4722 4723 4724 4725ac_ext=c 4726ac_cpp='$CPP $CPPFLAGS' 4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4729ac_compiler_gnu=$ac_cv_c_compiler_gnu 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4731$as_echo_n "checking how to run the C preprocessor... " >&6; } 4732# On Suns, sometimes $CPP names a directory. 4733if test -n "$CPP" && test -d "$CPP"; then 4734 CPP= 4735fi 4736if test -z "$CPP"; then 4737 if ${ac_cv_prog_CPP+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 # Double quotes because CPP needs to be expanded 4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4742 do 4743 ac_preproc_ok=false 4744for ac_c_preproc_warn_flag in '' yes 4745do 4746 # Use a header file that comes with gcc, so configuring glibc 4747 # with a fresh cross-compiler works. 4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4749 # <limits.h> exists even on freestanding compilers. 4750 # On the NeXT, cc -E runs the code through the compiler's parser, 4751 # not just through cpp. "Syntax error" is here to catch this case. 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4753/* end confdefs.h. */ 4754#ifdef __STDC__ 4755# include <limits.h> 4756#else 4757# include <assert.h> 4758#endif 4759 Syntax error 4760_ACEOF 4761if ac_fn_c_try_cpp "$LINENO"; then : 4762 4763else 4764 # Broken: fails on valid input. 4765continue 4766fi 4767rm -f conftest.err conftest.i conftest.$ac_ext 4768 4769 # OK, works on sane cases. Now check whether nonexistent headers 4770 # can be detected and how. 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773#include <ac_nonexistent.h> 4774_ACEOF 4775if ac_fn_c_try_cpp "$LINENO"; then : 4776 # Broken: success on invalid input. 4777continue 4778else 4779 # Passes both tests. 4780ac_preproc_ok=: 4781break 4782fi 4783rm -f conftest.err conftest.i conftest.$ac_ext 4784 4785done 4786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4787rm -f conftest.i conftest.err conftest.$ac_ext 4788if $ac_preproc_ok; then : 4789 break 4790fi 4791 4792 done 4793 ac_cv_prog_CPP=$CPP 4794 4795fi 4796 CPP=$ac_cv_prog_CPP 4797else 4798 ac_cv_prog_CPP=$CPP 4799fi 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4801$as_echo "$CPP" >&6; } 4802ac_preproc_ok=false 4803for ac_c_preproc_warn_flag in '' yes 4804do 4805 # Use a header file that comes with gcc, so configuring glibc 4806 # with a fresh cross-compiler works. 4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4808 # <limits.h> exists even on freestanding compilers. 4809 # On the NeXT, cc -E runs the code through the compiler's parser, 4810 # not just through cpp. "Syntax error" is here to catch this case. 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813#ifdef __STDC__ 4814# include <limits.h> 4815#else 4816# include <assert.h> 4817#endif 4818 Syntax error 4819_ACEOF 4820if ac_fn_c_try_cpp "$LINENO"; then : 4821 4822else 4823 # Broken: fails on valid input. 4824continue 4825fi 4826rm -f conftest.err conftest.i conftest.$ac_ext 4827 4828 # OK, works on sane cases. Now check whether nonexistent headers 4829 # can be detected and how. 4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831/* end confdefs.h. */ 4832#include <ac_nonexistent.h> 4833_ACEOF 4834if ac_fn_c_try_cpp "$LINENO"; then : 4835 # Broken: success on invalid input. 4836continue 4837else 4838 # Passes both tests. 4839ac_preproc_ok=: 4840break 4841fi 4842rm -f conftest.err conftest.i conftest.$ac_ext 4843 4844done 4845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4846rm -f conftest.i conftest.err conftest.$ac_ext 4847if $ac_preproc_ok; then : 4848 4849else 4850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4852as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4853See \`config.log' for more details" "$LINENO" 5; } 4854fi 4855 4856ac_ext=c 4857ac_cpp='$CPP $CPPFLAGS' 4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4860ac_compiler_gnu=$ac_cv_c_compiler_gnu 4861 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4864$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4865if ${ac_cv_path_GREP+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 if test -z "$GREP"; then 4869 ac_path_GREP_found=false 4870 # Loop through the user's path and test for each of PROGNAME-LIST 4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4873do 4874 IFS=$as_save_IFS 4875 test -z "$as_dir" && as_dir=. 4876 for ac_prog in grep ggrep; do 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4879 as_fn_executable_p "$ac_path_GREP" || continue 4880# Check for GNU ac_path_GREP and select it if it is found. 4881 # Check for GNU $ac_path_GREP 4882case `"$ac_path_GREP" --version 2>&1` in 4883*GNU*) 4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4885*) 4886 ac_count=0 4887 $as_echo_n 0123456789 >"conftest.in" 4888 while : 4889 do 4890 cat "conftest.in" "conftest.in" >"conftest.tmp" 4891 mv "conftest.tmp" "conftest.in" 4892 cp "conftest.in" "conftest.nl" 4893 $as_echo 'GREP' >> "conftest.nl" 4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4896 as_fn_arith $ac_count + 1 && ac_count=$as_val 4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4898 # Best one so far, save it but keep looking for a better one 4899 ac_cv_path_GREP="$ac_path_GREP" 4900 ac_path_GREP_max=$ac_count 4901 fi 4902 # 10*(2^10) chars as input seems more than enough 4903 test $ac_count -gt 10 && break 4904 done 4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4906esac 4907 4908 $ac_path_GREP_found && break 3 4909 done 4910 done 4911 done 4912IFS=$as_save_IFS 4913 if test -z "$ac_cv_path_GREP"; then 4914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4915 fi 4916else 4917 ac_cv_path_GREP=$GREP 4918fi 4919 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4922$as_echo "$ac_cv_path_GREP" >&6; } 4923 GREP="$ac_cv_path_GREP" 4924 4925 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4927$as_echo_n "checking for egrep... " >&6; } 4928if ${ac_cv_path_EGREP+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4932 then ac_cv_path_EGREP="$GREP -E" 4933 else 4934 if test -z "$EGREP"; then 4935 ac_path_EGREP_found=false 4936 # Loop through the user's path and test for each of PROGNAME-LIST 4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4939do 4940 IFS=$as_save_IFS 4941 test -z "$as_dir" && as_dir=. 4942 for ac_prog in egrep; do 4943 for ac_exec_ext in '' $ac_executable_extensions; do 4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4945 as_fn_executable_p "$ac_path_EGREP" || continue 4946# Check for GNU ac_path_EGREP and select it if it is found. 4947 # Check for GNU $ac_path_EGREP 4948case `"$ac_path_EGREP" --version 2>&1` in 4949*GNU*) 4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4951*) 4952 ac_count=0 4953 $as_echo_n 0123456789 >"conftest.in" 4954 while : 4955 do 4956 cat "conftest.in" "conftest.in" >"conftest.tmp" 4957 mv "conftest.tmp" "conftest.in" 4958 cp "conftest.in" "conftest.nl" 4959 $as_echo 'EGREP' >> "conftest.nl" 4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4962 as_fn_arith $ac_count + 1 && ac_count=$as_val 4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4964 # Best one so far, save it but keep looking for a better one 4965 ac_cv_path_EGREP="$ac_path_EGREP" 4966 ac_path_EGREP_max=$ac_count 4967 fi 4968 # 10*(2^10) chars as input seems more than enough 4969 test $ac_count -gt 10 && break 4970 done 4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4972esac 4973 4974 $ac_path_EGREP_found && break 3 4975 done 4976 done 4977 done 4978IFS=$as_save_IFS 4979 if test -z "$ac_cv_path_EGREP"; then 4980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4981 fi 4982else 4983 ac_cv_path_EGREP=$EGREP 4984fi 4985 4986 fi 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4989$as_echo "$ac_cv_path_EGREP" >&6; } 4990 EGREP="$ac_cv_path_EGREP" 4991 4992 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4994$as_echo_n "checking for ANSI C header files... " >&6; } 4995if ${ac_cv_header_stdc+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997else 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999/* end confdefs.h. */ 5000#include <stdlib.h> 5001#include <stdarg.h> 5002#include <string.h> 5003#include <float.h> 5004 5005int 5006main () 5007{ 5008 5009 ; 5010 return 0; 5011} 5012_ACEOF 5013if ac_fn_c_try_compile "$LINENO"; then : 5014 ac_cv_header_stdc=yes 5015else 5016 ac_cv_header_stdc=no 5017fi 5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5019 5020if test $ac_cv_header_stdc = yes; then 5021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024#include <string.h> 5025 5026_ACEOF 5027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5028 $EGREP "memchr" >/dev/null 2>&1; then : 5029 5030else 5031 ac_cv_header_stdc=no 5032fi 5033rm -f conftest* 5034 5035fi 5036 5037if test $ac_cv_header_stdc = yes; then 5038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041#include <stdlib.h> 5042 5043_ACEOF 5044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5045 $EGREP "free" >/dev/null 2>&1; then : 5046 5047else 5048 ac_cv_header_stdc=no 5049fi 5050rm -f conftest* 5051 5052fi 5053 5054if test $ac_cv_header_stdc = yes; then 5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5056 if test "$cross_compiling" = yes; then : 5057 : 5058else 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061#include <ctype.h> 5062#include <stdlib.h> 5063#if ((' ' & 0x0FF) == 0x020) 5064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5066#else 5067# define ISLOWER(c) \ 5068 (('a' <= (c) && (c) <= 'i') \ 5069 || ('j' <= (c) && (c) <= 'r') \ 5070 || ('s' <= (c) && (c) <= 'z')) 5071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5072#endif 5073 5074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5075int 5076main () 5077{ 5078 int i; 5079 for (i = 0; i < 256; i++) 5080 if (XOR (islower (i), ISLOWER (i)) 5081 || toupper (i) != TOUPPER (i)) 5082 return 2; 5083 return 0; 5084} 5085_ACEOF 5086if ac_fn_c_try_run "$LINENO"; then : 5087 5088else 5089 ac_cv_header_stdc=no 5090fi 5091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5092 conftest.$ac_objext conftest.beam conftest.$ac_ext 5093fi 5094 5095fi 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5098$as_echo "$ac_cv_header_stdc" >&6; } 5099if test $ac_cv_header_stdc = yes; then 5100 5101$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5102 5103fi 5104 5105# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5107 inttypes.h stdint.h unistd.h 5108do : 5109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5111" 5112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5113 cat >>confdefs.h <<_ACEOF 5114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5115_ACEOF 5116 5117fi 5118 5119done 5120 5121 5122 5123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5124if test "x$ac_cv_header_minix_config_h" = xyes; then : 5125 MINIX=yes 5126else 5127 MINIX= 5128fi 5129 5130 5131 if test "$MINIX" = yes; then 5132 5133$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5134 5135 5136$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5137 5138 5139$as_echo "#define _MINIX 1" >>confdefs.h 5140 5141 fi 5142 5143 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5145$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5146if ${ac_cv_safe_to_define___extensions__+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151 5152# define __EXTENSIONS__ 1 5153 $ac_includes_default 5154int 5155main () 5156{ 5157 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162if ac_fn_c_try_compile "$LINENO"; then : 5163 ac_cv_safe_to_define___extensions__=yes 5164else 5165 ac_cv_safe_to_define___extensions__=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5170$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5171 test $ac_cv_safe_to_define___extensions__ = yes && 5172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5173 5174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5175 5176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5177 5178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5179 5180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5181 5182 5183 5184 case $ac_cv_prog_cc_stdc in #( 5185 no) : 5186 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5187 *) : 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5189$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5190if ${ac_cv_prog_cc_c99+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 ac_cv_prog_cc_c99=no 5194ac_save_CC=$CC 5195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197#include <stdarg.h> 5198#include <stdbool.h> 5199#include <stdlib.h> 5200#include <wchar.h> 5201#include <stdio.h> 5202 5203// Check varargs macros. These examples are taken from C99 6.10.3.5. 5204#define debug(...) fprintf (stderr, __VA_ARGS__) 5205#define showlist(...) puts (#__VA_ARGS__) 5206#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5207static void 5208test_varargs_macros (void) 5209{ 5210 int x = 1234; 5211 int y = 5678; 5212 debug ("Flag"); 5213 debug ("X = %d\n", x); 5214 showlist (The first, second, and third items.); 5215 report (x>y, "x is %d but y is %d", x, y); 5216} 5217 5218// Check long long types. 5219#define BIG64 18446744073709551615ull 5220#define BIG32 4294967295ul 5221#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5222#if !BIG_OK 5223 your preprocessor is broken; 5224#endif 5225#if BIG_OK 5226#else 5227 your preprocessor is broken; 5228#endif 5229static long long int bignum = -9223372036854775807LL; 5230static unsigned long long int ubignum = BIG64; 5231 5232struct incomplete_array 5233{ 5234 int datasize; 5235 double data[]; 5236}; 5237 5238struct named_init { 5239 int number; 5240 const wchar_t *name; 5241 double average; 5242}; 5243 5244typedef const char *ccp; 5245 5246static inline int 5247test_restrict (ccp restrict text) 5248{ 5249 // See if C++-style comments work. 5250 // Iterate through items via the restricted pointer. 5251 // Also check for declarations in for loops. 5252 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5253 continue; 5254 return 0; 5255} 5256 5257// Check varargs and va_copy. 5258static void 5259test_varargs (const char *format, ...) 5260{ 5261 va_list args; 5262 va_start (args, format); 5263 va_list args_copy; 5264 va_copy (args_copy, args); 5265 5266 const char *str; 5267 int number; 5268 float fnumber; 5269 5270 while (*format) 5271 { 5272 switch (*format++) 5273 { 5274 case 's': // string 5275 str = va_arg (args_copy, const char *); 5276 break; 5277 case 'd': // int 5278 number = va_arg (args_copy, int); 5279 break; 5280 case 'f': // float 5281 fnumber = va_arg (args_copy, double); 5282 break; 5283 default: 5284 break; 5285 } 5286 } 5287 va_end (args_copy); 5288 va_end (args); 5289} 5290 5291int 5292main () 5293{ 5294 5295 // Check bool. 5296 _Bool success = false; 5297 5298 // Check restrict. 5299 if (test_restrict ("String literal") == 0) 5300 success = true; 5301 char *restrict newvar = "Another string"; 5302 5303 // Check varargs. 5304 test_varargs ("s, d' f .", "string", 65, 34.234); 5305 test_varargs_macros (); 5306 5307 // Check flexible array members. 5308 struct incomplete_array *ia = 5309 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5310 ia->datasize = 10; 5311 for (int i = 0; i < ia->datasize; ++i) 5312 ia->data[i] = i * 1.234; 5313 5314 // Check named initializers. 5315 struct named_init ni = { 5316 .number = 34, 5317 .name = L"Test wide string", 5318 .average = 543.34343, 5319 }; 5320 5321 ni.number = 58; 5322 5323 int dynamic_array[ni.number]; 5324 dynamic_array[ni.number - 1] = 543; 5325 5326 // work around unused variable warnings 5327 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5328 || dynamic_array[ni.number - 1] != 543); 5329 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5335do 5336 CC="$ac_save_CC $ac_arg" 5337 if ac_fn_c_try_compile "$LINENO"; then : 5338 ac_cv_prog_cc_c99=$ac_arg 5339fi 5340rm -f core conftest.err conftest.$ac_objext 5341 test "x$ac_cv_prog_cc_c99" != "xno" && break 5342done 5343rm -f conftest.$ac_ext 5344CC=$ac_save_CC 5345 5346fi 5347# AC_CACHE_VAL 5348case "x$ac_cv_prog_cc_c99" in 5349 x) 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5351$as_echo "none needed" >&6; } ;; 5352 xno) 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5354$as_echo "unsupported" >&6; } ;; 5355 *) 5356 CC="$CC $ac_cv_prog_cc_c99" 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5358$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5359esac 5360if test "x$ac_cv_prog_cc_c99" != xno; then : 5361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5365if ${ac_cv_prog_cc_c89+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 ac_cv_prog_cc_c89=no 5369ac_save_CC=$CC 5370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372#include <stdarg.h> 5373#include <stdio.h> 5374struct stat; 5375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5376struct buf { int x; }; 5377FILE * (*rcsopen) (struct buf *, struct stat *, int); 5378static char *e (p, i) 5379 char **p; 5380 int i; 5381{ 5382 return p[i]; 5383} 5384static char *f (char * (*g) (char **, int), char **p, ...) 5385{ 5386 char *s; 5387 va_list v; 5388 va_start (v,p); 5389 s = g (p, va_arg (v,int)); 5390 va_end (v); 5391 return s; 5392} 5393 5394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5395 function prototypes and stuff, but not '\xHH' hex character constants. 5396 These don't provoke an error unfortunately, instead are silently treated 5397 as 'x'. The following induces an error, until -std is added to get 5398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5399 array size at least. It's necessary to write '\x00'==0 to get something 5400 that's true only with -std. */ 5401int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5402 5403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5404 inside strings and character constants. */ 5405#define FOO(x) 'x' 5406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5407 5408int test (int i, double x); 5409struct s1 {int (*f) (int a);}; 5410struct s2 {int (*f) (double a);}; 5411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5412int argc; 5413char **argv; 5414int 5415main () 5416{ 5417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5424do 5425 CC="$ac_save_CC $ac_arg" 5426 if ac_fn_c_try_compile "$LINENO"; then : 5427 ac_cv_prog_cc_c89=$ac_arg 5428fi 5429rm -f core conftest.err conftest.$ac_objext 5430 test "x$ac_cv_prog_cc_c89" != "xno" && break 5431done 5432rm -f conftest.$ac_ext 5433CC=$ac_save_CC 5434 5435fi 5436# AC_CACHE_VAL 5437case "x$ac_cv_prog_cc_c89" in 5438 x) 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5440$as_echo "none needed" >&6; } ;; 5441 xno) 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5443$as_echo "unsupported" >&6; } ;; 5444 *) 5445 CC="$CC $ac_cv_prog_cc_c89" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5448esac 5449if test "x$ac_cv_prog_cc_c89" != xno; then : 5450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5451else 5452 ac_cv_prog_cc_stdc=no 5453fi 5454 5455fi 5456 ;; 5457esac 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5459$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5460 if ${ac_cv_prog_cc_stdc+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462fi 5463 5464 case $ac_cv_prog_cc_stdc in #( 5465 no) : 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5467$as_echo "unsupported" >&6; } ;; #( 5468 '') : 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5470$as_echo "none needed" >&6; } ;; #( 5471 *) : 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5473$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5474esac 5475 5476 5477 5478 5479 5480# Ralf Wildenhues: With per-target flags we need CC_C_O 5481# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5482 5483if test $ac_cv_c_compiler_gnu = yes; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5485$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5486if ${ac_cv_prog_gcc_traditional+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 ac_pattern="Autoconf.*'x'" 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492#include <sgtty.h> 5493Autoconf TIOCGETP 5494_ACEOF 5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5496 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5497 ac_cv_prog_gcc_traditional=yes 5498else 5499 ac_cv_prog_gcc_traditional=no 5500fi 5501rm -f conftest* 5502 5503 5504 if test $ac_cv_prog_gcc_traditional = no; then 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507#include <termio.h> 5508Autoconf TCGETA 5509_ACEOF 5510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5511 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5512 ac_cv_prog_gcc_traditional=yes 5513fi 5514rm -f conftest* 5515 5516 fi 5517fi 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5519$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5520 if test $ac_cv_prog_gcc_traditional = yes; then 5521 CC="$CC -traditional" 5522 fi 5523fi 5524 5525 5526 5527CFLAGS_NTP= 5528CPPFLAGS_NTP= 5529LDADD_NTP= 5530LDFLAGS_NTP= 5531 5532 5533 5534 5535 5536case "$ac_cv_prog_cc_c89" in 5537 no) 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5539 version 4.2.5 and higher." >&5 5540$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5541 version 4.2.5 and higher." >&2;} 5542 ;; 5543esac 5544 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 5546$as_echo_n "checking if $CC can handle #warning... " >&6; } 5547if ${ntp_cv_cpp_warning+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551/* end confdefs.h. */ 5552 5553int 5554main () 5555{ 5556#warning foo 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561if ac_fn_c_try_compile "$LINENO"; then : 5562 ntp_cv_cpp_warning=yes 5563else 5564 ntp_cv_cpp_warning=no 5565 5566fi 5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5568 5569fi 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 5571$as_echo "$ntp_cv_cpp_warning" >&6; } 5572case "$ntp_cv_cpp_warning" in 5573 no) 5574 5575$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 5576 5577esac 5578 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 5580$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 5581if ${ntp_cv_cc_attribute+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586 5587int 5588main () 5589{ 5590void foo(void) __attribute__((__noreturn__)); 5591 5592 ; 5593 return 0; 5594} 5595_ACEOF 5596if ac_fn_c_try_compile "$LINENO"; then : 5597 ntp_cv_cc_attribute=yes 5598else 5599 ntp_cv_cc_attribute=no 5600 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603 5604fi 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 5606$as_echo "$ntp_cv_cc_attribute" >&6; } 5607case "$ntp_cv_cc_attribute" in 5608 yes) 5609 5610$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 5611 5612esac 5613 5614 5615case "$GCC" in 5616 yes) 5617 SAVED_CFLAGS="$CFLAGS" 5618 CFLAGS="$CFLAGS -Wstrict-overflow" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 5620$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 5621if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 ntp_cv_gcc_Wstrict_overflow=yes 5637else 5638 ntp_cv_gcc_Wstrict_overflow=no 5639 5640fi 5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5642 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 5645$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 5646 # 5647 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 5648 # flag to CFLAGS. 5649 # 5650 CFLAGS="$SAVED_CFLAGS -Winit-self" 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 5652$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 5653if ${ntp_cv_gcc_Winit_self+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659 5660int 5661main () 5662{ 5663 5664 ; 5665 return 0; 5666} 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 ntp_cv_gcc_Winit_self=yes 5670else 5671 ntp_cv_gcc_Winit_self=no 5672 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675 5676 5677fi 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 5679$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 5680 CFLAGS="$SAVED_CFLAGS" 5681 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 5682 # 5683 # $ntp_cv_gcc_Winit_self is tested later to add the 5684 # flag to CFLAGS_NTP. 5685 # 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 5687$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 5688if ${ntp_cv_gc_sections_runs+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 5692 origCFLAGS="$CFLAGS" 5693 CFLAGS="$CFLAGS -Wl,--gc-sections" 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696 5697 #include <stdlib.h> 5698 #include <stdio.h> 5699 5700int 5701main () 5702{ 5703 5704 FILE * fpC; 5705 char buf[32]; 5706 size_t cch; 5707 int read_success_once; 5708 5709 fpC = fopen("conftest.c", "r"); 5710 if (NULL == fpC) 5711 exit(1); 5712 do { 5713 cch = fread(buf, sizeof(buf), 1, fpC); 5714 read_success_once |= (0 != cch); 5715 } while (0 != cch); 5716 if (!read_success_once) 5717 exit(2); 5718 if (!feof(fpC)) 5719 exit(3); 5720 if (0 != fclose(fpC)) 5721 exit(4); 5722 5723 exit(EXIT_SUCCESS); 5724 5725 5726 ; 5727 return 0; 5728} 5729_ACEOF 5730if ac_fn_c_try_link "$LINENO"; then : 5731 5732 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 5733 ntp_cv_gc_sections_runs=no 5734 else 5735 ntp_cv_gc_sections_runs=no 5736 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 5737 fi 5738 5739else 5740 ntp_cv_gc_sections_runs=no 5741 5742fi 5743rm -f core conftest.err conftest.$ac_objext \ 5744 conftest$ac_exeext conftest.$ac_ext 5745 CFLAGS="$origCFLAGS" 5746 { origCFLAGS=; unset origCFLAGS;} 5747 5748 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 5751$as_echo "$ntp_cv_gc_sections_runs" >&6; } 5752 case "$ntp_cv_gc_sections_runs" in 5753 yes) 5754 LDADD_LIBNTP="-Wl,--gc-sections" 5755 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 5756 ;; 5757 no) 5758 LDADD_LIBNTP= 5759 ;; 5760 esac 5761 CFLAGS_NTP="$CFLAGS_NTP -Wall" 5762 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 5763 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 5764 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 5765 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 5766 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 5767 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 5768 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 5769 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 5770 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 5771 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 5772 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 5773 case "$ntp_cv_gcc_Winit_self" in 5774 yes) 5775 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 5776 esac 5777 case "$ntp_cv_gcc_Wstrict_overflow" in 5778 yes) 5779 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 5780 esac 5781 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 5782esac 5783 5784 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 5786$as_echo_n "checking additional compiler flags... " >&6; } 5787 # allow ntp_os_cflags to be preset to skip this stuff 5788 case "${ntp_os_cflags+set}" in 5789 set) 5790 ;; 5791 *) 5792 ntp_os_cflags= 5793 case "$host_os" in 5794 aix[1-3]*) 5795 ;; 5796 aix4.[0-2]*) 5797 # turn on additional headers 5798 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 5799 ;; 5800 aix5.3*) 5801 # avoid circular dependencies in yp headers, and more 5802 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 5803 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 5804 ;; 5805 aix*) 5806 # XXX Only verified thru AIX6. 5807 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 5808 # avoid circular dependencies in yp headers 5809 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 5810 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 5811 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 5812 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 5813 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 5814 ;; 5815 amigaos) 5816 ntp_os_cflags="-DSYS_AMIGA" 5817 ;; 5818 darwin*|macosx*|rhapsody*) 5819 ntp_os_cflags="-D_P1003_1B_VISIBLE" 5820 ;; 5821 hpux10.*) # at least for hppa2.0-hp-hpux10.20 5822 case "$GCC" in 5823 yes) 5824 ;; 5825 *) 5826 # use Ansi compiler on HPUX, and some -Wp magic 5827 ntp_os_cflags="-Ae -Wp,-H18816" 5828 ;; 5829 esac 5830 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5831 ;; 5832 hpux*) 5833 case "$GCC" in 5834 yes) 5835 ;; 5836 *) 5837 # use Ansi compiler on HPUX 5838 ntp_os_cflags="-Ae" 5839 esac 5840 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5841 ;; 5842 irix6*) 5843 case "$CC" in 5844 cc) 5845 # do not use 64-bit compiler 5846 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 5847 esac 5848 ;; 5849 nextstep3) 5850 ntp_os_cflags="-posix" 5851 ;; 5852 solaris1*|solaris2.[0-5]|solaris2.5.*) 5853 ;; 5854 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 5855 ;; 5856 solaris2*|sunos5*) 5857 # turn on 64-bit file offset interface 5858 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 5859 ;; 5860 vxworks*) 5861 case "$build" in 5862 $host) 5863 ;; 5864 *) 5865 # Quick and dirty sanity check 5866 case "$VX_KERNEL" in 5867 '') 5868 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 5869 esac 5870 ntp_os_cflags="-DSYS_VXWORKS" 5871 esac 5872 ;; 5873 esac 5874 esac 5875 case "$ntp_os_cflags" in 5876 '') 5877 ntp_os_cflags_msg="none needed" 5878 ;; 5879 *) 5880 ntp_os_cflags_msg="$ntp_os_cflags" 5881 esac 5882 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 5884$as_echo "$ntp_os_cflags_msg" >&6; } 5885 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 5886 ### 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 5888$as_echo_n "checking additional linker flags... " >&6; } 5889 # HMS: The following might still need tweaking 5890 # allow ntp_os_ldflags to be preset to skip this stuff 5891 case "${ntp_os_ldflags+set}" in 5892 set) 5893 ;; 5894 *) 5895 ntp_os_ldflags= 5896 case "$host_os" in 5897 hpux*) 5898 case "$GCC" in 5899 yes) 5900 ntp_os_ldflags="-Wl,+allowdups" 5901 ;; 5902 esac 5903 ;; 5904 esac 5905 ;; 5906 esac 5907 case "$ntp_os_ldflags" in 5908 '') 5909 ntp_os_ldflags_msg="none needed" 5910 ;; 5911 *) 5912 ntp_os_ldflags_msg="$ntp_os_ldflags" 5913 esac 5914 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 5916$as_echo "$ntp_os_ldflags_msg" >&6; } 5917 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 5918 5919 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5921$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5922if ${ac_cv_c_bigendian+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 ac_cv_c_bigendian=unknown 5926 # See if we're dealing with a universal compiler. 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929#ifndef __APPLE_CC__ 5930 not a universal capable compiler 5931 #endif 5932 typedef int dummy; 5933 5934_ACEOF 5935if ac_fn_c_try_compile "$LINENO"; then : 5936 5937 # Check for potential -arch flags. It is not universal unless 5938 # there are at least two -arch flags with different values. 5939 ac_arch= 5940 ac_prev= 5941 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5942 if test -n "$ac_prev"; then 5943 case $ac_word in 5944 i?86 | x86_64 | ppc | ppc64) 5945 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5946 ac_arch=$ac_word 5947 else 5948 ac_cv_c_bigendian=universal 5949 break 5950 fi 5951 ;; 5952 esac 5953 ac_prev= 5954 elif test "x$ac_word" = "x-arch"; then 5955 ac_prev=arch 5956 fi 5957 done 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960 if test $ac_cv_c_bigendian = unknown; then 5961 # See if sys/param.h defines the BYTE_ORDER macro. 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963/* end confdefs.h. */ 5964#include <sys/types.h> 5965 #include <sys/param.h> 5966 5967int 5968main () 5969{ 5970#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5971 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5972 && LITTLE_ENDIAN) 5973 bogus endian macros 5974 #endif 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_compile "$LINENO"; then : 5981 # It does; now see whether it defined to BIG_ENDIAN or not. 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984#include <sys/types.h> 5985 #include <sys/param.h> 5986 5987int 5988main () 5989{ 5990#if BYTE_ORDER != BIG_ENDIAN 5991 not big endian 5992 #endif 5993 5994 ; 5995 return 0; 5996} 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO"; then : 5999 ac_cv_c_bigendian=yes 6000else 6001 ac_cv_c_bigendian=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006 fi 6007 if test $ac_cv_c_bigendian = unknown; then 6008 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011#include <limits.h> 6012 6013int 6014main () 6015{ 6016#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6017 bogus endian macros 6018 #endif 6019 6020 ; 6021 return 0; 6022} 6023_ACEOF 6024if ac_fn_c_try_compile "$LINENO"; then : 6025 # It does; now see whether it defined to _BIG_ENDIAN or not. 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028#include <limits.h> 6029 6030int 6031main () 6032{ 6033#ifndef _BIG_ENDIAN 6034 not big endian 6035 #endif 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_compile "$LINENO"; then : 6042 ac_cv_c_bigendian=yes 6043else 6044 ac_cv_c_bigendian=no 6045fi 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049 fi 6050 if test $ac_cv_c_bigendian = unknown; then 6051 # Compile a test program. 6052 if test "$cross_compiling" = yes; then : 6053 # Try to guess by grepping values from an object file. 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056short int ascii_mm[] = 6057 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6058 short int ascii_ii[] = 6059 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6060 int use_ascii (int i) { 6061 return ascii_mm[i] + ascii_ii[i]; 6062 } 6063 short int ebcdic_ii[] = 6064 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6065 short int ebcdic_mm[] = 6066 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6067 int use_ebcdic (int i) { 6068 return ebcdic_mm[i] + ebcdic_ii[i]; 6069 } 6070 extern int foo; 6071 6072int 6073main () 6074{ 6075return use_ascii (foo) == use_ebcdic (foo); 6076 ; 6077 return 0; 6078} 6079_ACEOF 6080if ac_fn_c_try_compile "$LINENO"; then : 6081 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6082 ac_cv_c_bigendian=yes 6083 fi 6084 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6085 if test "$ac_cv_c_bigendian" = unknown; then 6086 ac_cv_c_bigendian=no 6087 else 6088 # finding both strings is unlikely to happen, but who knows? 6089 ac_cv_c_bigendian=unknown 6090 fi 6091 fi 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094else 6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097$ac_includes_default 6098int 6099main () 6100{ 6101 6102 /* Are we little or big endian? From Harbison&Steele. */ 6103 union 6104 { 6105 long int l; 6106 char c[sizeof (long int)]; 6107 } u; 6108 u.l = 1; 6109 return u.c[sizeof (long int) - 1] == 1; 6110 6111 ; 6112 return 0; 6113} 6114_ACEOF 6115if ac_fn_c_try_run "$LINENO"; then : 6116 ac_cv_c_bigendian=no 6117else 6118 ac_cv_c_bigendian=yes 6119fi 6120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6121 conftest.$ac_objext conftest.beam conftest.$ac_ext 6122fi 6123 6124 fi 6125fi 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6127$as_echo "$ac_cv_c_bigendian" >&6; } 6128 case $ac_cv_c_bigendian in #( 6129 yes) 6130 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6131;; #( 6132 no) 6133 ;; #( 6134 universal) 6135 6136$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6137 6138 ;; #( 6139 *) 6140 as_fn_error $? "unknown endianness 6141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6142 esac 6143 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6145$as_echo_n "checking for working volatile... " >&6; } 6146if ${ac_cv_c_volatile+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150/* end confdefs.h. */ 6151 6152int 6153main () 6154{ 6155 6156volatile int x; 6157int * volatile y = (int *) 0; 6158return !x && !y; 6159 ; 6160 return 0; 6161} 6162_ACEOF 6163if ac_fn_c_try_compile "$LINENO"; then : 6164 ac_cv_c_volatile=yes 6165else 6166 ac_cv_c_volatile=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6169fi 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6171$as_echo "$ac_cv_c_volatile" >&6; } 6172if test $ac_cv_c_volatile = no; then 6173 6174$as_echo "#define volatile /**/" >>confdefs.h 6175 6176fi 6177 6178ac_ext=c 6179ac_cpp='$CPP $CPPFLAGS' 6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6182ac_compiler_gnu=$ac_cv_c_compiler_gnu 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6184$as_echo_n "checking how to run the C preprocessor... " >&6; } 6185# On Suns, sometimes $CPP names a directory. 6186if test -n "$CPP" && test -d "$CPP"; then 6187 CPP= 6188fi 6189if test -z "$CPP"; then 6190 if ${ac_cv_prog_CPP+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 # Double quotes because CPP needs to be expanded 6194 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6195 do 6196 ac_preproc_ok=false 6197for ac_c_preproc_warn_flag in '' yes 6198do 6199 # Use a header file that comes with gcc, so configuring glibc 6200 # with a fresh cross-compiler works. 6201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6202 # <limits.h> exists even on freestanding compilers. 6203 # On the NeXT, cc -E runs the code through the compiler's parser, 6204 # not just through cpp. "Syntax error" is here to catch this case. 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207#ifdef __STDC__ 6208# include <limits.h> 6209#else 6210# include <assert.h> 6211#endif 6212 Syntax error 6213_ACEOF 6214if ac_fn_c_try_cpp "$LINENO"; then : 6215 6216else 6217 # Broken: fails on valid input. 6218continue 6219fi 6220rm -f conftest.err conftest.i conftest.$ac_ext 6221 6222 # OK, works on sane cases. Now check whether nonexistent headers 6223 # can be detected and how. 6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226#include <ac_nonexistent.h> 6227_ACEOF 6228if ac_fn_c_try_cpp "$LINENO"; then : 6229 # Broken: success on invalid input. 6230continue 6231else 6232 # Passes both tests. 6233ac_preproc_ok=: 6234break 6235fi 6236rm -f conftest.err conftest.i conftest.$ac_ext 6237 6238done 6239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6240rm -f conftest.i conftest.err conftest.$ac_ext 6241if $ac_preproc_ok; then : 6242 break 6243fi 6244 6245 done 6246 ac_cv_prog_CPP=$CPP 6247 6248fi 6249 CPP=$ac_cv_prog_CPP 6250else 6251 ac_cv_prog_CPP=$CPP 6252fi 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6254$as_echo "$CPP" >&6; } 6255ac_preproc_ok=false 6256for ac_c_preproc_warn_flag in '' yes 6257do 6258 # Use a header file that comes with gcc, so configuring glibc 6259 # with a fresh cross-compiler works. 6260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6261 # <limits.h> exists even on freestanding compilers. 6262 # On the NeXT, cc -E runs the code through the compiler's parser, 6263 # not just through cpp. "Syntax error" is here to catch this case. 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266#ifdef __STDC__ 6267# include <limits.h> 6268#else 6269# include <assert.h> 6270#endif 6271 Syntax error 6272_ACEOF 6273if ac_fn_c_try_cpp "$LINENO"; then : 6274 6275else 6276 # Broken: fails on valid input. 6277continue 6278fi 6279rm -f conftest.err conftest.i conftest.$ac_ext 6280 6281 # OK, works on sane cases. Now check whether nonexistent headers 6282 # can be detected and how. 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285#include <ac_nonexistent.h> 6286_ACEOF 6287if ac_fn_c_try_cpp "$LINENO"; then : 6288 # Broken: success on invalid input. 6289continue 6290else 6291 # Passes both tests. 6292ac_preproc_ok=: 6293break 6294fi 6295rm -f conftest.err conftest.i conftest.$ac_ext 6296 6297done 6298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6299rm -f conftest.i conftest.err conftest.$ac_ext 6300if $ac_preproc_ok; then : 6301 6302else 6303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6305as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6306See \`config.log' for more details" "$LINENO" 5; } 6307fi 6308 6309ac_ext=c 6310ac_cpp='$CPP $CPPFLAGS' 6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6313ac_compiler_gnu=$ac_cv_c_compiler_gnu 6314 6315 6316 6317 6318for ac_prog in 'bison -y' byacc 6319do 6320 # Extract the first word of "$ac_prog", so it can be a program name with args. 6321set dummy $ac_prog; ac_word=$2 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323$as_echo_n "checking for $ac_word... " >&6; } 6324if ${ac_cv_prog_YACC+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 if test -n "$YACC"; then 6328 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6329else 6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH 6332do 6333 IFS=$as_save_IFS 6334 test -z "$as_dir" && as_dir=. 6335 for ac_exec_ext in '' $ac_executable_extensions; do 6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6337 ac_cv_prog_YACC="$ac_prog" 6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6339 break 2 6340 fi 6341done 6342 done 6343IFS=$as_save_IFS 6344 6345fi 6346fi 6347YACC=$ac_cv_prog_YACC 6348if test -n "$YACC"; then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6350$as_echo "$YACC" >&6; } 6351else 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6353$as_echo "no" >&6; } 6354fi 6355 6356 6357 test -n "$YACC" && break 6358done 6359test -n "$YACC" || YACC="yacc" 6360 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6362$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6363if ${ac_cv_prog_cc_c99+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 ac_cv_prog_cc_c99=no 6367ac_save_CC=$CC 6368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370#include <stdarg.h> 6371#include <stdbool.h> 6372#include <stdlib.h> 6373#include <wchar.h> 6374#include <stdio.h> 6375 6376// Check varargs macros. These examples are taken from C99 6.10.3.5. 6377#define debug(...) fprintf (stderr, __VA_ARGS__) 6378#define showlist(...) puts (#__VA_ARGS__) 6379#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6380static void 6381test_varargs_macros (void) 6382{ 6383 int x = 1234; 6384 int y = 5678; 6385 debug ("Flag"); 6386 debug ("X = %d\n", x); 6387 showlist (The first, second, and third items.); 6388 report (x>y, "x is %d but y is %d", x, y); 6389} 6390 6391// Check long long types. 6392#define BIG64 18446744073709551615ull 6393#define BIG32 4294967295ul 6394#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6395#if !BIG_OK 6396 your preprocessor is broken; 6397#endif 6398#if BIG_OK 6399#else 6400 your preprocessor is broken; 6401#endif 6402static long long int bignum = -9223372036854775807LL; 6403static unsigned long long int ubignum = BIG64; 6404 6405struct incomplete_array 6406{ 6407 int datasize; 6408 double data[]; 6409}; 6410 6411struct named_init { 6412 int number; 6413 const wchar_t *name; 6414 double average; 6415}; 6416 6417typedef const char *ccp; 6418 6419static inline int 6420test_restrict (ccp restrict text) 6421{ 6422 // See if C++-style comments work. 6423 // Iterate through items via the restricted pointer. 6424 // Also check for declarations in for loops. 6425 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6426 continue; 6427 return 0; 6428} 6429 6430// Check varargs and va_copy. 6431static void 6432test_varargs (const char *format, ...) 6433{ 6434 va_list args; 6435 va_start (args, format); 6436 va_list args_copy; 6437 va_copy (args_copy, args); 6438 6439 const char *str; 6440 int number; 6441 float fnumber; 6442 6443 while (*format) 6444 { 6445 switch (*format++) 6446 { 6447 case 's': // string 6448 str = va_arg (args_copy, const char *); 6449 break; 6450 case 'd': // int 6451 number = va_arg (args_copy, int); 6452 break; 6453 case 'f': // float 6454 fnumber = va_arg (args_copy, double); 6455 break; 6456 default: 6457 break; 6458 } 6459 } 6460 va_end (args_copy); 6461 va_end (args); 6462} 6463 6464int 6465main () 6466{ 6467 6468 // Check bool. 6469 _Bool success = false; 6470 6471 // Check restrict. 6472 if (test_restrict ("String literal") == 0) 6473 success = true; 6474 char *restrict newvar = "Another string"; 6475 6476 // Check varargs. 6477 test_varargs ("s, d' f .", "string", 65, 34.234); 6478 test_varargs_macros (); 6479 6480 // Check flexible array members. 6481 struct incomplete_array *ia = 6482 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6483 ia->datasize = 10; 6484 for (int i = 0; i < ia->datasize; ++i) 6485 ia->data[i] = i * 1.234; 6486 6487 // Check named initializers. 6488 struct named_init ni = { 6489 .number = 34, 6490 .name = L"Test wide string", 6491 .average = 543.34343, 6492 }; 6493 6494 ni.number = 58; 6495 6496 int dynamic_array[ni.number]; 6497 dynamic_array[ni.number - 1] = 543; 6498 6499 // work around unused variable warnings 6500 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 6501 || dynamic_array[ni.number - 1] != 543); 6502 6503 ; 6504 return 0; 6505} 6506_ACEOF 6507for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 6508do 6509 CC="$ac_save_CC $ac_arg" 6510 if ac_fn_c_try_compile "$LINENO"; then : 6511 ac_cv_prog_cc_c99=$ac_arg 6512fi 6513rm -f core conftest.err conftest.$ac_objext 6514 test "x$ac_cv_prog_cc_c99" != "xno" && break 6515done 6516rm -f conftest.$ac_ext 6517CC=$ac_save_CC 6518 6519fi 6520# AC_CACHE_VAL 6521case "x$ac_cv_prog_cc_c99" in 6522 x) 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6524$as_echo "none needed" >&6; } ;; 6525 xno) 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6527$as_echo "unsupported" >&6; } ;; 6528 *) 6529 CC="$CC $ac_cv_prog_cc_c99" 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6531$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 6532esac 6533if test "x$ac_cv_prog_cc_c99" != xno; then : 6534 6535fi 6536 6537 6538 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5 6540$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; } 6541 6542 6543 ac_ext=c 6544ac_cpp='$CPP $CPPFLAGS' 6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6547ac_compiler_gnu=$ac_cv_c_compiler_gnu 6548 6549 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552 6553 struct foo_s {int i1; int i2;}; 6554 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; } 6555 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO"; then : 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6559$as_echo "yes" >&6; } 6560else 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6562$as_echo "no" >&6; } 6563 6564$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h 6565 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6568 6569 ac_ext=c 6570ac_cpp='$CPP $CPPFLAGS' 6571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6573ac_compiler_gnu=$ac_cv_c_compiler_gnu 6574 6575 6576 6577 6578 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5 6580$as_echo_n "checking for compile/link hardening flags... " >&6; } 6581 6582 6583# Check whether --with-hardenfile was given. 6584if test "${with_hardenfile+set}" = set; then : 6585 withval=$with_hardenfile; 6586else 6587 with_hardenfile=no 6588 6589fi 6590 6591 6592( \ 6593 SENTINEL_DIR="$PWD" && \ 6594 cd $srcdir/sntp && \ 6595 case "$with_hardenfile" in \ 6596 yes|no|'') \ 6597 scripts/genHardFlags -d "$SENTINEL_DIR" \ 6598 ;; \ 6599 *) \ 6600 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \ 6601 ;; \ 6602 esac \ 6603) > genHardFlags.i 2> genHardFlags.err 6604. ./genHardFlags.i 6605 6606case "$GENHARDFLAG" in 6607 OK) 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5 6609$as_echo "in file $GENHARDFLAGFILE" >&6; } 6610 rm genHardFlags.err genHardFlags.i 6611 ;; 6612 *) 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6614$as_echo "failed." >&6; } 6615 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5 6616 ;; 6617esac 6618 6619 6620 6621 6622 6623 6624 6625 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5 6627$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; } 6628ntp_vpath_hack="no" 6629case "$srcdir::${force_ntp_vpath_hack-no}" in 6630 .::*) 6631 ;; # VPATH_HACK path is for VPATH builds only. 6632 *::yes) 6633 ntp_vpath_hack="yes" 6634 ;; 6635 *::*) 6636 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 6637 '') 6638 ntp_vpath_hack="yes" 6639 esac 6640esac 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5 6642$as_echo "$ntp_vpath_hack" >&6; } 6643 if test x$ntp_vpath_hack = xyes; then 6644 VPATH_HACK_TRUE= 6645 VPATH_HACK_FALSE='#' 6646else 6647 VPATH_HACK_TRUE='#' 6648 VPATH_HACK_FALSE= 6649fi 6650 6651 6652 6653 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 6655$as_echo_n "checking for install dir and man conventions... " >&6; } 6656 6657 6658# Check whether --with-locfile was given. 6659if test "${with_locfile+set}" = set; then : 6660 withval=$with_locfile; 6661else 6662 with_locfile=no 6663 6664fi 6665 6666 6667( \ 6668 SENTINEL_DIR="$PWD" && \ 6669 cd $srcdir/sntp && \ 6670 case "$with_locfile" in \ 6671 yes|no|'') \ 6672 scripts/genLocInfo -d "$SENTINEL_DIR" \ 6673 ;; \ 6674 *) \ 6675 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 6676 ;; \ 6677 esac \ 6678) > genLocInfo.i 2> genLocInfo.err 6679. ./genLocInfo.i 6680 6681case "$GENLOCINFO" in 6682 OK) 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 6684$as_echo "in file $GENLOCINFOFILE" >&6; } 6685 rm genLocInfo.err genLocInfo.i 6686 ;; 6687 *) 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6689$as_echo "failed." >&6; } 6690 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 6691 ;; 6692esac 6693 6694 if test "$CALC_TICKADJ_MS" ; then 6695 WANT_CALC_TICKADJ_MS_TRUE= 6696 WANT_CALC_TICKADJ_MS_FALSE='#' 6697else 6698 WANT_CALC_TICKADJ_MS_TRUE='#' 6699 WANT_CALC_TICKADJ_MS_FALSE= 6700fi 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 if test -z "$NTPSWEEP_NI" ; then 6745 INSTALL_NTPSWEEP_TRUE= 6746 INSTALL_NTPSWEEP_FALSE='#' 6747else 6748 INSTALL_NTPSWEEP_TRUE='#' 6749 INSTALL_NTPSWEEP_FALSE= 6750fi 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 if test -z "$UPDATE_LEAP_NI" ; then 6793 INSTALL_UPDATE_LEAP_TRUE= 6794 INSTALL_UPDATE_LEAP_FALSE='#' 6795else 6796 INSTALL_UPDATE_LEAP_TRUE='#' 6797 INSTALL_UPDATE_LEAP_FALSE= 6798fi 6799 6800 6801 6802if test -n "$ac_tool_prefix"; then 6803 for ac_prog in ar lib "link -lib" 6804 do 6805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6806set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808$as_echo_n "checking for $ac_word... " >&6; } 6809if ${ac_cv_prog_AR+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 if test -n "$AR"; then 6813 ac_cv_prog_AR="$AR" # Let the user override the test. 6814else 6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816for as_dir in $PATH 6817do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827 done 6828IFS=$as_save_IFS 6829 6830fi 6831fi 6832AR=$ac_cv_prog_AR 6833if test -n "$AR"; then 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6835$as_echo "$AR" >&6; } 6836else 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838$as_echo "no" >&6; } 6839fi 6840 6841 6842 test -n "$AR" && break 6843 done 6844fi 6845if test -z "$AR"; then 6846 ac_ct_AR=$AR 6847 for ac_prog in ar lib "link -lib" 6848do 6849 # Extract the first word of "$ac_prog", so it can be a program name with args. 6850set dummy $ac_prog; ac_word=$2 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6852$as_echo_n "checking for $ac_word... " >&6; } 6853if ${ac_cv_prog_ac_ct_AR+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 if test -n "$ac_ct_AR"; then 6857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6858else 6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6860for as_dir in $PATH 6861do 6862 IFS=$as_save_IFS 6863 test -z "$as_dir" && as_dir=. 6864 for ac_exec_ext in '' $ac_executable_extensions; do 6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6866 ac_cv_prog_ac_ct_AR="$ac_prog" 6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6868 break 2 6869 fi 6870done 6871 done 6872IFS=$as_save_IFS 6873 6874fi 6875fi 6876ac_ct_AR=$ac_cv_prog_ac_ct_AR 6877if test -n "$ac_ct_AR"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6879$as_echo "$ac_ct_AR" >&6; } 6880else 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6882$as_echo "no" >&6; } 6883fi 6884 6885 6886 test -n "$ac_ct_AR" && break 6887done 6888 6889 if test "x$ac_ct_AR" = x; then 6890 AR="false" 6891 else 6892 case $cross_compiling:$ac_tool_warned in 6893yes:) 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6896ac_tool_warned=yes ;; 6897esac 6898 AR=$ac_ct_AR 6899 fi 6900fi 6901 6902: ${AR=ar} 6903 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6905$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6906if ${am_cv_ar_interface+:} false; then : 6907 $as_echo_n "(cached) " >&6 6908else 6909 ac_ext=c 6910ac_cpp='$CPP $CPPFLAGS' 6911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6913ac_compiler_gnu=$ac_cv_c_compiler_gnu 6914 6915 am_cv_ar_interface=ar 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int some_variable = 0; 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO"; then : 6921 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6923 (eval $am_ar_try) 2>&5 6924 ac_status=$? 6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6926 test $ac_status = 0; } 6927 if test "$ac_status" -eq 0; then 6928 am_cv_ar_interface=ar 6929 else 6930 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6932 (eval $am_ar_try) 2>&5 6933 ac_status=$? 6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6935 test $ac_status = 0; } 6936 if test "$ac_status" -eq 0; then 6937 am_cv_ar_interface=lib 6938 else 6939 am_cv_ar_interface=unknown 6940 fi 6941 fi 6942 rm -f conftest.lib libconftest.a 6943 6944fi 6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6946 ac_ext=c 6947ac_cpp='$CPP $CPPFLAGS' 6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6950ac_compiler_gnu=$ac_cv_c_compiler_gnu 6951 6952fi 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6954$as_echo "$am_cv_ar_interface" >&6; } 6955 6956case $am_cv_ar_interface in 6957ar) 6958 ;; 6959lib) 6960 # Microsoft lib, so override with the ar-lib wrapper script. 6961 # FIXME: It is wrong to rewrite AR. 6962 # But if we don't then we get into trouble of one sort or another. 6963 # A longer-term fix would be to have automake use am__AR in this case, 6964 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6965 # similar. 6966 AR="$am_aux_dir/ar-lib $AR" 6967 ;; 6968unknown) 6969 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6970 ;; 6971esac 6972 6973 6974 6975# So far, the only shared library we might use is libopts. 6976# It's a small library - we might as well use a static version of it. 6977# Check whether --enable-shared was given. 6978if test "${enable_shared+set}" = set; then : 6979 enableval=$enable_shared; p=${PACKAGE-default} 6980 case $enableval in 6981 yes) enable_shared=yes ;; 6982 no) enable_shared=no ;; 6983 *) 6984 enable_shared=no 6985 # Look at the argument we got. We use all the common list separators. 6986 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 6987 for pkg in $enableval; do 6988 IFS=$lt_save_ifs 6989 if test "X$pkg" = "X$p"; then 6990 enable_shared=yes 6991 fi 6992 done 6993 IFS=$lt_save_ifs 6994 ;; 6995 esac 6996else 6997 enable_shared=no 6998fi 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008case `pwd` in 7009 *\ * | *\ *) 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7011$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7012esac 7013 7014 7015 7016macro_version='2.4.6' 7017macro_revision='2.4.6' 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031ltmain=$ac_aux_dir/ltmain.sh 7032 7033# Backslashify metacharacters that are still active within 7034# double-quoted strings. 7035sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7036 7037# Same as above, but do not quote variable references. 7038double_quote_subst='s/\(["`\\]\)/\\\1/g' 7039 7040# Sed substitution to delay expansion of an escaped shell variable in a 7041# double_quote_subst'ed string. 7042delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7043 7044# Sed substitution to delay expansion of an escaped single quote. 7045delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7046 7047# Sed substitution to avoid accidental globbing in evaled expressions 7048no_glob_subst='s/\*/\\\*/g' 7049 7050ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7051ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7052ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7053 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7055$as_echo_n "checking how to print strings... " >&6; } 7056# Test print first, because it will be a builtin if present. 7057if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7058 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7059 ECHO='print -r --' 7060elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7061 ECHO='printf %s\n' 7062else 7063 # Use this function as a fallback that always works. 7064 func_fallback_echo () 7065 { 7066 eval 'cat <<_LTECHO_EOF 7067$1 7068_LTECHO_EOF' 7069 } 7070 ECHO='func_fallback_echo' 7071fi 7072 7073# func_echo_all arg... 7074# Invoke $ECHO with all args, space-separated. 7075func_echo_all () 7076{ 7077 $ECHO "" 7078} 7079 7080case $ECHO in 7081 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7082$as_echo "printf" >&6; } ;; 7083 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7084$as_echo "print -r" >&6; } ;; 7085 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7086$as_echo "cat" >&6; } ;; 7087esac 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7103$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7104if ${ac_cv_path_SED+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7108 for ac_i in 1 2 3 4 5 6 7; do 7109 ac_script="$ac_script$as_nl$ac_script" 7110 done 7111 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7112 { ac_script=; unset ac_script;} 7113 if test -z "$SED"; then 7114 ac_path_SED_found=false 7115 # Loop through the user's path and test for each of PROGNAME-LIST 7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_prog in sed gsed; do 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7124 as_fn_executable_p "$ac_path_SED" || continue 7125# Check for GNU ac_path_SED and select it if it is found. 7126 # Check for GNU $ac_path_SED 7127case `"$ac_path_SED" --version 2>&1` in 7128*GNU*) 7129 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7130*) 7131 ac_count=0 7132 $as_echo_n 0123456789 >"conftest.in" 7133 while : 7134 do 7135 cat "conftest.in" "conftest.in" >"conftest.tmp" 7136 mv "conftest.tmp" "conftest.in" 7137 cp "conftest.in" "conftest.nl" 7138 $as_echo '' >> "conftest.nl" 7139 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7141 as_fn_arith $ac_count + 1 && ac_count=$as_val 7142 if test $ac_count -gt ${ac_path_SED_max-0}; then 7143 # Best one so far, save it but keep looking for a better one 7144 ac_cv_path_SED="$ac_path_SED" 7145 ac_path_SED_max=$ac_count 7146 fi 7147 # 10*(2^10) chars as input seems more than enough 7148 test $ac_count -gt 10 && break 7149 done 7150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7151esac 7152 7153 $ac_path_SED_found && break 3 7154 done 7155 done 7156 done 7157IFS=$as_save_IFS 7158 if test -z "$ac_cv_path_SED"; then 7159 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7160 fi 7161else 7162 ac_cv_path_SED=$SED 7163fi 7164 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7167$as_echo "$ac_cv_path_SED" >&6; } 7168 SED="$ac_cv_path_SED" 7169 rm -f conftest.sed 7170 7171test -z "$SED" && SED=sed 7172Xsed="$SED -e 1s/^X//" 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7185$as_echo_n "checking for fgrep... " >&6; } 7186if ${ac_cv_path_FGREP+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7190 then ac_cv_path_FGREP="$GREP -F" 7191 else 7192 if test -z "$FGREP"; then 7193 ac_path_FGREP_found=false 7194 # Loop through the user's path and test for each of PROGNAME-LIST 7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7197do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_prog in fgrep; do 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7203 as_fn_executable_p "$ac_path_FGREP" || continue 7204# Check for GNU ac_path_FGREP and select it if it is found. 7205 # Check for GNU $ac_path_FGREP 7206case `"$ac_path_FGREP" --version 2>&1` in 7207*GNU*) 7208 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7209*) 7210 ac_count=0 7211 $as_echo_n 0123456789 >"conftest.in" 7212 while : 7213 do 7214 cat "conftest.in" "conftest.in" >"conftest.tmp" 7215 mv "conftest.tmp" "conftest.in" 7216 cp "conftest.in" "conftest.nl" 7217 $as_echo 'FGREP' >> "conftest.nl" 7218 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7220 as_fn_arith $ac_count + 1 && ac_count=$as_val 7221 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7222 # Best one so far, save it but keep looking for a better one 7223 ac_cv_path_FGREP="$ac_path_FGREP" 7224 ac_path_FGREP_max=$ac_count 7225 fi 7226 # 10*(2^10) chars as input seems more than enough 7227 test $ac_count -gt 10 && break 7228 done 7229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7230esac 7231 7232 $ac_path_FGREP_found && break 3 7233 done 7234 done 7235 done 7236IFS=$as_save_IFS 7237 if test -z "$ac_cv_path_FGREP"; then 7238 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7239 fi 7240else 7241 ac_cv_path_FGREP=$FGREP 7242fi 7243 7244 fi 7245fi 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7247$as_echo "$ac_cv_path_FGREP" >&6; } 7248 FGREP="$ac_cv_path_FGREP" 7249 7250 7251test -z "$GREP" && GREP=grep 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271# Check whether --with-gnu-ld was given. 7272if test "${with_gnu_ld+set}" = set; then : 7273 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7274else 7275 with_gnu_ld=no 7276fi 7277 7278ac_prog=ld 7279if test yes = "$GCC"; then 7280 # Check if gcc -print-prog-name=ld gives a path. 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7282$as_echo_n "checking for ld used by $CC... " >&6; } 7283 case $host in 7284 *-*-mingw*) 7285 # gcc leaves a trailing carriage return, which upsets mingw 7286 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7287 *) 7288 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7289 esac 7290 case $ac_prog in 7291 # Accept absolute paths. 7292 [\\/]* | ?:[\\/]*) 7293 re_direlt='/[^/][^/]*/\.\./' 7294 # Canonicalize the pathname of ld 7295 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7296 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7297 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7298 done 7299 test -z "$LD" && LD=$ac_prog 7300 ;; 7301 "") 7302 # If it fails, then pretend we aren't using GCC. 7303 ac_prog=ld 7304 ;; 7305 *) 7306 # If it is relative, then search for the first ld in PATH. 7307 with_gnu_ld=unknown 7308 ;; 7309 esac 7310elif test yes = "$with_gnu_ld"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7312$as_echo_n "checking for GNU ld... " >&6; } 7313else 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7315$as_echo_n "checking for non-GNU ld... " >&6; } 7316fi 7317if ${lt_cv_path_LD+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 if test -z "$LD"; then 7321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7322 for ac_dir in $PATH; do 7323 IFS=$lt_save_ifs 7324 test -z "$ac_dir" && ac_dir=. 7325 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7326 lt_cv_path_LD=$ac_dir/$ac_prog 7327 # Check to see if the program is GNU ld. I'd rather use --version, 7328 # but apparently some variants of GNU ld only accept -v. 7329 # Break only if it was the GNU/non-GNU ld that we prefer. 7330 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7331 *GNU* | *'with BFD'*) 7332 test no != "$with_gnu_ld" && break 7333 ;; 7334 *) 7335 test yes != "$with_gnu_ld" && break 7336 ;; 7337 esac 7338 fi 7339 done 7340 IFS=$lt_save_ifs 7341else 7342 lt_cv_path_LD=$LD # Let the user override the test with a path. 7343fi 7344fi 7345 7346LD=$lt_cv_path_LD 7347if test -n "$LD"; then 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7349$as_echo "$LD" >&6; } 7350else 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7352$as_echo "no" >&6; } 7353fi 7354test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7356$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7357if ${lt_cv_prog_gnu_ld+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7361case `$LD -v 2>&1 </dev/null` in 7362*GNU* | *'with BFD'*) 7363 lt_cv_prog_gnu_ld=yes 7364 ;; 7365*) 7366 lt_cv_prog_gnu_ld=no 7367 ;; 7368esac 7369fi 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7371$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7372with_gnu_ld=$lt_cv_prog_gnu_ld 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7383$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7384if ${lt_cv_path_NM+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 if test -n "$NM"; then 7388 # Let the user override the test. 7389 lt_cv_path_NM=$NM 7390else 7391 lt_nm_to_check=${ac_tool_prefix}nm 7392 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7393 lt_nm_to_check="$lt_nm_to_check nm" 7394 fi 7395 for lt_tmp_nm in $lt_nm_to_check; do 7396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7397 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7398 IFS=$lt_save_ifs 7399 test -z "$ac_dir" && ac_dir=. 7400 tmp_nm=$ac_dir/$lt_tmp_nm 7401 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7402 # Check to see if the nm accepts a BSD-compat flag. 7403 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7404 # nm: unknown option "B" ignored 7405 # Tru64's nm complains that /dev/null is an invalid object file 7406 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7407 case $build_os in 7408 mingw*) lt_bad_file=conftest.nm/nofile ;; 7409 *) lt_bad_file=/dev/null ;; 7410 esac 7411 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7412 *$lt_bad_file* | *'Invalid file or object type'*) 7413 lt_cv_path_NM="$tmp_nm -B" 7414 break 2 7415 ;; 7416 *) 7417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7418 */dev/null*) 7419 lt_cv_path_NM="$tmp_nm -p" 7420 break 2 7421 ;; 7422 *) 7423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7424 continue # so that we can try to find one that supports BSD flags 7425 ;; 7426 esac 7427 ;; 7428 esac 7429 fi 7430 done 7431 IFS=$lt_save_ifs 7432 done 7433 : ${lt_cv_path_NM=no} 7434fi 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7437$as_echo "$lt_cv_path_NM" >&6; } 7438if test no != "$lt_cv_path_NM"; then 7439 NM=$lt_cv_path_NM 7440else 7441 # Didn't find any BSD compatible name lister, look for dumpbin. 7442 if test -n "$DUMPBIN"; then : 7443 # Let the user override the test. 7444 else 7445 if test -n "$ac_tool_prefix"; then 7446 for ac_prog in dumpbin "link -dump" 7447 do 7448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7449set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if ${ac_cv_prog_DUMPBIN+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$DUMPBIN"; then 7456 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473fi 7474fi 7475DUMPBIN=$ac_cv_prog_DUMPBIN 7476if test -n "$DUMPBIN"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7478$as_echo "$DUMPBIN" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 7485 test -n "$DUMPBIN" && break 7486 done 7487fi 7488if test -z "$DUMPBIN"; then 7489 ac_ct_DUMPBIN=$DUMPBIN 7490 for ac_prog in dumpbin "link -dump" 7491do 7492 # Extract the first word of "$ac_prog", so it can be a program name with args. 7493set dummy $ac_prog; ac_word=$2 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7495$as_echo_n "checking for $ac_word... " >&6; } 7496if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 if test -n "$ac_ct_DUMPBIN"; then 7500 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7501else 7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503for as_dir in $PATH 7504do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7509 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513done 7514 done 7515IFS=$as_save_IFS 7516 7517fi 7518fi 7519ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7520if test -n "$ac_ct_DUMPBIN"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7522$as_echo "$ac_ct_DUMPBIN" >&6; } 7523else 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7525$as_echo "no" >&6; } 7526fi 7527 7528 7529 test -n "$ac_ct_DUMPBIN" && break 7530done 7531 7532 if test "x$ac_ct_DUMPBIN" = x; then 7533 DUMPBIN=":" 7534 else 7535 case $cross_compiling:$ac_tool_warned in 7536yes:) 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7539ac_tool_warned=yes ;; 7540esac 7541 DUMPBIN=$ac_ct_DUMPBIN 7542 fi 7543fi 7544 7545 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7546 *COFF*) 7547 DUMPBIN="$DUMPBIN -symbols -headers" 7548 ;; 7549 *) 7550 DUMPBIN=: 7551 ;; 7552 esac 7553 fi 7554 7555 if test : != "$DUMPBIN"; then 7556 NM=$DUMPBIN 7557 fi 7558fi 7559test -z "$NM" && NM=nm 7560 7561 7562 7563 7564 7565 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7567$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7568if ${lt_cv_nm_interface+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 lt_cv_nm_interface="BSD nm" 7572 echo "int some_variable = 0;" > conftest.$ac_ext 7573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7574 (eval "$ac_compile" 2>conftest.err) 7575 cat conftest.err >&5 7576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7578 cat conftest.err >&5 7579 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7580 cat conftest.out >&5 7581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7582 lt_cv_nm_interface="MS dumpbin" 7583 fi 7584 rm -f conftest* 7585fi 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7587$as_echo "$lt_cv_nm_interface" >&6; } 7588 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7590$as_echo_n "checking whether ln -s works... " >&6; } 7591LN_S=$as_ln_s 7592if test "$LN_S" = "ln -s"; then 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7594$as_echo "yes" >&6; } 7595else 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7597$as_echo "no, using $LN_S" >&6; } 7598fi 7599 7600# find the maximum length of command line arguments 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7602$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7603if ${lt_cv_sys_max_cmd_len+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 i=0 7607 teststring=ABCD 7608 7609 case $build_os in 7610 msdosdjgpp*) 7611 # On DJGPP, this test can blow up pretty badly due to problems in libc 7612 # (any single argument exceeding 2000 bytes causes a buffer overrun 7613 # during glob expansion). Even if it were fixed, the result of this 7614 # check would be larger than it should be. 7615 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7616 ;; 7617 7618 gnu*) 7619 # Under GNU Hurd, this test is not required because there is 7620 # no limit to the length of command line arguments. 7621 # Libtool will interpret -1 as no limit whatsoever 7622 lt_cv_sys_max_cmd_len=-1; 7623 ;; 7624 7625 cygwin* | mingw* | cegcc*) 7626 # On Win9x/ME, this test blows up -- it succeeds, but takes 7627 # about 5 minutes as the teststring grows exponentially. 7628 # Worse, since 9x/ME are not pre-emptively multitasking, 7629 # you end up with a "frozen" computer, even though with patience 7630 # the test eventually succeeds (with a max line length of 256k). 7631 # Instead, let's just punt: use the minimum linelength reported by 7632 # all of the supported platforms: 8192 (on NT/2K/XP). 7633 lt_cv_sys_max_cmd_len=8192; 7634 ;; 7635 7636 mint*) 7637 # On MiNT this can take a long time and run out of memory. 7638 lt_cv_sys_max_cmd_len=8192; 7639 ;; 7640 7641 amigaos*) 7642 # On AmigaOS with pdksh, this test takes hours, literally. 7643 # So we just punt and use a minimum line length of 8192. 7644 lt_cv_sys_max_cmd_len=8192; 7645 ;; 7646 7647 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7648 # This has been around since 386BSD, at least. Likely further. 7649 if test -x /sbin/sysctl; then 7650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7651 elif test -x /usr/sbin/sysctl; then 7652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7653 else 7654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7655 fi 7656 # And add a safety zone 7657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7659 ;; 7660 7661 interix*) 7662 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7663 lt_cv_sys_max_cmd_len=196608 7664 ;; 7665 7666 os2*) 7667 # The test takes a long time on OS/2. 7668 lt_cv_sys_max_cmd_len=8192 7669 ;; 7670 7671 osf*) 7672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7674 # nice to cause kernel panics so lets avoid the loop below. 7675 # First set a reasonable default. 7676 lt_cv_sys_max_cmd_len=16384 7677 # 7678 if test -x /sbin/sysconfig; then 7679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7680 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7681 esac 7682 fi 7683 ;; 7684 sco3.2v5*) 7685 lt_cv_sys_max_cmd_len=102400 7686 ;; 7687 sysv5* | sco5v6* | sysv4.2uw2*) 7688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7689 if test -n "$kargmax"; then 7690 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7691 else 7692 lt_cv_sys_max_cmd_len=32768 7693 fi 7694 ;; 7695 *) 7696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7697 if test -n "$lt_cv_sys_max_cmd_len" && \ 7698 test undefined != "$lt_cv_sys_max_cmd_len"; then 7699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7701 else 7702 # Make teststring a little bigger before we do anything with it. 7703 # a 1K string should be a reasonable start. 7704 for i in 1 2 3 4 5 6 7 8; do 7705 teststring=$teststring$teststring 7706 done 7707 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7708 # If test is not a shell built-in, we'll probably end up computing a 7709 # maximum length that is only half of the actual maximum length, but 7710 # we can't tell. 7711 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7712 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7713 test 17 != "$i" # 1/2 MB should be enough 7714 do 7715 i=`expr $i + 1` 7716 teststring=$teststring$teststring 7717 done 7718 # Only check the string length outside the loop. 7719 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7720 teststring= 7721 # Add a significant safety factor because C++ compilers can tack on 7722 # massive amounts of additional arguments before passing them to the 7723 # linker. It appears as though 1/2 is a usable value. 7724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7725 fi 7726 ;; 7727 esac 7728 7729fi 7730 7731if test -n "$lt_cv_sys_max_cmd_len"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7733$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7734else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7736$as_echo "none" >&6; } 7737fi 7738max_cmd_len=$lt_cv_sys_max_cmd_len 7739 7740 7741 7742 7743 7744 7745: ${CP="cp -f"} 7746: ${MV="mv -f"} 7747: ${RM="rm -f"} 7748 7749if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7750 lt_unset=unset 7751else 7752 lt_unset=false 7753fi 7754 7755 7756 7757 7758 7759# test EBCDIC or ASCII 7760case `echo X|tr X '\101'` in 7761 A) # ASCII based system 7762 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7763 lt_SP2NL='tr \040 \012' 7764 lt_NL2SP='tr \015\012 \040\040' 7765 ;; 7766 *) # EBCDIC based system 7767 lt_SP2NL='tr \100 \n' 7768 lt_NL2SP='tr \r\n \100\100' 7769 ;; 7770esac 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7781$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7782if ${lt_cv_to_host_file_cmd+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 case $host in 7786 *-*-mingw* ) 7787 case $build in 7788 *-*-mingw* ) # actually msys 7789 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7790 ;; 7791 *-*-cygwin* ) 7792 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7793 ;; 7794 * ) # otherwise, assume *nix 7795 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7796 ;; 7797 esac 7798 ;; 7799 *-*-cygwin* ) 7800 case $build in 7801 *-*-mingw* ) # actually msys 7802 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7803 ;; 7804 *-*-cygwin* ) 7805 lt_cv_to_host_file_cmd=func_convert_file_noop 7806 ;; 7807 * ) # otherwise, assume *nix 7808 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7809 ;; 7810 esac 7811 ;; 7812 * ) # unhandled hosts (and "normal" native builds) 7813 lt_cv_to_host_file_cmd=func_convert_file_noop 7814 ;; 7815esac 7816 7817fi 7818 7819to_host_file_cmd=$lt_cv_to_host_file_cmd 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7821$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7822 7823 7824 7825 7826 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7828$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7829if ${lt_cv_to_tool_file_cmd+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 #assume ordinary cross tools, or native build. 7833lt_cv_to_tool_file_cmd=func_convert_file_noop 7834case $host in 7835 *-*-mingw* ) 7836 case $build in 7837 *-*-mingw* ) # actually msys 7838 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7839 ;; 7840 esac 7841 ;; 7842esac 7843 7844fi 7845 7846to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7848$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7849 7850 7851 7852 7853 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7855$as_echo_n "checking for $LD option to reload object files... " >&6; } 7856if ${lt_cv_ld_reload_flag+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 lt_cv_ld_reload_flag='-r' 7860fi 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7862$as_echo "$lt_cv_ld_reload_flag" >&6; } 7863reload_flag=$lt_cv_ld_reload_flag 7864case $reload_flag in 7865"" | " "*) ;; 7866*) reload_flag=" $reload_flag" ;; 7867esac 7868reload_cmds='$LD$reload_flag -o $output$reload_objs' 7869case $host_os in 7870 cygwin* | mingw* | pw32* | cegcc*) 7871 if test yes != "$GCC"; then 7872 reload_cmds=false 7873 fi 7874 ;; 7875 darwin*) 7876 if test yes = "$GCC"; then 7877 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7878 else 7879 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7880 fi 7881 ;; 7882esac 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892if test -n "$ac_tool_prefix"; then 7893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7894set dummy ${ac_tool_prefix}objdump; ac_word=$2 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896$as_echo_n "checking for $ac_word... " >&6; } 7897if ${ac_cv_prog_OBJDUMP+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 if test -n "$OBJDUMP"; then 7901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7902else 7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904for as_dir in $PATH 7905do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914done 7915 done 7916IFS=$as_save_IFS 7917 7918fi 7919fi 7920OBJDUMP=$ac_cv_prog_OBJDUMP 7921if test -n "$OBJDUMP"; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7923$as_echo "$OBJDUMP" >&6; } 7924else 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926$as_echo "no" >&6; } 7927fi 7928 7929 7930fi 7931if test -z "$ac_cv_prog_OBJDUMP"; then 7932 ac_ct_OBJDUMP=$OBJDUMP 7933 # Extract the first word of "objdump", so it can be a program name with args. 7934set dummy objdump; ac_word=$2 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7936$as_echo_n "checking for $ac_word... " >&6; } 7937if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 if test -n "$ac_ct_OBJDUMP"; then 7941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7942else 7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944for as_dir in $PATH 7945do 7946 IFS=$as_save_IFS 7947 test -z "$as_dir" && as_dir=. 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7950 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954done 7955 done 7956IFS=$as_save_IFS 7957 7958fi 7959fi 7960ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7961if test -n "$ac_ct_OBJDUMP"; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7963$as_echo "$ac_ct_OBJDUMP" >&6; } 7964else 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7966$as_echo "no" >&6; } 7967fi 7968 7969 if test "x$ac_ct_OBJDUMP" = x; then 7970 OBJDUMP="false" 7971 else 7972 case $cross_compiling:$ac_tool_warned in 7973yes:) 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7976ac_tool_warned=yes ;; 7977esac 7978 OBJDUMP=$ac_ct_OBJDUMP 7979 fi 7980else 7981 OBJDUMP="$ac_cv_prog_OBJDUMP" 7982fi 7983 7984test -z "$OBJDUMP" && OBJDUMP=objdump 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7995$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7996if ${lt_cv_deplibs_check_method+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 lt_cv_file_magic_cmd='$MAGIC_CMD' 8000lt_cv_file_magic_test_file= 8001lt_cv_deplibs_check_method='unknown' 8002# Need to set the preceding variable on all platforms that support 8003# interlibrary dependencies. 8004# 'none' -- dependencies not supported. 8005# 'unknown' -- same as none, but documents that we really don't know. 8006# 'pass_all' -- all dependencies passed with no checks. 8007# 'test_compile' -- check by making test program. 8008# 'file_magic [[regex]]' -- check by looking for files in library path 8009# that responds to the $file_magic_cmd with a given extended regex. 8010# If you have 'file' or equivalent on your system and you're not sure 8011# whether 'pass_all' will *always* work, you probably want this one. 8012 8013case $host_os in 8014aix[4-9]*) 8015 lt_cv_deplibs_check_method=pass_all 8016 ;; 8017 8018beos*) 8019 lt_cv_deplibs_check_method=pass_all 8020 ;; 8021 8022bsdi[45]*) 8023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8024 lt_cv_file_magic_cmd='/usr/bin/file -L' 8025 lt_cv_file_magic_test_file=/shlib/libc.so 8026 ;; 8027 8028cygwin*) 8029 # func_win32_libid is a shell function defined in ltmain.sh 8030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8031 lt_cv_file_magic_cmd='func_win32_libid' 8032 ;; 8033 8034mingw* | pw32*) 8035 # Base MSYS/MinGW do not provide the 'file' command needed by 8036 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8037 # unless we find 'file', for example because we are cross-compiling. 8038 if ( file / ) >/dev/null 2>&1; then 8039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8040 lt_cv_file_magic_cmd='func_win32_libid' 8041 else 8042 # Keep this pattern in sync with the one in func_win32_libid. 8043 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8044 lt_cv_file_magic_cmd='$OBJDUMP -f' 8045 fi 8046 ;; 8047 8048cegcc*) 8049 # use the weaker test based on 'objdump'. See mingw*. 8050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8051 lt_cv_file_magic_cmd='$OBJDUMP -f' 8052 ;; 8053 8054darwin* | rhapsody*) 8055 lt_cv_deplibs_check_method=pass_all 8056 ;; 8057 8058freebsd* | dragonfly*) 8059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8060 case $host_cpu in 8061 i*86 ) 8062 # Not sure whether the presence of OpenBSD here was a mistake. 8063 # Let's accept both of them until this is cleared up. 8064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8065 lt_cv_file_magic_cmd=/usr/bin/file 8066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8067 ;; 8068 esac 8069 else 8070 lt_cv_deplibs_check_method=pass_all 8071 fi 8072 ;; 8073 8074haiku*) 8075 lt_cv_deplibs_check_method=pass_all 8076 ;; 8077 8078hpux10.20* | hpux11*) 8079 lt_cv_file_magic_cmd=/usr/bin/file 8080 case $host_cpu in 8081 ia64*) 8082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8084 ;; 8085 hppa*64*) 8086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 8087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8088 ;; 8089 *) 8090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8091 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8092 ;; 8093 esac 8094 ;; 8095 8096interix[3-9]*) 8097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8099 ;; 8100 8101irix5* | irix6* | nonstopux*) 8102 case $LD in 8103 *-32|*"-32 ") libmagic=32-bit;; 8104 *-n32|*"-n32 ") libmagic=N32;; 8105 *-64|*"-64 ") libmagic=64-bit;; 8106 *) libmagic=never-match;; 8107 esac 8108 lt_cv_deplibs_check_method=pass_all 8109 ;; 8110 8111# This must be glibc/ELF. 8112linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8113 lt_cv_deplibs_check_method=pass_all 8114 ;; 8115 8116netbsd*) 8117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8119 else 8120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8121 fi 8122 ;; 8123 8124newos6*) 8125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8126 lt_cv_file_magic_cmd=/usr/bin/file 8127 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8128 ;; 8129 8130*nto* | *qnx*) 8131 lt_cv_deplibs_check_method=pass_all 8132 ;; 8133 8134openbsd* | bitrig*) 8135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8137 else 8138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8139 fi 8140 ;; 8141 8142osf3* | osf4* | osf5*) 8143 lt_cv_deplibs_check_method=pass_all 8144 ;; 8145 8146rdos*) 8147 lt_cv_deplibs_check_method=pass_all 8148 ;; 8149 8150solaris*) 8151 lt_cv_deplibs_check_method=pass_all 8152 ;; 8153 8154sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8155 lt_cv_deplibs_check_method=pass_all 8156 ;; 8157 8158sysv4 | sysv4.3*) 8159 case $host_vendor in 8160 motorola) 8161 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]' 8162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8163 ;; 8164 ncr) 8165 lt_cv_deplibs_check_method=pass_all 8166 ;; 8167 sequent) 8168 lt_cv_file_magic_cmd='/bin/file' 8169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8170 ;; 8171 sni) 8172 lt_cv_file_magic_cmd='/bin/file' 8173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8174 lt_cv_file_magic_test_file=/lib/libc.so 8175 ;; 8176 siemens) 8177 lt_cv_deplibs_check_method=pass_all 8178 ;; 8179 pc) 8180 lt_cv_deplibs_check_method=pass_all 8181 ;; 8182 esac 8183 ;; 8184 8185tpf*) 8186 lt_cv_deplibs_check_method=pass_all 8187 ;; 8188os2*) 8189 lt_cv_deplibs_check_method=pass_all 8190 ;; 8191esac 8192 8193fi 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8195$as_echo "$lt_cv_deplibs_check_method" >&6; } 8196 8197file_magic_glob= 8198want_nocaseglob=no 8199if test "$build" = "$host"; then 8200 case $host_os in 8201 mingw* | pw32*) 8202 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8203 want_nocaseglob=yes 8204 else 8205 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8206 fi 8207 ;; 8208 esac 8209fi 8210 8211file_magic_cmd=$lt_cv_file_magic_cmd 8212deplibs_check_method=$lt_cv_deplibs_check_method 8213test -z "$deplibs_check_method" && deplibs_check_method=unknown 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236if test -n "$ac_tool_prefix"; then 8237 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8238set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8240$as_echo_n "checking for $ac_word... " >&6; } 8241if ${ac_cv_prog_DLLTOOL+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 if test -n "$DLLTOOL"; then 8245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8246else 8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8248for as_dir in $PATH 8249do 8250 IFS=$as_save_IFS 8251 test -z "$as_dir" && as_dir=. 8252 for ac_exec_ext in '' $ac_executable_extensions; do 8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8256 break 2 8257 fi 8258done 8259 done 8260IFS=$as_save_IFS 8261 8262fi 8263fi 8264DLLTOOL=$ac_cv_prog_DLLTOOL 8265if test -n "$DLLTOOL"; then 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8267$as_echo "$DLLTOOL" >&6; } 8268else 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8270$as_echo "no" >&6; } 8271fi 8272 8273 8274fi 8275if test -z "$ac_cv_prog_DLLTOOL"; then 8276 ac_ct_DLLTOOL=$DLLTOOL 8277 # Extract the first word of "dlltool", so it can be a program name with args. 8278set dummy dlltool; ac_word=$2 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8280$as_echo_n "checking for $ac_word... " >&6; } 8281if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 if test -n "$ac_ct_DLLTOOL"; then 8285 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8286else 8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8288for as_dir in $PATH 8289do 8290 IFS=$as_save_IFS 8291 test -z "$as_dir" && as_dir=. 8292 for ac_exec_ext in '' $ac_executable_extensions; do 8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8294 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8296 break 2 8297 fi 8298done 8299 done 8300IFS=$as_save_IFS 8301 8302fi 8303fi 8304ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8305if test -n "$ac_ct_DLLTOOL"; then 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8307$as_echo "$ac_ct_DLLTOOL" >&6; } 8308else 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8310$as_echo "no" >&6; } 8311fi 8312 8313 if test "x$ac_ct_DLLTOOL" = x; then 8314 DLLTOOL="false" 8315 else 8316 case $cross_compiling:$ac_tool_warned in 8317yes:) 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8320ac_tool_warned=yes ;; 8321esac 8322 DLLTOOL=$ac_ct_DLLTOOL 8323 fi 8324else 8325 DLLTOOL="$ac_cv_prog_DLLTOOL" 8326fi 8327 8328test -z "$DLLTOOL" && DLLTOOL=dlltool 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8340$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8341if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 lt_cv_sharedlib_from_linklib_cmd='unknown' 8345 8346case $host_os in 8347cygwin* | mingw* | pw32* | cegcc*) 8348 # two different shell functions defined in ltmain.sh; 8349 # decide which one to use based on capabilities of $DLLTOOL 8350 case `$DLLTOOL --help 2>&1` in 8351 *--identify-strict*) 8352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8353 ;; 8354 *) 8355 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8356 ;; 8357 esac 8358 ;; 8359*) 8360 # fallback: assume linklib IS sharedlib 8361 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8362 ;; 8363esac 8364 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8367$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8368sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8369test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8370 8371 8372 8373 8374 8375 8376 8377if test -n "$ac_tool_prefix"; then 8378 for ac_prog in ar 8379 do 8380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8381set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383$as_echo_n "checking for $ac_word... " >&6; } 8384if ${ac_cv_prog_AR+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test -n "$AR"; then 8388 ac_cv_prog_AR="$AR" # Let the user override the test. 8389else 8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391for as_dir in $PATH 8392do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi 8406fi 8407AR=$ac_cv_prog_AR 8408if test -n "$AR"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8410$as_echo "$AR" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 test -n "$AR" && break 8418 done 8419fi 8420if test -z "$AR"; then 8421 ac_ct_AR=$AR 8422 for ac_prog in ar 8423do 8424 # Extract the first word of "$ac_prog", so it can be a program name with args. 8425set dummy $ac_prog; ac_word=$2 8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8427$as_echo_n "checking for $ac_word... " >&6; } 8428if ${ac_cv_prog_ac_ct_AR+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 if test -n "$ac_ct_AR"; then 8432 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8433else 8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8435for as_dir in $PATH 8436do 8437 IFS=$as_save_IFS 8438 test -z "$as_dir" && as_dir=. 8439 for ac_exec_ext in '' $ac_executable_extensions; do 8440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8441 ac_cv_prog_ac_ct_AR="$ac_prog" 8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8443 break 2 8444 fi 8445done 8446 done 8447IFS=$as_save_IFS 8448 8449fi 8450fi 8451ac_ct_AR=$ac_cv_prog_ac_ct_AR 8452if test -n "$ac_ct_AR"; then 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8454$as_echo "$ac_ct_AR" >&6; } 8455else 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8457$as_echo "no" >&6; } 8458fi 8459 8460 8461 test -n "$ac_ct_AR" && break 8462done 8463 8464 if test "x$ac_ct_AR" = x; then 8465 AR="false" 8466 else 8467 case $cross_compiling:$ac_tool_warned in 8468yes:) 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8471ac_tool_warned=yes ;; 8472esac 8473 AR=$ac_ct_AR 8474 fi 8475fi 8476 8477: ${AR=ar} 8478: ${AR_FLAGS=cru} 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8491$as_echo_n "checking for archiver @FILE support... " >&6; } 8492if ${lt_cv_ar_at_file+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 lt_cv_ar_at_file=no 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498 8499int 8500main () 8501{ 8502 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507if ac_fn_c_try_compile "$LINENO"; then : 8508 echo conftest.$ac_objext > conftest.lst 8509 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8511 (eval $lt_ar_try) 2>&5 8512 ac_status=$? 8513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8514 test $ac_status = 0; } 8515 if test 0 -eq "$ac_status"; then 8516 # Ensure the archiver fails upon bogus file names. 8517 rm -f conftest.$ac_objext libconftest.a 8518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8519 (eval $lt_ar_try) 2>&5 8520 ac_status=$? 8521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8522 test $ac_status = 0; } 8523 if test 0 -ne "$ac_status"; then 8524 lt_cv_ar_at_file=@ 8525 fi 8526 fi 8527 rm -f conftest.* libconftest.a 8528 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8531 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8534$as_echo "$lt_cv_ar_at_file" >&6; } 8535 8536if test no = "$lt_cv_ar_at_file"; then 8537 archiver_list_spec= 8538else 8539 archiver_list_spec=$lt_cv_ar_at_file 8540fi 8541 8542 8543 8544 8545 8546 8547 8548if test -n "$ac_tool_prefix"; then 8549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8550set dummy ${ac_tool_prefix}strip; ac_word=$2 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8552$as_echo_n "checking for $ac_word... " >&6; } 8553if ${ac_cv_prog_STRIP+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 if test -n "$STRIP"; then 8557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8558else 8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8560for as_dir in $PATH 8561do 8562 IFS=$as_save_IFS 8563 test -z "$as_dir" && as_dir=. 8564 for ac_exec_ext in '' $ac_executable_extensions; do 8565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8566 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8568 break 2 8569 fi 8570done 8571 done 8572IFS=$as_save_IFS 8573 8574fi 8575fi 8576STRIP=$ac_cv_prog_STRIP 8577if test -n "$STRIP"; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8579$as_echo "$STRIP" >&6; } 8580else 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8582$as_echo "no" >&6; } 8583fi 8584 8585 8586fi 8587if test -z "$ac_cv_prog_STRIP"; then 8588 ac_ct_STRIP=$STRIP 8589 # Extract the first word of "strip", so it can be a program name with args. 8590set dummy strip; ac_word=$2 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8592$as_echo_n "checking for $ac_word... " >&6; } 8593if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595else 8596 if test -n "$ac_ct_STRIP"; then 8597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8598else 8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8600for as_dir in $PATH 8601do 8602 IFS=$as_save_IFS 8603 test -z "$as_dir" && as_dir=. 8604 for ac_exec_ext in '' $ac_executable_extensions; do 8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8606 ac_cv_prog_ac_ct_STRIP="strip" 8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8608 break 2 8609 fi 8610done 8611 done 8612IFS=$as_save_IFS 8613 8614fi 8615fi 8616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8617if test -n "$ac_ct_STRIP"; then 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8619$as_echo "$ac_ct_STRIP" >&6; } 8620else 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8622$as_echo "no" >&6; } 8623fi 8624 8625 if test "x$ac_ct_STRIP" = x; then 8626 STRIP=":" 8627 else 8628 case $cross_compiling:$ac_tool_warned in 8629yes:) 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8632ac_tool_warned=yes ;; 8633esac 8634 STRIP=$ac_ct_STRIP 8635 fi 8636else 8637 STRIP="$ac_cv_prog_STRIP" 8638fi 8639 8640test -z "$STRIP" && STRIP=: 8641 8642 8643 8644 8645 8646 8647if test -n "$ac_tool_prefix"; then 8648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8649set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8651$as_echo_n "checking for $ac_word... " >&6; } 8652if ${ac_cv_prog_RANLIB+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 if test -n "$RANLIB"; then 8656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8657else 8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8659for as_dir in $PATH 8660do 8661 IFS=$as_save_IFS 8662 test -z "$as_dir" && as_dir=. 8663 for ac_exec_ext in '' $ac_executable_extensions; do 8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8667 break 2 8668 fi 8669done 8670 done 8671IFS=$as_save_IFS 8672 8673fi 8674fi 8675RANLIB=$ac_cv_prog_RANLIB 8676if test -n "$RANLIB"; then 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8678$as_echo "$RANLIB" >&6; } 8679else 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8681$as_echo "no" >&6; } 8682fi 8683 8684 8685fi 8686if test -z "$ac_cv_prog_RANLIB"; then 8687 ac_ct_RANLIB=$RANLIB 8688 # Extract the first word of "ranlib", so it can be a program name with args. 8689set dummy ranlib; ac_word=$2 8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8691$as_echo_n "checking for $ac_word... " >&6; } 8692if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 if test -n "$ac_ct_RANLIB"; then 8696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8697else 8698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8699for as_dir in $PATH 8700do 8701 IFS=$as_save_IFS 8702 test -z "$as_dir" && as_dir=. 8703 for ac_exec_ext in '' $ac_executable_extensions; do 8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8705 ac_cv_prog_ac_ct_RANLIB="ranlib" 8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8707 break 2 8708 fi 8709done 8710 done 8711IFS=$as_save_IFS 8712 8713fi 8714fi 8715ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8716if test -n "$ac_ct_RANLIB"; then 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8718$as_echo "$ac_ct_RANLIB" >&6; } 8719else 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8721$as_echo "no" >&6; } 8722fi 8723 8724 if test "x$ac_ct_RANLIB" = x; then 8725 RANLIB=":" 8726 else 8727 case $cross_compiling:$ac_tool_warned in 8728yes:) 8729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8731ac_tool_warned=yes ;; 8732esac 8733 RANLIB=$ac_ct_RANLIB 8734 fi 8735else 8736 RANLIB="$ac_cv_prog_RANLIB" 8737fi 8738 8739test -z "$RANLIB" && RANLIB=: 8740 8741 8742 8743 8744 8745 8746# Determine commands to create old-style static archives. 8747old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8748old_postinstall_cmds='chmod 644 $oldlib' 8749old_postuninstall_cmds= 8750 8751if test -n "$RANLIB"; then 8752 case $host_os in 8753 bitrig* | openbsd*) 8754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8755 ;; 8756 *) 8757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8758 ;; 8759 esac 8760 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8761fi 8762 8763case $host_os in 8764 darwin*) 8765 lock_old_archive_extraction=yes ;; 8766 *) 8767 lock_old_archive_extraction=no ;; 8768esac 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808# If no C compiler was specified, use CC. 8809LTCC=${LTCC-"$CC"} 8810 8811# If no C compiler flags were specified, use CFLAGS. 8812LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8813 8814# Allow CC to be a program name with arguments. 8815compiler=$CC 8816 8817 8818# Check for command to grab the raw symbol name followed by C symbol from nm. 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8820$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8821if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 8825# These are sane defaults that work on at least a few old systems. 8826# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8827 8828# Character class describing NM global symbol codes. 8829symcode='[BCDEGRST]' 8830 8831# Regexp to match symbols that can be accessed directly from C. 8832sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8833 8834# Define system-specific variables. 8835case $host_os in 8836aix*) 8837 symcode='[BCDT]' 8838 ;; 8839cygwin* | mingw* | pw32* | cegcc*) 8840 symcode='[ABCDGISTW]' 8841 ;; 8842hpux*) 8843 if test ia64 = "$host_cpu"; then 8844 symcode='[ABCDEGRST]' 8845 fi 8846 ;; 8847irix* | nonstopux*) 8848 symcode='[BCDEGRST]' 8849 ;; 8850osf*) 8851 symcode='[BCDEGQRST]' 8852 ;; 8853solaris*) 8854 symcode='[BDRT]' 8855 ;; 8856sco3.2v5*) 8857 symcode='[DT]' 8858 ;; 8859sysv4.2uw2*) 8860 symcode='[DT]' 8861 ;; 8862sysv5* | sco5v6* | unixware* | OpenUNIX*) 8863 symcode='[ABDT]' 8864 ;; 8865sysv4) 8866 symcode='[DFNSTU]' 8867 ;; 8868esac 8869 8870# If we're using GNU nm, then use its standard symbol codes. 8871case `$NM -V 2>&1` in 8872*GNU* | *'with BFD'*) 8873 symcode='[ABCDGIRSTW]' ;; 8874esac 8875 8876if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8877 # Gets list of data symbols to import. 8878 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8879 # Adjust the below global symbol transforms to fixup imported variables. 8880 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8881 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8882 lt_c_name_lib_hook="\ 8883 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8884 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8885else 8886 # Disable hooks by default. 8887 lt_cv_sys_global_symbol_to_import= 8888 lt_cdecl_hook= 8889 lt_c_name_hook= 8890 lt_c_name_lib_hook= 8891fi 8892 8893# Transform an extracted symbol line into a proper C declaration. 8894# Some systems (esp. on ia64) link data and code symbols differently, 8895# so use this general approach. 8896lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8897$lt_cdecl_hook\ 8898" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8899" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8900 8901# Transform an extracted symbol line into symbol name and symbol address 8902lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8903$lt_c_name_hook\ 8904" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8905" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8906 8907# Transform an extracted symbol line into symbol name with lib prefix and 8908# symbol address. 8909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8910$lt_c_name_lib_hook\ 8911" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8912" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8913" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8914 8915# Handle CRLF in mingw tool chain 8916opt_cr= 8917case $build_os in 8918mingw*) 8919 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8920 ;; 8921esac 8922 8923# Try without a prefix underscore, then with it. 8924for ac_symprfx in "" "_"; do 8925 8926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8927 symxfrm="\\1 $ac_symprfx\\2 \\2" 8928 8929 # Write the raw and C identifiers. 8930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8931 # Fake it for dumpbin and say T for any non-static function, 8932 # D for any global variable and I for any imported variable. 8933 # Also find C++ and __fastcall symbols from MSVC++, 8934 # which start with @ or ?. 8935 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8936" {last_section=section; section=\$ 3};"\ 8937" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8938" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8939" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8940" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8941" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8942" \$ 0!~/External *\|/{next};"\ 8943" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8944" {if(hide[section]) next};"\ 8945" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8946" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8947" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8948" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8949" ' prfx=^$ac_symprfx" 8950 else 8951 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8952 fi 8953 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8954 8955 # Check to see that the pipe works correctly. 8956 pipe_works=no 8957 8958 rm -f conftest* 8959 cat > conftest.$ac_ext <<_LT_EOF 8960#ifdef __cplusplus 8961extern "C" { 8962#endif 8963char nm_test_var; 8964void nm_test_func(void); 8965void nm_test_func(void){} 8966#ifdef __cplusplus 8967} 8968#endif 8969int main(){nm_test_var='a';nm_test_func();return(0);} 8970_LT_EOF 8971 8972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8973 (eval $ac_compile) 2>&5 8974 ac_status=$? 8975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8976 test $ac_status = 0; }; then 8977 # Now try to grab the symbols. 8978 nlist=conftest.nm 8979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8980 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8981 ac_status=$? 8982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8983 test $ac_status = 0; } && test -s "$nlist"; then 8984 # Try sorting and uniquifying the output. 8985 if sort "$nlist" | uniq > "$nlist"T; then 8986 mv -f "$nlist"T "$nlist" 8987 else 8988 rm -f "$nlist"T 8989 fi 8990 8991 # Make sure that we snagged all the symbols we need. 8992 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8993 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8994 cat <<_LT_EOF > conftest.$ac_ext 8995/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8996#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8997/* DATA imports from DLLs on WIN32 can't be const, because runtime 8998 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8999# define LT_DLSYM_CONST 9000#elif defined __osf__ 9001/* This system does not cope well with relocations in const data. */ 9002# define LT_DLSYM_CONST 9003#else 9004# define LT_DLSYM_CONST const 9005#endif 9006 9007#ifdef __cplusplus 9008extern "C" { 9009#endif 9010 9011_LT_EOF 9012 # Now generate the symbol file. 9013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9014 9015 cat <<_LT_EOF >> conftest.$ac_ext 9016 9017/* The mapping between symbol names and symbols. */ 9018LT_DLSYM_CONST struct { 9019 const char *name; 9020 void *address; 9021} 9022lt__PROGRAM__LTX_preloaded_symbols[] = 9023{ 9024 { "@PROGRAM@", (void *) 0 }, 9025_LT_EOF 9026 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9027 cat <<\_LT_EOF >> conftest.$ac_ext 9028 {0, (void *) 0} 9029}; 9030 9031/* This works around a problem in FreeBSD linker */ 9032#ifdef FREEBSD_WORKAROUND 9033static const void *lt_preloaded_setup() { 9034 return lt__PROGRAM__LTX_preloaded_symbols; 9035} 9036#endif 9037 9038#ifdef __cplusplus 9039} 9040#endif 9041_LT_EOF 9042 # Now try linking the two files. 9043 mv conftest.$ac_objext conftstm.$ac_objext 9044 lt_globsym_save_LIBS=$LIBS 9045 lt_globsym_save_CFLAGS=$CFLAGS 9046 LIBS=conftstm.$ac_objext 9047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9049 (eval $ac_link) 2>&5 9050 ac_status=$? 9051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9052 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9053 pipe_works=yes 9054 fi 9055 LIBS=$lt_globsym_save_LIBS 9056 CFLAGS=$lt_globsym_save_CFLAGS 9057 else 9058 echo "cannot find nm_test_func in $nlist" >&5 9059 fi 9060 else 9061 echo "cannot find nm_test_var in $nlist" >&5 9062 fi 9063 else 9064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9065 fi 9066 else 9067 echo "$progname: failed program was:" >&5 9068 cat conftest.$ac_ext >&5 9069 fi 9070 rm -rf conftest* conftst* 9071 9072 # Do not use the global_symbol_pipe unless it works. 9073 if test yes = "$pipe_works"; then 9074 break 9075 else 9076 lt_cv_sys_global_symbol_pipe= 9077 fi 9078done 9079 9080fi 9081 9082if test -z "$lt_cv_sys_global_symbol_pipe"; then 9083 lt_cv_sys_global_symbol_to_cdecl= 9084fi 9085if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9087$as_echo "failed" >&6; } 9088else 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9090$as_echo "ok" >&6; } 9091fi 9092 9093# Response file support. 9094if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9095 nm_file_list_spec='@' 9096elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9097 nm_file_list_spec='@' 9098fi 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9137$as_echo_n "checking for sysroot... " >&6; } 9138 9139# Check whether --with-sysroot was given. 9140if test "${with_sysroot+set}" = set; then : 9141 withval=$with_sysroot; 9142else 9143 with_sysroot=no 9144fi 9145 9146 9147lt_sysroot= 9148case $with_sysroot in #( 9149 yes) 9150 if test yes = "$GCC"; then 9151 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9152 fi 9153 ;; #( 9154 /*) 9155 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9156 ;; #( 9157 no|'') 9158 ;; #( 9159 *) 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9161$as_echo "$with_sysroot" >&6; } 9162 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9163 ;; 9164esac 9165 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9167$as_echo "${lt_sysroot:-no}" >&6; } 9168 9169 9170 9171 9172 9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9174$as_echo_n "checking for a working dd... " >&6; } 9175if ${ac_cv_path_lt_DD+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 printf 0123456789abcdef0123456789abcdef >conftest.i 9179cat conftest.i conftest.i >conftest2.i 9180: ${lt_DD:=$DD} 9181if test -z "$lt_DD"; then 9182 ac_path_lt_DD_found=false 9183 # Loop through the user's path and test for each of PROGNAME-LIST 9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9185for as_dir in $PATH 9186do 9187 IFS=$as_save_IFS 9188 test -z "$as_dir" && as_dir=. 9189 for ac_prog in dd; do 9190 for ac_exec_ext in '' $ac_executable_extensions; do 9191 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9192 as_fn_executable_p "$ac_path_lt_DD" || continue 9193if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9194 cmp -s conftest.i conftest.out \ 9195 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9196fi 9197 $ac_path_lt_DD_found && break 3 9198 done 9199 done 9200 done 9201IFS=$as_save_IFS 9202 if test -z "$ac_cv_path_lt_DD"; then 9203 : 9204 fi 9205else 9206 ac_cv_path_lt_DD=$lt_DD 9207fi 9208 9209rm -f conftest.i conftest2.i conftest.out 9210fi 9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9212$as_echo "$ac_cv_path_lt_DD" >&6; } 9213 9214 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9216$as_echo_n "checking how to truncate binary pipes... " >&6; } 9217if ${lt_cv_truncate_bin+:} false; then : 9218 $as_echo_n "(cached) " >&6 9219else 9220 printf 0123456789abcdef0123456789abcdef >conftest.i 9221cat conftest.i conftest.i >conftest2.i 9222lt_cv_truncate_bin= 9223if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9224 cmp -s conftest.i conftest.out \ 9225 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9226fi 9227rm -f conftest.i conftest2.i conftest.out 9228test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9229fi 9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9231$as_echo "$lt_cv_truncate_bin" >&6; } 9232 9233 9234 9235 9236 9237 9238 9239# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9240func_cc_basename () 9241{ 9242 for cc_temp in $*""; do 9243 case $cc_temp in 9244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9246 \-*) ;; 9247 *) break;; 9248 esac 9249 done 9250 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9251} 9252 9253# Check whether --enable-libtool-lock was given. 9254if test "${enable_libtool_lock+set}" = set; then : 9255 enableval=$enable_libtool_lock; 9256fi 9257 9258test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9259 9260# Some flags need to be propagated to the compiler or linker for good 9261# libtool support. 9262case $host in 9263ia64-*-hpux*) 9264 # Find out what ABI is being produced by ac_compile, and set mode 9265 # options accordingly. 9266 echo 'int i;' > conftest.$ac_ext 9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9268 (eval $ac_compile) 2>&5 9269 ac_status=$? 9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9271 test $ac_status = 0; }; then 9272 case `/usr/bin/file conftest.$ac_objext` in 9273 *ELF-32*) 9274 HPUX_IA64_MODE=32 9275 ;; 9276 *ELF-64*) 9277 HPUX_IA64_MODE=64 9278 ;; 9279 esac 9280 fi 9281 rm -rf conftest* 9282 ;; 9283*-*-irix6*) 9284 # Find out what ABI is being produced by ac_compile, and set linker 9285 # options accordingly. 9286 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9288 (eval $ac_compile) 2>&5 9289 ac_status=$? 9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9291 test $ac_status = 0; }; then 9292 if test yes = "$lt_cv_prog_gnu_ld"; then 9293 case `/usr/bin/file conftest.$ac_objext` in 9294 *32-bit*) 9295 LD="${LD-ld} -melf32bsmip" 9296 ;; 9297 *N32*) 9298 LD="${LD-ld} -melf32bmipn32" 9299 ;; 9300 *64-bit*) 9301 LD="${LD-ld} -melf64bmip" 9302 ;; 9303 esac 9304 else 9305 case `/usr/bin/file conftest.$ac_objext` in 9306 *32-bit*) 9307 LD="${LD-ld} -32" 9308 ;; 9309 *N32*) 9310 LD="${LD-ld} -n32" 9311 ;; 9312 *64-bit*) 9313 LD="${LD-ld} -64" 9314 ;; 9315 esac 9316 fi 9317 fi 9318 rm -rf conftest* 9319 ;; 9320 9321mips64*-*linux*) 9322 # Find out what ABI is being produced by ac_compile, and set linker 9323 # options accordingly. 9324 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9326 (eval $ac_compile) 2>&5 9327 ac_status=$? 9328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9329 test $ac_status = 0; }; then 9330 emul=elf 9331 case `/usr/bin/file conftest.$ac_objext` in 9332 *32-bit*) 9333 emul="${emul}32" 9334 ;; 9335 *64-bit*) 9336 emul="${emul}64" 9337 ;; 9338 esac 9339 case `/usr/bin/file conftest.$ac_objext` in 9340 *MSB*) 9341 emul="${emul}btsmip" 9342 ;; 9343 *LSB*) 9344 emul="${emul}ltsmip" 9345 ;; 9346 esac 9347 case `/usr/bin/file conftest.$ac_objext` in 9348 *N32*) 9349 emul="${emul}n32" 9350 ;; 9351 esac 9352 LD="${LD-ld} -m $emul" 9353 fi 9354 rm -rf conftest* 9355 ;; 9356 9357x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9358s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9359 # Find out what ABI is being produced by ac_compile, and set linker 9360 # options accordingly. Note that the listed cases only cover the 9361 # situations where additional linker options are needed (such as when 9362 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9363 # vice versa); the common cases where no linker options are needed do 9364 # not appear in the list. 9365 echo 'int i;' > conftest.$ac_ext 9366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9367 (eval $ac_compile) 2>&5 9368 ac_status=$? 9369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9370 test $ac_status = 0; }; then 9371 case `/usr/bin/file conftest.o` in 9372 *32-bit*) 9373 case $host in 9374 x86_64-*kfreebsd*-gnu) 9375 LD="${LD-ld} -m elf_i386_fbsd" 9376 ;; 9377 x86_64-*linux*) 9378 case `/usr/bin/file conftest.o` in 9379 *x86-64*) 9380 LD="${LD-ld} -m elf32_x86_64" 9381 ;; 9382 *) 9383 LD="${LD-ld} -m elf_i386" 9384 ;; 9385 esac 9386 ;; 9387 powerpc64le-*linux*) 9388 LD="${LD-ld} -m elf32lppclinux" 9389 ;; 9390 powerpc64-*linux*) 9391 LD="${LD-ld} -m elf32ppclinux" 9392 ;; 9393 s390x-*linux*) 9394 LD="${LD-ld} -m elf_s390" 9395 ;; 9396 sparc64-*linux*) 9397 LD="${LD-ld} -m elf32_sparc" 9398 ;; 9399 esac 9400 ;; 9401 *64-bit*) 9402 case $host in 9403 x86_64-*kfreebsd*-gnu) 9404 LD="${LD-ld} -m elf_x86_64_fbsd" 9405 ;; 9406 x86_64-*linux*) 9407 LD="${LD-ld} -m elf_x86_64" 9408 ;; 9409 powerpcle-*linux*) 9410 LD="${LD-ld} -m elf64lppc" 9411 ;; 9412 powerpc-*linux*) 9413 LD="${LD-ld} -m elf64ppc" 9414 ;; 9415 s390*-*linux*|s390*-*tpf*) 9416 LD="${LD-ld} -m elf64_s390" 9417 ;; 9418 sparc*-*linux*) 9419 LD="${LD-ld} -m elf64_sparc" 9420 ;; 9421 esac 9422 ;; 9423 esac 9424 fi 9425 rm -rf conftest* 9426 ;; 9427 9428*-*-sco3.2v5*) 9429 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9430 SAVE_CFLAGS=$CFLAGS 9431 CFLAGS="$CFLAGS -belf" 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9433$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9434if ${lt_cv_cc_needs_belf+:} false; then : 9435 $as_echo_n "(cached) " >&6 9436else 9437 ac_ext=c 9438ac_cpp='$CPP $CPPFLAGS' 9439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9441ac_compiler_gnu=$ac_cv_c_compiler_gnu 9442 9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9444/* end confdefs.h. */ 9445 9446int 9447main () 9448{ 9449 9450 ; 9451 return 0; 9452} 9453_ACEOF 9454if ac_fn_c_try_link "$LINENO"; then : 9455 lt_cv_cc_needs_belf=yes 9456else 9457 lt_cv_cc_needs_belf=no 9458fi 9459rm -f core conftest.err conftest.$ac_objext \ 9460 conftest$ac_exeext conftest.$ac_ext 9461 ac_ext=c 9462ac_cpp='$CPP $CPPFLAGS' 9463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9465ac_compiler_gnu=$ac_cv_c_compiler_gnu 9466 9467fi 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9469$as_echo "$lt_cv_cc_needs_belf" >&6; } 9470 if test yes != "$lt_cv_cc_needs_belf"; then 9471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9472 CFLAGS=$SAVE_CFLAGS 9473 fi 9474 ;; 9475*-*solaris*) 9476 # Find out what ABI is being produced by ac_compile, and set linker 9477 # options accordingly. 9478 echo 'int i;' > conftest.$ac_ext 9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9480 (eval $ac_compile) 2>&5 9481 ac_status=$? 9482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9483 test $ac_status = 0; }; then 9484 case `/usr/bin/file conftest.o` in 9485 *64-bit*) 9486 case $lt_cv_prog_gnu_ld in 9487 yes*) 9488 case $host in 9489 i?86-*-solaris*|x86_64-*-solaris*) 9490 LD="${LD-ld} -m elf_x86_64" 9491 ;; 9492 sparc*-*-solaris*) 9493 LD="${LD-ld} -m elf64_sparc" 9494 ;; 9495 esac 9496 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9497 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9498 LD=${LD-ld}_sol2 9499 fi 9500 ;; 9501 *) 9502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9503 LD="${LD-ld} -64" 9504 fi 9505 ;; 9506 esac 9507 ;; 9508 esac 9509 fi 9510 rm -rf conftest* 9511 ;; 9512esac 9513 9514need_locks=$enable_libtool_lock 9515 9516if test -n "$ac_tool_prefix"; then 9517 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9518set dummy ${ac_tool_prefix}mt; ac_word=$2 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9520$as_echo_n "checking for $ac_word... " >&6; } 9521if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 if test -n "$MANIFEST_TOOL"; then 9525 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9526else 9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9528for as_dir in $PATH 9529do 9530 IFS=$as_save_IFS 9531 test -z "$as_dir" && as_dir=. 9532 for ac_exec_ext in '' $ac_executable_extensions; do 9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9534 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9536 break 2 9537 fi 9538done 9539 done 9540IFS=$as_save_IFS 9541 9542fi 9543fi 9544MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9545if test -n "$MANIFEST_TOOL"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9547$as_echo "$MANIFEST_TOOL" >&6; } 9548else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9550$as_echo "no" >&6; } 9551fi 9552 9553 9554fi 9555if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9556 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9557 # Extract the first word of "mt", so it can be a program name with args. 9558set dummy mt; ac_word=$2 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9560$as_echo_n "checking for $ac_word... " >&6; } 9561if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 if test -n "$ac_ct_MANIFEST_TOOL"; then 9565 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9566else 9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9568for as_dir in $PATH 9569do 9570 IFS=$as_save_IFS 9571 test -z "$as_dir" && as_dir=. 9572 for ac_exec_ext in '' $ac_executable_extensions; do 9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9574 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9576 break 2 9577 fi 9578done 9579 done 9580IFS=$as_save_IFS 9581 9582fi 9583fi 9584ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9585if test -n "$ac_ct_MANIFEST_TOOL"; then 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9587$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9588else 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9590$as_echo "no" >&6; } 9591fi 9592 9593 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9594 MANIFEST_TOOL=":" 9595 else 9596 case $cross_compiling:$ac_tool_warned in 9597yes:) 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9600ac_tool_warned=yes ;; 9601esac 9602 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9603 fi 9604else 9605 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9606fi 9607 9608test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9610$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9611if ${lt_cv_path_mainfest_tool+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 lt_cv_path_mainfest_tool=no 9615 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9616 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9617 cat conftest.err >&5 9618 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9619 lt_cv_path_mainfest_tool=yes 9620 fi 9621 rm -f conftest* 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9624$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9625if test yes != "$lt_cv_path_mainfest_tool"; then 9626 MANIFEST_TOOL=: 9627fi 9628 9629 9630 9631 9632 9633 9634 case $host_os in 9635 rhapsody* | darwin*) 9636 if test -n "$ac_tool_prefix"; then 9637 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9638set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9640$as_echo_n "checking for $ac_word... " >&6; } 9641if ${ac_cv_prog_DSYMUTIL+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 if test -n "$DSYMUTIL"; then 9645 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9646else 9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9648for as_dir in $PATH 9649do 9650 IFS=$as_save_IFS 9651 test -z "$as_dir" && as_dir=. 9652 for ac_exec_ext in '' $ac_executable_extensions; do 9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9654 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9656 break 2 9657 fi 9658done 9659 done 9660IFS=$as_save_IFS 9661 9662fi 9663fi 9664DSYMUTIL=$ac_cv_prog_DSYMUTIL 9665if test -n "$DSYMUTIL"; then 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9667$as_echo "$DSYMUTIL" >&6; } 9668else 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9670$as_echo "no" >&6; } 9671fi 9672 9673 9674fi 9675if test -z "$ac_cv_prog_DSYMUTIL"; then 9676 ac_ct_DSYMUTIL=$DSYMUTIL 9677 # Extract the first word of "dsymutil", so it can be a program name with args. 9678set dummy dsymutil; ac_word=$2 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9680$as_echo_n "checking for $ac_word... " >&6; } 9681if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9682 $as_echo_n "(cached) " >&6 9683else 9684 if test -n "$ac_ct_DSYMUTIL"; then 9685 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9686else 9687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9688for as_dir in $PATH 9689do 9690 IFS=$as_save_IFS 9691 test -z "$as_dir" && as_dir=. 9692 for ac_exec_ext in '' $ac_executable_extensions; do 9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9694 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9696 break 2 9697 fi 9698done 9699 done 9700IFS=$as_save_IFS 9701 9702fi 9703fi 9704ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9705if test -n "$ac_ct_DSYMUTIL"; then 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9707$as_echo "$ac_ct_DSYMUTIL" >&6; } 9708else 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9710$as_echo "no" >&6; } 9711fi 9712 9713 if test "x$ac_ct_DSYMUTIL" = x; then 9714 DSYMUTIL=":" 9715 else 9716 case $cross_compiling:$ac_tool_warned in 9717yes:) 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9720ac_tool_warned=yes ;; 9721esac 9722 DSYMUTIL=$ac_ct_DSYMUTIL 9723 fi 9724else 9725 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9726fi 9727 9728 if test -n "$ac_tool_prefix"; then 9729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9730set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9732$as_echo_n "checking for $ac_word... " >&6; } 9733if ${ac_cv_prog_NMEDIT+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 if test -n "$NMEDIT"; then 9737 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9738else 9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9740for as_dir in $PATH 9741do 9742 IFS=$as_save_IFS 9743 test -z "$as_dir" && as_dir=. 9744 for ac_exec_ext in '' $ac_executable_extensions; do 9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9746 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9748 break 2 9749 fi 9750done 9751 done 9752IFS=$as_save_IFS 9753 9754fi 9755fi 9756NMEDIT=$ac_cv_prog_NMEDIT 9757if test -n "$NMEDIT"; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9759$as_echo "$NMEDIT" >&6; } 9760else 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9762$as_echo "no" >&6; } 9763fi 9764 9765 9766fi 9767if test -z "$ac_cv_prog_NMEDIT"; then 9768 ac_ct_NMEDIT=$NMEDIT 9769 # Extract the first word of "nmedit", so it can be a program name with args. 9770set dummy nmedit; ac_word=$2 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9772$as_echo_n "checking for $ac_word... " >&6; } 9773if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 if test -n "$ac_ct_NMEDIT"; then 9777 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9778else 9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9780for as_dir in $PATH 9781do 9782 IFS=$as_save_IFS 9783 test -z "$as_dir" && as_dir=. 9784 for ac_exec_ext in '' $ac_executable_extensions; do 9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9786 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9788 break 2 9789 fi 9790done 9791 done 9792IFS=$as_save_IFS 9793 9794fi 9795fi 9796ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9797if test -n "$ac_ct_NMEDIT"; then 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9799$as_echo "$ac_ct_NMEDIT" >&6; } 9800else 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9802$as_echo "no" >&6; } 9803fi 9804 9805 if test "x$ac_ct_NMEDIT" = x; then 9806 NMEDIT=":" 9807 else 9808 case $cross_compiling:$ac_tool_warned in 9809yes:) 9810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9812ac_tool_warned=yes ;; 9813esac 9814 NMEDIT=$ac_ct_NMEDIT 9815 fi 9816else 9817 NMEDIT="$ac_cv_prog_NMEDIT" 9818fi 9819 9820 if test -n "$ac_tool_prefix"; then 9821 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9822set dummy ${ac_tool_prefix}lipo; ac_word=$2 9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9824$as_echo_n "checking for $ac_word... " >&6; } 9825if ${ac_cv_prog_LIPO+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 if test -n "$LIPO"; then 9829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9830else 9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9832for as_dir in $PATH 9833do 9834 IFS=$as_save_IFS 9835 test -z "$as_dir" && as_dir=. 9836 for ac_exec_ext in '' $ac_executable_extensions; do 9837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9838 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9840 break 2 9841 fi 9842done 9843 done 9844IFS=$as_save_IFS 9845 9846fi 9847fi 9848LIPO=$ac_cv_prog_LIPO 9849if test -n "$LIPO"; then 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9851$as_echo "$LIPO" >&6; } 9852else 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9854$as_echo "no" >&6; } 9855fi 9856 9857 9858fi 9859if test -z "$ac_cv_prog_LIPO"; then 9860 ac_ct_LIPO=$LIPO 9861 # Extract the first word of "lipo", so it can be a program name with args. 9862set dummy lipo; ac_word=$2 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9864$as_echo_n "checking for $ac_word... " >&6; } 9865if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 if test -n "$ac_ct_LIPO"; then 9869 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9870else 9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9872for as_dir in $PATH 9873do 9874 IFS=$as_save_IFS 9875 test -z "$as_dir" && as_dir=. 9876 for ac_exec_ext in '' $ac_executable_extensions; do 9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9878 ac_cv_prog_ac_ct_LIPO="lipo" 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9880 break 2 9881 fi 9882done 9883 done 9884IFS=$as_save_IFS 9885 9886fi 9887fi 9888ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9889if test -n "$ac_ct_LIPO"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9891$as_echo "$ac_ct_LIPO" >&6; } 9892else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894$as_echo "no" >&6; } 9895fi 9896 9897 if test "x$ac_ct_LIPO" = x; then 9898 LIPO=":" 9899 else 9900 case $cross_compiling:$ac_tool_warned in 9901yes:) 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9904ac_tool_warned=yes ;; 9905esac 9906 LIPO=$ac_ct_LIPO 9907 fi 9908else 9909 LIPO="$ac_cv_prog_LIPO" 9910fi 9911 9912 if test -n "$ac_tool_prefix"; then 9913 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9914set dummy ${ac_tool_prefix}otool; ac_word=$2 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9916$as_echo_n "checking for $ac_word... " >&6; } 9917if ${ac_cv_prog_OTOOL+:} false; then : 9918 $as_echo_n "(cached) " >&6 9919else 9920 if test -n "$OTOOL"; then 9921 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9922else 9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9924for as_dir in $PATH 9925do 9926 IFS=$as_save_IFS 9927 test -z "$as_dir" && as_dir=. 9928 for ac_exec_ext in '' $ac_executable_extensions; do 9929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9930 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9932 break 2 9933 fi 9934done 9935 done 9936IFS=$as_save_IFS 9937 9938fi 9939fi 9940OTOOL=$ac_cv_prog_OTOOL 9941if test -n "$OTOOL"; then 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9943$as_echo "$OTOOL" >&6; } 9944else 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9946$as_echo "no" >&6; } 9947fi 9948 9949 9950fi 9951if test -z "$ac_cv_prog_OTOOL"; then 9952 ac_ct_OTOOL=$OTOOL 9953 # Extract the first word of "otool", so it can be a program name with args. 9954set dummy otool; ac_word=$2 9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9956$as_echo_n "checking for $ac_word... " >&6; } 9957if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 if test -n "$ac_ct_OTOOL"; then 9961 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9962else 9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9964for as_dir in $PATH 9965do 9966 IFS=$as_save_IFS 9967 test -z "$as_dir" && as_dir=. 9968 for ac_exec_ext in '' $ac_executable_extensions; do 9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9970 ac_cv_prog_ac_ct_OTOOL="otool" 9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9972 break 2 9973 fi 9974done 9975 done 9976IFS=$as_save_IFS 9977 9978fi 9979fi 9980ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9981if test -n "$ac_ct_OTOOL"; then 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9983$as_echo "$ac_ct_OTOOL" >&6; } 9984else 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9986$as_echo "no" >&6; } 9987fi 9988 9989 if test "x$ac_ct_OTOOL" = x; then 9990 OTOOL=":" 9991 else 9992 case $cross_compiling:$ac_tool_warned in 9993yes:) 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9996ac_tool_warned=yes ;; 9997esac 9998 OTOOL=$ac_ct_OTOOL 9999 fi 10000else 10001 OTOOL="$ac_cv_prog_OTOOL" 10002fi 10003 10004 if test -n "$ac_tool_prefix"; then 10005 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10006set dummy ${ac_tool_prefix}otool64; ac_word=$2 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10008$as_echo_n "checking for $ac_word... " >&6; } 10009if ${ac_cv_prog_OTOOL64+:} false; then : 10010 $as_echo_n "(cached) " >&6 10011else 10012 if test -n "$OTOOL64"; then 10013 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10014else 10015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10016for as_dir in $PATH 10017do 10018 IFS=$as_save_IFS 10019 test -z "$as_dir" && as_dir=. 10020 for ac_exec_ext in '' $ac_executable_extensions; do 10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10022 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10024 break 2 10025 fi 10026done 10027 done 10028IFS=$as_save_IFS 10029 10030fi 10031fi 10032OTOOL64=$ac_cv_prog_OTOOL64 10033if test -n "$OTOOL64"; then 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10035$as_echo "$OTOOL64" >&6; } 10036else 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10038$as_echo "no" >&6; } 10039fi 10040 10041 10042fi 10043if test -z "$ac_cv_prog_OTOOL64"; then 10044 ac_ct_OTOOL64=$OTOOL64 10045 # Extract the first word of "otool64", so it can be a program name with args. 10046set dummy otool64; ac_word=$2 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10048$as_echo_n "checking for $ac_word... " >&6; } 10049if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10050 $as_echo_n "(cached) " >&6 10051else 10052 if test -n "$ac_ct_OTOOL64"; then 10053 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10054else 10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10056for as_dir in $PATH 10057do 10058 IFS=$as_save_IFS 10059 test -z "$as_dir" && as_dir=. 10060 for ac_exec_ext in '' $ac_executable_extensions; do 10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10062 ac_cv_prog_ac_ct_OTOOL64="otool64" 10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10064 break 2 10065 fi 10066done 10067 done 10068IFS=$as_save_IFS 10069 10070fi 10071fi 10072ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10073if test -n "$ac_ct_OTOOL64"; then 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10075$as_echo "$ac_ct_OTOOL64" >&6; } 10076else 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078$as_echo "no" >&6; } 10079fi 10080 10081 if test "x$ac_ct_OTOOL64" = x; then 10082 OTOOL64=":" 10083 else 10084 case $cross_compiling:$ac_tool_warned in 10085yes:) 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10088ac_tool_warned=yes ;; 10089esac 10090 OTOOL64=$ac_ct_OTOOL64 10091 fi 10092else 10093 OTOOL64="$ac_cv_prog_OTOOL64" 10094fi 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10123$as_echo_n "checking for -single_module linker flag... " >&6; } 10124if ${lt_cv_apple_cc_single_mod+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126else 10127 lt_cv_apple_cc_single_mod=no 10128 if test -z "$LT_MULTI_MODULE"; then 10129 # By default we will add the -single_module flag. You can override 10130 # by either setting the environment variable LT_MULTI_MODULE 10131 # non-empty at configure time, or by adding -multi_module to the 10132 # link flags. 10133 rm -rf libconftest.dylib* 10134 echo "int foo(void){return 1;}" > conftest.c 10135 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10136-dynamiclib -Wl,-single_module conftest.c" >&5 10137 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10138 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10139 _lt_result=$? 10140 # If there is a non-empty error log, and "single_module" 10141 # appears in it, assume the flag caused a linker warning 10142 if test -s conftest.err && $GREP single_module conftest.err; then 10143 cat conftest.err >&5 10144 # Otherwise, if the output was created with a 0 exit code from 10145 # the compiler, it worked. 10146 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10147 lt_cv_apple_cc_single_mod=yes 10148 else 10149 cat conftest.err >&5 10150 fi 10151 rm -rf libconftest.dylib* 10152 rm -f conftest.* 10153 fi 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10156$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10157 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10159$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10160if ${lt_cv_ld_exported_symbols_list+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 lt_cv_ld_exported_symbols_list=no 10164 save_LDFLAGS=$LDFLAGS 10165 echo "_main" > conftest.sym 10166 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169 10170int 10171main () 10172{ 10173 10174 ; 10175 return 0; 10176} 10177_ACEOF 10178if ac_fn_c_try_link "$LINENO"; then : 10179 lt_cv_ld_exported_symbols_list=yes 10180else 10181 lt_cv_ld_exported_symbols_list=no 10182fi 10183rm -f core conftest.err conftest.$ac_objext \ 10184 conftest$ac_exeext conftest.$ac_ext 10185 LDFLAGS=$save_LDFLAGS 10186 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10189$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10190 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10192$as_echo_n "checking for -force_load linker flag... " >&6; } 10193if ${lt_cv_ld_force_load+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 lt_cv_ld_force_load=no 10197 cat > conftest.c << _LT_EOF 10198int forced_loaded() { return 2;} 10199_LT_EOF 10200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10202 echo "$AR cru libconftest.a conftest.o" >&5 10203 $AR cru libconftest.a conftest.o 2>&5 10204 echo "$RANLIB libconftest.a" >&5 10205 $RANLIB libconftest.a 2>&5 10206 cat > conftest.c << _LT_EOF 10207int main() { return 0;} 10208_LT_EOF 10209 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10210 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10211 _lt_result=$? 10212 if test -s conftest.err && $GREP force_load conftest.err; then 10213 cat conftest.err >&5 10214 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10215 lt_cv_ld_force_load=yes 10216 else 10217 cat conftest.err >&5 10218 fi 10219 rm -f conftest.err libconftest.a conftest conftest.c 10220 rm -rf conftest.dSYM 10221 10222fi 10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10224$as_echo "$lt_cv_ld_force_load" >&6; } 10225 case $host_os in 10226 rhapsody* | darwin1.[012]) 10227 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10228 darwin1.*) 10229 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10230 darwin*) # darwin 5.x on 10231 # if running on 10.5 or later, the deployment target defaults 10232 # to the OS version, if on x86, and 10.4, the deployment 10233 # target defaults to 10.4. Don't you love it? 10234 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10235 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10236 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10237 10.[012][,.]*) 10238 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10239 10.*) 10240 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10241 esac 10242 ;; 10243 esac 10244 if test yes = "$lt_cv_apple_cc_single_mod"; then 10245 _lt_dar_single_mod='$single_module' 10246 fi 10247 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10248 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10249 else 10250 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10251 fi 10252 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10253 _lt_dsymutil='~$DSYMUTIL $lib || :' 10254 else 10255 _lt_dsymutil= 10256 fi 10257 ;; 10258 esac 10259 10260# func_munge_path_list VARIABLE PATH 10261# ----------------------------------- 10262# VARIABLE is name of variable containing _space_ separated list of 10263# directories to be munged by the contents of PATH, which is string 10264# having a format: 10265# "DIR[:DIR]:" 10266# string "DIR[ DIR]" will be prepended to VARIABLE 10267# ":DIR[:DIR]" 10268# string "DIR[ DIR]" will be appended to VARIABLE 10269# "DIRP[:DIRP]::[DIRA:]DIRA" 10270# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10271# "DIRA[ DIRA]" will be appended to VARIABLE 10272# "DIR[:DIR]" 10273# VARIABLE will be replaced by "DIR[ DIR]" 10274func_munge_path_list () 10275{ 10276 case x$2 in 10277 x) 10278 ;; 10279 *:) 10280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10281 ;; 10282 x:*) 10283 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10284 ;; 10285 *::*) 10286 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10287 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10288 ;; 10289 *) 10290 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10291 ;; 10292 esac 10293} 10294 10295for ac_header in dlfcn.h 10296do : 10297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10298" 10299if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10300 cat >>confdefs.h <<_ACEOF 10301#define HAVE_DLFCN_H 1 10302_ACEOF 10303 10304fi 10305 10306done 10307 10308 10309 10310 10311 10312# Set options 10313 10314 10315 10316 enable_dlopen=no 10317 10318 10319 enable_win32_dll=no 10320 10321 10322 10323 # Check whether --enable-static was given. 10324if test "${enable_static+set}" = set; then : 10325 enableval=$enable_static; p=${PACKAGE-default} 10326 case $enableval in 10327 yes) enable_static=yes ;; 10328 no) enable_static=no ;; 10329 *) 10330 enable_static=no 10331 # Look at the argument we got. We use all the common list separators. 10332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10333 for pkg in $enableval; do 10334 IFS=$lt_save_ifs 10335 if test "X$pkg" = "X$p"; then 10336 enable_static=yes 10337 fi 10338 done 10339 IFS=$lt_save_ifs 10340 ;; 10341 esac 10342else 10343 enable_static=yes 10344fi 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355# Check whether --with-pic was given. 10356if test "${with_pic+set}" = set; then : 10357 withval=$with_pic; lt_p=${PACKAGE-default} 10358 case $withval in 10359 yes|no) pic_mode=$withval ;; 10360 *) 10361 pic_mode=default 10362 # Look at the argument we got. We use all the common list separators. 10363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10364 for lt_pkg in $withval; do 10365 IFS=$lt_save_ifs 10366 if test "X$lt_pkg" = "X$lt_p"; then 10367 pic_mode=yes 10368 fi 10369 done 10370 IFS=$lt_save_ifs 10371 ;; 10372 esac 10373else 10374 pic_mode=default 10375fi 10376 10377 10378 10379 10380 10381 10382 10383 10384 # Check whether --enable-fast-install was given. 10385if test "${enable_fast_install+set}" = set; then : 10386 enableval=$enable_fast_install; p=${PACKAGE-default} 10387 case $enableval in 10388 yes) enable_fast_install=yes ;; 10389 no) enable_fast_install=no ;; 10390 *) 10391 enable_fast_install=no 10392 # Look at the argument we got. We use all the common list separators. 10393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10394 for pkg in $enableval; do 10395 IFS=$lt_save_ifs 10396 if test "X$pkg" = "X$p"; then 10397 enable_fast_install=yes 10398 fi 10399 done 10400 IFS=$lt_save_ifs 10401 ;; 10402 esac 10403else 10404 enable_fast_install=yes 10405fi 10406 10407 10408 10409 10410 10411 10412 10413 10414 shared_archive_member_spec= 10415case $host,$enable_shared in 10416power*-*-aix[5-9]*,yes) 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10418$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10419 10420# Check whether --with-aix-soname was given. 10421if test "${with_aix_soname+set}" = set; then : 10422 withval=$with_aix_soname; case $withval in 10423 aix|svr4|both) 10424 ;; 10425 *) 10426 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10427 ;; 10428 esac 10429 lt_cv_with_aix_soname=$with_aix_soname 10430else 10431 if ${lt_cv_with_aix_soname+:} false; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 lt_cv_with_aix_soname=aix 10435fi 10436 10437 with_aix_soname=$lt_cv_with_aix_soname 10438fi 10439 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10441$as_echo "$with_aix_soname" >&6; } 10442 if test aix != "$with_aix_soname"; then 10443 # For the AIX way of multilib, we name the shared archive member 10444 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10445 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10446 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10447 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10448 if test 64 = "${OBJECT_MODE-32}"; then 10449 shared_archive_member_spec=shr_64 10450 else 10451 shared_archive_member_spec=shr 10452 fi 10453 fi 10454 ;; 10455*) 10456 with_aix_soname=aix 10457 ;; 10458esac 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469# This can be used to rebuild libtool when needed 10470LIBTOOL_DEPS=$ltmain 10471 10472# Always use our own libtool. 10473LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504test -z "$LN_S" && LN_S="ln -s" 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519if test -n "${ZSH_VERSION+set}"; then 10520 setopt NO_GLOB_SUBST 10521fi 10522 10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10524$as_echo_n "checking for objdir... " >&6; } 10525if ${lt_cv_objdir+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 rm -f .libs 2>/dev/null 10529mkdir .libs 2>/dev/null 10530if test -d .libs; then 10531 lt_cv_objdir=.libs 10532else 10533 # MS-DOS does not allow filenames that begin with a dot. 10534 lt_cv_objdir=_libs 10535fi 10536rmdir .libs 2>/dev/null 10537fi 10538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10539$as_echo "$lt_cv_objdir" >&6; } 10540objdir=$lt_cv_objdir 10541 10542 10543 10544 10545 10546cat >>confdefs.h <<_ACEOF 10547#define LT_OBJDIR "$lt_cv_objdir/" 10548_ACEOF 10549 10550 10551 10552 10553case $host_os in 10554aix3*) 10555 # AIX sometimes has problems with the GCC collect2 program. For some 10556 # reason, if we set the COLLECT_NAMES environment variable, the problems 10557 # vanish in a puff of smoke. 10558 if test set != "${COLLECT_NAMES+set}"; then 10559 COLLECT_NAMES= 10560 export COLLECT_NAMES 10561 fi 10562 ;; 10563esac 10564 10565# Global variables: 10566ofile=libtool 10567can_build_shared=yes 10568 10569# All known linkers require a '.a' archive for static linking (except MSVC, 10570# which needs '.lib'). 10571libext=a 10572 10573with_gnu_ld=$lt_cv_prog_gnu_ld 10574 10575old_CC=$CC 10576old_CFLAGS=$CFLAGS 10577 10578# Set sane defaults for various variables 10579test -z "$CC" && CC=cc 10580test -z "$LTCC" && LTCC=$CC 10581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10582test -z "$LD" && LD=ld 10583test -z "$ac_objext" && ac_objext=o 10584 10585func_cc_basename $compiler 10586cc_basename=$func_cc_basename_result 10587 10588 10589# Only perform the check for file, if the check method requires it 10590test -z "$MAGIC_CMD" && MAGIC_CMD=file 10591case $deplibs_check_method in 10592file_magic*) 10593 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10595$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10596if ${lt_cv_path_MAGIC_CMD+:} false; then : 10597 $as_echo_n "(cached) " >&6 10598else 10599 case $MAGIC_CMD in 10600[\\/*] | ?:[\\/]*) 10601 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10602 ;; 10603*) 10604 lt_save_MAGIC_CMD=$MAGIC_CMD 10605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10606 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10607 for ac_dir in $ac_dummy; do 10608 IFS=$lt_save_ifs 10609 test -z "$ac_dir" && ac_dir=. 10610 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10611 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10612 if test -n "$file_magic_test_file"; then 10613 case $deplibs_check_method in 10614 "file_magic "*) 10615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10616 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10618 $EGREP "$file_magic_regex" > /dev/null; then 10619 : 10620 else 10621 cat <<_LT_EOF 1>&2 10622 10623*** Warning: the command libtool uses to detect shared libraries, 10624*** $file_magic_cmd, produces output that libtool cannot recognize. 10625*** The result is that libtool may fail to recognize shared libraries 10626*** as such. This will affect the creation of libtool libraries that 10627*** depend on shared libraries, but programs linked with such libtool 10628*** libraries will work regardless of this problem. Nevertheless, you 10629*** may want to report the problem to your system manager and/or to 10630*** bug-libtool@gnu.org 10631 10632_LT_EOF 10633 fi ;; 10634 esac 10635 fi 10636 break 10637 fi 10638 done 10639 IFS=$lt_save_ifs 10640 MAGIC_CMD=$lt_save_MAGIC_CMD 10641 ;; 10642esac 10643fi 10644 10645MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10646if test -n "$MAGIC_CMD"; then 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10648$as_echo "$MAGIC_CMD" >&6; } 10649else 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10651$as_echo "no" >&6; } 10652fi 10653 10654 10655 10656 10657 10658if test -z "$lt_cv_path_MAGIC_CMD"; then 10659 if test -n "$ac_tool_prefix"; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10661$as_echo_n "checking for file... " >&6; } 10662if ${lt_cv_path_MAGIC_CMD+:} false; then : 10663 $as_echo_n "(cached) " >&6 10664else 10665 case $MAGIC_CMD in 10666[\\/*] | ?:[\\/]*) 10667 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10668 ;; 10669*) 10670 lt_save_MAGIC_CMD=$MAGIC_CMD 10671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10673 for ac_dir in $ac_dummy; do 10674 IFS=$lt_save_ifs 10675 test -z "$ac_dir" && ac_dir=. 10676 if test -f "$ac_dir/file"; then 10677 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10678 if test -n "$file_magic_test_file"; then 10679 case $deplibs_check_method in 10680 "file_magic "*) 10681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10682 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10684 $EGREP "$file_magic_regex" > /dev/null; then 10685 : 10686 else 10687 cat <<_LT_EOF 1>&2 10688 10689*** Warning: the command libtool uses to detect shared libraries, 10690*** $file_magic_cmd, produces output that libtool cannot recognize. 10691*** The result is that libtool may fail to recognize shared libraries 10692*** as such. This will affect the creation of libtool libraries that 10693*** depend on shared libraries, but programs linked with such libtool 10694*** libraries will work regardless of this problem. Nevertheless, you 10695*** may want to report the problem to your system manager and/or to 10696*** bug-libtool@gnu.org 10697 10698_LT_EOF 10699 fi ;; 10700 esac 10701 fi 10702 break 10703 fi 10704 done 10705 IFS=$lt_save_ifs 10706 MAGIC_CMD=$lt_save_MAGIC_CMD 10707 ;; 10708esac 10709fi 10710 10711MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10712if test -n "$MAGIC_CMD"; then 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10714$as_echo "$MAGIC_CMD" >&6; } 10715else 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10717$as_echo "no" >&6; } 10718fi 10719 10720 10721 else 10722 MAGIC_CMD=: 10723 fi 10724fi 10725 10726 fi 10727 ;; 10728esac 10729 10730# Use C for the default configuration in the libtool script 10731 10732lt_save_CC=$CC 10733ac_ext=c 10734ac_cpp='$CPP $CPPFLAGS' 10735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10737ac_compiler_gnu=$ac_cv_c_compiler_gnu 10738 10739 10740# Source file extension for C test sources. 10741ac_ext=c 10742 10743# Object file extension for compiled C test sources. 10744objext=o 10745objext=$objext 10746 10747# Code to be used in simple compile tests 10748lt_simple_compile_test_code="int some_variable = 0;" 10749 10750# Code to be used in simple link tests 10751lt_simple_link_test_code='int main(){return(0);}' 10752 10753 10754 10755 10756 10757 10758 10759# If no C compiler was specified, use CC. 10760LTCC=${LTCC-"$CC"} 10761 10762# If no C compiler flags were specified, use CFLAGS. 10763LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10764 10765# Allow CC to be a program name with arguments. 10766compiler=$CC 10767 10768# Save the default compiler, since it gets overwritten when the other 10769# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10770compiler_DEFAULT=$CC 10771 10772# save warnings/boilerplate of simple test code 10773ac_outfile=conftest.$ac_objext 10774echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10776_lt_compiler_boilerplate=`cat conftest.err` 10777$RM conftest* 10778 10779ac_outfile=conftest.$ac_objext 10780echo "$lt_simple_link_test_code" >conftest.$ac_ext 10781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10782_lt_linker_boilerplate=`cat conftest.err` 10783$RM -r conftest* 10784 10785 10786## CAVEAT EMPTOR: 10787## There is no encapsulation within the following macros, do not change 10788## the running order or otherwise move them around unless you know exactly 10789## what you are doing... 10790if test -n "$compiler"; then 10791 10792lt_prog_compiler_no_builtin_flag= 10793 10794if test yes = "$GCC"; then 10795 case $cc_basename in 10796 nvcc*) 10797 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10798 *) 10799 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10800 esac 10801 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10803$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10804if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10805 $as_echo_n "(cached) " >&6 10806else 10807 lt_cv_prog_compiler_rtti_exceptions=no 10808 ac_outfile=conftest.$ac_objext 10809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10810 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10811 # Insert the option either (1) after the last *FLAGS variable, or 10812 # (2) before a word containing "conftest.", or (3) at the end. 10813 # Note that $ac_compile itself does not contain backslashes and begins 10814 # with a dollar sign (not a hyphen), so the echo should work correctly. 10815 # The option is referenced via a variable to avoid confusing sed. 10816 lt_compile=`echo "$ac_compile" | $SED \ 10817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10819 -e 's:$: $lt_compiler_flag:'` 10820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10821 (eval "$lt_compile" 2>conftest.err) 10822 ac_status=$? 10823 cat conftest.err >&5 10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10825 if (exit $ac_status) && test -s "$ac_outfile"; then 10826 # The compiler can only warn and ignore the option if not recognized 10827 # So say no if there are warnings other than the usual output. 10828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10831 lt_cv_prog_compiler_rtti_exceptions=yes 10832 fi 10833 fi 10834 $RM conftest* 10835 10836fi 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10838$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10839 10840if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10842else 10843 : 10844fi 10845 10846fi 10847 10848 10849 10850 10851 10852 10853 lt_prog_compiler_wl= 10854lt_prog_compiler_pic= 10855lt_prog_compiler_static= 10856 10857 10858 if test yes = "$GCC"; then 10859 lt_prog_compiler_wl='-Wl,' 10860 lt_prog_compiler_static='-static' 10861 10862 case $host_os in 10863 aix*) 10864 # All AIX code is PIC. 10865 if test ia64 = "$host_cpu"; then 10866 # AIX 5 now supports IA64 processor 10867 lt_prog_compiler_static='-Bstatic' 10868 fi 10869 lt_prog_compiler_pic='-fPIC' 10870 ;; 10871 10872 amigaos*) 10873 case $host_cpu in 10874 powerpc) 10875 # see comment about AmigaOS4 .so support 10876 lt_prog_compiler_pic='-fPIC' 10877 ;; 10878 m68k) 10879 # FIXME: we need at least 68020 code to build shared libraries, but 10880 # adding the '-m68020' flag to GCC prevents building anything better, 10881 # like '-m68040'. 10882 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10883 ;; 10884 esac 10885 ;; 10886 10887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10888 # PIC is the default for these OSes. 10889 ;; 10890 10891 mingw* | cygwin* | pw32* | os2* | cegcc*) 10892 # This hack is so that the source file can tell whether it is being 10893 # built for inclusion in a dll (and should export symbols for example). 10894 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10895 # (--disable-auto-import) libraries 10896 lt_prog_compiler_pic='-DDLL_EXPORT' 10897 case $host_os in 10898 os2*) 10899 lt_prog_compiler_static='$wl-static' 10900 ;; 10901 esac 10902 ;; 10903 10904 darwin* | rhapsody*) 10905 # PIC is the default on this platform 10906 # Common symbols not allowed in MH_DYLIB files 10907 lt_prog_compiler_pic='-fno-common' 10908 ;; 10909 10910 haiku*) 10911 # PIC is the default for Haiku. 10912 # The "-static" flag exists, but is broken. 10913 lt_prog_compiler_static= 10914 ;; 10915 10916 hpux*) 10917 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10918 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10919 # sets the default TLS model and affects inlining. 10920 case $host_cpu in 10921 hppa*64*) 10922 # +Z the default 10923 ;; 10924 *) 10925 lt_prog_compiler_pic='-fPIC' 10926 ;; 10927 esac 10928 ;; 10929 10930 interix[3-9]*) 10931 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10932 # Instead, we relocate shared libraries at runtime. 10933 ;; 10934 10935 msdosdjgpp*) 10936 # Just because we use GCC doesn't mean we suddenly get shared libraries 10937 # on systems that don't support them. 10938 lt_prog_compiler_can_build_shared=no 10939 enable_shared=no 10940 ;; 10941 10942 *nto* | *qnx*) 10943 # QNX uses GNU C++, but need to define -shared option too, otherwise 10944 # it will coredump. 10945 lt_prog_compiler_pic='-fPIC -shared' 10946 ;; 10947 10948 sysv4*MP*) 10949 if test -d /usr/nec; then 10950 lt_prog_compiler_pic=-Kconform_pic 10951 fi 10952 ;; 10953 10954 *) 10955 lt_prog_compiler_pic='-fPIC' 10956 ;; 10957 esac 10958 10959 case $cc_basename in 10960 nvcc*) # Cuda Compiler Driver 2.2 10961 lt_prog_compiler_wl='-Xlinker ' 10962 if test -n "$lt_prog_compiler_pic"; then 10963 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10964 fi 10965 ;; 10966 esac 10967 else 10968 # PORTME Check for flag to pass linker flags through the system compiler. 10969 case $host_os in 10970 aix*) 10971 lt_prog_compiler_wl='-Wl,' 10972 if test ia64 = "$host_cpu"; then 10973 # AIX 5 now supports IA64 processor 10974 lt_prog_compiler_static='-Bstatic' 10975 else 10976 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10977 fi 10978 ;; 10979 10980 darwin* | rhapsody*) 10981 # PIC is the default on this platform 10982 # Common symbols not allowed in MH_DYLIB files 10983 lt_prog_compiler_pic='-fno-common' 10984 case $cc_basename in 10985 nagfor*) 10986 # NAG Fortran compiler 10987 lt_prog_compiler_wl='-Wl,-Wl,,' 10988 lt_prog_compiler_pic='-PIC' 10989 lt_prog_compiler_static='-Bstatic' 10990 ;; 10991 esac 10992 ;; 10993 10994 mingw* | cygwin* | pw32* | os2* | cegcc*) 10995 # This hack is so that the source file can tell whether it is being 10996 # built for inclusion in a dll (and should export symbols for example). 10997 lt_prog_compiler_pic='-DDLL_EXPORT' 10998 case $host_os in 10999 os2*) 11000 lt_prog_compiler_static='$wl-static' 11001 ;; 11002 esac 11003 ;; 11004 11005 hpux9* | hpux10* | hpux11*) 11006 lt_prog_compiler_wl='-Wl,' 11007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11008 # not for PA HP-UX. 11009 case $host_cpu in 11010 hppa*64*|ia64*) 11011 # +Z the default 11012 ;; 11013 *) 11014 lt_prog_compiler_pic='+Z' 11015 ;; 11016 esac 11017 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11018 lt_prog_compiler_static='$wl-a ${wl}archive' 11019 ;; 11020 11021 irix5* | irix6* | nonstopux*) 11022 lt_prog_compiler_wl='-Wl,' 11023 # PIC (with -KPIC) is the default. 11024 lt_prog_compiler_static='-non_shared' 11025 ;; 11026 11027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11028 case $cc_basename in 11029 # old Intel for x86_64, which still supported -KPIC. 11030 ecc*) 11031 lt_prog_compiler_wl='-Wl,' 11032 lt_prog_compiler_pic='-KPIC' 11033 lt_prog_compiler_static='-static' 11034 ;; 11035 # icc used to be incompatible with GCC. 11036 # ICC 10 doesn't accept -KPIC any more. 11037 icc* | ifort*) 11038 lt_prog_compiler_wl='-Wl,' 11039 lt_prog_compiler_pic='-fPIC' 11040 lt_prog_compiler_static='-static' 11041 ;; 11042 # Lahey Fortran 8.1. 11043 lf95*) 11044 lt_prog_compiler_wl='-Wl,' 11045 lt_prog_compiler_pic='--shared' 11046 lt_prog_compiler_static='--static' 11047 ;; 11048 nagfor*) 11049 # NAG Fortran compiler 11050 lt_prog_compiler_wl='-Wl,-Wl,,' 11051 lt_prog_compiler_pic='-PIC' 11052 lt_prog_compiler_static='-Bstatic' 11053 ;; 11054 tcc*) 11055 # Fabrice Bellard et al's Tiny C Compiler 11056 lt_prog_compiler_wl='-Wl,' 11057 lt_prog_compiler_pic='-fPIC' 11058 lt_prog_compiler_static='-static' 11059 ;; 11060 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11061 # Portland Group compilers (*not* the Pentium gcc compiler, 11062 # which looks to be a dead project) 11063 lt_prog_compiler_wl='-Wl,' 11064 lt_prog_compiler_pic='-fpic' 11065 lt_prog_compiler_static='-Bstatic' 11066 ;; 11067 ccc*) 11068 lt_prog_compiler_wl='-Wl,' 11069 # All Alpha code is PIC. 11070 lt_prog_compiler_static='-non_shared' 11071 ;; 11072 xl* | bgxl* | bgf* | mpixl*) 11073 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11074 lt_prog_compiler_wl='-Wl,' 11075 lt_prog_compiler_pic='-qpic' 11076 lt_prog_compiler_static='-qstaticlink' 11077 ;; 11078 *) 11079 case `$CC -V 2>&1 | sed 5q` in 11080 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11081 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11082 lt_prog_compiler_pic='-KPIC' 11083 lt_prog_compiler_static='-Bstatic' 11084 lt_prog_compiler_wl='' 11085 ;; 11086 *Sun\ F* | *Sun*Fortran*) 11087 lt_prog_compiler_pic='-KPIC' 11088 lt_prog_compiler_static='-Bstatic' 11089 lt_prog_compiler_wl='-Qoption ld ' 11090 ;; 11091 *Sun\ C*) 11092 # Sun C 5.9 11093 lt_prog_compiler_pic='-KPIC' 11094 lt_prog_compiler_static='-Bstatic' 11095 lt_prog_compiler_wl='-Wl,' 11096 ;; 11097 *Intel*\ [CF]*Compiler*) 11098 lt_prog_compiler_wl='-Wl,' 11099 lt_prog_compiler_pic='-fPIC' 11100 lt_prog_compiler_static='-static' 11101 ;; 11102 *Portland\ Group*) 11103 lt_prog_compiler_wl='-Wl,' 11104 lt_prog_compiler_pic='-fpic' 11105 lt_prog_compiler_static='-Bstatic' 11106 ;; 11107 esac 11108 ;; 11109 esac 11110 ;; 11111 11112 newsos6) 11113 lt_prog_compiler_pic='-KPIC' 11114 lt_prog_compiler_static='-Bstatic' 11115 ;; 11116 11117 *nto* | *qnx*) 11118 # QNX uses GNU C++, but need to define -shared option too, otherwise 11119 # it will coredump. 11120 lt_prog_compiler_pic='-fPIC -shared' 11121 ;; 11122 11123 osf3* | osf4* | osf5*) 11124 lt_prog_compiler_wl='-Wl,' 11125 # All OSF/1 code is PIC. 11126 lt_prog_compiler_static='-non_shared' 11127 ;; 11128 11129 rdos*) 11130 lt_prog_compiler_static='-non_shared' 11131 ;; 11132 11133 solaris*) 11134 lt_prog_compiler_pic='-KPIC' 11135 lt_prog_compiler_static='-Bstatic' 11136 case $cc_basename in 11137 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11138 lt_prog_compiler_wl='-Qoption ld ';; 11139 *) 11140 lt_prog_compiler_wl='-Wl,';; 11141 esac 11142 ;; 11143 11144 sunos4*) 11145 lt_prog_compiler_wl='-Qoption ld ' 11146 lt_prog_compiler_pic='-PIC' 11147 lt_prog_compiler_static='-Bstatic' 11148 ;; 11149 11150 sysv4 | sysv4.2uw2* | sysv4.3*) 11151 lt_prog_compiler_wl='-Wl,' 11152 lt_prog_compiler_pic='-KPIC' 11153 lt_prog_compiler_static='-Bstatic' 11154 ;; 11155 11156 sysv4*MP*) 11157 if test -d /usr/nec; then 11158 lt_prog_compiler_pic='-Kconform_pic' 11159 lt_prog_compiler_static='-Bstatic' 11160 fi 11161 ;; 11162 11163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11164 lt_prog_compiler_wl='-Wl,' 11165 lt_prog_compiler_pic='-KPIC' 11166 lt_prog_compiler_static='-Bstatic' 11167 ;; 11168 11169 unicos*) 11170 lt_prog_compiler_wl='-Wl,' 11171 lt_prog_compiler_can_build_shared=no 11172 ;; 11173 11174 uts4*) 11175 lt_prog_compiler_pic='-pic' 11176 lt_prog_compiler_static='-Bstatic' 11177 ;; 11178 11179 *) 11180 lt_prog_compiler_can_build_shared=no 11181 ;; 11182 esac 11183 fi 11184 11185case $host_os in 11186 # For platforms that do not support PIC, -DPIC is meaningless: 11187 *djgpp*) 11188 lt_prog_compiler_pic= 11189 ;; 11190 *) 11191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11192 ;; 11193esac 11194 11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11196$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11197if ${lt_cv_prog_compiler_pic+:} false; then : 11198 $as_echo_n "(cached) " >&6 11199else 11200 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11201fi 11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11203$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11204lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11205 11206# 11207# Check to make sure the PIC flag actually works. 11208# 11209if test -n "$lt_prog_compiler_pic"; then 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11211$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11212if ${lt_cv_prog_compiler_pic_works+:} false; then : 11213 $as_echo_n "(cached) " >&6 11214else 11215 lt_cv_prog_compiler_pic_works=no 11216 ac_outfile=conftest.$ac_objext 11217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11218 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11219 # Insert the option either (1) after the last *FLAGS variable, or 11220 # (2) before a word containing "conftest.", or (3) at the end. 11221 # Note that $ac_compile itself does not contain backslashes and begins 11222 # with a dollar sign (not a hyphen), so the echo should work correctly. 11223 # The option is referenced via a variable to avoid confusing sed. 11224 lt_compile=`echo "$ac_compile" | $SED \ 11225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11227 -e 's:$: $lt_compiler_flag:'` 11228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11229 (eval "$lt_compile" 2>conftest.err) 11230 ac_status=$? 11231 cat conftest.err >&5 11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11233 if (exit $ac_status) && test -s "$ac_outfile"; then 11234 # The compiler can only warn and ignore the option if not recognized 11235 # So say no if there are warnings other than the usual output. 11236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11239 lt_cv_prog_compiler_pic_works=yes 11240 fi 11241 fi 11242 $RM conftest* 11243 11244fi 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11246$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11247 11248if test yes = "$lt_cv_prog_compiler_pic_works"; then 11249 case $lt_prog_compiler_pic in 11250 "" | " "*) ;; 11251 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11252 esac 11253else 11254 lt_prog_compiler_pic= 11255 lt_prog_compiler_can_build_shared=no 11256fi 11257 11258fi 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270# 11271# Check to make sure the static flag actually works. 11272# 11273wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11275$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11276if ${lt_cv_prog_compiler_static_works+:} false; then : 11277 $as_echo_n "(cached) " >&6 11278else 11279 lt_cv_prog_compiler_static_works=no 11280 save_LDFLAGS=$LDFLAGS 11281 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11282 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11284 # The linker can only warn and ignore the option if not recognized 11285 # So say no if there are warnings 11286 if test -s conftest.err; then 11287 # Append any errors to the config.log. 11288 cat conftest.err 1>&5 11289 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11291 if diff conftest.exp conftest.er2 >/dev/null; then 11292 lt_cv_prog_compiler_static_works=yes 11293 fi 11294 else 11295 lt_cv_prog_compiler_static_works=yes 11296 fi 11297 fi 11298 $RM -r conftest* 11299 LDFLAGS=$save_LDFLAGS 11300 11301fi 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11303$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11304 11305if test yes = "$lt_cv_prog_compiler_static_works"; then 11306 : 11307else 11308 lt_prog_compiler_static= 11309fi 11310 11311 11312 11313 11314 11315 11316 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11318$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11319if ${lt_cv_prog_compiler_c_o+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 lt_cv_prog_compiler_c_o=no 11323 $RM -r conftest 2>/dev/null 11324 mkdir conftest 11325 cd conftest 11326 mkdir out 11327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11328 11329 lt_compiler_flag="-o out/conftest2.$ac_objext" 11330 # Insert the option either (1) after the last *FLAGS variable, or 11331 # (2) before a word containing "conftest.", or (3) at the end. 11332 # Note that $ac_compile itself does not contain backslashes and begins 11333 # with a dollar sign (not a hyphen), so the echo should work correctly. 11334 lt_compile=`echo "$ac_compile" | $SED \ 11335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11337 -e 's:$: $lt_compiler_flag:'` 11338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11339 (eval "$lt_compile" 2>out/conftest.err) 11340 ac_status=$? 11341 cat out/conftest.err >&5 11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11343 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11344 then 11345 # The compiler can only warn and ignore the option if not recognized 11346 # So say no if there are warnings 11347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11350 lt_cv_prog_compiler_c_o=yes 11351 fi 11352 fi 11353 chmod u+w . 2>&5 11354 $RM conftest* 11355 # SGI C++ compiler will create directory out/ii_files/ for 11356 # template instantiation 11357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11358 $RM out/* && rmdir out 11359 cd .. 11360 $RM -r conftest 11361 $RM conftest* 11362 11363fi 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11365$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11366 11367 11368 11369 11370 11371 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11374if ${lt_cv_prog_compiler_c_o+:} false; then : 11375 $as_echo_n "(cached) " >&6 11376else 11377 lt_cv_prog_compiler_c_o=no 11378 $RM -r conftest 2>/dev/null 11379 mkdir conftest 11380 cd conftest 11381 mkdir out 11382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11383 11384 lt_compiler_flag="-o out/conftest2.$ac_objext" 11385 # Insert the option either (1) after the last *FLAGS variable, or 11386 # (2) before a word containing "conftest.", or (3) at the end. 11387 # Note that $ac_compile itself does not contain backslashes and begins 11388 # with a dollar sign (not a hyphen), so the echo should work correctly. 11389 lt_compile=`echo "$ac_compile" | $SED \ 11390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11392 -e 's:$: $lt_compiler_flag:'` 11393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11394 (eval "$lt_compile" 2>out/conftest.err) 11395 ac_status=$? 11396 cat out/conftest.err >&5 11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11399 then 11400 # The compiler can only warn and ignore the option if not recognized 11401 # So say no if there are warnings 11402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11405 lt_cv_prog_compiler_c_o=yes 11406 fi 11407 fi 11408 chmod u+w . 2>&5 11409 $RM conftest* 11410 # SGI C++ compiler will create directory out/ii_files/ for 11411 # template instantiation 11412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11413 $RM out/* && rmdir out 11414 cd .. 11415 $RM -r conftest 11416 $RM conftest* 11417 11418fi 11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11420$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11421 11422 11423 11424 11425hard_links=nottested 11426if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11427 # do not overwrite the value of need_locks provided by the user 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11429$as_echo_n "checking if we can lock with hard links... " >&6; } 11430 hard_links=yes 11431 $RM conftest* 11432 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11433 touch conftest.a 11434 ln conftest.a conftest.b 2>&5 || hard_links=no 11435 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11437$as_echo "$hard_links" >&6; } 11438 if test no = "$hard_links"; then 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11440$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11441 need_locks=warn 11442 fi 11443else 11444 need_locks=no 11445fi 11446 11447 11448 11449 11450 11451 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11453$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11454 11455 runpath_var= 11456 allow_undefined_flag= 11457 always_export_symbols=no 11458 archive_cmds= 11459 archive_expsym_cmds= 11460 compiler_needs_object=no 11461 enable_shared_with_static_runtimes=no 11462 export_dynamic_flag_spec= 11463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11464 hardcode_automatic=no 11465 hardcode_direct=no 11466 hardcode_direct_absolute=no 11467 hardcode_libdir_flag_spec= 11468 hardcode_libdir_separator= 11469 hardcode_minus_L=no 11470 hardcode_shlibpath_var=unsupported 11471 inherit_rpath=no 11472 link_all_deplibs=unknown 11473 module_cmds= 11474 module_expsym_cmds= 11475 old_archive_from_new_cmds= 11476 old_archive_from_expsyms_cmds= 11477 thread_safe_flag_spec= 11478 whole_archive_flag_spec= 11479 # include_expsyms should be a list of space-separated symbols to be *always* 11480 # included in the symbol list 11481 include_expsyms= 11482 # exclude_expsyms can be an extended regexp of symbols to exclude 11483 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11484 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11485 # as well as any symbol that contains 'd'. 11486 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11488 # platforms (ab)use it in PIC code, but their linkers get confused if 11489 # the symbol is explicitly referenced. Since portable code cannot 11490 # rely on this symbol name, it's probably fine to never include it in 11491 # preloaded symbol tables. 11492 # Exclude shared library initialization/finalization symbols. 11493 extract_expsyms_cmds= 11494 11495 case $host_os in 11496 cygwin* | mingw* | pw32* | cegcc*) 11497 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11498 # When not using gcc, we currently assume that we are using 11499 # Microsoft Visual C++. 11500 if test yes != "$GCC"; then 11501 with_gnu_ld=no 11502 fi 11503 ;; 11504 interix*) 11505 # we just hope/assume this is gcc and not c89 (= MSVC++) 11506 with_gnu_ld=yes 11507 ;; 11508 openbsd* | bitrig*) 11509 with_gnu_ld=no 11510 ;; 11511 esac 11512 11513 ld_shlibs=yes 11514 11515 # On some targets, GNU ld is compatible enough with the native linker 11516 # that we're better off using the native interface for both. 11517 lt_use_gnu_ld_interface=no 11518 if test yes = "$with_gnu_ld"; then 11519 case $host_os in 11520 aix*) 11521 # The AIX port of GNU ld has always aspired to compatibility 11522 # with the native linker. However, as the warning in the GNU ld 11523 # block says, versions before 2.19.5* couldn't really create working 11524 # shared libraries, regardless of the interface used. 11525 case `$LD -v 2>&1` in 11526 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11527 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11528 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11529 *) 11530 lt_use_gnu_ld_interface=yes 11531 ;; 11532 esac 11533 ;; 11534 *) 11535 lt_use_gnu_ld_interface=yes 11536 ;; 11537 esac 11538 fi 11539 11540 if test yes = "$lt_use_gnu_ld_interface"; then 11541 # If archive_cmds runs LD, not CC, wlarc should be empty 11542 wlarc='$wl' 11543 11544 # Set some defaults for GNU ld with shared library support. These 11545 # are reset later if shared libraries are not supported. Putting them 11546 # here allows them to be overridden if necessary. 11547 runpath_var=LD_RUN_PATH 11548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11549 export_dynamic_flag_spec='$wl--export-dynamic' 11550 # ancient GNU ld didn't support --whole-archive et. al. 11551 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11552 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11553 else 11554 whole_archive_flag_spec= 11555 fi 11556 supports_anon_versioning=no 11557 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11558 *GNU\ gold*) supports_anon_versioning=yes ;; 11559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11562 *\ 2.11.*) ;; # other 2.11 versions 11563 *) supports_anon_versioning=yes ;; 11564 esac 11565 11566 # See if GNU ld supports shared libraries. 11567 case $host_os in 11568 aix[3-9]*) 11569 # On AIX/PPC, the GNU linker is very broken 11570 if test ia64 != "$host_cpu"; then 11571 ld_shlibs=no 11572 cat <<_LT_EOF 1>&2 11573 11574*** Warning: the GNU linker, at least up to release 2.19, is reported 11575*** to be unable to reliably create shared libraries on AIX. 11576*** Therefore, libtool is disabling shared libraries support. If you 11577*** really care for shared libraries, you may want to install binutils 11578*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11579*** You will then need to restart the configuration process. 11580 11581_LT_EOF 11582 fi 11583 ;; 11584 11585 amigaos*) 11586 case $host_cpu in 11587 powerpc) 11588 # see comment about AmigaOS4 .so support 11589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11590 archive_expsym_cmds='' 11591 ;; 11592 m68k) 11593 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)' 11594 hardcode_libdir_flag_spec='-L$libdir' 11595 hardcode_minus_L=yes 11596 ;; 11597 esac 11598 ;; 11599 11600 beos*) 11601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11602 allow_undefined_flag=unsupported 11603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11604 # support --undefined. This deserves some investigation. FIXME 11605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11606 else 11607 ld_shlibs=no 11608 fi 11609 ;; 11610 11611 cygwin* | mingw* | pw32* | cegcc*) 11612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11613 # as there is no search path for DLLs. 11614 hardcode_libdir_flag_spec='-L$libdir' 11615 export_dynamic_flag_spec='$wl--export-all-symbols' 11616 allow_undefined_flag=unsupported 11617 always_export_symbols=no 11618 enable_shared_with_static_runtimes=yes 11619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 11620 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11621 11622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11624 # If the export-symbols file already is a .def file, use it as 11625 # is; otherwise, prepend EXPORTS... 11626 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11627 cp $export_symbols $output_objdir/$soname.def; 11628 else 11629 echo EXPORTS > $output_objdir/$soname.def; 11630 cat $export_symbols >> $output_objdir/$soname.def; 11631 fi~ 11632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11633 else 11634 ld_shlibs=no 11635 fi 11636 ;; 11637 11638 haiku*) 11639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11640 link_all_deplibs=yes 11641 ;; 11642 11643 os2*) 11644 hardcode_libdir_flag_spec='-L$libdir' 11645 hardcode_minus_L=yes 11646 allow_undefined_flag=unsupported 11647 shrext_cmds=.dll 11648 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11649 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11650 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11651 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11652 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11653 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11654 emximp -o $lib $output_objdir/$libname.def' 11655 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11658 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11659 prefix_cmds="$SED"~ 11660 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11661 prefix_cmds="$prefix_cmds -e 1d"; 11662 fi~ 11663 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11664 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11666 emximp -o $lib $output_objdir/$libname.def' 11667 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11668 enable_shared_with_static_runtimes=yes 11669 ;; 11670 11671 interix[3-9]*) 11672 hardcode_direct=no 11673 hardcode_shlibpath_var=no 11674 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11675 export_dynamic_flag_spec='$wl-E' 11676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11677 # Instead, shared libraries are loaded at an image base (0x10000000 by 11678 # default) and relocated if they conflict, which is a slow very memory 11679 # consuming and fragmenting process. To avoid this, we pick a random, 11680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11681 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11683 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11684 ;; 11685 11686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11687 tmp_diet=no 11688 if test linux-dietlibc = "$host_os"; then 11689 case $cc_basename in 11690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11691 esac 11692 fi 11693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11694 && test no = "$tmp_diet" 11695 then 11696 tmp_addflag=' $pic_flag' 11697 tmp_sharedflag='-shared' 11698 case $cc_basename,$host_cpu in 11699 pgcc*) # Portland Group C compiler 11700 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11701 tmp_addflag=' $pic_flag' 11702 ;; 11703 pgf77* | pgf90* | pgf95* | pgfortran*) 11704 # Portland Group f77 and f90 compilers 11705 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11706 tmp_addflag=' $pic_flag -Mnomain' ;; 11707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11708 tmp_addflag=' -i_dynamic' ;; 11709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11710 tmp_addflag=' -i_dynamic -nofor_main' ;; 11711 ifc* | ifort*) # Intel Fortran compiler 11712 tmp_addflag=' -nofor_main' ;; 11713 lf95*) # Lahey Fortran 8.1 11714 whole_archive_flag_spec= 11715 tmp_sharedflag='--shared' ;; 11716 nagfor*) # NAGFOR 5.3 11717 tmp_sharedflag='-Wl,-shared' ;; 11718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11719 tmp_sharedflag='-qmkshrobj' 11720 tmp_addflag= ;; 11721 nvcc*) # Cuda Compiler Driver 2.2 11722 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11723 compiler_needs_object=yes 11724 ;; 11725 esac 11726 case `$CC -V 2>&1 | sed 5q` in 11727 *Sun\ C*) # Sun C 5.9 11728 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11729 compiler_needs_object=yes 11730 tmp_sharedflag='-G' ;; 11731 *Sun\ F*) # Sun Fortran 8.3 11732 tmp_sharedflag='-G' ;; 11733 esac 11734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11735 11736 if test yes = "$supports_anon_versioning"; then 11737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11739 echo "local: *; };" >> $output_objdir/$libname.ver~ 11740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11741 fi 11742 11743 case $cc_basename in 11744 tcc*) 11745 export_dynamic_flag_spec='-rdynamic' 11746 ;; 11747 xlf* | bgf* | bgxlf* | mpixlf*) 11748 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11749 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11751 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11752 if test yes = "$supports_anon_versioning"; then 11753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11755 echo "local: *; };" >> $output_objdir/$libname.ver~ 11756 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11757 fi 11758 ;; 11759 esac 11760 else 11761 ld_shlibs=no 11762 fi 11763 ;; 11764 11765 netbsd*) 11766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11768 wlarc= 11769 else 11770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11772 fi 11773 ;; 11774 11775 solaris*) 11776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11777 ld_shlibs=no 11778 cat <<_LT_EOF 1>&2 11779 11780*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11781*** create shared libraries on Solaris systems. Therefore, libtool 11782*** is disabling shared libraries support. We urge you to upgrade GNU 11783*** binutils to release 2.9.1 or newer. Another option is to modify 11784*** your PATH or compiler configuration so that the native linker is 11785*** used, and then restart. 11786 11787_LT_EOF 11788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11791 else 11792 ld_shlibs=no 11793 fi 11794 ;; 11795 11796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11797 case `$LD -v 2>&1` in 11798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11799 ld_shlibs=no 11800 cat <<_LT_EOF 1>&2 11801 11802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11803*** reliably create shared libraries on SCO systems. Therefore, libtool 11804*** is disabling shared libraries support. We urge you to upgrade GNU 11805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11806*** your PATH or compiler configuration so that the native linker is 11807*** used, and then restart. 11808 11809_LT_EOF 11810 ;; 11811 *) 11812 # For security reasons, it is highly recommended that you always 11813 # use absolute paths for naming shared libraries, and exclude the 11814 # DT_RUNPATH tag from executables and libraries. But doing so 11815 # requires that you compile everything twice, which is a pain. 11816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11820 else 11821 ld_shlibs=no 11822 fi 11823 ;; 11824 esac 11825 ;; 11826 11827 sunos4*) 11828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11829 wlarc= 11830 hardcode_direct=yes 11831 hardcode_shlibpath_var=no 11832 ;; 11833 11834 *) 11835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11838 else 11839 ld_shlibs=no 11840 fi 11841 ;; 11842 esac 11843 11844 if test no = "$ld_shlibs"; then 11845 runpath_var= 11846 hardcode_libdir_flag_spec= 11847 export_dynamic_flag_spec= 11848 whole_archive_flag_spec= 11849 fi 11850 else 11851 # PORTME fill in a description of your system's linker (not GNU ld) 11852 case $host_os in 11853 aix3*) 11854 allow_undefined_flag=unsupported 11855 always_export_symbols=yes 11856 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' 11857 # Note: this linker hardcodes the directories in LIBPATH if there 11858 # are no directories specified by -L. 11859 hardcode_minus_L=yes 11860 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11861 # Neither direct hardcoding nor static linking is supported with a 11862 # broken collect2. 11863 hardcode_direct=unsupported 11864 fi 11865 ;; 11866 11867 aix[4-9]*) 11868 if test ia64 = "$host_cpu"; then 11869 # On IA64, the linker does run time linking by default, so we don't 11870 # have to do anything special. 11871 aix_use_runtimelinking=no 11872 exp_sym_flag='-Bexport' 11873 no_entry_flag= 11874 else 11875 # If we're using GNU nm, then we don't want the "-C" option. 11876 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11877 # Without the "-l" option, or with the "-B" option, AIX nm treats 11878 # weak defined symbols like other global defined symbols, whereas 11879 # GNU nm marks them as "W". 11880 # While the 'weak' keyword is ignored in the Export File, we need 11881 # it in the Import File for the 'aix-soname' feature, so we have 11882 # to replace the "-B" option with "-P" for AIX nm. 11883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11884 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11885 else 11886 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11887 fi 11888 aix_use_runtimelinking=no 11889 11890 # Test if we are trying to use run time linking or normal 11891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11892 # have runtime linking enabled, and use it for executables. 11893 # For shared libraries, we enable/disable runtime linking 11894 # depending on the kind of the shared library created - 11895 # when "with_aix_soname,aix_use_runtimelinking" is: 11896 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11897 # "aix,yes" lib.so shared, rtl:yes, for executables 11898 # lib.a static archive 11899 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11900 # lib.a(lib.so.V) shared, rtl:no, for executables 11901 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11902 # lib.a(lib.so.V) shared, rtl:no 11903 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11904 # lib.a static archive 11905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11906 for ld_flag in $LDFLAGS; do 11907 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11908 aix_use_runtimelinking=yes 11909 break 11910 fi 11911 done 11912 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11913 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11914 # so we don't have lib.a shared libs to link our executables. 11915 # We have to force runtime linking in this case. 11916 aix_use_runtimelinking=yes 11917 LDFLAGS="$LDFLAGS -Wl,-brtl" 11918 fi 11919 ;; 11920 esac 11921 11922 exp_sym_flag='-bexport' 11923 no_entry_flag='-bnoentry' 11924 fi 11925 11926 # When large executables or shared objects are built, AIX ld can 11927 # have problems creating the table of contents. If linking a library 11928 # or program results in "error TOC overflow" add -mminimal-toc to 11929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11931 11932 archive_cmds='' 11933 hardcode_direct=yes 11934 hardcode_direct_absolute=yes 11935 hardcode_libdir_separator=':' 11936 link_all_deplibs=yes 11937 file_list_spec='$wl-f,' 11938 case $with_aix_soname,$aix_use_runtimelinking in 11939 aix,*) ;; # traditional, no import file 11940 svr4,* | *,yes) # use import file 11941 # The Import File defines what to hardcode. 11942 hardcode_direct=no 11943 hardcode_direct_absolute=no 11944 ;; 11945 esac 11946 11947 if test yes = "$GCC"; then 11948 case $host_os in aix4.[012]|aix4.[012].*) 11949 # We only want to do this on AIX 4.2 and lower, the check 11950 # below for broken collect2 doesn't work under 4.3+ 11951 collect2name=`$CC -print-prog-name=collect2` 11952 if test -f "$collect2name" && 11953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11954 then 11955 # We have reworked collect2 11956 : 11957 else 11958 # We have old collect2 11959 hardcode_direct=unsupported 11960 # It fails to find uninstalled libraries when the uninstalled 11961 # path is not listed in the libpath. Setting hardcode_minus_L 11962 # to unsupported forces relinking 11963 hardcode_minus_L=yes 11964 hardcode_libdir_flag_spec='-L$libdir' 11965 hardcode_libdir_separator= 11966 fi 11967 ;; 11968 esac 11969 shared_flag='-shared' 11970 if test yes = "$aix_use_runtimelinking"; then 11971 shared_flag="$shared_flag "'$wl-G' 11972 fi 11973 # Need to ensure runtime linking is disabled for the traditional 11974 # shared library, or the linker may eventually find shared libraries 11975 # /with/ Import File - we do not want to mix them. 11976 shared_flag_aix='-shared' 11977 shared_flag_svr4='-shared $wl-G' 11978 else 11979 # not using gcc 11980 if test ia64 = "$host_cpu"; then 11981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11982 # chokes on -Wl,-G. The following line is correct: 11983 shared_flag='-G' 11984 else 11985 if test yes = "$aix_use_runtimelinking"; then 11986 shared_flag='$wl-G' 11987 else 11988 shared_flag='$wl-bM:SRE' 11989 fi 11990 shared_flag_aix='$wl-bM:SRE' 11991 shared_flag_svr4='$wl-G' 11992 fi 11993 fi 11994 11995 export_dynamic_flag_spec='$wl-bexpall' 11996 # It seems that -bexpall does not export symbols beginning with 11997 # underscore (_), so it is better to generate a list of symbols to export. 11998 always_export_symbols=yes 11999 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12000 # Warning - without using the other runtime loading flags (-brtl), 12001 # -berok will link without error, but may produce a broken library. 12002 allow_undefined_flag='-berok' 12003 # Determine the default libpath from the value encoded in an 12004 # empty executable. 12005 if test set = "${lt_cv_aix_libpath+set}"; then 12006 aix_libpath=$lt_cv_aix_libpath 12007else 12008 if ${lt_cv_aix_libpath_+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010else 12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012/* end confdefs.h. */ 12013 12014int 12015main () 12016{ 12017 12018 ; 12019 return 0; 12020} 12021_ACEOF 12022if ac_fn_c_try_link "$LINENO"; then : 12023 12024 lt_aix_libpath_sed=' 12025 /Import File Strings/,/^$/ { 12026 /^0/ { 12027 s/^0 *\([^ ]*\) *$/\1/ 12028 p 12029 } 12030 }' 12031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12032 # Check for a 64-bit object if we didn't find anything. 12033 if test -z "$lt_cv_aix_libpath_"; then 12034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12035 fi 12036fi 12037rm -f core conftest.err conftest.$ac_objext \ 12038 conftest$ac_exeext conftest.$ac_ext 12039 if test -z "$lt_cv_aix_libpath_"; then 12040 lt_cv_aix_libpath_=/usr/lib:/lib 12041 fi 12042 12043fi 12044 12045 aix_libpath=$lt_cv_aix_libpath_ 12046fi 12047 12048 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12049 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12050 else 12051 if test ia64 = "$host_cpu"; then 12052 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12053 allow_undefined_flag="-z nodefs" 12054 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 12055 else 12056 # Determine the default libpath from the value encoded in an 12057 # empty executable. 12058 if test set = "${lt_cv_aix_libpath+set}"; then 12059 aix_libpath=$lt_cv_aix_libpath 12060else 12061 if ${lt_cv_aix_libpath_+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066 12067int 12068main () 12069{ 12070 12071 ; 12072 return 0; 12073} 12074_ACEOF 12075if ac_fn_c_try_link "$LINENO"; then : 12076 12077 lt_aix_libpath_sed=' 12078 /Import File Strings/,/^$/ { 12079 /^0/ { 12080 s/^0 *\([^ ]*\) *$/\1/ 12081 p 12082 } 12083 }' 12084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12085 # Check for a 64-bit object if we didn't find anything. 12086 if test -z "$lt_cv_aix_libpath_"; then 12087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12088 fi 12089fi 12090rm -f core conftest.err conftest.$ac_objext \ 12091 conftest$ac_exeext conftest.$ac_ext 12092 if test -z "$lt_cv_aix_libpath_"; then 12093 lt_cv_aix_libpath_=/usr/lib:/lib 12094 fi 12095 12096fi 12097 12098 aix_libpath=$lt_cv_aix_libpath_ 12099fi 12100 12101 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12102 # Warning - without using the other run time loading flags, 12103 # -berok will link without error, but may produce a broken library. 12104 no_undefined_flag=' $wl-bernotok' 12105 allow_undefined_flag=' $wl-berok' 12106 if test yes = "$with_gnu_ld"; then 12107 # We only use this code for GNU lds that support --whole-archive. 12108 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12109 else 12110 # Exported symbols can be pulled into shared objects from archives 12111 whole_archive_flag_spec='$convenience' 12112 fi 12113 archive_cmds_need_lc=yes 12114 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12115 # -brtl affects multiple linker settings, -berok does not and is overridden later 12116 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12117 if test svr4 != "$with_aix_soname"; then 12118 # This is similar to how AIX traditionally builds its shared libraries. 12119 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12120 fi 12121 if test aix != "$with_aix_soname"; then 12122 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12123 else 12124 # used by -dlpreopen to get the symbols 12125 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12126 fi 12127 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12128 fi 12129 fi 12130 ;; 12131 12132 amigaos*) 12133 case $host_cpu in 12134 powerpc) 12135 # see comment about AmigaOS4 .so support 12136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12137 archive_expsym_cmds='' 12138 ;; 12139 m68k) 12140 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)' 12141 hardcode_libdir_flag_spec='-L$libdir' 12142 hardcode_minus_L=yes 12143 ;; 12144 esac 12145 ;; 12146 12147 bsdi[45]*) 12148 export_dynamic_flag_spec=-rdynamic 12149 ;; 12150 12151 cygwin* | mingw* | pw32* | cegcc*) 12152 # When not using gcc, we currently assume that we are using 12153 # Microsoft Visual C++. 12154 # hardcode_libdir_flag_spec is actually meaningless, as there is 12155 # no search path for DLLs. 12156 case $cc_basename in 12157 cl*) 12158 # Native MSVC 12159 hardcode_libdir_flag_spec=' ' 12160 allow_undefined_flag=unsupported 12161 always_export_symbols=yes 12162 file_list_spec='@' 12163 # Tell ltmain to make .lib files, not .a files. 12164 libext=lib 12165 # Tell ltmain to make .dll files, not .so files. 12166 shrext_cmds=.dll 12167 # FIXME: Setting linknames here is a bad hack. 12168 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12169 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12170 cp "$export_symbols" "$output_objdir/$soname.def"; 12171 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12172 else 12173 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12174 fi~ 12175 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12176 linknames=' 12177 # The linker will not automatically build a static lib if we build a DLL. 12178 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12179 enable_shared_with_static_runtimes=yes 12180 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12182 # Don't use ranlib 12183 old_postinstall_cmds='chmod 644 $oldlib' 12184 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12185 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12186 case $lt_outputfile in 12187 *.exe|*.EXE) ;; 12188 *) 12189 lt_outputfile=$lt_outputfile.exe 12190 lt_tool_outputfile=$lt_tool_outputfile.exe 12191 ;; 12192 esac~ 12193 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12195 $RM "$lt_outputfile.manifest"; 12196 fi' 12197 ;; 12198 *) 12199 # Assume MSVC wrapper 12200 hardcode_libdir_flag_spec=' ' 12201 allow_undefined_flag=unsupported 12202 # Tell ltmain to make .lib files, not .a files. 12203 libext=lib 12204 # Tell ltmain to make .dll files, not .so files. 12205 shrext_cmds=.dll 12206 # FIXME: Setting linknames here is a bad hack. 12207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12208 # The linker will automatically build a .lib file if we build a DLL. 12209 old_archive_from_new_cmds='true' 12210 # FIXME: Should let the user specify the lib program. 12211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12212 enable_shared_with_static_runtimes=yes 12213 ;; 12214 esac 12215 ;; 12216 12217 darwin* | rhapsody*) 12218 12219 12220 archive_cmds_need_lc=no 12221 hardcode_direct=no 12222 hardcode_automatic=yes 12223 hardcode_shlibpath_var=unsupported 12224 if test yes = "$lt_cv_ld_force_load"; then 12225 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12226 12227 else 12228 whole_archive_flag_spec='' 12229 fi 12230 link_all_deplibs=yes 12231 allow_undefined_flag=$_lt_dar_allow_undefined 12232 case $cc_basename in 12233 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12234 *) _lt_dar_can_shared=$GCC ;; 12235 esac 12236 if test yes = "$_lt_dar_can_shared"; then 12237 output_verbose_link_cmd=func_echo_all 12238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12240 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 12241 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 12242 12243 else 12244 ld_shlibs=no 12245 fi 12246 12247 ;; 12248 12249 dgux*) 12250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12251 hardcode_libdir_flag_spec='-L$libdir' 12252 hardcode_shlibpath_var=no 12253 ;; 12254 12255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12256 # support. Future versions do this automatically, but an explicit c++rt0.o 12257 # does not break anything, and helps significantly (at the cost of a little 12258 # extra space). 12259 freebsd2.2*) 12260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12261 hardcode_libdir_flag_spec='-R$libdir' 12262 hardcode_direct=yes 12263 hardcode_shlibpath_var=no 12264 ;; 12265 12266 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12267 freebsd2.*) 12268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12269 hardcode_direct=yes 12270 hardcode_minus_L=yes 12271 hardcode_shlibpath_var=no 12272 ;; 12273 12274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12275 freebsd* | dragonfly*) 12276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12277 hardcode_libdir_flag_spec='-R$libdir' 12278 hardcode_direct=yes 12279 hardcode_shlibpath_var=no 12280 ;; 12281 12282 hpux9*) 12283 if test yes = "$GCC"; then 12284 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12285 else 12286 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12287 fi 12288 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12289 hardcode_libdir_separator=: 12290 hardcode_direct=yes 12291 12292 # hardcode_minus_L: Not really in the search PATH, 12293 # but as the default location of the library. 12294 hardcode_minus_L=yes 12295 export_dynamic_flag_spec='$wl-E' 12296 ;; 12297 12298 hpux10*) 12299 if test yes,no = "$GCC,$with_gnu_ld"; then 12300 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12301 else 12302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12303 fi 12304 if test no = "$with_gnu_ld"; then 12305 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12306 hardcode_libdir_separator=: 12307 hardcode_direct=yes 12308 hardcode_direct_absolute=yes 12309 export_dynamic_flag_spec='$wl-E' 12310 # hardcode_minus_L: Not really in the search PATH, 12311 # but as the default location of the library. 12312 hardcode_minus_L=yes 12313 fi 12314 ;; 12315 12316 hpux11*) 12317 if test yes,no = "$GCC,$with_gnu_ld"; then 12318 case $host_cpu in 12319 hppa*64*) 12320 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12321 ;; 12322 ia64*) 12323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12324 ;; 12325 *) 12326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12327 ;; 12328 esac 12329 else 12330 case $host_cpu in 12331 hppa*64*) 12332 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12333 ;; 12334 ia64*) 12335 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12336 ;; 12337 *) 12338 12339 # Older versions of the 11.00 compiler do not understand -b yet 12340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12342$as_echo_n "checking if $CC understands -b... " >&6; } 12343if ${lt_cv_prog_compiler__b+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 lt_cv_prog_compiler__b=no 12347 save_LDFLAGS=$LDFLAGS 12348 LDFLAGS="$LDFLAGS -b" 12349 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12351 # The linker can only warn and ignore the option if not recognized 12352 # So say no if there are warnings 12353 if test -s conftest.err; then 12354 # Append any errors to the config.log. 12355 cat conftest.err 1>&5 12356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12358 if diff conftest.exp conftest.er2 >/dev/null; then 12359 lt_cv_prog_compiler__b=yes 12360 fi 12361 else 12362 lt_cv_prog_compiler__b=yes 12363 fi 12364 fi 12365 $RM -r conftest* 12366 LDFLAGS=$save_LDFLAGS 12367 12368fi 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12370$as_echo "$lt_cv_prog_compiler__b" >&6; } 12371 12372if test yes = "$lt_cv_prog_compiler__b"; then 12373 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12374else 12375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12376fi 12377 12378 ;; 12379 esac 12380 fi 12381 if test no = "$with_gnu_ld"; then 12382 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12383 hardcode_libdir_separator=: 12384 12385 case $host_cpu in 12386 hppa*64*|ia64*) 12387 hardcode_direct=no 12388 hardcode_shlibpath_var=no 12389 ;; 12390 *) 12391 hardcode_direct=yes 12392 hardcode_direct_absolute=yes 12393 export_dynamic_flag_spec='$wl-E' 12394 12395 # hardcode_minus_L: Not really in the search PATH, 12396 # but as the default location of the library. 12397 hardcode_minus_L=yes 12398 ;; 12399 esac 12400 fi 12401 ;; 12402 12403 irix5* | irix6* | nonstopux*) 12404 if test yes = "$GCC"; then 12405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12406 # Try to use the -exported_symbol ld option, if it does not 12407 # work, assume that -exports_file does not work either and 12408 # implicitly export all symbols. 12409 # This should be the same for all languages, so no per-tag cache variable. 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12411$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12412if ${lt_cv_irix_exported_symbol+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 save_LDFLAGS=$LDFLAGS 12416 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12418/* end confdefs.h. */ 12419int foo (void) { return 0; } 12420_ACEOF 12421if ac_fn_c_try_link "$LINENO"; then : 12422 lt_cv_irix_exported_symbol=yes 12423else 12424 lt_cv_irix_exported_symbol=no 12425fi 12426rm -f core conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428 LDFLAGS=$save_LDFLAGS 12429fi 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12431$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12432 if test yes = "$lt_cv_irix_exported_symbol"; then 12433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 12434 fi 12435 else 12436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 12438 fi 12439 archive_cmds_need_lc='no' 12440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12441 hardcode_libdir_separator=: 12442 inherit_rpath=yes 12443 link_all_deplibs=yes 12444 ;; 12445 12446 linux*) 12447 case $cc_basename in 12448 tcc*) 12449 # Fabrice Bellard et al's Tiny C Compiler 12450 ld_shlibs=yes 12451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12452 ;; 12453 esac 12454 ;; 12455 12456 netbsd*) 12457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12459 else 12460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12461 fi 12462 hardcode_libdir_flag_spec='-R$libdir' 12463 hardcode_direct=yes 12464 hardcode_shlibpath_var=no 12465 ;; 12466 12467 newsos6) 12468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12469 hardcode_direct=yes 12470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12471 hardcode_libdir_separator=: 12472 hardcode_shlibpath_var=no 12473 ;; 12474 12475 *nto* | *qnx*) 12476 ;; 12477 12478 openbsd* | bitrig*) 12479 if test -f /usr/libexec/ld.so; then 12480 hardcode_direct=yes 12481 hardcode_shlibpath_var=no 12482 hardcode_direct_absolute=yes 12483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12486 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12487 export_dynamic_flag_spec='$wl-E' 12488 else 12489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12490 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12491 fi 12492 else 12493 ld_shlibs=no 12494 fi 12495 ;; 12496 12497 os2*) 12498 hardcode_libdir_flag_spec='-L$libdir' 12499 hardcode_minus_L=yes 12500 allow_undefined_flag=unsupported 12501 shrext_cmds=.dll 12502 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12505 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12506 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12507 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12508 emximp -o $lib $output_objdir/$libname.def' 12509 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12512 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12513 prefix_cmds="$SED"~ 12514 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12515 prefix_cmds="$prefix_cmds -e 1d"; 12516 fi~ 12517 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12518 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12520 emximp -o $lib $output_objdir/$libname.def' 12521 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12522 enable_shared_with_static_runtimes=yes 12523 ;; 12524 12525 osf3*) 12526 if test yes = "$GCC"; then 12527 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12528 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12529 else 12530 allow_undefined_flag=' -expect_unresolved \*' 12531 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12532 fi 12533 archive_cmds_need_lc='no' 12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12535 hardcode_libdir_separator=: 12536 ;; 12537 12538 osf4* | osf5*) # as osf3* with the addition of -msym flag 12539 if test yes = "$GCC"; then 12540 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12541 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12542 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12543 else 12544 allow_undefined_flag=' -expect_unresolved \*' 12545 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12546 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 12547 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 12548 12549 # Both c and cxx compiler support -rpath directly 12550 hardcode_libdir_flag_spec='-rpath $libdir' 12551 fi 12552 archive_cmds_need_lc='no' 12553 hardcode_libdir_separator=: 12554 ;; 12555 12556 solaris*) 12557 no_undefined_flag=' -z defs' 12558 if test yes = "$GCC"; then 12559 wlarc='$wl' 12560 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12562 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12563 else 12564 case `$CC -V 2>&1` in 12565 *"Compilers 5.0"*) 12566 wlarc='' 12567 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12569 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12570 ;; 12571 *) 12572 wlarc='$wl' 12573 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12575 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12576 ;; 12577 esac 12578 fi 12579 hardcode_libdir_flag_spec='-R$libdir' 12580 hardcode_shlibpath_var=no 12581 case $host_os in 12582 solaris2.[0-5] | solaris2.[0-5].*) ;; 12583 *) 12584 # The compiler driver will combine and reorder linker options, 12585 # but understands '-z linker_flag'. GCC discards it without '$wl', 12586 # but is careful enough not to reorder. 12587 # Supported since Solaris 2.6 (maybe 2.5.1?) 12588 if test yes = "$GCC"; then 12589 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12590 else 12591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12592 fi 12593 ;; 12594 esac 12595 link_all_deplibs=yes 12596 ;; 12597 12598 sunos4*) 12599 if test sequent = "$host_vendor"; then 12600 # Use $CC to link under sequent, because it throws in some extra .o 12601 # files that make .init and .fini sections work. 12602 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12603 else 12604 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12605 fi 12606 hardcode_libdir_flag_spec='-L$libdir' 12607 hardcode_direct=yes 12608 hardcode_minus_L=yes 12609 hardcode_shlibpath_var=no 12610 ;; 12611 12612 sysv4) 12613 case $host_vendor in 12614 sni) 12615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12616 hardcode_direct=yes # is this really true??? 12617 ;; 12618 siemens) 12619 ## LD is ld it makes a PLAMLIB 12620 ## CC just makes a GrossModule. 12621 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12622 reload_cmds='$CC -r -o $output$reload_objs' 12623 hardcode_direct=no 12624 ;; 12625 motorola) 12626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12627 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12628 ;; 12629 esac 12630 runpath_var='LD_RUN_PATH' 12631 hardcode_shlibpath_var=no 12632 ;; 12633 12634 sysv4.3*) 12635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12636 hardcode_shlibpath_var=no 12637 export_dynamic_flag_spec='-Bexport' 12638 ;; 12639 12640 sysv4*MP*) 12641 if test -d /usr/nec; then 12642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12643 hardcode_shlibpath_var=no 12644 runpath_var=LD_RUN_PATH 12645 hardcode_runpath_var=yes 12646 ld_shlibs=yes 12647 fi 12648 ;; 12649 12650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12651 no_undefined_flag='$wl-z,text' 12652 archive_cmds_need_lc=no 12653 hardcode_shlibpath_var=no 12654 runpath_var='LD_RUN_PATH' 12655 12656 if test yes = "$GCC"; then 12657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12659 else 12660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12662 fi 12663 ;; 12664 12665 sysv5* | sco3.2v5* | sco5v6*) 12666 # Note: We CANNOT use -z defs as we might desire, because we do not 12667 # link with -lc, and that would cause any symbols used from libc to 12668 # always be unresolved, which means just about no library would 12669 # ever link correctly. If we're not using GNU ld we use -z text 12670 # though, which does catch some bad symbols but isn't as heavy-handed 12671 # as -z defs. 12672 no_undefined_flag='$wl-z,text' 12673 allow_undefined_flag='$wl-z,nodefs' 12674 archive_cmds_need_lc=no 12675 hardcode_shlibpath_var=no 12676 hardcode_libdir_flag_spec='$wl-R,$libdir' 12677 hardcode_libdir_separator=':' 12678 link_all_deplibs=yes 12679 export_dynamic_flag_spec='$wl-Bexport' 12680 runpath_var='LD_RUN_PATH' 12681 12682 if test yes = "$GCC"; then 12683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12685 else 12686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12688 fi 12689 ;; 12690 12691 uts4*) 12692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12693 hardcode_libdir_flag_spec='-L$libdir' 12694 hardcode_shlibpath_var=no 12695 ;; 12696 12697 *) 12698 ld_shlibs=no 12699 ;; 12700 esac 12701 12702 if test sni = "$host_vendor"; then 12703 case $host in 12704 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12705 export_dynamic_flag_spec='$wl-Blargedynsym' 12706 ;; 12707 esac 12708 fi 12709 fi 12710 12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12712$as_echo "$ld_shlibs" >&6; } 12713test no = "$ld_shlibs" && can_build_shared=no 12714 12715with_gnu_ld=$with_gnu_ld 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731# 12732# Do we need to explicitly link libc? 12733# 12734case "x$archive_cmds_need_lc" in 12735x|xyes) 12736 # Assume -lc should be added 12737 archive_cmds_need_lc=yes 12738 12739 if test yes,yes = "$GCC,$enable_shared"; then 12740 case $archive_cmds in 12741 *'~'*) 12742 # FIXME: we may have to deal with multi-command sequences. 12743 ;; 12744 '$CC '*) 12745 # Test whether the compiler implicitly links with -lc since on some 12746 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12747 # to ld, don't add -lc before -lgcc. 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12749$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12750if ${lt_cv_archive_cmds_need_lc+:} false; then : 12751 $as_echo_n "(cached) " >&6 12752else 12753 $RM conftest* 12754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12755 12756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12757 (eval $ac_compile) 2>&5 12758 ac_status=$? 12759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12760 test $ac_status = 0; } 2>conftest.err; then 12761 soname=conftest 12762 lib=conftest 12763 libobjs=conftest.$ac_objext 12764 deplibs= 12765 wl=$lt_prog_compiler_wl 12766 pic_flag=$lt_prog_compiler_pic 12767 compiler_flags=-v 12768 linker_flags=-v 12769 verstring= 12770 output_objdir=. 12771 libname=conftest 12772 lt_save_allow_undefined_flag=$allow_undefined_flag 12773 allow_undefined_flag= 12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12775 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12776 ac_status=$? 12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12778 test $ac_status = 0; } 12779 then 12780 lt_cv_archive_cmds_need_lc=no 12781 else 12782 lt_cv_archive_cmds_need_lc=yes 12783 fi 12784 allow_undefined_flag=$lt_save_allow_undefined_flag 12785 else 12786 cat conftest.err 1>&5 12787 fi 12788 $RM conftest* 12789 12790fi 12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12792$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12793 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12794 ;; 12795 esac 12796 fi 12797 ;; 12798esac 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12952$as_echo_n "checking dynamic linker characteristics... " >&6; } 12953 12954if test yes = "$GCC"; then 12955 case $host_os in 12956 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12957 *) lt_awk_arg='/^libraries:/' ;; 12958 esac 12959 case $host_os in 12960 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12961 *) lt_sed_strip_eq='s|=/|/|g' ;; 12962 esac 12963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12964 case $lt_search_path_spec in 12965 *\;*) 12966 # if the path contains ";" then we assume it to be the separator 12967 # otherwise default to the standard path separator (i.e. ":") - it is 12968 # assumed that no part of a normal pathname contains ";" but that should 12969 # okay in the real world where ";" in dirpaths is itself problematic. 12970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12971 ;; 12972 *) 12973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12974 ;; 12975 esac 12976 # Ok, now we have the path, separated by spaces, we can step through it 12977 # and add multilib dir if necessary... 12978 lt_tmp_lt_search_path_spec= 12979 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12980 # ...but if some path component already ends with the multilib dir we assume 12981 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12982 case "$lt_multi_os_dir; $lt_search_path_spec " in 12983 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12984 lt_multi_os_dir= 12985 ;; 12986 esac 12987 for lt_sys_path in $lt_search_path_spec; do 12988 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12990 elif test -n "$lt_multi_os_dir"; then 12991 test -d "$lt_sys_path" && \ 12992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12993 fi 12994 done 12995 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12996BEGIN {RS = " "; FS = "/|\n";} { 12997 lt_foo = ""; 12998 lt_count = 0; 12999 for (lt_i = NF; lt_i > 0; lt_i--) { 13000 if ($lt_i != "" && $lt_i != ".") { 13001 if ($lt_i == "..") { 13002 lt_count++; 13003 } else { 13004 if (lt_count == 0) { 13005 lt_foo = "/" $lt_i lt_foo; 13006 } else { 13007 lt_count--; 13008 } 13009 } 13010 } 13011 } 13012 if (lt_foo != "") { lt_freq[lt_foo]++; } 13013 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13014}'` 13015 # AWK program above erroneously prepends '/' to C:/dos/paths 13016 # for these hosts. 13017 case $host_os in 13018 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13019 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13020 esac 13021 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13022else 13023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13024fi 13025library_names_spec= 13026libname_spec='lib$name' 13027soname_spec= 13028shrext_cmds=.so 13029postinstall_cmds= 13030postuninstall_cmds= 13031finish_cmds= 13032finish_eval= 13033shlibpath_var= 13034shlibpath_overrides_runpath=unknown 13035version_type=none 13036dynamic_linker="$host_os ld.so" 13037sys_lib_dlsearch_path_spec="/lib /usr/lib" 13038need_lib_prefix=unknown 13039hardcode_into_libs=no 13040 13041# when you set need_version to no, make sure it does not cause -set_version 13042# flags to be left without arguments 13043need_version=unknown 13044 13045 13046 13047case $host_os in 13048aix3*) 13049 version_type=linux # correct to gnu/linux during the next big refactor 13050 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13051 shlibpath_var=LIBPATH 13052 13053 # AIX 3 has no versioning support, so we append a major version to the name. 13054 soname_spec='$libname$release$shared_ext$major' 13055 ;; 13056 13057aix[4-9]*) 13058 version_type=linux # correct to gnu/linux during the next big refactor 13059 need_lib_prefix=no 13060 need_version=no 13061 hardcode_into_libs=yes 13062 if test ia64 = "$host_cpu"; then 13063 # AIX 5 supports IA64 13064 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13065 shlibpath_var=LD_LIBRARY_PATH 13066 else 13067 # With GCC up to 2.95.x, collect2 would create an import file 13068 # for dependence libraries. The import file would start with 13069 # the line '#! .'. This would cause the generated library to 13070 # depend on '.', always an invalid library. This was fixed in 13071 # development snapshots of GCC prior to 3.0. 13072 case $host_os in 13073 aix4 | aix4.[01] | aix4.[01].*) 13074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13075 echo ' yes ' 13076 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13077 : 13078 else 13079 can_build_shared=no 13080 fi 13081 ;; 13082 esac 13083 # Using Import Files as archive members, it is possible to support 13084 # filename-based versioning of shared library archives on AIX. While 13085 # this would work for both with and without runtime linking, it will 13086 # prevent static linking of such archives. So we do filename-based 13087 # shared library versioning with .so extension only, which is used 13088 # when both runtime linking and shared linking is enabled. 13089 # Unfortunately, runtime linking may impact performance, so we do 13090 # not want this to be the default eventually. Also, we use the 13091 # versioned .so libs for executables only if there is the -brtl 13092 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13093 # To allow for filename-based versioning support, we need to create 13094 # libNAME.so.V as an archive file, containing: 13095 # *) an Import File, referring to the versioned filename of the 13096 # archive as well as the shared archive member, telling the 13097 # bitwidth (32 or 64) of that shared object, and providing the 13098 # list of exported symbols of that shared object, eventually 13099 # decorated with the 'weak' keyword 13100 # *) the shared object with the F_LOADONLY flag set, to really avoid 13101 # it being seen by the linker. 13102 # At run time we better use the real file rather than another symlink, 13103 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13104 13105 case $with_aix_soname,$aix_use_runtimelinking in 13106 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13107 # soname into executable. Probably we can add versioning support to 13108 # collect2, so additional links can be useful in future. 13109 aix,yes) # traditional libtool 13110 dynamic_linker='AIX unversionable lib.so' 13111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13112 # instead of lib<name>.a to let people know that these are not 13113 # typical AIX shared libraries. 13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13115 ;; 13116 aix,no) # traditional AIX only 13117 dynamic_linker='AIX lib.a(lib.so.V)' 13118 # We preserve .a as extension for shared libraries through AIX4.2 13119 # and later when we are not doing run time linking. 13120 library_names_spec='$libname$release.a $libname.a' 13121 soname_spec='$libname$release$shared_ext$major' 13122 ;; 13123 svr4,*) # full svr4 only 13124 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13125 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13126 # We do not specify a path in Import Files, so LIBPATH fires. 13127 shlibpath_overrides_runpath=yes 13128 ;; 13129 *,yes) # both, prefer svr4 13130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13132 # unpreferred sharedlib libNAME.a needs extra handling 13133 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13134 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13135 # We do not specify a path in Import Files, so LIBPATH fires. 13136 shlibpath_overrides_runpath=yes 13137 ;; 13138 *,no) # both, prefer aix 13139 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13140 library_names_spec='$libname$release.a $libname.a' 13141 soname_spec='$libname$release$shared_ext$major' 13142 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13143 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13144 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13145 ;; 13146 esac 13147 shlibpath_var=LIBPATH 13148 fi 13149 ;; 13150 13151amigaos*) 13152 case $host_cpu in 13153 powerpc) 13154 # Since July 2007 AmigaOS4 officially supports .so libraries. 13155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13157 ;; 13158 m68k) 13159 library_names_spec='$libname.ixlibrary $libname.a' 13160 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13161 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 13162 ;; 13163 esac 13164 ;; 13165 13166beos*) 13167 library_names_spec='$libname$shared_ext' 13168 dynamic_linker="$host_os ld.so" 13169 shlibpath_var=LIBRARY_PATH 13170 ;; 13171 13172bsdi[45]*) 13173 version_type=linux # correct to gnu/linux during the next big refactor 13174 need_version=no 13175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13176 soname_spec='$libname$release$shared_ext$major' 13177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13178 shlibpath_var=LD_LIBRARY_PATH 13179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13181 # the default ld.so.conf also contains /usr/contrib/lib and 13182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13183 # libtool to hard-code these into programs 13184 ;; 13185 13186cygwin* | mingw* | pw32* | cegcc*) 13187 version_type=windows 13188 shrext_cmds=.dll 13189 need_version=no 13190 need_lib_prefix=no 13191 13192 case $GCC,$cc_basename in 13193 yes,*) 13194 # gcc 13195 library_names_spec='$libname.dll.a' 13196 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13197 postinstall_cmds='base_file=`basename \$file`~ 13198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13199 dldir=$destdir/`dirname \$dlpath`~ 13200 test -d \$dldir || mkdir -p \$dldir~ 13201 $install_prog $dir/$dlname \$dldir/$dlname~ 13202 chmod a+x \$dldir/$dlname~ 13203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13205 fi' 13206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13207 dlpath=$dir/\$dldll~ 13208 $RM \$dlpath' 13209 shlibpath_overrides_runpath=yes 13210 13211 case $host_os in 13212 cygwin*) 13213 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13214 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13215 13216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13217 ;; 13218 mingw* | cegcc*) 13219 # MinGW DLLs use traditional 'lib' prefix 13220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13221 ;; 13222 pw32*) 13223 # pw32 DLLs use 'pw' prefix rather than 'lib' 13224 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13225 ;; 13226 esac 13227 dynamic_linker='Win32 ld.exe' 13228 ;; 13229 13230 *,cl*) 13231 # Native MSVC 13232 libname_spec='$name' 13233 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13234 library_names_spec='$libname.dll.lib' 13235 13236 case $build_os in 13237 mingw*) 13238 sys_lib_search_path_spec= 13239 lt_save_ifs=$IFS 13240 IFS=';' 13241 for lt_path in $LIB 13242 do 13243 IFS=$lt_save_ifs 13244 # Let DOS variable expansion print the short 8.3 style file name. 13245 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13246 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13247 done 13248 IFS=$lt_save_ifs 13249 # Convert to MSYS style. 13250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13251 ;; 13252 cygwin*) 13253 # Convert to unix form, then to dos form, then back to unix form 13254 # but this time dos style (no spaces!) so that the unix form looks 13255 # like /cygdrive/c/PROGRA~1:/cygdr... 13256 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13257 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13258 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13259 ;; 13260 *) 13261 sys_lib_search_path_spec=$LIB 13262 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13263 # It is most probably a Windows format PATH. 13264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13265 else 13266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13267 fi 13268 # FIXME: find the short name or the path components, as spaces are 13269 # common. (e.g. "Program Files" -> "PROGRA~1") 13270 ;; 13271 esac 13272 13273 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13274 postinstall_cmds='base_file=`basename \$file`~ 13275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13276 dldir=$destdir/`dirname \$dlpath`~ 13277 test -d \$dldir || mkdir -p \$dldir~ 13278 $install_prog $dir/$dlname \$dldir/$dlname' 13279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13280 dlpath=$dir/\$dldll~ 13281 $RM \$dlpath' 13282 shlibpath_overrides_runpath=yes 13283 dynamic_linker='Win32 link.exe' 13284 ;; 13285 13286 *) 13287 # Assume MSVC wrapper 13288 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13289 dynamic_linker='Win32 ld.exe' 13290 ;; 13291 esac 13292 # FIXME: first we should search . and the directory the executable is in 13293 shlibpath_var=PATH 13294 ;; 13295 13296darwin* | rhapsody*) 13297 dynamic_linker="$host_os dyld" 13298 version_type=darwin 13299 need_lib_prefix=no 13300 need_version=no 13301 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13302 soname_spec='$libname$release$major$shared_ext' 13303 shlibpath_overrides_runpath=yes 13304 shlibpath_var=DYLD_LIBRARY_PATH 13305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13306 13307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13309 ;; 13310 13311dgux*) 13312 version_type=linux # correct to gnu/linux during the next big refactor 13313 need_lib_prefix=no 13314 need_version=no 13315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13316 soname_spec='$libname$release$shared_ext$major' 13317 shlibpath_var=LD_LIBRARY_PATH 13318 ;; 13319 13320freebsd* | dragonfly*) 13321 # DragonFly does not have aout. When/if they implement a new 13322 # versioning mechanism, adjust this. 13323 if test -x /usr/bin/objformat; then 13324 objformat=`/usr/bin/objformat` 13325 else 13326 case $host_os in 13327 freebsd[23].*) objformat=aout ;; 13328 *) objformat=elf ;; 13329 esac 13330 fi 13331 version_type=freebsd-$objformat 13332 case $version_type in 13333 freebsd-elf*) 13334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13335 soname_spec='$libname$release$shared_ext$major' 13336 need_version=no 13337 need_lib_prefix=no 13338 ;; 13339 freebsd-*) 13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13341 need_version=yes 13342 ;; 13343 esac 13344 shlibpath_var=LD_LIBRARY_PATH 13345 case $host_os in 13346 freebsd2.*) 13347 shlibpath_overrides_runpath=yes 13348 ;; 13349 freebsd3.[01]* | freebsdelf3.[01]*) 13350 shlibpath_overrides_runpath=yes 13351 hardcode_into_libs=yes 13352 ;; 13353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13355 shlibpath_overrides_runpath=no 13356 hardcode_into_libs=yes 13357 ;; 13358 *) # from 4.6 on, and DragonFly 13359 shlibpath_overrides_runpath=yes 13360 hardcode_into_libs=yes 13361 ;; 13362 esac 13363 ;; 13364 13365haiku*) 13366 version_type=linux # correct to gnu/linux during the next big refactor 13367 need_lib_prefix=no 13368 need_version=no 13369 dynamic_linker="$host_os runtime_loader" 13370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13371 soname_spec='$libname$release$shared_ext$major' 13372 shlibpath_var=LIBRARY_PATH 13373 shlibpath_overrides_runpath=no 13374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13375 hardcode_into_libs=yes 13376 ;; 13377 13378hpux9* | hpux10* | hpux11*) 13379 # Give a soname corresponding to the major version so that dld.sl refuses to 13380 # link against other versions. 13381 version_type=sunos 13382 need_lib_prefix=no 13383 need_version=no 13384 case $host_cpu in 13385 ia64*) 13386 shrext_cmds='.so' 13387 hardcode_into_libs=yes 13388 dynamic_linker="$host_os dld.so" 13389 shlibpath_var=LD_LIBRARY_PATH 13390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13392 soname_spec='$libname$release$shared_ext$major' 13393 if test 32 = "$HPUX_IA64_MODE"; then 13394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13395 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13396 else 13397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13398 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13399 fi 13400 ;; 13401 hppa*64*) 13402 shrext_cmds='.sl' 13403 hardcode_into_libs=yes 13404 dynamic_linker="$host_os dld.sl" 13405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13408 soname_spec='$libname$release$shared_ext$major' 13409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13411 ;; 13412 *) 13413 shrext_cmds='.sl' 13414 dynamic_linker="$host_os dld.sl" 13415 shlibpath_var=SHLIB_PATH 13416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13418 soname_spec='$libname$release$shared_ext$major' 13419 ;; 13420 esac 13421 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13422 postinstall_cmds='chmod 555 $lib' 13423 # or fails outright, so override atomically: 13424 install_override_mode=555 13425 ;; 13426 13427interix[3-9]*) 13428 version_type=linux # correct to gnu/linux during the next big refactor 13429 need_lib_prefix=no 13430 need_version=no 13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13432 soname_spec='$libname$release$shared_ext$major' 13433 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13434 shlibpath_var=LD_LIBRARY_PATH 13435 shlibpath_overrides_runpath=no 13436 hardcode_into_libs=yes 13437 ;; 13438 13439irix5* | irix6* | nonstopux*) 13440 case $host_os in 13441 nonstopux*) version_type=nonstopux ;; 13442 *) 13443 if test yes = "$lt_cv_prog_gnu_ld"; then 13444 version_type=linux # correct to gnu/linux during the next big refactor 13445 else 13446 version_type=irix 13447 fi ;; 13448 esac 13449 need_lib_prefix=no 13450 need_version=no 13451 soname_spec='$libname$release$shared_ext$major' 13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13453 case $host_os in 13454 irix5* | nonstopux*) 13455 libsuff= shlibsuff= 13456 ;; 13457 *) 13458 case $LD in # libtool.m4 will add one of these switches to LD 13459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13460 libsuff= shlibsuff= libmagic=32-bit;; 13461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13462 libsuff=32 shlibsuff=N32 libmagic=N32;; 13463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13464 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13465 *) libsuff= shlibsuff= libmagic=never-match;; 13466 esac 13467 ;; 13468 esac 13469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13470 shlibpath_overrides_runpath=no 13471 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13472 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13473 hardcode_into_libs=yes 13474 ;; 13475 13476# No shared lib support for Linux oldld, aout, or coff. 13477linux*oldld* | linux*aout* | linux*coff*) 13478 dynamic_linker=no 13479 ;; 13480 13481linux*android*) 13482 version_type=none # Android doesn't support versioned libraries. 13483 need_lib_prefix=no 13484 need_version=no 13485 library_names_spec='$libname$release$shared_ext' 13486 soname_spec='$libname$release$shared_ext' 13487 finish_cmds= 13488 shlibpath_var=LD_LIBRARY_PATH 13489 shlibpath_overrides_runpath=yes 13490 13491 # This implies no fast_install, which is unacceptable. 13492 # Some rework will be needed to allow for fast_install 13493 # before this can be enabled. 13494 hardcode_into_libs=yes 13495 13496 dynamic_linker='Android linker' 13497 # Don't embed -rpath directories since the linker doesn't support them. 13498 hardcode_libdir_flag_spec='-L$libdir' 13499 ;; 13500 13501# This must be glibc/ELF. 13502linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13503 version_type=linux # correct to gnu/linux during the next big refactor 13504 need_lib_prefix=no 13505 need_version=no 13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13507 soname_spec='$libname$release$shared_ext$major' 13508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13509 shlibpath_var=LD_LIBRARY_PATH 13510 shlibpath_overrides_runpath=no 13511 13512 # Some binutils ld are patched to set DT_RUNPATH 13513 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13514 $as_echo_n "(cached) " >&6 13515else 13516 lt_cv_shlibpath_overrides_runpath=no 13517 save_LDFLAGS=$LDFLAGS 13518 save_libdir=$libdir 13519 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13520 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13522/* end confdefs.h. */ 13523 13524int 13525main () 13526{ 13527 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532if ac_fn_c_try_link "$LINENO"; then : 13533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13534 lt_cv_shlibpath_overrides_runpath=yes 13535fi 13536fi 13537rm -f core conftest.err conftest.$ac_objext \ 13538 conftest$ac_exeext conftest.$ac_ext 13539 LDFLAGS=$save_LDFLAGS 13540 libdir=$save_libdir 13541 13542fi 13543 13544 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13545 13546 # This implies no fast_install, which is unacceptable. 13547 # Some rework will be needed to allow for fast_install 13548 # before this can be enabled. 13549 hardcode_into_libs=yes 13550 13551 # Ideally, we could use ldconfig to report *all* directores which are 13552 # searched for libraries, however this is still not possible. Aside from not 13553 # being certain /sbin/ldconfig is available, command 13554 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13555 # even though it is searched at run-time. Try to do the best guess by 13556 # appending ld.so.conf contents (and includes) to the search path. 13557 if test -f /etc/ld.so.conf; then 13558 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 13559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13560 fi 13561 13562 # We used to test for /lib/ld.so.1 and disable shared libraries on 13563 # powerpc, because MkLinux only supported shared libraries with the 13564 # GNU dynamic linker. Since this was broken with cross compilers, 13565 # most powerpc-linux boxes support dynamic linking these days and 13566 # people can always --disable-shared, the test was removed, and we 13567 # assume the GNU/Linux dynamic linker is in use. 13568 dynamic_linker='GNU/Linux ld.so' 13569 ;; 13570 13571netbsd*) 13572 version_type=sunos 13573 need_lib_prefix=no 13574 need_version=no 13575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13578 dynamic_linker='NetBSD (a.out) ld.so' 13579 else 13580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13581 soname_spec='$libname$release$shared_ext$major' 13582 dynamic_linker='NetBSD ld.elf_so' 13583 fi 13584 shlibpath_var=LD_LIBRARY_PATH 13585 shlibpath_overrides_runpath=yes 13586 hardcode_into_libs=yes 13587 ;; 13588 13589newsos6) 13590 version_type=linux # correct to gnu/linux during the next big refactor 13591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13592 shlibpath_var=LD_LIBRARY_PATH 13593 shlibpath_overrides_runpath=yes 13594 ;; 13595 13596*nto* | *qnx*) 13597 version_type=qnx 13598 need_lib_prefix=no 13599 need_version=no 13600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13601 soname_spec='$libname$release$shared_ext$major' 13602 shlibpath_var=LD_LIBRARY_PATH 13603 shlibpath_overrides_runpath=no 13604 hardcode_into_libs=yes 13605 dynamic_linker='ldqnx.so' 13606 ;; 13607 13608openbsd* | bitrig*) 13609 version_type=sunos 13610 sys_lib_dlsearch_path_spec=/usr/lib 13611 need_lib_prefix=no 13612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13613 need_version=no 13614 else 13615 need_version=yes 13616 fi 13617 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13619 shlibpath_var=LD_LIBRARY_PATH 13620 shlibpath_overrides_runpath=yes 13621 ;; 13622 13623os2*) 13624 libname_spec='$name' 13625 version_type=windows 13626 shrext_cmds=.dll 13627 need_version=no 13628 need_lib_prefix=no 13629 # OS/2 can only load a DLL with a base name of 8 characters or less. 13630 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13631 v=$($ECHO $release$versuffix | tr -d .-); 13632 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13633 $ECHO $n$v`$shared_ext' 13634 library_names_spec='${libname}_dll.$libext' 13635 dynamic_linker='OS/2 ld.exe' 13636 shlibpath_var=BEGINLIBPATH 13637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13639 postinstall_cmds='base_file=`basename \$file`~ 13640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13641 dldir=$destdir/`dirname \$dlpath`~ 13642 test -d \$dldir || mkdir -p \$dldir~ 13643 $install_prog $dir/$dlname \$dldir/$dlname~ 13644 chmod a+x \$dldir/$dlname~ 13645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13647 fi' 13648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13649 dlpath=$dir/\$dldll~ 13650 $RM \$dlpath' 13651 ;; 13652 13653osf3* | osf4* | osf5*) 13654 version_type=osf 13655 need_lib_prefix=no 13656 need_version=no 13657 soname_spec='$libname$release$shared_ext$major' 13658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13659 shlibpath_var=LD_LIBRARY_PATH 13660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13662 ;; 13663 13664rdos*) 13665 dynamic_linker=no 13666 ;; 13667 13668solaris*) 13669 version_type=linux # correct to gnu/linux during the next big refactor 13670 need_lib_prefix=no 13671 need_version=no 13672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13673 soname_spec='$libname$release$shared_ext$major' 13674 shlibpath_var=LD_LIBRARY_PATH 13675 shlibpath_overrides_runpath=yes 13676 hardcode_into_libs=yes 13677 # ldd complains unless libraries are executable 13678 postinstall_cmds='chmod +x $lib' 13679 ;; 13680 13681sunos4*) 13682 version_type=sunos 13683 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13685 shlibpath_var=LD_LIBRARY_PATH 13686 shlibpath_overrides_runpath=yes 13687 if test yes = "$with_gnu_ld"; then 13688 need_lib_prefix=no 13689 fi 13690 need_version=yes 13691 ;; 13692 13693sysv4 | sysv4.3*) 13694 version_type=linux # correct to gnu/linux during the next big refactor 13695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13696 soname_spec='$libname$release$shared_ext$major' 13697 shlibpath_var=LD_LIBRARY_PATH 13698 case $host_vendor in 13699 sni) 13700 shlibpath_overrides_runpath=no 13701 need_lib_prefix=no 13702 runpath_var=LD_RUN_PATH 13703 ;; 13704 siemens) 13705 need_lib_prefix=no 13706 ;; 13707 motorola) 13708 need_lib_prefix=no 13709 need_version=no 13710 shlibpath_overrides_runpath=no 13711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13712 ;; 13713 esac 13714 ;; 13715 13716sysv4*MP*) 13717 if test -d /usr/nec; then 13718 version_type=linux # correct to gnu/linux during the next big refactor 13719 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13720 soname_spec='$libname$shared_ext.$major' 13721 shlibpath_var=LD_LIBRARY_PATH 13722 fi 13723 ;; 13724 13725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13726 version_type=sco 13727 need_lib_prefix=no 13728 need_version=no 13729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13730 soname_spec='$libname$release$shared_ext$major' 13731 shlibpath_var=LD_LIBRARY_PATH 13732 shlibpath_overrides_runpath=yes 13733 hardcode_into_libs=yes 13734 if test yes = "$with_gnu_ld"; then 13735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13736 else 13737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13738 case $host_os in 13739 sco3.2v5*) 13740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13741 ;; 13742 esac 13743 fi 13744 sys_lib_dlsearch_path_spec='/usr/lib' 13745 ;; 13746 13747tpf*) 13748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13749 version_type=linux # correct to gnu/linux during the next big refactor 13750 need_lib_prefix=no 13751 need_version=no 13752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13753 shlibpath_var=LD_LIBRARY_PATH 13754 shlibpath_overrides_runpath=no 13755 hardcode_into_libs=yes 13756 ;; 13757 13758uts4*) 13759 version_type=linux # correct to gnu/linux during the next big refactor 13760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13761 soname_spec='$libname$release$shared_ext$major' 13762 shlibpath_var=LD_LIBRARY_PATH 13763 ;; 13764 13765*) 13766 dynamic_linker=no 13767 ;; 13768esac 13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13770$as_echo "$dynamic_linker" >&6; } 13771test no = "$dynamic_linker" && can_build_shared=no 13772 13773variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13774if test yes = "$GCC"; then 13775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13776fi 13777 13778if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13779 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13780fi 13781 13782if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13783 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13784fi 13785 13786# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13787configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13788 13789# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13790func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13791 13792# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13793configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13892$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13893hardcode_action= 13894if test -n "$hardcode_libdir_flag_spec" || 13895 test -n "$runpath_var" || 13896 test yes = "$hardcode_automatic"; then 13897 13898 # We can hardcode non-existent directories. 13899 if test no != "$hardcode_direct" && 13900 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13901 # have to relink, otherwise we might link with an installed library 13902 # when we should be linking with a yet-to-be-installed one 13903 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13904 test no != "$hardcode_minus_L"; then 13905 # Linking always hardcodes the temporary library directory. 13906 hardcode_action=relink 13907 else 13908 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13909 hardcode_action=immediate 13910 fi 13911else 13912 # We cannot hardcode anything, or else we can only hardcode existing 13913 # directories. 13914 hardcode_action=unsupported 13915fi 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13917$as_echo "$hardcode_action" >&6; } 13918 13919if test relink = "$hardcode_action" || 13920 test yes = "$inherit_rpath"; then 13921 # Fast installation is not supported 13922 enable_fast_install=no 13923elif test yes = "$shlibpath_overrides_runpath" || 13924 test no = "$enable_shared"; then 13925 # Fast installation is not necessary 13926 enable_fast_install=needless 13927fi 13928 13929 13930 13931 13932 13933 13934 if test yes != "$enable_dlopen"; then 13935 enable_dlopen=unknown 13936 enable_dlopen_self=unknown 13937 enable_dlopen_self_static=unknown 13938else 13939 lt_cv_dlopen=no 13940 lt_cv_dlopen_libs= 13941 13942 case $host_os in 13943 beos*) 13944 lt_cv_dlopen=load_add_on 13945 lt_cv_dlopen_libs= 13946 lt_cv_dlopen_self=yes 13947 ;; 13948 13949 mingw* | pw32* | cegcc*) 13950 lt_cv_dlopen=LoadLibrary 13951 lt_cv_dlopen_libs= 13952 ;; 13953 13954 cygwin*) 13955 lt_cv_dlopen=dlopen 13956 lt_cv_dlopen_libs= 13957 ;; 13958 13959 darwin*) 13960 # if libdl is installed we need to link against it 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13962$as_echo_n "checking for dlopen in -ldl... " >&6; } 13963if ${ac_cv_lib_dl_dlopen+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965else 13966 ac_check_lib_save_LIBS=$LIBS 13967LIBS="-ldl $LIBS" 13968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969/* end confdefs.h. */ 13970 13971/* Override any GCC internal prototype to avoid an error. 13972 Use char because int might match the return type of a GCC 13973 builtin and then its argument prototype would still apply. */ 13974#ifdef __cplusplus 13975extern "C" 13976#endif 13977char dlopen (); 13978int 13979main () 13980{ 13981return dlopen (); 13982 ; 13983 return 0; 13984} 13985_ACEOF 13986if ac_fn_c_try_link "$LINENO"; then : 13987 ac_cv_lib_dl_dlopen=yes 13988else 13989 ac_cv_lib_dl_dlopen=no 13990fi 13991rm -f core conftest.err conftest.$ac_objext \ 13992 conftest$ac_exeext conftest.$ac_ext 13993LIBS=$ac_check_lib_save_LIBS 13994fi 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13996$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13997if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13998 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13999else 14000 14001 lt_cv_dlopen=dyld 14002 lt_cv_dlopen_libs= 14003 lt_cv_dlopen_self=yes 14004 14005fi 14006 14007 ;; 14008 14009 tpf*) 14010 # Don't try to run any link tests for TPF. We know it's impossible 14011 # because TPF is a cross-compiler, and we know how we open DSOs. 14012 lt_cv_dlopen=dlopen 14013 lt_cv_dlopen_libs= 14014 lt_cv_dlopen_self=no 14015 ;; 14016 14017 *) 14018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14019if test "x$ac_cv_func_shl_load" = xyes; then : 14020 lt_cv_dlopen=shl_load 14021else 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14023$as_echo_n "checking for shl_load in -ldld... " >&6; } 14024if ${ac_cv_lib_dld_shl_load+:} false; then : 14025 $as_echo_n "(cached) " >&6 14026else 14027 ac_check_lib_save_LIBS=$LIBS 14028LIBS="-ldld $LIBS" 14029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031 14032/* Override any GCC internal prototype to avoid an error. 14033 Use char because int might match the return type of a GCC 14034 builtin and then its argument prototype would still apply. */ 14035#ifdef __cplusplus 14036extern "C" 14037#endif 14038char shl_load (); 14039int 14040main () 14041{ 14042return shl_load (); 14043 ; 14044 return 0; 14045} 14046_ACEOF 14047if ac_fn_c_try_link "$LINENO"; then : 14048 ac_cv_lib_dld_shl_load=yes 14049else 14050 ac_cv_lib_dld_shl_load=no 14051fi 14052rm -f core conftest.err conftest.$ac_objext \ 14053 conftest$ac_exeext conftest.$ac_ext 14054LIBS=$ac_check_lib_save_LIBS 14055fi 14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14057$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14058if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14059 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14060else 14061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14062if test "x$ac_cv_func_dlopen" = xyes; then : 14063 lt_cv_dlopen=dlopen 14064else 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14066$as_echo_n "checking for dlopen in -ldl... " >&6; } 14067if ${ac_cv_lib_dl_dlopen+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 ac_check_lib_save_LIBS=$LIBS 14071LIBS="-ldl $LIBS" 14072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074 14075/* Override any GCC internal prototype to avoid an error. 14076 Use char because int might match the return type of a GCC 14077 builtin and then its argument prototype would still apply. */ 14078#ifdef __cplusplus 14079extern "C" 14080#endif 14081char dlopen (); 14082int 14083main () 14084{ 14085return dlopen (); 14086 ; 14087 return 0; 14088} 14089_ACEOF 14090if ac_fn_c_try_link "$LINENO"; then : 14091 ac_cv_lib_dl_dlopen=yes 14092else 14093 ac_cv_lib_dl_dlopen=no 14094fi 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext conftest.$ac_ext 14097LIBS=$ac_check_lib_save_LIBS 14098fi 14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14100$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14101if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14103else 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14105$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14106if ${ac_cv_lib_svld_dlopen+:} false; then : 14107 $as_echo_n "(cached) " >&6 14108else 14109 ac_check_lib_save_LIBS=$LIBS 14110LIBS="-lsvld $LIBS" 14111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113 14114/* Override any GCC internal prototype to avoid an error. 14115 Use char because int might match the return type of a GCC 14116 builtin and then its argument prototype would still apply. */ 14117#ifdef __cplusplus 14118extern "C" 14119#endif 14120char dlopen (); 14121int 14122main () 14123{ 14124return dlopen (); 14125 ; 14126 return 0; 14127} 14128_ACEOF 14129if ac_fn_c_try_link "$LINENO"; then : 14130 ac_cv_lib_svld_dlopen=yes 14131else 14132 ac_cv_lib_svld_dlopen=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext \ 14135 conftest$ac_exeext conftest.$ac_ext 14136LIBS=$ac_check_lib_save_LIBS 14137fi 14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14139$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14140if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14142else 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14144$as_echo_n "checking for dld_link in -ldld... " >&6; } 14145if ${ac_cv_lib_dld_dld_link+:} false; then : 14146 $as_echo_n "(cached) " >&6 14147else 14148 ac_check_lib_save_LIBS=$LIBS 14149LIBS="-ldld $LIBS" 14150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14151/* end confdefs.h. */ 14152 14153/* Override any GCC internal prototype to avoid an error. 14154 Use char because int might match the return type of a GCC 14155 builtin and then its argument prototype would still apply. */ 14156#ifdef __cplusplus 14157extern "C" 14158#endif 14159char dld_link (); 14160int 14161main () 14162{ 14163return dld_link (); 14164 ; 14165 return 0; 14166} 14167_ACEOF 14168if ac_fn_c_try_link "$LINENO"; then : 14169 ac_cv_lib_dld_dld_link=yes 14170else 14171 ac_cv_lib_dld_dld_link=no 14172fi 14173rm -f core conftest.err conftest.$ac_objext \ 14174 conftest$ac_exeext conftest.$ac_ext 14175LIBS=$ac_check_lib_save_LIBS 14176fi 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14178$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14179if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14180 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14181fi 14182 14183 14184fi 14185 14186 14187fi 14188 14189 14190fi 14191 14192 14193fi 14194 14195 14196fi 14197 14198 ;; 14199 esac 14200 14201 if test no = "$lt_cv_dlopen"; then 14202 enable_dlopen=no 14203 else 14204 enable_dlopen=yes 14205 fi 14206 14207 case $lt_cv_dlopen in 14208 dlopen) 14209 save_CPPFLAGS=$CPPFLAGS 14210 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14211 14212 save_LDFLAGS=$LDFLAGS 14213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14214 14215 save_LIBS=$LIBS 14216 LIBS="$lt_cv_dlopen_libs $LIBS" 14217 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14219$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14220if ${lt_cv_dlopen_self+:} false; then : 14221 $as_echo_n "(cached) " >&6 14222else 14223 if test yes = "$cross_compiling"; then : 14224 lt_cv_dlopen_self=cross 14225else 14226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14227 lt_status=$lt_dlunknown 14228 cat > conftest.$ac_ext <<_LT_EOF 14229#line $LINENO "configure" 14230#include "confdefs.h" 14231 14232#if HAVE_DLFCN_H 14233#include <dlfcn.h> 14234#endif 14235 14236#include <stdio.h> 14237 14238#ifdef RTLD_GLOBAL 14239# define LT_DLGLOBAL RTLD_GLOBAL 14240#else 14241# ifdef DL_GLOBAL 14242# define LT_DLGLOBAL DL_GLOBAL 14243# else 14244# define LT_DLGLOBAL 0 14245# endif 14246#endif 14247 14248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14249 find out it does not work in some platform. */ 14250#ifndef LT_DLLAZY_OR_NOW 14251# ifdef RTLD_LAZY 14252# define LT_DLLAZY_OR_NOW RTLD_LAZY 14253# else 14254# ifdef DL_LAZY 14255# define LT_DLLAZY_OR_NOW DL_LAZY 14256# else 14257# ifdef RTLD_NOW 14258# define LT_DLLAZY_OR_NOW RTLD_NOW 14259# else 14260# ifdef DL_NOW 14261# define LT_DLLAZY_OR_NOW DL_NOW 14262# else 14263# define LT_DLLAZY_OR_NOW 0 14264# endif 14265# endif 14266# endif 14267# endif 14268#endif 14269 14270/* When -fvisibility=hidden is used, assume the code has been annotated 14271 correspondingly for the symbols needed. */ 14272#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14273int fnord () __attribute__((visibility("default"))); 14274#endif 14275 14276int fnord () { return 42; } 14277int main () 14278{ 14279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14280 int status = $lt_dlunknown; 14281 14282 if (self) 14283 { 14284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14285 else 14286 { 14287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14288 else puts (dlerror ()); 14289 } 14290 /* dlclose (self); */ 14291 } 14292 else 14293 puts (dlerror ()); 14294 14295 return status; 14296} 14297_LT_EOF 14298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14299 (eval $ac_link) 2>&5 14300 ac_status=$? 14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14302 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14303 (./conftest; exit; ) >&5 2>/dev/null 14304 lt_status=$? 14305 case x$lt_status in 14306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14309 esac 14310 else : 14311 # compilation failed 14312 lt_cv_dlopen_self=no 14313 fi 14314fi 14315rm -fr conftest* 14316 14317 14318fi 14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14320$as_echo "$lt_cv_dlopen_self" >&6; } 14321 14322 if test yes = "$lt_cv_dlopen_self"; then 14323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14325$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14326if ${lt_cv_dlopen_self_static+:} false; then : 14327 $as_echo_n "(cached) " >&6 14328else 14329 if test yes = "$cross_compiling"; then : 14330 lt_cv_dlopen_self_static=cross 14331else 14332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14333 lt_status=$lt_dlunknown 14334 cat > conftest.$ac_ext <<_LT_EOF 14335#line $LINENO "configure" 14336#include "confdefs.h" 14337 14338#if HAVE_DLFCN_H 14339#include <dlfcn.h> 14340#endif 14341 14342#include <stdio.h> 14343 14344#ifdef RTLD_GLOBAL 14345# define LT_DLGLOBAL RTLD_GLOBAL 14346#else 14347# ifdef DL_GLOBAL 14348# define LT_DLGLOBAL DL_GLOBAL 14349# else 14350# define LT_DLGLOBAL 0 14351# endif 14352#endif 14353 14354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14355 find out it does not work in some platform. */ 14356#ifndef LT_DLLAZY_OR_NOW 14357# ifdef RTLD_LAZY 14358# define LT_DLLAZY_OR_NOW RTLD_LAZY 14359# else 14360# ifdef DL_LAZY 14361# define LT_DLLAZY_OR_NOW DL_LAZY 14362# else 14363# ifdef RTLD_NOW 14364# define LT_DLLAZY_OR_NOW RTLD_NOW 14365# else 14366# ifdef DL_NOW 14367# define LT_DLLAZY_OR_NOW DL_NOW 14368# else 14369# define LT_DLLAZY_OR_NOW 0 14370# endif 14371# endif 14372# endif 14373# endif 14374#endif 14375 14376/* When -fvisibility=hidden is used, assume the code has been annotated 14377 correspondingly for the symbols needed. */ 14378#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14379int fnord () __attribute__((visibility("default"))); 14380#endif 14381 14382int fnord () { return 42; } 14383int main () 14384{ 14385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14386 int status = $lt_dlunknown; 14387 14388 if (self) 14389 { 14390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14391 else 14392 { 14393 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14394 else puts (dlerror ()); 14395 } 14396 /* dlclose (self); */ 14397 } 14398 else 14399 puts (dlerror ()); 14400 14401 return status; 14402} 14403_LT_EOF 14404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14405 (eval $ac_link) 2>&5 14406 ac_status=$? 14407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14408 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14409 (./conftest; exit; ) >&5 2>/dev/null 14410 lt_status=$? 14411 case x$lt_status in 14412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14415 esac 14416 else : 14417 # compilation failed 14418 lt_cv_dlopen_self_static=no 14419 fi 14420fi 14421rm -fr conftest* 14422 14423 14424fi 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14426$as_echo "$lt_cv_dlopen_self_static" >&6; } 14427 fi 14428 14429 CPPFLAGS=$save_CPPFLAGS 14430 LDFLAGS=$save_LDFLAGS 14431 LIBS=$save_LIBS 14432 ;; 14433 esac 14434 14435 case $lt_cv_dlopen_self in 14436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14437 *) enable_dlopen_self=unknown ;; 14438 esac 14439 14440 case $lt_cv_dlopen_self_static in 14441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14442 *) enable_dlopen_self_static=unknown ;; 14443 esac 14444fi 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462striplib= 14463old_striplib= 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14465$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14466if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14468 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14470$as_echo "yes" >&6; } 14471else 14472# FIXME - insert some real tests, host_os isn't really good enough 14473 case $host_os in 14474 darwin*) 14475 if test -n "$STRIP"; then 14476 striplib="$STRIP -x" 14477 old_striplib="$STRIP -S" 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14479$as_echo "yes" >&6; } 14480 else 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14482$as_echo "no" >&6; } 14483 fi 14484 ;; 14485 *) 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14487$as_echo "no" >&6; } 14488 ;; 14489 esac 14490fi 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 # Report what library types will actually be built 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14505$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14507$as_echo "$can_build_shared" >&6; } 14508 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14510$as_echo_n "checking whether to build shared libraries... " >&6; } 14511 test no = "$can_build_shared" && enable_shared=no 14512 14513 # On AIX, shared libraries and static libraries use the same namespace, and 14514 # are all built from PIC. 14515 case $host_os in 14516 aix3*) 14517 test yes = "$enable_shared" && enable_static=no 14518 if test -n "$RANLIB"; then 14519 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14520 postinstall_cmds='$RANLIB $lib' 14521 fi 14522 ;; 14523 14524 aix[4-9]*) 14525 if test ia64 != "$host_cpu"; then 14526 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14527 yes,aix,yes) ;; # shared object as lib.so file only 14528 yes,svr4,*) ;; # shared object as lib.so archive member only 14529 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14530 esac 14531 fi 14532 ;; 14533 esac 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14535$as_echo "$enable_shared" >&6; } 14536 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14538$as_echo_n "checking whether to build static libraries... " >&6; } 14539 # Make sure either enable_shared or enable_static is yes. 14540 test yes = "$enable_shared" || enable_static=yes 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14542$as_echo "$enable_static" >&6; } 14543 14544 14545 14546 14547fi 14548ac_ext=c 14549ac_cpp='$CPP $CPPFLAGS' 14550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14552ac_compiler_gnu=$ac_cv_c_compiler_gnu 14553 14554CC=$lt_save_CC 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 ac_config_commands="$ac_config_commands libtool" 14571 14572 14573 14574 14575# Only expand once: 14576 14577 14578 14579 14580# NTP has (so far) been relying on leading-edge autogen, which 14581# means we need the appropriate corresponding libopts as well. 14582# Therefore, by default: 14583# - use the version of libopts we ship with 14584# - do not install it 14585# - build a static copy (AC_DISABLE_SHARED - done earlier) 14586case "${enable_local_libopts+set}" in 14587 set) ;; 14588 *) enable_local_libopts=yes ;; 14589esac 14590case "${enable_libopts_install+set}" in 14591 set) ;; 14592 *) enable_libopts_install=no ;; 14593esac 14594enable_nls=no 14595ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14596if test "x$ac_cv_type_pid_t" = xyes; then : 14597 14598else 14599 14600cat >>confdefs.h <<_ACEOF 14601#define pid_t int 14602_ACEOF 14603 14604fi 14605 14606 14607 14608 ac_header_dirent=no 14609for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14610 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14612$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14613if eval \${$as_ac_Header+:} false; then : 14614 $as_echo_n "(cached) " >&6 14615else 14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14617/* end confdefs.h. */ 14618#include <sys/types.h> 14619#include <$ac_hdr> 14620 14621int 14622main () 14623{ 14624if ((DIR *) 0) 14625return 0; 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630if ac_fn_c_try_compile "$LINENO"; then : 14631 eval "$as_ac_Header=yes" 14632else 14633 eval "$as_ac_Header=no" 14634fi 14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14636fi 14637eval ac_res=\$$as_ac_Header 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14639$as_echo "$ac_res" >&6; } 14640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14641 cat >>confdefs.h <<_ACEOF 14642#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14643_ACEOF 14644 14645ac_header_dirent=$ac_hdr; break 14646fi 14647 14648done 14649# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14650if test $ac_header_dirent = dirent.h; then 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14652$as_echo_n "checking for library containing opendir... " >&6; } 14653if ${ac_cv_search_opendir+:} false; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 ac_func_search_save_LIBS=$LIBS 14657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659 14660/* Override any GCC internal prototype to avoid an error. 14661 Use char because int might match the return type of a GCC 14662 builtin and then its argument prototype would still apply. */ 14663#ifdef __cplusplus 14664extern "C" 14665#endif 14666char opendir (); 14667int 14668main () 14669{ 14670return opendir (); 14671 ; 14672 return 0; 14673} 14674_ACEOF 14675for ac_lib in '' dir; do 14676 if test -z "$ac_lib"; then 14677 ac_res="none required" 14678 else 14679 ac_res=-l$ac_lib 14680 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14681 fi 14682 if ac_fn_c_try_link "$LINENO"; then : 14683 ac_cv_search_opendir=$ac_res 14684fi 14685rm -f core conftest.err conftest.$ac_objext \ 14686 conftest$ac_exeext 14687 if ${ac_cv_search_opendir+:} false; then : 14688 break 14689fi 14690done 14691if ${ac_cv_search_opendir+:} false; then : 14692 14693else 14694 ac_cv_search_opendir=no 14695fi 14696rm conftest.$ac_ext 14697LIBS=$ac_func_search_save_LIBS 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14700$as_echo "$ac_cv_search_opendir" >&6; } 14701ac_res=$ac_cv_search_opendir 14702if test "$ac_res" != no; then : 14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14704 14705fi 14706 14707else 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14709$as_echo_n "checking for library containing opendir... " >&6; } 14710if ${ac_cv_search_opendir+:} false; then : 14711 $as_echo_n "(cached) " >&6 14712else 14713 ac_func_search_save_LIBS=$LIBS 14714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14715/* end confdefs.h. */ 14716 14717/* Override any GCC internal prototype to avoid an error. 14718 Use char because int might match the return type of a GCC 14719 builtin and then its argument prototype would still apply. */ 14720#ifdef __cplusplus 14721extern "C" 14722#endif 14723char opendir (); 14724int 14725main () 14726{ 14727return opendir (); 14728 ; 14729 return 0; 14730} 14731_ACEOF 14732for ac_lib in '' x; do 14733 if test -z "$ac_lib"; then 14734 ac_res="none required" 14735 else 14736 ac_res=-l$ac_lib 14737 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14738 fi 14739 if ac_fn_c_try_link "$LINENO"; then : 14740 ac_cv_search_opendir=$ac_res 14741fi 14742rm -f core conftest.err conftest.$ac_objext \ 14743 conftest$ac_exeext 14744 if ${ac_cv_search_opendir+:} false; then : 14745 break 14746fi 14747done 14748if ${ac_cv_search_opendir+:} false; then : 14749 14750else 14751 ac_cv_search_opendir=no 14752fi 14753rm conftest.$ac_ext 14754LIBS=$ac_func_search_save_LIBS 14755fi 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14757$as_echo "$ac_cv_search_opendir" >&6; } 14758ac_res=$ac_cv_search_opendir 14759if test "$ac_res" != no; then : 14760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14761 14762fi 14763 14764fi 14765 14766 14767 # ================= 14768 # AC_CHECK_HEADERS 14769 # ================= 14770 for ac_header in \ 14771 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 14772 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 14773 sys/un.h sys/wait.h dlfcn.h errno.h \ 14774 fcntl.h libgen.h libintl.h memory.h \ 14775 netinet/in.h setjmp.h stdbool.h sysexits.h \ 14776 unistd.h utime.h 14777do : 14778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14781 cat >>confdefs.h <<_ACEOF 14782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14783_ACEOF 14784 14785fi 14786 14787done 14788 14789 14790 for ac_header in stdarg.h varargs.h 14791do : 14792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14793ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14795 cat >>confdefs.h <<_ACEOF 14796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14797_ACEOF 14798 lo_have_arg_hdr=true;break 14799else 14800 lo_have_arg_hdr=false 14801fi 14802 14803done 14804 14805 14806 for ac_header in string.h strings.h 14807do : 14808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14809ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14811 cat >>confdefs.h <<_ACEOF 14812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14813_ACEOF 14814 lo_have_str_hdr=true;break 14815else 14816 lo_have_str_hdr=false 14817fi 14818 14819done 14820 14821 14822 for ac_header in limits.h sys/limits.h values.h 14823do : 14824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14825ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14827 cat >>confdefs.h <<_ACEOF 14828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14829_ACEOF 14830 lo_have_lim_hdr=true;break 14831else 14832 lo_have_lim_hdr=false 14833fi 14834 14835done 14836 14837 14838 for ac_header in inttypes.h stdint.h 14839do : 14840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14841ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14842if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14843 cat >>confdefs.h <<_ACEOF 14844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14845_ACEOF 14846 lo_have_typ_hdr=true;break 14847else 14848 lo_have_typ_hdr=false 14849fi 14850 14851done 14852 14853 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 14855$as_echo_n "checking for working stdnoreturn.h... " >&6; } 14856if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 14857 $as_echo_n "(cached) " >&6 14858else 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861#include <stdlib.h> 14862 #include <stdnoreturn.h> 14863 /* Do not check for 'noreturn' after the return type. 14864 C11 allows it, but it's rarely done that way 14865 and circa-2012 bleeding-edge GCC rejects it when given 14866 -Werror=old-style-declaration. */ 14867 noreturn void foo1 (void) { exit (0); } 14868 _Noreturn void foo2 (void) { exit (0); } 14869 int testit (int argc, char **argv) { 14870 if (argc & 1) 14871 return 0; 14872 (argv[0][0] ? foo1 : foo2) (); 14873 } 14874 14875int 14876main () 14877{ 14878 14879 ; 14880 return 0; 14881} 14882_ACEOF 14883if ac_fn_c_try_compile "$LINENO"; then : 14884 gl_cv_header_working_stdnoreturn_h=yes 14885else 14886 gl_cv_header_working_stdnoreturn_h=no 14887fi 14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14889fi 14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 14891$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 14892 14893 if test $gl_cv_header_working_stdnoreturn_h = yes; then 14894 STDNORETURN_H='' 14895 else 14896 STDNORETURN_H='stdnoreturn.h' 14897 fi 14898 14899 14900 if test -n "$STDNORETURN_H"; then 14901 GL_GENERATE_STDNORETURN_H_TRUE= 14902 GL_GENERATE_STDNORETURN_H_FALSE='#' 14903else 14904 GL_GENERATE_STDNORETURN_H_TRUE='#' 14905 GL_GENERATE_STDNORETURN_H_FALSE= 14906fi 14907 14908 14909 14910 # ---------------------------------------------------------------------- 14911 # check for various programs used during the build. 14912 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 14913 # ---------------------------------------------------------------------- 14914 for ac_header in runetype.h wchar.h 14915do : 14916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14917ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 14918 $ac_includes_default 14919 #if HAVE_RUNETYPE_H 14920 # include <runetype.h> 14921 #endif 14922 14923" 14924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14925 cat >>confdefs.h <<_ACEOF 14926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14927_ACEOF 14928 14929fi 14930 14931done 14932 14933 14934 # Check whether --enable-nls was given. 14935if test "${enable_nls+set}" = set; then : 14936 enableval=$enable_nls; 14937fi 14938 14939 if test "x$enable_nls" != "xno" && \ 14940 test "X${ac_cv_header_libintl_h}" = Xyes; then : 14941 14942 14943$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14944 14945fi 14946 14947 # -------------------------------------------- 14948 # Verify certain entries from AC_CHECK_HEADERS 14949 # -------------------------------------------- 14950 ${lo_have_arg_hdr} || \ 14951 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 14952 14953 ${lo_have_str_hdr} || \ 14954 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 14955 14956 ${lo_have_lim_hdr} || \ 14957 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 14958 14959 ${lo_have_typ_hdr} || \ 14960 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 14961 14962 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 14963 do eval as_ac_var=\${ac_cv_header_${f}_h} 14964 test "X${as_ac_var}" = Xyes || { 14965 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 14966 } 14967 done 14968 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 14969 echo '#include <stdint.h>' > inttypes.h 14970 14971 # ---------------------------------------------------------------------- 14972 # Checks for typedefs 14973 # ---------------------------------------------------------------------- 14974 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 14975if test "x$ac_cv_type_wchar_t" = xyes; then : 14976 14977cat >>confdefs.h <<_ACEOF 14978#define HAVE_WCHAR_T 1 14979_ACEOF 14980 14981 14982fi 14983 14984 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 14985 $ac_includes_default 14986 #if HAVE_RUNETYPE_H 14987 # include <runetype.h> 14988 #endif 14989 #if HAVE_WCHAR_H 14990 # include <wchar.h> 14991 #endif 14992 14993" 14994if test "x$ac_cv_type_wint_t" = xyes; then : 14995 14996cat >>confdefs.h <<_ACEOF 14997#define HAVE_WINT_T 1 14998_ACEOF 14999 15000 15001fi 15002 15003 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 15004if test "x$ac_cv_type_int8_t" = xyes; then : 15005 15006cat >>confdefs.h <<_ACEOF 15007#define HAVE_INT8_T 1 15008_ACEOF 15009 15010 15011fi 15012ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 15013if test "x$ac_cv_type_uint8_t" = xyes; then : 15014 15015cat >>confdefs.h <<_ACEOF 15016#define HAVE_UINT8_T 1 15017_ACEOF 15018 15019 15020fi 15021ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 15022if test "x$ac_cv_type_int16_t" = xyes; then : 15023 15024cat >>confdefs.h <<_ACEOF 15025#define HAVE_INT16_T 1 15026_ACEOF 15027 15028 15029fi 15030ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 15031if test "x$ac_cv_type_uint16_t" = xyes; then : 15032 15033cat >>confdefs.h <<_ACEOF 15034#define HAVE_UINT16_T 1 15035_ACEOF 15036 15037 15038fi 15039ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 15040if test "x$ac_cv_type_int32_t" = xyes; then : 15041 15042cat >>confdefs.h <<_ACEOF 15043#define HAVE_INT32_T 1 15044_ACEOF 15045 15046 15047fi 15048ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 15049if test "x$ac_cv_type_uint32_t" = xyes; then : 15050 15051cat >>confdefs.h <<_ACEOF 15052#define HAVE_UINT32_T 1 15053_ACEOF 15054 15055 15056fi 15057ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15058if test "x$ac_cv_type_intptr_t" = xyes; then : 15059 15060cat >>confdefs.h <<_ACEOF 15061#define HAVE_INTPTR_T 1 15062_ACEOF 15063 15064 15065fi 15066ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15067if test "x$ac_cv_type_uintptr_t" = xyes; then : 15068 15069cat >>confdefs.h <<_ACEOF 15070#define HAVE_UINTPTR_T 1 15071_ACEOF 15072 15073 15074fi 15075ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 15076if test "x$ac_cv_type_uint_t" = xyes; then : 15077 15078cat >>confdefs.h <<_ACEOF 15079#define HAVE_UINT_T 1 15080_ACEOF 15081 15082 15083fi 15084ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15085if test "x$ac_cv_type_pid_t" = xyes; then : 15086 15087cat >>confdefs.h <<_ACEOF 15088#define HAVE_PID_T 1 15089_ACEOF 15090 15091 15092fi 15093ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15094if test "x$ac_cv_type_size_t" = xyes; then : 15095 15096cat >>confdefs.h <<_ACEOF 15097#define HAVE_SIZE_T 1 15098_ACEOF 15099 15100 15101fi 15102ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 15103if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 15104 15105cat >>confdefs.h <<_ACEOF 15106#define HAVE_PTRDIFF_T 1 15107_ACEOF 15108 15109 15110fi 15111 15112 # The cast to long int works around a bug in the HP C Compiler 15113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15115# This bug is HP SR number 8606223364. 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 15117$as_echo_n "checking size of char *... " >&6; } 15118if ${ac_cv_sizeof_char_p+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120else 15121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 15122 15123else 15124 if test "$ac_cv_type_char_p" = yes; then 15125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15127as_fn_error 77 "cannot compute sizeof (char *) 15128See \`config.log' for more details" "$LINENO" 5; } 15129 else 15130 ac_cv_sizeof_char_p=0 15131 fi 15132fi 15133 15134fi 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 15136$as_echo "$ac_cv_sizeof_char_p" >&6; } 15137 15138 15139 15140cat >>confdefs.h <<_ACEOF 15141#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 15142_ACEOF 15143 15144 15145 # The cast to long int works around a bug in the HP C Compiler 15146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15148# This bug is HP SR number 8606223364. 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 15150$as_echo_n "checking size of int... " >&6; } 15151if ${ac_cv_sizeof_int+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 15155 15156else 15157 if test "$ac_cv_type_int" = yes; then 15158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15160as_fn_error 77 "cannot compute sizeof (int) 15161See \`config.log' for more details" "$LINENO" 5; } 15162 else 15163 ac_cv_sizeof_int=0 15164 fi 15165fi 15166 15167fi 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 15169$as_echo "$ac_cv_sizeof_int" >&6; } 15170 15171 15172 15173cat >>confdefs.h <<_ACEOF 15174#define SIZEOF_INT $ac_cv_sizeof_int 15175_ACEOF 15176 15177 15178 # The cast to long int works around a bug in the HP C Compiler 15179# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15180# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15181# This bug is HP SR number 8606223364. 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 15183$as_echo_n "checking size of long... " >&6; } 15184if ${ac_cv_sizeof_long+:} false; then : 15185 $as_echo_n "(cached) " >&6 15186else 15187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15188 15189else 15190 if test "$ac_cv_type_long" = yes; then 15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15193as_fn_error 77 "cannot compute sizeof (long) 15194See \`config.log' for more details" "$LINENO" 5; } 15195 else 15196 ac_cv_sizeof_long=0 15197 fi 15198fi 15199 15200fi 15201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 15202$as_echo "$ac_cv_sizeof_long" >&6; } 15203 15204 15205 15206cat >>confdefs.h <<_ACEOF 15207#define SIZEOF_LONG $ac_cv_sizeof_long 15208_ACEOF 15209 15210 15211 # The cast to long int works around a bug in the HP C Compiler 15212# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15213# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15214# This bug is HP SR number 8606223364. 15215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 15216$as_echo_n "checking size of short... " >&6; } 15217if ${ac_cv_sizeof_short+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 15221 15222else 15223 if test "$ac_cv_type_short" = yes; then 15224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15226as_fn_error 77 "cannot compute sizeof (short) 15227See \`config.log' for more details" "$LINENO" 5; } 15228 else 15229 ac_cv_sizeof_short=0 15230 fi 15231fi 15232 15233fi 15234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 15235$as_echo "$ac_cv_sizeof_short" >&6; } 15236 15237 15238 15239cat >>confdefs.h <<_ACEOF 15240#define SIZEOF_SHORT $ac_cv_sizeof_short 15241_ACEOF 15242 15243 15244 15245 # ------------ 15246 # AC_CHECK_LIB 15247 # ------------ 15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 15249$as_echo_n "checking for pathfind in -lgen... " >&6; } 15250if ${ac_cv_lib_gen_pathfind+:} false; then : 15251 $as_echo_n "(cached) " >&6 15252else 15253 ac_check_lib_save_LIBS=$LIBS 15254LIBS="-lgen $LIBS" 15255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15256/* end confdefs.h. */ 15257 15258/* Override any GCC internal prototype to avoid an error. 15259 Use char because int might match the return type of a GCC 15260 builtin and then its argument prototype would still apply. */ 15261#ifdef __cplusplus 15262extern "C" 15263#endif 15264char pathfind (); 15265int 15266main () 15267{ 15268return pathfind (); 15269 ; 15270 return 0; 15271} 15272_ACEOF 15273if ac_fn_c_try_link "$LINENO"; then : 15274 ac_cv_lib_gen_pathfind=yes 15275else 15276 ac_cv_lib_gen_pathfind=no 15277fi 15278rm -f core conftest.err conftest.$ac_objext \ 15279 conftest$ac_exeext conftest.$ac_ext 15280LIBS=$ac_check_lib_save_LIBS 15281fi 15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 15283$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 15284if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 15285 cat >>confdefs.h <<_ACEOF 15286#define HAVE_LIBGEN 1 15287_ACEOF 15288 15289 LIBS="-lgen $LIBS" 15290 15291fi 15292 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 15294$as_echo_n "checking for gettext in -lintl... " >&6; } 15295if ${ac_cv_lib_intl_gettext+:} false; then : 15296 $as_echo_n "(cached) " >&6 15297else 15298 ac_check_lib_save_LIBS=$LIBS 15299LIBS="-lintl $LIBS" 15300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15301/* end confdefs.h. */ 15302 15303/* Override any GCC internal prototype to avoid an error. 15304 Use char because int might match the return type of a GCC 15305 builtin and then its argument prototype would still apply. */ 15306#ifdef __cplusplus 15307extern "C" 15308#endif 15309char gettext (); 15310int 15311main () 15312{ 15313return gettext (); 15314 ; 15315 return 0; 15316} 15317_ACEOF 15318if ac_fn_c_try_link "$LINENO"; then : 15319 ac_cv_lib_intl_gettext=yes 15320else 15321 ac_cv_lib_intl_gettext=no 15322fi 15323rm -f core conftest.err conftest.$ac_objext \ 15324 conftest$ac_exeext conftest.$ac_ext 15325LIBS=$ac_check_lib_save_LIBS 15326fi 15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 15328$as_echo "$ac_cv_lib_intl_gettext" >&6; } 15329if test "x$ac_cv_lib_intl_gettext" = xyes; then : 15330 cat >>confdefs.h <<_ACEOF 15331#define HAVE_LIBINTL 1 15332_ACEOF 15333 15334 LIBS="-lintl $LIBS" 15335 15336fi 15337 15338 for ac_func in vprintf 15339do : 15340 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 15341if test "x$ac_cv_func_vprintf" = xyes; then : 15342 cat >>confdefs.h <<_ACEOF 15343#define HAVE_VPRINTF 1 15344_ACEOF 15345 15346ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 15347if test "x$ac_cv_func__doprnt" = xyes; then : 15348 15349$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 15350 15351fi 15352 15353fi 15354done 15355 15356 15357 for ac_header in vfork.h 15358do : 15359 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15360if test "x$ac_cv_header_vfork_h" = xyes; then : 15361 cat >>confdefs.h <<_ACEOF 15362#define HAVE_VFORK_H 1 15363_ACEOF 15364 15365fi 15366 15367done 15368 15369for ac_func in fork vfork 15370do : 15371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15373if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15374 cat >>confdefs.h <<_ACEOF 15375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15376_ACEOF 15377 15378fi 15379done 15380 15381if test "x$ac_cv_func_fork" = xyes; then 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15383$as_echo_n "checking for working fork... " >&6; } 15384if ${ac_cv_func_fork_works+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 if test "$cross_compiling" = yes; then : 15388 ac_cv_func_fork_works=cross 15389else 15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15391/* end confdefs.h. */ 15392$ac_includes_default 15393int 15394main () 15395{ 15396 15397 /* By Ruediger Kuhlmann. */ 15398 return fork () < 0; 15399 15400 ; 15401 return 0; 15402} 15403_ACEOF 15404if ac_fn_c_try_run "$LINENO"; then : 15405 ac_cv_func_fork_works=yes 15406else 15407 ac_cv_func_fork_works=no 15408fi 15409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15410 conftest.$ac_objext conftest.beam conftest.$ac_ext 15411fi 15412 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15415$as_echo "$ac_cv_func_fork_works" >&6; } 15416 15417else 15418 ac_cv_func_fork_works=$ac_cv_func_fork 15419fi 15420if test "x$ac_cv_func_fork_works" = xcross; then 15421 case $host in 15422 *-*-amigaos* | *-*-msdosdjgpp*) 15423 # Override, as these systems have only a dummy fork() stub 15424 ac_cv_func_fork_works=no 15425 ;; 15426 *) 15427 ac_cv_func_fork_works=yes 15428 ;; 15429 esac 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15431$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15432fi 15433ac_cv_func_vfork_works=$ac_cv_func_vfork 15434if test "x$ac_cv_func_vfork" = xyes; then 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15436$as_echo_n "checking for working vfork... " >&6; } 15437if ${ac_cv_func_vfork_works+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 if test "$cross_compiling" = yes; then : 15441 ac_cv_func_vfork_works=cross 15442else 15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15444/* end confdefs.h. */ 15445/* Thanks to Paul Eggert for this test. */ 15446$ac_includes_default 15447#include <sys/wait.h> 15448#ifdef HAVE_VFORK_H 15449# include <vfork.h> 15450#endif 15451/* On some sparc systems, changes by the child to local and incoming 15452 argument registers are propagated back to the parent. The compiler 15453 is told about this with #include <vfork.h>, but some compilers 15454 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15455 static variable whose address is put into a register that is 15456 clobbered by the vfork. */ 15457static void 15458#ifdef __cplusplus 15459sparc_address_test (int arg) 15460# else 15461sparc_address_test (arg) int arg; 15462#endif 15463{ 15464 static pid_t child; 15465 if (!child) { 15466 child = vfork (); 15467 if (child < 0) { 15468 perror ("vfork"); 15469 _exit(2); 15470 } 15471 if (!child) { 15472 arg = getpid(); 15473 write(-1, "", 0); 15474 _exit (arg); 15475 } 15476 } 15477} 15478 15479int 15480main () 15481{ 15482 pid_t parent = getpid (); 15483 pid_t child; 15484 15485 sparc_address_test (0); 15486 15487 child = vfork (); 15488 15489 if (child == 0) { 15490 /* Here is another test for sparc vfork register problems. This 15491 test uses lots of local variables, at least as many local 15492 variables as main has allocated so far including compiler 15493 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15494 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15495 reuse the register of parent for one of the local variables, 15496 since it will think that parent can't possibly be used any more 15497 in this routine. Assigning to the local variable will thus 15498 munge parent in the parent process. */ 15499 pid_t 15500 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15501 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15502 /* Convince the compiler that p..p7 are live; otherwise, it might 15503 use the same hardware register for all 8 local variables. */ 15504 if (p != p1 || p != p2 || p != p3 || p != p4 15505 || p != p5 || p != p6 || p != p7) 15506 _exit(1); 15507 15508 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15509 from child file descriptors. If the child closes a descriptor 15510 before it execs or exits, this munges the parent's descriptor 15511 as well. Test for this by closing stdout in the child. */ 15512 _exit(close(fileno(stdout)) != 0); 15513 } else { 15514 int status; 15515 struct stat st; 15516 15517 while (wait(&status) != child) 15518 ; 15519 return ( 15520 /* Was there some problem with vforking? */ 15521 child < 0 15522 15523 /* Did the child fail? (This shouldn't happen.) */ 15524 || status 15525 15526 /* Did the vfork/compiler bug occur? */ 15527 || parent != getpid() 15528 15529 /* Did the file descriptor bug occur? */ 15530 || fstat(fileno(stdout), &st) != 0 15531 ); 15532 } 15533} 15534_ACEOF 15535if ac_fn_c_try_run "$LINENO"; then : 15536 ac_cv_func_vfork_works=yes 15537else 15538 ac_cv_func_vfork_works=no 15539fi 15540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15541 conftest.$ac_objext conftest.beam conftest.$ac_ext 15542fi 15543 15544fi 15545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15546$as_echo "$ac_cv_func_vfork_works" >&6; } 15547 15548fi; 15549if test "x$ac_cv_func_fork_works" = xcross; then 15550 ac_cv_func_vfork_works=$ac_cv_func_vfork 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15552$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15553fi 15554 15555if test "x$ac_cv_func_vfork_works" = xyes; then 15556 15557$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15558 15559else 15560 15561$as_echo "#define vfork fork" >>confdefs.h 15562 15563fi 15564if test "x$ac_cv_func_fork_works" = xyes; then 15565 15566$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15567 15568fi 15569 15570 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 15571 strrchr strsignal fchmod fstat chmod 15572do : 15573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15575if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15576 cat >>confdefs.h <<_ACEOF 15577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15578_ACEOF 15579 15580fi 15581done 15582 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 15584$as_echo_n "checking for a sed that does not truncate output... " >&6; } 15585if ${ac_cv_path_SED+:} false; then : 15586 $as_echo_n "(cached) " >&6 15587else 15588 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 15589 for ac_i in 1 2 3 4 5 6 7; do 15590 ac_script="$ac_script$as_nl$ac_script" 15591 done 15592 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 15593 { ac_script=; unset ac_script;} 15594 if test -z "$SED"; then 15595 ac_path_SED_found=false 15596 # Loop through the user's path and test for each of PROGNAME-LIST 15597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15598for as_dir in $PATH 15599do 15600 IFS=$as_save_IFS 15601 test -z "$as_dir" && as_dir=. 15602 for ac_prog in sed gsed; do 15603 for ac_exec_ext in '' $ac_executable_extensions; do 15604 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 15605 as_fn_executable_p "$ac_path_SED" || continue 15606# Check for GNU ac_path_SED and select it if it is found. 15607 # Check for GNU $ac_path_SED 15608case `"$ac_path_SED" --version 2>&1` in 15609*GNU*) 15610 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 15611*) 15612 ac_count=0 15613 $as_echo_n 0123456789 >"conftest.in" 15614 while : 15615 do 15616 cat "conftest.in" "conftest.in" >"conftest.tmp" 15617 mv "conftest.tmp" "conftest.in" 15618 cp "conftest.in" "conftest.nl" 15619 $as_echo '' >> "conftest.nl" 15620 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 15621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15622 as_fn_arith $ac_count + 1 && ac_count=$as_val 15623 if test $ac_count -gt ${ac_path_SED_max-0}; then 15624 # Best one so far, save it but keep looking for a better one 15625 ac_cv_path_SED="$ac_path_SED" 15626 ac_path_SED_max=$ac_count 15627 fi 15628 # 10*(2^10) chars as input seems more than enough 15629 test $ac_count -gt 10 && break 15630 done 15631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15632esac 15633 15634 $ac_path_SED_found && break 3 15635 done 15636 done 15637 done 15638IFS=$as_save_IFS 15639 if test -z "$ac_cv_path_SED"; then 15640 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 15641 fi 15642else 15643 ac_cv_path_SED=$SED 15644fi 15645 15646fi 15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 15648$as_echo "$ac_cv_path_SED" >&6; } 15649 SED="$ac_cv_path_SED" 15650 rm -f conftest.sed 15651 15652 while : 15653 do 15654 POSIX_SHELL=`which bash` 15655 test -x "$POSIX_SHELL" && break 15656 POSIX_SHELL=`which dash` 15657 test -x "$POSIX_SHELL" && break 15658 POSIX_SHELL=/usr/xpg4/bin/sh 15659 test -x "$POSIX_SHELL" && break 15660 POSIX_SHELL=`/bin/sh -c ' 15661 exec 2>/dev/null 15662 if ! true ; then exit 1 ; fi 15663 echo /bin/sh'` 15664 test -x "$POSIX_SHELL" && break 15665 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 15666 done 15667 15668cat >>confdefs.h <<_ACEOF 15669#define POSIX_SHELL "${POSIX_SHELL}" 15670_ACEOF 15671 15672 15673 15674 15675 15676 LIBOPTS_BUILD_BLOCKED=true 15677 15678 15679 NEED_LIBOPTS_DIR='' 15680 15681 # Check whether --enable-local-libopts was given. 15682if test "${enable_local_libopts+set}" = set; then : 15683 enableval=$enable_local_libopts; 15684 if test x$enableval = xyes ; then 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 15686$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 15687 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 15688 NEED_LIBOPTS_DIR=true 15689 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 15690 fi 15691fi 15692 15693 15694 # Check whether --enable-libopts-install was given. 15695if test "${enable_libopts_install+set}" = set; then : 15696 enableval=$enable_libopts_install; 15697fi 15698 15699 if test "X${enable_libopts_install}" = Xyes; then 15700 INSTALL_LIBOPTS_TRUE= 15701 INSTALL_LIBOPTS_FALSE='#' 15702else 15703 INSTALL_LIBOPTS_TRUE='#' 15704 INSTALL_LIBOPTS_FALSE= 15705fi 15706 15707 15708 if test -z "${NEED_LIBOPTS_DIR}" ; then 15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 15710$as_echo_n "checking whether autoopts-config can be found... " >&6; } 15711 15712# Check whether --with-autoopts-config was given. 15713if test "${with_autoopts_config+set}" = set; then : 15714 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 15715else 15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 15717$as_echo_n "checking whether autoopts-config is specified... " >&6; } 15718if ${lo_cv_with_autoopts_config+:} false; then : 15719 $as_echo_n "(cached) " >&6 15720else 15721 if autoopts-config --help 2>/dev/null 1>&2 15722 then lo_cv_with_autoopts_config=autoopts-config 15723 elif libopts-config --help 2>/dev/null 1>&2 15724 then lo_cv_with_autoopts_config=libopts-config 15725 else lo_cv_with_autoopts_config=no ; fi 15726fi 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 15728$as_echo "$lo_cv_with_autoopts_config" >&6; } 15729 15730fi 15731 # end of AC_ARG_WITH 15732 15733 if ${lo_cv_test_autoopts+:} false; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 15737 if test -z "${lo_cv_with_autoopts_config}" \ 15738 -o X"${lo_cv_with_autoopts_config}" = Xno 15739 then 15740 if autoopts-config --help 2>/dev/null 1>&2 15741 then lo_cv_with_autoopts_config=autoopts-config 15742 elif libopts-config --help 2>/dev/null 1>&2 15743 then lo_cv_with_autoopts_config=libopts-config 15744 else lo_cv_with_autoopts_config=false ; fi 15745 fi 15746 lo_cv_test_autoopts=` 15747 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 15748 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 15749 then lo_cv_test_autoopts=no ; fi 15750 15751fi 15752 # end of CACHE_VAL 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 15754$as_echo "${lo_cv_test_autoopts}" >&6; } 15755 15756 if test "X${lo_cv_test_autoopts}" != Xno 15757 then 15758 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 15759 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 15760 else 15761 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 15762 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 15763 NEED_LIBOPTS_DIR=true 15764 fi 15765 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 15766 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 15767 NEED_LIBOPTS_DIR='' 15768 fi 15769 if test -n "${NEED_LIBOPTS_DIR}"; then 15770 NEED_LIBOPTS_TRUE= 15771 NEED_LIBOPTS_FALSE='#' 15772else 15773 NEED_LIBOPTS_TRUE='#' 15774 NEED_LIBOPTS_FALSE= 15775fi 15776 15777 15778 15779 LIBOPTS_DIR=sntp/libopts 15780 15781 15782# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 15783 15784 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD 15785 15786 15787 15788 15789ntp_pkgconfig_min_version='0.15.0' 15790if test -n "$ac_tool_prefix"; then 15791 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15792set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15794$as_echo_n "checking for $ac_word... " >&6; } 15795if ${ac_cv_path_PKG_CONFIG+:} false; then : 15796 $as_echo_n "(cached) " >&6 15797else 15798 case $PKG_CONFIG in 15799 [\\/]* | ?:[\\/]*) 15800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15801 ;; 15802 *) 15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15804for as_dir in $PATH 15805do 15806 IFS=$as_save_IFS 15807 test -z "$as_dir" && as_dir=. 15808 for ac_exec_ext in '' $ac_executable_extensions; do 15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15812 break 2 15813 fi 15814done 15815 done 15816IFS=$as_save_IFS 15817 15818 ;; 15819esac 15820fi 15821PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15822if test -n "$PKG_CONFIG"; then 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15824$as_echo "$PKG_CONFIG" >&6; } 15825else 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15827$as_echo "no" >&6; } 15828fi 15829 15830 15831fi 15832if test -z "$ac_cv_path_PKG_CONFIG"; then 15833 ac_pt_PKG_CONFIG=$PKG_CONFIG 15834 # Extract the first word of "pkg-config", so it can be a program name with args. 15835set dummy pkg-config; ac_word=$2 15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15837$as_echo_n "checking for $ac_word... " >&6; } 15838if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15839 $as_echo_n "(cached) " >&6 15840else 15841 case $ac_pt_PKG_CONFIG in 15842 [\\/]* | ?:[\\/]*) 15843 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15844 ;; 15845 *) 15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15847for as_dir in $PATH 15848do 15849 IFS=$as_save_IFS 15850 test -z "$as_dir" && as_dir=. 15851 for ac_exec_ext in '' $ac_executable_extensions; do 15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15853 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15855 break 2 15856 fi 15857done 15858 done 15859IFS=$as_save_IFS 15860 15861 ;; 15862esac 15863fi 15864ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15865if test -n "$ac_pt_PKG_CONFIG"; then 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15867$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15868else 15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15870$as_echo "no" >&6; } 15871fi 15872 15873 if test "x$ac_pt_PKG_CONFIG" = x; then 15874 PKG_CONFIG="" 15875 else 15876 case $cross_compiling:$ac_tool_warned in 15877yes:) 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15880ac_tool_warned=yes ;; 15881esac 15882 PKG_CONFIG=$ac_pt_PKG_CONFIG 15883 fi 15884else 15885 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15886fi 15887 15888{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 15889{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 15890 15891case "$PKG_CONFIG" in 15892 /*) 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 15894$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 15895 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15897$as_echo "yes" >&6; } 15898 else 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15900$as_echo "no" >&6; } 15901 PKG_CONFIG="" 15902 fi 15903 ;; 15904esac 15905 15906 15907 15908 15909# Check whether --enable-local-libevent was given. 15910if test "${enable_local_libevent+set}" = set; then : 15911 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 15912else 15913 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 15914 15915fi 15916 15917 15918 15919 15920 15921ntp_libevent_min_version=2 15922ntp_libevent_tearoff=sntp/libevent 15923 15924 15925 15926 15927 15928case "$ntp_use_local_libevent" in 15929 yes) 15930 ;; 15931 *) # If we have (a good enough) pkg-config, see if it can find libevent 15932 case "$PKG_CONFIG" in 15933 /*) 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 15935$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 15936 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 15937 then 15938 ntp_use_local_libevent=no 15939 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`" 15940 case "$ntp_libevent_version" in 15941 *.*) ;; 15942 *) ntp_libevent_version='(unknown)' ;; 15943 esac 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5 15945$as_echo "yes, version $ntp_libevent_version" >&6; } 15946 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 15947 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 15948 # HMS: I hope the following is accurate. 15949 # We don't need -levent, we only need -levent_core. 15950 # While we could grab only the -L stuff, there *might* be 15951 # other flags there we want. Originally we just removed -levent 15952 # but then somebody decided to install -levent-2.0 15953 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 15954 # So now we dance... 15955 LDADD_LIBEVENT= 15956 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` 15957 do 15958 case "$i" in 15959 -D*) ;; 15960 -levent*) ;; 15961 *) case "$LDADD_LIBEVENT" in 15962 '') LDADD_LIBEVENT="$i" ;; 15963 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 15964 esac 15965 ;; 15966 esac 15967 done 15968 case "$LIBISC_PTHREADS_NOTHREADS" in 15969 pthreads) 15970 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 15971 esac 15972 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 15973 else 15974 ntp_use_local_libevent=yes 15975 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 15976 # is "pthreads"? 15977 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15979$as_echo "no" >&6; } 15980 fi 15981 ;; 15982 *) 15983 ntp_use_local_libevent=yes 15984 ;; 15985 esac 15986 ;; 15987esac 15988 15989case "$ntp_use_local_libevent" in 15990 yes) 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 15992$as_echo "$as_me: Using libevent tearoff" >&6;} 15993 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 15994 case "$LIBISC_PTHREADS_NOTHREADS" in 15995 pthreads) 15996 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 15997 ;; 15998 *) 15999 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 16000 esac 16001esac 16002 16003 16004 if test "x$ntp_use_local_libevent" = "xyes"; then 16005 BUILD_LIBEVENT_TRUE= 16006 BUILD_LIBEVENT_FALSE='#' 16007else 16008 BUILD_LIBEVENT_TRUE='#' 16009 BUILD_LIBEVENT_FALSE= 16010fi 16011 16012 16013 16014 16015 16016 16017# Expose a cross-compilation indicator to makefiles 16018 if test $build != $host; then 16019 NTP_CROSSCOMPILE_TRUE= 16020 NTP_CROSSCOMPILE_FALSE='#' 16021else 16022 NTP_CROSSCOMPILE_TRUE='#' 16023 NTP_CROSSCOMPILE_FALSE= 16024fi 16025 16026 16027 16028ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16029if test "x$ac_cv_type_size_t" = xyes; then : 16030 16031else 16032 16033cat >>confdefs.h <<_ACEOF 16034#define size_t unsigned int 16035_ACEOF 16036 16037fi 16038 16039 16040 # Check whether --enable-c99-snprintf was given. 16041if test "${enable_c99_snprintf+set}" = set; then : 16042 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 16043else 16044 force_c99_snprintf=no 16045 16046fi 16047 16048 case "$force_c99_snprintf" in 16049 yes) 16050 hw_force_rpl_snprintf=yes 16051 hw_force_rpl_vsnprintf=yes 16052 esac 16053 16054 16055 16056 16057 16058 16059 for ac_header in $ac_header_list 16060do : 16061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16062ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16063" 16064if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16065 cat >>confdefs.h <<_ACEOF 16066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16067_ACEOF 16068 16069fi 16070 16071done 16072 16073 16074 16075 16076 16077 16078 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 16080$as_echo_n "checking for unsigned long long int... " >&6; } 16081if ${ac_cv_type_unsigned_long_long_int+:} false; then : 16082 $as_echo_n "(cached) " >&6 16083else 16084 ac_cv_type_unsigned_long_long_int=yes 16085 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16087/* end confdefs.h. */ 16088 16089 /* For now, do not test the preprocessor; as of 2007 there are too many 16090 implementations with broken preprocessors. Perhaps this can 16091 be revisited in 2012. In the meantime, code should not expect 16092 #if to work with literals wider than 32 bits. */ 16093 /* Test literals. */ 16094 long long int ll = 9223372036854775807ll; 16095 long long int nll = -9223372036854775807LL; 16096 unsigned long long int ull = 18446744073709551615ULL; 16097 /* Test constant expressions. */ 16098 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 16099 ? 1 : -1)]; 16100 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 16101 ? 1 : -1)]; 16102 int i = 63; 16103int 16104main () 16105{ 16106/* Test availability of runtime routines for shift and division. */ 16107 long long int llmax = 9223372036854775807ll; 16108 unsigned long long int ullmax = 18446744073709551615ull; 16109 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 16110 | (llmax / ll) | (llmax % ll) 16111 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 16112 | (ullmax / ull) | (ullmax % ull)); 16113 ; 16114 return 0; 16115} 16116 16117_ACEOF 16118if ac_fn_c_try_link "$LINENO"; then : 16119 16120else 16121 ac_cv_type_unsigned_long_long_int=no 16122fi 16123rm -f core conftest.err conftest.$ac_objext \ 16124 conftest$ac_exeext conftest.$ac_ext 16125 fi 16126fi 16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 16128$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 16129 if test $ac_cv_type_unsigned_long_long_int = yes; then 16130 16131$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 16132 16133 fi 16134 16135 16136 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 16137if test "x$ac_cv_func_vsnprintf" = xyes; then : 16138 hw_cv_func_vsnprintf=yes 16139else 16140 hw_cv_func_vsnprintf=no 16141fi 16142 16143 if test "$hw_cv_func_vsnprintf" = yes; then : 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 16145$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 16146if ${hw_cv_func_vsnprintf_c99+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 if test "$cross_compiling" = yes; then : 16150 hw_cv_func_vsnprintf_c99=no 16151else 16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16153/* end confdefs.h. */ 16154#if HAVE_STDARG_H 16155 #include <stdarg.h> 16156 #endif 16157 #include <stdio.h> 16158 static int testprintf(char *buf, size_t size, const char *format, ...) 16159 { 16160 int result; 16161 va_list ap; 16162 va_start(ap, format); 16163 result = vsnprintf(buf, size, format, ap); 16164 va_end(ap); 16165 return result; 16166 } 16167int 16168main () 16169{ 16170char buf[43]; 16171 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 16172 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 16173 buf[0] != 'T' || buf[3] != '\0') 16174 return 1; 16175 ; 16176 return 0; 16177} 16178_ACEOF 16179if ac_fn_c_try_run "$LINENO"; then : 16180 hw_cv_func_vsnprintf_c99=yes 16181else 16182 hw_cv_func_vsnprintf_c99=no 16183fi 16184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16185 conftest.$ac_objext conftest.beam conftest.$ac_ext 16186fi 16187 16188fi 16189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 16190$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 16191else 16192 hw_cv_func_vsnprintf_c99=no 16193fi 16194 16195$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 16196 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 16198$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 16199 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 16200 hw_use_rpl_vsnprintf=yes 16201else 16202 hw_use_rpl_vsnprintf=no 16203fi 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 16205$as_echo "$hw_use_rpl_vsnprintf" >&6; } 16206 if test "$hw_use_rpl_vsnprintf" = yes; then : 16207 16208$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 16209 16210 if test ${hw_nodef_vsnprintf=no} = no; then : 16211 16212$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 16213 16214fi 16215 for ac_header in inttypes.h locale.h stddef.h stdint.h 16216do : 16217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16218ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16220 cat >>confdefs.h <<_ACEOF 16221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16222_ACEOF 16223 16224fi 16225 16226done 16227 16228 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 16229" 16230if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 16231 16232cat >>confdefs.h <<_ACEOF 16233#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 16234_ACEOF 16235 16236 16237fi 16238ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 16239" 16240if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 16241 16242cat >>confdefs.h <<_ACEOF 16243#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 16244_ACEOF 16245 16246 16247fi 16248 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 16251$as_echo_n "checking for long double... " >&6; } 16252if ${ac_cv_type_long_double+:} false; then : 16253 $as_echo_n "(cached) " >&6 16254else 16255 if test "$GCC" = yes; then 16256 ac_cv_type_long_double=yes 16257 else 16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16259/* end confdefs.h. */ 16260/* The Stardent Vistra knows sizeof (long double), but does 16261 not support it. */ 16262 long double foo = 0.0L; 16263int 16264main () 16265{ 16266static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 16267 sizeof (double) <= sizeof (long double))]; 16268test_array [0] = 0; 16269return test_array [0]; 16270 16271 ; 16272 return 0; 16273} 16274_ACEOF 16275if ac_fn_c_try_compile "$LINENO"; then : 16276 ac_cv_type_long_double=yes 16277else 16278 ac_cv_type_long_double=no 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16281 fi 16282fi 16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 16284$as_echo "$ac_cv_type_long_double" >&6; } 16285 if test $ac_cv_type_long_double = yes; then 16286 16287$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 16288 16289 fi 16290 16291 16292 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 16294$as_echo_n "checking for long long int... " >&6; } 16295if ${ac_cv_type_long_long_int+:} false; then : 16296 $as_echo_n "(cached) " >&6 16297else 16298 ac_cv_type_long_long_int=yes 16299 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 16300 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 16301 if test $ac_cv_type_long_long_int = yes; then 16302 if test "$cross_compiling" = yes; then : 16303 : 16304else 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307#include <limits.h> 16308 #ifndef LLONG_MAX 16309 # define HALF \ 16310 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 16311 # define LLONG_MAX (HALF - 1 + HALF) 16312 #endif 16313int 16314main () 16315{ 16316long long int n = 1; 16317 int i; 16318 for (i = 0; ; i++) 16319 { 16320 long long int m = n << i; 16321 if (m >> i != n) 16322 return 1; 16323 if (LLONG_MAX / 2 < m) 16324 break; 16325 } 16326 return 0; 16327 ; 16328 return 0; 16329} 16330_ACEOF 16331if ac_fn_c_try_run "$LINENO"; then : 16332 16333else 16334 ac_cv_type_long_long_int=no 16335fi 16336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16337 conftest.$ac_objext conftest.beam conftest.$ac_ext 16338fi 16339 16340 fi 16341 fi 16342fi 16343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 16344$as_echo "$ac_cv_type_long_long_int" >&6; } 16345 if test $ac_cv_type_long_long_int = yes; then 16346 16347$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 16348 16349 fi 16350 16351 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 16353$as_echo_n "checking for unsigned long long int... " >&6; } 16354if ${ac_cv_type_unsigned_long_long_int+:} false; then : 16355 $as_echo_n "(cached) " >&6 16356else 16357 ac_cv_type_unsigned_long_long_int=yes 16358 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361 16362 /* For now, do not test the preprocessor; as of 2007 there are too many 16363 implementations with broken preprocessors. Perhaps this can 16364 be revisited in 2012. In the meantime, code should not expect 16365 #if to work with literals wider than 32 bits. */ 16366 /* Test literals. */ 16367 long long int ll = 9223372036854775807ll; 16368 long long int nll = -9223372036854775807LL; 16369 unsigned long long int ull = 18446744073709551615ULL; 16370 /* Test constant expressions. */ 16371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 16372 ? 1 : -1)]; 16373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 16374 ? 1 : -1)]; 16375 int i = 63; 16376int 16377main () 16378{ 16379/* Test availability of runtime routines for shift and division. */ 16380 long long int llmax = 9223372036854775807ll; 16381 unsigned long long int ullmax = 18446744073709551615ull; 16382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 16383 | (llmax / ll) | (llmax % ll) 16384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 16385 | (ullmax / ull) | (ullmax % ull)); 16386 ; 16387 return 0; 16388} 16389 16390_ACEOF 16391if ac_fn_c_try_link "$LINENO"; then : 16392 16393else 16394 ac_cv_type_unsigned_long_long_int=no 16395fi 16396rm -f core conftest.err conftest.$ac_objext \ 16397 conftest$ac_exeext conftest.$ac_ext 16398 fi 16399fi 16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 16401$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 16402 if test $ac_cv_type_unsigned_long_long_int = yes; then 16403 16404$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 16405 16406 fi 16407 16408 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16409if test "x$ac_cv_type_size_t" = xyes; then : 16410 16411else 16412 16413cat >>confdefs.h <<_ACEOF 16414#define size_t unsigned int 16415_ACEOF 16416 16417fi 16418 16419 16420 16421 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 16422if test "x$ac_cv_type_intmax_t" = xyes; then : 16423 16424$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 16425 16426else 16427 test $ac_cv_type_long_long_int = yes \ 16428 && ac_type='long long int' \ 16429 || ac_type='long int' 16430 16431cat >>confdefs.h <<_ACEOF 16432#define intmax_t $ac_type 16433_ACEOF 16434 16435fi 16436 16437 16438 16439 16440 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 16441if test "x$ac_cv_type_uintmax_t" = xyes; then : 16442 16443$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 16444 16445else 16446 test $ac_cv_type_unsigned_long_long_int = yes \ 16447 && ac_type='unsigned long long int' \ 16448 || ac_type='unsigned long int' 16449 16450cat >>confdefs.h <<_ACEOF 16451#define uintmax_t $ac_type 16452_ACEOF 16453 16454fi 16455 16456 16457 16458 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16459if test "x$ac_cv_type_uintptr_t" = xyes; then : 16460 16461$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 16462 16463else 16464 for ac_type in 'unsigned int' 'unsigned long int' \ 16465 'unsigned long long int'; do 16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16467/* end confdefs.h. */ 16468$ac_includes_default 16469int 16470main () 16471{ 16472static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16473test_array [0] = 0; 16474return test_array [0]; 16475 16476 ; 16477 return 0; 16478} 16479_ACEOF 16480if ac_fn_c_try_compile "$LINENO"; then : 16481 16482cat >>confdefs.h <<_ACEOF 16483#define uintptr_t $ac_type 16484_ACEOF 16485 16486 ac_type= 16487fi 16488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16489 test -z "$ac_type" && break 16490 done 16491fi 16492 16493 16494 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16495if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16496 16497cat >>confdefs.h <<_ACEOF 16498#define HAVE_PTRDIFF_T 1 16499_ACEOF 16500 16501 16502fi 16503 16504 for ac_func in localeconv 16505do : 16506 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 16507if test "x$ac_cv_func_localeconv" = xyes; then : 16508 cat >>confdefs.h <<_ACEOF 16509#define HAVE_LOCALECONV 1 16510_ACEOF 16511 16512fi 16513done 16514 16515 16516 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16518$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16519if ${ac_cv_c_const+:} false; then : 16520 $as_echo_n "(cached) " >&6 16521else 16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16523/* end confdefs.h. */ 16524 16525int 16526main () 16527{ 16528 16529#ifndef __cplusplus 16530 /* Ultrix mips cc rejects this sort of thing. */ 16531 typedef int charset[2]; 16532 const charset cs = { 0, 0 }; 16533 /* SunOS 4.1.1 cc rejects this. */ 16534 char const *const *pcpcc; 16535 char **ppc; 16536 /* NEC SVR4.0.2 mips cc rejects this. */ 16537 struct point {int x, y;}; 16538 static struct point const zero = {0,0}; 16539 /* AIX XL C 1.02.0.0 rejects this. 16540 It does not let you subtract one const X* pointer from another in 16541 an arm of an if-expression whose if-part is not a constant 16542 expression */ 16543 const char *g = "string"; 16544 pcpcc = &g + (g ? g-g : 0); 16545 /* HPUX 7.0 cc rejects these. */ 16546 ++pcpcc; 16547 ppc = (char**) pcpcc; 16548 pcpcc = (char const *const *) ppc; 16549 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16550 char tx; 16551 char *t = &tx; 16552 char const *s = 0 ? (char *) 0 : (char const *) 0; 16553 16554 *t++ = 0; 16555 if (s) return 0; 16556 } 16557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16558 int x[] = {25, 17}; 16559 const int *foo = &x[0]; 16560 ++foo; 16561 } 16562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16563 typedef const int *iptr; 16564 iptr p = 0; 16565 ++p; 16566 } 16567 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16569 struct s { int j; const int *ap[3]; } bx; 16570 struct s *b = &bx; b->j = 5; 16571 } 16572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16573 const int foo = 10; 16574 if (!foo) return 0; 16575 } 16576 return !cs[0] && !zero.x; 16577#endif 16578 16579 ; 16580 return 0; 16581} 16582_ACEOF 16583if ac_fn_c_try_compile "$LINENO"; then : 16584 ac_cv_c_const=yes 16585else 16586 ac_cv_c_const=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16589fi 16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16591$as_echo "$ac_cv_c_const" >&6; } 16592if test $ac_cv_c_const = no; then 16593 16594$as_echo "#define const /**/" >>confdefs.h 16595 16596fi 16597 16598 16599 16600 16601 case " $LIBOBJS " in 16602 *" snprintf.$ac_objext "* ) ;; 16603 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 16604 ;; 16605esac 16606 16607 _hw_cv_func_xprintf_replace_done=yes 16608fi 16609 16610fi 16611 16612 16613 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 16614if test "x$ac_cv_func_snprintf" = xyes; then : 16615 hw_cv_func_snprintf=yes 16616else 16617 hw_cv_func_snprintf=no 16618fi 16619 16620 if test "$hw_cv_func_snprintf" = yes; then : 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 16622$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 16623if ${hw_cv_func_snprintf_c99+:} false; then : 16624 $as_echo_n "(cached) " >&6 16625else 16626 if test "$cross_compiling" = yes; then : 16627 hw_cv_func_snprintf_c99=no 16628else 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631#include <stdio.h> 16632int 16633main () 16634{ 16635char buf[43]; 16636 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 16637 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 16638 buf[0] != 'T' || buf[3] != '\0') 16639 return 1; 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644if ac_fn_c_try_run "$LINENO"; then : 16645 hw_cv_func_snprintf_c99=yes 16646else 16647 hw_cv_func_snprintf_c99=no 16648fi 16649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16650 conftest.$ac_objext conftest.beam conftest.$ac_ext 16651fi 16652 16653fi 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 16655$as_echo "$hw_cv_func_snprintf_c99" >&6; } 16656else 16657 hw_cv_func_snprintf_c99=no 16658fi 16659 16660$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 16661 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 16663$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 16664 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 16665 hw_use_rpl_snprintf=yes 16666else 16667 hw_use_rpl_snprintf=no 16668fi 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 16670$as_echo "$hw_use_rpl_snprintf" >&6; } 16671 if test "$hw_use_rpl_snprintf" = yes; then : 16672 16673$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 16674 16675 if test ${hw_nodef_snprintf=no} = no; then : 16676 16677$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 16678 16679fi 16680 16681 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16683$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16684if ${ac_cv_c_const+:} false; then : 16685 $as_echo_n "(cached) " >&6 16686else 16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16688/* end confdefs.h. */ 16689 16690int 16691main () 16692{ 16693 16694#ifndef __cplusplus 16695 /* Ultrix mips cc rejects this sort of thing. */ 16696 typedef int charset[2]; 16697 const charset cs = { 0, 0 }; 16698 /* SunOS 4.1.1 cc rejects this. */ 16699 char const *const *pcpcc; 16700 char **ppc; 16701 /* NEC SVR4.0.2 mips cc rejects this. */ 16702 struct point {int x, y;}; 16703 static struct point const zero = {0,0}; 16704 /* AIX XL C 1.02.0.0 rejects this. 16705 It does not let you subtract one const X* pointer from another in 16706 an arm of an if-expression whose if-part is not a constant 16707 expression */ 16708 const char *g = "string"; 16709 pcpcc = &g + (g ? g-g : 0); 16710 /* HPUX 7.0 cc rejects these. */ 16711 ++pcpcc; 16712 ppc = (char**) pcpcc; 16713 pcpcc = (char const *const *) ppc; 16714 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16715 char tx; 16716 char *t = &tx; 16717 char const *s = 0 ? (char *) 0 : (char const *) 0; 16718 16719 *t++ = 0; 16720 if (s) return 0; 16721 } 16722 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16723 int x[] = {25, 17}; 16724 const int *foo = &x[0]; 16725 ++foo; 16726 } 16727 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16728 typedef const int *iptr; 16729 iptr p = 0; 16730 ++p; 16731 } 16732 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16733 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16734 struct s { int j; const int *ap[3]; } bx; 16735 struct s *b = &bx; b->j = 5; 16736 } 16737 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16738 const int foo = 10; 16739 if (!foo) return 0; 16740 } 16741 return !cs[0] && !zero.x; 16742#endif 16743 16744 ; 16745 return 0; 16746} 16747_ACEOF 16748if ac_fn_c_try_compile "$LINENO"; then : 16749 ac_cv_c_const=yes 16750else 16751 ac_cv_c_const=no 16752fi 16753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16754fi 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16756$as_echo "$ac_cv_c_const" >&6; } 16757if test $ac_cv_c_const = no; then 16758 16759$as_echo "#define const /**/" >>confdefs.h 16760 16761fi 16762 16763 16764 16765 16766 case " $LIBOBJS " in 16767 *" snprintf.$ac_objext "* ) ;; 16768 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 16769 ;; 16770esac 16771 16772 _hw_cv_func_xprintf_replace_done=yes 16773fi 16774 16775fi 16776 16777 16778 16779 16780 16781# HMS: Save $LIBS and empty it. 16782# any LIBS we add here should go in to LDADD_LIBNTP 16783 16784__LIBS=$LIBS 16785LIBS= 16786 16787 16788 16789# [Bug 2332] because we need to know if we are using GNU ld... 16790 16791 16792# Check whether --with-gnu-ld was given. 16793if test "${with_gnu_ld+set}" = set; then : 16794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 16795else 16796 with_gnu_ld=no 16797fi 16798 16799ac_prog=ld 16800if test yes = "$GCC"; then 16801 # Check if gcc -print-prog-name=ld gives a path. 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16803$as_echo_n "checking for ld used by $CC... " >&6; } 16804 case $host in 16805 *-*-mingw*) 16806 # gcc leaves a trailing carriage return, which upsets mingw 16807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16808 *) 16809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16810 esac 16811 case $ac_prog in 16812 # Accept absolute paths. 16813 [\\/]* | ?:[\\/]*) 16814 re_direlt='/[^/][^/]*/\.\./' 16815 # Canonicalize the pathname of ld 16816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16819 done 16820 test -z "$LD" && LD=$ac_prog 16821 ;; 16822 "") 16823 # If it fails, then pretend we aren't using GCC. 16824 ac_prog=ld 16825 ;; 16826 *) 16827 # If it is relative, then search for the first ld in PATH. 16828 with_gnu_ld=unknown 16829 ;; 16830 esac 16831elif test yes = "$with_gnu_ld"; then 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16833$as_echo_n "checking for GNU ld... " >&6; } 16834else 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16836$as_echo_n "checking for non-GNU ld... " >&6; } 16837fi 16838if ${lt_cv_path_LD+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 if test -z "$LD"; then 16842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16843 for ac_dir in $PATH; do 16844 IFS=$lt_save_ifs 16845 test -z "$ac_dir" && ac_dir=. 16846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16847 lt_cv_path_LD=$ac_dir/$ac_prog 16848 # Check to see if the program is GNU ld. I'd rather use --version, 16849 # but apparently some variants of GNU ld only accept -v. 16850 # Break only if it was the GNU/non-GNU ld that we prefer. 16851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16852 *GNU* | *'with BFD'*) 16853 test no != "$with_gnu_ld" && break 16854 ;; 16855 *) 16856 test yes != "$with_gnu_ld" && break 16857 ;; 16858 esac 16859 fi 16860 done 16861 IFS=$lt_save_ifs 16862else 16863 lt_cv_path_LD=$LD # Let the user override the test with a path. 16864fi 16865fi 16866 16867LD=$lt_cv_path_LD 16868if test -n "$LD"; then 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16870$as_echo "$LD" >&6; } 16871else 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16873$as_echo "no" >&6; } 16874fi 16875test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16877$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16878if ${lt_cv_prog_gnu_ld+:} false; then : 16879 $as_echo_n "(cached) " >&6 16880else 16881 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16882case `$LD -v 2>&1 </dev/null` in 16883*GNU* | *'with BFD'*) 16884 lt_cv_prog_gnu_ld=yes 16885 ;; 16886*) 16887 lt_cv_prog_gnu_ld=no 16888 ;; 16889esac 16890fi 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16892$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16893with_gnu_ld=$lt_cv_prog_gnu_ld 16894 16895 16896 16897 16898 16899 16900 16901 16902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 16903$as_echo_n "checking for directory path separator... " >&6; } 16904if ${ntp_cv_dir_sep+:} false; then : 16905 $as_echo_n "(cached) " >&6 16906else 16907 16908 case "$ntp_cv_dir_sep" in 16909 '') 16910 case "$host_os" in 16911 *djgpp | *mingw32* | *emx*) 16912 ntp_cv_dir_sep="'\\'" 16913 ;; 16914 *) 16915 ntp_cv_dir_sep="'/'" 16916 ;; 16917 esac 16918 esac 16919 16920 16921fi 16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 16923$as_echo "$ntp_cv_dir_sep" >&6; } 16924 16925cat >>confdefs.h <<_ACEOF 16926#define DIR_SEP $ntp_cv_dir_sep 16927_ACEOF 16928 16929 16930 16931 NTP_ORIG_LIBS="$LIBS" 16932 16933# Check whether --with-lineeditlibs was given. 16934if test "${with_lineeditlibs+set}" = set; then : 16935 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 16936else 16937 use_lineeditlibs="edit,editline" 16938 16939fi 16940 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 16942$as_echo_n "checking line editing libraries... " >&6; } 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 16944$as_echo "$use_lineeditlibs" >&6; } 16945 case "$use_lineeditlibs" in 16946 no) 16947 ntp_lib_lineedit=no 16948 ;; 16949 *) 16950 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 16951 for term_lib in "" termcap curses ncurses; do 16952 case "$term_lib" in 16953 '') 16954 TRY_LIB="-l$lineedit_lib" 16955 ;; 16956 *) 16957 TRY_LIB="-l$lineedit_lib -l$term_lib" 16958 ;; 16959 esac 16960 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 16962$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16964/* end confdefs.h. */ 16965 16966/* Override any GCC internal prototype to avoid an error. 16967 Use char because int might match the return type of a GCC 16968 builtin and then its argument prototype would still apply. */ 16969#ifdef __cplusplus 16970extern "C" 16971#endif 16972char readline (); 16973int 16974main () 16975{ 16976return readline (); 16977 ; 16978 return 0; 16979} 16980_ACEOF 16981if ac_fn_c_try_link "$LINENO"; then : 16982 ntp_lib_lineedit="$TRY_LIB" 16983fi 16984rm -f core conftest.err conftest.$ac_objext \ 16985 conftest$ac_exeext conftest.$ac_ext 16986 case "$ntp_lib_lineedit" in 16987 '') 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16989$as_echo "no" >&6; } 16990 ;; 16991 *) 16992 # Use readline() 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16994$as_echo "yes" >&6; } 16995 break 16996 esac 16997 case "$term_lib" in 16998 '') 16999 # do not try el_gets without a terminal library 17000 ;; 17001 *) 17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 17003$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17005/* end confdefs.h. */ 17006 17007/* Override any GCC internal prototype to avoid an error. 17008 Use char because int might match the return type of a GCC 17009 builtin and then its argument prototype would still apply. */ 17010#ifdef __cplusplus 17011extern "C" 17012#endif 17013char el_gets (); 17014int 17015main () 17016{ 17017return el_gets (); 17018 ; 17019 return 0; 17020} 17021_ACEOF 17022if ac_fn_c_try_link "$LINENO"; then : 17023 ntp_lib_lineedit="$TRY_LIB" 17024fi 17025rm -f core conftest.err conftest.$ac_objext \ 17026 conftest$ac_exeext conftest.$ac_ext 17027 case "$ntp_lib_lineedit" in 17028 '') 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17030$as_echo "no" >&6; } 17031 ;; 17032 *) # Use el_gets() 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17034$as_echo "yes" >&6; } 17035 break 17036 ;; 17037 esac # $ntp_lib_lineedit 17038 esac # $term_lib 17039 done 17040 case "$ntp_lib_lineedit" in 17041 '') 17042 ;; 17043 *) 17044 break 17045 ;; 17046 esac 17047 done 17048 LIBS="$NTP_ORIG_LIBS" 17049 ;; 17050 esac # $use_lineeditlibs 17051 17052 case "$ntp_lib_lineedit" in 17053 '') 17054 ntp_lib_lineedit="no" 17055 ;; 17056 no) 17057 ;; 17058 *) 17059 EDITLINE_LIBS="$ntp_lib_lineedit" 17060 17061 ;; 17062 esac # $ntp_lib_lineedit 17063 17064 case "$ntp_lib_lineedit" in 17065 no) 17066 ;; 17067 *) 17068 for ac_header in readline.h readline/readline.h histedit.h 17069do : 17070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17071ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17073 cat >>confdefs.h <<_ACEOF 17074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17075_ACEOF 17076 17077fi 17078 17079done 17080 17081 for ac_header in history.h readline/history.h 17082do : 17083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17086 cat >>confdefs.h <<_ACEOF 17087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17088_ACEOF 17089 17090fi 17091 17092done 17093 17094 17095 case "$ac_cv_header_histedit_h" in 17096 yes) 17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 17098$as_echo_n "checking number of arguments to el_init()... " >&6; } 17099if ${ntp_cv_el_init_args+:} false; then : 17100 $as_echo_n "(cached) " >&6 17101else 17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103/* end confdefs.h. */ 17104 17105 #include <stdio.h> 17106 #include <histedit.h> 17107 17108int 17109main () 17110{ 17111 17112 el_init("conftest", stdin, stdout, stderr); 17113 17114 17115 ; 17116 return 0; 17117} 17118_ACEOF 17119if ac_fn_c_try_compile "$LINENO"; then : 17120 ntp_cv_el_init_args=4 17121else 17122 ntp_cv_el_init_args=3 17123 17124fi 17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17126 17127fi 17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 17129$as_echo "$ntp_cv_el_init_args" >&6; } 17130 17131cat >>confdefs.h <<_ACEOF 17132#define EL_INIT_ARGS $ntp_cv_el_init_args 17133_ACEOF 17134 17135 esac 17136 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 17138$as_echo_n "checking whether readline supports history... " >&6; } 17139 17140 ntp_lib_lineedit_history="no" 17141 ORIG_LIBS="$LIBS" 17142 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144/* end confdefs.h. */ 17145 17146/* Override any GCC internal prototype to avoid an error. 17147 Use char because int might match the return type of a GCC 17148 builtin and then its argument prototype would still apply. */ 17149#ifdef __cplusplus 17150extern "C" 17151#endif 17152char add_history (); 17153int 17154main () 17155{ 17156return add_history (); 17157 ; 17158 return 0; 17159} 17160_ACEOF 17161if ac_fn_c_try_link "$LINENO"; then : 17162 ntp_lib_lineedit_history="yes" 17163fi 17164rm -f core conftest.err conftest.$ac_objext \ 17165 conftest$ac_exeext conftest.$ac_ext 17166 LIBS="$ORIG_LIBS" 17167 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 17169$as_echo "$ntp_lib_lineedit_history" >&6; } 17170 17171 case "$ntp_lib_lineedit_history" in 17172 yes) 17173 17174$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 17175 17176 esac 17177 esac # $ntp_lib_lineedit 17178 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 17179 { ORIG_LIBS=; unset ORIG_LIBS;} 17180 { TRY_LIB=; unset TRY_LIB;} 17181 { use_lineeditlibs=; unset use_lineeditlibs;} 17182 17183 17184LIBM= 17185case "$host" in 17186 *-*-darwin*) 17187 ;; 17188 *) 17189 _libs=$LIBS 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 17191$as_echo_n "checking for library containing cos... " >&6; } 17192if ${ac_cv_search_cos+:} false; then : 17193 $as_echo_n "(cached) " >&6 17194else 17195 ac_func_search_save_LIBS=$LIBS 17196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17197/* end confdefs.h. */ 17198 17199/* Override any GCC internal prototype to avoid an error. 17200 Use char because int might match the return type of a GCC 17201 builtin and then its argument prototype would still apply. */ 17202#ifdef __cplusplus 17203extern "C" 17204#endif 17205char cos (); 17206int 17207main () 17208{ 17209return cos (); 17210 ; 17211 return 0; 17212} 17213_ACEOF 17214for ac_lib in '' m; do 17215 if test -z "$ac_lib"; then 17216 ac_res="none required" 17217 else 17218 ac_res=-l$ac_lib 17219 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17220 fi 17221 if ac_fn_c_try_link "$LINENO"; then : 17222 ac_cv_search_cos=$ac_res 17223fi 17224rm -f core conftest.err conftest.$ac_objext \ 17225 conftest$ac_exeext 17226 if ${ac_cv_search_cos+:} false; then : 17227 break 17228fi 17229done 17230if ${ac_cv_search_cos+:} false; then : 17231 17232else 17233 ac_cv_search_cos=no 17234fi 17235rm conftest.$ac_ext 17236LIBS=$ac_func_search_save_LIBS 17237fi 17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 17239$as_echo "$ac_cv_search_cos" >&6; } 17240ac_res=$ac_cv_search_cos 17241if test "$ac_res" != no; then : 17242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17243 LIBM="-lm" 17244fi 17245 17246 LIBS=$_libs 17247 ;; 17248esac 17249 17250{ _libs=; unset _libs;} 17251 17252 17253for ac_header in vfork.h 17254do : 17255 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 17256if test "x$ac_cv_header_vfork_h" = xyes; then : 17257 cat >>confdefs.h <<_ACEOF 17258#define HAVE_VFORK_H 1 17259_ACEOF 17260 17261fi 17262 17263done 17264 17265for ac_func in fork vfork 17266do : 17267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17268ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17269if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17270 cat >>confdefs.h <<_ACEOF 17271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17272_ACEOF 17273 17274fi 17275done 17276 17277if test "x$ac_cv_func_fork" = xyes; then 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 17279$as_echo_n "checking for working fork... " >&6; } 17280if ${ac_cv_func_fork_works+:} false; then : 17281 $as_echo_n "(cached) " >&6 17282else 17283 if test "$cross_compiling" = yes; then : 17284 ac_cv_func_fork_works=cross 17285else 17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17287/* end confdefs.h. */ 17288$ac_includes_default 17289int 17290main () 17291{ 17292 17293 /* By Ruediger Kuhlmann. */ 17294 return fork () < 0; 17295 17296 ; 17297 return 0; 17298} 17299_ACEOF 17300if ac_fn_c_try_run "$LINENO"; then : 17301 ac_cv_func_fork_works=yes 17302else 17303 ac_cv_func_fork_works=no 17304fi 17305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17306 conftest.$ac_objext conftest.beam conftest.$ac_ext 17307fi 17308 17309fi 17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 17311$as_echo "$ac_cv_func_fork_works" >&6; } 17312 17313else 17314 ac_cv_func_fork_works=$ac_cv_func_fork 17315fi 17316if test "x$ac_cv_func_fork_works" = xcross; then 17317 case $host in 17318 *-*-amigaos* | *-*-msdosdjgpp*) 17319 # Override, as these systems have only a dummy fork() stub 17320 ac_cv_func_fork_works=no 17321 ;; 17322 *) 17323 ac_cv_func_fork_works=yes 17324 ;; 17325 esac 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 17327$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 17328fi 17329ac_cv_func_vfork_works=$ac_cv_func_vfork 17330if test "x$ac_cv_func_vfork" = xyes; then 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 17332$as_echo_n "checking for working vfork... " >&6; } 17333if ${ac_cv_func_vfork_works+:} false; then : 17334 $as_echo_n "(cached) " >&6 17335else 17336 if test "$cross_compiling" = yes; then : 17337 ac_cv_func_vfork_works=cross 17338else 17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17340/* end confdefs.h. */ 17341/* Thanks to Paul Eggert for this test. */ 17342$ac_includes_default 17343#include <sys/wait.h> 17344#ifdef HAVE_VFORK_H 17345# include <vfork.h> 17346#endif 17347/* On some sparc systems, changes by the child to local and incoming 17348 argument registers are propagated back to the parent. The compiler 17349 is told about this with #include <vfork.h>, but some compilers 17350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 17351 static variable whose address is put into a register that is 17352 clobbered by the vfork. */ 17353static void 17354#ifdef __cplusplus 17355sparc_address_test (int arg) 17356# else 17357sparc_address_test (arg) int arg; 17358#endif 17359{ 17360 static pid_t child; 17361 if (!child) { 17362 child = vfork (); 17363 if (child < 0) { 17364 perror ("vfork"); 17365 _exit(2); 17366 } 17367 if (!child) { 17368 arg = getpid(); 17369 write(-1, "", 0); 17370 _exit (arg); 17371 } 17372 } 17373} 17374 17375int 17376main () 17377{ 17378 pid_t parent = getpid (); 17379 pid_t child; 17380 17381 sparc_address_test (0); 17382 17383 child = vfork (); 17384 17385 if (child == 0) { 17386 /* Here is another test for sparc vfork register problems. This 17387 test uses lots of local variables, at least as many local 17388 variables as main has allocated so far including compiler 17389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 17390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 17391 reuse the register of parent for one of the local variables, 17392 since it will think that parent can't possibly be used any more 17393 in this routine. Assigning to the local variable will thus 17394 munge parent in the parent process. */ 17395 pid_t 17396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 17397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 17398 /* Convince the compiler that p..p7 are live; otherwise, it might 17399 use the same hardware register for all 8 local variables. */ 17400 if (p != p1 || p != p2 || p != p3 || p != p4 17401 || p != p5 || p != p6 || p != p7) 17402 _exit(1); 17403 17404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 17405 from child file descriptors. If the child closes a descriptor 17406 before it execs or exits, this munges the parent's descriptor 17407 as well. Test for this by closing stdout in the child. */ 17408 _exit(close(fileno(stdout)) != 0); 17409 } else { 17410 int status; 17411 struct stat st; 17412 17413 while (wait(&status) != child) 17414 ; 17415 return ( 17416 /* Was there some problem with vforking? */ 17417 child < 0 17418 17419 /* Did the child fail? (This shouldn't happen.) */ 17420 || status 17421 17422 /* Did the vfork/compiler bug occur? */ 17423 || parent != getpid() 17424 17425 /* Did the file descriptor bug occur? */ 17426 || fstat(fileno(stdout), &st) != 0 17427 ); 17428 } 17429} 17430_ACEOF 17431if ac_fn_c_try_run "$LINENO"; then : 17432 ac_cv_func_vfork_works=yes 17433else 17434 ac_cv_func_vfork_works=no 17435fi 17436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17437 conftest.$ac_objext conftest.beam conftest.$ac_ext 17438fi 17439 17440fi 17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 17442$as_echo "$ac_cv_func_vfork_works" >&6; } 17443 17444fi; 17445if test "x$ac_cv_func_fork_works" = xcross; then 17446 ac_cv_func_vfork_works=$ac_cv_func_vfork 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 17448$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 17449fi 17450 17451if test "x$ac_cv_func_vfork_works" = xyes; then 17452 17453$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 17454 17455else 17456 17457$as_echo "#define vfork fork" >>confdefs.h 17458 17459fi 17460if test "x$ac_cv_func_fork_works" = xyes; then 17461 17462$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 17463 17464fi 17465 17466# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 17467# for constant arguments. Useless! 17468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 17469$as_echo_n "checking for working alloca.h... " >&6; } 17470if ${ac_cv_working_alloca_h+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475#include <alloca.h> 17476int 17477main () 17478{ 17479char *p = (char *) alloca (2 * sizeof (int)); 17480 if (p) return 0; 17481 ; 17482 return 0; 17483} 17484_ACEOF 17485if ac_fn_c_try_link "$LINENO"; then : 17486 ac_cv_working_alloca_h=yes 17487else 17488 ac_cv_working_alloca_h=no 17489fi 17490rm -f core conftest.err conftest.$ac_objext \ 17491 conftest$ac_exeext conftest.$ac_ext 17492fi 17493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 17494$as_echo "$ac_cv_working_alloca_h" >&6; } 17495if test $ac_cv_working_alloca_h = yes; then 17496 17497$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 17498 17499fi 17500 17501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 17502$as_echo_n "checking for alloca... " >&6; } 17503if ${ac_cv_func_alloca_works+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508#ifdef __GNUC__ 17509# define alloca __builtin_alloca 17510#else 17511# ifdef _MSC_VER 17512# include <malloc.h> 17513# define alloca _alloca 17514# else 17515# ifdef HAVE_ALLOCA_H 17516# include <alloca.h> 17517# else 17518# ifdef _AIX 17519 #pragma alloca 17520# else 17521# ifndef alloca /* predefined by HP cc +Olibcalls */ 17522void *alloca (size_t); 17523# endif 17524# endif 17525# endif 17526# endif 17527#endif 17528 17529int 17530main () 17531{ 17532char *p = (char *) alloca (1); 17533 if (p) return 0; 17534 ; 17535 return 0; 17536} 17537_ACEOF 17538if ac_fn_c_try_link "$LINENO"; then : 17539 ac_cv_func_alloca_works=yes 17540else 17541 ac_cv_func_alloca_works=no 17542fi 17543rm -f core conftest.err conftest.$ac_objext \ 17544 conftest$ac_exeext conftest.$ac_ext 17545fi 17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 17547$as_echo "$ac_cv_func_alloca_works" >&6; } 17548 17549if test $ac_cv_func_alloca_works = yes; then 17550 17551$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 17552 17553else 17554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 17555# that cause trouble. Some versions do not even contain alloca or 17556# contain a buggy version. If you still want to use their alloca, 17557# use ar to extract alloca.o from them instead of compiling alloca.c. 17558 17559ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 17560 17561$as_echo "#define C_ALLOCA 1" >>confdefs.h 17562 17563 17564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 17565$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 17566if ${ac_cv_os_cray+:} false; then : 17567 $as_echo_n "(cached) " >&6 17568else 17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570/* end confdefs.h. */ 17571#if defined CRAY && ! defined CRAY2 17572webecray 17573#else 17574wenotbecray 17575#endif 17576 17577_ACEOF 17578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17579 $EGREP "webecray" >/dev/null 2>&1; then : 17580 ac_cv_os_cray=yes 17581else 17582 ac_cv_os_cray=no 17583fi 17584rm -f conftest* 17585 17586fi 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 17588$as_echo "$ac_cv_os_cray" >&6; } 17589if test $ac_cv_os_cray = yes; then 17590 for ac_func in _getb67 GETB67 getb67; do 17591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17593if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17594 17595cat >>confdefs.h <<_ACEOF 17596#define CRAY_STACKSEG_END $ac_func 17597_ACEOF 17598 17599 break 17600fi 17601 17602 done 17603fi 17604 17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 17606$as_echo_n "checking stack direction for C alloca... " >&6; } 17607if ${ac_cv_c_stack_direction+:} false; then : 17608 $as_echo_n "(cached) " >&6 17609else 17610 if test "$cross_compiling" = yes; then : 17611 ac_cv_c_stack_direction=0 17612else 17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17614/* end confdefs.h. */ 17615$ac_includes_default 17616int 17617find_stack_direction (int *addr, int depth) 17618{ 17619 int dir, dummy = 0; 17620 if (! addr) 17621 addr = &dummy; 17622 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 17623 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 17624 return dir + dummy; 17625} 17626 17627int 17628main (int argc, char **argv) 17629{ 17630 return find_stack_direction (0, argc + !argv + 20) < 0; 17631} 17632_ACEOF 17633if ac_fn_c_try_run "$LINENO"; then : 17634 ac_cv_c_stack_direction=1 17635else 17636 ac_cv_c_stack_direction=-1 17637fi 17638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17639 conftest.$ac_objext conftest.beam conftest.$ac_ext 17640fi 17641 17642fi 17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17644$as_echo "$ac_cv_c_stack_direction" >&6; } 17645cat >>confdefs.h <<_ACEOF 17646#define STACK_DIRECTION $ac_cv_c_stack_direction 17647_ACEOF 17648 17649 17650fi 17651 17652ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 17653if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 17654 ac_have_decl=1 17655else 17656 ac_have_decl=0 17657fi 17658 17659cat >>confdefs.h <<_ACEOF 17660#define HAVE_DECL_STRERROR_R $ac_have_decl 17661_ACEOF 17662 17663for ac_func in strerror_r 17664do : 17665 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 17666if test "x$ac_cv_func_strerror_r" = xyes; then : 17667 cat >>confdefs.h <<_ACEOF 17668#define HAVE_STRERROR_R 1 17669_ACEOF 17670 17671fi 17672done 17673 17674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 17675$as_echo_n "checking whether strerror_r returns char *... " >&6; } 17676if ${ac_cv_func_strerror_r_char_p+:} false; then : 17677 $as_echo_n "(cached) " >&6 17678else 17679 17680 ac_cv_func_strerror_r_char_p=no 17681 if test $ac_cv_have_decl_strerror_r = yes; then 17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17683/* end confdefs.h. */ 17684$ac_includes_default 17685int 17686main () 17687{ 17688 17689 char buf[100]; 17690 char x = *strerror_r (0, buf, sizeof buf); 17691 char *p = strerror_r (0, buf, sizeof buf); 17692 return !p || x; 17693 17694 ; 17695 return 0; 17696} 17697_ACEOF 17698if ac_fn_c_try_compile "$LINENO"; then : 17699 ac_cv_func_strerror_r_char_p=yes 17700fi 17701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17702 else 17703 # strerror_r is not declared. Choose between 17704 # systems that have relatively inaccessible declarations for the 17705 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 17706 # former has a strerror_r that returns char*, while the latter 17707 # has a strerror_r that returns `int'. 17708 # This test should segfault on the DEC system. 17709 if test "$cross_compiling" = yes; then : 17710 : 17711else 17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17713/* end confdefs.h. */ 17714$ac_includes_default 17715 extern char *strerror_r (); 17716int 17717main () 17718{ 17719char buf[100]; 17720 char x = *strerror_r (0, buf, sizeof buf); 17721 return ! isalpha (x); 17722 ; 17723 return 0; 17724} 17725_ACEOF 17726if ac_fn_c_try_run "$LINENO"; then : 17727 ac_cv_func_strerror_r_char_p=yes 17728fi 17729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17730 conftest.$ac_objext conftest.beam conftest.$ac_ext 17731fi 17732 17733 fi 17734 17735fi 17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 17737$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 17738if test $ac_cv_func_strerror_r_char_p = yes; then 17739 17740$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 17741 17742fi 17743 17744 17745ac_busted_vpath_in_make=no 17746case "$build" in 17747 *-*-irix6.1*) # 64 bit only 17748 # busted vpath? 17749 ;; 17750 *-*-irix6*) # 6.2 (and later?) 17751 ac_busted_vpath_in_make=yes 17752 ;; 17753 *-*-solaris2.5.1) 17754 ac_busted_vpath_in_make=yes 17755 ;; 17756 *-*-unicosmp*) 17757 ac_busted_vpath_in_make=yes 17758 ;; 17759esac 17760 17761case "$ac_busted_vpath_in_make$srcdir" in 17762 yes.|no*) 17763 ;; 17764 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 17765 '') 17766 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 17767 esac 17768 ;; 17769esac 17770 17771case "$host" in 17772 *-*-aix4*) 17773 # Bug 2516: 17774 # Was *-*-aix[[4-9]]* 17775 # XXX only verified thru AIX6. But... 17776 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 17777 # that this support would be in 5.3, removed in 6, and added back. 17778 # 17779 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 17780 # (returning ENOSYS). I didn't check 4.2. If, in the future, 17781 # IBM pulls its thumbs out long enough to implement clock_settime, 17782 # this conditional will need to change. Maybe use AC_TRY_RUN 17783 # instead to try to set the time to itself and check errno. 17784 ;; 17785 *) 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17787$as_echo_n "checking for library containing clock_gettime... " >&6; } 17788if ${ac_cv_search_clock_gettime+:} false; then : 17789 $as_echo_n "(cached) " >&6 17790else 17791 ac_func_search_save_LIBS=$LIBS 17792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17793/* end confdefs.h. */ 17794 17795/* Override any GCC internal prototype to avoid an error. 17796 Use char because int might match the return type of a GCC 17797 builtin and then its argument prototype would still apply. */ 17798#ifdef __cplusplus 17799extern "C" 17800#endif 17801char clock_gettime (); 17802int 17803main () 17804{ 17805return clock_gettime (); 17806 ; 17807 return 0; 17808} 17809_ACEOF 17810for ac_lib in '' rt; do 17811 if test -z "$ac_lib"; then 17812 ac_res="none required" 17813 else 17814 ac_res=-l$ac_lib 17815 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17816 fi 17817 if ac_fn_c_try_link "$LINENO"; then : 17818 ac_cv_search_clock_gettime=$ac_res 17819fi 17820rm -f core conftest.err conftest.$ac_objext \ 17821 conftest$ac_exeext 17822 if ${ac_cv_search_clock_gettime+:} false; then : 17823 break 17824fi 17825done 17826if ${ac_cv_search_clock_gettime+:} false; then : 17827 17828else 17829 ac_cv_search_clock_gettime=no 17830fi 17831rm conftest.$ac_ext 17832LIBS=$ac_func_search_save_LIBS 17833fi 17834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17835$as_echo "$ac_cv_search_clock_gettime" >&6; } 17836ac_res=$ac_cv_search_clock_gettime 17837if test "$ac_res" != no; then : 17838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17839 case "$ac_cv_search_clock_gettime" in 17840 'none required') ;; 17841 no) ;; 17842 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 17843 esac 17844 17845fi 17846 17847 for ac_func in clock_getres clock_gettime clock_settime 17848do : 17849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17851if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17852 cat >>confdefs.h <<_ACEOF 17853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17854_ACEOF 17855 17856fi 17857done 17858 17859 ;; 17860esac 17861 17862for ac_func in getclock stime timegm strlcpy strlcat 17863do : 17864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17866if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17867 cat >>confdefs.h <<_ACEOF 17868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17869_ACEOF 17870 17871fi 17872done 17873 17874 17875# Bug 2713 17876LDADD_LIBUTIL= 17877 17878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 17879$as_echo_n "checking for library containing snprintb... " >&6; } 17880if ${ac_cv_search_snprintb+:} false; then : 17881 $as_echo_n "(cached) " >&6 17882else 17883 ac_func_search_save_LIBS=$LIBS 17884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17885/* end confdefs.h. */ 17886 17887/* Override any GCC internal prototype to avoid an error. 17888 Use char because int might match the return type of a GCC 17889 builtin and then its argument prototype would still apply. */ 17890#ifdef __cplusplus 17891extern "C" 17892#endif 17893char snprintb (); 17894int 17895main () 17896{ 17897return snprintb (); 17898 ; 17899 return 0; 17900} 17901_ACEOF 17902for ac_lib in '' util; do 17903 if test -z "$ac_lib"; then 17904 ac_res="none required" 17905 else 17906 ac_res=-l$ac_lib 17907 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17908 fi 17909 if ac_fn_c_try_link "$LINENO"; then : 17910 ac_cv_search_snprintb=$ac_res 17911fi 17912rm -f core conftest.err conftest.$ac_objext \ 17913 conftest$ac_exeext 17914 if ${ac_cv_search_snprintb+:} false; then : 17915 break 17916fi 17917done 17918if ${ac_cv_search_snprintb+:} false; then : 17919 17920else 17921 ac_cv_search_snprintb=no 17922fi 17923rm conftest.$ac_ext 17924LIBS=$ac_func_search_save_LIBS 17925fi 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 17927$as_echo "$ac_cv_search_snprintb" >&6; } 17928ac_res=$ac_cv_search_snprintb 17929if test "$ac_res" != no; then : 17930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17931 case "$ac_cv_search_snprintb" in 17932 'none required') ;; 17933 no) ;; 17934 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 17935 esac 17936 17937$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 17938 17939fi 17940 17941 17942# 17943for ac_header in errno.h sys/socket.h sys/types.h time.h 17944do : 17945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17946ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17948 cat >>confdefs.h <<_ACEOF 17949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17950_ACEOF 17951 17952fi 17953 17954done 17955 17956for ac_header in net/if.h 17957do : 17958 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 17959 #ifdef HAVE_SYS_SOCKET_H 17960 # include <sys/socket.h> 17961 #endif 17962 17963" 17964if test "x$ac_cv_header_net_if_h" = xyes; then : 17965 cat >>confdefs.h <<_ACEOF 17966#define HAVE_NET_IF_H 1 17967_ACEOF 17968 17969fi 17970 17971done 17972 17973case "$host" in 17974 *-hp-hpux*) 17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 17976$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 17977if ${ntp_cv_predecl_mpinfou+:} false; then : 17978 $as_echo_n "(cached) " >&6 17979else 17980 17981 np_cv_predecl_mpinfou=no 17982 case "$ac_cv_header_net_if_h" in 17983 no) 17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17985/* end confdefs.h. */ 17986 17987 typedef union mpinfou { 17988 struct pdk_mpinfo *pdkptr; 17989 struct mpinfo *pikptr; 17990 } mpinfou_t; 17991 #ifdef HAVE_SYS_SOCKET_H 17992 # include <sys/socket.h> 17993 #endif 17994 #include <net/if.h> 17995 17996int 17997main () 17998{ 17999 18000 18001 18002 ; 18003 return 0; 18004} 18005_ACEOF 18006if ac_fn_c_try_compile "$LINENO"; then : 18007 18008 ntp_cv_predecl_mpinfou=yes 18009 ac_cv_header_net_if_h=yes 18010 18011 18012fi 18013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18014 esac 18015 18016 18017fi 18018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 18019$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 18020 case "$ntp_cv_predecl_mpinfou" in 18021 yes) 18022 cat >>confdefs.h <<_ACEOF 18023#ifndef MPINFOU_PREDECLARED 18024# define MPINFOU_PREDECLARED 18025typedef union mpinfou { 18026 struct pdk_mpinfo *pdkptr; 18027 struct mpinfo *pikptr; 18028} mpinfou_t; 18029#endif 18030_ACEOF 18031 18032 esac 18033esac 18034 18035case "$host" in 18036 *-linux*) 18037 for ac_header in linux/if_addr.h 18038do : 18039 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 18040 #ifdef HAVE_SYS_SOCKET_H 18041 # include <sys/socket.h> 18042 #endif 18043 18044" 18045if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 18046 cat >>confdefs.h <<_ACEOF 18047#define HAVE_LINUX_IF_ADDR_H 1 18048_ACEOF 18049 18050fi 18051 18052done 18053 18054 18055$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h 18056 18057esac 18058 18059for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 18060do : 18061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18062ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18064 cat >>confdefs.h <<_ACEOF 18065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18066_ACEOF 18067 18068fi 18069 18070done 18071 18072# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 18073for ac_header in sys/sysctl.h 18074do : 18075 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 18076 #if defined HAVE_SYS_PARAM_H 18077 # include <sys/param.h> 18078 #endif 18079 18080" 18081if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18082 cat >>confdefs.h <<_ACEOF 18083#define HAVE_SYS_SYSCTL_H 1 18084_ACEOF 18085 18086fi 18087 18088done 18089 18090for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 18091do : 18092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18093ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18094if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18095 cat >>confdefs.h <<_ACEOF 18096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18097_ACEOF 18098 18099fi 18100 18101done 18102 18103 18104for ac_header in resolv.h 18105do : 18106 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 18107 #ifdef HAVE_SYS_TYPES_H 18108 # include <sys/types.h> 18109 #endif 18110 #ifdef HAVE_NETINET_IN_H 18111 # include <netinet/in.h> 18112 #endif 18113 #ifdef HAVE_ARPA_NAMESER_H 18114 # include <arpa/nameser.h> 18115 #endif 18116 18117" 18118if test "x$ac_cv_header_resolv_h" = xyes; then : 18119 cat >>confdefs.h <<_ACEOF 18120#define HAVE_RESOLV_H 1 18121_ACEOF 18122 18123fi 18124 18125done 18126 18127 18128for ac_header in net/if_var.h 18129do : 18130 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 18131 #if HAVE_SYS_TYPES_H 18132 # include <sys/types.h> 18133 #endif 18134 #ifdef HAVE_SYS_SOCKET_H 18135 # include <sys/socket.h> 18136 #endif 18137 #ifdef HAVE_NETINET_IN_H 18138 # include <netinet/in.h> 18139 #endif 18140 #ifdef HAVE_NET_IF_H 18141 # include <net/if.h> 18142 #endif 18143 18144" 18145if test "x$ac_cv_header_net_if_var_h" = xyes; then : 18146 cat >>confdefs.h <<_ACEOF 18147#define HAVE_NET_IF_VAR_H 1 18148_ACEOF 18149 18150fi 18151 18152done 18153 18154 18155for ac_header in netinet/ip.h netinet/in_var.h 18156do : 18157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18158ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18159 #ifdef HAVE_SYS_TYPES_H 18160 # include <sys/types.h> 18161 #endif 18162 #ifdef HAVE_SYS_SOCKET_H 18163 # include <sys/socket.h> 18164 #endif 18165 #ifdef HAVE_NET_IF_H 18166 # include <net/if.h> 18167 #endif 18168 #ifdef HAVE_NETINET_IN_H 18169 # include <netinet/in.h> 18170 #endif 18171 #ifdef HAVE_NET_IF_VAR_H 18172 # include <net/if_var.h> 18173 #endif 18174 #ifdef HAVE_NETINET_IN_SYSTM_H 18175 # include <netinet/in_systm.h> 18176 #endif 18177 18178" 18179if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18180 cat >>confdefs.h <<_ACEOF 18181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18182_ACEOF 18183 18184fi 18185 18186done 18187 18188 18189# HMS: Do we need to check for -lsocket before or after these tests? 18190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 18191$as_echo_n "checking for library containing inet_pton... " >&6; } 18192if ${ac_cv_search_inet_pton+:} false; then : 18193 $as_echo_n "(cached) " >&6 18194else 18195 ac_func_search_save_LIBS=$LIBS 18196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197/* end confdefs.h. */ 18198 18199/* Override any GCC internal prototype to avoid an error. 18200 Use char because int might match the return type of a GCC 18201 builtin and then its argument prototype would still apply. */ 18202#ifdef __cplusplus 18203extern "C" 18204#endif 18205char inet_pton (); 18206int 18207main () 18208{ 18209return inet_pton (); 18210 ; 18211 return 0; 18212} 18213_ACEOF 18214for ac_lib in '' nsl; do 18215 if test -z "$ac_lib"; then 18216 ac_res="none required" 18217 else 18218 ac_res=-l$ac_lib 18219 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18220 fi 18221 if ac_fn_c_try_link "$LINENO"; then : 18222 ac_cv_search_inet_pton=$ac_res 18223fi 18224rm -f core conftest.err conftest.$ac_objext \ 18225 conftest$ac_exeext 18226 if ${ac_cv_search_inet_pton+:} false; then : 18227 break 18228fi 18229done 18230if ${ac_cv_search_inet_pton+:} false; then : 18231 18232else 18233 ac_cv_search_inet_pton=no 18234fi 18235rm conftest.$ac_ext 18236LIBS=$ac_func_search_save_LIBS 18237fi 18238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 18239$as_echo "$ac_cv_search_inet_pton" >&6; } 18240ac_res=$ac_cv_search_inet_pton 18241if test "$ac_res" != no; then : 18242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18243 case "$ac_cv_search_inet_pton" in 18244 'none required') ;; 18245 no) ;; 18246 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 18247 esac 18248 18249fi 18250 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 18252$as_echo_n "checking for library containing inet_ntop... " >&6; } 18253if ${ac_cv_search_inet_ntop+:} false; then : 18254 $as_echo_n "(cached) " >&6 18255else 18256 ac_func_search_save_LIBS=$LIBS 18257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18258/* end confdefs.h. */ 18259 18260/* Override any GCC internal prototype to avoid an error. 18261 Use char because int might match the return type of a GCC 18262 builtin and then its argument prototype would still apply. */ 18263#ifdef __cplusplus 18264extern "C" 18265#endif 18266char inet_ntop (); 18267int 18268main () 18269{ 18270return inet_ntop (); 18271 ; 18272 return 0; 18273} 18274_ACEOF 18275for ac_lib in '' resolv; do 18276 if test -z "$ac_lib"; then 18277 ac_res="none required" 18278 else 18279 ac_res=-l$ac_lib 18280 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 18281 fi 18282 if ac_fn_c_try_link "$LINENO"; then : 18283 ac_cv_search_inet_ntop=$ac_res 18284fi 18285rm -f core conftest.err conftest.$ac_objext \ 18286 conftest$ac_exeext 18287 if ${ac_cv_search_inet_ntop+:} false; then : 18288 break 18289fi 18290done 18291if ${ac_cv_search_inet_ntop+:} false; then : 18292 18293else 18294 ac_cv_search_inet_ntop=no 18295fi 18296rm conftest.$ac_ext 18297LIBS=$ac_func_search_save_LIBS 18298fi 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 18300$as_echo "$ac_cv_search_inet_ntop" >&6; } 18301ac_res=$ac_cv_search_inet_ntop 18302if test "$ac_res" != no; then : 18303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18304 case "$ac_cv_search_inet_ntop" in 18305 'none required') ;; 18306 no) ;; 18307 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 18308 esac 18309 18310fi 18311 18312 18313# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 18314# avoid keying on the OS name: If we find socket functions in 18315# libsocket, next try for them in libxnet without libsocket, if found, 18316# list both. If we simply tested libxnet first, we would find the 18317# functions there and never add libsocket. See also [Bug 660] 18318# http://bugs.ntp.org/show_bug.cgi?id=660#c9 18319saved_LIBS=$LIBS 18320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 18321$as_echo_n "checking for library containing setsockopt... " >&6; } 18322if ${ac_cv_search_setsockopt+:} false; then : 18323 $as_echo_n "(cached) " >&6 18324else 18325 ac_func_search_save_LIBS=$LIBS 18326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327/* end confdefs.h. */ 18328 18329/* Override any GCC internal prototype to avoid an error. 18330 Use char because int might match the return type of a GCC 18331 builtin and then its argument prototype would still apply. */ 18332#ifdef __cplusplus 18333extern "C" 18334#endif 18335char setsockopt (); 18336int 18337main () 18338{ 18339return setsockopt (); 18340 ; 18341 return 0; 18342} 18343_ACEOF 18344for ac_lib in '' socket; do 18345 if test -z "$ac_lib"; then 18346 ac_res="none required" 18347 else 18348 ac_res=-l$ac_lib 18349 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18350 fi 18351 if ac_fn_c_try_link "$LINENO"; then : 18352 ac_cv_search_setsockopt=$ac_res 18353fi 18354rm -f core conftest.err conftest.$ac_objext \ 18355 conftest$ac_exeext 18356 if ${ac_cv_search_setsockopt+:} false; then : 18357 break 18358fi 18359done 18360if ${ac_cv_search_setsockopt+:} false; then : 18361 18362else 18363 ac_cv_search_setsockopt=no 18364fi 18365rm conftest.$ac_ext 18366LIBS=$ac_func_search_save_LIBS 18367fi 18368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 18369$as_echo "$ac_cv_search_setsockopt" >&6; } 18370ac_res=$ac_cv_search_setsockopt 18371if test "$ac_res" != no; then : 18372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18373 case "$ac_cv_search_setsockopt" in 18374 'none required') ;; 18375 no) ;; 18376 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 18377 esac 18378 18379fi 18380 18381case "$ac_cv_search_setsockopt" in 18382 -lsocket) 18383 LIBS="$saved_LIBS" 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 18385$as_echo_n "checking for library containing getsockopt... " >&6; } 18386if ${ac_cv_search_getsockopt+:} false; then : 18387 $as_echo_n "(cached) " >&6 18388else 18389 ac_func_search_save_LIBS=$LIBS 18390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18391/* end confdefs.h. */ 18392 18393/* Override any GCC internal prototype to avoid an error. 18394 Use char because int might match the return type of a GCC 18395 builtin and then its argument prototype would still apply. */ 18396#ifdef __cplusplus 18397extern "C" 18398#endif 18399char getsockopt (); 18400int 18401main () 18402{ 18403return getsockopt (); 18404 ; 18405 return 0; 18406} 18407_ACEOF 18408for ac_lib in '' xnet; do 18409 if test -z "$ac_lib"; then 18410 ac_res="none required" 18411 else 18412 ac_res=-l$ac_lib 18413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18414 fi 18415 if ac_fn_c_try_link "$LINENO"; then : 18416 ac_cv_search_getsockopt=$ac_res 18417fi 18418rm -f core conftest.err conftest.$ac_objext \ 18419 conftest$ac_exeext 18420 if ${ac_cv_search_getsockopt+:} false; then : 18421 break 18422fi 18423done 18424if ${ac_cv_search_getsockopt+:} false; then : 18425 18426else 18427 ac_cv_search_getsockopt=no 18428fi 18429rm conftest.$ac_ext 18430LIBS=$ac_func_search_save_LIBS 18431fi 18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 18433$as_echo "$ac_cv_search_getsockopt" >&6; } 18434ac_res=$ac_cv_search_getsockopt 18435if test "$ac_res" != no; then : 18436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18437 case "$ac_cv_search_getsockopt" in 18438 'none required') ;; 18439 no) ;; 18440 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 18441 esac 18442 18443fi 18444 18445 # XXX Possible trouble here - reading the comments above and looking at the 18446 # code below I wonder if we'll add -lxnet when we don't need it. 18447 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 18448 # there when it is not needed? 18449 case "$ac_cv_search_getsockopt" in 18450 -lxnet) 18451 LIBS="-lxnet -lsocket $saved_LIBS" 18452 ;; 18453 *) LIBS="-lsocket $saved_LIBS" 18454 ;; 18455 esac 18456 ;; 18457esac 18458{ saved_LIBS=; unset saved_LIBS;} 18459 18460# Bug 2427 - look for recvmsg here. 18461for ac_func in recvmsg 18462do : 18463 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 18464if test "x$ac_cv_func_recvmsg" = xyes; then : 18465 cat >>confdefs.h <<_ACEOF 18466#define HAVE_RECVMSG 1 18467_ACEOF 18468 18469fi 18470done 18471 18472 18473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18474$as_echo_n "checking for inline... " >&6; } 18475if ${ac_cv_c_inline+:} false; then : 18476 $as_echo_n "(cached) " >&6 18477else 18478 ac_cv_c_inline=no 18479for ac_kw in inline __inline__ __inline; do 18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18481/* end confdefs.h. */ 18482#ifndef __cplusplus 18483typedef int foo_t; 18484static $ac_kw foo_t static_foo () {return 0; } 18485$ac_kw foo_t foo () {return 0; } 18486#endif 18487 18488_ACEOF 18489if ac_fn_c_try_compile "$LINENO"; then : 18490 ac_cv_c_inline=$ac_kw 18491fi 18492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18493 test "$ac_cv_c_inline" != no && break 18494done 18495 18496fi 18497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18498$as_echo "$ac_cv_c_inline" >&6; } 18499 18500case $ac_cv_c_inline in 18501 inline | yes) ;; 18502 *) 18503 case $ac_cv_c_inline in 18504 no) ac_val=;; 18505 *) ac_val=$ac_cv_c_inline;; 18506 esac 18507 cat >>confdefs.h <<_ACEOF 18508#ifndef __cplusplus 18509#define inline $ac_val 18510#endif 18511_ACEOF 18512 ;; 18513esac 18514 18515 18516case "$ac_cv_c_inline" in 18517 '') 18518 ;; 18519 *) 18520 18521$as_echo "#define HAVE_INLINE 1" >>confdefs.h 18522 18523 18524esac 18525 18526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18527$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18528if ${ac_cv_header_time+:} false; then : 18529 $as_echo_n "(cached) " >&6 18530else 18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18532/* end confdefs.h. */ 18533#include <sys/types.h> 18534#include <sys/time.h> 18535#include <time.h> 18536 18537int 18538main () 18539{ 18540if ((struct tm *) 0) 18541return 0; 18542 ; 18543 return 0; 18544} 18545_ACEOF 18546if ac_fn_c_try_compile "$LINENO"; then : 18547 ac_cv_header_time=yes 18548else 18549 ac_cv_header_time=no 18550fi 18551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18552fi 18553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18554$as_echo "$ac_cv_header_time" >&6; } 18555if test $ac_cv_header_time = yes; then 18556 18557$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18558 18559fi 18560 18561# The cast to long int works around a bug in the HP C Compiler 18562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18564# This bug is HP SR number 8606223364. 18565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 18566$as_echo_n "checking size of time_t... " >&6; } 18567if ${ac_cv_sizeof_time_t+:} false; then : 18568 $as_echo_n "(cached) " >&6 18569else 18570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 18571 18572else 18573 if test "$ac_cv_type_time_t" = yes; then 18574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18576as_fn_error 77 "cannot compute sizeof (time_t) 18577See \`config.log' for more details" "$LINENO" 5; } 18578 else 18579 ac_cv_sizeof_time_t=0 18580 fi 18581fi 18582 18583fi 18584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 18585$as_echo "$ac_cv_sizeof_time_t" >&6; } 18586 18587 18588 18589cat >>confdefs.h <<_ACEOF 18590#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 18591_ACEOF 18592 18593 18594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 18595$as_echo_n "checking whether char is unsigned... " >&6; } 18596if ${ac_cv_c_char_unsigned+:} false; then : 18597 $as_echo_n "(cached) " >&6 18598else 18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18600/* end confdefs.h. */ 18601$ac_includes_default 18602int 18603main () 18604{ 18605static int test_array [1 - 2 * !(((char) -1) < 0)]; 18606test_array [0] = 0; 18607return test_array [0]; 18608 18609 ; 18610 return 0; 18611} 18612_ACEOF 18613if ac_fn_c_try_compile "$LINENO"; then : 18614 ac_cv_c_char_unsigned=no 18615else 18616 ac_cv_c_char_unsigned=yes 18617fi 18618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18619fi 18620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 18621$as_echo "$ac_cv_c_char_unsigned" >&6; } 18622if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 18623 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 18624 18625fi 18626 # The cast to long int works around a bug in the HP C Compiler 18627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18629# This bug is HP SR number 8606223364. 18630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 18631$as_echo_n "checking size of signed char... " >&6; } 18632if ${ac_cv_sizeof_signed_char+:} false; then : 18633 $as_echo_n "(cached) " >&6 18634else 18635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 18636 18637else 18638 if test "$ac_cv_type_signed_char" = yes; then 18639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18641as_fn_error 77 "cannot compute sizeof (signed char) 18642See \`config.log' for more details" "$LINENO" 5; } 18643 else 18644 ac_cv_sizeof_signed_char=0 18645 fi 18646fi 18647 18648fi 18649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 18650$as_echo "$ac_cv_sizeof_signed_char" >&6; } 18651 18652 18653 18654cat >>confdefs.h <<_ACEOF 18655#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 18656_ACEOF 18657 18658 18659ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 18660if test "x$ac_cv_type_s_char" = xyes; then : 18661 18662cat >>confdefs.h <<_ACEOF 18663#define HAVE_S_CHAR 1 18664_ACEOF 18665 18666 18667fi 18668ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 18669if test "x$ac_cv_type_long_long" = xyes; then : 18670 18671cat >>confdefs.h <<_ACEOF 18672#define HAVE_LONG_LONG 1 18673_ACEOF 18674 18675 18676fi 18677 18678# The cast to long int works around a bug in the HP C Compiler 18679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18681# This bug is HP SR number 8606223364. 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 18683$as_echo_n "checking size of short... " >&6; } 18684if ${ac_cv_sizeof_short+:} false; then : 18685 $as_echo_n "(cached) " >&6 18686else 18687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 18688 18689else 18690 if test "$ac_cv_type_short" = yes; then 18691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18693as_fn_error 77 "cannot compute sizeof (short) 18694See \`config.log' for more details" "$LINENO" 5; } 18695 else 18696 ac_cv_sizeof_short=0 18697 fi 18698fi 18699 18700fi 18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 18702$as_echo "$ac_cv_sizeof_short" >&6; } 18703 18704 18705 18706cat >>confdefs.h <<_ACEOF 18707#define SIZEOF_SHORT $ac_cv_sizeof_short 18708_ACEOF 18709 18710 18711# The cast to long int works around a bug in the HP C Compiler 18712# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18713# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18714# This bug is HP SR number 8606223364. 18715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 18716$as_echo_n "checking size of int... " >&6; } 18717if ${ac_cv_sizeof_int+:} false; then : 18718 $as_echo_n "(cached) " >&6 18719else 18720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 18721 18722else 18723 if test "$ac_cv_type_int" = yes; then 18724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18726as_fn_error 77 "cannot compute sizeof (int) 18727See \`config.log' for more details" "$LINENO" 5; } 18728 else 18729 ac_cv_sizeof_int=0 18730 fi 18731fi 18732 18733fi 18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 18735$as_echo "$ac_cv_sizeof_int" >&6; } 18736 18737 18738 18739cat >>confdefs.h <<_ACEOF 18740#define SIZEOF_INT $ac_cv_sizeof_int 18741_ACEOF 18742 18743 18744# The cast to long int works around a bug in the HP C Compiler 18745# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18746# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18747# This bug is HP SR number 8606223364. 18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 18749$as_echo_n "checking size of long... " >&6; } 18750if ${ac_cv_sizeof_long+:} false; then : 18751 $as_echo_n "(cached) " >&6 18752else 18753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 18754 18755else 18756 if test "$ac_cv_type_long" = yes; then 18757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18759as_fn_error 77 "cannot compute sizeof (long) 18760See \`config.log' for more details" "$LINENO" 5; } 18761 else 18762 ac_cv_sizeof_long=0 18763 fi 18764fi 18765 18766fi 18767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 18768$as_echo "$ac_cv_sizeof_long" >&6; } 18769 18770 18771 18772cat >>confdefs.h <<_ACEOF 18773#define SIZEOF_LONG $ac_cv_sizeof_long 18774_ACEOF 18775 18776 18777 18778case "$ac_cv_type_long_long" in 18779 no) 18780 ;; 18781 *) 18782 # The cast to long int works around a bug in the HP C Compiler 18783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18785# This bug is HP SR number 8606223364. 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 18787$as_echo_n "checking size of long long... " >&6; } 18788if ${ac_cv_sizeof_long_long+:} false; then : 18789 $as_echo_n "(cached) " >&6 18790else 18791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 18792 18793else 18794 if test "$ac_cv_type_long_long" = yes; then 18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18797as_fn_error 77 "cannot compute sizeof (long long) 18798See \`config.log' for more details" "$LINENO" 5; } 18799 else 18800 ac_cv_sizeof_long_long=0 18801 fi 18802fi 18803 18804fi 18805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 18806$as_echo "$ac_cv_sizeof_long_long" >&6; } 18807 18808 18809 18810cat >>confdefs.h <<_ACEOF 18811#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 18812_ACEOF 18813 18814 18815 ;; 18816esac 18817 18818case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 18819 *yes) 18820 # We have a typedef for s_char. Might as well believe it... 18821 ;; 18822 no0no) 18823 # We have signed chars, can't say 'signed char', no s_char typedef. 18824 18825$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 18826 18827 ;; 18828 no1no) 18829 # We have signed chars, can say 'signed char', no s_char typedef. 18830 18831$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 18832 18833 ;; 18834 yes0no) 18835 # We have unsigned chars, can't say 'signed char', no s_char typedef. 18836 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 18837 ;; 18838 yes1no) 18839 # We have unsigned chars, can say 'signed char', no s_char typedef. 18840 18841$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 18842 18843 ;; 18844esac 18845 18846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 18847$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 18848if ${ac_cv_type_uid_t+:} false; then : 18849 $as_echo_n "(cached) " >&6 18850else 18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18852/* end confdefs.h. */ 18853#include <sys/types.h> 18854 18855_ACEOF 18856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18857 $EGREP "uid_t" >/dev/null 2>&1; then : 18858 ac_cv_type_uid_t=yes 18859else 18860 ac_cv_type_uid_t=no 18861fi 18862rm -f conftest* 18863 18864fi 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 18866$as_echo "$ac_cv_type_uid_t" >&6; } 18867if test $ac_cv_type_uid_t = no; then 18868 18869$as_echo "#define uid_t int" >>confdefs.h 18870 18871 18872$as_echo "#define gid_t int" >>confdefs.h 18873 18874fi 18875 18876 18877 18878 18879 18880 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 18882$as_echo_n "checking if we're including debugging code... " >&6; } 18883# Check whether --enable-debugging was given. 18884if test "${enable_debugging+set}" = set; then : 18885 enableval=$enable_debugging; ntp_ok=$enableval 18886else 18887 ntp_ok=yes 18888 18889fi 18890 18891case "$ntp_ok" in 18892 yes) 18893 18894$as_echo "#define DEBUG 1" >>confdefs.h 18895 18896esac 18897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 18898$as_echo "$ntp_ok" >&6; } 18899 18900 18901 18902# check if we can compile with pthreads 18903for ac_header in semaphore.h 18904do : 18905 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 18906if test "x$ac_cv_header_semaphore_h" = xyes; then : 18907 cat >>confdefs.h <<_ACEOF 18908#define HAVE_SEMAPHORE_H 1 18909_ACEOF 18910 18911fi 18912 18913done 18914 18915for ac_func in socketpair 18916do : 18917 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 18918if test "x$ac_cv_func_socketpair" = xyes; then : 18919 cat >>confdefs.h <<_ACEOF 18920#define HAVE_SOCKETPAIR 1 18921_ACEOF 18922 18923fi 18924done 18925 18926# Check whether --enable-thread-support was given. 18927if test "${enable_thread_support+set}" = set; then : 18928 enableval=$enable_thread_support; 18929else 18930 enable_thread_support=yes 18931 18932fi 18933 18934have_pthreads=no 18935case "$enable_thread_support" in 18936 no) ;; 18937 *) 18938 ol_found_pthreads=no 18939 18940 18941 18942ac_ext=c 18943ac_cpp='$CPP $CPPFLAGS' 18944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18946ac_compiler_gnu=$ac_cv_c_compiler_gnu 18947 18948# OpenLDAP --with-threads 18949 18950# Check whether --with-threads was given. 18951if test "${with_threads+set}" = set; then : 18952 withval=$with_threads; 18953 ol_arg=invalid 18954 for ol_val in auto nt posix mach pth lwp yes no manual ; do 18955 if test "$withval" = "$ol_val" ; then 18956 ol_arg="$ol_val" 18957 fi 18958 done 18959 if test "$ol_arg" = "invalid" ; then 18960 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 18961 fi 18962 ol_with_threads="$ol_arg" 18963 18964else 18965 ol_with_threads="auto" 18966fi 18967# end --with-threads 18968 18969 18970case "$ol_with_threads$host" in 18971 auto*-*-solaris2.[0-6]) 18972 ol_with_threads=no 18973 ;; 18974esac 18975 18976 18977ol_aix_threads=no 18978case "$host" in 18979*-*-aix*) if test -z "$CC" ; then 18980 case "$ol_with_threads" in 18981 auto | yes | posix) ol_aix_threads=yes ;; 18982 esac 18983 fi 18984;; 18985esac 18986 18987if test $ol_aix_threads = yes ; then 18988 if test -z "${CC}" ; then 18989 for ac_prog in cc_r xlc_r cc 18990do 18991 # Extract the first word of "$ac_prog", so it can be a program name with args. 18992set dummy $ac_prog; ac_word=$2 18993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18994$as_echo_n "checking for $ac_word... " >&6; } 18995if ${ac_cv_prog_CC+:} false; then : 18996 $as_echo_n "(cached) " >&6 18997else 18998 if test -n "$CC"; then 18999 ac_cv_prog_CC="$CC" # Let the user override the test. 19000else 19001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19002for as_dir in $PATH 19003do 19004 IFS=$as_save_IFS 19005 test -z "$as_dir" && as_dir=. 19006 for ac_exec_ext in '' $ac_executable_extensions; do 19007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19008 ac_cv_prog_CC="$ac_prog" 19009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19010 break 2 19011 fi 19012done 19013 done 19014IFS=$as_save_IFS 19015 19016fi 19017fi 19018CC=$ac_cv_prog_CC 19019if test -n "$CC"; then 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 19021$as_echo "$CC" >&6; } 19022else 19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19024$as_echo "no" >&6; } 19025fi 19026 19027 19028 test -n "$CC" && break 19029done 19030 19031 19032 if test "$CC" = cc ; then 19033 if test $ol_with_threads != auto ; then 19034 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 19035 else 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 19037$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 19038 fi 19039 ol_with_threads=no 19040 fi 19041 fi 19042 19043 case ${CC} in cc_r | xlc_r) 19044 ol_with_threads=posix 19045 ol_cv_pthread_create=yes 19046 ;; 19047 esac 19048fi 19049 19050ol_link_threads=no 19051# OpenLDAP --with-yielding_select 19052 19053# Check whether --with-yielding_select was given. 19054if test "${with_yielding_select+set}" = set; then : 19055 withval=$with_yielding_select; 19056 ol_arg=invalid 19057 for ol_val in auto yes no manual ; do 19058 if test "$withval" = "$ol_val" ; then 19059 ol_arg="$ol_val" 19060 fi 19061 done 19062 if test "$ol_arg" = "invalid" ; then 19063 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 19064 fi 19065 ol_with_yielding_select="$ol_arg" 19066 19067else 19068 ol_with_yielding_select="auto" 19069fi 19070# end --with-yielding_select 19071 19072 19073case $ol_with_threads in auto | yes | nt) 19074 19075 19076 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 19077if test "x$ac_cv_func__beginthread" = xyes; then : 19078 19079fi 19080 19081 19082 if test $ac_cv_func__beginthread = yes ; then 19083 19084$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 19085 19086 ol_cv_nt_threads=yes 19087 fi 19088 19089 19090 if test "$ol_cv_nt_threads" = yes ; then 19091 ol_link_threads=nt 19092 ol_with_threads=found 19093 ol_with_yielding_select=yes 19094 19095 19096$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 19097 19098 19099$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 19100 19101 fi 19102 19103 if test $ol_with_threads = nt ; then 19104 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 19105 fi 19106 ;; 19107esac 19108 19109case $ol_with_threads in auto | yes | posix) 19110 19111 for ac_header in pthread.h 19112do : 19113 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 19114if test "x$ac_cv_header_pthread_h" = xyes; then : 19115 cat >>confdefs.h <<_ACEOF 19116#define HAVE_PTHREAD_H 1 19117_ACEOF 19118 19119fi 19120 19121done 19122 19123 19124 if test $ac_cv_header_pthread_h = yes ; then 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 19126$as_echo_n "checking POSIX thread version... " >&6; } 19127if ${ol_cv_pthread_version+:} false; then : 19128 $as_echo_n "(cached) " >&6 19129else 19130 19131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19132/* end confdefs.h. */ 19133 19134# include <pthread.h> 19135 19136int 19137main () 19138{ 19139 19140 int i = PTHREAD_CREATE_JOINABLE; 19141 19142 ; 19143 return 0; 19144} 19145_ACEOF 19146if ac_fn_c_try_compile "$LINENO"; then : 19147 19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19149/* end confdefs.h. */ 19150#include <pthread.h> 19151 19152_ACEOF 19153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19154 $EGREP "pthread_detach" >/dev/null 2>&1; then : 19155 ol_cv_pthread_version=10 19156else 19157 ol_cv_pthread_version=8 19158fi 19159rm -f conftest* 19160 19161else 19162 19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19164/* end confdefs.h. */ 19165 19166# include <pthread.h> 19167# ifdef PTHREAD_CREATE_UNDETACHED 19168 draft7 19169# endif 19170 19171_ACEOF 19172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19173 $EGREP "draft7" >/dev/null 2>&1; then : 19174 ol_cv_pthread_version=7 19175else 19176 19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19178/* end confdefs.h. */ 19179#include <pthread.h> 19180 19181_ACEOF 19182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19183 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 19184 ol_cv_pthread_version=6 19185else 19186 19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19188/* end confdefs.h. */ 19189 19190# include <pthread.h> 19191#ifdef PTHREAD_MUTEX_INITIALIZER 19192 draft5 19193#endif 19194 19195_ACEOF 19196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19197 $EGREP "draft5" >/dev/null 2>&1; then : 19198 ol_cv_pthread_version=5 19199else 19200 ol_cv_pthread_version=4 19201fi 19202rm -f conftest* 19203 19204fi 19205rm -f conftest* 19206 19207fi 19208rm -f conftest* 19209 19210fi 19211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19212 19213fi 19214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 19215$as_echo "$ol_cv_pthread_version" >&6; } 19216 19217 19218 if test $ol_cv_pthread_version != 0 ; then 19219 19220cat >>confdefs.h <<_ACEOF 19221#define HAVE_PTHREADS $ol_cv_pthread_version 19222_ACEOF 19223 19224 else 19225 as_fn_error $? "unknown pthread version" "$LINENO" 5 19226 fi 19227 19228 # consider threads found 19229 ol_with_threads=found 19230 19231 19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 19233$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 19234if ${ol_cv_header_linux_threads+:} false; then : 19235 $as_echo_n "(cached) " >&6 19236else 19237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19238/* end confdefs.h. */ 19239#include <pthread.h> 19240_ACEOF 19241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19242 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 19243 ol_cv_header_linux_threads=yes 19244else 19245 ol_cv_header_linux_threads=no 19246fi 19247rm -f conftest* 19248 19249 19250fi 19251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 19252$as_echo "$ol_cv_header_linux_threads" >&6; } 19253 if test $ol_cv_header_linux_threads = yes; then 19254 19255$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 19256 19257 fi 19258 19259 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 19261$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 19262if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 19263 $as_echo_n "(cached) " >&6 19264else 19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19266/* end confdefs.h. */ 19267#include <pthread.h> 19268#ifdef _POSIX_THREAD_IS_GNU_PTH 19269 __gnu_pth__; 19270#endif 19271 19272_ACEOF 19273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19274 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 19275 ol_cv_header_gnu_pth_pthread_h=yes 19276else 19277 ol_cv_header_gnu_pth_pthread_h=no 19278fi 19279rm -f conftest* 19280 19281 19282fi 19283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 19284$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 19285 19286 19287 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 19288 for ac_header in sched.h 19289do : 19290 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 19291if test "x$ac_cv_header_sched_h" = xyes; then : 19292 cat >>confdefs.h <<_ACEOF 19293#define HAVE_SCHED_H 1 19294_ACEOF 19295 19296fi 19297 19298done 19299 19300 fi 19301 19302 19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 19304$as_echo_n "checking for pthread_create in default libraries... " >&6; } 19305if ${ol_cv_pthread_create+:} false; then : 19306 $as_echo_n "(cached) " >&6 19307else 19308 19309 if test "$cross_compiling" = yes; then : 19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19311/* end confdefs.h. */ 19312 19313/* pthread test headers */ 19314#include <pthread.h> 19315#if HAVE_PTHREADS < 7 19316#include <errno.h> 19317#endif 19318#ifndef NULL 19319#define NULL (void*)0 19320#endif 19321 19322static void *task(p) 19323 void *p; 19324{ 19325 return (void *) (p == NULL); 19326} 19327 19328int 19329main () 19330{ 19331 19332 /* pthread test function */ 19333#ifndef PTHREAD_CREATE_DETACHED 19334#define PTHREAD_CREATE_DETACHED 1 19335#endif 19336 pthread_t t; 19337 int status; 19338 int detach = PTHREAD_CREATE_DETACHED; 19339 19340#if HAVE_PTHREADS > 4 19341 /* Final pthreads */ 19342 pthread_attr_t attr; 19343 19344 status = pthread_attr_init(&attr); 19345 if( status ) return status; 19346 19347#if HAVE_PTHREADS < 7 19348 status = pthread_attr_setdetachstate(&attr, &detach); 19349 if( status < 0 ) status = errno; 19350#else 19351 status = pthread_attr_setdetachstate(&attr, detach); 19352#endif 19353 if( status ) return status; 19354 status = pthread_create( &t, &attr, task, NULL ); 19355#if HAVE_PTHREADS < 7 19356 if( status < 0 ) status = errno; 19357#endif 19358 if( status ) return status; 19359#else 19360 /* Draft 4 pthreads */ 19361 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19362 if( status ) return errno; 19363 19364 /* give thread a chance to complete */ 19365 /* it should remain joinable and hence detachable */ 19366 sleep( 1 ); 19367 19368 status = pthread_detach( &t ); 19369 if( status ) return errno; 19370#endif 19371 19372#ifdef HAVE_LINUX_THREADS 19373 pthread_kill_other_threads_np(); 19374#endif 19375 19376 return 0; 19377 19378 ; 19379 return 0; 19380} 19381_ACEOF 19382if ac_fn_c_try_link "$LINENO"; then : 19383 ol_cv_pthread_create=yes 19384else 19385 ol_cv_pthread_create=no 19386fi 19387rm -f core conftest.err conftest.$ac_objext \ 19388 conftest$ac_exeext conftest.$ac_ext 19389else 19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19391/* end confdefs.h. */ 19392 19393 19394/* pthread test headers */ 19395#include <pthread.h> 19396#if HAVE_PTHREADS < 7 19397#include <errno.h> 19398#endif 19399#ifndef NULL 19400#define NULL (void*)0 19401#endif 19402 19403static void *task(p) 19404 void *p; 19405{ 19406 return (void *) (p == NULL); 19407} 19408 19409 19410int main(argc, argv) 19411 int argc; 19412 char **argv; 19413{ 19414 19415 /* pthread test function */ 19416#ifndef PTHREAD_CREATE_DETACHED 19417#define PTHREAD_CREATE_DETACHED 1 19418#endif 19419 pthread_t t; 19420 int status; 19421 int detach = PTHREAD_CREATE_DETACHED; 19422 19423#if HAVE_PTHREADS > 4 19424 /* Final pthreads */ 19425 pthread_attr_t attr; 19426 19427 status = pthread_attr_init(&attr); 19428 if( status ) return status; 19429 19430#if HAVE_PTHREADS < 7 19431 status = pthread_attr_setdetachstate(&attr, &detach); 19432 if( status < 0 ) status = errno; 19433#else 19434 status = pthread_attr_setdetachstate(&attr, detach); 19435#endif 19436 if( status ) return status; 19437 status = pthread_create( &t, &attr, task, NULL ); 19438#if HAVE_PTHREADS < 7 19439 if( status < 0 ) status = errno; 19440#endif 19441 if( status ) return status; 19442#else 19443 /* Draft 4 pthreads */ 19444 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19445 if( status ) return errno; 19446 19447 /* give thread a chance to complete */ 19448 /* it should remain joinable and hence detachable */ 19449 sleep( 1 ); 19450 19451 status = pthread_detach( &t ); 19452 if( status ) return errno; 19453#endif 19454 19455#ifdef HAVE_LINUX_THREADS 19456 pthread_kill_other_threads_np(); 19457#endif 19458 19459 return 0; 19460 19461} 19462 19463_ACEOF 19464if ac_fn_c_try_run "$LINENO"; then : 19465 ol_cv_pthread_create=yes 19466else 19467 ol_cv_pthread_create=no 19468fi 19469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19470 conftest.$ac_objext conftest.beam conftest.$ac_ext 19471fi 19472 19473fi 19474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 19475$as_echo "$ol_cv_pthread_create" >&6; } 19476 19477 if test $ol_cv_pthread_create != no ; then 19478 ol_link_threads=posix 19479 ol_link_pthreads="" 19480 fi 19481 19482 # Pthread try link: -kthread (ol_cv_pthread_kthread) 19483if test "$ol_link_threads" = no ; then 19484 # try -kthread 19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 19486$as_echo_n "checking for pthread link with -kthread... " >&6; } 19487if ${ol_cv_pthread_kthread+:} false; then : 19488 $as_echo_n "(cached) " >&6 19489else 19490 19491 # save the flags 19492 ol_LIBS="$LIBS" 19493 LIBS="-kthread $LIBS" 19494 19495 if test "$cross_compiling" = yes; then : 19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19497/* end confdefs.h. */ 19498 19499/* pthread test headers */ 19500#include <pthread.h> 19501#if HAVE_PTHREADS < 7 19502#include <errno.h> 19503#endif 19504#ifndef NULL 19505#define NULL (void*)0 19506#endif 19507 19508static void *task(p) 19509 void *p; 19510{ 19511 return (void *) (p == NULL); 19512} 19513 19514int 19515main () 19516{ 19517 19518 /* pthread test function */ 19519#ifndef PTHREAD_CREATE_DETACHED 19520#define PTHREAD_CREATE_DETACHED 1 19521#endif 19522 pthread_t t; 19523 int status; 19524 int detach = PTHREAD_CREATE_DETACHED; 19525 19526#if HAVE_PTHREADS > 4 19527 /* Final pthreads */ 19528 pthread_attr_t attr; 19529 19530 status = pthread_attr_init(&attr); 19531 if( status ) return status; 19532 19533#if HAVE_PTHREADS < 7 19534 status = pthread_attr_setdetachstate(&attr, &detach); 19535 if( status < 0 ) status = errno; 19536#else 19537 status = pthread_attr_setdetachstate(&attr, detach); 19538#endif 19539 if( status ) return status; 19540 status = pthread_create( &t, &attr, task, NULL ); 19541#if HAVE_PTHREADS < 7 19542 if( status < 0 ) status = errno; 19543#endif 19544 if( status ) return status; 19545#else 19546 /* Draft 4 pthreads */ 19547 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19548 if( status ) return errno; 19549 19550 /* give thread a chance to complete */ 19551 /* it should remain joinable and hence detachable */ 19552 sleep( 1 ); 19553 19554 status = pthread_detach( &t ); 19555 if( status ) return errno; 19556#endif 19557 19558#ifdef HAVE_LINUX_THREADS 19559 pthread_kill_other_threads_np(); 19560#endif 19561 19562 return 0; 19563 19564 ; 19565 return 0; 19566} 19567_ACEOF 19568if ac_fn_c_try_link "$LINENO"; then : 19569 ol_cv_pthread_kthread=yes 19570else 19571 ol_cv_pthread_kthread=no 19572fi 19573rm -f core conftest.err conftest.$ac_objext \ 19574 conftest$ac_exeext conftest.$ac_ext 19575else 19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19577/* end confdefs.h. */ 19578 19579 19580/* pthread test headers */ 19581#include <pthread.h> 19582#if HAVE_PTHREADS < 7 19583#include <errno.h> 19584#endif 19585#ifndef NULL 19586#define NULL (void*)0 19587#endif 19588 19589static void *task(p) 19590 void *p; 19591{ 19592 return (void *) (p == NULL); 19593} 19594 19595 19596int main(argc, argv) 19597 int argc; 19598 char **argv; 19599{ 19600 19601 /* pthread test function */ 19602#ifndef PTHREAD_CREATE_DETACHED 19603#define PTHREAD_CREATE_DETACHED 1 19604#endif 19605 pthread_t t; 19606 int status; 19607 int detach = PTHREAD_CREATE_DETACHED; 19608 19609#if HAVE_PTHREADS > 4 19610 /* Final pthreads */ 19611 pthread_attr_t attr; 19612 19613 status = pthread_attr_init(&attr); 19614 if( status ) return status; 19615 19616#if HAVE_PTHREADS < 7 19617 status = pthread_attr_setdetachstate(&attr, &detach); 19618 if( status < 0 ) status = errno; 19619#else 19620 status = pthread_attr_setdetachstate(&attr, detach); 19621#endif 19622 if( status ) return status; 19623 status = pthread_create( &t, &attr, task, NULL ); 19624#if HAVE_PTHREADS < 7 19625 if( status < 0 ) status = errno; 19626#endif 19627 if( status ) return status; 19628#else 19629 /* Draft 4 pthreads */ 19630 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19631 if( status ) return errno; 19632 19633 /* give thread a chance to complete */ 19634 /* it should remain joinable and hence detachable */ 19635 sleep( 1 ); 19636 19637 status = pthread_detach( &t ); 19638 if( status ) return errno; 19639#endif 19640 19641#ifdef HAVE_LINUX_THREADS 19642 pthread_kill_other_threads_np(); 19643#endif 19644 19645 return 0; 19646 19647} 19648 19649_ACEOF 19650if ac_fn_c_try_run "$LINENO"; then : 19651 ol_cv_pthread_kthread=yes 19652else 19653 ol_cv_pthread_kthread=no 19654fi 19655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19656 conftest.$ac_objext conftest.beam conftest.$ac_ext 19657fi 19658 19659 19660 # restore the LIBS 19661 LIBS="$ol_LIBS" 19662 19663fi 19664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 19665$as_echo "$ol_cv_pthread_kthread" >&6; } 19666 19667 if test $ol_cv_pthread_kthread = yes ; then 19668 ol_link_pthreads="-kthread" 19669 ol_link_threads=posix 19670 fi 19671fi 19672 19673 # Pthread try link: -pthread (ol_cv_pthread_pthread) 19674if test "$ol_link_threads" = no ; then 19675 # try -pthread 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 19677$as_echo_n "checking for pthread link with -pthread... " >&6; } 19678if ${ol_cv_pthread_pthread+:} false; then : 19679 $as_echo_n "(cached) " >&6 19680else 19681 19682 # save the flags 19683 ol_LIBS="$LIBS" 19684 LIBS="-pthread $LIBS" 19685 19686 if test "$cross_compiling" = yes; then : 19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19688/* end confdefs.h. */ 19689 19690/* pthread test headers */ 19691#include <pthread.h> 19692#if HAVE_PTHREADS < 7 19693#include <errno.h> 19694#endif 19695#ifndef NULL 19696#define NULL (void*)0 19697#endif 19698 19699static void *task(p) 19700 void *p; 19701{ 19702 return (void *) (p == NULL); 19703} 19704 19705int 19706main () 19707{ 19708 19709 /* pthread test function */ 19710#ifndef PTHREAD_CREATE_DETACHED 19711#define PTHREAD_CREATE_DETACHED 1 19712#endif 19713 pthread_t t; 19714 int status; 19715 int detach = PTHREAD_CREATE_DETACHED; 19716 19717#if HAVE_PTHREADS > 4 19718 /* Final pthreads */ 19719 pthread_attr_t attr; 19720 19721 status = pthread_attr_init(&attr); 19722 if( status ) return status; 19723 19724#if HAVE_PTHREADS < 7 19725 status = pthread_attr_setdetachstate(&attr, &detach); 19726 if( status < 0 ) status = errno; 19727#else 19728 status = pthread_attr_setdetachstate(&attr, detach); 19729#endif 19730 if( status ) return status; 19731 status = pthread_create( &t, &attr, task, NULL ); 19732#if HAVE_PTHREADS < 7 19733 if( status < 0 ) status = errno; 19734#endif 19735 if( status ) return status; 19736#else 19737 /* Draft 4 pthreads */ 19738 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19739 if( status ) return errno; 19740 19741 /* give thread a chance to complete */ 19742 /* it should remain joinable and hence detachable */ 19743 sleep( 1 ); 19744 19745 status = pthread_detach( &t ); 19746 if( status ) return errno; 19747#endif 19748 19749#ifdef HAVE_LINUX_THREADS 19750 pthread_kill_other_threads_np(); 19751#endif 19752 19753 return 0; 19754 19755 ; 19756 return 0; 19757} 19758_ACEOF 19759if ac_fn_c_try_link "$LINENO"; then : 19760 ol_cv_pthread_pthread=yes 19761else 19762 ol_cv_pthread_pthread=no 19763fi 19764rm -f core conftest.err conftest.$ac_objext \ 19765 conftest$ac_exeext conftest.$ac_ext 19766else 19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19768/* end confdefs.h. */ 19769 19770 19771/* pthread test headers */ 19772#include <pthread.h> 19773#if HAVE_PTHREADS < 7 19774#include <errno.h> 19775#endif 19776#ifndef NULL 19777#define NULL (void*)0 19778#endif 19779 19780static void *task(p) 19781 void *p; 19782{ 19783 return (void *) (p == NULL); 19784} 19785 19786 19787int main(argc, argv) 19788 int argc; 19789 char **argv; 19790{ 19791 19792 /* pthread test function */ 19793#ifndef PTHREAD_CREATE_DETACHED 19794#define PTHREAD_CREATE_DETACHED 1 19795#endif 19796 pthread_t t; 19797 int status; 19798 int detach = PTHREAD_CREATE_DETACHED; 19799 19800#if HAVE_PTHREADS > 4 19801 /* Final pthreads */ 19802 pthread_attr_t attr; 19803 19804 status = pthread_attr_init(&attr); 19805 if( status ) return status; 19806 19807#if HAVE_PTHREADS < 7 19808 status = pthread_attr_setdetachstate(&attr, &detach); 19809 if( status < 0 ) status = errno; 19810#else 19811 status = pthread_attr_setdetachstate(&attr, detach); 19812#endif 19813 if( status ) return status; 19814 status = pthread_create( &t, &attr, task, NULL ); 19815#if HAVE_PTHREADS < 7 19816 if( status < 0 ) status = errno; 19817#endif 19818 if( status ) return status; 19819#else 19820 /* Draft 4 pthreads */ 19821 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19822 if( status ) return errno; 19823 19824 /* give thread a chance to complete */ 19825 /* it should remain joinable and hence detachable */ 19826 sleep( 1 ); 19827 19828 status = pthread_detach( &t ); 19829 if( status ) return errno; 19830#endif 19831 19832#ifdef HAVE_LINUX_THREADS 19833 pthread_kill_other_threads_np(); 19834#endif 19835 19836 return 0; 19837 19838} 19839 19840_ACEOF 19841if ac_fn_c_try_run "$LINENO"; then : 19842 ol_cv_pthread_pthread=yes 19843else 19844 ol_cv_pthread_pthread=no 19845fi 19846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19847 conftest.$ac_objext conftest.beam conftest.$ac_ext 19848fi 19849 19850 19851 # restore the LIBS 19852 LIBS="$ol_LIBS" 19853 19854fi 19855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 19856$as_echo "$ol_cv_pthread_pthread" >&6; } 19857 19858 if test $ol_cv_pthread_pthread = yes ; then 19859 ol_link_pthreads="-pthread" 19860 ol_link_threads=posix 19861 fi 19862fi 19863 19864 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 19865if test "$ol_link_threads" = no ; then 19866 # try -pthreads 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 19868$as_echo_n "checking for pthread link with -pthreads... " >&6; } 19869if ${ol_cv_pthread_pthreads+:} false; then : 19870 $as_echo_n "(cached) " >&6 19871else 19872 19873 # save the flags 19874 ol_LIBS="$LIBS" 19875 LIBS="-pthreads $LIBS" 19876 19877 if test "$cross_compiling" = yes; then : 19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19879/* end confdefs.h. */ 19880 19881/* pthread test headers */ 19882#include <pthread.h> 19883#if HAVE_PTHREADS < 7 19884#include <errno.h> 19885#endif 19886#ifndef NULL 19887#define NULL (void*)0 19888#endif 19889 19890static void *task(p) 19891 void *p; 19892{ 19893 return (void *) (p == NULL); 19894} 19895 19896int 19897main () 19898{ 19899 19900 /* pthread test function */ 19901#ifndef PTHREAD_CREATE_DETACHED 19902#define PTHREAD_CREATE_DETACHED 1 19903#endif 19904 pthread_t t; 19905 int status; 19906 int detach = PTHREAD_CREATE_DETACHED; 19907 19908#if HAVE_PTHREADS > 4 19909 /* Final pthreads */ 19910 pthread_attr_t attr; 19911 19912 status = pthread_attr_init(&attr); 19913 if( status ) return status; 19914 19915#if HAVE_PTHREADS < 7 19916 status = pthread_attr_setdetachstate(&attr, &detach); 19917 if( status < 0 ) status = errno; 19918#else 19919 status = pthread_attr_setdetachstate(&attr, detach); 19920#endif 19921 if( status ) return status; 19922 status = pthread_create( &t, &attr, task, NULL ); 19923#if HAVE_PTHREADS < 7 19924 if( status < 0 ) status = errno; 19925#endif 19926 if( status ) return status; 19927#else 19928 /* Draft 4 pthreads */ 19929 status = pthread_create( &t, pthread_attr_default, task, NULL ); 19930 if( status ) return errno; 19931 19932 /* give thread a chance to complete */ 19933 /* it should remain joinable and hence detachable */ 19934 sleep( 1 ); 19935 19936 status = pthread_detach( &t ); 19937 if( status ) return errno; 19938#endif 19939 19940#ifdef HAVE_LINUX_THREADS 19941 pthread_kill_other_threads_np(); 19942#endif 19943 19944 return 0; 19945 19946 ; 19947 return 0; 19948} 19949_ACEOF 19950if ac_fn_c_try_link "$LINENO"; then : 19951 ol_cv_pthread_pthreads=yes 19952else 19953 ol_cv_pthread_pthreads=no 19954fi 19955rm -f core conftest.err conftest.$ac_objext \ 19956 conftest$ac_exeext conftest.$ac_ext 19957else 19958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19959/* end confdefs.h. */ 19960 19961 19962/* pthread test headers */ 19963#include <pthread.h> 19964#if HAVE_PTHREADS < 7 19965#include <errno.h> 19966#endif 19967#ifndef NULL 19968#define NULL (void*)0 19969#endif 19970 19971static void *task(p) 19972 void *p; 19973{ 19974 return (void *) (p == NULL); 19975} 19976 19977 19978int main(argc, argv) 19979 int argc; 19980 char **argv; 19981{ 19982 19983 /* pthread test function */ 19984#ifndef PTHREAD_CREATE_DETACHED 19985#define PTHREAD_CREATE_DETACHED 1 19986#endif 19987 pthread_t t; 19988 int status; 19989 int detach = PTHREAD_CREATE_DETACHED; 19990 19991#if HAVE_PTHREADS > 4 19992 /* Final pthreads */ 19993 pthread_attr_t attr; 19994 19995 status = pthread_attr_init(&attr); 19996 if( status ) return status; 19997 19998#if HAVE_PTHREADS < 7 19999 status = pthread_attr_setdetachstate(&attr, &detach); 20000 if( status < 0 ) status = errno; 20001#else 20002 status = pthread_attr_setdetachstate(&attr, detach); 20003#endif 20004 if( status ) return status; 20005 status = pthread_create( &t, &attr, task, NULL ); 20006#if HAVE_PTHREADS < 7 20007 if( status < 0 ) status = errno; 20008#endif 20009 if( status ) return status; 20010#else 20011 /* Draft 4 pthreads */ 20012 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20013 if( status ) return errno; 20014 20015 /* give thread a chance to complete */ 20016 /* it should remain joinable and hence detachable */ 20017 sleep( 1 ); 20018 20019 status = pthread_detach( &t ); 20020 if( status ) return errno; 20021#endif 20022 20023#ifdef HAVE_LINUX_THREADS 20024 pthread_kill_other_threads_np(); 20025#endif 20026 20027 return 0; 20028 20029} 20030 20031_ACEOF 20032if ac_fn_c_try_run "$LINENO"; then : 20033 ol_cv_pthread_pthreads=yes 20034else 20035 ol_cv_pthread_pthreads=no 20036fi 20037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20038 conftest.$ac_objext conftest.beam conftest.$ac_ext 20039fi 20040 20041 20042 # restore the LIBS 20043 LIBS="$ol_LIBS" 20044 20045fi 20046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 20047$as_echo "$ol_cv_pthread_pthreads" >&6; } 20048 20049 if test $ol_cv_pthread_pthreads = yes ; then 20050 ol_link_pthreads="-pthreads" 20051 ol_link_threads=posix 20052 fi 20053fi 20054 20055 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 20056if test "$ol_link_threads" = no ; then 20057 # try -mthreads 20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 20059$as_echo_n "checking for pthread link with -mthreads... " >&6; } 20060if ${ol_cv_pthread_mthreads+:} false; then : 20061 $as_echo_n "(cached) " >&6 20062else 20063 20064 # save the flags 20065 ol_LIBS="$LIBS" 20066 LIBS="-mthreads $LIBS" 20067 20068 if test "$cross_compiling" = yes; then : 20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20070/* end confdefs.h. */ 20071 20072/* pthread test headers */ 20073#include <pthread.h> 20074#if HAVE_PTHREADS < 7 20075#include <errno.h> 20076#endif 20077#ifndef NULL 20078#define NULL (void*)0 20079#endif 20080 20081static void *task(p) 20082 void *p; 20083{ 20084 return (void *) (p == NULL); 20085} 20086 20087int 20088main () 20089{ 20090 20091 /* pthread test function */ 20092#ifndef PTHREAD_CREATE_DETACHED 20093#define PTHREAD_CREATE_DETACHED 1 20094#endif 20095 pthread_t t; 20096 int status; 20097 int detach = PTHREAD_CREATE_DETACHED; 20098 20099#if HAVE_PTHREADS > 4 20100 /* Final pthreads */ 20101 pthread_attr_t attr; 20102 20103 status = pthread_attr_init(&attr); 20104 if( status ) return status; 20105 20106#if HAVE_PTHREADS < 7 20107 status = pthread_attr_setdetachstate(&attr, &detach); 20108 if( status < 0 ) status = errno; 20109#else 20110 status = pthread_attr_setdetachstate(&attr, detach); 20111#endif 20112 if( status ) return status; 20113 status = pthread_create( &t, &attr, task, NULL ); 20114#if HAVE_PTHREADS < 7 20115 if( status < 0 ) status = errno; 20116#endif 20117 if( status ) return status; 20118#else 20119 /* Draft 4 pthreads */ 20120 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20121 if( status ) return errno; 20122 20123 /* give thread a chance to complete */ 20124 /* it should remain joinable and hence detachable */ 20125 sleep( 1 ); 20126 20127 status = pthread_detach( &t ); 20128 if( status ) return errno; 20129#endif 20130 20131#ifdef HAVE_LINUX_THREADS 20132 pthread_kill_other_threads_np(); 20133#endif 20134 20135 return 0; 20136 20137 ; 20138 return 0; 20139} 20140_ACEOF 20141if ac_fn_c_try_link "$LINENO"; then : 20142 ol_cv_pthread_mthreads=yes 20143else 20144 ol_cv_pthread_mthreads=no 20145fi 20146rm -f core conftest.err conftest.$ac_objext \ 20147 conftest$ac_exeext conftest.$ac_ext 20148else 20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20150/* end confdefs.h. */ 20151 20152 20153/* pthread test headers */ 20154#include <pthread.h> 20155#if HAVE_PTHREADS < 7 20156#include <errno.h> 20157#endif 20158#ifndef NULL 20159#define NULL (void*)0 20160#endif 20161 20162static void *task(p) 20163 void *p; 20164{ 20165 return (void *) (p == NULL); 20166} 20167 20168 20169int main(argc, argv) 20170 int argc; 20171 char **argv; 20172{ 20173 20174 /* pthread test function */ 20175#ifndef PTHREAD_CREATE_DETACHED 20176#define PTHREAD_CREATE_DETACHED 1 20177#endif 20178 pthread_t t; 20179 int status; 20180 int detach = PTHREAD_CREATE_DETACHED; 20181 20182#if HAVE_PTHREADS > 4 20183 /* Final pthreads */ 20184 pthread_attr_t attr; 20185 20186 status = pthread_attr_init(&attr); 20187 if( status ) return status; 20188 20189#if HAVE_PTHREADS < 7 20190 status = pthread_attr_setdetachstate(&attr, &detach); 20191 if( status < 0 ) status = errno; 20192#else 20193 status = pthread_attr_setdetachstate(&attr, detach); 20194#endif 20195 if( status ) return status; 20196 status = pthread_create( &t, &attr, task, NULL ); 20197#if HAVE_PTHREADS < 7 20198 if( status < 0 ) status = errno; 20199#endif 20200 if( status ) return status; 20201#else 20202 /* Draft 4 pthreads */ 20203 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20204 if( status ) return errno; 20205 20206 /* give thread a chance to complete */ 20207 /* it should remain joinable and hence detachable */ 20208 sleep( 1 ); 20209 20210 status = pthread_detach( &t ); 20211 if( status ) return errno; 20212#endif 20213 20214#ifdef HAVE_LINUX_THREADS 20215 pthread_kill_other_threads_np(); 20216#endif 20217 20218 return 0; 20219 20220} 20221 20222_ACEOF 20223if ac_fn_c_try_run "$LINENO"; then : 20224 ol_cv_pthread_mthreads=yes 20225else 20226 ol_cv_pthread_mthreads=no 20227fi 20228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20229 conftest.$ac_objext conftest.beam conftest.$ac_ext 20230fi 20231 20232 20233 # restore the LIBS 20234 LIBS="$ol_LIBS" 20235 20236fi 20237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 20238$as_echo "$ol_cv_pthread_mthreads" >&6; } 20239 20240 if test $ol_cv_pthread_mthreads = yes ; then 20241 ol_link_pthreads="-mthreads" 20242 ol_link_threads=posix 20243 fi 20244fi 20245 20246 # Pthread try link: -thread (ol_cv_pthread_thread) 20247if test "$ol_link_threads" = no ; then 20248 # try -thread 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 20250$as_echo_n "checking for pthread link with -thread... " >&6; } 20251if ${ol_cv_pthread_thread+:} false; then : 20252 $as_echo_n "(cached) " >&6 20253else 20254 20255 # save the flags 20256 ol_LIBS="$LIBS" 20257 LIBS="-thread $LIBS" 20258 20259 if test "$cross_compiling" = yes; then : 20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20261/* end confdefs.h. */ 20262 20263/* pthread test headers */ 20264#include <pthread.h> 20265#if HAVE_PTHREADS < 7 20266#include <errno.h> 20267#endif 20268#ifndef NULL 20269#define NULL (void*)0 20270#endif 20271 20272static void *task(p) 20273 void *p; 20274{ 20275 return (void *) (p == NULL); 20276} 20277 20278int 20279main () 20280{ 20281 20282 /* pthread test function */ 20283#ifndef PTHREAD_CREATE_DETACHED 20284#define PTHREAD_CREATE_DETACHED 1 20285#endif 20286 pthread_t t; 20287 int status; 20288 int detach = PTHREAD_CREATE_DETACHED; 20289 20290#if HAVE_PTHREADS > 4 20291 /* Final pthreads */ 20292 pthread_attr_t attr; 20293 20294 status = pthread_attr_init(&attr); 20295 if( status ) return status; 20296 20297#if HAVE_PTHREADS < 7 20298 status = pthread_attr_setdetachstate(&attr, &detach); 20299 if( status < 0 ) status = errno; 20300#else 20301 status = pthread_attr_setdetachstate(&attr, detach); 20302#endif 20303 if( status ) return status; 20304 status = pthread_create( &t, &attr, task, NULL ); 20305#if HAVE_PTHREADS < 7 20306 if( status < 0 ) status = errno; 20307#endif 20308 if( status ) return status; 20309#else 20310 /* Draft 4 pthreads */ 20311 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20312 if( status ) return errno; 20313 20314 /* give thread a chance to complete */ 20315 /* it should remain joinable and hence detachable */ 20316 sleep( 1 ); 20317 20318 status = pthread_detach( &t ); 20319 if( status ) return errno; 20320#endif 20321 20322#ifdef HAVE_LINUX_THREADS 20323 pthread_kill_other_threads_np(); 20324#endif 20325 20326 return 0; 20327 20328 ; 20329 return 0; 20330} 20331_ACEOF 20332if ac_fn_c_try_link "$LINENO"; then : 20333 ol_cv_pthread_thread=yes 20334else 20335 ol_cv_pthread_thread=no 20336fi 20337rm -f core conftest.err conftest.$ac_objext \ 20338 conftest$ac_exeext conftest.$ac_ext 20339else 20340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20341/* end confdefs.h. */ 20342 20343 20344/* pthread test headers */ 20345#include <pthread.h> 20346#if HAVE_PTHREADS < 7 20347#include <errno.h> 20348#endif 20349#ifndef NULL 20350#define NULL (void*)0 20351#endif 20352 20353static void *task(p) 20354 void *p; 20355{ 20356 return (void *) (p == NULL); 20357} 20358 20359 20360int main(argc, argv) 20361 int argc; 20362 char **argv; 20363{ 20364 20365 /* pthread test function */ 20366#ifndef PTHREAD_CREATE_DETACHED 20367#define PTHREAD_CREATE_DETACHED 1 20368#endif 20369 pthread_t t; 20370 int status; 20371 int detach = PTHREAD_CREATE_DETACHED; 20372 20373#if HAVE_PTHREADS > 4 20374 /* Final pthreads */ 20375 pthread_attr_t attr; 20376 20377 status = pthread_attr_init(&attr); 20378 if( status ) return status; 20379 20380#if HAVE_PTHREADS < 7 20381 status = pthread_attr_setdetachstate(&attr, &detach); 20382 if( status < 0 ) status = errno; 20383#else 20384 status = pthread_attr_setdetachstate(&attr, detach); 20385#endif 20386 if( status ) return status; 20387 status = pthread_create( &t, &attr, task, NULL ); 20388#if HAVE_PTHREADS < 7 20389 if( status < 0 ) status = errno; 20390#endif 20391 if( status ) return status; 20392#else 20393 /* Draft 4 pthreads */ 20394 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20395 if( status ) return errno; 20396 20397 /* give thread a chance to complete */ 20398 /* it should remain joinable and hence detachable */ 20399 sleep( 1 ); 20400 20401 status = pthread_detach( &t ); 20402 if( status ) return errno; 20403#endif 20404 20405#ifdef HAVE_LINUX_THREADS 20406 pthread_kill_other_threads_np(); 20407#endif 20408 20409 return 0; 20410 20411} 20412 20413_ACEOF 20414if ac_fn_c_try_run "$LINENO"; then : 20415 ol_cv_pthread_thread=yes 20416else 20417 ol_cv_pthread_thread=no 20418fi 20419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20420 conftest.$ac_objext conftest.beam conftest.$ac_ext 20421fi 20422 20423 20424 # restore the LIBS 20425 LIBS="$ol_LIBS" 20426 20427fi 20428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 20429$as_echo "$ol_cv_pthread_thread" >&6; } 20430 20431 if test $ol_cv_pthread_thread = yes ; then 20432 ol_link_pthreads="-thread" 20433 ol_link_threads=posix 20434 fi 20435fi 20436 20437 20438 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 20439if test "$ol_link_threads" = no ; then 20440 # try -lpthread -lmach -lexc -lc_r 20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 20442$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 20443if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 20444 $as_echo_n "(cached) " >&6 20445else 20446 20447 # save the flags 20448 ol_LIBS="$LIBS" 20449 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 20450 20451 if test "$cross_compiling" = yes; then : 20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20453/* end confdefs.h. */ 20454 20455/* pthread test headers */ 20456#include <pthread.h> 20457#if HAVE_PTHREADS < 7 20458#include <errno.h> 20459#endif 20460#ifndef NULL 20461#define NULL (void*)0 20462#endif 20463 20464static void *task(p) 20465 void *p; 20466{ 20467 return (void *) (p == NULL); 20468} 20469 20470int 20471main () 20472{ 20473 20474 /* pthread test function */ 20475#ifndef PTHREAD_CREATE_DETACHED 20476#define PTHREAD_CREATE_DETACHED 1 20477#endif 20478 pthread_t t; 20479 int status; 20480 int detach = PTHREAD_CREATE_DETACHED; 20481 20482#if HAVE_PTHREADS > 4 20483 /* Final pthreads */ 20484 pthread_attr_t attr; 20485 20486 status = pthread_attr_init(&attr); 20487 if( status ) return status; 20488 20489#if HAVE_PTHREADS < 7 20490 status = pthread_attr_setdetachstate(&attr, &detach); 20491 if( status < 0 ) status = errno; 20492#else 20493 status = pthread_attr_setdetachstate(&attr, detach); 20494#endif 20495 if( status ) return status; 20496 status = pthread_create( &t, &attr, task, NULL ); 20497#if HAVE_PTHREADS < 7 20498 if( status < 0 ) status = errno; 20499#endif 20500 if( status ) return status; 20501#else 20502 /* Draft 4 pthreads */ 20503 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20504 if( status ) return errno; 20505 20506 /* give thread a chance to complete */ 20507 /* it should remain joinable and hence detachable */ 20508 sleep( 1 ); 20509 20510 status = pthread_detach( &t ); 20511 if( status ) return errno; 20512#endif 20513 20514#ifdef HAVE_LINUX_THREADS 20515 pthread_kill_other_threads_np(); 20516#endif 20517 20518 return 0; 20519 20520 ; 20521 return 0; 20522} 20523_ACEOF 20524if ac_fn_c_try_link "$LINENO"; then : 20525 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 20526else 20527 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 20528fi 20529rm -f core conftest.err conftest.$ac_objext \ 20530 conftest$ac_exeext conftest.$ac_ext 20531else 20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20533/* end confdefs.h. */ 20534 20535 20536/* pthread test headers */ 20537#include <pthread.h> 20538#if HAVE_PTHREADS < 7 20539#include <errno.h> 20540#endif 20541#ifndef NULL 20542#define NULL (void*)0 20543#endif 20544 20545static void *task(p) 20546 void *p; 20547{ 20548 return (void *) (p == NULL); 20549} 20550 20551 20552int main(argc, argv) 20553 int argc; 20554 char **argv; 20555{ 20556 20557 /* pthread test function */ 20558#ifndef PTHREAD_CREATE_DETACHED 20559#define PTHREAD_CREATE_DETACHED 1 20560#endif 20561 pthread_t t; 20562 int status; 20563 int detach = PTHREAD_CREATE_DETACHED; 20564 20565#if HAVE_PTHREADS > 4 20566 /* Final pthreads */ 20567 pthread_attr_t attr; 20568 20569 status = pthread_attr_init(&attr); 20570 if( status ) return status; 20571 20572#if HAVE_PTHREADS < 7 20573 status = pthread_attr_setdetachstate(&attr, &detach); 20574 if( status < 0 ) status = errno; 20575#else 20576 status = pthread_attr_setdetachstate(&attr, detach); 20577#endif 20578 if( status ) return status; 20579 status = pthread_create( &t, &attr, task, NULL ); 20580#if HAVE_PTHREADS < 7 20581 if( status < 0 ) status = errno; 20582#endif 20583 if( status ) return status; 20584#else 20585 /* Draft 4 pthreads */ 20586 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20587 if( status ) return errno; 20588 20589 /* give thread a chance to complete */ 20590 /* it should remain joinable and hence detachable */ 20591 sleep( 1 ); 20592 20593 status = pthread_detach( &t ); 20594 if( status ) return errno; 20595#endif 20596 20597#ifdef HAVE_LINUX_THREADS 20598 pthread_kill_other_threads_np(); 20599#endif 20600 20601 return 0; 20602 20603} 20604 20605_ACEOF 20606if ac_fn_c_try_run "$LINENO"; then : 20607 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 20608else 20609 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 20610fi 20611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20612 conftest.$ac_objext conftest.beam conftest.$ac_ext 20613fi 20614 20615 20616 # restore the LIBS 20617 LIBS="$ol_LIBS" 20618 20619fi 20620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 20621$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 20622 20623 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 20624 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 20625 ol_link_threads=posix 20626 fi 20627fi 20628 20629 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 20630if test "$ol_link_threads" = no ; then 20631 # try -lpthread -lmach -lexc 20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 20633$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 20634if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 20635 $as_echo_n "(cached) " >&6 20636else 20637 20638 # save the flags 20639 ol_LIBS="$LIBS" 20640 LIBS="-lpthread -lmach -lexc $LIBS" 20641 20642 if test "$cross_compiling" = yes; then : 20643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20644/* end confdefs.h. */ 20645 20646/* pthread test headers */ 20647#include <pthread.h> 20648#if HAVE_PTHREADS < 7 20649#include <errno.h> 20650#endif 20651#ifndef NULL 20652#define NULL (void*)0 20653#endif 20654 20655static void *task(p) 20656 void *p; 20657{ 20658 return (void *) (p == NULL); 20659} 20660 20661int 20662main () 20663{ 20664 20665 /* pthread test function */ 20666#ifndef PTHREAD_CREATE_DETACHED 20667#define PTHREAD_CREATE_DETACHED 1 20668#endif 20669 pthread_t t; 20670 int status; 20671 int detach = PTHREAD_CREATE_DETACHED; 20672 20673#if HAVE_PTHREADS > 4 20674 /* Final pthreads */ 20675 pthread_attr_t attr; 20676 20677 status = pthread_attr_init(&attr); 20678 if( status ) return status; 20679 20680#if HAVE_PTHREADS < 7 20681 status = pthread_attr_setdetachstate(&attr, &detach); 20682 if( status < 0 ) status = errno; 20683#else 20684 status = pthread_attr_setdetachstate(&attr, detach); 20685#endif 20686 if( status ) return status; 20687 status = pthread_create( &t, &attr, task, NULL ); 20688#if HAVE_PTHREADS < 7 20689 if( status < 0 ) status = errno; 20690#endif 20691 if( status ) return status; 20692#else 20693 /* Draft 4 pthreads */ 20694 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20695 if( status ) return errno; 20696 20697 /* give thread a chance to complete */ 20698 /* it should remain joinable and hence detachable */ 20699 sleep( 1 ); 20700 20701 status = pthread_detach( &t ); 20702 if( status ) return errno; 20703#endif 20704 20705#ifdef HAVE_LINUX_THREADS 20706 pthread_kill_other_threads_np(); 20707#endif 20708 20709 return 0; 20710 20711 ; 20712 return 0; 20713} 20714_ACEOF 20715if ac_fn_c_try_link "$LINENO"; then : 20716 ol_cv_pthread_lpthread_lmach_lexc=yes 20717else 20718 ol_cv_pthread_lpthread_lmach_lexc=no 20719fi 20720rm -f core conftest.err conftest.$ac_objext \ 20721 conftest$ac_exeext conftest.$ac_ext 20722else 20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20724/* end confdefs.h. */ 20725 20726 20727/* pthread test headers */ 20728#include <pthread.h> 20729#if HAVE_PTHREADS < 7 20730#include <errno.h> 20731#endif 20732#ifndef NULL 20733#define NULL (void*)0 20734#endif 20735 20736static void *task(p) 20737 void *p; 20738{ 20739 return (void *) (p == NULL); 20740} 20741 20742 20743int main(argc, argv) 20744 int argc; 20745 char **argv; 20746{ 20747 20748 /* pthread test function */ 20749#ifndef PTHREAD_CREATE_DETACHED 20750#define PTHREAD_CREATE_DETACHED 1 20751#endif 20752 pthread_t t; 20753 int status; 20754 int detach = PTHREAD_CREATE_DETACHED; 20755 20756#if HAVE_PTHREADS > 4 20757 /* Final pthreads */ 20758 pthread_attr_t attr; 20759 20760 status = pthread_attr_init(&attr); 20761 if( status ) return status; 20762 20763#if HAVE_PTHREADS < 7 20764 status = pthread_attr_setdetachstate(&attr, &detach); 20765 if( status < 0 ) status = errno; 20766#else 20767 status = pthread_attr_setdetachstate(&attr, detach); 20768#endif 20769 if( status ) return status; 20770 status = pthread_create( &t, &attr, task, NULL ); 20771#if HAVE_PTHREADS < 7 20772 if( status < 0 ) status = errno; 20773#endif 20774 if( status ) return status; 20775#else 20776 /* Draft 4 pthreads */ 20777 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20778 if( status ) return errno; 20779 20780 /* give thread a chance to complete */ 20781 /* it should remain joinable and hence detachable */ 20782 sleep( 1 ); 20783 20784 status = pthread_detach( &t ); 20785 if( status ) return errno; 20786#endif 20787 20788#ifdef HAVE_LINUX_THREADS 20789 pthread_kill_other_threads_np(); 20790#endif 20791 20792 return 0; 20793 20794} 20795 20796_ACEOF 20797if ac_fn_c_try_run "$LINENO"; then : 20798 ol_cv_pthread_lpthread_lmach_lexc=yes 20799else 20800 ol_cv_pthread_lpthread_lmach_lexc=no 20801fi 20802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20803 conftest.$ac_objext conftest.beam conftest.$ac_ext 20804fi 20805 20806 20807 # restore the LIBS 20808 LIBS="$ol_LIBS" 20809 20810fi 20811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 20812$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 20813 20814 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 20815 ol_link_pthreads="-lpthread -lmach -lexc" 20816 ol_link_threads=posix 20817 fi 20818fi 20819 20820 20821 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 20822if test "$ol_link_threads" = no ; then 20823 # try -lpthread -Wl,-woff,85 20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 20825$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 20826if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 20827 $as_echo_n "(cached) " >&6 20828else 20829 20830 # save the flags 20831 ol_LIBS="$LIBS" 20832 LIBS="-lpthread -Wl,-woff,85 $LIBS" 20833 20834 if test "$cross_compiling" = yes; then : 20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20836/* end confdefs.h. */ 20837 20838/* pthread test headers */ 20839#include <pthread.h> 20840#if HAVE_PTHREADS < 7 20841#include <errno.h> 20842#endif 20843#ifndef NULL 20844#define NULL (void*)0 20845#endif 20846 20847static void *task(p) 20848 void *p; 20849{ 20850 return (void *) (p == NULL); 20851} 20852 20853int 20854main () 20855{ 20856 20857 /* pthread test function */ 20858#ifndef PTHREAD_CREATE_DETACHED 20859#define PTHREAD_CREATE_DETACHED 1 20860#endif 20861 pthread_t t; 20862 int status; 20863 int detach = PTHREAD_CREATE_DETACHED; 20864 20865#if HAVE_PTHREADS > 4 20866 /* Final pthreads */ 20867 pthread_attr_t attr; 20868 20869 status = pthread_attr_init(&attr); 20870 if( status ) return status; 20871 20872#if HAVE_PTHREADS < 7 20873 status = pthread_attr_setdetachstate(&attr, &detach); 20874 if( status < 0 ) status = errno; 20875#else 20876 status = pthread_attr_setdetachstate(&attr, detach); 20877#endif 20878 if( status ) return status; 20879 status = pthread_create( &t, &attr, task, NULL ); 20880#if HAVE_PTHREADS < 7 20881 if( status < 0 ) status = errno; 20882#endif 20883 if( status ) return status; 20884#else 20885 /* Draft 4 pthreads */ 20886 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20887 if( status ) return errno; 20888 20889 /* give thread a chance to complete */ 20890 /* it should remain joinable and hence detachable */ 20891 sleep( 1 ); 20892 20893 status = pthread_detach( &t ); 20894 if( status ) return errno; 20895#endif 20896 20897#ifdef HAVE_LINUX_THREADS 20898 pthread_kill_other_threads_np(); 20899#endif 20900 20901 return 0; 20902 20903 ; 20904 return 0; 20905} 20906_ACEOF 20907if ac_fn_c_try_link "$LINENO"; then : 20908 ol_cv_pthread_lib_lpthread_woff=yes 20909else 20910 ol_cv_pthread_lib_lpthread_woff=no 20911fi 20912rm -f core conftest.err conftest.$ac_objext \ 20913 conftest$ac_exeext conftest.$ac_ext 20914else 20915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20916/* end confdefs.h. */ 20917 20918 20919/* pthread test headers */ 20920#include <pthread.h> 20921#if HAVE_PTHREADS < 7 20922#include <errno.h> 20923#endif 20924#ifndef NULL 20925#define NULL (void*)0 20926#endif 20927 20928static void *task(p) 20929 void *p; 20930{ 20931 return (void *) (p == NULL); 20932} 20933 20934 20935int main(argc, argv) 20936 int argc; 20937 char **argv; 20938{ 20939 20940 /* pthread test function */ 20941#ifndef PTHREAD_CREATE_DETACHED 20942#define PTHREAD_CREATE_DETACHED 1 20943#endif 20944 pthread_t t; 20945 int status; 20946 int detach = PTHREAD_CREATE_DETACHED; 20947 20948#if HAVE_PTHREADS > 4 20949 /* Final pthreads */ 20950 pthread_attr_t attr; 20951 20952 status = pthread_attr_init(&attr); 20953 if( status ) return status; 20954 20955#if HAVE_PTHREADS < 7 20956 status = pthread_attr_setdetachstate(&attr, &detach); 20957 if( status < 0 ) status = errno; 20958#else 20959 status = pthread_attr_setdetachstate(&attr, detach); 20960#endif 20961 if( status ) return status; 20962 status = pthread_create( &t, &attr, task, NULL ); 20963#if HAVE_PTHREADS < 7 20964 if( status < 0 ) status = errno; 20965#endif 20966 if( status ) return status; 20967#else 20968 /* Draft 4 pthreads */ 20969 status = pthread_create( &t, pthread_attr_default, task, NULL ); 20970 if( status ) return errno; 20971 20972 /* give thread a chance to complete */ 20973 /* it should remain joinable and hence detachable */ 20974 sleep( 1 ); 20975 20976 status = pthread_detach( &t ); 20977 if( status ) return errno; 20978#endif 20979 20980#ifdef HAVE_LINUX_THREADS 20981 pthread_kill_other_threads_np(); 20982#endif 20983 20984 return 0; 20985 20986} 20987 20988_ACEOF 20989if ac_fn_c_try_run "$LINENO"; then : 20990 ol_cv_pthread_lib_lpthread_woff=yes 20991else 20992 ol_cv_pthread_lib_lpthread_woff=no 20993fi 20994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20995 conftest.$ac_objext conftest.beam conftest.$ac_ext 20996fi 20997 20998 20999 # restore the LIBS 21000 LIBS="$ol_LIBS" 21001 21002fi 21003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 21004$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 21005 21006 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 21007 ol_link_pthreads="-lpthread -Wl,-woff,85" 21008 ol_link_threads=posix 21009 fi 21010fi 21011 21012 21013 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 21014if test "$ol_link_threads" = no ; then 21015 # try -lpthread 21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 21017$as_echo_n "checking for pthread link with -lpthread... " >&6; } 21018if ${ol_cv_pthread_lpthread+:} false; then : 21019 $as_echo_n "(cached) " >&6 21020else 21021 21022 # save the flags 21023 ol_LIBS="$LIBS" 21024 LIBS="-lpthread $LIBS" 21025 21026 if test "$cross_compiling" = yes; then : 21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21028/* end confdefs.h. */ 21029 21030/* pthread test headers */ 21031#include <pthread.h> 21032#if HAVE_PTHREADS < 7 21033#include <errno.h> 21034#endif 21035#ifndef NULL 21036#define NULL (void*)0 21037#endif 21038 21039static void *task(p) 21040 void *p; 21041{ 21042 return (void *) (p == NULL); 21043} 21044 21045int 21046main () 21047{ 21048 21049 /* pthread test function */ 21050#ifndef PTHREAD_CREATE_DETACHED 21051#define PTHREAD_CREATE_DETACHED 1 21052#endif 21053 pthread_t t; 21054 int status; 21055 int detach = PTHREAD_CREATE_DETACHED; 21056 21057#if HAVE_PTHREADS > 4 21058 /* Final pthreads */ 21059 pthread_attr_t attr; 21060 21061 status = pthread_attr_init(&attr); 21062 if( status ) return status; 21063 21064#if HAVE_PTHREADS < 7 21065 status = pthread_attr_setdetachstate(&attr, &detach); 21066 if( status < 0 ) status = errno; 21067#else 21068 status = pthread_attr_setdetachstate(&attr, detach); 21069#endif 21070 if( status ) return status; 21071 status = pthread_create( &t, &attr, task, NULL ); 21072#if HAVE_PTHREADS < 7 21073 if( status < 0 ) status = errno; 21074#endif 21075 if( status ) return status; 21076#else 21077 /* Draft 4 pthreads */ 21078 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21079 if( status ) return errno; 21080 21081 /* give thread a chance to complete */ 21082 /* it should remain joinable and hence detachable */ 21083 sleep( 1 ); 21084 21085 status = pthread_detach( &t ); 21086 if( status ) return errno; 21087#endif 21088 21089#ifdef HAVE_LINUX_THREADS 21090 pthread_kill_other_threads_np(); 21091#endif 21092 21093 return 0; 21094 21095 ; 21096 return 0; 21097} 21098_ACEOF 21099if ac_fn_c_try_link "$LINENO"; then : 21100 ol_cv_pthread_lpthread=yes 21101else 21102 ol_cv_pthread_lpthread=no 21103fi 21104rm -f core conftest.err conftest.$ac_objext \ 21105 conftest$ac_exeext conftest.$ac_ext 21106else 21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21108/* end confdefs.h. */ 21109 21110 21111/* pthread test headers */ 21112#include <pthread.h> 21113#if HAVE_PTHREADS < 7 21114#include <errno.h> 21115#endif 21116#ifndef NULL 21117#define NULL (void*)0 21118#endif 21119 21120static void *task(p) 21121 void *p; 21122{ 21123 return (void *) (p == NULL); 21124} 21125 21126 21127int main(argc, argv) 21128 int argc; 21129 char **argv; 21130{ 21131 21132 /* pthread test function */ 21133#ifndef PTHREAD_CREATE_DETACHED 21134#define PTHREAD_CREATE_DETACHED 1 21135#endif 21136 pthread_t t; 21137 int status; 21138 int detach = PTHREAD_CREATE_DETACHED; 21139 21140#if HAVE_PTHREADS > 4 21141 /* Final pthreads */ 21142 pthread_attr_t attr; 21143 21144 status = pthread_attr_init(&attr); 21145 if( status ) return status; 21146 21147#if HAVE_PTHREADS < 7 21148 status = pthread_attr_setdetachstate(&attr, &detach); 21149 if( status < 0 ) status = errno; 21150#else 21151 status = pthread_attr_setdetachstate(&attr, detach); 21152#endif 21153 if( status ) return status; 21154 status = pthread_create( &t, &attr, task, NULL ); 21155#if HAVE_PTHREADS < 7 21156 if( status < 0 ) status = errno; 21157#endif 21158 if( status ) return status; 21159#else 21160 /* Draft 4 pthreads */ 21161 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21162 if( status ) return errno; 21163 21164 /* give thread a chance to complete */ 21165 /* it should remain joinable and hence detachable */ 21166 sleep( 1 ); 21167 21168 status = pthread_detach( &t ); 21169 if( status ) return errno; 21170#endif 21171 21172#ifdef HAVE_LINUX_THREADS 21173 pthread_kill_other_threads_np(); 21174#endif 21175 21176 return 0; 21177 21178} 21179 21180_ACEOF 21181if ac_fn_c_try_run "$LINENO"; then : 21182 ol_cv_pthread_lpthread=yes 21183else 21184 ol_cv_pthread_lpthread=no 21185fi 21186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21187 conftest.$ac_objext conftest.beam conftest.$ac_ext 21188fi 21189 21190 21191 # restore the LIBS 21192 LIBS="$ol_LIBS" 21193 21194fi 21195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 21196$as_echo "$ol_cv_pthread_lpthread" >&6; } 21197 21198 if test $ol_cv_pthread_lpthread = yes ; then 21199 ol_link_pthreads="-lpthread" 21200 ol_link_threads=posix 21201 fi 21202fi 21203 21204 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 21205if test "$ol_link_threads" = no ; then 21206 # try -lc_r 21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 21208$as_echo_n "checking for pthread link with -lc_r... " >&6; } 21209if ${ol_cv_pthread_lc_r+:} false; then : 21210 $as_echo_n "(cached) " >&6 21211else 21212 21213 # save the flags 21214 ol_LIBS="$LIBS" 21215 LIBS="-lc_r $LIBS" 21216 21217 if test "$cross_compiling" = yes; then : 21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21219/* end confdefs.h. */ 21220 21221/* pthread test headers */ 21222#include <pthread.h> 21223#if HAVE_PTHREADS < 7 21224#include <errno.h> 21225#endif 21226#ifndef NULL 21227#define NULL (void*)0 21228#endif 21229 21230static void *task(p) 21231 void *p; 21232{ 21233 return (void *) (p == NULL); 21234} 21235 21236int 21237main () 21238{ 21239 21240 /* pthread test function */ 21241#ifndef PTHREAD_CREATE_DETACHED 21242#define PTHREAD_CREATE_DETACHED 1 21243#endif 21244 pthread_t t; 21245 int status; 21246 int detach = PTHREAD_CREATE_DETACHED; 21247 21248#if HAVE_PTHREADS > 4 21249 /* Final pthreads */ 21250 pthread_attr_t attr; 21251 21252 status = pthread_attr_init(&attr); 21253 if( status ) return status; 21254 21255#if HAVE_PTHREADS < 7 21256 status = pthread_attr_setdetachstate(&attr, &detach); 21257 if( status < 0 ) status = errno; 21258#else 21259 status = pthread_attr_setdetachstate(&attr, detach); 21260#endif 21261 if( status ) return status; 21262 status = pthread_create( &t, &attr, task, NULL ); 21263#if HAVE_PTHREADS < 7 21264 if( status < 0 ) status = errno; 21265#endif 21266 if( status ) return status; 21267#else 21268 /* Draft 4 pthreads */ 21269 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21270 if( status ) return errno; 21271 21272 /* give thread a chance to complete */ 21273 /* it should remain joinable and hence detachable */ 21274 sleep( 1 ); 21275 21276 status = pthread_detach( &t ); 21277 if( status ) return errno; 21278#endif 21279 21280#ifdef HAVE_LINUX_THREADS 21281 pthread_kill_other_threads_np(); 21282#endif 21283 21284 return 0; 21285 21286 ; 21287 return 0; 21288} 21289_ACEOF 21290if ac_fn_c_try_link "$LINENO"; then : 21291 ol_cv_pthread_lc_r=yes 21292else 21293 ol_cv_pthread_lc_r=no 21294fi 21295rm -f core conftest.err conftest.$ac_objext \ 21296 conftest$ac_exeext conftest.$ac_ext 21297else 21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21299/* end confdefs.h. */ 21300 21301 21302/* pthread test headers */ 21303#include <pthread.h> 21304#if HAVE_PTHREADS < 7 21305#include <errno.h> 21306#endif 21307#ifndef NULL 21308#define NULL (void*)0 21309#endif 21310 21311static void *task(p) 21312 void *p; 21313{ 21314 return (void *) (p == NULL); 21315} 21316 21317 21318int main(argc, argv) 21319 int argc; 21320 char **argv; 21321{ 21322 21323 /* pthread test function */ 21324#ifndef PTHREAD_CREATE_DETACHED 21325#define PTHREAD_CREATE_DETACHED 1 21326#endif 21327 pthread_t t; 21328 int status; 21329 int detach = PTHREAD_CREATE_DETACHED; 21330 21331#if HAVE_PTHREADS > 4 21332 /* Final pthreads */ 21333 pthread_attr_t attr; 21334 21335 status = pthread_attr_init(&attr); 21336 if( status ) return status; 21337 21338#if HAVE_PTHREADS < 7 21339 status = pthread_attr_setdetachstate(&attr, &detach); 21340 if( status < 0 ) status = errno; 21341#else 21342 status = pthread_attr_setdetachstate(&attr, detach); 21343#endif 21344 if( status ) return status; 21345 status = pthread_create( &t, &attr, task, NULL ); 21346#if HAVE_PTHREADS < 7 21347 if( status < 0 ) status = errno; 21348#endif 21349 if( status ) return status; 21350#else 21351 /* Draft 4 pthreads */ 21352 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21353 if( status ) return errno; 21354 21355 /* give thread a chance to complete */ 21356 /* it should remain joinable and hence detachable */ 21357 sleep( 1 ); 21358 21359 status = pthread_detach( &t ); 21360 if( status ) return errno; 21361#endif 21362 21363#ifdef HAVE_LINUX_THREADS 21364 pthread_kill_other_threads_np(); 21365#endif 21366 21367 return 0; 21368 21369} 21370 21371_ACEOF 21372if ac_fn_c_try_run "$LINENO"; then : 21373 ol_cv_pthread_lc_r=yes 21374else 21375 ol_cv_pthread_lc_r=no 21376fi 21377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21378 conftest.$ac_objext conftest.beam conftest.$ac_ext 21379fi 21380 21381 21382 # restore the LIBS 21383 LIBS="$ol_LIBS" 21384 21385fi 21386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 21387$as_echo "$ol_cv_pthread_lc_r" >&6; } 21388 21389 if test $ol_cv_pthread_lc_r = yes ; then 21390 ol_link_pthreads="-lc_r" 21391 ol_link_threads=posix 21392 fi 21393fi 21394 21395 21396 # Pthread try link: -threads (ol_cv_pthread_threads) 21397if test "$ol_link_threads" = no ; then 21398 # try -threads 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 21400$as_echo_n "checking for pthread link with -threads... " >&6; } 21401if ${ol_cv_pthread_threads+:} false; then : 21402 $as_echo_n "(cached) " >&6 21403else 21404 21405 # save the flags 21406 ol_LIBS="$LIBS" 21407 LIBS="-threads $LIBS" 21408 21409 if test "$cross_compiling" = yes; then : 21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21411/* end confdefs.h. */ 21412 21413/* pthread test headers */ 21414#include <pthread.h> 21415#if HAVE_PTHREADS < 7 21416#include <errno.h> 21417#endif 21418#ifndef NULL 21419#define NULL (void*)0 21420#endif 21421 21422static void *task(p) 21423 void *p; 21424{ 21425 return (void *) (p == NULL); 21426} 21427 21428int 21429main () 21430{ 21431 21432 /* pthread test function */ 21433#ifndef PTHREAD_CREATE_DETACHED 21434#define PTHREAD_CREATE_DETACHED 1 21435#endif 21436 pthread_t t; 21437 int status; 21438 int detach = PTHREAD_CREATE_DETACHED; 21439 21440#if HAVE_PTHREADS > 4 21441 /* Final pthreads */ 21442 pthread_attr_t attr; 21443 21444 status = pthread_attr_init(&attr); 21445 if( status ) return status; 21446 21447#if HAVE_PTHREADS < 7 21448 status = pthread_attr_setdetachstate(&attr, &detach); 21449 if( status < 0 ) status = errno; 21450#else 21451 status = pthread_attr_setdetachstate(&attr, detach); 21452#endif 21453 if( status ) return status; 21454 status = pthread_create( &t, &attr, task, NULL ); 21455#if HAVE_PTHREADS < 7 21456 if( status < 0 ) status = errno; 21457#endif 21458 if( status ) return status; 21459#else 21460 /* Draft 4 pthreads */ 21461 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21462 if( status ) return errno; 21463 21464 /* give thread a chance to complete */ 21465 /* it should remain joinable and hence detachable */ 21466 sleep( 1 ); 21467 21468 status = pthread_detach( &t ); 21469 if( status ) return errno; 21470#endif 21471 21472#ifdef HAVE_LINUX_THREADS 21473 pthread_kill_other_threads_np(); 21474#endif 21475 21476 return 0; 21477 21478 ; 21479 return 0; 21480} 21481_ACEOF 21482if ac_fn_c_try_link "$LINENO"; then : 21483 ol_cv_pthread_threads=yes 21484else 21485 ol_cv_pthread_threads=no 21486fi 21487rm -f core conftest.err conftest.$ac_objext \ 21488 conftest$ac_exeext conftest.$ac_ext 21489else 21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21491/* end confdefs.h. */ 21492 21493 21494/* pthread test headers */ 21495#include <pthread.h> 21496#if HAVE_PTHREADS < 7 21497#include <errno.h> 21498#endif 21499#ifndef NULL 21500#define NULL (void*)0 21501#endif 21502 21503static void *task(p) 21504 void *p; 21505{ 21506 return (void *) (p == NULL); 21507} 21508 21509 21510int main(argc, argv) 21511 int argc; 21512 char **argv; 21513{ 21514 21515 /* pthread test function */ 21516#ifndef PTHREAD_CREATE_DETACHED 21517#define PTHREAD_CREATE_DETACHED 1 21518#endif 21519 pthread_t t; 21520 int status; 21521 int detach = PTHREAD_CREATE_DETACHED; 21522 21523#if HAVE_PTHREADS > 4 21524 /* Final pthreads */ 21525 pthread_attr_t attr; 21526 21527 status = pthread_attr_init(&attr); 21528 if( status ) return status; 21529 21530#if HAVE_PTHREADS < 7 21531 status = pthread_attr_setdetachstate(&attr, &detach); 21532 if( status < 0 ) status = errno; 21533#else 21534 status = pthread_attr_setdetachstate(&attr, detach); 21535#endif 21536 if( status ) return status; 21537 status = pthread_create( &t, &attr, task, NULL ); 21538#if HAVE_PTHREADS < 7 21539 if( status < 0 ) status = errno; 21540#endif 21541 if( status ) return status; 21542#else 21543 /* Draft 4 pthreads */ 21544 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21545 if( status ) return errno; 21546 21547 /* give thread a chance to complete */ 21548 /* it should remain joinable and hence detachable */ 21549 sleep( 1 ); 21550 21551 status = pthread_detach( &t ); 21552 if( status ) return errno; 21553#endif 21554 21555#ifdef HAVE_LINUX_THREADS 21556 pthread_kill_other_threads_np(); 21557#endif 21558 21559 return 0; 21560 21561} 21562 21563_ACEOF 21564if ac_fn_c_try_run "$LINENO"; then : 21565 ol_cv_pthread_threads=yes 21566else 21567 ol_cv_pthread_threads=no 21568fi 21569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21570 conftest.$ac_objext conftest.beam conftest.$ac_ext 21571fi 21572 21573 21574 # restore the LIBS 21575 LIBS="$ol_LIBS" 21576 21577fi 21578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 21579$as_echo "$ol_cv_pthread_threads" >&6; } 21580 21581 if test $ol_cv_pthread_threads = yes ; then 21582 ol_link_pthreads="-threads" 21583 ol_link_threads=posix 21584 fi 21585fi 21586 21587 21588 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 21589if test "$ol_link_threads" = no ; then 21590 # try -lpthreads -lmach -lexc -lc_r 21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 21592$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 21593if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 21594 $as_echo_n "(cached) " >&6 21595else 21596 21597 # save the flags 21598 ol_LIBS="$LIBS" 21599 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 21600 21601 if test "$cross_compiling" = yes; then : 21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21603/* end confdefs.h. */ 21604 21605/* pthread test headers */ 21606#include <pthread.h> 21607#if HAVE_PTHREADS < 7 21608#include <errno.h> 21609#endif 21610#ifndef NULL 21611#define NULL (void*)0 21612#endif 21613 21614static void *task(p) 21615 void *p; 21616{ 21617 return (void *) (p == NULL); 21618} 21619 21620int 21621main () 21622{ 21623 21624 /* pthread test function */ 21625#ifndef PTHREAD_CREATE_DETACHED 21626#define PTHREAD_CREATE_DETACHED 1 21627#endif 21628 pthread_t t; 21629 int status; 21630 int detach = PTHREAD_CREATE_DETACHED; 21631 21632#if HAVE_PTHREADS > 4 21633 /* Final pthreads */ 21634 pthread_attr_t attr; 21635 21636 status = pthread_attr_init(&attr); 21637 if( status ) return status; 21638 21639#if HAVE_PTHREADS < 7 21640 status = pthread_attr_setdetachstate(&attr, &detach); 21641 if( status < 0 ) status = errno; 21642#else 21643 status = pthread_attr_setdetachstate(&attr, detach); 21644#endif 21645 if( status ) return status; 21646 status = pthread_create( &t, &attr, task, NULL ); 21647#if HAVE_PTHREADS < 7 21648 if( status < 0 ) status = errno; 21649#endif 21650 if( status ) return status; 21651#else 21652 /* Draft 4 pthreads */ 21653 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21654 if( status ) return errno; 21655 21656 /* give thread a chance to complete */ 21657 /* it should remain joinable and hence detachable */ 21658 sleep( 1 ); 21659 21660 status = pthread_detach( &t ); 21661 if( status ) return errno; 21662#endif 21663 21664#ifdef HAVE_LINUX_THREADS 21665 pthread_kill_other_threads_np(); 21666#endif 21667 21668 return 0; 21669 21670 ; 21671 return 0; 21672} 21673_ACEOF 21674if ac_fn_c_try_link "$LINENO"; then : 21675 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 21676else 21677 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 21678fi 21679rm -f core conftest.err conftest.$ac_objext \ 21680 conftest$ac_exeext conftest.$ac_ext 21681else 21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21683/* end confdefs.h. */ 21684 21685 21686/* pthread test headers */ 21687#include <pthread.h> 21688#if HAVE_PTHREADS < 7 21689#include <errno.h> 21690#endif 21691#ifndef NULL 21692#define NULL (void*)0 21693#endif 21694 21695static void *task(p) 21696 void *p; 21697{ 21698 return (void *) (p == NULL); 21699} 21700 21701 21702int main(argc, argv) 21703 int argc; 21704 char **argv; 21705{ 21706 21707 /* pthread test function */ 21708#ifndef PTHREAD_CREATE_DETACHED 21709#define PTHREAD_CREATE_DETACHED 1 21710#endif 21711 pthread_t t; 21712 int status; 21713 int detach = PTHREAD_CREATE_DETACHED; 21714 21715#if HAVE_PTHREADS > 4 21716 /* Final pthreads */ 21717 pthread_attr_t attr; 21718 21719 status = pthread_attr_init(&attr); 21720 if( status ) return status; 21721 21722#if HAVE_PTHREADS < 7 21723 status = pthread_attr_setdetachstate(&attr, &detach); 21724 if( status < 0 ) status = errno; 21725#else 21726 status = pthread_attr_setdetachstate(&attr, detach); 21727#endif 21728 if( status ) return status; 21729 status = pthread_create( &t, &attr, task, NULL ); 21730#if HAVE_PTHREADS < 7 21731 if( status < 0 ) status = errno; 21732#endif 21733 if( status ) return status; 21734#else 21735 /* Draft 4 pthreads */ 21736 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21737 if( status ) return errno; 21738 21739 /* give thread a chance to complete */ 21740 /* it should remain joinable and hence detachable */ 21741 sleep( 1 ); 21742 21743 status = pthread_detach( &t ); 21744 if( status ) return errno; 21745#endif 21746 21747#ifdef HAVE_LINUX_THREADS 21748 pthread_kill_other_threads_np(); 21749#endif 21750 21751 return 0; 21752 21753} 21754 21755_ACEOF 21756if ac_fn_c_try_run "$LINENO"; then : 21757 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 21758else 21759 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 21760fi 21761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21762 conftest.$ac_objext conftest.beam conftest.$ac_ext 21763fi 21764 21765 21766 # restore the LIBS 21767 LIBS="$ol_LIBS" 21768 21769fi 21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 21771$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 21772 21773 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 21774 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 21775 ol_link_threads=posix 21776 fi 21777fi 21778 21779 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 21780if test "$ol_link_threads" = no ; then 21781 # try -lpthreads -lmach -lexc 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 21783$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 21784if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 21785 $as_echo_n "(cached) " >&6 21786else 21787 21788 # save the flags 21789 ol_LIBS="$LIBS" 21790 LIBS="-lpthreads -lmach -lexc $LIBS" 21791 21792 if test "$cross_compiling" = yes; then : 21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21794/* end confdefs.h. */ 21795 21796/* pthread test headers */ 21797#include <pthread.h> 21798#if HAVE_PTHREADS < 7 21799#include <errno.h> 21800#endif 21801#ifndef NULL 21802#define NULL (void*)0 21803#endif 21804 21805static void *task(p) 21806 void *p; 21807{ 21808 return (void *) (p == NULL); 21809} 21810 21811int 21812main () 21813{ 21814 21815 /* pthread test function */ 21816#ifndef PTHREAD_CREATE_DETACHED 21817#define PTHREAD_CREATE_DETACHED 1 21818#endif 21819 pthread_t t; 21820 int status; 21821 int detach = PTHREAD_CREATE_DETACHED; 21822 21823#if HAVE_PTHREADS > 4 21824 /* Final pthreads */ 21825 pthread_attr_t attr; 21826 21827 status = pthread_attr_init(&attr); 21828 if( status ) return status; 21829 21830#if HAVE_PTHREADS < 7 21831 status = pthread_attr_setdetachstate(&attr, &detach); 21832 if( status < 0 ) status = errno; 21833#else 21834 status = pthread_attr_setdetachstate(&attr, detach); 21835#endif 21836 if( status ) return status; 21837 status = pthread_create( &t, &attr, task, NULL ); 21838#if HAVE_PTHREADS < 7 21839 if( status < 0 ) status = errno; 21840#endif 21841 if( status ) return status; 21842#else 21843 /* Draft 4 pthreads */ 21844 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21845 if( status ) return errno; 21846 21847 /* give thread a chance to complete */ 21848 /* it should remain joinable and hence detachable */ 21849 sleep( 1 ); 21850 21851 status = pthread_detach( &t ); 21852 if( status ) return errno; 21853#endif 21854 21855#ifdef HAVE_LINUX_THREADS 21856 pthread_kill_other_threads_np(); 21857#endif 21858 21859 return 0; 21860 21861 ; 21862 return 0; 21863} 21864_ACEOF 21865if ac_fn_c_try_link "$LINENO"; then : 21866 ol_cv_pthread_lpthreads_lmach_lexc=yes 21867else 21868 ol_cv_pthread_lpthreads_lmach_lexc=no 21869fi 21870rm -f core conftest.err conftest.$ac_objext \ 21871 conftest$ac_exeext conftest.$ac_ext 21872else 21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21874/* end confdefs.h. */ 21875 21876 21877/* pthread test headers */ 21878#include <pthread.h> 21879#if HAVE_PTHREADS < 7 21880#include <errno.h> 21881#endif 21882#ifndef NULL 21883#define NULL (void*)0 21884#endif 21885 21886static void *task(p) 21887 void *p; 21888{ 21889 return (void *) (p == NULL); 21890} 21891 21892 21893int main(argc, argv) 21894 int argc; 21895 char **argv; 21896{ 21897 21898 /* pthread test function */ 21899#ifndef PTHREAD_CREATE_DETACHED 21900#define PTHREAD_CREATE_DETACHED 1 21901#endif 21902 pthread_t t; 21903 int status; 21904 int detach = PTHREAD_CREATE_DETACHED; 21905 21906#if HAVE_PTHREADS > 4 21907 /* Final pthreads */ 21908 pthread_attr_t attr; 21909 21910 status = pthread_attr_init(&attr); 21911 if( status ) return status; 21912 21913#if HAVE_PTHREADS < 7 21914 status = pthread_attr_setdetachstate(&attr, &detach); 21915 if( status < 0 ) status = errno; 21916#else 21917 status = pthread_attr_setdetachstate(&attr, detach); 21918#endif 21919 if( status ) return status; 21920 status = pthread_create( &t, &attr, task, NULL ); 21921#if HAVE_PTHREADS < 7 21922 if( status < 0 ) status = errno; 21923#endif 21924 if( status ) return status; 21925#else 21926 /* Draft 4 pthreads */ 21927 status = pthread_create( &t, pthread_attr_default, task, NULL ); 21928 if( status ) return errno; 21929 21930 /* give thread a chance to complete */ 21931 /* it should remain joinable and hence detachable */ 21932 sleep( 1 ); 21933 21934 status = pthread_detach( &t ); 21935 if( status ) return errno; 21936#endif 21937 21938#ifdef HAVE_LINUX_THREADS 21939 pthread_kill_other_threads_np(); 21940#endif 21941 21942 return 0; 21943 21944} 21945 21946_ACEOF 21947if ac_fn_c_try_run "$LINENO"; then : 21948 ol_cv_pthread_lpthreads_lmach_lexc=yes 21949else 21950 ol_cv_pthread_lpthreads_lmach_lexc=no 21951fi 21952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21953 conftest.$ac_objext conftest.beam conftest.$ac_ext 21954fi 21955 21956 21957 # restore the LIBS 21958 LIBS="$ol_LIBS" 21959 21960fi 21961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 21962$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 21963 21964 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 21965 ol_link_pthreads="-lpthreads -lmach -lexc" 21966 ol_link_threads=posix 21967 fi 21968fi 21969 21970 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 21971if test "$ol_link_threads" = no ; then 21972 # try -lpthreads -lexc 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 21974$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 21975if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 21976 $as_echo_n "(cached) " >&6 21977else 21978 21979 # save the flags 21980 ol_LIBS="$LIBS" 21981 LIBS="-lpthreads -lexc $LIBS" 21982 21983 if test "$cross_compiling" = yes; then : 21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21985/* end confdefs.h. */ 21986 21987/* pthread test headers */ 21988#include <pthread.h> 21989#if HAVE_PTHREADS < 7 21990#include <errno.h> 21991#endif 21992#ifndef NULL 21993#define NULL (void*)0 21994#endif 21995 21996static void *task(p) 21997 void *p; 21998{ 21999 return (void *) (p == NULL); 22000} 22001 22002int 22003main () 22004{ 22005 22006 /* pthread test function */ 22007#ifndef PTHREAD_CREATE_DETACHED 22008#define PTHREAD_CREATE_DETACHED 1 22009#endif 22010 pthread_t t; 22011 int status; 22012 int detach = PTHREAD_CREATE_DETACHED; 22013 22014#if HAVE_PTHREADS > 4 22015 /* Final pthreads */ 22016 pthread_attr_t attr; 22017 22018 status = pthread_attr_init(&attr); 22019 if( status ) return status; 22020 22021#if HAVE_PTHREADS < 7 22022 status = pthread_attr_setdetachstate(&attr, &detach); 22023 if( status < 0 ) status = errno; 22024#else 22025 status = pthread_attr_setdetachstate(&attr, detach); 22026#endif 22027 if( status ) return status; 22028 status = pthread_create( &t, &attr, task, NULL ); 22029#if HAVE_PTHREADS < 7 22030 if( status < 0 ) status = errno; 22031#endif 22032 if( status ) return status; 22033#else 22034 /* Draft 4 pthreads */ 22035 status = pthread_create( &t, pthread_attr_default, task, NULL ); 22036 if( status ) return errno; 22037 22038 /* give thread a chance to complete */ 22039 /* it should remain joinable and hence detachable */ 22040 sleep( 1 ); 22041 22042 status = pthread_detach( &t ); 22043 if( status ) return errno; 22044#endif 22045 22046#ifdef HAVE_LINUX_THREADS 22047 pthread_kill_other_threads_np(); 22048#endif 22049 22050 return 0; 22051 22052 ; 22053 return 0; 22054} 22055_ACEOF 22056if ac_fn_c_try_link "$LINENO"; then : 22057 ol_cv_pthread_lpthreads_lexc=yes 22058else 22059 ol_cv_pthread_lpthreads_lexc=no 22060fi 22061rm -f core conftest.err conftest.$ac_objext \ 22062 conftest$ac_exeext conftest.$ac_ext 22063else 22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22065/* end confdefs.h. */ 22066 22067 22068/* pthread test headers */ 22069#include <pthread.h> 22070#if HAVE_PTHREADS < 7 22071#include <errno.h> 22072#endif 22073#ifndef NULL 22074#define NULL (void*)0 22075#endif 22076 22077static void *task(p) 22078 void *p; 22079{ 22080 return (void *) (p == NULL); 22081} 22082 22083 22084int main(argc, argv) 22085 int argc; 22086 char **argv; 22087{ 22088 22089 /* pthread test function */ 22090#ifndef PTHREAD_CREATE_DETACHED 22091#define PTHREAD_CREATE_DETACHED 1 22092#endif 22093 pthread_t t; 22094 int status; 22095 int detach = PTHREAD_CREATE_DETACHED; 22096 22097#if HAVE_PTHREADS > 4 22098 /* Final pthreads */ 22099 pthread_attr_t attr; 22100 22101 status = pthread_attr_init(&attr); 22102 if( status ) return status; 22103 22104#if HAVE_PTHREADS < 7 22105 status = pthread_attr_setdetachstate(&attr, &detach); 22106 if( status < 0 ) status = errno; 22107#else 22108 status = pthread_attr_setdetachstate(&attr, detach); 22109#endif 22110 if( status ) return status; 22111 status = pthread_create( &t, &attr, task, NULL ); 22112#if HAVE_PTHREADS < 7 22113 if( status < 0 ) status = errno; 22114#endif 22115 if( status ) return status; 22116#else 22117 /* Draft 4 pthreads */ 22118 status = pthread_create( &t, pthread_attr_default, task, NULL ); 22119 if( status ) return errno; 22120 22121 /* give thread a chance to complete */ 22122 /* it should remain joinable and hence detachable */ 22123 sleep( 1 ); 22124 22125 status = pthread_detach( &t ); 22126 if( status ) return errno; 22127#endif 22128 22129#ifdef HAVE_LINUX_THREADS 22130 pthread_kill_other_threads_np(); 22131#endif 22132 22133 return 0; 22134 22135} 22136 22137_ACEOF 22138if ac_fn_c_try_run "$LINENO"; then : 22139 ol_cv_pthread_lpthreads_lexc=yes 22140else 22141 ol_cv_pthread_lpthreads_lexc=no 22142fi 22143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22144 conftest.$ac_objext conftest.beam conftest.$ac_ext 22145fi 22146 22147 22148 # restore the LIBS 22149 LIBS="$ol_LIBS" 22150 22151fi 22152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 22153$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 22154 22155 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 22156 ol_link_pthreads="-lpthreads -lexc" 22157 ol_link_threads=posix 22158 fi 22159fi 22160 22161 22162 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 22163if test "$ol_link_threads" = no ; then 22164 # try -lpthreads 22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 22166$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 22167if ${ol_cv_pthread_lib_lpthreads+:} false; then : 22168 $as_echo_n "(cached) " >&6 22169else 22170 22171 # save the flags 22172 ol_LIBS="$LIBS" 22173 LIBS="-lpthreads $LIBS" 22174 22175 if test "$cross_compiling" = yes; then : 22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22177/* end confdefs.h. */ 22178 22179/* pthread test headers */ 22180#include <pthread.h> 22181#if HAVE_PTHREADS < 7 22182#include <errno.h> 22183#endif 22184#ifndef NULL 22185#define NULL (void*)0 22186#endif 22187 22188static void *task(p) 22189 void *p; 22190{ 22191 return (void *) (p == NULL); 22192} 22193 22194int 22195main () 22196{ 22197 22198 /* pthread test function */ 22199#ifndef PTHREAD_CREATE_DETACHED 22200#define PTHREAD_CREATE_DETACHED 1 22201#endif 22202 pthread_t t; 22203 int status; 22204 int detach = PTHREAD_CREATE_DETACHED; 22205 22206#if HAVE_PTHREADS > 4 22207 /* Final pthreads */ 22208 pthread_attr_t attr; 22209 22210 status = pthread_attr_init(&attr); 22211 if( status ) return status; 22212 22213#if HAVE_PTHREADS < 7 22214 status = pthread_attr_setdetachstate(&attr, &detach); 22215 if( status < 0 ) status = errno; 22216#else 22217 status = pthread_attr_setdetachstate(&attr, detach); 22218#endif 22219 if( status ) return status; 22220 status = pthread_create( &t, &attr, task, NULL ); 22221#if HAVE_PTHREADS < 7 22222 if( status < 0 ) status = errno; 22223#endif 22224 if( status ) return status; 22225#else 22226 /* Draft 4 pthreads */ 22227 status = pthread_create( &t, pthread_attr_default, task, NULL ); 22228 if( status ) return errno; 22229 22230 /* give thread a chance to complete */ 22231 /* it should remain joinable and hence detachable */ 22232 sleep( 1 ); 22233 22234 status = pthread_detach( &t ); 22235 if( status ) return errno; 22236#endif 22237 22238#ifdef HAVE_LINUX_THREADS 22239 pthread_kill_other_threads_np(); 22240#endif 22241 22242 return 0; 22243 22244 ; 22245 return 0; 22246} 22247_ACEOF 22248if ac_fn_c_try_link "$LINENO"; then : 22249 ol_cv_pthread_lib_lpthreads=yes 22250else 22251 ol_cv_pthread_lib_lpthreads=no 22252fi 22253rm -f core conftest.err conftest.$ac_objext \ 22254 conftest$ac_exeext conftest.$ac_ext 22255else 22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22257/* end confdefs.h. */ 22258 22259 22260/* pthread test headers */ 22261#include <pthread.h> 22262#if HAVE_PTHREADS < 7 22263#include <errno.h> 22264#endif 22265#ifndef NULL 22266#define NULL (void*)0 22267#endif 22268 22269static void *task(p) 22270 void *p; 22271{ 22272 return (void *) (p == NULL); 22273} 22274 22275 22276int main(argc, argv) 22277 int argc; 22278 char **argv; 22279{ 22280 22281 /* pthread test function */ 22282#ifndef PTHREAD_CREATE_DETACHED 22283#define PTHREAD_CREATE_DETACHED 1 22284#endif 22285 pthread_t t; 22286 int status; 22287 int detach = PTHREAD_CREATE_DETACHED; 22288 22289#if HAVE_PTHREADS > 4 22290 /* Final pthreads */ 22291 pthread_attr_t attr; 22292 22293 status = pthread_attr_init(&attr); 22294 if( status ) return status; 22295 22296#if HAVE_PTHREADS < 7 22297 status = pthread_attr_setdetachstate(&attr, &detach); 22298 if( status < 0 ) status = errno; 22299#else 22300 status = pthread_attr_setdetachstate(&attr, detach); 22301#endif 22302 if( status ) return status; 22303 status = pthread_create( &t, &attr, task, NULL ); 22304#if HAVE_PTHREADS < 7 22305 if( status < 0 ) status = errno; 22306#endif 22307 if( status ) return status; 22308#else 22309 /* Draft 4 pthreads */ 22310 status = pthread_create( &t, pthread_attr_default, task, NULL ); 22311 if( status ) return errno; 22312 22313 /* give thread a chance to complete */ 22314 /* it should remain joinable and hence detachable */ 22315 sleep( 1 ); 22316 22317 status = pthread_detach( &t ); 22318 if( status ) return errno; 22319#endif 22320 22321#ifdef HAVE_LINUX_THREADS 22322 pthread_kill_other_threads_np(); 22323#endif 22324 22325 return 0; 22326 22327} 22328 22329_ACEOF 22330if ac_fn_c_try_run "$LINENO"; then : 22331 ol_cv_pthread_lib_lpthreads=yes 22332else 22333 ol_cv_pthread_lib_lpthreads=no 22334fi 22335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22336 conftest.$ac_objext conftest.beam conftest.$ac_ext 22337fi 22338 22339 22340 # restore the LIBS 22341 LIBS="$ol_LIBS" 22342 22343fi 22344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 22345$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 22346 22347 if test $ol_cv_pthread_lib_lpthreads = yes ; then 22348 ol_link_pthreads="-lpthreads" 22349 ol_link_threads=posix 22350 fi 22351fi 22352 22353 22354{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 22355$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 22356 22357 if test $ol_link_threads != no ; then 22358 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 22359 22360 save_CPPFLAGS="$CPPFLAGS" 22361 save_LIBS="$LIBS" 22362 LIBS="$LTHREAD_LIBS $LIBS" 22363 22364 for ac_func in sched_yield pthread_yield thr_yield 22365do : 22366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22367ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22368if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22369 cat >>confdefs.h <<_ACEOF 22370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22371_ACEOF 22372 22373fi 22374done 22375 22376 22377 if test $ac_cv_func_sched_yield = no && 22378 test $ac_cv_func_pthread_yield = no && 22379 test $ac_cv_func_thr_yield = no ; then 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 22381$as_echo_n "checking for sched_yield in -lrt... " >&6; } 22382if ${ac_cv_lib_rt_sched_yield+:} false; then : 22383 $as_echo_n "(cached) " >&6 22384else 22385 ac_check_lib_save_LIBS=$LIBS 22386LIBS="-lrt $LIBS" 22387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22388/* end confdefs.h. */ 22389 22390/* Override any GCC internal prototype to avoid an error. 22391 Use char because int might match the return type of a GCC 22392 builtin and then its argument prototype would still apply. */ 22393#ifdef __cplusplus 22394extern "C" 22395#endif 22396char sched_yield (); 22397int 22398main () 22399{ 22400return sched_yield (); 22401 ; 22402 return 0; 22403} 22404_ACEOF 22405if ac_fn_c_try_link "$LINENO"; then : 22406 ac_cv_lib_rt_sched_yield=yes 22407else 22408 ac_cv_lib_rt_sched_yield=no 22409fi 22410rm -f core conftest.err conftest.$ac_objext \ 22411 conftest$ac_exeext conftest.$ac_ext 22412LIBS=$ac_check_lib_save_LIBS 22413fi 22414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 22415$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 22416if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 22417 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 22418 22419$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 22420 22421 ac_cv_func_sched_yield=yes 22422else 22423 ac_cv_func_sched_yield=no 22424fi 22425 22426 fi 22427 if test $ac_cv_func_sched_yield = no && 22428 test $ac_cv_func_pthread_yield = no && 22429 test "$ac_cv_func_thr_yield" = no ; then 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 22431$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 22432 fi 22433 22434 for ac_func in pthread_kill 22435do : 22436 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 22437if test "x$ac_cv_func_pthread_kill" = xyes; then : 22438 cat >>confdefs.h <<_ACEOF 22439#define HAVE_PTHREAD_KILL 1 22440_ACEOF 22441 22442fi 22443done 22444 22445 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 22447$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 22448if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 22449 $as_echo_n "(cached) " >&6 22450else 22451 22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22453/* end confdefs.h. */ 22454 22455#include <pthread.h> 22456pthread_rwlock_t rwlock; 22457 22458int 22459main () 22460{ 22461pthread_rwlock_destroy(&rwlock); 22462 ; 22463 return 0; 22464} 22465_ACEOF 22466if ac_fn_c_try_link "$LINENO"; then : 22467 ol_cv_func_pthread_rwlock_destroy=yes 22468else 22469 ol_cv_func_pthread_rwlock_destroy=no 22470fi 22471rm -f core conftest.err conftest.$ac_objext \ 22472 conftest$ac_exeext conftest.$ac_ext 22473 22474fi 22475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 22476$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 22477 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 22478 22479$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 22480 22481 fi 22482 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 22484$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 22485if ${ol_cv_func_pthread_detach+:} false; then : 22486 $as_echo_n "(cached) " >&6 22487else 22488 22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22490/* end confdefs.h. */ 22491 22492#include <pthread.h> 22493#ifndef NULL 22494#define NULL (void*)0 22495#endif 22496 22497int 22498main () 22499{ 22500pthread_detach(NULL); 22501 ; 22502 return 0; 22503} 22504_ACEOF 22505if ac_fn_c_try_link "$LINENO"; then : 22506 ol_cv_func_pthread_detach=yes 22507else 22508 ol_cv_func_pthread_detach=no 22509fi 22510rm -f core conftest.err conftest.$ac_objext \ 22511 conftest$ac_exeext conftest.$ac_ext 22512 22513fi 22514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 22515$as_echo "$ol_cv_func_pthread_detach" >&6; } 22516 22517 if test $ol_cv_func_pthread_detach = no ; then 22518 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 22519 fi 22520 22521 22522$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 22523 22524 22525 for ac_func in \ 22526 pthread_setconcurrency \ 22527 pthread_getconcurrency \ 22528 thr_setconcurrency \ 22529 thr_getconcurrency \ 22530 22531do : 22532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22534if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22535 cat >>confdefs.h <<_ACEOF 22536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22537_ACEOF 22538 22539fi 22540done 22541 22542 22543 22544 for ac_func in pthread_kill_other_threads_np 22545do : 22546 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 22547if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 22548 cat >>confdefs.h <<_ACEOF 22549#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 22550_ACEOF 22551 22552fi 22553done 22554 22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 22556$as_echo_n "checking for LinuxThreads implementation... " >&6; } 22557if ${ol_cv_sys_linux_threads+:} false; then : 22558 $as_echo_n "(cached) " >&6 22559else 22560 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 22561fi 22562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 22563$as_echo "$ol_cv_sys_linux_threads" >&6; } 22564 22565 22566 22567 22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 22569$as_echo_n "checking for LinuxThreads consistency... " >&6; } 22570if ${ol_cv_linux_threads+:} false; then : 22571 $as_echo_n "(cached) " >&6 22572else 22573 22574 if test $ol_cv_header_linux_threads = yes && 22575 test $ol_cv_sys_linux_threads = yes; then 22576 ol_cv_linux_threads=yes 22577 elif test $ol_cv_header_linux_threads = no && 22578 test $ol_cv_sys_linux_threads = no; then 22579 ol_cv_linux_threads=no 22580 else 22581 ol_cv_linux_threads=error 22582 fi 22583 22584fi 22585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 22586$as_echo "$ol_cv_linux_threads" >&6; } 22587 22588 22589 if test $ol_cv_linux_threads = error; then 22590 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 22591 fi 22592 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 22594$as_echo_n "checking if pthread_create() works... " >&6; } 22595if ${ol_cv_pthread_create_works+:} false; then : 22596 $as_echo_n "(cached) " >&6 22597else 22598 22599 if test "$cross_compiling" = yes; then : 22600 ol_cv_pthread_create_works=yes 22601else 22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22603/* end confdefs.h. */ 22604 22605 22606/* pthread test headers */ 22607#include <pthread.h> 22608#if HAVE_PTHREADS < 7 22609#include <errno.h> 22610#endif 22611#ifndef NULL 22612#define NULL (void*)0 22613#endif 22614 22615static void *task(p) 22616 void *p; 22617{ 22618 return (void *) (p == NULL); 22619} 22620 22621 22622int main(argc, argv) 22623 int argc; 22624 char **argv; 22625{ 22626 22627 /* pthread test function */ 22628#ifndef PTHREAD_CREATE_DETACHED 22629#define PTHREAD_CREATE_DETACHED 1 22630#endif 22631 pthread_t t; 22632 int status; 22633 int detach = PTHREAD_CREATE_DETACHED; 22634 22635#if HAVE_PTHREADS > 4 22636 /* Final pthreads */ 22637 pthread_attr_t attr; 22638 22639 status = pthread_attr_init(&attr); 22640 if( status ) return status; 22641 22642#if HAVE_PTHREADS < 7 22643 status = pthread_attr_setdetachstate(&attr, &detach); 22644 if( status < 0 ) status = errno; 22645#else 22646 status = pthread_attr_setdetachstate(&attr, detach); 22647#endif 22648 if( status ) return status; 22649 status = pthread_create( &t, &attr, task, NULL ); 22650#if HAVE_PTHREADS < 7 22651 if( status < 0 ) status = errno; 22652#endif 22653 if( status ) return status; 22654#else 22655 /* Draft 4 pthreads */ 22656 status = pthread_create( &t, pthread_attr_default, task, NULL ); 22657 if( status ) return errno; 22658 22659 /* give thread a chance to complete */ 22660 /* it should remain joinable and hence detachable */ 22661 sleep( 1 ); 22662 22663 status = pthread_detach( &t ); 22664 if( status ) return errno; 22665#endif 22666 22667#ifdef HAVE_LINUX_THREADS 22668 pthread_kill_other_threads_np(); 22669#endif 22670 22671 return 0; 22672 22673} 22674 22675_ACEOF 22676if ac_fn_c_try_run "$LINENO"; then : 22677 ol_cv_pthread_create_works=yes 22678else 22679 ol_cv_pthread_create_works=no 22680fi 22681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22682 conftest.$ac_objext conftest.beam conftest.$ac_ext 22683fi 22684 22685fi 22686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 22687$as_echo "$ol_cv_pthread_create_works" >&6; } 22688 22689 if test $ol_cv_pthread_create_works = no ; then 22690 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 22691 fi 22692 22693 ol_replace_broken_yield=no 22694 22695 if test $ol_replace_broken_yield = yes ; then 22696 22697$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 22698 22699 fi 22700 22701 if test x$ol_with_yielding_select = xauto ; then 22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 22703$as_echo_n "checking if select yields when using pthreads... " >&6; } 22704if ${ol_cv_pthread_select_yields+:} false; then : 22705 $as_echo_n "(cached) " >&6 22706else 22707 22708 if test "$cross_compiling" = yes; then : 22709 ol_cv_pthread_select_yields=cross 22710else 22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22712/* end confdefs.h. */ 22713 22714#include <sys/types.h> 22715#include <sys/time.h> 22716#include <unistd.h> 22717#include <pthread.h> 22718#ifndef NULL 22719#define NULL (void*) 0 22720#endif 22721 22722static int fildes[2]; 22723 22724static void *task(p) 22725 void *p; 22726{ 22727 int i; 22728 struct timeval tv; 22729 22730 fd_set rfds; 22731 22732 tv.tv_sec=10; 22733 tv.tv_usec=0; 22734 22735 FD_ZERO(&rfds); 22736 FD_SET(fildes[0], &rfds); 22737 22738 /* we're not interested in any fds */ 22739 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 22740 22741 if(i < 0) { 22742 perror("select"); 22743 exit(10); 22744 } 22745 22746 exit(0); /* if we exit here, the select blocked the whole process */ 22747} 22748 22749int main(argc, argv) 22750 int argc; 22751 char **argv; 22752{ 22753 pthread_t t; 22754 22755 /* create a pipe to select */ 22756 if(pipe(&fildes[0])) { 22757 perror("select"); 22758 exit(1); 22759 } 22760 22761#ifdef HAVE_PTHREAD_SETCONCURRENCY 22762 (void) pthread_setconcurrency(2); 22763#else 22764#ifdef HAVE_THR_SETCONCURRENCY 22765 /* Set Solaris LWP concurrency to 2 */ 22766 thr_setconcurrency(2); 22767#endif 22768#endif 22769 22770#if HAVE_PTHREADS < 6 22771 pthread_create(&t, pthread_attr_default, task, NULL); 22772#else 22773 pthread_create(&t, NULL, task, NULL); 22774#endif 22775 22776 /* make sure task runs first */ 22777#ifdef HAVE_THR_YIELD 22778 thr_yield(); 22779#elif defined( HAVE_SCHED_YIELD ) 22780 sched_yield(); 22781#elif defined( HAVE_PTHREAD_YIELD ) 22782 pthread_yield(); 22783#endif 22784 22785 exit(2); 22786} 22787_ACEOF 22788if ac_fn_c_try_run "$LINENO"; then : 22789 ol_cv_pthread_select_yields=no 22790else 22791 ol_cv_pthread_select_yields=yes 22792fi 22793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22794 conftest.$ac_objext conftest.beam conftest.$ac_ext 22795fi 22796 22797fi 22798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 22799$as_echo "$ol_cv_pthread_select_yields" >&6; } 22800 22801 if test $ol_cv_pthread_select_yields = cross ; then 22802 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 22803 fi 22804 22805 if test $ol_cv_pthread_select_yields = yes ; then 22806 ol_with_yielding_select=yes 22807 fi 22808 fi 22809 22810 CPPFLAGS="$save_CPPFLAGS" 22811 LIBS="$save_LIBS" 22812 else 22813 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 22814 fi 22815 fi 22816 22817 if test $ol_with_threads = posix ; then 22818 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 22819 fi 22820 ;; 22821esac 22822 22823case $ol_with_threads in auto | yes | mach) 22824 22825 for ac_header in mach/cthreads.h cthreads.h 22826do : 22827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22830 cat >>confdefs.h <<_ACEOF 22831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22832_ACEOF 22833 22834fi 22835 22836done 22837 22838 if test $ac_cv_header_mach_cthreads_h = yes ; then 22839 ol_with_threads=found 22840 22841 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 22842if test "x$ac_cv_func_cthread_fork" = xyes; then : 22843 ol_link_threads=yes 22844fi 22845 22846 22847 if test $ol_link_threads = no ; then 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 22849$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 22850if ${ol_cv_cthread_all_load+:} false; then : 22851 $as_echo_n "(cached) " >&6 22852else 22853 22854 save_LIBS="$LIBS" 22855 LIBS="-all_load $LIBS" 22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22857/* end confdefs.h. */ 22858#include <mach/cthreads.h> 22859int 22860main () 22861{ 22862 22863 cthread_fork((void *)0, (void *)0); 22864 22865 ; 22866 return 0; 22867} 22868_ACEOF 22869if ac_fn_c_try_link "$LINENO"; then : 22870 ol_cv_cthread_all_load=yes 22871else 22872 ol_cv_cthread_all_load=no 22873fi 22874rm -f core conftest.err conftest.$ac_objext \ 22875 conftest$ac_exeext conftest.$ac_ext 22876 LIBS="$save_LIBS" 22877 22878fi 22879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 22880$as_echo "$ol_cv_cthread_all_load" >&6; } 22881 22882 if test $ol_cv_cthread_all_load = yes ; then 22883 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 22884 ol_link_threads=mach 22885 ol_with_threads=found 22886 fi 22887 fi 22888 22889 elif test $ac_cv_header_cthreads_h = yes ; then 22890 22891 ol_with_threads=found 22892 22893 save_LIBS="$LIBS" 22894 LIBS="$LIBS -lthreads" 22895 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 22896if test "x$ac_cv_func_cthread_fork" = xyes; then : 22897 ol_link_threads=yes 22898fi 22899 22900 LIBS="$save_LIBS" 22901 22902 if test $ol_link_threads = yes ; then 22903 LTHREAD_LIBS="-lthreads" 22904 ol_link_threads=mach 22905 ol_with_threads=found 22906 else 22907 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 22908 fi 22909 22910 elif test $ol_with_threads = mach ; then 22911 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 22912 fi 22913 22914 if test $ol_link_threads = mach ; then 22915 22916$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 22917 22918 elif test $ol_with_threads = found ; then 22919 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 22920 fi 22921 ;; 22922esac 22923 22924case $ol_with_threads in auto | yes | pth) 22925 22926 for ac_header in pth.h 22927do : 22928 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 22929if test "x$ac_cv_header_pth_h" = xyes; then : 22930 cat >>confdefs.h <<_ACEOF 22931#define HAVE_PTH_H 1 22932_ACEOF 22933 22934fi 22935 22936done 22937 22938 22939 if test $ac_cv_header_pth_h = yes ; then 22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 22941$as_echo_n "checking for pth_version in -lpth... " >&6; } 22942if ${ac_cv_lib_pth_pth_version+:} false; then : 22943 $as_echo_n "(cached) " >&6 22944else 22945 ac_check_lib_save_LIBS=$LIBS 22946LIBS="-lpth $LIBS" 22947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22948/* end confdefs.h. */ 22949 22950/* Override any GCC internal prototype to avoid an error. 22951 Use char because int might match the return type of a GCC 22952 builtin and then its argument prototype would still apply. */ 22953#ifdef __cplusplus 22954extern "C" 22955#endif 22956char pth_version (); 22957int 22958main () 22959{ 22960return pth_version (); 22961 ; 22962 return 0; 22963} 22964_ACEOF 22965if ac_fn_c_try_link "$LINENO"; then : 22966 ac_cv_lib_pth_pth_version=yes 22967else 22968 ac_cv_lib_pth_pth_version=no 22969fi 22970rm -f core conftest.err conftest.$ac_objext \ 22971 conftest$ac_exeext conftest.$ac_ext 22972LIBS=$ac_check_lib_save_LIBS 22973fi 22974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 22975$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 22976if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 22977 have_pth=yes 22978else 22979 have_pth=no 22980fi 22981 22982 22983 if test $have_pth = yes ; then 22984 22985$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 22986 22987 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 22988 ol_link_threads=pth 22989 ol_with_threads=found 22990 22991 if test x$ol_with_yielding_select = xauto ; then 22992 ol_with_yielding_select=yes 22993 fi 22994 fi 22995 fi 22996 ;; 22997esac 22998 22999case $ol_with_threads in auto | yes | lwp) 23000 23001 for ac_header in thread.h synch.h 23002do : 23003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23004ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23005if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23006 cat >>confdefs.h <<_ACEOF 23007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23008_ACEOF 23009 23010fi 23011 23012done 23013 23014 if test $ac_cv_header_thread_h = yes && 23015 test $ac_cv_header_synch_h = yes ; then 23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 23017$as_echo_n "checking for thr_create in -lthread... " >&6; } 23018if ${ac_cv_lib_thread_thr_create+:} false; then : 23019 $as_echo_n "(cached) " >&6 23020else 23021 ac_check_lib_save_LIBS=$LIBS 23022LIBS="-lthread $LIBS" 23023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23024/* end confdefs.h. */ 23025 23026/* Override any GCC internal prototype to avoid an error. 23027 Use char because int might match the return type of a GCC 23028 builtin and then its argument prototype would still apply. */ 23029#ifdef __cplusplus 23030extern "C" 23031#endif 23032char thr_create (); 23033int 23034main () 23035{ 23036return thr_create (); 23037 ; 23038 return 0; 23039} 23040_ACEOF 23041if ac_fn_c_try_link "$LINENO"; then : 23042 ac_cv_lib_thread_thr_create=yes 23043else 23044 ac_cv_lib_thread_thr_create=no 23045fi 23046rm -f core conftest.err conftest.$ac_objext \ 23047 conftest$ac_exeext conftest.$ac_ext 23048LIBS=$ac_check_lib_save_LIBS 23049fi 23050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 23051$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 23052if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 23053 have_thr=yes 23054else 23055 have_thr=no 23056fi 23057 23058 23059 if test $have_thr = yes ; then 23060 23061$as_echo "#define HAVE_THR 1" >>confdefs.h 23062 23063 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 23064 ol_link_threads=thr 23065 23066 if test x$ol_with_yielding_select = xauto ; then 23067 ol_with_yielding_select=yes 23068 fi 23069 23070 for ac_func in \ 23071 thr_setconcurrency \ 23072 thr_getconcurrency \ 23073 23074do : 23075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23077if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23078 cat >>confdefs.h <<_ACEOF 23079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23080_ACEOF 23081 23082fi 23083done 23084 23085 fi 23086 fi 23087 23088 for ac_header in lwp/lwp.h 23089do : 23090 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 23091if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 23092 cat >>confdefs.h <<_ACEOF 23093#define HAVE_LWP_LWP_H 1 23094_ACEOF 23095 23096fi 23097 23098done 23099 23100 if test $ac_cv_header_lwp_lwp_h = yes ; then 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 23102$as_echo_n "checking for lwp_create in -llwp... " >&6; } 23103if ${ac_cv_lib_lwp_lwp_create+:} false; then : 23104 $as_echo_n "(cached) " >&6 23105else 23106 ac_check_lib_save_LIBS=$LIBS 23107LIBS="-llwp $LIBS" 23108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23109/* end confdefs.h. */ 23110 23111/* Override any GCC internal prototype to avoid an error. 23112 Use char because int might match the return type of a GCC 23113 builtin and then its argument prototype would still apply. */ 23114#ifdef __cplusplus 23115extern "C" 23116#endif 23117char lwp_create (); 23118int 23119main () 23120{ 23121return lwp_create (); 23122 ; 23123 return 0; 23124} 23125_ACEOF 23126if ac_fn_c_try_link "$LINENO"; then : 23127 ac_cv_lib_lwp_lwp_create=yes 23128else 23129 ac_cv_lib_lwp_lwp_create=no 23130fi 23131rm -f core conftest.err conftest.$ac_objext \ 23132 conftest$ac_exeext conftest.$ac_ext 23133LIBS=$ac_check_lib_save_LIBS 23134fi 23135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 23136$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 23137if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 23138 have_lwp=yes 23139else 23140 have_lwp=no 23141fi 23142 23143 23144 if test $have_lwp = yes ; then 23145 23146$as_echo "#define HAVE_LWP 1" >>confdefs.h 23147 23148 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 23149 ol_link_threads=lwp 23150 23151 if test x$ol_with_yielding_select = xauto ; then 23152 ol_with_yielding_select=no 23153 fi 23154 fi 23155 fi 23156 ;; 23157esac 23158 23159if test $ol_with_yielding_select = yes ; then 23160 23161$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 23162 23163fi 23164 23165if test $ol_with_threads = manual ; then 23166 ol_link_threads=yes 23167 23168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 23169$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 23170 23171 for ac_header in pthread.h sched.h 23172do : 23173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23174ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23175if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23176 cat >>confdefs.h <<_ACEOF 23177#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23178_ACEOF 23179 23180fi 23181 23182done 23183 23184 for ac_func in sched_yield pthread_yield 23185do : 23186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23188if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23189 cat >>confdefs.h <<_ACEOF 23190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23191_ACEOF 23192 23193fi 23194done 23195 23196 23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 23198$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 23199if ${ol_cv_header_linux_threads+:} false; then : 23200 $as_echo_n "(cached) " >&6 23201else 23202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23203/* end confdefs.h. */ 23204#include <pthread.h> 23205_ACEOF 23206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23207 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 23208 ol_cv_header_linux_threads=yes 23209else 23210 ol_cv_header_linux_threads=no 23211fi 23212rm -f conftest* 23213 23214 23215fi 23216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 23217$as_echo "$ol_cv_header_linux_threads" >&6; } 23218 if test $ol_cv_header_linux_threads = yes; then 23219 23220$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 23221 23222 fi 23223 23224 23225 for ac_header in mach/cthreads.h 23226do : 23227 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 23228if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 23229 cat >>confdefs.h <<_ACEOF 23230#define HAVE_MACH_CTHREADS_H 1 23231_ACEOF 23232 23233fi 23234 23235done 23236 23237 for ac_header in lwp/lwp.h 23238do : 23239 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 23240if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 23241 cat >>confdefs.h <<_ACEOF 23242#define HAVE_LWP_LWP_H 1 23243_ACEOF 23244 23245fi 23246 23247done 23248 23249 for ac_header in thread.h synch.h 23250do : 23251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23252ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23254 cat >>confdefs.h <<_ACEOF 23255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23256_ACEOF 23257 23258fi 23259 23260done 23261 23262fi 23263 23264if test $ol_link_threads != no && test $ol_link_threads != nt ; then 23265 23266$as_echo "#define REENTRANT 1" >>confdefs.h 23267 23268 23269$as_echo "#define _REENTRANT 1" >>confdefs.h 23270 23271 23272$as_echo "#define THREAD_SAFE 1" >>confdefs.h 23273 23274 23275$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 23276 23277 23278$as_echo "#define THREADSAFE 1" >>confdefs.h 23279 23280 23281$as_echo "#define _THREADSAFE 1" >>confdefs.h 23282 23283 23284$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 23285 23286 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 23288$as_echo_n "checking for thread specific errno... " >&6; } 23289if ${ol_cv_errno_thread_specific+:} false; then : 23290 $as_echo_n "(cached) " >&6 23291else 23292 23293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23294/* end confdefs.h. */ 23295#include <errno.h> 23296int 23297main () 23298{ 23299errno = 0; 23300 ; 23301 return 0; 23302} 23303_ACEOF 23304if ac_fn_c_try_link "$LINENO"; then : 23305 ol_cv_errno_thread_specific=yes 23306else 23307 ol_cv_errno_thread_specific=no 23308fi 23309rm -f core conftest.err conftest.$ac_objext \ 23310 conftest$ac_exeext conftest.$ac_ext 23311 23312fi 23313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 23314$as_echo "$ol_cv_errno_thread_specific" >&6; } 23315 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 23317$as_echo_n "checking for thread specific h_errno... " >&6; } 23318if ${ol_cv_h_errno_thread_specific+:} false; then : 23319 $as_echo_n "(cached) " >&6 23320else 23321 23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23323/* end confdefs.h. */ 23324#include <netdb.h> 23325int 23326main () 23327{ 23328h_errno = 0; 23329 ; 23330 return 0; 23331} 23332_ACEOF 23333if ac_fn_c_try_link "$LINENO"; then : 23334 ol_cv_h_errno_thread_specific=yes 23335else 23336 ol_cv_h_errno_thread_specific=no 23337fi 23338rm -f core conftest.err conftest.$ac_objext \ 23339 conftest$ac_exeext conftest.$ac_ext 23340 23341fi 23342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 23343$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 23344 23345 if test $ol_cv_errno_thread_specific != yes || 23346 test $ol_cv_h_errno_thread_specific != yes ; then 23347 LIBS="$LTHREAD_LIBS $LIBS" 23348 LTHREAD_LIBS="" 23349 fi 23350 23351fi 23352 23353if test $ol_link_threads = no ; then 23354 if test $ol_with_threads = yes ; then 23355 as_fn_error $? "no suitable thread support" "$LINENO" 5 23356 fi 23357 23358 if test $ol_with_threads = auto ; then 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 23360$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 23361 ol_with_threads=no 23362 fi 23363 23364 23365$as_echo "#define NO_THREADS 1" >>confdefs.h 23366 23367 LTHREAD_LIBS="" 23368 BUILD_THREAD=no 23369else 23370 BUILD_THREAD=yes 23371fi 23372 23373if test $ol_link_threads != no ; then 23374 23375$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 23376 23377fi 23378 23379# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 23380case "$ol_with_threads" in 23381 no) 23382 ol_pthread_ok=no 23383 23384 ;; 23385 *) 23386 ol_found_pthreads=yes 23387 ;; 23388esac 23389 23390ac_ext=c 23391ac_cpp='$CPP $CPPFLAGS' 23392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23394ac_compiler_gnu=$ac_cv_c_compiler_gnu 23395 23396 23397 23398 23399 23400 23401 case "$ol_found_pthreads" in 23402 yes) 23403 saved_LIBS="$LIBS" 23404 LIBS="$LTHREAD_LIBS $LIBS" 23405 saved_CFLAGS="$CFLAGS" 23406 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 23407 for ac_func in sem_timedwait 23408do : 23409 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 23410if test "x$ac_cv_func_sem_timedwait" = xyes; then : 23411 cat >>confdefs.h <<_ACEOF 23412#define HAVE_SEM_TIMEDWAIT 1 23413_ACEOF 23414 23415fi 23416done 23417 23418 LIBS="$saved_LIBS" 23419 { saved_LIBS=; unset saved_LIBS;} 23420 CFLAGS="$saved_CFLAGS" 23421 { saved_CFLAGS=; unset saved_CFLAGS;} 23422 case "$ac_cv_func_sem_timedwait" in 23423 yes) 23424 PTHREAD_LIBS="$LTHREAD_LIBS" 23425 have_pthreads=yes 23426 esac 23427 esac 23428esac 23429 23430case "$have_pthreads" in 23431 yes) 23432 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 23433 saved_LIBS="$LIBS" 23434 LIBS="$LTHREAD_LIBS $LIBS" 23435 saved_CFLAGS="$CFLAGS" 23436 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 23437 # The cast to long int works around a bug in the HP C Compiler 23438# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23439# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23440# This bug is HP SR number 8606223364. 23441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 23442$as_echo_n "checking size of pthread_t... " >&6; } 23443if ${ac_cv_sizeof_pthread_t+:} false; then : 23444 $as_echo_n "(cached) " >&6 23445else 23446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 23447 $ac_includes_default 23448 #include <pthread.h> 23449 23450 23451"; then : 23452 23453else 23454 if test "$ac_cv_type_pthread_t" = yes; then 23455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23457as_fn_error 77 "cannot compute sizeof (pthread_t) 23458See \`config.log' for more details" "$LINENO" 5; } 23459 else 23460 ac_cv_sizeof_pthread_t=0 23461 fi 23462fi 23463 23464fi 23465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 23466$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 23467 23468 23469 23470cat >>confdefs.h <<_ACEOF 23471#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 23472_ACEOF 23473 23474 23475 LIBISC_PTHREADS_NOTHREADS=pthreads 23476 23477$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 23478 23479 # 23480 # We'd like to use sigwait() too 23481 # 23482 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 23483if test "x$ac_cv_func_sigwait" = xyes; then : 23484 have_sigwait=yes 23485else 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 23487$as_echo_n "checking for sigwait in -lc... " >&6; } 23488if ${ac_cv_lib_c_sigwait+:} false; then : 23489 $as_echo_n "(cached) " >&6 23490else 23491 ac_check_lib_save_LIBS=$LIBS 23492LIBS="-lc $LIBS" 23493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23494/* end confdefs.h. */ 23495 23496/* Override any GCC internal prototype to avoid an error. 23497 Use char because int might match the return type of a GCC 23498 builtin and then its argument prototype would still apply. */ 23499#ifdef __cplusplus 23500extern "C" 23501#endif 23502char sigwait (); 23503int 23504main () 23505{ 23506return sigwait (); 23507 ; 23508 return 0; 23509} 23510_ACEOF 23511if ac_fn_c_try_link "$LINENO"; then : 23512 ac_cv_lib_c_sigwait=yes 23513else 23514 ac_cv_lib_c_sigwait=no 23515fi 23516rm -f core conftest.err conftest.$ac_objext \ 23517 conftest$ac_exeext conftest.$ac_ext 23518LIBS=$ac_check_lib_save_LIBS 23519fi 23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 23521$as_echo "$ac_cv_lib_c_sigwait" >&6; } 23522if test "x$ac_cv_lib_c_sigwait" = xyes; then : 23523 have_sigwait=yes 23524else 23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 23526$as_echo_n "checking for sigwait in -lpthread... " >&6; } 23527if ${ac_cv_lib_pthread_sigwait+:} false; then : 23528 $as_echo_n "(cached) " >&6 23529else 23530 ac_check_lib_save_LIBS=$LIBS 23531LIBS="-lpthread $LIBS" 23532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23533/* end confdefs.h. */ 23534 23535/* Override any GCC internal prototype to avoid an error. 23536 Use char because int might match the return type of a GCC 23537 builtin and then its argument prototype would still apply. */ 23538#ifdef __cplusplus 23539extern "C" 23540#endif 23541char sigwait (); 23542int 23543main () 23544{ 23545return sigwait (); 23546 ; 23547 return 0; 23548} 23549_ACEOF 23550if ac_fn_c_try_link "$LINENO"; then : 23551 ac_cv_lib_pthread_sigwait=yes 23552else 23553 ac_cv_lib_pthread_sigwait=no 23554fi 23555rm -f core conftest.err conftest.$ac_objext \ 23556 conftest$ac_exeext conftest.$ac_ext 23557LIBS=$ac_check_lib_save_LIBS 23558fi 23559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 23560$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 23561if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 23562 have_sigwait=yes 23563else 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 23565$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 23566if ${ac_cv_lib_pthread__Psigwait+:} false; then : 23567 $as_echo_n "(cached) " >&6 23568else 23569 ac_check_lib_save_LIBS=$LIBS 23570LIBS="-lpthread $LIBS" 23571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23572/* end confdefs.h. */ 23573 23574/* Override any GCC internal prototype to avoid an error. 23575 Use char because int might match the return type of a GCC 23576 builtin and then its argument prototype would still apply. */ 23577#ifdef __cplusplus 23578extern "C" 23579#endif 23580char _Psigwait (); 23581int 23582main () 23583{ 23584return _Psigwait (); 23585 ; 23586 return 0; 23587} 23588_ACEOF 23589if ac_fn_c_try_link "$LINENO"; then : 23590 ac_cv_lib_pthread__Psigwait=yes 23591else 23592 ac_cv_lib_pthread__Psigwait=no 23593fi 23594rm -f core conftest.err conftest.$ac_objext \ 23595 conftest$ac_exeext conftest.$ac_ext 23596LIBS=$ac_check_lib_save_LIBS 23597fi 23598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 23599$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 23600if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 23601 have_sigwait=yes 23602else 23603 have_sigwait=no 23604 23605fi 23606 23607 23608fi 23609 23610 23611fi 23612 23613 23614fi 23615 23616 case "$host:$have_sigwait" in 23617 *-freebsd*:no) 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 23619$as_echo_n "checking for sigwait in -lc_r... " >&6; } 23620if ${ac_cv_lib_c_r_sigwait+:} false; then : 23621 $as_echo_n "(cached) " >&6 23622else 23623 ac_check_lib_save_LIBS=$LIBS 23624LIBS="-lc_r $LIBS" 23625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23626/* end confdefs.h. */ 23627 23628/* Override any GCC internal prototype to avoid an error. 23629 Use char because int might match the return type of a GCC 23630 builtin and then its argument prototype would still apply. */ 23631#ifdef __cplusplus 23632extern "C" 23633#endif 23634char sigwait (); 23635int 23636main () 23637{ 23638return sigwait (); 23639 ; 23640 return 0; 23641} 23642_ACEOF 23643if ac_fn_c_try_link "$LINENO"; then : 23644 ac_cv_lib_c_r_sigwait=yes 23645else 23646 ac_cv_lib_c_r_sigwait=no 23647fi 23648rm -f core conftest.err conftest.$ac_objext \ 23649 conftest$ac_exeext conftest.$ac_ext 23650LIBS=$ac_check_lib_save_LIBS 23651fi 23652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 23653$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 23654if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 23655 have_sigwait=yes 23656 23657fi 23658 23659 esac 23660 case "$have_sigwait" in 23661 yes) 23662 ac_cv_func_sigwait=yes 23663 23664$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 23665 23666 esac 23667 23668 for ac_func in pthread_attr_getstacksize 23669do : 23670 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 23671if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 23672 cat >>confdefs.h <<_ACEOF 23673#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 23674_ACEOF 23675 23676fi 23677done 23678 23679 for ac_func in pthread_attr_setstacksize sysconf 23680do : 23681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23682ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23683if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23684 cat >>confdefs.h <<_ACEOF 23685#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23686_ACEOF 23687 23688fi 23689done 23690 23691 23692 case "$host" in 23693 *-freebsd5.[012]|*-freebsd5.[012].*) 23694 ;; 23695 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 23696 23697$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 23698 23699 ;; 23700 *-bsdi3.*|*-bsdi4.0*) 23701 23702$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 23703 23704 ;; 23705 *-linux*) 23706 23707$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 23708 23709 ;; 23710 *-solaris*) 23711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 23712 23713 for ac_func in pthread_setconcurrency 23714do : 23715 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 23716if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 23717 cat >>confdefs.h <<_ACEOF 23718#define HAVE_PTHREAD_SETCONCURRENCY 1 23719_ACEOF 23720 23721fi 23722done 23723 23724 case "$ac_cv_func_pthread_setconcurrency" in 23725 yes) 23726 23727$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 23728 23729 esac 23730 ;; 23731 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 23732 23733$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 23734 23735 ;; 23736 esac 23737 hack_shutup_pthreadonceinit=no 23738 case "$host" in 23739 *-aix5.[123].*) 23740 hack_shutup_pthreadonceinit=yes 23741 ;; 23742 *-solaris2.[89]) 23743 hack_shutup_pthreadonceinit=yes 23744 ;; 23745 *-solaris2.1[0-9]) 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 23747$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 23748if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 23749 $as_echo_n "(cached) " >&6 23750else 23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23752/* end confdefs.h. */ 23753 23754 #include <pthread.h> 23755 23756int 23757main () 23758{ 23759 23760 static pthread_once_t once_test = 23761 PTHREAD_ONCE_INIT; 23762 23763 23764 ; 23765 return 0; 23766} 23767_ACEOF 23768if ac_fn_c_try_compile "$LINENO"; then : 23769 ntp_cv_braces_around_pthread_once_init=no 23770else 23771 ntp_cv_braces_around_pthread_once_init=yes 23772 23773fi 23774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23775 23776fi 23777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 23778$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 23779 case "$ntp_cv_braces_around_pthread_once_init" in 23780 yes) 23781 hack_shutup_pthreadonceinit=yes 23782 esac 23783 ;; 23784 esac 23785 case "$hack_shutup_pthreadonceinit" in 23786 yes) 23787 23788$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 23789 23790 esac 23791 LIBS="$saved_LIBS" 23792 { saved_LIBS=; unset saved_LIBS;} 23793 CFLAGS="$saved_CFLAGS" 23794 { saved_CFLAGS=; unset saved_CFLAGS;} 23795 ;; 23796 *) 23797 LIBISC_PTHREADS_NOTHREADS=nothreads 23798 ;; 23799esac 23800 23801 if test "$have_pthreads" != "no"; then 23802 PTHREADS_TRUE= 23803 PTHREADS_FALSE='#' 23804else 23805 PTHREADS_TRUE='#' 23806 PTHREADS_FALSE= 23807fi 23808 23809 23810 23811 23812 23813 23814 23815case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 23816 no:yes) 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 23818$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 23819if ${ntp_cv_vsnprintf_percent_m+:} false; then : 23820 $as_echo_n "(cached) " >&6 23821else 23822 if test "$cross_compiling" = yes; then : 23823 ntp_cv_vsnprintf_percent_m=no 23824 23825else 23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23827/* end confdefs.h. */ 23828 23829 #include <stdarg.h> 23830 #include <errno.h> 23831 #include <stdio.h> 23832 #include <string.h> 23833 23834 int call_vsnprintf( 23835 char * dst, 23836 size_t sz, 23837 const char *fmt, 23838 ... 23839 ); 23840 23841 int call_vsnprintf( 23842 char * dst, 23843 size_t sz, 23844 const char *fmt, 23845 ... 23846 ) 23847 { 23848 va_list ap; 23849 int rc; 23850 23851 va_start(ap, fmt); 23852 rc = vsnprintf(dst, sz, fmt, ap); 23853 va_end(ap); 23854 23855 return rc; 23856 } 23857 23858int 23859main () 23860{ 23861 23862 char sbuf[512]; 23863 char pbuf[512]; 23864 int slen; 23865 23866 strcpy(sbuf, strerror(ENOENT)); 23867 errno = ENOENT; 23868 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 23869 "wrong"); 23870 return strcmp(sbuf, pbuf); 23871 23872 23873 ; 23874 return 0; 23875} 23876_ACEOF 23877if ac_fn_c_try_run "$LINENO"; then : 23878 ntp_cv_vsnprintf_percent_m=yes 23879else 23880 ntp_cv_vsnprintf_percent_m=no 23881fi 23882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23883 conftest.$ac_objext conftest.beam conftest.$ac_ext 23884fi 23885 23886 23887fi 23888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 23889$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 23890 case "$ntp_cv_vsnprintf_percent_m" in 23891 yes) 23892 23893$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 23894 23895 esac 23896esac 23897 23898for ac_header in sys/clockctl.h 23899do : 23900 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 23901if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 23902 cat >>confdefs.h <<_ACEOF 23903#define HAVE_SYS_CLOCKCTL_H 1 23904_ACEOF 23905 23906fi 23907 23908done 23909 23910 23911# Check whether --enable-clockctl was given. 23912if test "${enable_clockctl+set}" = set; then : 23913 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 23914else 23915 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 23916 23917fi 23918 23919 23920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 23921$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 23922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 23923$as_echo "$ntp_use_dev_clockctl" >&6; } 23924 23925 23926for ac_header in sys/capability.h sys/prctl.h 23927do : 23928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23931 cat >>confdefs.h <<_ACEOF 23932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23933_ACEOF 23934 23935fi 23936 23937done 23938 23939 23940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 23941$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 23942 23943case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 23944 yesyes) 23945 case "$host" in 23946 mips-sgi-irix*) 23947 ntp_have_linuxcaps=no 23948 ;; 23949 *) ntp_have_linuxcaps=yes 23950 ;; 23951 esac 23952 ;; 23953 *) 23954 ntp_have_linuxcaps=no 23955 ;; 23956esac 23957 23958# Check whether --enable-linuxcaps was given. 23959if test "${enable_linuxcaps+set}" = set; then : 23960 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 23961 23962fi 23963 23964 23965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 23966$as_echo "$ntp_have_linuxcaps" >&6; } 23967 23968case "$ntp_have_linuxcaps" in 23969 yes) 23970 23971$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 23972 23973 LIBS="$LIBS -lcap" 23974 ;; 23975esac 23976 23977 23978for ac_header in priv.h 23979do : 23980 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 23981if test "x$ac_cv_header_priv_h" = xyes; then : 23982 cat >>confdefs.h <<_ACEOF 23983#define HAVE_PRIV_H 1 23984_ACEOF 23985 23986fi 23987 23988done 23989 23990case "$ac_cv_header_priv_h" in 23991 yes) 23992 case "$host" in 23993 *-solaris*) 23994 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 23995if test "x$ac_cv_func_setppriv" = xyes; then : 23996 ntp_have_solarisprivs=yes 23997else 23998 ntp_have_solarisprivs=no 23999 24000fi 24001 24002 ;; 24003 esac 24004esac 24005 24006# Check whether --enable-solarisprivs was given. 24007if test "${enable_solarisprivs+set}" = set; then : 24008 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 24009 24010fi 24011 24012 24013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 24014$as_echo_n "checking if we have solaris privileges... " >&6; } 24015 24016case "$ntp_have_solarisprivs" in 24017 yes) 24018 24019$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 24020 24021 ;; 24022 '') ntp_have_solarisprivs="no" 24023 ;; 24024esac 24025 24026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 24027$as_echo "$ntp_have_solarisprivs" >&6; } 24028 24029for ac_header in sys/mac.h 24030do : 24031 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default" 24032if test "x$ac_cv_header_sys_mac_h" = xyes; then : 24033 cat >>confdefs.h <<_ACEOF 24034#define HAVE_SYS_MAC_H 1 24035_ACEOF 24036 24037fi 24038 24039done 24040 24041 24042# Check whether --enable-trustedbsd_mac was given. 24043if test "${enable_trustedbsd_mac+set}" = set; then : 24044 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval 24045 24046fi 24047 24048 24049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5 24050$as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; } 24051 24052case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in 24053 yesyes) 24054 24055$as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h 24056 24057 ;; 24058 *) ntp_use_trustedbsd_mac="no"; 24059 ;; 24060esac 24061 24062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5 24063$as_echo "$ntp_use_trustedbsd_mac" >&6; } 24064 24065case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in 24066 *yes*) 24067 24068$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 24069 24070esac 24071 24072case "$host" in 24073 *-*-darwin*) 24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 24075$as_echo_n "checking for library containing res_9_init... " >&6; } 24076if ${ac_cv_search_res_9_init+:} false; then : 24077 $as_echo_n "(cached) " >&6 24078else 24079 ac_func_search_save_LIBS=$LIBS 24080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24081/* end confdefs.h. */ 24082 24083/* Override any GCC internal prototype to avoid an error. 24084 Use char because int might match the return type of a GCC 24085 builtin and then its argument prototype would still apply. */ 24086#ifdef __cplusplus 24087extern "C" 24088#endif 24089char res_9_init (); 24090int 24091main () 24092{ 24093return res_9_init (); 24094 ; 24095 return 0; 24096} 24097_ACEOF 24098for ac_lib in '' resolv; do 24099 if test -z "$ac_lib"; then 24100 ac_res="none required" 24101 else 24102 ac_res=-l$ac_lib 24103 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24104 fi 24105 if ac_fn_c_try_link "$LINENO"; then : 24106 ac_cv_search_res_9_init=$ac_res 24107fi 24108rm -f core conftest.err conftest.$ac_objext \ 24109 conftest$ac_exeext 24110 if ${ac_cv_search_res_9_init+:} false; then : 24111 break 24112fi 24113done 24114if ${ac_cv_search_res_9_init+:} false; then : 24115 24116else 24117 ac_cv_search_res_9_init=no 24118fi 24119rm conftest.$ac_ext 24120LIBS=$ac_func_search_save_LIBS 24121fi 24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 24123$as_echo "$ac_cv_search_res_9_init" >&6; } 24124ac_res=$ac_cv_search_res_9_init 24125if test "$ac_res" != no; then : 24126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24127 24128fi 24129 24130 ;; 24131 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 24132$as_echo_n "checking for library containing res_init... " >&6; } 24133if ${ac_cv_search_res_init+:} false; then : 24134 $as_echo_n "(cached) " >&6 24135else 24136 ac_func_search_save_LIBS=$LIBS 24137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24138/* end confdefs.h. */ 24139 24140/* Override any GCC internal prototype to avoid an error. 24141 Use char because int might match the return type of a GCC 24142 builtin and then its argument prototype would still apply. */ 24143#ifdef __cplusplus 24144extern "C" 24145#endif 24146char res_init (); 24147int 24148main () 24149{ 24150return res_init (); 24151 ; 24152 return 0; 24153} 24154_ACEOF 24155for ac_lib in '' resolv; do 24156 if test -z "$ac_lib"; then 24157 ac_res="none required" 24158 else 24159 ac_res=-l$ac_lib 24160 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24161 fi 24162 if ac_fn_c_try_link "$LINENO"; then : 24163 ac_cv_search_res_init=$ac_res 24164fi 24165rm -f core conftest.err conftest.$ac_objext \ 24166 conftest$ac_exeext 24167 if ${ac_cv_search_res_init+:} false; then : 24168 break 24169fi 24170done 24171if ${ac_cv_search_res_init+:} false; then : 24172 24173else 24174 ac_cv_search_res_init=no 24175fi 24176rm conftest.$ac_ext 24177LIBS=$ac_func_search_save_LIBS 24178fi 24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 24180$as_echo "$ac_cv_search_res_init" >&6; } 24181ac_res=$ac_cv_search_res_init 24182if test "$ac_res" != no; then : 24183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24184 24185fi 24186 24187 ;; 24188esac 24189for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 24190do : 24191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24192ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 24193# include <sys/types.h> 24194#endif 24195#ifdef HAVE_NETINET_IN_H 24196# include <netinet/in.h> /* inet_ functions / structs */ 24197#endif 24198#ifdef HAVE_ARPA_NAMESER_H 24199# include <arpa/nameser.h> /* DNS HEADER struct */ 24200#endif 24201#ifdef HAVE_NETDB_H 24202# include <netdb.h> 24203#endif 24204" 24205if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24206 cat >>confdefs.h <<_ACEOF 24207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24208_ACEOF 24209 24210fi 24211 24212done 24213 24214 24215#HMS: Why do we do this check so "early"? 24216for ac_func in res_init 24217do : 24218 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 24219if test "x$ac_cv_func_res_init" = xyes; then : 24220 cat >>confdefs.h <<_ACEOF 24221#define HAVE_RES_INIT 1 24222_ACEOF 24223 24224else 24225 for ac_func in __res_init 24226do : 24227 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 24228if test "x$ac_cv_func___res_init" = xyes; then : 24229 cat >>confdefs.h <<_ACEOF 24230#define HAVE___RES_INIT 1 24231_ACEOF 24232 24233fi 24234done 24235 24236fi 24237done 24238 24239 24240# We also need -lsocket, but we have tested for that already. 24241ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 24242if test "x$ac_cv_func_inet_ntop" = xyes; then : 24243 24244else 24245 24246$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 24247 24248fi 24249 24250ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 24251if test "x$ac_cv_func_inet_pton" = xyes; then : 24252 24253else 24254 24255$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 24256 24257fi 24258 24259 24260ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 24261if test "x$ac_cv_type_uintptr_t" = xyes; then : 24262 24263cat >>confdefs.h <<_ACEOF 24264#define HAVE_UINTPTR_T 1 24265_ACEOF 24266 24267 24268fi 24269ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 24270if test "x$ac_cv_type_int32" = xyes; then : 24271 24272cat >>confdefs.h <<_ACEOF 24273#define HAVE_INT32 1 24274_ACEOF 24275 24276 24277fi 24278ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 24279if test "x$ac_cv_type_u_int32" = xyes; then : 24280 24281cat >>confdefs.h <<_ACEOF 24282#define HAVE_U_INT32 1 24283_ACEOF 24284 24285 24286fi 24287 24288 24289 24290 24291case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 24292 no::yes) 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 24294$as_echo_n "checking for int32 with DNS headers included... " >&6; } 24295if ${ntp_cv_type_int32_with_dns+:} false; then : 24296 $as_echo_n "(cached) " >&6 24297else 24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24299/* end confdefs.h. */ 24300 24301 #ifdef HAVE_ARPA_NAMESER_H 24302 # include <arpa/nameser.h> 24303 #endif 24304 #include <resolv.h> 24305 24306int 24307main () 24308{ 24309 24310 size_t cb = sizeof(int32); 24311 24312 24313 ; 24314 return 0; 24315} 24316_ACEOF 24317if ac_fn_c_try_compile "$LINENO"; then : 24318 ntp_cv_type_int32_with_dns=yes 24319else 24320 ntp_cv_type_int32_with_dns=no 24321 24322fi 24323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24324 24325fi 24326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 24327$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 24328 case "$ntp_cv_type_int32_with_dns" in 24329 yes) 24330 24331$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 24332 24333 esac 24334esac 24335 24336case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 24337 no::yes) 24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 24339$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 24340if ${ntp_cv_type_u_int32_with_dns+:} false; then : 24341 $as_echo_n "(cached) " >&6 24342else 24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24344/* end confdefs.h. */ 24345 24346 #ifdef HAVE_ARPA_NAMESER_H 24347 # include <arpa/nameser.h> 24348 #endif 24349 #include <resolv.h> 24350 24351int 24352main () 24353{ 24354 24355 size_t cb = sizeof(u_int32); 24356 24357 24358 ; 24359 return 0; 24360} 24361_ACEOF 24362if ac_fn_c_try_compile "$LINENO"; then : 24363 ntp_cv_type_u_int32_with_dns=yes 24364else 24365 ntp_cv_type_u_int32_with_dns=no 24366 24367fi 24368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24369 24370fi 24371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 24372$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 24373 case "$ntp_cv_type_u_int32_with_dns" in 24374 yes) 24375 24376$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 24377 24378 esac 24379esac 24380 24381for ac_header in sys/timepps.h 24382do : 24383 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 24384 #ifdef HAVE_SYS_TIME_H 24385 # include <sys/time.h> 24386 #endif 24387 #ifdef HAVE_ERRNO_H 24388 # include <errno.h> 24389 #endif 24390 24391 24392" 24393if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 24394 cat >>confdefs.h <<_ACEOF 24395#define HAVE_SYS_TIMEPPS_H 1 24396_ACEOF 24397 24398fi 24399 24400done 24401 24402 24403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 24404$as_echo_n "checking for struct timespec... " >&6; } 24405if ${ntp_cv_struct_timespec+:} false; then : 24406 $as_echo_n "(cached) " >&6 24407else 24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24409/* end confdefs.h. */ 24410 24411 #include <sys/time.h> 24412 /* Under SunOS, timespec is in sys/timepps.h, 24413 which needs errno.h and FRAC */ 24414 #ifdef HAVE_ERRNO_H 24415 # include <errno.h> 24416 #endif 24417 #ifdef HAVE_SYS_TIMEPPS_H 24418 # define FRAC 4294967296 24419 # include <sys/timepps.h> 24420 #endif 24421 24422int 24423main () 24424{ 24425 24426 struct timespec n; 24427 24428 24429 ; 24430 return 0; 24431} 24432_ACEOF 24433if ac_fn_c_try_compile "$LINENO"; then : 24434 ntp_cv_struct_timespec=yes 24435else 24436 ntp_cv_struct_timespec=no 24437 24438fi 24439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24440 24441fi 24442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 24443$as_echo "$ntp_cv_struct_timespec" >&6; } 24444case "$ntp_cv_struct_timespec" in 24445 yes) 24446 24447$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 24448 24449esac 24450 24451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 24452$as_echo_n "checking for struct ntptimeval... " >&6; } 24453if ${ntp_cv_struct_ntptimeval+:} false; then : 24454 $as_echo_n "(cached) " >&6 24455else 24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24457/* end confdefs.h. */ 24458 24459 #include <sys/time.h> 24460 #include <sys/timex.h> 24461 24462int 24463main () 24464{ 24465 24466 struct ntptimeval n; 24467 24468 24469 ; 24470 return 0; 24471} 24472_ACEOF 24473if ac_fn_c_try_compile "$LINENO"; then : 24474 ntp_cv_struct_ntptimeval=yes 24475else 24476 ntp_cv_struct_ntptimeval=no 24477 24478fi 24479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24480 24481fi 24482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 24483$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 24484case "$ntp_cv_struct_ntptimeval" in 24485 yes) 24486 24487$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 24488 24489esac 24490 24491for ac_header in md5.h 24492do : 24493 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 24494 #ifdef HAVE_SYS_TYPES_H 24495 # include <sys/types.h> 24496 #endif 24497 24498 24499" 24500if test "x$ac_cv_header_md5_h" = xyes; then : 24501 cat >>confdefs.h <<_ACEOF 24502#define HAVE_MD5_H 1 24503_ACEOF 24504 24505fi 24506 24507done 24508 24509 24510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 24511$as_echo_n "checking for library containing MD5Init... " >&6; } 24512if ${ac_cv_search_MD5Init+:} false; then : 24513 $as_echo_n "(cached) " >&6 24514else 24515 ac_func_search_save_LIBS=$LIBS 24516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24517/* end confdefs.h. */ 24518 24519/* Override any GCC internal prototype to avoid an error. 24520 Use char because int might match the return type of a GCC 24521 builtin and then its argument prototype would still apply. */ 24522#ifdef __cplusplus 24523extern "C" 24524#endif 24525char MD5Init (); 24526int 24527main () 24528{ 24529return MD5Init (); 24530 ; 24531 return 0; 24532} 24533_ACEOF 24534for ac_lib in '' md5 md; do 24535 if test -z "$ac_lib"; then 24536 ac_res="none required" 24537 else 24538 ac_res=-l$ac_lib 24539 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24540 fi 24541 if ac_fn_c_try_link "$LINENO"; then : 24542 ac_cv_search_MD5Init=$ac_res 24543fi 24544rm -f core conftest.err conftest.$ac_objext \ 24545 conftest$ac_exeext 24546 if ${ac_cv_search_MD5Init+:} false; then : 24547 break 24548fi 24549done 24550if ${ac_cv_search_MD5Init+:} false; then : 24551 24552else 24553 ac_cv_search_MD5Init=no 24554fi 24555rm conftest.$ac_ext 24556LIBS=$ac_func_search_save_LIBS 24557fi 24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 24559$as_echo "$ac_cv_search_MD5Init" >&6; } 24560ac_res=$ac_cv_search_MD5Init 24561if test "$ac_res" != no; then : 24562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24563 24564fi 24565 24566for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 24567do : 24568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24570if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24571 cat >>confdefs.h <<_ACEOF 24572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24573_ACEOF 24574 24575fi 24576done 24577 24578 24579# HMS: does this need to be a cached variable? 24580# Check whether --enable-signalled-io was given. 24581if test "${enable_signalled_io+set}" = set; then : 24582 enableval=$enable_signalled_io; use_signalled_io=$enableval 24583else 24584 use_signalled_io=yes 24585 24586fi 24587 24588 24589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 24590$as_echo_n "checking for SIGIO... " >&6; } 24591if ${ntp_cv_hdr_def_sigio+:} false; then : 24592 $as_echo_n "(cached) " >&6 24593else 24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24595/* end confdefs.h. */ 24596 24597 #include <signal.h> 24598 24599 #ifndef SIGIO 24600 # error 24601 #endif 24602 24603_ACEOF 24604if ac_fn_c_try_cpp "$LINENO"; then : 24605 ntp_cv_hdr_def_sigio=yes 24606else 24607 ntp_cv_hdr_def_sigio=no 24608 24609fi 24610rm -f conftest.err conftest.i conftest.$ac_ext 24611 24612fi 24613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 24614$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 24615 24616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 24617$as_echo_n "checking if we want to use SIGIO... " >&6; } 24618ans=no 24619case "$ntp_cv_hdr_def_sigio" in 24620 yes) 24621 ans=yes 24622 case "$host" in 24623 alpha*-dec-osf4*|alpha*-dec-osf5*) 24624 ans=no 24625 ;; 24626 *-convex-*) 24627 ans=no 24628 ;; 24629 *-dec-*) 24630 ans=no 24631 ;; 24632 *-pc-cygwin*) 24633 ans=no 24634 ;; 24635 *-sni-sysv*) 24636 ans=no 24637 ;; 24638 *-stratus-vos) 24639 ans=no 24640 ;; 24641 *-univel-sysv*) 24642 ans=no 24643 ;; 24644 *-*-irix6*) 24645 ans=no 24646 ;; 24647 *-*-freebsd*) 24648 ans=no 24649 ;; 24650 *-*-*linux*) 24651 ans=no 24652 ;; 24653 *-*-unicosmp*) 24654 ans=no 24655 ;; 24656 *-*-kfreebsd*) 24657 ans=no 24658 ;; 24659 m68k-*-mint*) 24660 ans=no 24661 ;; 24662 esac 24663 case "$ans" in 24664 no) 24665 ans="Possible for $host but disabled because of reported problems" 24666 ;; 24667 esac 24668 ;; 24669esac 24670case "$ans" in 24671 yes) 24672 case "$use_signalled_io" in 24673 yes) 24674 24675$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 24676 24677 ;; 24678 *) ans="Allowed for $host but --disable-signalled-io was given" 24679 ;; 24680 esac 24681esac 24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24683$as_echo "$ans" >&6; } 24684 24685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 24686$as_echo_n "checking for SIGPOLL... " >&6; } 24687if ${ntp_cv_hdr_def_sigpoll+:} false; then : 24688 $as_echo_n "(cached) " >&6 24689else 24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24691/* end confdefs.h. */ 24692 24693 #include <signal.h> 24694 24695 #ifndef SIGPOLL 24696 # error 24697 #endif 24698 24699_ACEOF 24700if ac_fn_c_try_cpp "$LINENO"; then : 24701 ntp_cv_hdr_def_sigpoll=yes 24702else 24703 ntp_cv_hdr_def_sigpoll=no 24704 24705fi 24706rm -f conftest.err conftest.i conftest.$ac_ext 24707 24708fi 24709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 24710$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 24711 24712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 24713$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 24714ans=no 24715case "$ntp_cv_hdr_def_sigpoll" in 24716 yes) 24717 case "$host" in 24718 mips-sgi-irix*) 24719 ans=no 24720 ;; 24721 vax-dec-bsd) 24722 ans=no 24723 ;; 24724 *-pc-cygwin*) 24725 ans=no 24726 ;; 24727 *-sni-sysv*) 24728 ans=no 24729 ;; 24730 *-stratus-vos) 24731 ans=no 24732 ;; 24733 *-*-aix[4-9]*) 24734 # XXX Only verified thru AIX6 24735 ans=no 24736 ;; 24737 *-*-hpux*) 24738 ans=no 24739 ;; 24740 *-*-*linux*) 24741 ans=no 24742 ;; 24743 *-*-osf*) 24744 ans=no 24745 ;; 24746 *-*-qnx*) 24747 ans=no 24748 ;; 24749 *-*-sunos*) 24750 ans=no 24751 ;; 24752 *-*-solaris*) 24753 ans=no 24754 ;; 24755 *-*-ultrix*) 24756 ans=no 24757 ;; 24758 *-*-unicosmp*) 24759 ans=no 24760 ;; 24761 *-*-kfreebsd*) 24762 ans=no 24763 ;; 24764 *) ans=yes 24765 ;; 24766 esac 24767 ;; 24768esac 24769case "$ans" in 24770 yes) 24771 24772$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 24773 24774esac 24775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24776$as_echo "$ans" >&6; } 24777 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 24779$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 24780ans=no 24781case "$ntp_cv_hdr_def_sigpoll" in 24782 yes) 24783 case "$host" in 24784 mips-sgi-irix*) 24785 ans=no 24786 ;; 24787 vax-dec-bsd) 24788 ans=no 24789 ;; 24790 *-pc-cygwin*) 24791 ans=no 24792 ;; 24793 *-sni-sysv*) 24794 ans=no 24795 ;; 24796 *-stratus-vos) 24797 ans=no 24798 ;; 24799 *-*-aix[4-9]*) 24800 # XXX Only verified thru AIX6 24801 ans=no 24802 ;; 24803 *-*-hpux*) 24804 ans=no 24805 ;; 24806 *-*-*linux*) 24807 ans=no 24808 ;; 24809 *-*-osf*) 24810 ans=no 24811 ;; 24812 *-*-sunos*) 24813 ans=no 24814 ;; 24815 *-*-ultrix*) 24816 ans=no 24817 ;; 24818 *-*-qnx*) 24819 ans=no 24820 ;; 24821 *-*-unicosmp*) 24822 ans=no 24823 ;; 24824 *-*-kfreebsd*) 24825 ans=no 24826 ;; 24827 *) ans=yes 24828 ;; 24829 esac 24830 ;; 24831esac 24832case "$ans" in 24833 yes) 24834 24835$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 24836 24837esac 24838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24839$as_echo "$ans" >&6; } 24840 24841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 24842$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 24843if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 24844 $as_echo_n "(cached) " >&6 24845else 24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24847/* end confdefs.h. */ 24848 24849 #include <sys/time.h> 24850 24851int 24852main () 24853{ 24854 24855 gettimeofday(0, 0); 24856 settimeofday(0, 0); 24857 24858 24859 ; 24860 return 0; 24861} 24862_ACEOF 24863if ac_fn_c_try_compile "$LINENO"; then : 24864 ntp_cv_func_Xettimeofday_nargs=2 24865else 24866 ntp_cv_func_Xettimeofday_nargs=1 24867 24868fi 24869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24870 24871fi 24872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 24873$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 24874case "$ntp_cv_func_Xettimeofday_nargs" in 24875 1) 24876 24877$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 24878 24879esac 24880 24881for ac_func in settimeofday 24882do : 24883 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 24884if test "x$ac_cv_func_settimeofday" = xyes; then : 24885 cat >>confdefs.h <<_ACEOF 24886#define HAVE_SETTIMEOFDAY 1 24887_ACEOF 24888 24889else 24890 24891 case "$host" in 24892 *-*-mpeix*) ac_cv_func_settimeofday=yes 24893 esac 24894 24895fi 24896done 24897 24898 24899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 24900$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 24901ntp_warning='GRONK' 24902ans=none 24903case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 24904 yes*) 24905 ntp_warning='' 24906 ans='clock_settime()' 24907 ;; 24908 noyes*) 24909 ntp_warning='But clock_settime() would be better (if we had it)' 24910 ans='settimeofday()' 24911 ;; 24912 nonoyes) 24913 ntp_warning='Which is the worst of the three' 24914 ans='stime()' 24915 ;; 24916 *) 24917 case "$build" in 24918 $host) 24919 ntp_warning='Which leaves us with nothing to use!' 24920 esac 24921esac 24922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24923$as_echo "$ans" >&6; } 24924case "$ntp_warning" in 24925 '') 24926 ;; 24927 *) 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 24929$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 24930 ;; 24931esac 24932 24933 24934LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 24935LIBS=$__LIBS 24936{ __LIBS=; unset __LIBS;} 24937 24938 24939 24940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5 24941$as_echo_n "checking for deprecated --with-arlib... " >&6; } 24942 24943# Check whether --with-arlib was given. 24944if test "${with_arlib+set}" = set; then : 24945 withval=$with_arlib; ans=$withval 24946else 24947 ans=no 24948fi 24949 24950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24951$as_echo "$ans" >&6; } 24952 24953case "$ans" in 24954 yes) 24955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5 24956$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;} 24957 ;; 24958esac 24959 24960for ac_prog in gawk mawk nawk awk 24961do 24962 # Extract the first word of "$ac_prog", so it can be a program name with args. 24963set dummy $ac_prog; ac_word=$2 24964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24965$as_echo_n "checking for $ac_word... " >&6; } 24966if ${ac_cv_prog_AWK+:} false; then : 24967 $as_echo_n "(cached) " >&6 24968else 24969 if test -n "$AWK"; then 24970 ac_cv_prog_AWK="$AWK" # Let the user override the test. 24971else 24972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24973for as_dir in $PATH 24974do 24975 IFS=$as_save_IFS 24976 test -z "$as_dir" && as_dir=. 24977 for ac_exec_ext in '' $ac_executable_extensions; do 24978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24979 ac_cv_prog_AWK="$ac_prog" 24980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24981 break 2 24982 fi 24983done 24984 done 24985IFS=$as_save_IFS 24986 24987fi 24988fi 24989AWK=$ac_cv_prog_AWK 24990if test -n "$AWK"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 24992$as_echo "$AWK" >&6; } 24993else 24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24995$as_echo "no" >&6; } 24996fi 24997 24998 24999 test -n "$AWK" && break 25000done 25001 25002{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;} 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 25004$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 25005set x ${MAKE-make} 25006ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25007if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 25008 $as_echo_n "(cached) " >&6 25009else 25010 cat >conftest.make <<\_ACEOF 25011SHELL = /bin/sh 25012all: 25013 @echo '@@@%%%=$(MAKE)=@@@%%%' 25014_ACEOF 25015# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 25016case `${MAKE-make} -f conftest.make 2>/dev/null` in 25017 *@@@%%%=?*=@@@%%%*) 25018 eval ac_cv_prog_make_${ac_make}_set=yes;; 25019 *) 25020 eval ac_cv_prog_make_${ac_make}_set=no;; 25021esac 25022rm -f conftest.make 25023fi 25024if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25026$as_echo "yes" >&6; } 25027 SET_MAKE= 25028else 25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25030$as_echo "no" >&6; } 25031 SET_MAKE="MAKE=${MAKE-make}" 25032fi 25033 25034 25035 25036 25037 25038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 25039$as_echo_n "checking whether ln -s works... " >&6; } 25040LN_S=$as_ln_s 25041if test "$LN_S" = "ln -s"; then 25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25043$as_echo "yes" >&6; } 25044else 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 25046$as_echo "no, using $LN_S" >&6; } 25047fi 25048 25049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 25050$as_echo_n "checking for library containing strerror... " >&6; } 25051if ${ac_cv_search_strerror+:} false; then : 25052 $as_echo_n "(cached) " >&6 25053else 25054 ac_func_search_save_LIBS=$LIBS 25055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25056/* end confdefs.h. */ 25057 25058/* Override any GCC internal prototype to avoid an error. 25059 Use char because int might match the return type of a GCC 25060 builtin and then its argument prototype would still apply. */ 25061#ifdef __cplusplus 25062extern "C" 25063#endif 25064char strerror (); 25065int 25066main () 25067{ 25068return strerror (); 25069 ; 25070 return 0; 25071} 25072_ACEOF 25073for ac_lib in '' cposix; do 25074 if test -z "$ac_lib"; then 25075 ac_res="none required" 25076 else 25077 ac_res=-l$ac_lib 25078 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25079 fi 25080 if ac_fn_c_try_link "$LINENO"; then : 25081 ac_cv_search_strerror=$ac_res 25082fi 25083rm -f core conftest.err conftest.$ac_objext \ 25084 conftest$ac_exeext 25085 if ${ac_cv_search_strerror+:} false; then : 25086 break 25087fi 25088done 25089if ${ac_cv_search_strerror+:} false; then : 25090 25091else 25092 ac_cv_search_strerror=no 25093fi 25094rm conftest.$ac_ext 25095LIBS=$ac_func_search_save_LIBS 25096fi 25097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 25098$as_echo "$ac_cv_search_strerror" >&6; } 25099ac_res=$ac_cv_search_strerror 25100if test "$ac_res" != no; then : 25101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25102 25103fi 25104 25105 25106 25107# Extract the first word of "perl", so it can be a program name with args. 25108set dummy perl; ac_word=$2 25109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25110$as_echo_n "checking for $ac_word... " >&6; } 25111if ${ac_cv_path_PATH_PERL+:} false; then : 25112 $as_echo_n "(cached) " >&6 25113else 25114 case $PATH_PERL in 25115 [\\/]* | ?:[\\/]*) 25116 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 25117 ;; 25118 *) 25119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25120for as_dir in $PATH 25121do 25122 IFS=$as_save_IFS 25123 test -z "$as_dir" && as_dir=. 25124 for ac_exec_ext in '' $ac_executable_extensions; do 25125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25126 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 25127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25128 break 2 25129 fi 25130done 25131 done 25132IFS=$as_save_IFS 25133 25134 ;; 25135esac 25136fi 25137PATH_PERL=$ac_cv_path_PATH_PERL 25138if test -n "$PATH_PERL"; then 25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 25140$as_echo "$PATH_PERL" >&6; } 25141else 25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25143$as_echo "no" >&6; } 25144fi 25145 25146 25147{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;} 25148# Extract the first word of "test", so it can be a program name with args. 25149set dummy test; ac_word=$2 25150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25151$as_echo_n "checking for $ac_word... " >&6; } 25152if ${ac_cv_path_PATH_TEST+:} false; then : 25153 $as_echo_n "(cached) " >&6 25154else 25155 case $PATH_TEST in 25156 [\\/]* | ?:[\\/]*) 25157 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path. 25158 ;; 25159 *) 25160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25161for as_dir in $PATH 25162do 25163 IFS=$as_save_IFS 25164 test -z "$as_dir" && as_dir=. 25165 for ac_exec_ext in '' $ac_executable_extensions; do 25166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25167 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext" 25168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25169 break 2 25170 fi 25171done 25172 done 25173IFS=$as_save_IFS 25174 25175 ;; 25176esac 25177fi 25178PATH_TEST=$ac_cv_path_PATH_TEST 25179if test -n "$PATH_TEST"; then 25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5 25181$as_echo "$PATH_TEST" >&6; } 25182else 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25184$as_echo "no" >&6; } 25185fi 25186 25187 25188{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;} 25189test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh 25190 25191 25192# Check whether --with-net-snmp-config was given. 25193if test "${with_net_snmp_config+set}" = set; then : 25194 withval=$with_net_snmp_config; ans=$withval 25195else 25196 ans=yes 25197 25198fi 25199 25200case "$ans" in 25201 no) 25202 ;; 25203 yes) 25204 ans=net-snmp-config 25205 ;; 25206 /*) 25207 ;; 25208 */*) 25209 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5 25210 ;; 25211 *) 25212 ;; 25213esac 25214PROG_NET_SNMP_CONFIG=$ans 25215case "$PROG_NET_SNMP_CONFIG" in 25216 no) ;; 25217 /*) 25218 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG 25219 ;; 25220 *) 25221 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args. 25222set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2 25223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25224$as_echo_n "checking for $ac_word... " >&6; } 25225if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then : 25226 $as_echo_n "(cached) " >&6 25227else 25228 case $PATH_NET_SNMP_CONFIG in 25229 [\\/]* | ?:[\\/]*) 25230 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path. 25231 ;; 25232 *) 25233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25234for as_dir in $PATH 25235do 25236 IFS=$as_save_IFS 25237 test -z "$as_dir" && as_dir=. 25238 for ac_exec_ext in '' $ac_executable_extensions; do 25239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25240 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25242 break 2 25243 fi 25244done 25245 done 25246IFS=$as_save_IFS 25247 25248 ;; 25249esac 25250fi 25251PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG 25252if test -n "$PATH_NET_SNMP_CONFIG"; then 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 25254$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 25255else 25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25257$as_echo "no" >&6; } 25258fi 25259 25260 25261 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;} 25262;; 25263esac 25264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5 25265$as_echo_n "checking for net-snmp-config path... " >&6; } 25266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 25267$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 25268 25269case "$PATH_NET_SNMP_CONFIG" in 25270 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5 25271$as_echo_n "checking for net-snmp version... " >&6; } 25272if ${ntp_cv_net_snmp_version+:} false; then : 25273 $as_echo_n "(cached) " >&6 25274else 25275 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version` 25276 25277fi 25278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5 25279$as_echo "$ntp_cv_net_snmp_version" >&6; } 25280 ;; 25281esac 25282 25283case "$host" in 25284 *-*-vxworks*) 25285 ac_link="$ac_link $VX_KERNEL" 25286 ;; 25287esac 25288 25289# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP 25290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 25291$as_echo_n "checking for library containing openlog... " >&6; } 25292if ${ac_cv_search_openlog+:} false; then : 25293 $as_echo_n "(cached) " >&6 25294else 25295 ac_func_search_save_LIBS=$LIBS 25296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25297/* end confdefs.h. */ 25298 25299/* Override any GCC internal prototype to avoid an error. 25300 Use char because int might match the return type of a GCC 25301 builtin and then its argument prototype would still apply. */ 25302#ifdef __cplusplus 25303extern "C" 25304#endif 25305char openlog (); 25306int 25307main () 25308{ 25309return openlog (); 25310 ; 25311 return 0; 25312} 25313_ACEOF 25314for ac_lib in '' gen syslog; do 25315 if test -z "$ac_lib"; then 25316 ac_res="none required" 25317 else 25318 ac_res=-l$ac_lib 25319 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25320 fi 25321 if ac_fn_c_try_link "$LINENO"; then : 25322 ac_cv_search_openlog=$ac_res 25323fi 25324rm -f core conftest.err conftest.$ac_objext \ 25325 conftest$ac_exeext 25326 if ${ac_cv_search_openlog+:} false; then : 25327 break 25328fi 25329done 25330if ${ac_cv_search_openlog+:} false; then : 25331 25332else 25333 ac_cv_search_openlog=no 25334fi 25335rm conftest.$ac_ext 25336LIBS=$ac_func_search_save_LIBS 25337fi 25338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 25339$as_echo "$ac_cv_search_openlog" >&6; } 25340ac_res=$ac_cv_search_openlog 25341if test "$ac_res" != no; then : 25342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25343 25344fi 25345 25346# XXX library list will be in ac_cv_search_openlog 25347 25348# LIBSECCOMP is off by default -- needs testing with all the features 25349# Please send bug reports to loganaden@gmail.com 25350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5 25351$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; } 25352# Check whether --enable-libseccomp was given. 25353if test "${enable_libseccomp+set}" = set; then : 25354 enableval=$enable_libseccomp; ntp_ok=$enableval 25355else 25356 ntp_ok=no 25357 25358fi 25359 25360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 25361$as_echo "$ntp_ok" >&6; } 25362case "$ntp_ok" in 25363 yes) 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 25365$as_echo_n "checking for library containing seccomp_init... " >&6; } 25366if ${ac_cv_search_seccomp_init+:} false; then : 25367 $as_echo_n "(cached) " >&6 25368else 25369 ac_func_search_save_LIBS=$LIBS 25370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25371/* end confdefs.h. */ 25372 25373/* Override any GCC internal prototype to avoid an error. 25374 Use char because int might match the return type of a GCC 25375 builtin and then its argument prototype would still apply. */ 25376#ifdef __cplusplus 25377extern "C" 25378#endif 25379char seccomp_init (); 25380int 25381main () 25382{ 25383return seccomp_init (); 25384 ; 25385 return 0; 25386} 25387_ACEOF 25388for ac_lib in '' seccomp; do 25389 if test -z "$ac_lib"; then 25390 ac_res="none required" 25391 else 25392 ac_res=-l$ac_lib 25393 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25394 fi 25395 if ac_fn_c_try_link "$LINENO"; then : 25396 ac_cv_search_seccomp_init=$ac_res 25397fi 25398rm -f core conftest.err conftest.$ac_objext \ 25399 conftest$ac_exeext 25400 if ${ac_cv_search_seccomp_init+:} false; then : 25401 break 25402fi 25403done 25404if ${ac_cv_search_seccomp_init+:} false; then : 25405 25406else 25407 ac_cv_search_seccomp_init=no 25408fi 25409rm conftest.$ac_ext 25410LIBS=$ac_func_search_save_LIBS 25411fi 25412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 25413$as_echo "$ac_cv_search_seccomp_init" >&6; } 25414ac_res=$ac_cv_search_seccomp_init 25415if test "$ac_res" != no; then : 25416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25417 25418$as_echo "#define LIBSECCOMP 1" >>confdefs.h 25419 25420 25421fi 25422 25423 if test "$cross_compiling" = yes; then : 25424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25426as_fn_error $? "cannot run test program while cross compiling 25427See \`config.log' for more details" "$LINENO" 5; } 25428else 25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25430/* end confdefs.h. */ 25431 25432 #include <stdio.h> 25433 #include <stdlib.h> 25434 #include <errno.h> 25435 #include <sys/prctl.h> 25436 #include <linux/seccomp.h> 25437 25438 int main(void) 25439 { 25440 int ret; 25441 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 25442 if (ret < 0) { 25443 switch (errno) { 25444 case ENOSYS: 25445 return 1; 25446 case EINVAL: 25447 return 1; 25448 default: 25449 return 1; 25450 } 25451 } 25452 ret = 25453 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 25454 if (ret < 0) { 25455 switch (errno) { 25456 case EINVAL: 25457 return 1; 25458 case EFAULT: 25459 return 0; 25460 default: 25461 return 1; 25462 } 25463 } 25464return 1; 25465} 25466 25467 25468_ACEOF 25469if ac_fn_c_try_run "$LINENO"; then : 25470 25471$as_echo "#define KERN_SECCOMP 1" >>confdefs.h 25472 25473 25474fi 25475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25476 conftest.$ac_objext conftest.beam conftest.$ac_ext 25477fi 25478 25479 ;; 25480esac 25481 25482 25483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 25484$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 25485if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 25486 $as_echo_n "(cached) " >&6 25487else 25488 25489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25490/* end confdefs.h. */ 25491 25492#define SYSLOG_NAMES 25493#include <stdlib.h> 25494#include <syslog.h> 25495 25496int 25497main () 25498{ 25499 void *fnames; fnames = facilitynames; 25500 ; 25501 return 0; 25502} 25503_ACEOF 25504if ac_fn_c_try_compile "$LINENO"; then : 25505 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 25506else 25507 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 25508fi 25509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25510fi 25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 25512$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 25513case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 25514 yes) 25515 25516$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 25517 25518 ;; 25519 no) 25520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 25521$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 25522 ;; 25523 cross) 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 25525$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 25526 ;; 25527esac 25528 25529 25530 25531case "$host" in 25532 *-*-*linux*) ;; 25533 *-*-osf4*) ;; 25534 *-*-osf5*) ;; 25535 *) 25536 # HMS: Make sure we check for -lrt for clock_* before this... 25537 case "$ac_cv_search_clock_gettime" in 25538 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;; 25539 esac 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5 25541$as_echo_n "checking for library containing sched_setscheduler... " >&6; } 25542if ${ac_cv_search_sched_setscheduler+:} false; then : 25543 $as_echo_n "(cached) " >&6 25544else 25545 ac_func_search_save_LIBS=$LIBS 25546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25547/* end confdefs.h. */ 25548 25549/* Override any GCC internal prototype to avoid an error. 25550 Use char because int might match the return type of a GCC 25551 builtin and then its argument prototype would still apply. */ 25552#ifdef __cplusplus 25553extern "C" 25554#endif 25555char sched_setscheduler (); 25556int 25557main () 25558{ 25559return sched_setscheduler (); 25560 ; 25561 return 0; 25562} 25563_ACEOF 25564for ac_lib in '' rt posix4; do 25565 if test -z "$ac_lib"; then 25566 ac_res="none required" 25567 else 25568 ac_res=-l$ac_lib 25569 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25570 fi 25571 if ac_fn_c_try_link "$LINENO"; then : 25572 ac_cv_search_sched_setscheduler=$ac_res 25573fi 25574rm -f core conftest.err conftest.$ac_objext \ 25575 conftest$ac_exeext 25576 if ${ac_cv_search_sched_setscheduler+:} false; then : 25577 break 25578fi 25579done 25580if ${ac_cv_search_sched_setscheduler+:} false; then : 25581 25582else 25583 ac_cv_search_sched_setscheduler=no 25584fi 25585rm conftest.$ac_ext 25586LIBS=$ac_func_search_save_LIBS 25587fi 25588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5 25589$as_echo "$ac_cv_search_sched_setscheduler" >&6; } 25590ac_res=$ac_cv_search_sched_setscheduler 25591if test "$ac_res" != no; then : 25592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25593 25594fi 25595 25596 ;; 25597esac 25598 25599for ac_header in bstring.h 25600do : 25601 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 25602if test "x$ac_cv_header_bstring_h" = xyes; then : 25603 cat >>confdefs.h <<_ACEOF 25604#define HAVE_BSTRING_H 1 25605_ACEOF 25606 25607fi 25608 25609done 25610 25611ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 25612if test "x$ac_cv_header_dns_sd_h" = xyes; then : 25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5 25614$as_echo_n "checking for library containing DNSServiceRegister... " >&6; } 25615if ${ac_cv_search_DNSServiceRegister+:} false; then : 25616 $as_echo_n "(cached) " >&6 25617else 25618 ac_func_search_save_LIBS=$LIBS 25619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25620/* end confdefs.h. */ 25621 25622/* Override any GCC internal prototype to avoid an error. 25623 Use char because int might match the return type of a GCC 25624 builtin and then its argument prototype would still apply. */ 25625#ifdef __cplusplus 25626extern "C" 25627#endif 25628char DNSServiceRegister (); 25629int 25630main () 25631{ 25632return DNSServiceRegister (); 25633 ; 25634 return 0; 25635} 25636_ACEOF 25637for ac_lib in '' dns_sd; do 25638 if test -z "$ac_lib"; then 25639 ac_res="none required" 25640 else 25641 ac_res=-l$ac_lib 25642 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25643 fi 25644 if ac_fn_c_try_link "$LINENO"; then : 25645 ac_cv_search_DNSServiceRegister=$ac_res 25646fi 25647rm -f core conftest.err conftest.$ac_objext \ 25648 conftest$ac_exeext 25649 if ${ac_cv_search_DNSServiceRegister+:} false; then : 25650 break 25651fi 25652done 25653if ${ac_cv_search_DNSServiceRegister+:} false; then : 25654 25655else 25656 ac_cv_search_DNSServiceRegister=no 25657fi 25658rm conftest.$ac_ext 25659LIBS=$ac_func_search_save_LIBS 25660fi 25661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5 25662$as_echo "$ac_cv_search_DNSServiceRegister" >&6; } 25663ac_res=$ac_cv_search_DNSServiceRegister 25664if test "$ac_res" != no; then : 25665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25666 25667$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 25668 25669 25670fi 25671 25672 25673fi 25674 25675 25676for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h 25677do : 25678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25679ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25681 cat >>confdefs.h <<_ACEOF 25682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25683_ACEOF 25684 25685fi 25686 25687done 25688 25689 25690for ac_header in memory.h netdb.h poll.h 25691do : 25692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25695 cat >>confdefs.h <<_ACEOF 25696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25697_ACEOF 25698 25699fi 25700 25701done 25702 25703for ac_header in sgtty.h stdatomic.h 25704do : 25705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25706ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25708 cat >>confdefs.h <<_ACEOF 25709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25710_ACEOF 25711 25712fi 25713 25714done 25715 25716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 25717$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 25718if ${ac_cv_header_stdbool_h+:} false; then : 25719 $as_echo_n "(cached) " >&6 25720else 25721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25722/* end confdefs.h. */ 25723 25724 #include <stdbool.h> 25725 #ifndef bool 25726 "error: bool is not defined" 25727 #endif 25728 #ifndef false 25729 "error: false is not defined" 25730 #endif 25731 #if false 25732 "error: false is not 0" 25733 #endif 25734 #ifndef true 25735 "error: true is not defined" 25736 #endif 25737 #if true != 1 25738 "error: true is not 1" 25739 #endif 25740 #ifndef __bool_true_false_are_defined 25741 "error: __bool_true_false_are_defined is not defined" 25742 #endif 25743 25744 struct s { _Bool s: 1; _Bool t; } s; 25745 25746 char a[true == 1 ? 1 : -1]; 25747 char b[false == 0 ? 1 : -1]; 25748 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 25749 char d[(bool) 0.5 == true ? 1 : -1]; 25750 /* See body of main program for 'e'. */ 25751 char f[(_Bool) 0.0 == false ? 1 : -1]; 25752 char g[true]; 25753 char h[sizeof (_Bool)]; 25754 char i[sizeof s.t]; 25755 enum { j = false, k = true, l = false * true, m = true * 256 }; 25756 /* The following fails for 25757 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 25758 _Bool n[m]; 25759 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 25760 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 25761 /* Catch a bug in an HP-UX C compiler. See 25762 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 25763 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 25764 */ 25765 _Bool q = true; 25766 _Bool *pq = &q; 25767 25768int 25769main () 25770{ 25771 25772 bool e = &s; 25773 *pq |= q; 25774 *pq |= ! q; 25775 /* Refer to every declared value, to avoid compiler optimizations. */ 25776 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 25777 + !m + !n + !o + !p + !q + !pq); 25778 25779 ; 25780 return 0; 25781} 25782_ACEOF 25783if ac_fn_c_try_compile "$LINENO"; then : 25784 ac_cv_header_stdbool_h=yes 25785else 25786 ac_cv_header_stdbool_h=no 25787fi 25788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25789fi 25790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 25791$as_echo "$ac_cv_header_stdbool_h" >&6; } 25792 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 25793if test "x$ac_cv_type__Bool" = xyes; then : 25794 25795cat >>confdefs.h <<_ACEOF 25796#define HAVE__BOOL 1 25797_ACEOF 25798 25799 25800fi 25801 25802 25803if test $ac_cv_header_stdbool_h = yes; then 25804 25805$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 25806 25807fi 25808 25809for ac_header in stdlib.h string.h termio.h 25810do : 25811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25814 cat >>confdefs.h <<_ACEOF 25815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25816_ACEOF 25817 25818fi 25819 25820done 25821 25822for ac_header in termios.h timepps.h timex.h unistd.h 25823do : 25824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25825ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25827 cat >>confdefs.h <<_ACEOF 25828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25829_ACEOF 25830 25831fi 25832 25833done 25834 25835 25836case "$host" in 25837 *-*-aix*) 25838 for ac_header in utmpx.h 25839do : 25840 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 25841if test "x$ac_cv_header_utmpx_h" = xyes; then : 25842 cat >>confdefs.h <<_ACEOF 25843#define HAVE_UTMPX_H 1 25844_ACEOF 25845 25846fi 25847 25848done 25849 25850 case "$ac_cv_header_utmpx_h" in 25851 yes) 25852 ;; 25853 *) 25854 for ac_header in utmp.h 25855do : 25856 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 25857if test "x$ac_cv_header_utmp_h" = xyes; then : 25858 cat >>confdefs.h <<_ACEOF 25859#define HAVE_UTMP_H 1 25860_ACEOF 25861 25862fi 25863 25864done 25865 25866 ;; 25867 esac 25868 ;; 25869 *) 25870 for ac_header in utmp.h utmpx.h 25871do : 25872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25874if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25875 cat >>confdefs.h <<_ACEOF 25876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25877_ACEOF 25878 25879fi 25880 25881done 25882 25883 ;; 25884esac 25885 25886# 25887# On Suns only (so far) getpass() truncates the typed password to 8 25888# characters, but getpassphrase() allows up to 257. Most systems' 25889# getpass() does not truncate, at least not so as to affect ntpq and 25890# ntpdc password prompts. 25891# 25892# So check for getpassphrase(), but only on Sun operating systems. 25893# 25894case "$host" in 25895 *-*-sunos*|*-*-solaris*) 25896 for ac_func in getpassphrase 25897do : 25898 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 25899if test "x$ac_cv_func_getpassphrase" = xyes; then : 25900 cat >>confdefs.h <<_ACEOF 25901#define HAVE_GETPASSPHRASE 1 25902_ACEOF 25903 25904fi 25905done 25906 25907esac 25908 25909 25910for ac_header in net/if6.h 25911do : 25912 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 25913if test "x$ac_cv_header_net_if6_h" = xyes; then : 25914 cat >>confdefs.h <<_ACEOF 25915#define HAVE_NET_IF6_H 1 25916_ACEOF 25917 25918fi 25919 25920done 25921 25922for ac_header in net/route.h 25923do : 25924 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 25925 #include <sys/types.h> 25926 #include <sys/socket.h> 25927 #include <net/if.h> 25928 25929" 25930if test "x$ac_cv_header_net_route_h" = xyes; then : 25931 cat >>confdefs.h <<_ACEOF 25932#define HAVE_NET_ROUTE_H 1 25933_ACEOF 25934 25935fi 25936 25937done 25938 25939 25940for ac_header in netinfo/ni.h 25941do : 25942 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 25943if test "x$ac_cv_header_netinfo_ni_h" = xyes; then : 25944 cat >>confdefs.h <<_ACEOF 25945#define HAVE_NETINFO_NI_H 1 25946_ACEOF 25947 25948fi 25949 25950done 25951 25952case "$ac_cv_header_netinfo_ni_h" in 25953 yes) 25954 25955$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 25956 25957esac 25958for ac_header in sun/audioio.h sys/audioio.h sys/file.h 25959do : 25960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25963 cat >>confdefs.h <<_ACEOF 25964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25965_ACEOF 25966 25967fi 25968 25969done 25970 25971case "$host" in 25972 *-*-sunos4*) 25973 ;; 25974 *) 25975 for ac_header in sys/ioctl.h 25976do : 25977 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 25978if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 25979 cat >>confdefs.h <<_ACEOF 25980#define HAVE_SYS_IOCTL_H 1 25981_ACEOF 25982 25983fi 25984 25985done 25986 25987 ;; 25988esac 25989for ac_header in sys/ipc.h sys/lock.h sys/mman.h 25990do : 25991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25994 cat >>confdefs.h <<_ACEOF 25995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25996_ACEOF 25997 25998fi 25999 26000done 26001 26002# HMS: Check sys/proc.h and sys/resource.h after some others 26003for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h 26004do : 26005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26008 cat >>confdefs.h <<_ACEOF 26009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26010_ACEOF 26011 26012fi 26013 26014done 26015 26016case "$ac_cv_header_sched_h" in 26017 yes) 26018 ;; 26019 *) 26020 for ac_header in sys/sched.h 26021do : 26022 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 26023if test "x$ac_cv_header_sys_sched_h" = xyes; then : 26024 cat >>confdefs.h <<_ACEOF 26025#define HAVE_SYS_SCHED_H 1 26026_ACEOF 26027 26028fi 26029 26030done 26031 26032 ;; 26033esac 26034# HMS: Check sys/shm.h after some others 26035for ac_header in sys/select.h sys/signal.h sys/sockio.h 26036do : 26037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26038ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26040 cat >>confdefs.h <<_ACEOF 26041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26042_ACEOF 26043 26044fi 26045 26046done 26047 26048# HMS: Checked sys/socket.h earlier 26049case "$host" in 26050 *-*-netbsd*) 26051 ;; 26052 *) 26053 for ac_header in machine/soundcard.h sys/soundcard.h 26054do : 26055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26056ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26058 cat >>confdefs.h <<_ACEOF 26059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26060_ACEOF 26061 26062fi 26063 26064done 26065 26066 ;; 26067esac 26068for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h 26069do : 26070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26071ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26073 cat >>confdefs.h <<_ACEOF 26074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26075_ACEOF 26076 26077fi 26078 26079done 26080 26081for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h 26082do : 26083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26086 cat >>confdefs.h <<_ACEOF 26087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26088_ACEOF 26089 26090fi 26091 26092done 26093 26094for ac_func in waitpid 26095do : 26096 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 26097if test "x$ac_cv_func_waitpid" = xyes; then : 26098 cat >>confdefs.h <<_ACEOF 26099#define HAVE_WAITPID 1 26100_ACEOF 26101 26102fi 26103done 26104 26105case "$host" in 26106*-convex-*) 26107 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 26108do : 26109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26110ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26111if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26112 cat >>confdefs.h <<_ACEOF 26113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26114_ACEOF 26115 26116fi 26117 26118done 26119 26120 ;; 26121*-*-bsdi*) 26122 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 26123do : 26124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26125ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26127 cat >>confdefs.h <<_ACEOF 26128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26129_ACEOF 26130 26131fi 26132 26133done 26134 26135 ;; 26136esac 26137 26138case "$ac_cv_header_stdatomic_h" in 26139 yes) 26140 for ac_func in atomic_thread_fence 26141do : 26142 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence" 26143if test "x$ac_cv_func_atomic_thread_fence" = xyes; then : 26144 cat >>confdefs.h <<_ACEOF 26145#define HAVE_ATOMIC_THREAD_FENCE 1 26146_ACEOF 26147 26148fi 26149done 26150 26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5 26152$as_echo_n "checking for atomic_thread_fence()... " >&6; } 26153if ${ntp_cv_func_atomic_thread_fence+:} false; then : 26154 $as_echo_n "(cached) " >&6 26155else 26156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26157/* end confdefs.h. */ 26158 26159 #include <stdatomic.h> 26160 26161int 26162main () 26163{ 26164 26165 atomic_thread_fence(memory_order_seq_cst); 26166 26167 26168 ; 26169 return 0; 26170} 26171 ntp_cv_func_atomic_thread_fence=yes 26172_ACEOF 26173if ac_fn_c_try_compile "$LINENO"; then : 26174 ntp_cv_func_atomic_thread_fence=no 26175 26176fi 26177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26178 26179fi 26180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5 26181$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; } 26182 ;; 26183esac 26184 26185case "$host" in 26186 *-*-solaris2.6) 26187 # Broken... 26188 ;; 26189 *) 26190 for ac_func in ntp_adjtime ntp_gettime 26191do : 26192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26193ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26194if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26195 cat >>confdefs.h <<_ACEOF 26196#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26197_ACEOF 26198 26199fi 26200done 26201 26202 ;; 26203esac 26204 26205case "$host" in 26206 *-*-*linux*) 26207 case "$ac_cv_func_ntp_gettime" in 26208 yes) 26209 ;; 26210 *) 26211 for ac_func in __ntp_gettime 26212do : 26213 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime" 26214if test "x$ac_cv_func___ntp_gettime" = xyes; then : 26215 cat >>confdefs.h <<_ACEOF 26216#define HAVE___NTP_GETTIME 1 26217_ACEOF 26218 26219fi 26220done 26221 26222 case "$ac_cv_func___ntp_gettime" in 26223 yes) 26224 26225$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h 26226 26227 26228$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h 26229 26230 esac 26231 ;; 26232 esac 26233 for ac_func in adjtimex 26234do : 26235 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex" 26236if test "x$ac_cv_func_adjtimex" = xyes; then : 26237 cat >>confdefs.h <<_ACEOF 26238#define HAVE_ADJTIMEX 1 26239_ACEOF 26240 26241fi 26242done 26243 26244 case "$ac_cv_func_adjtimex" in 26245 yes) 26246 26247$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h 26248 26249 26250$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 26251 26252 have_adjtimex=1 26253 ;; 26254 *) 26255 for ac_func in __adjtimex 26256do : 26257 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex" 26258if test "x$ac_cv_func___adjtimex" = xyes; then : 26259 cat >>confdefs.h <<_ACEOF 26260#define HAVE___ADJTIMEX 1 26261_ACEOF 26262 26263fi 26264done 26265 26266 case "$ac_cv_func___adjtimex" in 26267 yes) 26268 26269$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h 26270 26271 26272$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 26273 26274 26275$as_echo "#define adjtimex __adjtimex" >>confdefs.h 26276 26277 26278$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h 26279 26280 have_adjtimex=1 26281 esac 26282 ;; 26283 esac 26284esac 26285case "$have_adjtimex" in 26286 '') 26287 # nlist stuff is only needed for tickadj. 26288 saved_LIBS="$LIBS" 26289 LIBS= 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5 26291$as_echo_n "checking for library containing nlist... " >&6; } 26292if ${ac_cv_search_nlist+:} false; then : 26293 $as_echo_n "(cached) " >&6 26294else 26295 ac_func_search_save_LIBS=$LIBS 26296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26297/* end confdefs.h. */ 26298 26299/* Override any GCC internal prototype to avoid an error. 26300 Use char because int might match the return type of a GCC 26301 builtin and then its argument prototype would still apply. */ 26302#ifdef __cplusplus 26303extern "C" 26304#endif 26305char nlist (); 26306int 26307main () 26308{ 26309return nlist (); 26310 ; 26311 return 0; 26312} 26313_ACEOF 26314for ac_lib in '' elf ld mld; do 26315 if test -z "$ac_lib"; then 26316 ac_res="none required" 26317 else 26318 ac_res=-l$ac_lib 26319 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26320 fi 26321 if ac_fn_c_try_link "$LINENO"; then : 26322 ac_cv_search_nlist=$ac_res 26323fi 26324rm -f core conftest.err conftest.$ac_objext \ 26325 conftest$ac_exeext 26326 if ${ac_cv_search_nlist+:} false; then : 26327 break 26328fi 26329done 26330if ${ac_cv_search_nlist+:} false; then : 26331 26332else 26333 ac_cv_search_nlist=no 26334fi 26335rm conftest.$ac_ext 26336LIBS=$ac_func_search_save_LIBS 26337fi 26338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5 26339$as_echo "$ac_cv_search_nlist" >&6; } 26340ac_res=$ac_cv_search_nlist 26341if test "$ac_res" != no; then : 26342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26343 26344fi 26345 26346 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...' 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5 26348$as_echo_n "checking for library containing kvm_open... " >&6; } 26349if ${ac_cv_search_kvm_open+:} false; then : 26350 $as_echo_n "(cached) " >&6 26351else 26352 ac_func_search_save_LIBS=$LIBS 26353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26354/* end confdefs.h. */ 26355 26356/* Override any GCC internal prototype to avoid an error. 26357 Use char because int might match the return type of a GCC 26358 builtin and then its argument prototype would still apply. */ 26359#ifdef __cplusplus 26360extern "C" 26361#endif 26362char kvm_open (); 26363int 26364main () 26365{ 26366return kvm_open (); 26367 ; 26368 return 0; 26369} 26370_ACEOF 26371for ac_lib in '' kvm; do 26372 if test -z "$ac_lib"; then 26373 ac_res="none required" 26374 else 26375 ac_res=-l$ac_lib 26376 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26377 fi 26378 if ac_fn_c_try_link "$LINENO"; then : 26379 ac_cv_search_kvm_open=$ac_res 26380fi 26381rm -f core conftest.err conftest.$ac_objext \ 26382 conftest$ac_exeext 26383 if ${ac_cv_search_kvm_open+:} false; then : 26384 break 26385fi 26386done 26387if ${ac_cv_search_kvm_open+:} false; then : 26388 26389else 26390 ac_cv_search_kvm_open=no 26391fi 26392rm conftest.$ac_ext 26393LIBS=$ac_func_search_save_LIBS 26394fi 26395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5 26396$as_echo "$ac_cv_search_kvm_open" >&6; } 26397ac_res=$ac_cv_search_kvm_open 26398if test "$ac_res" != no; then : 26399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26400 26401fi 26402 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...' 26403 for ac_header in nlist.h sys/var.h 26404do : 26405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26408 cat >>confdefs.h <<_ACEOF 26409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26410_ACEOF 26411 26412fi 26413 26414done 26415 26416 case "$ac_cv_header_nlist_h" in 26417 yes) 26418 26419$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 26420 26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 26422$as_echo_n "checking for n_un in struct nlist... " >&6; } 26423if ${ntp_cv_struct_nlist_n_un+:} false; then : 26424 $as_echo_n "(cached) " >&6 26425else 26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26427/* end confdefs.h. */ 26428 26429 #include <nlist.h> 26430 26431int 26432main () 26433{ 26434 26435 struct nlist n; 26436 n.n_un.n_name = 0; 26437 26438 26439 ; 26440 return 0; 26441} 26442 ntp_cv_struct_nlist_n_un=yes 26443_ACEOF 26444if ac_fn_c_try_compile "$LINENO"; then : 26445 ntp_cv_struct_nlist_n_un=no 26446 26447fi 26448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26449 26450fi 26451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5 26452$as_echo "$ntp_cv_struct_nlist_n_un" >&6; } 26453 case "$ntp_cv_struct_nlist_n_un" in 26454 yes) 26455 26456$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 26457 26458 esac 26459 esac 26460 26461 LDADD_NLIST="$LIBS" 26462 LIBS="$saved_LIBS" 26463 { saved_LIBS=; unset saved_LIBS;} 26464esac 26465 26466for ac_header in sys/proc.h 26467do : 26468 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" " 26469 #ifdef HAVE_SYS_TYPES_H 26470 # include <sys/types.h> 26471 #endif 26472 #ifdef HAVE_SYS_TIME_H 26473 # include <sys/time.h> 26474 #endif 26475 26476" 26477if test "x$ac_cv_header_sys_proc_h" = xyes; then : 26478 cat >>confdefs.h <<_ACEOF 26479#define HAVE_SYS_PROC_H 1 26480_ACEOF 26481 26482fi 26483 26484done 26485 26486 26487for ac_header in sys/resource.h 26488do : 26489 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 26490 #ifdef HAVE_SYS_TIME_H 26491 # include <sys/time.h> 26492 #endif 26493 26494" 26495if test "x$ac_cv_header_sys_resource_h" = xyes; then : 26496 cat >>confdefs.h <<_ACEOF 26497#define HAVE_SYS_RESOURCE_H 1 26498_ACEOF 26499 26500fi 26501 26502done 26503 26504 26505for ac_header in sys/shm.h 26506do : 26507 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" " 26508 #ifdef HAVE_SYS_TYPES_H 26509 # include <sys/types.h> 26510 #endif 26511 #ifdef HAVE_SYS_IPC_H 26512 # include <sys/ipc.h> 26513 #endif 26514 26515" 26516if test "x$ac_cv_header_sys_shm_h" = xyes; then : 26517 cat >>confdefs.h <<_ACEOF 26518#define HAVE_SYS_SHM_H 1 26519_ACEOF 26520 26521fi 26522 26523done 26524 26525 26526for ac_header in sys/timex.h 26527do : 26528 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" " 26529 #ifdef HAVE_SYS_TIME_H 26530 # include <sys/time.h> 26531 #endif 26532 26533" 26534if test "x$ac_cv_header_sys_timex_h" = xyes; then : 26535 cat >>confdefs.h <<_ACEOF 26536#define HAVE_SYS_TIMEX_H 1 26537_ACEOF 26538 26539fi 26540 26541done 26542 26543 26544 26545 26546# We could do a cv check here, but is it worth it? 26547 26548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26549/* end confdefs.h. */ 26550 26551 #include <sys/socket.h> 26552 #ifndef AF_UNSPEC 26553 #include "Bletch: AF_UNSPEC is undefined!" 26554 #endif 26555 #if AF_UNSPEC != 0 26556 #include "Bletch: AF_UNSPEC != 0" 26557 #endif 26558 26559int 26560main () 26561{ 26562{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5 26563$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;} 26564 ; 26565 return 0; 26566} 26567 26568_ACEOF 26569if ac_fn_c_try_compile "$LINENO"; then : 26570 26571fi 26572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26573 26574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 26575$as_echo_n "checking return type of signal handlers... " >&6; } 26576if ${ac_cv_type_signal+:} false; then : 26577 $as_echo_n "(cached) " >&6 26578else 26579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26580/* end confdefs.h. */ 26581#include <sys/types.h> 26582#include <signal.h> 26583 26584int 26585main () 26586{ 26587return *(signal (0, 0)) (0) == 1; 26588 ; 26589 return 0; 26590} 26591_ACEOF 26592if ac_fn_c_try_compile "$LINENO"; then : 26593 ac_cv_type_signal=int 26594else 26595 ac_cv_type_signal=void 26596fi 26597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26598fi 26599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 26600$as_echo "$ac_cv_type_signal" >&6; } 26601 26602cat >>confdefs.h <<_ACEOF 26603#define RETSIGTYPE $ac_cv_type_signal 26604_ACEOF 26605 26606 26607ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 26608if test "x$ac_cv_type_off_t" = xyes; then : 26609 26610else 26611 26612cat >>confdefs.h <<_ACEOF 26613#define off_t long int 26614_ACEOF 26615 26616fi 26617 26618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 26619$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 26620if ${ac_cv_struct_tm+:} false; then : 26621 $as_echo_n "(cached) " >&6 26622else 26623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26624/* end confdefs.h. */ 26625#include <sys/types.h> 26626#include <time.h> 26627 26628int 26629main () 26630{ 26631struct tm tm; 26632 int *p = &tm.tm_sec; 26633 return !p; 26634 ; 26635 return 0; 26636} 26637_ACEOF 26638if ac_fn_c_try_compile "$LINENO"; then : 26639 ac_cv_struct_tm=time.h 26640else 26641 ac_cv_struct_tm=sys/time.h 26642fi 26643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26644fi 26645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 26646$as_echo "$ac_cv_struct_tm" >&6; } 26647if test $ac_cv_struct_tm = sys/time.h; then 26648 26649$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 26650 26651fi 26652 26653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 26654$as_echo_n "checking for a fallback value for HZ... " >&6; } 26655if ${ntp_cv_default_hz+:} false; then : 26656 $as_echo_n "(cached) " >&6 26657else 26658 26659 ntp_cv_default_hz=100 26660 case "$host" in 26661 alpha*-dec-osf4*|alpha*-dec-osf5*) 26662 ntp_cv_default_hz=1024 26663 ;; 26664 mips-dec-ultrix4*) 26665 ntp_cv_default_hz=256 26666 ;; 26667 esac 26668 26669 26670fi 26671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5 26672$as_echo "$ntp_cv_default_hz" >&6; } 26673 26674cat >>confdefs.h <<_ACEOF 26675#define DEFAULT_HZ $ntp_cv_default_hz 26676_ACEOF 26677 26678 26679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 26680$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 26681if ${ntp_cv_override_hz+:} false; then : 26682 $as_echo_n "(cached) " >&6 26683else 26684 26685 ntp_cv_override_hz=no 26686 case "$host" in 26687 alpha*-dec-osf4*|alpha*-dec-osf5*) 26688 ntp_cv_override_hz=yes 26689 ;; 26690 mips-dec-ultrix4*) 26691 ntp_cv_override_hz=yes 26692 ;; 26693 *-*-freebsd*) 26694 ntp_cv_override_hz=yes 26695 ;; 26696 *-*-sunos4*) 26697 ntp_cv_override_hz=yes 26698 ;; 26699 *-*-kfreebsd*) 26700 ntp_cv_override_hz=yes 26701 ;; 26702 esac 26703 26704 26705fi 26706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5 26707$as_echo "$ntp_cv_override_hz" >&6; } 26708case "$ntp_cv_override_hz" in 26709 yes) 26710 26711$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 26712 26713esac 26714 26715 26716 26717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 26718$as_echo_n "checking for struct rt_msghdr... " >&6; } 26719if ${ntp_cv_struct_rt_msghdr+:} false; then : 26720 $as_echo_n "(cached) " >&6 26721else 26722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26723/* end confdefs.h. */ 26724 26725 #include <sys/types.h> 26726 #include <sys/socket.h> 26727 #include <net/if.h> 26728 #include <net/route.h> 26729 26730int 26731main () 26732{ 26733 26734 struct rt_msghdr p; 26735 26736 26737 ; 26738 return 0; 26739} 26740_ACEOF 26741if ac_fn_c_try_compile "$LINENO"; then : 26742 ntp_cv_struct_rt_msghdr=yes 26743else 26744 ntp_cv_struct_rt_msghdr=no 26745 26746fi 26747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26748 26749fi 26750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 26751$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 26752 26753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 26754$as_echo_n "checking for struct rtattr... " >&6; } 26755if ${ntp_cv_rtattr+:} false; then : 26756 $as_echo_n "(cached) " >&6 26757else 26758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26759/* end confdefs.h. */ 26760 26761 #include <stddef.h> 26762 #include <sys/socket.h> 26763 #include <linux/rtnetlink.h> 26764 26765int 26766main () 26767{ 26768 26769 struct rtattr p; 26770 26771 26772 ; 26773 return 0; 26774} 26775_ACEOF 26776if ac_fn_c_try_compile "$LINENO"; then : 26777 ntp_cv_rtattr=yes 26778else 26779 ntp_cv_rtattr=no 26780 26781fi 26782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26783 26784fi 26785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5 26786$as_echo "$ntp_cv_rtattr" >&6; } 26787 26788case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 26789 *yes*) 26790 26791$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 26792 26793 case "$ntp_cv_rtattr" in 26794 yes) 26795 26796$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 26797 26798 esac 26799esac 26800 26801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 26802$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 26803if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then : 26804 $as_echo_n "(cached) " >&6 26805else 26806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26807/* end confdefs.h. */ 26808 26809 #include <signal.h> 26810 26811int 26812main () 26813{ 26814 26815 struct sigaction act; 26816 act.sa_sigaction = 0; 26817 26818 26819 ; 26820 return 0; 26821} 26822_ACEOF 26823if ac_fn_c_try_compile "$LINENO"; then : 26824 ntp_cv_struct_sigaction_has_sa_sigaction=yes 26825else 26826 ntp_cv_struct_sigaction_has_sa_sigaction=no 26827 26828fi 26829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26830 26831fi 26832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5 26833$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; } 26834case "$ntp_cv_struct_sigaction_has_sa_sigaction" in 26835 yes) 26836 26837$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 26838 26839esac 26840 26841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 26842$as_echo_n "checking for struct ppsclockev... " >&6; } 26843if ${ntp_cv_struct_ppsclockev+:} false; then : 26844 $as_echo_n "(cached) " >&6 26845else 26846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26847/* end confdefs.h. */ 26848 26849 #ifdef HAVE_SYS_TYPES_H 26850 # include <sys/types.h> 26851 #endif 26852 #ifdef HAVE_SYS_TERMIOS_H 26853 # include <sys/termios.h> 26854 #endif 26855 #ifdef HAVE_SYS_TIME_H 26856 # include <sys/time.h> 26857 #endif 26858 #ifdef HAVE_SYS_PPSCLOCK_H 26859 # include <sys/ppsclock.h> 26860 #endif 26861 26862int 26863main () 26864{ 26865 26866 extern struct ppsclockev *pce; 26867 return pce->serial; 26868 26869 26870 ; 26871 return 0; 26872} 26873_ACEOF 26874if ac_fn_c_try_compile "$LINENO"; then : 26875 ntp_cv_struct_ppsclockev=yes 26876else 26877 ntp_cv_struct_ppsclockev=no 26878 26879fi 26880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26881 26882fi 26883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5 26884$as_echo "$ntp_cv_struct_ppsclockev" >&6; } 26885case "$ntp_cv_struct_ppsclockev" in 26886 yes) 26887 26888$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 26889 26890esac 26891 26892case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 26893 *yes*) 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 26895$as_echo_n "checking for struct snd_size... " >&6; } 26896if ${ntp_cv_struct_snd_size+:} false; then : 26897 $as_echo_n "(cached) " >&6 26898else 26899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26900/* end confdefs.h. */ 26901 26902 #ifdef HAVE_MACHINE_SOUNDCARD_H 26903 # include <machine/soundcard.h> 26904 #endif 26905 #ifdef HAVE_SYS_SOUNDCARD_H 26906 # include <sys/soundcard.h> 26907 #endif 26908 26909int 26910main () 26911{ 26912 26913 extern struct snd_size *ss; 26914 return ss->rec_size; 26915 26916 26917 ; 26918 return 0; 26919} 26920_ACEOF 26921if ac_fn_c_try_compile "$LINENO"; then : 26922 ntp_cv_struct_snd_size=yes 26923else 26924 ntp_cv_struct_snd_size=no 26925 26926fi 26927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26928 26929fi 26930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5 26931$as_echo "$ntp_cv_struct_snd_size" >&6; } 26932 case "$ntp_cv_struct_snd_size" in 26933 yes) 26934 26935$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 26936 26937 esac 26938esac 26939 26940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 26941$as_echo_n "checking struct clockinfo for hz... " >&6; } 26942if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 26943 $as_echo_n "(cached) " >&6 26944else 26945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26946/* end confdefs.h. */ 26947 26948 #include <sys/time.h> 26949 26950int 26951main () 26952{ 26953 26954 extern struct clockinfo *pc; 26955 return pc->hz; 26956 26957 26958 ; 26959 return 0; 26960} 26961_ACEOF 26962if ac_fn_c_try_compile "$LINENO"; then : 26963 ntp_cv_struct_clockinfo_has_hz=yes 26964else 26965 ntp_cv_struct_clockinfo_has_hz=no 26966 26967fi 26968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26969 26970fi 26971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 26972$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 26973case "$ntp_cv_struct_clockinfo_has_hz" in 26974 yes) 26975 26976$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 26977 26978esac 26979 26980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 26981$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 26982if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 26983 $as_echo_n "(cached) " >&6 26984else 26985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26986/* end confdefs.h. */ 26987 26988 #include <sys/time.h> 26989 26990int 26991main () 26992{ 26993 26994 extern struct clockinfo *pc; 26995 return pc->tickadj; 26996 26997 26998 ; 26999 return 0; 27000} 27001_ACEOF 27002if ac_fn_c_try_compile "$LINENO"; then : 27003 ntp_cv_struct_clockinfo_has_hz=yes 27004else 27005 ntp_cv_struct_clockinfo_has_hz=no 27006 27007fi 27008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27009 27010fi 27011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 27012$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 27013case "$ntp_cv_struct_clockinfo_has_hz" in 27014 yes) 27015 27016$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 27017 27018esac 27019 27020case "$ntp_cv_struct_ntptimeval" in 27021 yes) 27022 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" " 27023 #ifdef HAVE_SYS_TIME_H 27024 # include <sys/time.h> 27025 #else 27026 # ifdef HAVE_TIME_H 27027 # include <time.h> 27028 # endif 27029 #endif 27030 #ifdef HAVE_SYS_TIMEX_H 27031 # include <sys/timex.h> 27032 #else 27033 # ifdef HAVE_TIMEX_H 27034 # include <timex.h> 27035 # endif 27036 #endif 27037 27038 27039" 27040if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then : 27041 27042cat >>confdefs.h <<_ACEOF 27043#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 27044_ACEOF 27045 27046 27047fi 27048 27049esac 27050 27051#### 27052 27053for ac_func in arc4random_buf 27054do : 27055 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 27056if test "x$ac_cv_func_arc4random_buf" = xyes; then : 27057 cat >>confdefs.h <<_ACEOF 27058#define HAVE_ARC4RANDOM_BUF 1 27059_ACEOF 27060 27061fi 27062done 27063 27064 27065#### 27066 27067saved_LIBS="$LIBS" 27068LIBS="$LIBS $LDADD_LIBNTP" 27069for ac_func in daemon 27070do : 27071 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 27072if test "x$ac_cv_func_daemon" = xyes; then : 27073 cat >>confdefs.h <<_ACEOF 27074#define HAVE_DAEMON 1 27075_ACEOF 27076 27077fi 27078done 27079 27080# XXX if we keep everything in LIBS and also keep separate lists, this simplifies. 27081LIBS="$saved_LIBS" 27082{ saved_LIBS=; unset saved_LIBS;} 27083 27084for ac_func in finite 27085do : 27086 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 27087if test "x$ac_cv_func_finite" = xyes; then : 27088 cat >>confdefs.h <<_ACEOF 27089#define HAVE_FINITE 1 27090_ACEOF 27091 27092else 27093 for ac_func in isfinite 27094do : 27095 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 27096if test "x$ac_cv_func_isfinite" = xyes; then : 27097 cat >>confdefs.h <<_ACEOF 27098#define HAVE_ISFINITE 1 27099_ACEOF 27100 27101else 27102 27103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 27104$as_echo_n "checking for isfinite with <math.h>... " >&6; } 27105 _libs=$LIBS 27106 # XXX 27107 LIBS="$LIBS -lm" 27108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27109/* end confdefs.h. */ 27110 27111 #include <math.h> 27112 27113int 27114main () 27115{ 27116 27117 float f = 0.0; 27118 isfinite(f); 27119 27120 27121 ; 27122 return 0; 27123} 27124_ACEOF 27125if ac_fn_c_try_link "$LINENO"; then : 27126 ans=yes 27127else 27128 ans=no 27129 27130fi 27131rm -f core conftest.err conftest.$ac_objext \ 27132 conftest$ac_exeext conftest.$ac_ext 27133 LIBS=$_libs 27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27135$as_echo "$ans" >&6; } 27136 case "$ans" in 27137 yes) 27138 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 27139 27140 esac 27141 27142 27143fi 27144done 27145 27146 27147fi 27148done 27149 27150 27151for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal 27152do : 27153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27154ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27155if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27156 cat >>confdefs.h <<_ACEOF 27157#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27158_ACEOF 27159 27160fi 27161done 27162 27163 27164# kvm_open() is only used by tickadj. Also see above. 27165case "$ac_cv_header_kvm_h" in 27166 yes) 27167 for ac_func in kvm_open 27168do : 27169 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 27170if test "x$ac_cv_func_kvm_open" = xyes; then : 27171 cat >>confdefs.h <<_ACEOF 27172#define HAVE_KVM_OPEN 1 27173_ACEOF 27174 27175fi 27176done 27177 27178 ;; 27179esac 27180 27181case "$host" in 27182 *-*-sco3.2v5.0.*) 27183 # Just stubs. Sigh. 27184 ;; 27185 *) for ac_func in mkstemp 27186do : 27187 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 27188if test "x$ac_cv_func_mkstemp" = xyes; then : 27189 cat >>confdefs.h <<_ACEOF 27190#define HAVE_MKSTEMP 1 27191_ACEOF 27192 27193fi 27194done 27195 27196 ;; 27197esac 27198for ac_func in mktime 27199do : 27200 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 27201if test "x$ac_cv_func_mktime" = xyes; then : 27202 cat >>confdefs.h <<_ACEOF 27203#define HAVE_MKTIME 1 27204_ACEOF 27205 27206fi 27207done 27208 27209case "$host" in 27210 *-*-aix[4-9]*) 27211 # XXX only verified thru AIX6. 27212 # Just a stub. Sigh. 27213 ;; 27214 *-*-irix[45]*) 27215 # Just a stub in "old" Irix. Sigh. 27216 ;; 27217# In the belief that the fix for bug 1223 fixes mlockall() under linux... 27218# *-*-*linux*) 27219# # there, but more trouble than it is worth for now (resolver problems) 27220# ;; 27221 *-*-qnx*) 27222 # Apparently there but not working in QNX. Sigh? 27223 ;; 27224 *-*-sco3.2v5.0.*) 27225 # Just a stub. Sigh. 27226 ;; 27227 alpha*-dec-osf4*|alpha*-dec-osf5*) 27228 # mlockall is there, as a #define calling memlk via <sys/mman.h> 27229 # Not easy to test for - cheat. 27230 for ac_func in memlk 27231do : 27232 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 27233if test "x$ac_cv_func_memlk" = xyes; then : 27234 cat >>confdefs.h <<_ACEOF 27235#define HAVE_MEMLK 1 27236_ACEOF 27237 ac_cv_func_mlockall=yes 27238fi 27239done 27240 27241 for ac_func in mlockall 27242do : 27243 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 27244if test "x$ac_cv_func_mlockall" = xyes; then : 27245 cat >>confdefs.h <<_ACEOF 27246#define HAVE_MLOCKALL 1 27247_ACEOF 27248 27249fi 27250done 27251 27252 ;; 27253 *) for ac_func in mlockall 27254do : 27255 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 27256if test "x$ac_cv_func_mlockall" = xyes; then : 27257 cat >>confdefs.h <<_ACEOF 27258#define HAVE_MLOCKALL 1 27259_ACEOF 27260 27261fi 27262done 27263 27264 ;; 27265esac 27266for ac_func in nice plock pututline pututxline readlink rtprio 27267do : 27268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27269ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27270if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27271 cat >>confdefs.h <<_ACEOF 27272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27273_ACEOF 27274 27275fi 27276done 27277 27278case "$host" in 27279 *-*-aix[4-9]*) 27280 # XXX only verified thru AIX6. 27281 # Just a stub in AIX 4. Sigh. 27282 ;; 27283 *-*-solaris2.5*) 27284 # Just stubs in solaris2.5. Sigh. 27285 ;; 27286 *) for ac_func in sched_setscheduler 27287do : 27288 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 27289if test "x$ac_cv_func_sched_setscheduler" = xyes; then : 27290 cat >>confdefs.h <<_ACEOF 27291#define HAVE_SCHED_SETSCHEDULER 1 27292_ACEOF 27293 27294fi 27295done 27296 27297 ;; 27298esac 27299for ac_func in setlinebuf setpgid setpriority setsid setvbuf 27300do : 27301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27303if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27304 cat >>confdefs.h <<_ACEOF 27305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27306_ACEOF 27307 27308fi 27309done 27310 27311for ac_func in strdup strerror setrlimit strchr 27312do : 27313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27315if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27316 cat >>confdefs.h <<_ACEOF 27317#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27318_ACEOF 27319 27320fi 27321done 27322 27323case "$host" in 27324 *-*-aix[4-9]*) 27325 # XXX only verified thru AIX6. 27326 # Just stubs. Sigh. 27327 ;; 27328 *-*-netbsd1*) 27329 # Just stubs. Sigh. 27330 ;; 27331 *-*-netbsdelf1*) 27332 # Just stubs. Sigh. 27333 ;; 27334 *-*-openbsd*) 27335 # Just stubs. Sigh. 27336 ;; 27337 *) 27338 for ac_func in timer_create 27339do : 27340 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" 27341if test "x$ac_cv_func_timer_create" = xyes; then : 27342 cat >>confdefs.h <<_ACEOF 27343#define HAVE_TIMER_CREATE 1 27344_ACEOF 27345 27346fi 27347done 27348 27349 ;; 27350esac 27351 27352 27353 27354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5 27355$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; } 27356if ${ntp_cv_rlimit_memlock+:} false; then : 27357 $as_echo_n "(cached) " >&6 27358else 27359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27360/* end confdefs.h. */ 27361 27362 #ifdef HAVE_SYS_TYPES_H 27363 # include <sys/types.h> 27364 #endif 27365 #ifdef HAVE_SYS_TIME_H 27366 # include <sys/time.h> 27367 #endif 27368 #ifdef HAVE_SYS_RESOURCE_H 27369 # include <sys/resource.h> 27370 #endif 27371 27372int 27373main () 27374{ 27375 27376 getrlimit(RLIMIT_MEMLOCK, 0); 27377 27378 27379 ; 27380 return 0; 27381} 27382_ACEOF 27383if ac_fn_c_try_compile "$LINENO"; then : 27384 ntp_cv_rlimit_memlock=yes 27385else 27386 ntp_cv_rlimit_memlock=no 27387 27388fi 27389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27390 27391fi 27392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5 27393$as_echo "$ntp_cv_rlimit_memlock" >&6; } 27394case "$host" in 27395 *-*-*linux*) 27396 ntp_dflt_rlimit_memlock="-1" ;; 27397 *) ntp_dflt_rlimit_memlock="32" ;; 27398esac 27399case "$ntp_cv_rlimit_memlock" in 27400 yes) 27401 27402 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;; 27403esac 27404 27405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5 27406$as_echo_n "checking for RLIMIT_STACK... " >&6; } 27407if ${ntp_cv_rlimit_stack+:} false; then : 27408 $as_echo_n "(cached) " >&6 27409else 27410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27411/* end confdefs.h. */ 27412 27413 #ifdef HAVE_SYS_TYPES_H 27414 # include <sys/types.h> 27415 #endif 27416 #ifdef HAVE_SYS_TIME_H 27417 # include <sys/time.h> 27418 #endif 27419 #ifdef HAVE_SYS_RESOURCE_H 27420 # include <sys/resource.h> 27421 #endif 27422 27423int 27424main () 27425{ 27426 27427 getrlimit(RLIMIT_STACK, 0); 27428 27429 27430 ; 27431 return 0; 27432} 27433_ACEOF 27434if ac_fn_c_try_compile "$LINENO"; then : 27435 ntp_cv_rlimit_stack=yes 27436else 27437 ntp_cv_rlimit_stack=no 27438 27439fi 27440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27441 27442fi 27443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5 27444$as_echo "$ntp_cv_rlimit_stack" >&6; } 27445case "$ntp_cv_rlimit_stack" in 27446 yes) 27447 27448 HAVE_RLIMIT_STACK=" stacksize 50" 27449esac 27450 27451# HMS: Only if we are doing the MLOCKALL stuff... 27452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5 27453$as_echo_n "checking for the default number of 4k stack pages... " >&6; } 27454 27455# Check whether --with-stack-limit was given. 27456if test "${with_stack_limit+set}" = set; then : 27457 withval=$with_stack_limit; ans=$withval 27458else 27459 ans=yes 27460 27461fi 27462 27463case "$ans" in 27464 yes | no) 27465 case "$host" in 27466 *-*-openbsd*) 27467 ans=200 27468 ;; 27469 *) ans=50 27470 ;; 27471 esac 27472 ;; 27473 [1-9][0-9]*) 27474 ;; 27475 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5 27476 ;; 27477esac 27478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27479$as_echo "$ans" >&6; } 27480 27481cat >>confdefs.h <<_ACEOF 27482#define DFLT_RLIMIT_STACK $ans 27483_ACEOF 27484 27485 27486# HMS: only if we have RLIMIT_MEMLOCK 27487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5 27488$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; } 27489 27490# Check whether --with-memlock was given. 27491if test "${with_memlock+set}" = set; then : 27492 withval=$with_memlock; ans=$withval 27493else 27494 ans=yes 27495 27496fi 27497 27498case "$ans" in 27499 yes | no) 27500 ans=$ntp_dflt_rlimit_memlock 27501 ;; 27502 [1-9][0-9]*) ;; 27503 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5 27504 ;; 27505esac 27506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27507$as_echo "$ans" >&6; } 27508 27509cat >>confdefs.h <<_ACEOF 27510#define DFLT_RLIMIT_MEMLOCK $ans 27511_ACEOF 27512 27513 27514 27515 27516# some OSes prefer _exit() in forked children to exit() 27517for ac_func in _exit 27518do : 27519 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit" 27520if test "x$ac_cv_func__exit" = xyes; then : 27521 cat >>confdefs.h <<_ACEOF 27522#define HAVE__EXIT 1 27523_ACEOF 27524 27525fi 27526done 27527 27528ntp_worker_child_exit=exit 27529case "$ac_cv_func__exit::$host_os" in 27530 yes::netbsd*) 27531 ntp_worker_child_exit=_exit 27532 ;; 27533 yes::openbsd*) 27534 ntp_worker_child_exit=_exit 27535 ;; 27536esac 27537 27538cat >>confdefs.h <<_ACEOF 27539#define WORKER_CHILD_EXIT $ntp_worker_child_exit 27540_ACEOF 27541 27542 27543for ac_func in umask uname updwtmp updwtmpx 27544do : 27545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27546ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27547if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27548 cat >>confdefs.h <<_ACEOF 27549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27550_ACEOF 27551 27552fi 27553done 27554 27555 27556### 27557 27558# http://bugs.ntp.org/737 27559case "$ac_cv_func_recvmsg" in 27560 yes) 27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 27562$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 27563if ${ntp_cv_struct_iovec_help+:} false; then : 27564 $as_echo_n "(cached) " >&6 27565else 27566 27567 compiled=no 27568 for ntp_cv_struct_iovec_help in '0' '1'; do 27569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27570/* end confdefs.h. */ 27571 27572 #ifdef HAVE_SYS_TYPES_H 27573 # include <sys/types.h> 27574 #endif 27575 #ifdef HAVE_SYS_SOCKET_H 27576 # include <sys/socket.h> 27577 #endif 27578 #if $ntp_cv_struct_iovec_help 27579 # include <sys/uio.h> 27580 #endif 27581 27582int 27583main () 27584{ 27585 27586 void foo(void) { 27587 ssize_t x; 27588 int s = 0; 27589 struct iovec iov; 27590 struct msghdr mh; 27591 int flags = 0; 27592 27593 mh.msg_iov = &iov; 27594 x = recvmsg(s, &mh, flags); 27595 } 27596 27597 27598 ; 27599 return 0; 27600} 27601_ACEOF 27602if ac_fn_c_try_compile "$LINENO"; then : 27603 compiled=yes ; break 1 27604fi 27605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27606 done 27607 case "$compiled" in 27608 no) 27609 ntp_cv_struct_iovec_help=0 27610 esac 27611 { compiled=; unset compiled;} 27612 27613 27614fi 27615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5 27616$as_echo "$ntp_cv_struct_iovec_help" >&6; } 27617 case "$ntp_cv_struct_iovec_help" in 27618 1) 27619 27620$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 27621 27622 esac 27623esac 27624 27625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 27626$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 27627if ${ntp_cv_func_setpgrp_nargs+:} false; then : 27628 $as_echo_n "(cached) " >&6 27629else 27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27631/* end confdefs.h. */ 27632 27633 #ifdef HAVE_SYS_TYPES_H 27634 # include <sys/types.h> 27635 #endif 27636 #ifdef HAVE_UNISTD_H 27637 # include <unistd.h> 27638 #endif 27639 27640int 27641main () 27642{ 27643 27644 setpgrp(0, 0); 27645 27646 27647 ; 27648 return 0; 27649} 27650_ACEOF 27651if ac_fn_c_try_compile "$LINENO"; then : 27652 ntp_cv_func_setpgrp_nargs=2 27653else 27654 ntp_cv_func_setpgrp_nargs=0 27655 27656fi 27657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27658 27659fi 27660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5 27661$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; } 27662case "$ntp_cv_func_setpgrp_nargs" in 27663 0) 27664 27665$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 27666 27667esac 27668 27669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 27670$as_echo_n "checking if we need to declare 'errno'... " >&6; } 27671if ${ntp_cv_decl_errno+:} false; then : 27672 $as_echo_n "(cached) " >&6 27673else 27674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27675/* end confdefs.h. */ 27676 27677 #ifdef HAVE_ERRNO_H 27678 # include <errno.h> 27679 #endif 27680 27681int 27682main () 27683{ 27684 27685 errno = 0; 27686 27687 27688 ; 27689 return 0; 27690} 27691_ACEOF 27692if ac_fn_c_try_compile "$LINENO"; then : 27693 ntp_cv_decl_errno=no 27694else 27695 ntp_cv_decl_errno=yes 27696 27697fi 27698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27699 27700fi 27701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5 27702$as_echo "$ntp_cv_decl_errno" >&6; } 27703case "$ntp_cv_decl_errno" in 27704 yes) 27705 27706$as_echo "#define DECL_ERRNO 1" >>confdefs.h 27707 27708esac 27709 27710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 27711$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 27712if ${ntp_cv_decl_h_errno+:} false; then : 27713 $as_echo_n "(cached) " >&6 27714else 27715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27716/* end confdefs.h. */ 27717 27718 #include <sys/types.h> 27719 #ifdef HAVE_NETINET_IN_H 27720 # include <netinet/in.h> 27721 #endif 27722 #ifdef HAVE_ARPA_NAMESER_H 27723 # include <arpa/nameser.h> 27724 #endif 27725 #ifdef HAVE_NETDB_H 27726 # include <netdb.h> 27727 #endif 27728 #ifdef HAVE_RESOLV_H 27729 # include <resolv.h> 27730 #endif 27731 27732int 27733main () 27734{ 27735 27736 extern int h_errno; 27737 27738 27739 ; 27740 return 0; 27741} 27742_ACEOF 27743if ac_fn_c_try_compile "$LINENO"; then : 27744 ntp_cv_decl_h_errno=yes 27745else 27746 ntp_cv_decl_h_errno=no 27747 27748fi 27749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27750 27751fi 27752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5 27753$as_echo "$ntp_cv_decl_h_errno" >&6; } 27754case "$ntp_cv_decl_h_errno" in 27755 yes) 27756 27757$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 27758 27759esac 27760 27761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 27762$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 27763if ${ntp_cv_decl_syscall+:} false; then : 27764 $as_echo_n "(cached) " >&6 27765else 27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27767/* end confdefs.h. */ 27768 27769 #ifdef HAVE_SYS_TYPES_H 27770 # include <sys/types.h> 27771 #endif 27772 #ifdef HAVE_UNISTD_H 27773 # include <unistd.h> 27774 #endif 27775 27776int 27777main () 27778{ 27779 27780 extern int syscall (int, ...); 27781 27782 27783 ; 27784 return 0; 27785} 27786 ntp_cv_decl_syscall=yes 27787_ACEOF 27788if ac_fn_c_try_compile "$LINENO"; then : 27789 ntp_cv_decl_syscall=no 27790 27791fi 27792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27793 27794fi 27795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5 27796$as_echo "$ntp_cv_decl_syscall" >&6; } 27797case "$ntp_cv_decl_syscall" in 27798 yes) 27799 27800$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 27801 27802esac 27803 27804case "$host" in 27805 *-*-aix4.3.*) 27806 27807$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 27808 # Needed for XLC under AIX 4.3.2 27809 ;; 27810 *-*-mpeix*) 27811 27812$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27813 27814 27815$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 27816 27817 27818$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27819 27820 27821$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27822 27823 27824$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27825 27826 27827$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27828 27829 27830$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27831 27832 ;; 27833 *-*-osf[45]*) 27834 27835$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 27836 27837 27838$as_echo "#define DECL_STIME_1 1" >>confdefs.h 27839 27840 ;; 27841 *-*-qnx*) 27842 27843$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27844 27845 ;; 27846 *-*-riscos4*) 27847 27848$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27849 27850 27851$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27852 27853 27854$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27855 27856 27857$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27858 27859 27860$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 27861 27862 27863$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27864 27865 27866$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 27867 27868 27869$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27870 27871 27872$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27873 27874 27875$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 27876 27877 27878$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 27879 27880 27881$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 27882 27883 27884$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27885 27886 27887$as_echo "#define DECL_TIME_0 1" >>confdefs.h 27888 27889 27890$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27891 27892 27893$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 27894 27895 ;; 27896 *-*-solaris2*) 27897 27898$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 27899 27900 27901$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 27902 27903 case "$host" in 27904 *-*-solaris2.4) 27905 27906$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27907 27908 ;; 27909 esac 27910 ;; 27911 *-*-sunos4*) 27912 27913$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27914 27915 27916$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 27917 27918 27919$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27920 27921 27922$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27923 27924 27925$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27926 27927 27928$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 27929 27930 27931$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27932 27933 27934$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 27935 27936 27937$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 27938 27939 27940$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27941 27942 27943$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27944 27945 27946$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 27947 27948 27949$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 27950 27951 case "`basename $ac_cv_prog_CC`" in 27952 acc*) ;; 27953 *) 27954$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 27955 27956 ;; 27957 esac 27958 27959$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 27960 27961 27962$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27963 27964 27965$as_echo "#define DECL_TIME_0 1" >>confdefs.h 27966 27967 27968$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27969 27970 27971$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 27972 27973 27974$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 27975 27976 27977$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 27978 27979 ;; 27980 *-*-ultrix4*) 27981 27982$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27983 27984 27985$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27986 27987 27988$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 27989 27990 27991$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27992 27993 27994$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27995 27996 27997$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27998 27999 28000$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 28001 28002 28003$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 28004 28005 28006$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 28007 28008 28009$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 28010 28011 28012$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 28013 28014 28015$as_echo "#define DECL_STIME_0 1" >>confdefs.h 28016 28017 28018$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 28019 28020 28021$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 28022 28023 ;; 28024esac 28025 28026case "$host" in 28027 *-*-sco3.2*) 28028 28029$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 28030 28031 ;; 28032esac 28033 28034case "$host" in 28035 *-*-hpux[567]*) 28036 28037$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 28038 28039esac 28040 28041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 28042$as_echo_n "checking if we will open the broadcast socket... " >&6; } 28043if ${ntp_cv_var_open_bcast_socket+:} false; then : 28044 $as_echo_n "(cached) " >&6 28045else 28046 28047 ans=yes 28048 case "$host" in 28049 *-*-domainos) 28050 ans=no 28051 esac 28052 ntp_cv_var_open_bcast_socket=$ans 28053 28054 28055fi 28056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5 28057$as_echo "$ntp_cv_var_open_bcast_socket" >&6; } 28058case "$ntp_cv_var_open_bcast_socket" in 28059 yes) 28060 28061$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 28062 28063esac 28064 28065case "$host" in 28066 *-*-hpux*) 28067 28068$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 28069 28070esac 28071 28072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 28073$as_echo_n "checking if process groups are set with -pid... " >&6; } 28074if ${ntp_cv_arg_setpgrp_negpid+:} false; then : 28075 $as_echo_n "(cached) " >&6 28076else 28077 28078 case "$host" in 28079 *-*-hpux[567]*) 28080 ans=no 28081 ;; 28082 *-*-hpux*) 28083 ans=yes 28084 ;; 28085 *-*-*linux*) 28086 ans=yes 28087 ;; 28088 *-*-sunos3*) 28089 ans=yes 28090 ;; 28091 *-*-ultrix2*) 28092 ans=yes 28093 ;; 28094 *) 28095 ans=no 28096 ;; 28097 esac 28098 ntp_cv_arg_setpgrp_negpid=$ans 28099 28100 28101fi 28102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5 28103$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; } 28104case "$ntp_cv_arg_setpgrp_negpid" in 28105 yes) 28106 28107$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 28108 28109esac 28110 28111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 28112$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 28113if ${ntp_cv_func_ctty_for_f_setown+:} false; then : 28114 $as_echo_n "(cached) " >&6 28115else 28116 28117 case "$host" in 28118 *-*-bsdi[23]*) 28119 ans=yes 28120 ;; 28121 *-*-freebsd*) 28122 ans=yes 28123 ;; 28124 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 28125 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 28126 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 28127 # in $host may be followed by "aout", "ecoff", or "elf". 28128 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7]) 28129 ans=yes 28130 ;; 28131 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7]) 28132 ans=yes 28133 ;; 28134 *-*-openbsd*) 28135 ans=yes 28136 ;; 28137 *-*-osf*) 28138 ans=yes 28139 ;; 28140 *-*-darwin*) 28141 ans=yes 28142 ;; 28143 *) 28144 ans=no 28145 ;; 28146 esac 28147 ntp_cv_func_ctty_for_f_setown=$ans 28148 28149 28150fi 28151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 28152$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 28153case "$ntp_cv_func_ctty_for_f_setown" in 28154 yes) 28155 28156$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 28157 28158esac 28159 28160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5 28161$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; } 28162if ${ntp_cv_os_routeupdates+:} false; then : 28163 $as_echo_n "(cached) " >&6 28164else 28165 28166 case "$host" in 28167 *-*-netbsd*) 28168 ans=yes 28169 ;; 28170 *) 28171 ans=no 28172 ;; 28173 esac 28174 ntp_cv_os_routeupdates=$ans 28175 28176 28177fi 28178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5 28179$as_echo "$ntp_cv_os_routeupdates" >&6; } 28180case "$ntp_cv_os_routeupdates" in 28181 yes) 28182 28183$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 28184 28185esac 28186 28187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5 28188$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; } 28189if ${ntp_cv_os_wildcardreuse+:} false; then : 28190 $as_echo_n "(cached) " >&6 28191else 28192 28193 case "$host" in 28194 *-*-*linux*) 28195 ans=yes 28196 ;; 28197 *) ans=no 28198 ;; 28199 esac 28200 ntp_cv_os_wildcardreuse=$ans 28201 28202 28203fi 28204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5 28205$as_echo "$ntp_cv_os_wildcardreuse" >&6; } 28206case "$ntp_cv_os_wildcardreuse" in 28207 yes) 28208 28209$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 28210 28211esac 28212 28213case "$host" in 28214 *-*-aix*) 28215 28216$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 28217 28218esac 28219 28220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 28221$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 28222if ${ntp_cv_var_min_rec_tickadj+:} false; then : 28223 $as_echo_n "(cached) " >&6 28224else 28225 28226 ans=no 28227 case "$host" in 28228 *-*-aix*) 28229 ans=40 28230 ;; 28231 esac 28232 ntp_cv_var_min_rec_tickadj=$ans 28233 28234 28235fi 28236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5 28237$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; } 28238case "$ntp_cv_var_min_rec_tickadj" in 28239 ''|no) 28240 ;; 28241 *) 28242 28243cat >>confdefs.h <<_ACEOF 28244#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj 28245_ACEOF 28246 28247esac 28248 28249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 28250$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 28251if ${ntp_cv_no_parenb_ignpar+:} false; then : 28252 $as_echo_n "(cached) " >&6 28253else 28254 28255 ans=no 28256 case "$host" in 28257 i?86-*-*linux*) 28258 ans=yes 28259 ;; 28260 mips-sgi-irix*) 28261 ans=yes 28262 ;; 28263 i?86-*-freebsd[123].*) 28264 ;; 28265 i?86-*-freebsd*) 28266 ans=yes 28267 ;; 28268 *-*-unicosmp*) 28269 ans=yes 28270 ;; 28271 esac 28272 ntp_cv_no_parenb_ignpar=$ans 28273 28274 28275fi 28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5 28277$as_echo "$ntp_cv_no_parenb_ignpar" >&6; } 28278case "$ntp_cv_no_parenb_ignpar" in 28279 yes) 28280 28281$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 28282 28283esac 28284 28285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5 28286$as_echo_n "checking if we're including processing time debugging code... " >&6; } 28287# Check whether --enable-debug-timing was given. 28288if test "${enable_debug_timing+set}" = set; then : 28289 enableval=$enable_debug_timing; ntp_ok=$enableval 28290else 28291 ntp_ok=no 28292 28293fi 28294 28295case "$ntp_ok" in 28296 yes) 28297 28298$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 28299 28300esac 28301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28302$as_echo "$ntp_ok" >&6; } 28303 28304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 28305$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 28306# Check whether --enable-dst-minutes was given. 28307if test "${enable_dst_minutes+set}" = set; then : 28308 enableval=$enable_dst_minutes; ans=$enableval 28309else 28310 ans=60 28311 28312fi 28313 28314 28315cat >>confdefs.h <<_ACEOF 28316#define DSTMINUTES $ans 28317_ACEOF 28318 28319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28320$as_echo "$ans" >&6; } 28321 28322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 28323$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 28324# Check whether --enable-ignore-dns-errors was given. 28325if test "${enable_ignore_dns_errors+set}" = set; then : 28326 enableval=$enable_ignore_dns_errors; ans=$enableval 28327else 28328 ans=no 28329 28330fi 28331 28332case "$ans" in 28333 yes) 28334 28335$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 28336 28337esac 28338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28339$as_echo "$ans" >&6; } 28340 28341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 28342$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 28343if ${ntp_cv_var_ntp_syscalls+:} false; then : 28344 $as_echo_n "(cached) " >&6 28345else 28346 28347 ntp_cv_var_ntp_syscalls=no 28348 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 28349 yesyes*) 28350 ntp_cv_var_ntp_syscalls=libc 28351 ;; 28352 *yes) 28353 ntp_cv_var_ntp_syscalls=inline 28354 ;; 28355 *) 28356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28357/* end confdefs.h. */ 28358 28359 #include <sys/syscall.h> 28360 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime) 28361 # error 28362 #endif 28363 28364_ACEOF 28365if ac_fn_c_try_cpp "$LINENO"; then : 28366 ntp_cv_var_ntp_syscalls=kernel 28367 28368fi 28369rm -f conftest.err conftest.i conftest.$ac_ext 28370 ;; 28371 esac 28372 28373 28374fi 28375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5 28376$as_echo "$ntp_cv_var_ntp_syscalls" >&6; } 28377case "$ntp_cv_var_ntp_syscalls" in 28378 libc) 28379 28380$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 28381 28382 ;; 28383 kernel) 28384 28385$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 28386 28387 ;; 28388esac 28389 28390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 28391$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 28392if ${ntp_cv_var_sta_fll+:} false; then : 28393 $as_echo_n "(cached) " >&6 28394else 28395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28396/* end confdefs.h. */ 28397 28398 #include <sys/timex.h> 28399 #ifndef STA_FLL 28400 # error 28401 #endif 28402 28403_ACEOF 28404if ac_fn_c_try_cpp "$LINENO"; then : 28405 ntp_cv_var_sta_fll=yes 28406else 28407 ntp_cv_var_sta_fll=no 28408 28409fi 28410rm -f conftest.err conftest.i conftest.$ac_ext 28411 28412fi 28413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5 28414$as_echo "$ntp_cv_var_sta_fll" >&6; } 28415 28416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 28417$as_echo_n "checking if we have kernel PLL support... " >&6; } 28418if ${ntp_cv_var_kernel_pll+:} false; then : 28419 $as_echo_n "(cached) " >&6 28420else 28421 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in 28422 *no*) 28423 ntp_cv_var_kernel_pll=no 28424 ;; 28425 *) ntp_cv_var_kernel_pll=yes 28426 ;; 28427 esac 28428 28429 28430fi 28431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5 28432$as_echo "$ntp_cv_var_kernel_pll" >&6; } 28433case "$ntp_cv_var_kernel_pll" in 28434 yes) 28435 28436$as_echo "#define KERNEL_PLL 1" >>confdefs.h 28437 28438esac 28439 28440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 28441$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 28442if ${ntp_cv_size_returned_in_buffer+:} false; then : 28443 $as_echo_n "(cached) " >&6 28444else 28445 28446 ans=no 28447 case "$host" in 28448 *-fujitsu-uxp*) 28449 ans=yes 28450 ;; 28451 *-ncr-sysv4*) 28452 ans=yes 28453 ;; 28454 *-univel-sysv*) 28455 ans=yes 28456 ;; 28457 esac 28458 ntp_cv_size_returned_in_buffer=$ans 28459 28460 28461fi 28462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5 28463$as_echo "$ntp_cv_size_returned_in_buffer" >&6; } 28464case "$ntp_cv_size_returned_in_buffer" in 28465 yes) 28466 28467$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 28468 28469esac 28470 28471# Check for ioctls TIOCGPPSEV 28472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5 28473$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; } 28474case "$ac_cv_header_termios_h" in 28475 yes) 28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28477/* end confdefs.h. */ 28478 28479 #include <termios.h> 28480 #ifndef TIOCGPPSEV 28481 # error 28482 #endif 28483 28484_ACEOF 28485if ac_fn_c_try_cpp "$LINENO"; then : 28486 ntp_ok=yes 28487else 28488 ntp_ok=no 28489 28490fi 28491rm -f conftest.err conftest.i conftest.$ac_ext 28492 ;; 28493 *) 28494 ntp_ok=no 28495 ;; 28496esac 28497case "$ntp_ok" in 28498 yes) 28499 28500$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 28501 28502esac 28503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28504$as_echo "$ntp_ok" >&6; } 28505 28506# Check for ioctls TIOCSPPS 28507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5 28508$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; } 28509case "$ac_cv_header_termios_h" in 28510 yes) 28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28512/* end confdefs.h. */ 28513 28514 #include <termios.h> 28515 #ifndef TIOCSPPS 28516 # error 28517 #endif 28518 28519_ACEOF 28520if ac_fn_c_try_cpp "$LINENO"; then : 28521 ntp_ok=yes 28522else 28523 ntp_ok=no 28524 28525fi 28526rm -f conftest.err conftest.i conftest.$ac_ext 28527 ;; 28528 *) 28529 ntp_ok=no 28530 ;; 28531esac 28532case "$ntp_ok" in 28533 yes) 28534 28535$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 28536 28537esac 28538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28539$as_echo "$ntp_ok" >&6; } 28540 28541# Check for ioctls CIOGETEV 28542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5 28543$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; } 28544case "$ac_cv_header_sys_ppsclock_h" in 28545 yes) 28546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28547/* end confdefs.h. */ 28548 28549 #include <sys/ppsclock.h> 28550 #ifndef CIOGETEV 28551 # error 28552 #endif 28553 28554_ACEOF 28555if ac_fn_c_try_cpp "$LINENO"; then : 28556 ntp_ok=yes 28557else 28558 ntp_ok=no 28559 28560fi 28561rm -f conftest.err conftest.i conftest.$ac_ext 28562 ;; 28563 *) 28564 ntp_ok=no 28565 ;; 28566esac 28567case "$ntp_ok" in 28568 yes) 28569 28570$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 28571 28572esac 28573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28574$as_echo "$ntp_ok" >&6; } 28575 28576# ATOM/PPSAPI stuff. 28577 28578ntp_atom_ok=yes 28579 28580# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 28581 28582# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 28583# The PPSAPI needs struct timespec. 28584# The PPSAPI also needs a timepps header. 28585 28586case "$ac_cv_c_inline$ntp_cv_struct_timespec" in 28587 inlineyes) 28588 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 28589 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 28590 28591$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 28592 28593 ntp_jupiter_ok=yes 28594 ntp_oncore_ok=yes 28595 ntp_parse_ok=yes 28596 ntp_ripe_ncc_ok=yes 28597 ;; 28598 esac 28599 ;; 28600esac 28601 28602# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 28603ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 28604if test "x$ac_cv_header_linux_serial_h" = xyes; then : 28605 28606fi 28607 28608 28609case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 28610 yesyes) 28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 28612$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 28613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28614/* end confdefs.h. */ 28615 28616 #include <sys/time.h> 28617 typedef int u_int; 28618 #include <sys/ppsclock.h> 28619 #include <linux/serial.h> 28620 28621 #ifndef TIOCGSERIAL 28622 # error 28623 #endif 28624 #ifndef TIOCSSERIAL 28625 # error 28626 #endif 28627 #ifndef ASYNC_PPS_CD_POS 28628 # error 28629 #endif 28630 #ifndef ASYNC_PPS_CD_NEG 28631 # error 28632 #endif 28633 #ifndef CIOGETEV 28634 # error 28635 #endif 28636 28637_ACEOF 28638if ac_fn_c_try_cpp "$LINENO"; then : 28639 ntp_ok=yes 28640else 28641 ntp_ok=no 28642 28643fi 28644rm -f conftest.err conftest.i conftest.$ac_ext 28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28646$as_echo "$ntp_ok" >&6; } 28647 ;; 28648 *) 28649 ntp_ok=no 28650 ;; 28651esac 28652case "$ntp_ok" in 28653 yes) 28654 28655$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 28656 28657esac 28658 28659# Check for SHMEM_STATUS support 28660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 28661$as_echo_n "checking SHMEM_STATUS support... " >&6; } 28662case "$ac_cv_header_sys_mman_h" in 28663 yes) 28664 ntp_ok=yes 28665 ;; 28666 *) 28667 ntp_ok=no 28668 ;; 28669esac 28670case "$ntp_ok" in 28671 yes) 28672 28673$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 28674 28675esac 28676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28677$as_echo "$ntp_ok" >&6; } 28678 28679ntp_refclock=no 28680 28681# HPUX only, and by explicit request 28682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 28683$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 28684# Check whether --enable-BANCOMM was given. 28685if test "${enable_BANCOMM+set}" = set; then : 28686 enableval=$enable_BANCOMM; ntp_ok=$enableval 28687else 28688 ntp_ok=no 28689 28690fi 28691 28692case "$ntp_ok" in 28693 yes) 28694 ntp_refclock=yes 28695 28696$as_echo "#define CLOCK_BANC 1" >>confdefs.h 28697 28698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5 28699$as_echo_n "checking for library containing bcStartPci... " >&6; } 28700if ${ac_cv_search_bcStartPci+:} false; then : 28701 $as_echo_n "(cached) " >&6 28702else 28703 ac_func_search_save_LIBS=$LIBS 28704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28705/* end confdefs.h. */ 28706 28707/* Override any GCC internal prototype to avoid an error. 28708 Use char because int might match the return type of a GCC 28709 builtin and then its argument prototype would still apply. */ 28710#ifdef __cplusplus 28711extern "C" 28712#endif 28713char bcStartPci (); 28714int 28715main () 28716{ 28717return bcStartPci (); 28718 ; 28719 return 0; 28720} 28721_ACEOF 28722for ac_lib in '' bcsdk; do 28723 if test -z "$ac_lib"; then 28724 ac_res="none required" 28725 else 28726 ac_res=-l$ac_lib 28727 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28728 fi 28729 if ac_fn_c_try_link "$LINENO"; then : 28730 ac_cv_search_bcStartPci=$ac_res 28731fi 28732rm -f core conftest.err conftest.$ac_objext \ 28733 conftest$ac_exeext 28734 if ${ac_cv_search_bcStartPci+:} false; then : 28735 break 28736fi 28737done 28738if ${ac_cv_search_bcStartPci+:} false; then : 28739 28740else 28741 ac_cv_search_bcStartPci=no 28742fi 28743rm conftest.$ac_ext 28744LIBS=$ac_func_search_save_LIBS 28745fi 28746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5 28747$as_echo "$ac_cv_search_bcStartPci" >&6; } 28748ac_res=$ac_cv_search_bcStartPci 28749if test "$ac_res" != no; then : 28750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28751 28752fi 28753 28754 ;; 28755esac 28756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28757$as_echo "$ntp_ok" >&6; } 28758case "$ntp_ok$host" in 28759 yes*-*-hpux*) ;; 28760 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 28761$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 28762esac 28763 28764#HPUX only, and only by explicit request 28765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 28766$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 28767# Check whether --enable-GPSVME was given. 28768if test "${enable_GPSVME+set}" = set; then : 28769 enableval=$enable_GPSVME; ntp_ok=$enableval 28770else 28771 ntp_ok=no 28772 28773fi 28774 28775case "$ntp_ok" in 28776 yes) 28777 ntp_refclock=yes 28778 28779$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 28780 28781 ;; 28782esac 28783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28784$as_echo "$ntp_ok" >&6; } 28785case "$ntp_ok$host" in 28786 yes*-*-hpux*) ;; 28787 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 28788$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 28789esac 28790 28791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 28792$as_echo_n "checking for PCL720 clock support... " >&6; } 28793case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 28794 yesyesyes) 28795 28796$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 28797 28798 ans=yes 28799 ;; 28800 *) 28801 ans=no 28802 ;; 28803esac 28804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28805$as_echo "$ans" >&6; } 28806 28807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 28808$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 28809# Check whether --enable-all-clocks was given. 28810if test "${enable_all_clocks+set}" = set; then : 28811 enableval=$enable_all_clocks; ntp_eac=$enableval 28812else 28813 ntp_eac=yes 28814 28815fi 28816 28817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 28818$as_echo "$ntp_eac" >&6; } 28819 28820# HMS: Should we also require ntp_parse_ok? 28821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 28822$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 28823case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 28824 yes*yes*) 28825 ntp_canparse=yes 28826 ;; 28827 *) ntp_canparse=no 28828 ;; 28829esac 28830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 28831$as_echo "$ntp_canparse" >&6; } 28832 28833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 28834$as_echo_n "checking if we have support for audio clocks... " >&6; } 28835case "$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 28836 *yes*) 28837 ntp_canaudio=yes 28838 28839$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 28840 28841 ;; 28842 *) ntp_canaudio=no ;; 28843esac 28844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 28845$as_echo "$ntp_canaudio" >&6; } 28846 28847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 28848$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 28849case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 28850 yesyes) 28851 ntp_canshm=yes 28852 ;; 28853 *) ntp_canshm=no ;; 28854esac 28855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 28856$as_echo "$ntp_canshm" >&6; } 28857 28858# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade) 28859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5 28860$as_echo_n "checking for termios modem control... " >&6; } 28861if ${ntp_cv_modem_control+:} false; then : 28862 $as_echo_n "(cached) " >&6 28863else 28864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28865/* end confdefs.h. */ 28866 28867 #ifdef HAVE_UNISTD_H 28868 # include <unistd.h> 28869 #endif 28870 #ifdef HAVE_TERMIOS_H 28871 # include <termios.h> 28872 #endif 28873 #ifdef HAVE_SYS_IOCTL_H 28874 # include <sys/ioctl.h> 28875 #endif 28876 28877int 28878main () 28879{ 28880 28881 int dtr = TIOCM_DTR; 28882 28883 ioctl(1, TIOCMBIS, (char *)&dtr); 28884 28885 28886 ; 28887 return 0; 28888} 28889_ACEOF 28890if ac_fn_c_try_compile "$LINENO"; then : 28891 ntp_cv_modem_control=yes 28892else 28893 ntp_cv_modem_control=no 28894 28895fi 28896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28897 28898fi 28899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5 28900$as_echo "$ntp_cv_modem_control" >&6; } 28901case "$ntp_eac::$ntp_cv_modem_control" in 28902 yes::yes) 28903 ntp_enable_all_modem_control_clocks=yes 28904 ;; 28905 *) 28906 ntp_enable_all_modem_control_clocks=no 28907 ;; 28908esac 28909 28910# Requires modem control 28911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 28912$as_echo_n "checking ACTS modem service... " >&6; } 28913# Check whether --enable-ACTS was given. 28914if test "${enable_ACTS+set}" = set; then : 28915 enableval=$enable_ACTS; ntp_ok=$enableval 28916else 28917 ntp_ok=$ntp_enable_all_modem_control_clocks 28918 28919fi 28920 28921case "$ntp_ok" in 28922 yes) 28923 ntp_refclock=yes 28924 28925$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 28926 28927 ;; 28928esac 28929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28930$as_echo "$ntp_ok" >&6; } 28931 28932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 28933$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 28934# Check whether --enable-ARBITER was given. 28935if test "${enable_ARBITER+set}" = set; then : 28936 enableval=$enable_ARBITER; ntp_ok=$enableval 28937else 28938 ntp_ok=$ntp_eac 28939 28940fi 28941 28942case "$ntp_ok" in 28943 yes) 28944 ntp_refclock=yes 28945 28946$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 28947 28948 ;; 28949esac 28950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28951$as_echo "$ntp_ok" >&6; } 28952 28953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 28954$as_echo_n "checking Arcron MSF receiver... " >&6; } 28955# Check whether --enable-ARCRON_MSF was given. 28956if test "${enable_ARCRON_MSF+set}" = set; then : 28957 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 28958else 28959 ntp_ok=$ntp_eac 28960 28961fi 28962 28963case "$ntp_ok" in 28964 yes) 28965 ntp_refclock=yes 28966 28967$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 28968 28969 ;; 28970esac 28971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28972$as_echo "$ntp_ok" >&6; } 28973 28974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 28975$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 28976# Check whether --enable-AS2201 was given. 28977if test "${enable_AS2201+set}" = set; then : 28978 enableval=$enable_AS2201; ntp_ok=$enableval 28979else 28980 ntp_ok=$ntp_eac 28981 28982fi 28983 28984case "$ntp_ok" in 28985 yes) 28986 ntp_refclock=yes 28987 28988$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 28989 28990 ;; 28991esac 28992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28993$as_echo "$ntp_ok" >&6; } 28994 28995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 28996$as_echo_n "checking ATOM PPS interface... " >&6; } 28997# Check whether --enable-ATOM was given. 28998if test "${enable_ATOM+set}" = set; then : 28999 enableval=$enable_ATOM; ntp_ok=$enableval 29000else 29001 ntp_ok=$ntp_eac 29002 29003fi 29004 29005case "$ntp_atom_ok" in 29006 no) ntp_ok=no ;; 29007esac 29008case "$ntp_ok" in 29009 yes) 29010 ntp_refclock=yes 29011 29012$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 29013 29014 ;; 29015esac 29016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29017$as_echo "$ntp_ok" >&6; } 29018 29019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 29020$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 29021# Check whether --enable-CHRONOLOG was given. 29022if test "${enable_CHRONOLOG+set}" = set; then : 29023 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 29024else 29025 ntp_ok=$ntp_eac 29026 29027fi 29028 29029case "$ntp_ok" in 29030 yes) 29031 ntp_refclock=yes 29032 29033$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 29034 29035 ;; 29036esac 29037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29038$as_echo "$ntp_ok" >&6; } 29039 29040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 29041$as_echo_n "checking CHU modem/decoder... " >&6; } 29042# Check whether --enable-CHU was given. 29043if test "${enable_CHU+set}" = set; then : 29044 enableval=$enable_CHU; ntp_ok=$enableval 29045else 29046 ntp_ok=$ntp_eac 29047 29048fi 29049 29050case "$ntp_ok" in 29051 yes) 29052 ntp_refclock=yes 29053 29054$as_echo "#define CLOCK_CHU 1" >>confdefs.h 29055 29056 ;; 29057esac 29058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29059$as_echo "$ntp_ok" >&6; } 29060ntp_refclock_chu=$ntp_ok 29061 29062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 29063$as_echo_n "checking CHU audio/decoder... " >&6; } 29064# Check whether --enable-AUDIO-CHU was given. 29065if test "${enable_AUDIO_CHU+set}" = set; then : 29066 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 29067else 29068 29069 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in 29070 *no*) ntp_ok=no ;; 29071 *) ntp_ok=yes ;; 29072 esac 29073 29074 29075fi 29076 29077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29078$as_echo "$ntp_ok" >&6; } 29079# We used to check for sunos/solaris target... 29080case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in 29081 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 29082$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} 29083esac 29084 29085# Not under HP-UX 29086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 29087$as_echo_n "checking Datum Programmable Time System... " >&6; } 29088# Check whether --enable-DATUM was given. 29089if test "${enable_DATUM+set}" = set; then : 29090 enableval=$enable_DATUM; ntp_ok=$enableval 29091else 29092 29093 case "$ac_cv_header_termios_h" in 29094 yes) 29095 ntp_ok=$ntp_eac 29096 ;; 29097 *) ntp_ok=no 29098 ;; 29099 esac 29100 29101 29102fi 29103 29104case "$ntp_ok" in 29105 yes) 29106 ntp_refclock=yes 29107 29108$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 29109 29110 ;; 29111esac 29112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29113$as_echo "$ntp_ok" >&6; } 29114 29115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 29116$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 29117# Check whether --enable-DUMBCLOCK was given. 29118if test "${enable_DUMBCLOCK+set}" = set; then : 29119 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 29120else 29121 ntp_ok=$ntp_eac 29122 29123fi 29124 29125case "$ntp_ok" in 29126 yes) 29127 ntp_refclock=yes 29128 29129$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 29130 29131 ;; 29132esac 29133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29134$as_echo "$ntp_ok" >&6; } 29135 29136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 29137$as_echo_n "checking Forum Graphic GPS... " >&6; } 29138# Check whether --enable-FG was given. 29139if test "${enable_FG+set}" = set; then : 29140 enableval=$enable_FG; ntp_ok=$enableval 29141else 29142 ntp_ok=$ntp_eac 29143 29144fi 29145 29146case "$ntp_ok" in 29147 yes) 29148 ntp_refclock=yes 29149 29150$as_echo "#define CLOCK_FG 1" >>confdefs.h 29151 29152 ;; 29153esac 29154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29155$as_echo "$ntp_ok" >&6; } 29156 29157# Requires modem control 29158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 29159$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 29160# Check whether --enable-HEATH was given. 29161if test "${enable_HEATH+set}" = set; then : 29162 enableval=$enable_HEATH; ntp_ok=$enableval 29163else 29164 ntp_ok=$ntp_enable_all_modem_control_clocks 29165 29166fi 29167 29168case "$ntp_ok" in 29169 yes) 29170 ntp_refclock=yes 29171 29172$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 29173 29174 ;; 29175esac 29176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29177$as_echo "$ntp_ok" >&6; } 29178 29179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 29180$as_echo_n "checking for hopf serial clock device... " >&6; } 29181# Check whether --enable-HOPFSERIAL was given. 29182if test "${enable_HOPFSERIAL+set}" = set; then : 29183 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 29184else 29185 ntp_ok=$ntp_eac 29186 29187fi 29188 29189case "$ntp_ok" in 29190 yes) 29191 ntp_refclock=yes 29192 29193$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 29194 29195 ;; 29196esac 29197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29198$as_echo "$ntp_ok" >&6; } 29199 29200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 29201$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 29202# Check whether --enable-HOPFPCI was given. 29203if test "${enable_HOPFPCI+set}" = set; then : 29204 enableval=$enable_HOPFPCI; ntp_ok=$enableval 29205else 29206 ntp_ok=$ntp_eac 29207 29208fi 29209 29210case "$ntp_ok" in 29211 yes) 29212 ntp_refclock=yes 29213 29214$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 29215 29216 ;; 29217esac 29218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29219$as_echo "$ntp_ok" >&6; } 29220 29221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 29222$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 29223# Check whether --enable-HPGPS was given. 29224if test "${enable_HPGPS+set}" = set; then : 29225 enableval=$enable_HPGPS; ntp_ok=$enableval 29226else 29227 ntp_ok=$ntp_eac 29228 29229fi 29230 29231case "$ntp_ok" in 29232 yes) 29233 ntp_refclock=yes 29234 29235$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 29236 29237 ;; 29238esac 29239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29240$as_echo "$ntp_ok" >&6; } 29241 29242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 29243$as_echo_n "checking IRIG audio decoder... " >&6; } 29244# Check whether --enable-IRIG was given. 29245if test "${enable_IRIG+set}" = set; then : 29246 enableval=$enable_IRIG; ntp_ok=$enableval 29247else 29248 29249 case "$ntp_eac$ntp_canaudio" in 29250 *no*) ntp_ok=no ;; 29251 *) ntp_ok=yes ;; 29252 esac 29253 29254 29255fi 29256 29257case "$ntp_ok" in 29258 yes) 29259 ntp_refclock=yes 29260 29261$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 29262 29263 ;; 29264esac 29265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29266$as_echo "$ntp_ok" >&6; } 29267case "$ntp_ok$ntp_canaudio" in 29268 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29269$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29270esac 29271 29272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 29273$as_echo_n "checking for JJY receiver... " >&6; } 29274# Check whether --enable-JJY was given. 29275if test "${enable_JJY+set}" = set; then : 29276 enableval=$enable_JJY; ntp_ok=$enableval 29277else 29278 ntp_ok=$ntp_eac 29279 29280fi 29281 29282case "$ntp_ok" in 29283 yes) 29284 ntp_refclock=yes 29285 29286$as_echo "#define CLOCK_JJY 1" >>confdefs.h 29287 29288 ;; 29289esac 29290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29291$as_echo "$ntp_ok" >&6; } 29292 29293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 29294$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 29295# Check whether --enable-JUPITER was given. 29296if test "${enable_JUPITER+set}" = set; then : 29297 enableval=$enable_JUPITER; ntp_ok=$enableval 29298else 29299 ntp_ok=$ntp_eac 29300fi 29301 29302case "$ntp_jupiter_ok" in 29303 no) ntp_ok=no ;; 29304esac 29305case "$ntp_ok" in 29306 yes) 29307 ntp_refclock=yes 29308 29309$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 29310 29311 ;; 29312esac 29313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29314$as_echo "$ntp_ok" >&6; } 29315 29316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 29317$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 29318# Check whether --enable-LEITCH was given. 29319if test "${enable_LEITCH+set}" = set; then : 29320 enableval=$enable_LEITCH; ntp_ok=$enableval 29321else 29322 ntp_ok=$ntp_eac 29323 29324fi 29325 29326case "$ntp_ok" in 29327 yes) 29328 ntp_refclock=yes 29329 29330$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 29331 29332 ;; 29333esac 29334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29335$as_echo "$ntp_ok" >&6; } 29336 29337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 29338$as_echo_n "checking local clock reference... " >&6; } 29339# Check whether --enable-LOCAL-CLOCK was given. 29340if test "${enable_LOCAL_CLOCK+set}" = set; then : 29341 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 29342else 29343 ntp_ok=$ntp_eac 29344 29345fi 29346 29347case "$ntp_ok" in 29348 yes) 29349 ntp_refclock=yes 29350 29351$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 29352 29353 ;; 29354esac 29355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29356$as_echo "$ntp_ok" >&6; } 29357 29358 29359# Not Ultrix 29360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 29361$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 29362# Check whether --enable-MX4200 was given. 29363if test "${enable_MX4200+set}" = set; then : 29364 enableval=$enable_MX4200; ntp_ok=$enableval 29365else 29366 29367 case "$ac_cv_var_ppsclock" in 29368 yes) 29369 ntp_ok=$ntp_eac 29370 ;; 29371 *) 29372 ntp_ok=no 29373 ;; 29374 esac 29375 29376 29377fi 29378 29379case "$ntp_ok" in 29380 yes) 29381 ntp_refclock=yes 29382 29383$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 29384 29385 ;; 29386esac 29387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29388$as_echo "$ntp_ok" >&6; } 29389case "$ntp_ok$host" in 29390 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29391$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29392esac 29393 29394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 29395$as_echo_n "checking for NeoClock4X receiver... " >&6; } 29396# Check whether --enable-NEOCLOCK4X was given. 29397if test "${enable_NEOCLOCK4X+set}" = set; then : 29398 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 29399else 29400 ntp_ok=$ntp_eac 29401 29402fi 29403 29404case "$ntp_ok" in 29405 yes) 29406 ntp_refclock=yes 29407 29408$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 29409 29410 ;; 29411esac 29412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29413$as_echo "$ntp_ok" >&6; } 29414 29415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 29416$as_echo_n "checking NMEA GPS receiver... " >&6; } 29417# Check whether --enable-NMEA was given. 29418if test "${enable_NMEA+set}" = set; then : 29419 enableval=$enable_NMEA; ntp_ok=$enableval 29420else 29421 ntp_ok=$ntp_eac 29422 29423fi 29424 29425case "$ntp_ok" in 29426 yes) 29427 ntp_refclock=yes 29428 29429$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 29430 29431 ;; 29432esac 29433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29434$as_echo "$ntp_ok" >&6; } 29435 29436for ac_func in strtoll 29437do : 29438 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 29439if test "x$ac_cv_func_strtoll" = xyes; then : 29440 cat >>confdefs.h <<_ACEOF 29441#define HAVE_STRTOLL 1 29442_ACEOF 29443 29444fi 29445done 29446 29447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5 29448$as_echo_n "checking for GPSD JSON receiver... " >&6; } 29449# Check whether --enable-GPSD was given. 29450if test "${enable_GPSD+set}" = set; then : 29451 enableval=$enable_GPSD; ntp_ok=$enableval 29452else 29453 case "$ac_cv_func_strtoll" in 29454 yes) ntp_ok=$ntp_eac ;; 29455 *) ntp_ok="no" ;; 29456 esac 29457 29458fi 29459 29460case "$ntp_ok" in 29461 yes) 29462 ntp_refclock=yes 29463 29464$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h 29465 29466 ;; 29467esac 29468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29469$as_echo "$ntp_ok" >&6; } 29470 29471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 29472$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 29473# Check whether --enable-ONCORE was given. 29474if test "${enable_ONCORE+set}" = set; then : 29475 enableval=$enable_ONCORE; ntp_ok=$enableval 29476else 29477 ntp_ok=$ntp_eac 29478 29479fi 29480 29481case "$ntp_oncore_ok" in 29482 no) ntp_ok=no ;; 29483esac 29484case "$ntp_ok" in 29485 yes) 29486 ntp_refclock=yes 29487 29488$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 29489 29490 ;; 29491esac 29492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29493$as_echo "$ntp_ok" >&6; } 29494 29495# Requires modem control 29496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 29497$as_echo_n "checking for Palisade clock... " >&6; } 29498# Check whether --enable-PALISADE was given. 29499if test "${enable_PALISADE+set}" = set; then : 29500 enableval=$enable_PALISADE; ntp_ok=$enableval 29501else 29502 ntp_ok=$ntp_enable_all_modem_control_clocks 29503 29504fi 29505 29506case "$ntp_ok" in 29507 yes) 29508 ntp_refclock=yes 29509 29510$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 29511 29512 ;; 29513esac 29514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29515$as_echo "$ntp_ok" >&6; } 29516 29517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 29518$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 29519# Check whether --enable-PCF was given. 29520if test "${enable_PCF+set}" = set; then : 29521 enableval=$enable_PCF; ntp_ok=$enableval 29522else 29523 ntp_ok=$ntp_eac 29524 29525fi 29526 29527case "$ntp_ok" in 29528 yes) 29529 ntp_refclock=yes 29530 29531$as_echo "#define CLOCK_PCF 1" >>confdefs.h 29532 29533 ;; 29534esac 29535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29536$as_echo "$ntp_ok" >&6; } 29537 29538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 29539$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 29540# Check whether --enable-PST was given. 29541if test "${enable_PST+set}" = set; then : 29542 enableval=$enable_PST; ntp_ok=$enableval 29543else 29544 ntp_ok=$ntp_eac 29545 29546fi 29547 29548case "$ntp_ok" in 29549 yes) 29550 ntp_refclock=yes 29551 29552$as_echo "#define CLOCK_PST 1" >>confdefs.h 29553 29554 ;; 29555esac 29556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29557$as_echo "$ntp_ok" >&6; } 29558 29559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 29560$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 29561# Check whether --enable-RIPENCC was given. 29562if test "${enable_RIPENCC+set}" = set; then : 29563 enableval=$enable_RIPENCC; ntp_ok=$enableval 29564else 29565 ntp_ok=no 29566 29567fi 29568 29569# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 29570case "$ntp_ripe_ncc_ok" in 29571 no) ntp_ok=no ;; 29572esac 29573case "$ntp_ok" in 29574 yes) 29575 ntp_refclock=yes 29576 29577$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 29578 29579 ;; 29580esac 29581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29582$as_echo "$ntp_ok" >&6; } 29583 29584# Danny Meyer says SHM compiles (with a few warnings) under Win32. 29585# For *IX, we need sys/ipc.h and sys/shm.h. 29586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 29587$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 29588# Check whether --enable-SHM was given. 29589if test "${enable_SHM+set}" = set; then : 29590 enableval=$enable_SHM; ntp_ok=$enableval 29591else 29592 29593 case "$ntp_eac$ntp_canshm" in 29594 *no*) ntp_ok=no ;; 29595 *) ntp_ok=yes ;; 29596 esac 29597 29598 29599fi 29600 29601case "$ntp_ok" in 29602 yes) 29603 ntp_refclock=yes 29604 29605$as_echo "#define CLOCK_SHM 1" >>confdefs.h 29606 29607 ;; 29608esac 29609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29610$as_echo "$ntp_ok" >&6; } 29611 29612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 29613$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 29614# Check whether --enable-SPECTRACOM was given. 29615if test "${enable_SPECTRACOM+set}" = set; then : 29616 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 29617else 29618 ntp_ok=$ntp_eac 29619 29620fi 29621 29622case "$ntp_ok" in 29623 yes) 29624 ntp_refclock=yes 29625 29626$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 29627 29628 ;; 29629esac 29630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29631$as_echo "$ntp_ok" >&6; } 29632 29633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 29634$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 29635# Check whether --enable-TPRO was given. 29636if test "${enable_TPRO+set}" = set; then : 29637 enableval=$enable_TPRO; ntp_ok=$enableval 29638else 29639 29640 case "$ac_cv_header_sys_tpro_h" in 29641 yes) 29642 ntp_ok=$ntp_eac 29643 ;; 29644 *) 29645 ntp_ok=no 29646 ;; 29647 esac 29648 29649 29650fi 29651 29652case "$ntp_ok" in 29653 yes) 29654 ntp_refclock=yes 29655 29656$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 29657 29658 ;; 29659esac 29660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29661$as_echo "$ntp_ok" >&6; } 29662case "$ntp_ok$ac_cv_header_sys_tpro" in 29663 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29664$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29665esac 29666 29667# Not on a vax-dec-bsd 29668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 29669$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 29670# Check whether --enable-TRUETIME was given. 29671if test "${enable_TRUETIME+set}" = set; then : 29672 enableval=$enable_TRUETIME; ntp_ok=$enableval 29673else 29674 29675 case "$host" in 29676 vax-dec-bsd) 29677 ntp_ok=no 29678 ;; 29679 *) 29680 ntp_ok=$ntp_eac 29681 ;; 29682 esac 29683 29684 29685fi 29686 29687case "$ntp_ok" in 29688 yes) 29689 ntp_refclock=yes 29690 29691$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 29692 29693 ;; 29694esac 29695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29696$as_echo "$ntp_ok" >&6; } 29697case "$ntp_ok$host" in 29698 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29699$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29700esac 29701 29702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 29703$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 29704# Check whether --enable-TT560 was given. 29705if test "${enable_TT560+set}" = set; then : 29706 enableval=$enable_TT560; ntp_ok=$enableval 29707else 29708 ntp_ok=no 29709 29710fi 29711 29712case "$ntp_ok" in 29713 yes) 29714 ntp_refclock=yes 29715 29716$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 29717 29718 ;; 29719esac 29720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29721$as_echo "$ntp_ok" >&6; } 29722 29723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 29724$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 29725# Check whether --enable-ULINK was given. 29726if test "${enable_ULINK+set}" = set; then : 29727 enableval=$enable_ULINK; ntp_ok=$enableval 29728else 29729 ntp_ok=$ntp_eac 29730 29731fi 29732 29733case "$ntp_ok" in 29734 yes) 29735 ntp_refclock=yes 29736 29737$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 29738 29739 ;; 29740esac 29741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29742$as_echo "$ntp_ok" >&6; } 29743 29744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5 29745$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; } 29746# Check whether --enable-TSYNCPCI was given. 29747if test "${enable_TSYNCPCI+set}" = set; then : 29748 enableval=$enable_TSYNCPCI; ntp_ok=$enableval 29749else 29750 29751 case "$host" in 29752 *-*-*linux*) 29753 ntp_ok=$ntp_eac 29754 ;; 29755 *) 29756 ntp_ok=no 29757 esac 29758 29759 29760fi 29761 29762case "$ntp_ok" in 29763 yes) 29764 ntp_refclock=yes 29765 29766$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h 29767 29768 ;; 29769esac 29770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29771$as_echo "$ntp_ok" >&6; } 29772 29773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 29774$as_echo_n "checking WWV receiver... " >&6; } 29775# Check whether --enable-WWV was given. 29776if test "${enable_WWV+set}" = set; then : 29777 enableval=$enable_WWV; ntp_ok=$enableval 29778else 29779 29780 case "$ntp_eac$ntp_canaudio" in 29781 *no*) ntp_ok=no ;; 29782 *) ntp_ok=yes ;; 29783 esac 29784 29785 29786fi 29787 29788case "$ntp_ok" in 29789 yes) 29790 ntp_refclock=yes 29791 29792$as_echo "#define CLOCK_WWV 1" >>confdefs.h 29793 29794 ;; 29795esac 29796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29797$as_echo "$ntp_ok" >&6; } 29798case "$ntp_ok$ntp_canaudio" in 29799 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29800$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29801esac 29802 29803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 29804$as_echo_n "checking for Zyfer receiver... " >&6; } 29805# Check whether --enable-ZYFER was given. 29806if test "${enable_ZYFER+set}" = set; then : 29807 enableval=$enable_ZYFER; ntp_ok=$enableval 29808else 29809 ntp_ok=$ntp_eac 29810 29811fi 29812 29813case "$ntp_ok" in 29814 yes) 29815 ntp_refclock=yes 29816 29817$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 29818 29819 ;; 29820esac 29821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29822$as_echo "$ntp_ok" >&6; } 29823 29824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 29825$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 29826# Check whether --enable-parse-clocks was given. 29827if test "${enable_parse_clocks+set}" = set; then : 29828 enableval=$enable_parse_clocks; ntp_eapc=$enableval 29829else 29830 29831 case "$ntp_eac" in 29832 yes) ntp_eapc=$ntp_canparse ;; 29833 *) ntp_eapc=no ;; 29834 esac 29835 # Delete the next line one of these days 29836 ntp_eapc=no 29837 29838 29839fi 29840 29841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 29842$as_echo "$ntp_eapc" >&6; } 29843 29844case "$ntp_eac$ntp_eapc$ntp_canparse" in 29845 noyes*) 29846 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 29847 ;; 29848 yesyesno) 29849 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 29850 ;; 29851esac 29852 29853ntp_libparse=no 29854ntp_parseutil=no 29855ntp_rawdcf=no 29856 29857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 29858$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 29859# Check whether --enable-COMPUTIME was given. 29860if test "${enable_COMPUTIME+set}" = set; then : 29861 enableval=$enable_COMPUTIME; ntp_ok=$enableval 29862else 29863 ntp_ok=$ntp_eapc 29864 29865fi 29866 29867case "$ntp_ok" in 29868 yes) 29869 ntp_libparse=yes 29870 ntp_refclock=yes 29871 29872$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 29873 29874 ;; 29875esac 29876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29877$as_echo "$ntp_ok" >&6; } 29878case "$ntp_ok$ntp_canparse" in 29879 yesno) 29880 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29881esac 29882 29883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 29884$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 29885# Check whether --enable-DCF7000 was given. 29886if test "${enable_DCF7000+set}" = set; then : 29887 enableval=$enable_DCF7000; ntp_ok=$enableval 29888else 29889 ntp_ok=$ntp_eapc 29890 29891fi 29892 29893case "$ntp_ok" in 29894 yes) 29895 ntp_libparse=yes 29896 ntp_refclock=yes 29897 29898$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 29899 29900 ;; 29901esac 29902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29903$as_echo "$ntp_ok" >&6; } 29904case "$ntp_ok$ntp_canparse" in 29905 yesno) 29906 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29907esac 29908 29909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 29910$as_echo_n "checking HOPF 6021 clock... " >&6; } 29911# Check whether --enable-HOPF6021 was given. 29912if test "${enable_HOPF6021+set}" = set; then : 29913 enableval=$enable_HOPF6021; ntp_ok=$enableval 29914else 29915 ntp_ok=$ntp_eapc 29916 29917fi 29918 29919case "$ntp_ok" in 29920 yes) 29921 ntp_libparse=yes 29922 ntp_refclock=yes 29923 29924$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 29925 29926 ;; 29927esac 29928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29929$as_echo "$ntp_ok" >&6; } 29930case "$ntp_ok$ntp_canparse" in 29931 yesno) 29932 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29933esac 29934 29935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 29936$as_echo_n "checking Meinberg clocks... " >&6; } 29937# Check whether --enable-MEINBERG was given. 29938if test "${enable_MEINBERG+set}" = set; then : 29939 enableval=$enable_MEINBERG; ntp_ok=$enableval 29940else 29941 ntp_ok=$ntp_eapc 29942 29943fi 29944 29945case "$ntp_ok" in 29946 yes) 29947 ntp_libparse=yes 29948 ntp_refclock=yes 29949 29950$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 29951 29952 ;; 29953esac 29954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29955$as_echo "$ntp_ok" >&6; } 29956case "$ntp_ok$ntp_canparse" in 29957 yesno) 29958 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29959esac 29960 29961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 29962$as_echo_n "checking DCF77 raw time code... " >&6; } 29963# Check whether --enable-RAWDCF was given. 29964if test "${enable_RAWDCF+set}" = set; then : 29965 enableval=$enable_RAWDCF; ntp_ok=$enableval 29966else 29967 ntp_ok=$ntp_eapc 29968 29969fi 29970 29971case "$ntp_ok" in 29972 yes) 29973 ntp_libparse=yes 29974 ntp_parseutil=yes 29975 ntp_refclock=yes 29976 ntp_rawdcf=yes 29977 29978$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 29979 29980 ;; 29981esac 29982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29983$as_echo "$ntp_ok" >&6; } 29984case "$ntp_ok$ntp_canparse" in 29985 yesno) 29986 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29987esac 29988 29989case "$ntp_rawdcf" in 29990 yes) 29991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 29992$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 29993if ${ntp_cv_rawdcf_parity+:} false; then : 29994 $as_echo_n "(cached) " >&6 29995else 29996 29997 ans=no 29998 case "$host" in 29999 *-*-*linux*) 30000 ans=yes 30001 ;; 30002 esac 30003 ntp_cv_rawdcf_parity=$ans 30004 30005 30006fi 30007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5 30008$as_echo "$ntp_cv_rawdcf_parity" >&6; } 30009 case "$ntp_cv_rawdcf_parity" in 30010 yes) 30011 30012$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 30013 ;; 30014 esac 30015esac 30016 30017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 30018$as_echo_n "checking RCC 8000 clock... " >&6; } 30019# Check whether --enable-RCC8000 was given. 30020if test "${enable_RCC8000+set}" = set; then : 30021 enableval=$enable_RCC8000; ntp_ok=$enableval 30022else 30023 ntp_ok=$ntp_eapc 30024 30025fi 30026 30027case "$ntp_ok" in 30028 yes) 30029 ntp_libparse=yes 30030 ntp_refclock=yes 30031 30032$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 30033 30034 ;; 30035esac 30036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30037$as_echo "$ntp_ok" >&6; } 30038case "$ntp_ok$ntp_canparse" in 30039 yesno) 30040 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30041esac 30042 30043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 30044$as_echo_n "checking Schmid DCF77 clock... " >&6; } 30045# Check whether --enable-SCHMID was given. 30046if test "${enable_SCHMID+set}" = set; then : 30047 enableval=$enable_SCHMID; ntp_ok=$enableval 30048else 30049 ntp_ok=$ntp_eapc 30050 30051fi 30052 30053case "$ntp_ok" in 30054 yes) 30055 ntp_libparse=yes 30056 ntp_refclock=yes 30057 30058$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 30059 30060 ;; 30061esac 30062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30063$as_echo "$ntp_ok" >&6; } 30064case "$ntp_ok$ntp_canparse" in 30065 yesno) 30066 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30067esac 30068 30069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 30070$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 30071# Check whether --enable-TRIMTAIP was given. 30072if test "${enable_TRIMTAIP+set}" = set; then : 30073 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 30074else 30075 ntp_ok=$ntp_eapc 30076 30077fi 30078 30079case "$ntp_ok" in 30080 yes) 30081 ntp_libparse=yes 30082 ntp_refclock=yes 30083 30084$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 30085 30086 ;; 30087esac 30088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30089$as_echo "$ntp_ok" >&6; } 30090case "$ntp_ok$ntp_canparse" in 30091 yesno) 30092 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30093esac 30094 30095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 30096$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 30097# Check whether --enable-TRIMTSIP was given. 30098if test "${enable_TRIMTSIP+set}" = set; then : 30099 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 30100else 30101 ntp_ok=$ntp_eapc 30102 30103fi 30104 30105case "$ntp_ok" in 30106 yes) 30107 ntp_libparse=yes 30108 ntp_refclock=yes 30109 30110$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 30111 30112 ;; 30113esac 30114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30115$as_echo "$ntp_ok" >&6; } 30116case "$ntp_ok$ntp_canparse" in 30117 yesno) 30118 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30119esac 30120 30121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 30122$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 30123# Check whether --enable-WHARTON was given. 30124if test "${enable_WHARTON+set}" = set; then : 30125 enableval=$enable_WHARTON; ntp_ok=$enableval 30126else 30127 ntp_ok=$ntp_eapc 30128 30129fi 30130 30131case "$ntp_ok" in 30132 yes) 30133 ntp_libparse=yes 30134 ntp_refclock=yes 30135 30136$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 30137 30138 ;; 30139esac 30140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30141$as_echo "$ntp_ok" >&6; } 30142case "$ntp_ok$ntp_canparse" in 30143 yesno) 30144 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30145esac 30146 30147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 30148$as_echo_n "checking VARITEXT clock... " >&6; } 30149# Check whether --enable-VARITEXT was given. 30150if test "${enable_VARITEXT+set}" = set; then : 30151 enableval=$enable_VARITEXT; ntp_ok=$enableval 30152else 30153 ntp_ok=$ntp_eapc 30154 30155fi 30156 30157case "$ntp_ok" in 30158 yes) 30159 ntp_libparse=yes 30160 ntp_refclock=yes 30161 30162$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 30163 30164 ;; 30165esac 30166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30167$as_echo "$ntp_ok" >&6; } 30168case "$ntp_ok$ntp_canparse" in 30169 yesno) 30170 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30171esac 30172 30173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5 30174$as_echo_n "checking SEL240X clock... " >&6; } 30175# Check whether --enable-SEL240X was given. 30176if test "${enable_SEL240X+set}" = set; then : 30177 enableval=$enable_SEL240X; ntp_ok=$enableval 30178else 30179 ntp_ok=$ntp_eapc 30180fi 30181 30182if test "$ntp_ok" = "yes"; then 30183 ntp_libparse=yes 30184 ntp_refclock=yes 30185 30186$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h 30187 30188fi 30189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30190$as_echo "$ntp_ok" >&6; } 30191case "$ntp_ok$ntp_canparse" in 30192 yesno) 30193 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30194 ;; 30195esac 30196 30197 30198 30199 30200 30201 30202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 30203$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 30204ans=no 30205case "$ntp_libparse" in 30206 yes) 30207 ans=yes 30208 30209$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 30210 30211 LIBPARSE=../libparse/libparse.a 30212 MAKE_LIBPARSE=libparse.a 30213 # HMS: check_y2k trips the 34 year problem now... 30214 false && MAKE_CHECK_Y2K=check_y2k 30215esac 30216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30217$as_echo "$ans" >&6; } 30218 30219 30220 30221 30222VER_SUFFIX= 30223 30224 30225 30226 30227# Check whether --with-crypto was given. 30228if test "${with_crypto+set}" = set; then : 30229 withval=$with_crypto; 30230fi 30231 30232 30233# Check whether --with-openssl-libdir was given. 30234if test "${with_openssl_libdir+set}" = set; then : 30235 withval=$with_openssl_libdir; 30236fi 30237 30238 30239# Check whether --with-openssl-incdir was given. 30240if test "${with_openssl_incdir+set}" = set; then : 30241 withval=$with_openssl_incdir; 30242fi 30243 30244 30245# Check whether --with-rpath was given. 30246if test "${with_rpath+set}" = set; then : 30247 withval=$with_rpath; 30248fi 30249 30250 30251ntp_openssl=no 30252ntp_openssl_from_pkg_config=no 30253 30254with_crypto=${with_crypto:-openssl,libcrypto} 30255case "$with_crypto" in 30256 yes) 30257 with_crypto=openssl,libcrypto 30258esac 30259 30260 30261case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 30262 no:*) ;; 30263 *:notempty:notgiven:notgiven) 30264 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 30266$as_echo_n "checking pkg-config for $pkg... " >&6; } 30267 if $PKG_CONFIG --exists $pkg ; then 30268 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 30269 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 30270 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 30271 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`" 30272 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 30273 VER_SUFFIX=o 30274 ntp_openssl=yes 30275 ntp_openssl_from_pkg_config=yes 30276 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`" 30277 case "$ntp_openssl_version" in 30278 *.*) ;; 30279 *) ntp_openssl_version='(unknown)' ;; 30280 esac 30281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5 30282$as_echo "yes, version $ntp_openssl_version" >&6; } 30283 30284 break 30285 fi 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30287$as_echo "no" >&6; } 30288 done 30289esac 30290case "$with_crypto:$ntp_openssl" in 30291 no:*) ;; 30292 *:no) 30293 need_dash_r= 30294 need_dash_Wlrpath= 30295 case "${with_rpath-notgiven}" in 30296 yes) 30297 # Lame - what to do if we need -Wl... but not -R? 30298 need_dash_r=1 30299 ;; 30300 notgiven) 30301 case "$host" in 30302 *-*-linux*) 30303 # This may really only be true for gcc 30304 need_dash_Wlrpath=1 30305 ;; 30306 *-*-netbsd*) 30307 need_dash_r=1 30308 ;; 30309 *-*-solaris*) 30310 need_dash_r=1 30311 ;; 30312 esac 30313 ;; 30314 esac 30315 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 30317$as_echo_n "checking for openssl library directory... " >&6; } 30318 with_openssl_libdir=${with_openssl_libdir-notgiven} 30319 case "$with_openssl_libdir" in 30320 notgiven) 30321 case "$build" in 30322 $host) 30323 with_openssl_libdir=default 30324 ;; 30325 *) 30326 with_openssl_libdir=no 30327 ;; 30328 esac 30329 esac 30330 case "$with_openssl_libdir" in 30331 default) 30332 # Look in: 30333 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 30334 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 30335 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 30336 esac 30337 case "$with_openssl_libdir" in 30338 no) 30339 ;; 30340 *) # Look for libcrypto.a and libssl.a: 30341 for i in $with_openssl_libdir no 30342 do 30343 case "$host" in 30344 *-*-darwin*) 30345 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 30346 ;; 30347 *) 30348 test -f $i/libcrypto.so -a -f $i/libssl.so && break 30349 test -f $i/libcrypto.a -a -f $i/libssl.a && break 30350 ;; 30351 esac 30352 done 30353 openssl_libdir=$i 30354 ;; 30355 esac 30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 30357$as_echo "$openssl_libdir" >&6; } 30358 case "$openssl_libdir" in 30359 no) 30360 openssl_libdir= 30361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 30362$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 30363 esac 30364 30365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 30366$as_echo_n "checking for openssl include directory... " >&6; } 30367 with_openssl_incdir=${with_openssl_incdir-notgiven} 30368 case "$with_openssl_incdir" in 30369 notgiven) 30370 # Look in: 30371 with_openssl_incdir="/usr/include /usr/sfw/include" 30372 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 30373 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 30374 esac 30375 case "$with_openssl_incdir" in 30376 no) 30377 ;; 30378 *) # look for openssl/evp.h: 30379 for i in $with_openssl_incdir no 30380 do 30381 test -f $i/openssl/evp.h && break 30382 done 30383 openssl_incdir=$i 30384 ;; 30385 esac 30386 { i=; unset i;} 30387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 30388$as_echo "$openssl_incdir" >&6; } 30389 case "$openssl_incdir" in 30390 no) 30391 openssl_incdir= 30392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 30393$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 30394 esac 30395 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 30396 then 30397 ntp_openssl=no 30398 else 30399 ntp_openssl=yes 30400 VER_SUFFIX=o 30401 fi 30402 case "$ntp_openssl" in 30403 yes) 30404 # We have OpenSSL inc/lib dirs - use them. 30405 case "$openssl_incdir" in 30406 /usr/include) 30407 ;; 30408 *) 30409 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 30410 ;; 30411 esac 30412 case "$openssl_libdir" in 30413 /usr/lib) 30414 ;; 30415 *) 30416 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 30417 case "$need_dash_r" in 30418 1) 30419 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 30420 esac 30421 case "$need_dash_Wlrpath" in 30422 1) 30423 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 30424 esac 30425 ;; 30426 esac 30427 LDADD_NTP="$LDADD_NTP -lcrypto" 30428 esac 30429esac 30430 30431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 30432$as_echo_n "checking if we will use crypto... " >&6; } 30433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 30434$as_echo "$ntp_openssl" >&6; } 30435 30436case "$ntp_openssl" in 30437 yes) 30438 for ac_header in openssl/cmac.h openssl/hmac.h 30439do : 30440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30441ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30442if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30443 cat >>confdefs.h <<_ACEOF 30444#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30445_ACEOF 30446 30447fi 30448 30449done 30450 30451 30452$as_echo "#define OPENSSL /**/" >>confdefs.h 30453 30454 case "$VER_SUFFIX" in 30455 *o*) ;; 30456 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 30457 esac 30458 ;; 30459esac 30460 30461NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 30462CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 30463NTPO_SAVED_LIBS="$LIBS" 30464 30465# 30466# check for linking with -lcrypto failure, and try -lcrypto -lz. 30467# Helps m68k-atari-mint 30468# 30469case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 30470 yes:no) 30471 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 30473$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 30474if ${ntp_cv_bare_lcrypto+:} false; then : 30475 $as_echo_n "(cached) " >&6 30476else 30477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30478/* end confdefs.h. */ 30479 30480 #include "openssl/err.h" 30481 #include "openssl/evp.h" 30482 30483int 30484main () 30485{ 30486 30487 ERR_load_crypto_strings(); 30488 OpenSSL_add_all_algorithms(); 30489 30490 30491 ; 30492 return 0; 30493} 30494_ACEOF 30495if ac_fn_c_try_link "$LINENO"; then : 30496 ntp_cv_bare_lcrypto=yes 30497else 30498 ntp_cv_bare_lcrypto=no 30499 30500fi 30501rm -f core conftest.err conftest.$ac_objext \ 30502 conftest$ac_exeext conftest.$ac_ext 30503 30504fi 30505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 30506$as_echo "$ntp_cv_bare_lcrypto" >&6; } 30507 case "$ntp_cv_bare_lcrypto" in 30508 no) 30509 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 30510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 30511$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 30512if ${ntp_cv_lcrypto_lz+:} false; then : 30513 $as_echo_n "(cached) " >&6 30514else 30515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30516/* end confdefs.h. */ 30517 30518 #include "openssl/err.h" 30519 #include "openssl/evp.h" 30520 30521int 30522main () 30523{ 30524 30525 ERR_load_crypto_strings(); 30526 OpenSSL_add_all_algorithms(); 30527 30528 30529 ; 30530 return 0; 30531} 30532_ACEOF 30533if ac_fn_c_try_link "$LINENO"; then : 30534 ntp_cv_lcrypto_lz=yes 30535else 30536 ntp_cv_lcrypto_lz=no 30537 30538fi 30539rm -f core conftest.err conftest.$ac_objext \ 30540 conftest$ac_exeext conftest.$ac_ext 30541 30542fi 30543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 30544$as_echo "$ntp_cv_lcrypto_lz" >&6; } 30545 case "$ntp_cv_lcrypto_lz" in 30546 yes) 30547 LDADD_NTP="$LDADD_NTP -lz" 30548 esac 30549 esac 30550esac 30551 30552# 30553# Older OpenSSL headers have a number of callback prototypes inside 30554# other function prototypes which trigger copious warnings with gcc's 30555# -Wstrict-prototypes, which is included in -Wall. 30556# 30557# An example: 30558# 30559# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 30560# int (*cb)(), int sgckey); 30561# ^^^^^^^^^^^ 30562# 30563# 30564# 30565openssl_triggers_warnings=unknown 30566NTPO_SAVED_CFLAGS="$CFLAGS" 30567 30568case "$ntp_openssl:$GCC" in 30569 yes:yes) 30570 CFLAGS="$CFLAGS -Werror" 30571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30572/* end confdefs.h. */ 30573 30574 30575int 30576main () 30577{ 30578 30579 /* see if -Werror breaks gcc */ 30580 30581 30582 ; 30583 return 0; 30584} 30585_ACEOF 30586if ac_fn_c_try_compile "$LINENO"; then : 30587 gcc_handles_Werror=yes 30588else 30589 gcc_handles_Werror=no 30590 30591fi 30592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30593 case "$gcc_handles_Werror" in 30594 no) 30595 # if this gcc doesn't do -Werror go ahead and use 30596 # -Wstrict-prototypes. 30597 openssl_triggers_warnings=yes 30598 ;; 30599 yes) 30600 CFLAGS="$CFLAGS -Wstrict-prototypes" 30601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30602/* end confdefs.h. */ 30603 30604 #include "openssl/asn1_mac.h" 30605 #include "openssl/bn.h" 30606 #include "openssl/err.h" 30607 #include "openssl/evp.h" 30608 #include "openssl/pem.h" 30609 #include "openssl/rand.h" 30610 #include "openssl/x509v3.h" 30611 30612int 30613main () 30614{ 30615 30616 /* empty body */ 30617 30618 30619 ; 30620 return 0; 30621} 30622_ACEOF 30623if ac_fn_c_try_compile "$LINENO"; then : 30624 openssl_triggers_warnings=no 30625else 30626 openssl_triggers_warnings=yes 30627 30628fi 30629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30630 esac 30631 case "$openssl_triggers_warnings" in 30632 yes) 30633 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 30634 ;; 30635 *) 30636 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 30637 esac 30638 ;; 30639 no:yes) 30640 # gcc without OpenSSL 30641 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 30642esac 30643 30644# Because we don't want -Werror for the EVP_MD_do_all_sorted check 30645CFLAGS="$NTPO_SAVED_CFLAGS" 30646 30647case "$ntp_openssl" in 30648 yes) 30649 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30650 for ac_func in EVP_MD_do_all_sorted 30651do : 30652 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 30653if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 30654 cat >>confdefs.h <<_ACEOF 30655#define HAVE_EVP_MD_DO_ALL_SORTED 1 30656_ACEOF 30657 30658fi 30659done 30660 30661 ;; 30662esac 30663 30664 30665CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 30666LIBS="$NTPO_SAVED_LIBS" 30667{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 30668{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 30669{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 30670{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 30671{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 30672 30673 30674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5 30675$as_echo_n "checking if we want to enable CMAC support... " >&6; } 30676case "$ac_cv_header_openssl_cmac_h" in 30677 yes) 30678 30679$as_echo "#define ENABLE_CMAC 1" >>confdefs.h 30680 30681 ans="yes" 30682 ;; 30683 *) ans="no" 30684 ;; 30685esac 30686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30687$as_echo "$ans" >&6; } 30688 30689 30690 30691 30692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5 30693$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; } 30694# Check whether --enable-openssl-random was given. 30695if test "${enable_openssl_random+set}" = set; then : 30696 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval 30697else 30698 ntp_use_openssl_random=yes 30699 30700fi 30701 30702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5 30703$as_echo "$ntp_use_openssl_random" >&6; } 30704 30705# The following might need extra libraries 30706NTPO_SAVED_LIBS="$LIBS" 30707LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30708for ac_func in RAND_bytes RAND_poll 30709do : 30710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30711ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30712if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30713 cat >>confdefs.h <<_ACEOF 30714#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30715_ACEOF 30716 30717fi 30718done 30719 30720LIBS="$NTPO_SAVED_LIBS" 30721case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in 30722 yesyesyes) 30723 30724$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h 30725 30726 ;; 30727 *) ntp_use_openssl_random=no ;; 30728esac 30729 30730 30731 30732# if we are using OpenSSL (--with-crypto), by default Autokey is enabled 30733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5 30734$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; } 30735# Check whether --enable-autokey was given. 30736if test "${enable_autokey+set}" = set; then : 30737 enableval=$enable_autokey; ntp_autokey=$enableval 30738else 30739 ntp_autokey=$ntp_openssl 30740 30741fi 30742 30743case "$ntp_autokey" in 30744 no) 30745 ;; 30746 *) 30747 case "$ntp_openssl" in 30748 no) 30749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5 30750$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;} 30751 ntp_autokey=no 30752 ;; 30753 *) 30754 30755$as_echo "#define AUTOKEY 1" >>confdefs.h 30756 30757 ntp_autokey=yes 30758 ;; 30759 esac 30760 ;; 30761esac 30762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5 30763$as_echo "$ntp_autokey" >&6; } 30764 30765 30766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 30767$as_echo_n "checking if we want to run check-layout... " >&6; } 30768case "$cross_compiling$PATH_PERL" in 30769 no/*) 30770 MAKE_CHECK_LAYOUT=check-layout 30771 ans=yes 30772 ;; 30773 *) 30774 ans=no 30775 ;; 30776esac 30777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30778$as_echo "$ans" >&6; } 30779 30780 30781 30782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 30783$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 30784ans=no 30785case "$ntp_parseutil" in 30786 yes) 30787 case "$host" in 30788 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 30789 ans="dcfd testdcf" 30790 DCFD=dcfd 30791 TESTDCF=testdcf 30792 esac 30793 ;; 30794esac 30795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30796$as_echo "$ans" >&6; } 30797 30798 30799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 30800$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 30801ans=no 30802case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 30803 yesyes) 30804 case "$host" in 30805 sparc-*-sunos4*) 30806 case "$ntp_cv_var_kernel_pll" in 30807 yes) 30808 30809$as_echo "#define PPS_SYNC 1" >>confdefs.h 30810 30811 ;; 30812 esac 30813 ans=parsestreams 30814 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 30815 ;; 30816 sparc-*-solaris2*) 30817 ans=parsesolaris 30818 MAKE_PARSEKMODULE=parse 30819 for ac_header in strings.h 30820do : 30821 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 30822if test "x$ac_cv_header_strings_h" = xyes; then : 30823 cat >>confdefs.h <<_ACEOF 30824#define HAVE_STRINGS_H 1 30825_ACEOF 30826 30827fi 30828 30829done 30830 30831 ;; 30832 esac 30833 ;; 30834esac 30835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30836$as_echo "$ans" >&6; } 30837 30838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 30839$as_echo_n "checking if we need basic refclock support... " >&6; } 30840case "$ntp_refclock" in 30841 yes) 30842 30843$as_echo "#define REFCLOCK 1" >>confdefs.h 30844 30845 ;; 30846esac 30847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 30848$as_echo "$ntp_refclock" >&6; } 30849 30850PROPDELAY=propdelay 30851 30852 30853 30854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 30855$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 30856case "$host" in 30857 *-*-hpux[56789]*) 30858 ans=yes 30859 ;; 30860 *) ans=no 30861 ;; 30862esac 30863case "$ans" in 30864 yes) 30865 MAKE_ADJTIMED=adjtimed 30866 30867$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 30868 30869 ;; 30870 *) ADJTIMED_DB= 30871 ADJTIMED_DL= 30872 ADJTIMED_DS= 30873 ADJTIMED_MS= 30874 ;; 30875esac 30876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30877$as_echo "$ans" >&6; } 30878 30879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 30880$as_echo_n "checking if we want QNX adjtime support... " >&6; } 30881case "$host" in 30882 *-*-qnx*) 30883 ans=yes 30884 ;; 30885 *) ans=no 30886 ;; 30887esac 30888case "$ans" in 30889 yes) 30890 30891$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 30892 30893 ;; 30894esac 30895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30896$as_echo "$ans" >&6; } 30897 30898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 30899$as_echo_n "checking if we can read kmem... " >&6; } 30900 30901# the default is to enable it if the system has the capability 30902 30903case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 30904 *yes*) 30905 ans=yes 30906 ;; 30907 *) ans=no 30908 ;; 30909esac 30910 30911case "$host" in 30912 *-*-domainos) # Won't be found... 30913 ans=no 30914 ;; 30915 *-*-hpux*) 30916 #ans=no 30917 ;; 30918 *-*-irix[456]*) 30919 ans=no 30920 ;; 30921 *-*-*linux*) 30922 ans=no 30923 ;; 30924 *-*-winnt3.5) 30925 ans=no 30926 ;; 30927 *-*-unicosmp*) 30928 ans=no 30929 ;; 30930esac 30931 30932# --enable-kmem / --disable-kmem controls if present 30933# Check whether --enable-kmem was given. 30934if test "${enable_kmem+set}" = set; then : 30935 enableval=$enable_kmem; ans=$enableval 30936 30937fi 30938 30939 30940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30941$as_echo "$ans" >&6; } 30942 30943case "$ans" in 30944 yes) 30945 can_kmem=yes 30946 ;; 30947 *) 30948 can_kmem=no 30949 30950$as_echo "#define NOKMEM 1" >>confdefs.h 30951 30952esac 30953 30954 30955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 30956$as_echo_n "checking if adjtime is accurate... " >&6; } 30957 30958# target-dependent defaults 30959 30960case "$host" in 30961 i386-sequent-ptx*) 30962 ans=no 30963 ;; 30964 i386-unknown-osf1*) 30965 ans=yes 30966 ;; 30967 mips-sgi-irix[456]*) 30968 ans=yes 30969 ;; 30970 *-fujitsu-uxp*) 30971 ans=yes 30972 ;; 30973 *-ibm-aix[4-9]*) 30974 # XXX only verified thru AIX6. 30975 ans=yes 30976 ;; 30977 *-*-*linux*) 30978 ans=yes 30979 ;; 30980 *-*-solaris2.[01]) 30981 ans=no 30982 ;; 30983 *-*-solaris2*) 30984 ans=yes 30985 ;; 30986 *-*-unicosmp*) 30987 ans=yes 30988 ;; 30989 *) ans=no 30990 ;; 30991esac 30992 30993# --enable-accurate-adjtime / --disable-accurate-adjtime 30994# override the default 30995# Check whether --enable-accurate-adjtime was given. 30996if test "${enable_accurate_adjtime+set}" = set; then : 30997 enableval=$enable_accurate_adjtime; ans=$enableval 30998 30999fi 31000 31001 31002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31003$as_echo "$ans" >&6; } 31004 31005case "$ans" in 31006 yes) 31007 31008$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 31009 31010 adjtime_is_accurate=yes 31011 ;; 31012 *) 31013 adjtime_is_accurate=no 31014 ;; 31015esac 31016 31017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 31018$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 31019if ${ntp_cv_nlist_tick+:} false; then : 31020 $as_echo_n "(cached) " >&6 31021else 31022 31023 ans=_tick 31024 case "$host" in 31025 m68*-hp-hpux*) # HP9000/300? 31026 ans=_old_tick 31027 ;; 31028 *-apple-aux[23]*) 31029 ans=tick 31030 ;; 31031 *-hp-hpux*) 31032 ans=old_tick 31033 ;; 31034 *-ibm-aix[3-9]*) 31035 # XXX only verified thru AIX6. 31036 ans=no 31037 ;; 31038 *-*-mpeix*) 31039 ans=no 31040 ;; 31041 *-*-ptx*) 31042 ans=tick 31043 ;; 31044 *-*-sco3.2v[45]*) 31045 ans=no 31046 ;; 31047 *-*-solaris2*) 31048 ans=nsec_per_tick 31049 ;; 31050 *-*-sysv4*) 31051 ans=tick 31052 ;; 31053 esac 31054 ntp_cv_nlist_tick=$ans 31055 31056 31057fi 31058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5 31059$as_echo "$ntp_cv_nlist_tick" >&6; } 31060case "$ntp_cv_nlist_tick" in 31061 ''|no) 31062 ;; # HMS: I think we can only get 'no' here... 31063 *) 31064 31065cat >>confdefs.h <<_ACEOF 31066#define K_TICK_NAME "$ntp_cv_nlist_tick" 31067_ACEOF 31068 31069esac 31070 31071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 31072$as_echo_n "checking for the units of 'tick'... " >&6; } 31073if ${ntp_cv_tick_nano+:} false; then : 31074 $as_echo_n "(cached) " >&6 31075else 31076 31077 ans=usec 31078 case "$host" in 31079 *-*-solaris2*) 31080 ans=nsec 31081 ;; 31082 esac 31083 ntp_cv_tick_nano=$ans 31084 31085 31086fi 31087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5 31088$as_echo "$ntp_cv_tick_nano" >&6; } 31089case "$ntp_cv_tick_nano" in 31090 nsec) 31091 31092$as_echo "#define TICK_NANO 1" >>confdefs.h 31093 31094esac 31095 31096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 31097$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 31098if ${ntp_cv_nlist_tickadj+:} false; then : 31099 $as_echo_n "(cached) " >&6 31100else 31101 31102 ans=_tickadj 31103 case "$host" in 31104 m68*-hp-hpux*) # HP9000/300? 31105 ans=_tickadj 31106 ;; 31107 *-apple-aux[23]*) 31108 ans=tickadj 31109 ;; 31110 *-hp-hpux10*) 31111 ans=no 31112 ;; 31113 *-hp-hpux9*) 31114 ans=no 31115 ;; 31116 *-hp-hpux*) 31117 ans=tickadj 31118 ;; 31119 *-*-aix*) 31120 ans=tickadj 31121 ;; 31122 *-*-mpeix*) 31123 ans=no 31124 ;; 31125 *-*-ptx*) 31126 ans=tickadj 31127 ;; 31128 *-*-sco3.2v4*) 31129 ans=no 31130 ;; 31131 *-*-sco3.2v5.0*) 31132 ans=clock_drift 31133 ;; 31134 *-*-solaris2*) 31135 ans=no # hrestime_adj 31136 ;; 31137 *-*-sysv4*) 31138 ans=tickadj 31139 ;; 31140 esac 31141 ntp_cv_nlist_tickadj=$ans 31142 31143 31144fi 31145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5 31146$as_echo "$ntp_cv_nlist_tickadj" >&6; } 31147case "$ntp_cv_nlist_tickadj" in 31148 ''|no) 31149 ;; # HMS: I think we can only get 'no' here... 31150 *) 31151 31152cat >>confdefs.h <<_ACEOF 31153#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj" 31154_ACEOF 31155 31156esac 31157 31158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 31159$as_echo_n "checking for the units of 'tickadj'... " >&6; } 31160if ${ntp_cv_tickadj_nano+:} false; then : 31161 $as_echo_n "(cached) " >&6 31162else 31163 31164 ans=usec 31165 case "$host" in 31166 *-*-solaris2*) 31167 ans=nsec 31168 ;; 31169 esac 31170 ntp_cv_tickadj_nano=$ans 31171 31172 31173fi 31174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5 31175$as_echo "$ntp_cv_tickadj_nano" >&6; } 31176case "$ntp_cv_tickadj_nano" in 31177 nsec) 31178 31179$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 31180 31181esac 31182 31183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 31184$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 31185if ${ntp_cv_nlist_dosynctodr+:} false; then : 31186 $as_echo_n "(cached) " >&6 31187else 31188 31189 case "$host" in 31190 *-apple-aux[23]*) 31191 ans=no 31192 ;; 31193 *-sni-sysv*) 31194 ans=dosynctodr 31195 ;; 31196 *-stratus-vos) 31197 ans=no 31198 ;; 31199 *-*-aix*) 31200 ans=dosynctodr 31201 ;; 31202 *-*-hpux*) 31203 ans=no 31204 ;; 31205 *-*-mpeix*) 31206 ans=no 31207 ;; 31208 *-*-nextstep*) 31209 ans=_dosynctodr 31210 ;; 31211 *-*-ptx*) 31212 ans=doresettodr 31213 ;; 31214 *-*-sco3.2v4*) 31215 ans=no 31216 ;; 31217 *-*-sco3.2v5*) 31218 ans=track_rtc 31219 ;; 31220 *-*-solaris2*) 31221 ans=dosynctodr 31222 ;; 31223 *-*-sysv4*) 31224 ans=doresettodr 31225 ;; 31226 *) 31227 ans=_dosynctodr 31228 ;; 31229 esac 31230 ntp_cv_nlist_dosynctodr=$ans 31231 31232 31233fi 31234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5 31235$as_echo "$ntp_cv_nlist_dosynctodr" >&6; } 31236case "$ntp_cv_nlist_dosynctodr" in 31237 no) 31238 ;; 31239 *) 31240 31241cat >>confdefs.h <<_ACEOF 31242#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr" 31243_ACEOF 31244 31245 ;; 31246esac 31247 31248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 31249$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 31250if ${ntp_cv_nlist_noprintf+:} false; then : 31251 $as_echo_n "(cached) " >&6 31252else 31253 31254 case "$host" in 31255 *-apple-aux[23]*) 31256 ans=no 31257 ;; 31258 *-sni-sysv*) 31259 ans=noprintf 31260 ;; 31261 *-stratus-vos) 31262 ans=no 31263 ;; 31264 *-*-aix*) 31265 ans=noprintf 31266 ;; 31267 *-*-hpux*) 31268 ans=no 31269 ;; 31270 *-*-mpeix*) 31271 ans=no 31272 ;; 31273 *-*-ptx*) 31274 ans=noprintf 31275 ;; 31276 *-*-nextstep*) 31277 ans=_noprintf 31278 ;; 31279 *-*-solaris2*) 31280 ans=noprintf 31281 ;; 31282 *-*-sysv4*) 31283 ans=noprintf 31284 ;; 31285 *) 31286 ans=_noprintf 31287 ;; 31288 esac 31289 ntp_cv_nlist_noprintf=$ans 31290 31291 31292fi 31293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5 31294$as_echo "$ntp_cv_nlist_noprintf" >&6; } 31295case "$ntp_cv_nlist_noprintf" in 31296 no) 31297 ;; 31298 *) 31299 31300cat >>confdefs.h <<_ACEOF 31301#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf" 31302_ACEOF 31303 31304 ;; 31305esac 31306 31307 31308 31309 31310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 31311$as_echo_n "checking for a default value for 'tick'... " >&6; } 31312 31313# target-dependent default for tick 31314 31315case "$host" in 31316 *-*-pc-cygwin*) 31317 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5 31318 ;; 31319 *-univel-sysv*) 31320 ans=10000 31321 ;; 31322 *-*-irix*) 31323 ans=10000 31324 ;; 31325 *-*-*linux*) 31326 ans=txc.tick 31327 ;; 31328 *-*-mpeix*) 31329 ans=no 31330 ;; 31331 *-*-winnt3.5) 31332 ans='(every / 10)' 31333 ;; 31334 *-*-unicosmp*) 31335 ans=10000 31336 ;; 31337 *) 31338 ans='1000000L/hz' 31339 ;; 31340esac 31341 31342# Check whether --enable-tick was given. 31343if test "${enable_tick+set}" = set; then : 31344 enableval=$enable_tick; ans=$enableval 31345 31346fi 31347 31348 31349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31350$as_echo "$ans" >&6; } 31351 31352case "$ans" in 31353 ''|no) 31354 ;; # HMS: I think we can only get 'no' here... 31355 *) 31356 31357cat >>confdefs.h <<_ACEOF 31358#define PRESET_TICK $ans 31359_ACEOF 31360 31361esac 31362 31363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 31364$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 31365 31366# target-specific default 31367ans='500/hz' 31368case "$host" in 31369 *-fujitsu-uxp*) 31370 case "$adjtime_is_accurate" in 31371 yes) 31372 ans='tick/16' 31373 esac 31374 ;; 31375 *-univel-sysv*) 31376 ans=80 31377 ;; 31378 *-*-aix*) 31379 case "$can_kmem" in 31380 no) 31381 ans=1000 31382 ;; 31383 esac 31384 ;; 31385 *-*-domainos) # Skippy: won't be found... 31386 case "$can_kmem" in 31387 no) 31388 ans=668 31389 ;; 31390 esac 31391 ;; 31392 *-*-hpux*) 31393 case "$adjtime_is_accurate" in 31394 yes) 31395 ans='tick/16' 31396 ;; 31397 esac 31398 ;; 31399 *-*-irix*) 31400 ans=150 31401 ;; 31402 *-*-mpeix*) 31403 ans=no 31404 ;; 31405 *-*-sco3.2v5.0*) 31406 ans=10000L/hz 31407 ;; 31408 *-*-winnt3.5) 31409 ans=50 31410 ;; 31411 *-*-unicosmp*) 31412 ans=150 31413 ;; 31414esac 31415 31416# Check whether --enable-tickadj was given. 31417if test "${enable_tickadj+set}" = set; then : 31418 enableval=$enable_tickadj; ans=$enableval 31419 31420fi 31421 31422 31423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31424$as_echo "$ans" >&6; } 31425 31426default_tickadj=$ans 31427 31428case "$default_tickadj" in 31429 ''|no) 31430 ;; # HMS: I think we can only get 'no' here... 31431 *) 31432 31433cat >>confdefs.h <<_ACEOF 31434#define PRESET_TICKADJ $default_tickadj 31435_ACEOF 31436 ;; 31437esac 31438 31439# Newer versions of ReliantUNIX round adjtime() values down to 31440# 1/100s (system tick). Sigh ... 31441# Unfortunately, there is no easy way to know if particular release 31442# has this "feature" or any obvious way to test for it. 31443case "$host" in 31444 mips-sni-sysv4*) 31445 31446$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 31447 31448esac 31449 31450case "$host" in 31451 *-*-sco3.2v5*) 31452 31453$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 31454 31455esac 31456 31457ntp_cv_make_tickadj=yes 31458case "$can_kmem$ac_cv_var_tick$default_tickadj" in 31459 nonono) # Don't read KMEM, no presets. Bogus. 31460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 31461$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 31462 ntp_cv_make_tickadj=no 31463 ;; 31464 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 31465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 31466$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 31467 ntp_cv_make_tickadj=no 31468 ;; 31469 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 31470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 31471$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 31472 ntp_cv_make_tickadj=no 31473 ;; 31474 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 31475 ;; 31476 yesnono) # Read KMEM, no presets. Cool. 31477 ;; 31478 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 31479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 31480$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 31481 ;; 31482 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 31483 ;; 31484 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 31485 ;; 31486 *) # Generally bogus. 31487 as_fn_error $? "This shouldn't happen." "$LINENO" 5 31488 ;; 31489esac 31490 31491 31492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 31493$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 31494if ${ac_cv_make_ntptime+:} false; then : 31495 $as_echo_n "(cached) " >&6 31496else 31497 case "$host" in 31498 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in 31499 yesyes) 31500 ans=yes 31501 ;; 31502 *) 31503 ans=no 31504 ;; 31505 esac 31506 ;; 31507esac 31508ac_cv_make_ntptime=$ans 31509fi 31510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 31511$as_echo "$ac_cv_make_ntptime" >&6; } 31512case "$ac_cv_make_ntptime" in 31513 yes) 31514 MAKE_NTPTIME=ntptime 31515 ;; 31516 *) 31517 NTPTIME_DB= 31518 NTPTIME_DL= 31519 NTPTIME_DS= 31520 NTPTIME_MS= 31521 ;; 31522esac 31523 31524 31525case "$host" in 31526 mips-sni-sysv4*) 31527 # tickadj is pretty useless on newer versions of ReliantUNIX 31528 # Do not bother 31529 ntp_cv_make_tickadj=no 31530 ;; 31531 *-*-irix*) 31532 ntp_cv_make_tickadj=no 31533 ;; 31534 *-*-solaris2*) 31535 # DLM says tickadj is a no-no starting with solaris2.5 31536 case "$host" in 31537 *-*-solaris2.1[0-9]*) 31538 ntp_cv_make_tickadj=no 31539 ;; 31540 *-*-solaris2.[0-4]*) ;; 31541 *) ntp_cv_make_tickadj=no ;; 31542 esac 31543 ;; 31544 *-*-unicosmp*) 31545 ntp_cv_make_tickadj=no 31546 ;; 31547esac 31548 31549# 31550# Despite all the above, we always make tickadj. Setting 31551# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false 31552# report that the configuration variable was cached. It may 31553# be better to simply remove the hunk above, I did not want 31554# to remove it if there is hope it will be used again. 31555# 31556{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;} 31557 31558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 31559$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 31560if ${ntp_cv_make_tickadj+:} false; then : 31561 $as_echo_n "(cached) " >&6 31562else 31563 ntp_cv_make_tickadj=yes 31564 31565fi 31566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5 31567$as_echo "$ntp_cv_make_tickadj" >&6; } 31568case "$ntp_cv_make_tickadj" in 31569 yes) 31570 MAKE_TICKADJ=tickadj 31571 ;; 31572 *) 31573 CALC_TICKADJ_DB= 31574 CALC_TICKADJ_DL= 31575 CALC_TICKADJ_DS= 31576 CALC_TICKADJ_MS= 31577 TICKADJ_DB= 31578 TICKADJ_DL= 31579 TICKADJ_DS= 31580 TICKADJ_MS= 31581 ;; 31582esac 31583 31584 31585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 31586$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 31587if ${ntp_cv_make_timetrim+:} false; then : 31588 $as_echo_n "(cached) " >&6 31589else 31590 31591 case "$host" in 31592 *-*-irix*) 31593 ntp_cv_make_timetrim=yes 31594 ;; 31595 *-*-unicosmp*) 31596 ntp_cv_make_timetrim=yes 31597 ;; 31598 *) 31599 ntp_cv_make_timetrim=no 31600 ;; 31601 esac 31602 31603 31604fi 31605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5 31606$as_echo "$ntp_cv_make_timetrim" >&6; } 31607case "$ntp_cv_make_timetrim" in 31608 yes) 31609 MAKE_TIMETRIM=timetrim 31610 ;; 31611 *) TIMETRIM_DB= 31612 TIMETRIM_DL= 31613 TIMETRIM_DS= 31614 TIMETRIM_MS= 31615 ;; 31616esac 31617 31618 31619 31620 31621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 31622$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 31623# Check whether --enable-simulator was given. 31624if test "${enable_simulator+set}" = set; then : 31625 enableval=$enable_simulator; ans=$enableval 31626else 31627 ans=no 31628 31629fi 31630 31631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31632$as_echo "$ans" >&6; } 31633case "$ans" in 31634 yes) 31635 MAKE_NTPDSIM=ntpdsim 31636 MAKE_LIBNTPSIM=libntpsim.a 31637 ;; 31638 *) 31639 NTPDSIM_DB= 31640 NTPDSIM_DL= 31641 NTPDSIM_DS= 31642 NTPDSIM_MS= 31643 ;; 31644esac 31645 31646case "$build" in 31647 $host) 31648 ;; 31649 *) case "$host" in 31650 *-*-vxworks*) 31651 LDFLAGS="$LDFLAGS -r" 31652 ;; 31653 esac 31654 ;; 31655esac 31656 31657 31658 31659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 31660$as_echo_n "checking if sntp will be built... " >&6; } 31661 31662# Check whether --with-sntp was given. 31663if test "${with_sntp+set}" = set; then : 31664 withval=$with_sntp; 31665else 31666 with_sntp="${withsntp=yes}" 31667 31668fi 31669 31670case "$with_sntp" in 31671 no) 31672 SNTP= 31673 ;; 31674 *) 31675 SNTP=sntp 31676 ;; 31677esac 31678 31679 if test -n "$SNTP"; then 31680 BUILD_SNTP_TRUE= 31681 BUILD_SNTP_FALSE='#' 31682else 31683 BUILD_SNTP_TRUE='#' 31684 BUILD_SNTP_FALSE= 31685fi 31686 31687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 31688$as_echo "$with_sntp" >&6; } 31689 31690 31691 31692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 31693$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 31694 31695# Check whether --with-ntpsnmpd was given. 31696if test "${with_ntpsnmpd+set}" = set; then : 31697 withval=$with_ntpsnmpd; ans=$withval 31698else 31699 31700 case "$PATH_NET_SNMP_CONFIG" in 31701 /*) ans=yes ;; 31702 *) ans=no ;; 31703 esac 31704 31705 31706fi 31707 31708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31709$as_echo "$ans" >&6; } 31710case "$ans" in 31711 yes) 31712 case "$PATH_NET_SNMP_CONFIG" in 31713 /*) 31714 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 31715 # Bug 2815. This is a bit of a hack, but it works... 31716 case "$ntp_cv_net_snmp_version" in 31717 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'` 31718 ;; 31719 esac 31720 31721 # HMS: we really want to separate CPPFLAGS and CFLAGS 31722 foo=`$PATH_NET_SNMP_CONFIG --cflags` 31723 SNMP_CPPFLAGS= 31724 SNMP_CFLAGS= 31725 for i in $foo; do 31726 case "$i" in 31727 -D*|-U*|-I*) 31728 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 31729 ;; 31730 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 31731 ;; 31732 esac 31733 done 31734 31735 31736 31737 save_CFLAGS=$CFLAGS 31738 save_CPPFLAGS=$CPPFLAGS 31739 save_LIBS=$LIBS 31740 CFLAGS=$SNMP_CFLAGS 31741 CPPFLAGS=$SNMP_CPPFLAGS 31742 31743 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" 31744if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 31745 MAKE_NTPSNMPD=ntpsnmpd 31746else 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 31748$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 31749 31750fi 31751 31752 31753 31754 # Do this last, as we're messing up LIBS. 31755 # check -lnetsnmp for netsnmp_daemonize 31756 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 31757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 31758$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 31759if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then : 31760 $as_echo_n "(cached) " >&6 31761else 31762 ac_check_lib_save_LIBS=$LIBS 31763LIBS="-lnetsnmp $LIBS" 31764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31765/* end confdefs.h. */ 31766 31767/* Override any GCC internal prototype to avoid an error. 31768 Use char because int might match the return type of a GCC 31769 builtin and then its argument prototype would still apply. */ 31770#ifdef __cplusplus 31771extern "C" 31772#endif 31773char netsnmp_daemonize (); 31774int 31775main () 31776{ 31777return netsnmp_daemonize (); 31778 ; 31779 return 0; 31780} 31781_ACEOF 31782if ac_fn_c_try_link "$LINENO"; then : 31783 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 31784else 31785 ac_cv_lib_netsnmp_netsnmp_daemonize=no 31786fi 31787rm -f core conftest.err conftest.$ac_objext \ 31788 conftest$ac_exeext conftest.$ac_ext 31789LIBS=$ac_check_lib_save_LIBS 31790fi 31791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 31792$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 31793if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then : 31794 ans=yes 31795else 31796 ans=no 31797 31798fi 31799 31800 case "$ans" in 31801 no) 31802 31803$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 31804 31805 esac 31806 31807 CFLAGS=$save_CFLAGS 31808 { save_CFLAGS=; unset save_CFLAGS;} 31809 CPPFLAGS=$save_CPPFLAGS 31810 { save_CPPFLAGS=; unset save_CPPFLAGS;} 31811 LIBS=$save_LIBS 31812 { save_LIBS=; unset save_LIBS;} 31813 ;; 31814 *) 31815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5 31816$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;} 31817 ;; 31818 esac 31819 ;; 31820esac 31821 31822 31823case "$MAKE_NTPSNMPD" in 31824 '') 31825 NTPSNMPD_DB= 31826 NTPSNMPD_DL= 31827 NTPSNMPD_DS= 31828 NTPSNMPD_MS= 31829 ;; 31830esac 31831 31832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 31833$as_echo_n "checking if we should always slew the time... " >&6; } 31834 31835# target-specific defaults 31836 31837case "$host" in 31838 *-apple-aux[23]*) 31839 ans=yes 31840 ;; 31841 *-*-bsdi[012]*) 31842 ans=no 31843 ;; 31844 *-*-bsdi*) 31845 ans=yes 31846 ;; 31847 *-*-openvms*) # HMS: won't be found 31848 ans=yes 31849 ;; 31850 *) ans=no 31851 ;; 31852esac 31853 31854# --enable-slew-always / --disable-slew-always overrides default 31855 31856# Check whether --enable-slew-always was given. 31857if test "${enable_slew_always+set}" = set; then : 31858 enableval=$enable_slew_always; ans=$enableval 31859 31860fi 31861 31862 31863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31864$as_echo "$ans" >&6; } 31865 31866case "$ans" in 31867 yes) 31868 31869$as_echo "#define SLEWALWAYS 1" >>confdefs.h 31870 31871esac 31872 31873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 31874$as_echo_n "checking if we should step and slew the time... " >&6; } 31875 31876case "$host" in 31877 *-sni-sysv*) 31878 ans=yes 31879 ;; 31880 *-stratus-vos) 31881 ans=no 31882 ;; 31883 *-univel-sysv*) 31884 ans=no 31885 ;; 31886 *-*-ptx*) 31887 ans=yes 31888 ;; 31889 *-*-solaris2.1[0-9]*) 31890 ans=no 31891 ;; 31892 *-*-solaris2.[012]*) 31893 ans=yes 31894 ;; 31895 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 31896 ans=yes 31897 ;; 31898 *) ans=no 31899 ;; 31900esac 31901 31902# Check whether --enable-step-slew was given. 31903if test "${enable_step_slew+set}" = set; then : 31904 enableval=$enable_step_slew; ans=$enableval 31905 31906fi 31907 31908 31909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31910$as_echo "$ans" >&6; } 31911 31912case "$ans" in 31913 yes) 31914 31915$as_echo "#define STEP_SLEW 1" >>confdefs.h 31916 31917esac 31918 31919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 31920$as_echo_n "checking if ntpdate should step the time... " >&6; } 31921 31922case "$host" in 31923 *-apple-aux[23]*) 31924 ans=yes 31925 ;; 31926 *) ans=no 31927 ;; 31928esac 31929 31930# Check whether --enable-ntpdate-step was given. 31931if test "${enable_ntpdate_step+set}" = set; then : 31932 enableval=$enable_ntpdate_step; ans=$enableval 31933 31934fi 31935 31936 31937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31938$as_echo "$ans" >&6; } 31939 31940case "$ans" in 31941 yes) 31942 31943$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 31944 31945esac 31946 31947 31948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 31949$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 31950 31951case "$host" in 31952 *-*-nextstep*) 31953 ans=yes 31954 ;; 31955 *-*-openvms*) # HMS: won't be found 31956 ans=yes 31957 ;; 31958 *) 31959 ans=no 31960 ;; 31961esac 31962 31963# Check whether --enable-hourly-todr-sync was given. 31964if test "${enable_hourly_todr_sync+set}" = set; then : 31965 enableval=$enable_hourly_todr_sync; ans=$enableval 31966 31967fi 31968 31969 31970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31971$as_echo "$ans" >&6; } 31972 31973case "$ac_cv_var_sync_todr" in 31974 yes) 31975 31976$as_echo "#define DOSYNCTODR 1" >>confdefs.h 31977 ;; 31978esac 31979 31980 31981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 31982$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 31983 31984case "$host" in 31985 *-*-solaris2.6) 31986 unamev=`uname -v` 31987 case "$unamev" in 31988 Generic_105181-*) 31989 old_IFS="$IFS" 31990 IFS="-" 31991 set $unamev 31992 IFS="$old_IFS" 31993 if test "$2" -ge 17 31994 then 31995 # Generic_105181-17 and higher 31996 ans=no 31997 else 31998 ans=yes 31999 fi 32000 ;; 32001 *) 32002 ans=yes 32003 ;; 32004 esac 32005 ;; 32006 *-*-solaris2.7) 32007 unamev=`uname -v` 32008 case "$unamev" in 32009 Generic_106541-*) 32010 old_IFS="$IFS" 32011 IFS="-" 32012 set $unamev 32013 IFS="$old_IFS" 32014 if test "$2" -ge 07 32015 then 32016 # Generic_106541-07 and higher 32017 ans=no 32018 else 32019 ans=yes 32020 fi 32021 ;; 32022 *) 32023 ans=yes 32024 ;; 32025 esac 32026 ;; 32027 *) 32028 ans=no 32029 ;; 32030esac 32031 32032# Check whether --enable-kernel-fll-bug was given. 32033if test "${enable_kernel_fll_bug+set}" = set; then : 32034 enableval=$enable_kernel_fll_bug; ans=$enableval 32035 32036fi 32037 32038 32039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32040$as_echo "$ans" >&6; } 32041 32042case "$ans" in 32043 yes) 32044 32045$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 32046 32047esac 32048 32049 32050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 32051$as_echo_n "checking if we want new session key behavior... " >&6; } 32052# Check whether --enable-bug1243-fix was given. 32053if test "${enable_bug1243_fix+set}" = set; then : 32054 enableval=$enable_bug1243_fix; ans=$enableval 32055else 32056 ans=yes 32057 32058fi 32059 32060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32061$as_echo "$ans" >&6; } 32062case "$ans" in 32063 no) 32064 32065$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 32066 32067esac 32068 32069 32070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5 32071$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; } 32072# Check whether --enable-bug3020-fix was given. 32073if test "${enable_bug3020_fix+set}" = set; then : 32074 enableval=$enable_bug3020_fix; ans=$enableval 32075else 32076 ans=yes 32077 32078fi 32079 32080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32081$as_echo "$ans" >&6; } 32082case "$ans" in 32083 yes) 32084 32085$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h 32086 32087esac 32088 32089 32090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5 32091$as_echo_n "checking if we want correct mode7 fudgetime2 behavior... " >&6; } 32092# Check whether --enable-bug3527-fix was given. 32093if test "${enable_bug3527_fix+set}" = set; then : 32094 enableval=$enable_bug3527_fix; ans=$enableval 32095else 32096 ans=yes 32097 32098fi 32099 32100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32101$as_echo "$ans" >&6; } 32102case "$ans" in 32103 no) 32104 32105$as_echo "#define DISABLE_BUG3527_FIX 1" >>confdefs.h 32106 32107esac 32108 32109 32110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 32111$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 32112 32113case "$host" in 32114 *-*-solaris2.[89]) 32115 ans=yes 32116 ;; 32117 *-*-solaris2.1[0-9]*) 32118 ans=yes 32119 ;; 32120 *) ans=no 32121 ;; 32122esac 32123 32124# Check whether --enable-irig-sawtooth was given. 32125if test "${enable_irig_sawtooth+set}" = set; then : 32126 enableval=$enable_irig_sawtooth; ans=$enableval 32127 32128fi 32129 32130 32131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32132$as_echo "$ans" >&6; } 32133 32134case "$ans" in 32135 yes) 32136 32137$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 32138 32139esac 32140 32141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 32142$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 32143# Check whether --enable-nist was given. 32144if test "${enable_nist+set}" = set; then : 32145 enableval=$enable_nist; ans=$enableval 32146else 32147 ans=no 32148 32149fi 32150 32151 32152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32153$as_echo "$ans" >&6; } 32154 32155case "$ans" in 32156 yes) 32157 32158$as_echo "#define LOCKCLOCK 1" >>confdefs.h 32159 ;; 32160esac 32161 32162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 32163$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 32164# Check whether --enable-ntp-signd was given. 32165if test "${enable_ntp_signd+set}" = set; then : 32166 enableval=$enable_ntp_signd; ans=$enableval 32167else 32168 ans=no 32169 32170fi 32171 32172 32173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32174$as_echo "$ans" >&6; } 32175 32176case "$ans" in 32177 no) 32178 ntp_signd_path= 32179 ;; 32180 yes) 32181 ntp_signd_path=/var/run/ntp_signd 32182 ;; 32183 *) 32184 ntp_signd_path="$ans" 32185esac 32186 32187case "$ntp_signd_path" in 32188 '') 32189 ;; 32190 *) 32191 32192$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h 32193 32194 32195cat >>confdefs.h <<_ACEOF 32196#define NTP_SIGND_PATH "$ntp_signd_path" 32197_ACEOF 32198 32199 ;; 32200esac 32201 32202for ac_header in libscf.h 32203do : 32204 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 32205if test "x$ac_cv_header_libscf_h" = xyes; then : 32206 cat >>confdefs.h <<_ACEOF 32207#define HAVE_LIBSCF_H 1 32208_ACEOF 32209 32210fi 32211 32212done 32213 32214LSCF= 32215case "$ac_cv_header_libscf_h" in 32216 yes) 32217 LSCF='-lscf' 32218esac 32219 32220 32221 32222 32223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 32224$as_echo_n "checking for struct sockaddr_storage... " >&6; } 32225if ${ntp_cv_sockaddr_storage+:} false; then : 32226 $as_echo_n "(cached) " >&6 32227else 32228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32229/* end confdefs.h. */ 32230 32231 #ifdef HAVE_SYS_TYPES_H 32232 # include <sys/types.h> 32233 #endif 32234 #ifdef HAVE_SYS_SOCKET_H 32235 # include <sys/socket.h> 32236 #endif 32237 #ifdef HAVE_NETINET_IN_H 32238 # include <netinet/in.h> 32239 #endif 32240 32241int 32242main () 32243{ 32244 32245 struct sockaddr_storage n; 32246 32247 32248 ; 32249 return 0; 32250} 32251_ACEOF 32252if ac_fn_c_try_compile "$LINENO"; then : 32253 ntp_cv_sockaddr_storage=yes 32254else 32255 ntp_cv_sockaddr_storage=no 32256 32257fi 32258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32259 32260fi 32261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 32262$as_echo "$ntp_cv_sockaddr_storage" >&6; } 32263case "$ntp_cv_sockaddr_storage" in 32264 yes) 32265 32266$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 32267 32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 32269$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 32270if ${ntp_cv_have___ss_family+:} false; then : 32271 $as_echo_n "(cached) " >&6 32272else 32273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32274/* end confdefs.h. */ 32275 32276 #ifdef HAVE_SYS_TYPES_H 32277 # include <sys/types.h> 32278 #endif 32279 #ifdef HAVE_SYS_SOCKET_H 32280 # include <sys/socket.h> 32281 #endif 32282 #ifdef HAVE_NETINET_IN_H 32283 # include <netinet/in.h> 32284 #endif 32285 32286int 32287main () 32288{ 32289 32290 struct sockaddr_storage s; 32291 s.__ss_family = 1; 32292 32293 32294 ; 32295 return 0; 32296} 32297_ACEOF 32298if ac_fn_c_try_compile "$LINENO"; then : 32299 ntp_cv_have___ss_family=yes 32300else 32301 ntp_cv_have___ss_family=no 32302 32303fi 32304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32305 32306fi 32307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 32308$as_echo "$ntp_cv_have___ss_family" >&6; } 32309 case "$ntp_cv_have___ss_family" in 32310 yes) 32311 32312$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 32313 32314 esac 32315 32316esac 32317 32318 32319# 32320# Look for in_port_t. 32321# 32322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 32323$as_echo_n "checking for in_port_t... " >&6; } 32324if ${isc_cv_have_in_port_t+:} false; then : 32325 $as_echo_n "(cached) " >&6 32326else 32327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32328/* end confdefs.h. */ 32329 32330 #include <sys/types.h> 32331 #include <netinet/in.h> 32332 32333int 32334main () 32335{ 32336 32337 in_port_t port = 25; 32338 return (0); 32339 32340 32341 ; 32342 return 0; 32343} 32344_ACEOF 32345if ac_fn_c_try_compile "$LINENO"; then : 32346 isc_cv_have_in_port_t=yes 32347else 32348 isc_cv_have_in_port_t=no 32349 32350fi 32351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32352 32353fi 32354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 32355$as_echo "$isc_cv_have_in_port_t" >&6; } 32356case "$isc_cv_have_in_port_t" in 32357 no) 32358 32359$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 32360 32361esac 32362 32363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 32364$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 32365if ${ntp_cv_getsockname_socklen_type+:} false; then : 32366 $as_echo_n "(cached) " >&6 32367else 32368 32369 getsockname_socklen_type_found=no 32370 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 32371 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 32372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32373/* end confdefs.h. */ 32374 32375 #ifdef HAVE_SYS_TYPES_H 32376 # include <sys/types.h> 32377 #endif 32378 #ifdef HAVE_SYS_SOCKET_H 32379 # include <sys/socket.h> 32380 #endif 32381 32382int 32383main () 32384{ 32385 32386 extern 32387 getsockname(int, $getsockname_arg2, 32388 $ntp_cv_getsockname_socklen_type *); 32389 32390 32391 ; 32392 return 0; 32393} 32394_ACEOF 32395if ac_fn_c_try_compile "$LINENO"; then : 32396 getsockname_socklen_type_found=yes ; break 2 32397fi 32398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32399 done 32400 done 32401 case "$getsockname_socklen_type_found" in 32402 no) 32403 ntp_cv_getsockname_socklen_type='socklen_t' 32404 esac 32405 { getsockname_arg2=; unset getsockname_arg2;} 32406 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 32407 32408 32409fi 32410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 32411$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 32412 32413cat >>confdefs.h <<_ACEOF 32414#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 32415_ACEOF 32416 32417 32418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 32419$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 32420if ${isc_cv_platform_havesalen+:} false; then : 32421 $as_echo_n "(cached) " >&6 32422else 32423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32424/* end confdefs.h. */ 32425 32426 #include <sys/types.h> 32427 #include <sys/socket.h> 32428 32429int 32430main () 32431{ 32432 32433 extern struct sockaddr *ps; 32434 return ps->sa_len; 32435 32436 32437 ; 32438 return 0; 32439} 32440_ACEOF 32441if ac_fn_c_try_compile "$LINENO"; then : 32442 isc_cv_platform_havesalen=yes 32443else 32444 isc_cv_platform_havesalen=no 32445 32446fi 32447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32448 32449fi 32450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 32451$as_echo "$isc_cv_platform_havesalen" >&6; } 32452case "$isc_cv_platform_havesalen" in 32453 yes) 32454 32455$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 32456 32457esac 32458 32459# Check whether --enable-ipv6 was given. 32460if test "${enable_ipv6+set}" = set; then : 32461 enableval=$enable_ipv6; 32462fi 32463 32464 32465case "$enable_ipv6" in 32466 yes|''|autodetect) 32467 case "$host" in 32468 powerpc-ibm-aix4*) 32469 ;; 32470 *) 32471 32472$as_echo "#define WANT_IPV6 1" >>confdefs.h 32473 32474 ;; 32475 esac 32476 ;; 32477 no) 32478 ;; 32479esac 32480 32481 32482case "$host" in 32483 *-*-darwin*) 32484 32485$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 32486 32487esac 32488 32489 32490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 32491$as_echo_n "checking for IPv6 structures... " >&6; } 32492if ${isc_cv_found_ipv6+:} false; then : 32493 $as_echo_n "(cached) " >&6 32494else 32495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32496/* end confdefs.h. */ 32497 32498 #include <sys/types.h> 32499 #include <sys/socket.h> 32500 #include <netinet/in.h> 32501 32502int 32503main () 32504{ 32505 32506 struct sockaddr_in6 sin6; 32507 32508 32509 ; 32510 return 0; 32511} 32512_ACEOF 32513if ac_fn_c_try_compile "$LINENO"; then : 32514 isc_cv_found_ipv6=yes 32515else 32516 isc_cv_found_ipv6=no 32517 32518fi 32519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32520 32521fi 32522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 32523$as_echo "$isc_cv_found_ipv6" >&6; } 32524 32525# 32526# See whether IPv6 support is provided via a Kame add-on. 32527# This is done before other IPv6 linking tests so LIBS is properly set. 32528# 32529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 32530$as_echo_n "checking for Kame IPv6 support... " >&6; } 32531 32532# Check whether --with-kame was given. 32533if test "${with_kame+set}" = set; then : 32534 withval=$with_kame; use_kame="$withval" 32535else 32536 use_kame="no" 32537 32538fi 32539 32540case "$use_kame" in 32541 no) 32542 ;; 32543 yes) 32544 kame_path=/usr/local/v6 32545 ;; 32546 *) 32547 kame_path="$use_kame" 32548 ;; 32549esac 32550case "$use_kame" in 32551 no) 32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32553$as_echo "no" >&6; } 32554 ;; 32555 *) 32556 if test -f $kame_path/lib/libinet6.a; then 32557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 32558$as_echo "$kame_path/lib/libinet6.a" >&6; } 32559 LIBS="-L$kame_path/lib -linet6 $LIBS" 32560 else 32561 as_fn_error $? "$kame_path/lib/libinet6.a not found. 32562 32563Please choose the proper path with the following command: 32564 32565 configure --with-kame=PATH 32566" "$LINENO" 5 32567 fi 32568 ;; 32569esac 32570 32571# 32572# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 32573# Including it on Kame-using platforms is very bad, though, because 32574# Kame uses #error against direct inclusion. So include it on only 32575# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 32576# This is done before the in6_pktinfo check because that's what 32577# netinet6/in6.h is needed for. 32578# 32579case "$host" in 32580 *-bsdi4.[01]*) 32581 32582$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 32583 32584 isc_netinet6in6_hack="#include <netinet6/in6.h>" 32585 ;; 32586 *) 32587 isc_netinet6in6_hack="" 32588 ;; 32589esac 32590 32591# 32592# This is similar to the netinet6/in6.h issue. 32593# 32594case "$host" in 32595 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 32596 32597$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 32598 32599 isc_netinetin6_hack="#include <netinet/in6.h>" 32600 ;; 32601 *) 32602 isc_netinetin6_hack="" 32603 ;; 32604esac 32605 32606 32607case "$isc_cv_found_ipv6" in 32608 yes) 32609 32610$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 32611 32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 32613$as_echo_n "checking for in6_pktinfo... " >&6; } 32614if ${isc_cv_have_in6_pktinfo+:} false; then : 32615 $as_echo_n "(cached) " >&6 32616else 32617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32618/* end confdefs.h. */ 32619 32620 #include <sys/types.h> 32621 #include <sys/socket.h> 32622 #include <netinet/in.h> 32623 $isc_netinetin6_hack 32624 $isc_netinet6in6_hack 32625 32626int 32627main () 32628{ 32629 32630 struct in6_pktinfo xyzzy; 32631 32632 32633 ; 32634 return 0; 32635} 32636_ACEOF 32637if ac_fn_c_try_compile "$LINENO"; then : 32638 isc_cv_have_in6_pktinfo=yes 32639else 32640 isc_cv_have_in6_pktinfo=no 32641 32642fi 32643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32644 32645fi 32646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 32647$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 32648 case "$isc_cv_have_in6_pktinfo" in 32649 yes) 32650 32651$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 32652 32653 esac 32654 32655 32656 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 32658$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 32659if ${isc_cv_have_sin6_scope_id+:} false; then : 32660 $as_echo_n "(cached) " >&6 32661else 32662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32663/* end confdefs.h. */ 32664 32665 #include <sys/types.h> 32666 #include <sys/socket.h> 32667 #include <netinet/in.h> 32668 $isc_netinetin6_hack 32669 $isc_netinet6in6_hack 32670 32671int 32672main () 32673{ 32674 32675 struct sockaddr_in6 xyzzy; 32676 xyzzy.sin6_scope_id = 0; 32677 32678 32679 ; 32680 return 0; 32681} 32682_ACEOF 32683if ac_fn_c_try_compile "$LINENO"; then : 32684 isc_cv_have_sin6_scope_id=yes 32685else 32686 isc_cv_have_sin6_scope_id=no 32687 32688fi 32689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32690 32691fi 32692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 32693$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 32694 32695 case "$isc_cv_have_sin6_scope_id" in 32696 yes) 32697 32698$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 32699 32700 esac 32701esac 32702 32703 32704# We need this check run even without isc_cv_found_ipv6=yes 32705 32706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 32707$as_echo_n "checking for in6addr_any... " >&6; } 32708if ${isc_cv_in6addr_any_links+:} false; then : 32709 $as_echo_n "(cached) " >&6 32710else 32711 32712 SAVED_LIBS="$LIBS" 32713 LIBS="$LDADD_LIBNTP $LIBS" 32714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32715/* end confdefs.h. */ 32716$ac_includes_default 32717 #include <sys/socket.h> 32718 #include <netinet/in.h> 32719 $isc_netinetin6_hack 32720 $isc_netinet6in6_hack 32721 32722int 32723main () 32724{ 32725 32726 printf("%x", in6addr_any.s6_addr[15]); 32727 32728 32729 ; 32730 return 0; 32731} 32732_ACEOF 32733if ac_fn_c_try_link "$LINENO"; then : 32734 isc_cv_in6addr_any_links=yes 32735else 32736 isc_cv_in6addr_any_links=no 32737 32738fi 32739rm -f core conftest.err conftest.$ac_objext \ 32740 conftest$ac_exeext conftest.$ac_ext 32741 LIBS="$SAVED_LIBS" 32742 { SAVED_LIBS=; unset SAVED_LIBS;} 32743 32744 32745fi 32746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 32747$as_echo "$isc_cv_in6addr_any_links" >&6; } 32748 32749case "$isc_cv_in6addr_any_links" in 32750 no) 32751 32752$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 32753 32754esac 32755 32756 32757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 32758$as_echo_n "checking for struct if_laddrconf... " >&6; } 32759if ${isc_cv_struct_if_laddrconf+:} false; then : 32760 $as_echo_n "(cached) " >&6 32761else 32762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32763/* end confdefs.h. */ 32764 32765 #include <sys/types.h> 32766 #include <net/if6.h> 32767 32768int 32769main () 32770{ 32771 32772 struct if_laddrconf a; 32773 32774 32775 ; 32776 return 0; 32777} 32778_ACEOF 32779if ac_fn_c_try_compile "$LINENO"; then : 32780 isc_cv_struct_if_laddrconf=yes 32781else 32782 isc_cv_struct_if_laddrconf=no 32783 32784fi 32785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32786 32787fi 32788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 32789$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 32790 32791case "$isc_cv_struct_if_laddrconf" in 32792 yes) 32793 32794$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 32795 32796esac 32797 32798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 32799$as_echo_n "checking for struct if_laddrreq... " >&6; } 32800if ${isc_cv_struct_if_laddrreq+:} false; then : 32801 $as_echo_n "(cached) " >&6 32802else 32803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32804/* end confdefs.h. */ 32805 32806 #include <sys/types.h> 32807 #include <net/if6.h> 32808 32809int 32810main () 32811{ 32812 32813 struct if_laddrreq a; 32814 32815 32816 ; 32817 return 0; 32818} 32819_ACEOF 32820if ac_fn_c_try_compile "$LINENO"; then : 32821 isc_cv_struct_if_laddrreq=yes 32822else 32823 isc_cv_struct_if_laddrreq=no 32824 32825fi 32826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32827 32828fi 32829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 32830$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 32831 32832case "$isc_cv_struct_if_laddrreq" in 32833 yes) 32834 32835$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 32836 32837esac 32838 32839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 32840$as_echo_n "checking for multicast IP support... " >&6; } 32841if ${ntp_cv_multicast+:} false; then : 32842 $as_echo_n "(cached) " >&6 32843else 32844 32845 ntp_cv_multicast=no 32846 case "$host" in 32847 i386-sequent-sysv4) 32848 ;; 32849 *) 32850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32851/* end confdefs.h. */ 32852 32853 #ifdef HAVE_NETINET_IN_H 32854 # include <netinet/in.h> 32855 #endif 32856 32857int 32858main () 32859{ 32860 32861 struct ip_mreq ipmr; 32862 ipmr.imr_interface.s_addr = 0; 32863 32864 32865 ; 32866 return 0; 32867} 32868_ACEOF 32869if ac_fn_c_try_compile "$LINENO"; then : 32870 ntp_cv_multicast=yes 32871fi 32872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32873 ;; 32874 esac 32875 32876 32877fi 32878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 32879$as_echo "$ntp_cv_multicast" >&6; } 32880case "$ntp_cv_multicast" in 32881 yes) 32882 32883$as_echo "#define MCAST 1" >>confdefs.h 32884 32885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 32886$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 32887if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 32888 $as_echo_n "(cached) " >&6 32889else 32890 32891 case "$host" in 32892 *-*-netbsd*|*-*-*linux*) 32893 ntp_cv_typeof_ip_multicast_loop=u_int 32894 ;; 32895 *) 32896 ntp_cv_typeof_ip_multicast_loop=u_char 32897 ;; 32898 esac 32899 32900 32901fi 32902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 32903$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 32904 32905cat >>confdefs.h <<_ACEOF 32906#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 32907_ACEOF 32908 32909esac 32910 32911# Check whether --enable-getifaddrs was given. 32912if test "${enable_getifaddrs+set}" = set; then : 32913 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 32914else 32915 want_getifaddrs="yes" 32916 32917fi 32918 32919 32920case $want_getifaddrs in 32921 glibc) 32922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 32923$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 32924esac 32925case $want_getifaddrs in 32926 no) 32927 ;; 32928 *) 32929 SAVED_LIBS="$LIBS" 32930 LIBS="$LDADD_LIBNTP $LIBS" 32931 for ac_func in getifaddrs 32932do : 32933 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 32934if test "x$ac_cv_func_getifaddrs" = xyes; then : 32935 cat >>confdefs.h <<_ACEOF 32936#define HAVE_GETIFADDRS 1 32937_ACEOF 32938 32939fi 32940done 32941 32942 LIBS="$SAVED_LIBS" 32943 { SAVED_LIBS=; unset SAVED_LIBS;} 32944 ;; 32945esac 32946 32947# 32948# Check for if_nametoindex() for IPv6 scoped addresses support 32949# 32950case "$host" in 32951 *-hp-hpux*) 32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 32953$as_echo_n "checking for library containing if_nametoindex... " >&6; } 32954if ${ac_cv_search_if_nametoindex+:} false; then : 32955 $as_echo_n "(cached) " >&6 32956else 32957 ac_func_search_save_LIBS=$LIBS 32958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32959/* end confdefs.h. */ 32960 32961/* Override any GCC internal prototype to avoid an error. 32962 Use char because int might match the return type of a GCC 32963 builtin and then its argument prototype would still apply. */ 32964#ifdef __cplusplus 32965extern "C" 32966#endif 32967char if_nametoindex (); 32968int 32969main () 32970{ 32971return if_nametoindex (); 32972 ; 32973 return 0; 32974} 32975_ACEOF 32976for ac_lib in '' ipv6; do 32977 if test -z "$ac_lib"; then 32978 ac_res="none required" 32979 else 32980 ac_res=-l$ac_lib 32981 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32982 fi 32983 if ac_fn_c_try_link "$LINENO"; then : 32984 ac_cv_search_if_nametoindex=$ac_res 32985fi 32986rm -f core conftest.err conftest.$ac_objext \ 32987 conftest$ac_exeext 32988 if ${ac_cv_search_if_nametoindex+:} false; then : 32989 break 32990fi 32991done 32992if ${ac_cv_search_if_nametoindex+:} false; then : 32993 32994else 32995 ac_cv_search_if_nametoindex=no 32996fi 32997rm conftest.$ac_ext 32998LIBS=$ac_func_search_save_LIBS 32999fi 33000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 33001$as_echo "$ac_cv_search_if_nametoindex" >&6; } 33002ac_res=$ac_cv_search_if_nametoindex 33003if test "$ac_res" != no; then : 33004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33005 33006fi 33007 33008esac 33009SAVED_LIBS="$LIBS" 33010LIBS="$LDADD_LIBNTP $LIBS" 33011for ac_func in if_nametoindex 33012do : 33013 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 33014if test "x$ac_cv_func_if_nametoindex" = xyes; then : 33015 cat >>confdefs.h <<_ACEOF 33016#define HAVE_IF_NAMETOINDEX 1 33017_ACEOF 33018 33019fi 33020done 33021 33022LIBS="$SAVED_LIBS" 33023{ SAVED_LIBS=; unset SAVED_LIBS;} 33024case "$ac_cv_func_if_nametoindex" in 33025 yes) 33026 33027$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 33028 33029esac 33030 33031 33032 33033 33034# 33035# Look for a sysctl call to get the list of network interfaces. 33036# 33037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 33038$as_echo_n "checking for interface list sysctl... " >&6; } 33039if ${ntp_cv_iflist_sysctl+:} false; then : 33040 $as_echo_n "(cached) " >&6 33041else 33042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33043/* end confdefs.h. */ 33044 33045 #include <sys/param.h> 33046 #include <sys/sysctl.h> 33047 #include <sys/socket.h> 33048 #ifndef NET_RT_IFLIST 33049 # error 33050 #endif 33051 33052_ACEOF 33053if ac_fn_c_try_cpp "$LINENO"; then : 33054 ntp_cv_iflist_sysctl=yes 33055else 33056 ntp_cv_iflist_sysctl=no 33057 33058fi 33059rm -f conftest.err conftest.i conftest.$ac_ext 33060 33061fi 33062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5 33063$as_echo "$ntp_cv_iflist_sysctl" >&6; } 33064case "$ntp_cv_iflist_sysctl" in 33065 yes) 33066 33067$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 33068 33069esac 33070 33071### 33072 33073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 33074$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 33075# Check whether --enable-saveconfig was given. 33076if test "${enable_saveconfig+set}" = set; then : 33077 enableval=$enable_saveconfig; ntp_ok=$enableval 33078else 33079 ntp_ok=yes 33080 33081fi 33082 33083ntp_saveconfig_enabled=0 33084case "$ntp_ok" in 33085 yes) 33086 ntp_saveconfig_enabled=1 33087 33088$as_echo "#define SAVECONFIG 1" >>confdefs.h 33089 33090 ;; 33091esac 33092 if test x$ntp_saveconfig_enabled = x1; then 33093 SAVECONFIG_ENABLED_TRUE= 33094 SAVECONFIG_ENABLED_FALSE='#' 33095else 33096 SAVECONFIG_ENABLED_TRUE='#' 33097 SAVECONFIG_ENABLED_FALSE= 33098fi 33099 33100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33101$as_echo "$ntp_ok" >&6; } 33102 33103### 33104 33105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5 33106$as_echo_n "checking if we want the experimental leap smear code... " >&6; } 33107# Check whether --enable-leap-smear was given. 33108if test "${enable_leap_smear+set}" = set; then : 33109 enableval=$enable_leap_smear; ntp_ok=$enableval 33110else 33111 ntp_ok=no 33112 33113fi 33114 33115ntp_leap_smear_enabled=0 33116case "$ntp_ok" in 33117 yes) 33118 ntp_leap_smear_enabled=1 33119 33120$as_echo "#define LEAP_SMEAR 1" >>confdefs.h 33121 33122 33123 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0" 33124 ;; 33125esac 33126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33127$as_echo "$ntp_ok" >&6; } 33128 33129### 33130 33131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5 33132$as_echo_n "checking if we want dynamic interleave support... " >&6; } 33133# Check whether --enable-dynamic-interleave was given. 33134if test "${enable_dynamic_interleave+set}" = set; then : 33135 enableval=$enable_dynamic_interleave; ntp_ok=$enableval 33136else 33137 ntp_ok=no 33138 33139fi 33140 33141ntp_dynamic_interleave=0 33142case "$ntp_ok" in 33143 yes) 33144 ntp_dynamic_interleave=1 33145 ;; 33146esac 33147 33148cat >>confdefs.h <<_ACEOF 33149#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave 33150_ACEOF 33151 33152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33153$as_echo "$ntp_ok" >&6; } 33154 33155 33156# We may not need have_unity 33157have_unity=false 33158# Extract the first word of "ruby", so it can be a program name with args. 33159set dummy ruby; ac_word=$2 33160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33161$as_echo_n "checking for $ac_word... " >&6; } 33162if ${ac_cv_path_PATH_RUBY+:} false; then : 33163 $as_echo_n "(cached) " >&6 33164else 33165 case $PATH_RUBY in 33166 [\\/]* | ?:[\\/]*) 33167 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 33168 ;; 33169 *) 33170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33171for as_dir in $PATH 33172do 33173 IFS=$as_save_IFS 33174 test -z "$as_dir" && as_dir=. 33175 for ac_exec_ext in '' $ac_executable_extensions; do 33176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33177 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 33178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33179 break 2 33180 fi 33181done 33182 done 33183IFS=$as_save_IFS 33184 33185 ;; 33186esac 33187fi 33188PATH_RUBY=$ac_cv_path_PATH_RUBY 33189if test -n "$PATH_RUBY"; then 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 33191$as_echo "$PATH_RUBY" >&6; } 33192else 33193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33194$as_echo "no" >&6; } 33195fi 33196 33197 33198case "$PATH_RUBY" in 33199 /*) 33200 have_unity=true 33201 ;; 33202 *) PATH_RUBY="false" 33203 ;; 33204esac 33205# We may not need UNITYBUILD_AVAILABLE 33206 if $have_unity; then 33207 UNITYBUILD_AVAILABLE_TRUE= 33208 UNITYBUILD_AVAILABLE_FALSE='#' 33209else 33210 UNITYBUILD_AVAILABLE_TRUE='#' 33211 UNITYBUILD_AVAILABLE_FALSE= 33212fi 33213 33214 33215 33216 33217 33218gta=false 33219 33220# Check whether --with-gtest was given. 33221if test "${with_gtest+set}" = set; then : 33222 withval=$with_gtest; try_gtest=$withval 33223else 33224 try_gtest=yes 33225 33226fi 33227 33228case "$try_gtest" in 33229 yes) 33230 # Extract the first word of "gtest-config", so it can be a program name with args. 33231set dummy gtest-config; ac_word=$2 33232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33233$as_echo_n "checking for $ac_word... " >&6; } 33234if ${ac_cv_path_GTEST_CONFIG+:} false; then : 33235 $as_echo_n "(cached) " >&6 33236else 33237 case $GTEST_CONFIG in 33238 [\\/]* | ?:[\\/]*) 33239 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 33240 ;; 33241 *) 33242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33243for as_dir in $PATH 33244do 33245 IFS=$as_save_IFS 33246 test -z "$as_dir" && as_dir=. 33247 for ac_exec_ext in '' $ac_executable_extensions; do 33248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33249 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 33250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33251 break 2 33252 fi 33253done 33254 done 33255IFS=$as_save_IFS 33256 33257 ;; 33258esac 33259fi 33260GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 33261if test -n "$GTEST_CONFIG"; then 33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 33263$as_echo "$GTEST_CONFIG" >&6; } 33264else 33265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33266$as_echo "no" >&6; } 33267fi 33268 33269 33270 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 33271 case x${GTEST_CONFIG} in 33272 x) ;; 33273 *) 33274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 33275$as_echo_n "checking gtest version... " >&6; } 33276 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 33277 case "$gtest_version_test" in 33278 toolow*) 33279 ;; 33280 *) 33281 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 33282 GTEST_LIBS=`$GTEST_CONFIG --libs` 33283 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 33284 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 33285 33286 33287 33288 33289 gta=true 33290 ;; 33291 esac 33292 gtest_version=`$GTEST_CONFIG --version` 33293 case "$gta" in 33294 true) 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 33296$as_echo "($gtest_version) ok" >&6; } 33297 ;; 33298 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 33299$as_echo "($gtest_version) not ok" >&6; } 33300 ;; 33301 esac 33302 { gtest_version_test=; unset gtest_version_test;} 33303 { gtest_version=; unset gtest_version;} 33304 esac 33305esac 33306 if $gta; then 33307 GTEST_AVAILABLE_TRUE= 33308 GTEST_AVAILABLE_FALSE='#' 33309else 33310 GTEST_AVAILABLE_TRUE='#' 33311 GTEST_AVAILABLE_FALSE= 33312fi 33313 33314 33315 33316 33317 33318case "$build" in 33319 $host) cross=0 ;; 33320 *) cross=1 ;; 33321esac 33322 33323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 33324$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 33325# Check whether --enable-problem-tests was given. 33326if test "${enable_problem_tests+set}" = set; then : 33327 enableval=$enable_problem_tests; ntp_ept=$enableval 33328else 33329 ntp_ept=yes 33330 33331fi 33332 33333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5 33334$as_echo "$ntp_ept" >&6; } 33335 33336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5 33337$as_echo_n "checking if we can run test-ntp_restrict... " >&6; } 33338ntp_test_ntp_restrict="no" 33339case "$ntp_ept:$cross:$host" in 33340 no:0:*-*-freebsd6.4) ;; 33341 no:0:*-*-hpux11.23*) ;; 33342 no:0:*-*-solaris*) ;; 33343 *) ntp_test_ntp_restrict="yes" ;; 33344esac 33345case "$ntp_cv_gc_sections_runs" in 33346 no) ntp_test_ntp_restrict="no" ;; 33347 * ) ;; 33348esac 33349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5 33350$as_echo "$ntp_test_ntp_restrict" >&6; } 33351 if test x$ntp_test_ntp_restrict = xyes; then 33352 BUILD_TEST_NTP_RESTRICT_TRUE= 33353 BUILD_TEST_NTP_RESTRICT_FALSE='#' 33354else 33355 BUILD_TEST_NTP_RESTRICT_TRUE='#' 33356 BUILD_TEST_NTP_RESTRICT_FALSE= 33357fi 33358 33359 33360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5 33361$as_echo_n "checking if we can run test-ntp_scanner... " >&6; } 33362ntp_test_ntp_scanner="no" 33363case "$ntp_ept:$cross:$host" in 33364 no:0:*-*-freebsd6.4) ;; 33365 no:0:*-*-solaris*) ;; 33366 *) ntp_test_ntp_scanner="yes" ;; 33367esac 33368case "$ntp_cv_gc_sections_runs" in 33369 no) ntp_test_ntp_scanner="no" ;; 33370 * ) ;; 33371esac 33372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5 33373$as_echo "$ntp_test_ntp_scanner" >&6; } 33374 if test x$ntp_test_ntp_scanner = xyes; then 33375 BUILD_TEST_NTP_SCANNER_TRUE= 33376 BUILD_TEST_NTP_SCANNER_FALSE='#' 33377else 33378 BUILD_TEST_NTP_SCANNER_TRUE='#' 33379 BUILD_TEST_NTP_SCANNER_FALSE= 33380fi 33381 33382 33383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5 33384$as_echo_n "checking if we can run test-ntp_signd... " >&6; } 33385ntp_test_ntp_signd="no" 33386case "$ntp_ept:$cross:$host" in 33387 no:0:*-*-freebsd6.4) ;; 33388 no:0:*-*-solaris*) ;; 33389 *) ntp_test_ntp_signd="yes" ;; 33390esac 33391case "$ntp_cv_gc_sections_runs" in 33392 no) ntp_test_ntp_signd="no" ;; 33393 * ) ;; 33394esac 33395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5 33396$as_echo "$ntp_test_ntp_signd" >&6; } 33397 if test x$ntp_test_ntp_signd = xyes; then 33398 BUILD_TEST_NTP_SIGND_TRUE= 33399 BUILD_TEST_NTP_SIGND_FALSE='#' 33400else 33401 BUILD_TEST_NTP_SIGND_TRUE='#' 33402 BUILD_TEST_NTP_SIGND_FALSE= 33403fi 33404 33405 33406 33407 33408### 33409 33410ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h> 33411" 33412if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then : 33413 ac_have_decl=1 33414else 33415 ac_have_decl=0 33416fi 33417 33418cat >>confdefs.h <<_ACEOF 33419#define HAVE_DECL_SIGSETJMP $ac_have_decl 33420_ACEOF 33421ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h> 33422" 33423if test "x$ac_cv_have_decl_siglongjmp" = xyes; then : 33424 ac_have_decl=1 33425else 33426 ac_have_decl=0 33427fi 33428 33429cat >>confdefs.h <<_ACEOF 33430#define HAVE_DECL_SIGLONGJMP $ac_have_decl 33431_ACEOF 33432 33433 33434### 33435 33436 33437 prefix_NONE= 33438 exec_prefix_NONE= 33439 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33440 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33441 eval ac_define_dir="\"$sysconfdir\"" 33442 eval ac_define_dir="\"$ac_define_dir\"" 33443 NTP_KEYSDIR="$ac_define_dir" 33444 33445 33446cat >>confdefs.h <<_ACEOF 33447#define NTP_KEYSDIR "$ac_define_dir" 33448_ACEOF 33449 33450 test "$prefix_NONE" && prefix=NONE 33451 test "$exec_prefix_NONE" && exec_prefix=NONE 33452 33453 33454ac_config_files="$ac_config_files Makefile" 33455 33456ac_config_files="$ac_config_files adjtimed/Makefile" 33457 33458ac_config_files="$ac_config_files clockstuff/Makefile" 33459 33460ac_config_files="$ac_config_files include/Makefile" 33461 33462ac_config_files="$ac_config_files include/isc/Makefile" 33463 33464ac_config_files="$ac_config_files kernel/Makefile" 33465 33466ac_config_files="$ac_config_files kernel/sys/Makefile" 33467 33468ac_config_files="$ac_config_files libntp/Makefile" 33469 33470ac_config_files="$ac_config_files libparse/Makefile" 33471 33472ac_config_files="$ac_config_files ntpd/Makefile" 33473 33474ac_config_files="$ac_config_files ntpd/complete.conf" 33475 33476ac_config_files="$ac_config_files ntpdate/Makefile" 33477 33478ac_config_files="$ac_config_files ntpdc/Makefile" 33479 33480ac_config_files="$ac_config_files ntpdc/nl.pl" 33481 33482ac_config_files="$ac_config_files ntpq/Makefile" 33483 33484ac_config_files="$ac_config_files ntpsnmpd/Makefile" 33485 33486ac_config_files="$ac_config_files parseutil/Makefile" 33487 33488ac_config_files="$ac_config_files scripts/Makefile" 33489 33490ac_config_files="$ac_config_files scripts/build/Makefile" 33491 33492ac_config_files="$ac_config_files scripts/build/genAuthors" 33493 33494ac_config_files="$ac_config_files scripts/build/mkver" 33495 33496ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile" 33497 33498ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj" 33499 33500ac_config_files="$ac_config_files scripts/lib/Makefile" 33501 33502ac_config_files="$ac_config_files scripts/ntp-wait/Makefile" 33503 33504ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait" 33505 33506ac_config_files="$ac_config_files scripts/ntpsweep/Makefile" 33507 33508ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep" 33509 33510ac_config_files="$ac_config_files scripts/ntptrace/Makefile" 33511 33512ac_config_files="$ac_config_files scripts/ntptrace/ntptrace" 33513 33514ac_config_files="$ac_config_files scripts/ntpver" 33515 33516ac_config_files="$ac_config_files scripts/plot_summary" 33517 33518ac_config_files="$ac_config_files scripts/summary" 33519 33520ac_config_files="$ac_config_files scripts/update-leap/Makefile" 33521 33522ac_config_files="$ac_config_files scripts/update-leap/update-leap" 33523 33524ac_config_files="$ac_config_files tests/Makefile" 33525 33526ac_config_files="$ac_config_files tests/bug-2803/Makefile" 33527 33528ac_config_files="$ac_config_files tests/libntp/Makefile" 33529 33530ac_config_files="$ac_config_files tests/ntpd/Makefile" 33531 33532ac_config_files="$ac_config_files tests/ntpq/Makefile" 33533 33534ac_config_files="$ac_config_files tests/sandbox/Makefile" 33535 33536ac_config_files="$ac_config_files tests/sec-2853/Makefile" 33537 33538ac_config_files="$ac_config_files util/Makefile" 33539 33540 33541perllibdir="${datadir}/ntp/lib" 33542 33543 prefix_NONE= 33544 exec_prefix_NONE= 33545 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33546 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33547 eval ac_define_dir="\"$perllibdir\"" 33548 eval ac_define_dir="\"$ac_define_dir\"" 33549 PERLLIBDIR="$ac_define_dir" 33550 33551 33552cat >>confdefs.h <<_ACEOF 33553#define PERLLIBDIR "$ac_define_dir" 33554_ACEOF 33555 33556 test "$prefix_NONE" && prefix=NONE 33557 test "$exec_prefix_NONE" && exec_prefix=NONE 33558 33559 33560calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts" 33561 33562ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts" 33563 33564ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts" 33565 33566ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts" 33567 33568summary_opts="$srcdir/scripts/summary-opts" 33569 33570plot_summary_opts="$srcdir/scripts/plot_summary-opts" 33571 33572 33573 33574 33575subdirs="$subdirs sntp" 33576 33577 33578cat >confcache <<\_ACEOF 33579# This file is a shell script that caches the results of configure 33580# tests run on this system so they can be shared between configure 33581# scripts and configure runs, see configure's option --config-cache. 33582# It is not useful on other systems. If it contains results you don't 33583# want to keep, you may remove or edit it. 33584# 33585# config.status only pays attention to the cache file if you give it 33586# the --recheck option to rerun configure. 33587# 33588# `ac_cv_env_foo' variables (set or unset) will be overridden when 33589# loading this file, other *unset* `ac_cv_foo' will be assigned the 33590# following values. 33591 33592_ACEOF 33593 33594# The following way of writing the cache mishandles newlines in values, 33595# but we know of no workaround that is simple, portable, and efficient. 33596# So, we kill variables containing newlines. 33597# Ultrix sh set writes to stderr and can't be redirected directly, 33598# and sets the high bit in the cache file unless we assign to the vars. 33599( 33600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33601 eval ac_val=\$$ac_var 33602 case $ac_val in #( 33603 *${as_nl}*) 33604 case $ac_var in #( 33605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33606$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33607 esac 33608 case $ac_var in #( 33609 _ | IFS | as_nl) ;; #( 33610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33611 *) { eval $ac_var=; unset $ac_var;} ;; 33612 esac ;; 33613 esac 33614 done 33615 33616 (set) 2>&1 | 33617 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33618 *${as_nl}ac_space=\ *) 33619 # `set' does not quote correctly, so add quotes: double-quote 33620 # substitution turns \\\\ into \\, and sed turns \\ into \. 33621 sed -n \ 33622 "s/'/'\\\\''/g; 33623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33624 ;; #( 33625 *) 33626 # `set' quotes correctly as required by POSIX, so do not add quotes. 33627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33628 ;; 33629 esac | 33630 sort 33631) | 33632 sed ' 33633 /^ac_cv_env_/b end 33634 t clear 33635 :clear 33636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 33637 t end 33638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33639 :end' >>confcache 33640if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33641 if test -w "$cache_file"; then 33642 if test "x$cache_file" != "x/dev/null"; then 33643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33644$as_echo "$as_me: updating cache $cache_file" >&6;} 33645 if test ! -f "$cache_file" || test -h "$cache_file"; then 33646 cat confcache >"$cache_file" 33647 else 33648 case $cache_file in #( 33649 */* | ?:*) 33650 mv -f confcache "$cache_file"$$ && 33651 mv -f "$cache_file"$$ "$cache_file" ;; #( 33652 *) 33653 mv -f confcache "$cache_file" ;; 33654 esac 33655 fi 33656 fi 33657 else 33658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33659$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 33660 fi 33661fi 33662rm -f confcache 33663 33664test "x$prefix" = xNONE && prefix=$ac_default_prefix 33665# Let make expand exec_prefix. 33666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33667 33668DEFS=-DHAVE_CONFIG_H 33669 33670ac_libobjs= 33671ac_ltlibobjs= 33672U= 33673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33674 # 1. Remove the extension, and $U if already installed. 33675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 33677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33678 # will be set to the directory where LIBOBJS objects are built. 33679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33681done 33682LIBOBJS=$ac_libobjs 33683 33684LTLIBOBJS=$ac_ltlibobjs 33685 33686 33687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 33688$as_echo_n "checking that generated files are newer than configure... " >&6; } 33689 if test -n "$am_sleep_pid"; then 33690 # Hide warnings about reused PIDs. 33691 wait $am_sleep_pid 2>/dev/null 33692 fi 33693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 33694$as_echo "done" >&6; } 33695 if test -n "$EXEEXT"; then 33696 am__EXEEXT_TRUE= 33697 am__EXEEXT_FALSE='#' 33698else 33699 am__EXEEXT_TRUE='#' 33700 am__EXEEXT_FALSE= 33701fi 33702 33703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 33704 as_fn_error $? "conditional \"AMDEP\" was never defined. 33705Usually this means the macro was only invoked conditionally." "$LINENO" 5 33706fi 33707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 33708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 33709Usually this means the macro was only invoked conditionally." "$LINENO" 5 33710fi 33711 33712if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 33713 as_fn_error $? "conditional \"VPATH_HACK\" was never defined. 33714Usually this means the macro was only invoked conditionally." "$LINENO" 5 33715fi 33716if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 33717 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 33718Usually this means the macro was only invoked conditionally." "$LINENO" 5 33719fi 33720if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 33721 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 33722Usually this means the macro was only invoked conditionally." "$LINENO" 5 33723fi 33724if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 33725 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 33726Usually this means the macro was only invoked conditionally." "$LINENO" 5 33727fi 33728if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 33729 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 33730Usually this means the macro was only invoked conditionally." "$LINENO" 5 33731fi 33732if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 33733 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 33734Usually this means the macro was only invoked conditionally." "$LINENO" 5 33735fi 33736if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 33737 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 33738Usually this means the macro was only invoked conditionally." "$LINENO" 5 33739fi 33740if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 33741 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 33742Usually this means the macro was only invoked conditionally." "$LINENO" 5 33743fi 33744if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 33745 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 33746Usually this means the macro was only invoked conditionally." "$LINENO" 5 33747fi 33748if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 33749 as_fn_error $? "conditional \"PTHREADS\" was never defined. 33750Usually this means the macro was only invoked conditionally." "$LINENO" 5 33751fi 33752if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 33753 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 33754Usually this means the macro was only invoked conditionally." "$LINENO" 5 33755fi 33756if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 33757 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined. 33758Usually this means the macro was only invoked conditionally." "$LINENO" 5 33759fi 33760if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 33761 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 33762Usually this means the macro was only invoked conditionally." "$LINENO" 5 33763fi 33764if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 33765 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 33766Usually this means the macro was only invoked conditionally." "$LINENO" 5 33767fi 33768if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then 33769 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined. 33770Usually this means the macro was only invoked conditionally." "$LINENO" 5 33771fi 33772if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then 33773 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined. 33774Usually this means the macro was only invoked conditionally." "$LINENO" 5 33775fi 33776if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then 33777 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined. 33778Usually this means the macro was only invoked conditionally." "$LINENO" 5 33779fi 33780 33781: "${CONFIG_STATUS=./config.status}" 33782ac_write_fail=0 33783ac_clean_files_save=$ac_clean_files 33784ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33785{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33787as_write_fail=0 33788cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33789#! $SHELL 33790# Generated by $as_me. 33791# Run this file to recreate the current configuration. 33792# Compiler output produced by configure, useful for debugging 33793# configure, is in config.log if it exists. 33794 33795debug=false 33796ac_cs_recheck=false 33797ac_cs_silent=false 33798 33799SHELL=\${CONFIG_SHELL-$SHELL} 33800export SHELL 33801_ASEOF 33802cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33803## -------------------- ## 33804## M4sh Initialization. ## 33805## -------------------- ## 33806 33807# Be more Bourne compatible 33808DUALCASE=1; export DUALCASE # for MKS sh 33809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33810 emulate sh 33811 NULLCMD=: 33812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33813 # is contrary to our usage. Disable this feature. 33814 alias -g '${1+"$@"}'='"$@"' 33815 setopt NO_GLOB_SUBST 33816else 33817 case `(set -o) 2>/dev/null` in #( 33818 *posix*) : 33819 set -o posix ;; #( 33820 *) : 33821 ;; 33822esac 33823fi 33824 33825 33826as_nl=' 33827' 33828export as_nl 33829# Printing a long string crashes Solaris 7 /usr/bin/printf. 33830as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33833# Prefer a ksh shell builtin over an external printf program on Solaris, 33834# but without wasting forks for bash or zsh. 33835if test -z "$BASH_VERSION$ZSH_VERSION" \ 33836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33837 as_echo='print -r --' 33838 as_echo_n='print -rn --' 33839elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33840 as_echo='printf %s\n' 33841 as_echo_n='printf %s' 33842else 33843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33845 as_echo_n='/usr/ucb/echo -n' 33846 else 33847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33848 as_echo_n_body='eval 33849 arg=$1; 33850 case $arg in #( 33851 *"$as_nl"*) 33852 expr "X$arg" : "X\\(.*\\)$as_nl"; 33853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33854 esac; 33855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33856 ' 33857 export as_echo_n_body 33858 as_echo_n='sh -c $as_echo_n_body as_echo' 33859 fi 33860 export as_echo_body 33861 as_echo='sh -c $as_echo_body as_echo' 33862fi 33863 33864# The user is always right. 33865if test "${PATH_SEPARATOR+set}" != set; then 33866 PATH_SEPARATOR=: 33867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33869 PATH_SEPARATOR=';' 33870 } 33871fi 33872 33873 33874# IFS 33875# We need space, tab and new line, in precisely that order. Quoting is 33876# there to prevent editors from complaining about space-tab. 33877# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33878# splitting by setting IFS to empty value.) 33879IFS=" "" $as_nl" 33880 33881# Find who we are. Look in the path if we contain no directory separator. 33882as_myself= 33883case $0 in #(( 33884 *[\\/]* ) as_myself=$0 ;; 33885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33886for as_dir in $PATH 33887do 33888 IFS=$as_save_IFS 33889 test -z "$as_dir" && as_dir=. 33890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33891 done 33892IFS=$as_save_IFS 33893 33894 ;; 33895esac 33896# We did not find ourselves, most probably we were run as `sh COMMAND' 33897# in which case we are not to be found in the path. 33898if test "x$as_myself" = x; then 33899 as_myself=$0 33900fi 33901if test ! -f "$as_myself"; then 33902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33903 exit 1 33904fi 33905 33906# Unset variables that we do not need and which cause bugs (e.g. in 33907# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33908# suppresses any "Segmentation fault" message there. '((' could 33909# trigger a bug in pdksh 5.2.14. 33910for as_var in BASH_ENV ENV MAIL MAILPATH 33911do eval test x\${$as_var+set} = xset \ 33912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33913done 33914PS1='$ ' 33915PS2='> ' 33916PS4='+ ' 33917 33918# NLS nuisances. 33919LC_ALL=C 33920export LC_ALL 33921LANGUAGE=C 33922export LANGUAGE 33923 33924# CDPATH. 33925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33926 33927 33928# as_fn_error STATUS ERROR [LINENO LOG_FD] 33929# ---------------------------------------- 33930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33932# script with STATUS, using 1 if that was 0. 33933as_fn_error () 33934{ 33935 as_status=$1; test $as_status -eq 0 && as_status=1 33936 if test "$4"; then 33937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33939 fi 33940 $as_echo "$as_me: error: $2" >&2 33941 as_fn_exit $as_status 33942} # as_fn_error 33943 33944 33945# as_fn_set_status STATUS 33946# ----------------------- 33947# Set $? to STATUS, without forking. 33948as_fn_set_status () 33949{ 33950 return $1 33951} # as_fn_set_status 33952 33953# as_fn_exit STATUS 33954# ----------------- 33955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33956as_fn_exit () 33957{ 33958 set +e 33959 as_fn_set_status $1 33960 exit $1 33961} # as_fn_exit 33962 33963# as_fn_unset VAR 33964# --------------- 33965# Portably unset VAR. 33966as_fn_unset () 33967{ 33968 { eval $1=; unset $1;} 33969} 33970as_unset=as_fn_unset 33971# as_fn_append VAR VALUE 33972# ---------------------- 33973# Append the text in VALUE to the end of the definition contained in VAR. Take 33974# advantage of any shell optimizations that allow amortized linear growth over 33975# repeated appends, instead of the typical quadratic growth present in naive 33976# implementations. 33977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33978 eval 'as_fn_append () 33979 { 33980 eval $1+=\$2 33981 }' 33982else 33983 as_fn_append () 33984 { 33985 eval $1=\$$1\$2 33986 } 33987fi # as_fn_append 33988 33989# as_fn_arith ARG... 33990# ------------------ 33991# Perform arithmetic evaluation on the ARGs, and store the result in the 33992# global $as_val. Take advantage of shells that can avoid forks. The arguments 33993# must be portable across $(()) and expr. 33994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33995 eval 'as_fn_arith () 33996 { 33997 as_val=$(( $* )) 33998 }' 33999else 34000 as_fn_arith () 34001 { 34002 as_val=`expr "$@" || test $? -eq 1` 34003 } 34004fi # as_fn_arith 34005 34006 34007if expr a : '\(a\)' >/dev/null 2>&1 && 34008 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34009 as_expr=expr 34010else 34011 as_expr=false 34012fi 34013 34014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34015 as_basename=basename 34016else 34017 as_basename=false 34018fi 34019 34020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34021 as_dirname=dirname 34022else 34023 as_dirname=false 34024fi 34025 34026as_me=`$as_basename -- "$0" || 34027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34028 X"$0" : 'X\(//\)$' \| \ 34029 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34030$as_echo X/"$0" | 34031 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34032 s//\1/ 34033 q 34034 } 34035 /^X\/\(\/\/\)$/{ 34036 s//\1/ 34037 q 34038 } 34039 /^X\/\(\/\).*/{ 34040 s//\1/ 34041 q 34042 } 34043 s/.*/./; q'` 34044 34045# Avoid depending upon Character Ranges. 34046as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34048as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34049as_cr_digits='0123456789' 34050as_cr_alnum=$as_cr_Letters$as_cr_digits 34051 34052ECHO_C= ECHO_N= ECHO_T= 34053case `echo -n x` in #((((( 34054-n*) 34055 case `echo 'xy\c'` in 34056 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34057 xy) ECHO_C='\c';; 34058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 34059 ECHO_T=' ';; 34060 esac;; 34061*) 34062 ECHO_N='-n';; 34063esac 34064 34065rm -f conf$$ conf$$.exe conf$$.file 34066if test -d conf$$.dir; then 34067 rm -f conf$$.dir/conf$$.file 34068else 34069 rm -f conf$$.dir 34070 mkdir conf$$.dir 2>/dev/null 34071fi 34072if (echo >conf$$.file) 2>/dev/null; then 34073 if ln -s conf$$.file conf$$ 2>/dev/null; then 34074 as_ln_s='ln -s' 34075 # ... but there are two gotchas: 34076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34078 # In both cases, we have to default to `cp -pR'. 34079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34080 as_ln_s='cp -pR' 34081 elif ln conf$$.file conf$$ 2>/dev/null; then 34082 as_ln_s=ln 34083 else 34084 as_ln_s='cp -pR' 34085 fi 34086else 34087 as_ln_s='cp -pR' 34088fi 34089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34090rmdir conf$$.dir 2>/dev/null 34091 34092 34093# as_fn_mkdir_p 34094# ------------- 34095# Create "$as_dir" as a directory, including parents if necessary. 34096as_fn_mkdir_p () 34097{ 34098 34099 case $as_dir in #( 34100 -*) as_dir=./$as_dir;; 34101 esac 34102 test -d "$as_dir" || eval $as_mkdir_p || { 34103 as_dirs= 34104 while :; do 34105 case $as_dir in #( 34106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34107 *) as_qdir=$as_dir;; 34108 esac 34109 as_dirs="'$as_qdir' $as_dirs" 34110 as_dir=`$as_dirname -- "$as_dir" || 34111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34112 X"$as_dir" : 'X\(//\)[^/]' \| \ 34113 X"$as_dir" : 'X\(//\)$' \| \ 34114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34115$as_echo X"$as_dir" | 34116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34117 s//\1/ 34118 q 34119 } 34120 /^X\(\/\/\)[^/].*/{ 34121 s//\1/ 34122 q 34123 } 34124 /^X\(\/\/\)$/{ 34125 s//\1/ 34126 q 34127 } 34128 /^X\(\/\).*/{ 34129 s//\1/ 34130 q 34131 } 34132 s/.*/./; q'` 34133 test -d "$as_dir" && break 34134 done 34135 test -z "$as_dirs" || eval "mkdir $as_dirs" 34136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34137 34138 34139} # as_fn_mkdir_p 34140if mkdir -p . 2>/dev/null; then 34141 as_mkdir_p='mkdir -p "$as_dir"' 34142else 34143 test -d ./-p && rmdir ./-p 34144 as_mkdir_p=false 34145fi 34146 34147 34148# as_fn_executable_p FILE 34149# ----------------------- 34150# Test if FILE is an executable regular file. 34151as_fn_executable_p () 34152{ 34153 test -f "$1" && test -x "$1" 34154} # as_fn_executable_p 34155as_test_x='test -x' 34156as_executable_p=as_fn_executable_p 34157 34158# Sed expression to map a string onto a valid CPP name. 34159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34160 34161# Sed expression to map a string onto a valid variable name. 34162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34163 34164 34165exec 6>&1 34166## ----------------------------------- ## 34167## Main body of $CONFIG_STATUS script. ## 34168## ----------------------------------- ## 34169_ASEOF 34170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 34171 34172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34173# Save the log message, to keep $0 and so on meaningful, and to 34174# report actual input values of CONFIG_FILES etc. instead of their 34175# values after options handling. 34176ac_log=" 34177This file was extended by ntp $as_me 4.2.8p14, which was 34178generated by GNU Autoconf 2.69. Invocation command line was 34179 34180 CONFIG_FILES = $CONFIG_FILES 34181 CONFIG_HEADERS = $CONFIG_HEADERS 34182 CONFIG_LINKS = $CONFIG_LINKS 34183 CONFIG_COMMANDS = $CONFIG_COMMANDS 34184 $ $0 $@ 34185 34186on `(hostname || uname -n) 2>/dev/null | sed 1q` 34187" 34188 34189_ACEOF 34190 34191case $ac_config_files in *" 34192"*) set x $ac_config_files; shift; ac_config_files=$*;; 34193esac 34194 34195case $ac_config_headers in *" 34196"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 34197esac 34198 34199 34200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34201# Files that config.status was made for. 34202config_files="$ac_config_files" 34203config_headers="$ac_config_headers" 34204config_commands="$ac_config_commands" 34205 34206_ACEOF 34207 34208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34209ac_cs_usage="\ 34210\`$as_me' instantiates files and other configuration actions 34211from templates according to the current configuration. Unless the files 34212and actions are specified as TAGs, all are instantiated by default. 34213 34214Usage: $0 [OPTION]... [TAG]... 34215 34216 -h, --help print this help, then exit 34217 -V, --version print version number and configuration settings, then exit 34218 --config print configuration, then exit 34219 -q, --quiet, --silent 34220 do not print progress messages 34221 -d, --debug don't remove temporary files 34222 --recheck update $as_me by reconfiguring in the same conditions 34223 --file=FILE[:TEMPLATE] 34224 instantiate the configuration file FILE 34225 --header=FILE[:TEMPLATE] 34226 instantiate the configuration header FILE 34227 34228Configuration files: 34229$config_files 34230 34231Configuration headers: 34232$config_headers 34233 34234Configuration commands: 34235$config_commands 34236 34237Report bugs to <http://bugs.ntp.org./>. 34238ntp home page: <http://www.ntp.org./>." 34239 34240_ACEOF 34241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34242ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 34243ac_cs_version="\\ 34244ntp config.status 4.2.8p14 34245configured by $0, generated by GNU Autoconf 2.69, 34246 with options \\"\$ac_cs_config\\" 34247 34248Copyright (C) 2012 Free Software Foundation, Inc. 34249This config.status script is free software; the Free Software Foundation 34250gives unlimited permission to copy, distribute and modify it." 34251 34252ac_pwd='$ac_pwd' 34253srcdir='$srcdir' 34254INSTALL='$INSTALL' 34255MKDIR_P='$MKDIR_P' 34256AWK='$AWK' 34257test -n "\$AWK" || AWK=awk 34258_ACEOF 34259 34260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34261# The default lists apply if the user does not specify any file. 34262ac_need_defaults=: 34263while test $# != 0 34264do 34265 case $1 in 34266 --*=?*) 34267 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34269 ac_shift=: 34270 ;; 34271 --*=) 34272 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34273 ac_optarg= 34274 ac_shift=: 34275 ;; 34276 *) 34277 ac_option=$1 34278 ac_optarg=$2 34279 ac_shift=shift 34280 ;; 34281 esac 34282 34283 case $ac_option in 34284 # Handling of the options. 34285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34286 ac_cs_recheck=: ;; 34287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34288 $as_echo "$ac_cs_version"; exit ;; 34289 --config | --confi | --conf | --con | --co | --c ) 34290 $as_echo "$ac_cs_config"; exit ;; 34291 --debug | --debu | --deb | --de | --d | -d ) 34292 debug=: ;; 34293 --file | --fil | --fi | --f ) 34294 $ac_shift 34295 case $ac_optarg in 34296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34297 '') as_fn_error $? "missing file argument" ;; 34298 esac 34299 as_fn_append CONFIG_FILES " '$ac_optarg'" 34300 ac_need_defaults=false;; 34301 --header | --heade | --head | --hea ) 34302 $ac_shift 34303 case $ac_optarg in 34304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34305 esac 34306 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34307 ac_need_defaults=false;; 34308 --he | --h) 34309 # Conflict between --help and --header 34310 as_fn_error $? "ambiguous option: \`$1' 34311Try \`$0 --help' for more information.";; 34312 --help | --hel | -h ) 34313 $as_echo "$ac_cs_usage"; exit ;; 34314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34315 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34316 ac_cs_silent=: ;; 34317 34318 # This is an error. 34319 -*) as_fn_error $? "unrecognized option: \`$1' 34320Try \`$0 --help' for more information." ;; 34321 34322 *) as_fn_append ac_config_targets " $1" 34323 ac_need_defaults=false ;; 34324 34325 esac 34326 shift 34327done 34328 34329ac_configure_extra_args= 34330 34331if $ac_cs_silent; then 34332 exec 6>/dev/null 34333 ac_configure_extra_args="$ac_configure_extra_args --silent" 34334fi 34335 34336_ACEOF 34337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34338if \$ac_cs_recheck; then 34339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34340 shift 34341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 34342 CONFIG_SHELL='$SHELL' 34343 export CONFIG_SHELL 34344 exec "\$@" 34345fi 34346 34347_ACEOF 34348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34349exec 5>>config.log 34350{ 34351 echo 34352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34353## Running $as_me. ## 34354_ASBOX 34355 $as_echo "$ac_log" 34356} >&5 34357 34358_ACEOF 34359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34360# 34361# INIT-COMMANDS 34362# 34363AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 34364 34365 34366# The HP-UX ksh and POSIX shell print the target directory to stdout 34367# if CDPATH is set. 34368(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34369 34370sed_quote_subst='$sed_quote_subst' 34371double_quote_subst='$double_quote_subst' 34372delay_variable_subst='$delay_variable_subst' 34373enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 34374macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 34375macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 34376enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 34377pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 34378enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 34379shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 34380SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 34381ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 34382PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 34383host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 34384host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 34385host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 34386build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 34387build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 34388build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 34389SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 34390Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 34391GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 34392EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 34393FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 34394LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 34395NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 34396LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 34397max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 34398ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 34399exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 34400lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 34401lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 34402lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 34403lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 34404lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 34405reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 34406reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 34407OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 34408deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 34409file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 34410file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 34411want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 34412DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 34413sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 34414AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 34415AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 34416archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 34417STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 34418RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 34419old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34420old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34421old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34422lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34423CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34424CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34425compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34426GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34427lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34428lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34429lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34430lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 34432lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34433nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34434lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34435lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34436objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34437MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34438lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34439lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34440lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34441lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34442lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34443need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34444MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34445DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34446NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34447LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34448OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34449OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34450libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34451shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34452extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34453archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34454enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34455export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34456whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34457compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34458old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34459old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34460archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34461archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34462module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34463module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34464with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34465allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34466no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34467hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34468hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34469hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34470hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34471hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34472hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34473hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34474inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34475link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34476always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34477export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34478exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34479include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34480prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34481postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34482file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34483variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34484need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34485need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34486version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34487runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34488shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34489shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34490libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34491library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34492soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34493install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34494postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34495postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34496finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34497finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34498hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34499sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34500configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34501configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34502hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34503enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34504enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34505enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34506old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34507striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34508 34509LTCC='$LTCC' 34510LTCFLAGS='$LTCFLAGS' 34511compiler='$compiler_DEFAULT' 34512 34513# A function that is used when there is no print builtin or printf. 34514func_fallback_echo () 34515{ 34516 eval 'cat <<_LTECHO_EOF 34517\$1 34518_LTECHO_EOF' 34519} 34520 34521# Quote evaled strings. 34522for var in SHELL \ 34523ECHO \ 34524PATH_SEPARATOR \ 34525SED \ 34526GREP \ 34527EGREP \ 34528FGREP \ 34529LD \ 34530NM \ 34531LN_S \ 34532lt_SP2NL \ 34533lt_NL2SP \ 34534reload_flag \ 34535OBJDUMP \ 34536deplibs_check_method \ 34537file_magic_cmd \ 34538file_magic_glob \ 34539want_nocaseglob \ 34540DLLTOOL \ 34541sharedlib_from_linklib_cmd \ 34542AR \ 34543AR_FLAGS \ 34544archiver_list_spec \ 34545STRIP \ 34546RANLIB \ 34547CC \ 34548CFLAGS \ 34549compiler \ 34550lt_cv_sys_global_symbol_pipe \ 34551lt_cv_sys_global_symbol_to_cdecl \ 34552lt_cv_sys_global_symbol_to_import \ 34553lt_cv_sys_global_symbol_to_c_name_address \ 34554lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34555lt_cv_nm_interface \ 34556nm_file_list_spec \ 34557lt_cv_truncate_bin \ 34558lt_prog_compiler_no_builtin_flag \ 34559lt_prog_compiler_pic \ 34560lt_prog_compiler_wl \ 34561lt_prog_compiler_static \ 34562lt_cv_prog_compiler_c_o \ 34563need_locks \ 34564MANIFEST_TOOL \ 34565DSYMUTIL \ 34566NMEDIT \ 34567LIPO \ 34568OTOOL \ 34569OTOOL64 \ 34570shrext_cmds \ 34571export_dynamic_flag_spec \ 34572whole_archive_flag_spec \ 34573compiler_needs_object \ 34574with_gnu_ld \ 34575allow_undefined_flag \ 34576no_undefined_flag \ 34577hardcode_libdir_flag_spec \ 34578hardcode_libdir_separator \ 34579exclude_expsyms \ 34580include_expsyms \ 34581file_list_spec \ 34582variables_saved_for_relink \ 34583libname_spec \ 34584library_names_spec \ 34585soname_spec \ 34586install_override_mode \ 34587finish_eval \ 34588old_striplib \ 34589striplib; do 34590 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34591 *[\\\\\\\`\\"\\\$]*) 34592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34593 ;; 34594 *) 34595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34596 ;; 34597 esac 34598done 34599 34600# Double-quote double-evaled strings. 34601for var in reload_cmds \ 34602old_postinstall_cmds \ 34603old_postuninstall_cmds \ 34604old_archive_cmds \ 34605extract_expsyms_cmds \ 34606old_archive_from_new_cmds \ 34607old_archive_from_expsyms_cmds \ 34608archive_cmds \ 34609archive_expsym_cmds \ 34610module_cmds \ 34611module_expsym_cmds \ 34612export_symbols_cmds \ 34613prelink_cmds \ 34614postlink_cmds \ 34615postinstall_cmds \ 34616postuninstall_cmds \ 34617finish_cmds \ 34618sys_lib_search_path_spec \ 34619configure_time_dlsearch_path \ 34620configure_time_lt_sys_library_path; do 34621 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34622 *[\\\\\\\`\\"\\\$]*) 34623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34624 ;; 34625 *) 34626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34627 ;; 34628 esac 34629done 34630 34631ac_aux_dir='$ac_aux_dir' 34632 34633# See if we are running on zsh, and set the options that allow our 34634# commands through without removal of \ escapes INIT. 34635if test -n "\${ZSH_VERSION+set}"; then 34636 setopt NO_GLOB_SUBST 34637fi 34638 34639 34640 PACKAGE='$PACKAGE' 34641 VERSION='$VERSION' 34642 RM='$RM' 34643 ofile='$ofile' 34644 34645 34646 34647 34648_ACEOF 34649 34650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34651 34652# Handling of arguments. 34653for ac_config_target in $ac_config_targets 34654do 34655 case $ac_config_target in 34656 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 34657 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34658 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34659 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34660 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 34661 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 34662 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34663 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 34664 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 34665 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 34666 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 34667 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 34668 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 34669 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;; 34670 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 34671 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 34672 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 34673 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 34674 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 34675 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 34676 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 34677 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;; 34678 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;; 34679 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;; 34680 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;; 34681 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;; 34682 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;; 34683 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;; 34684 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;; 34685 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;; 34686 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;; 34687 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;; 34688 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;; 34689 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 34690 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 34691 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 34692 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;; 34693 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;; 34694 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 34695 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;; 34696 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;; 34697 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;; 34698 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;; 34699 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;; 34700 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;; 34701 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 34702 34703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34704 esac 34705done 34706 34707 34708# If the user did not use the arguments to specify the items to instantiate, 34709# then the envvar interface is used. Set only those that are not. 34710# We use the long form for the default assignment because of an extremely 34711# bizarre bug on SunOS 4.1.3. 34712if $ac_need_defaults; then 34713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34716fi 34717 34718# Have a temporary directory for convenience. Make it in the build tree 34719# simply because there is no reason against having it here, and in addition, 34720# creating and moving files from /tmp can sometimes cause problems. 34721# Hook for its removal unless debugging. 34722# Note that there is a small window in which the directory will not be cleaned: 34723# after its creation but before its name has been assigned to `$tmp'. 34724$debug || 34725{ 34726 tmp= ac_tmp= 34727 trap 'exit_status=$? 34728 : "${ac_tmp:=$tmp}" 34729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34730' 0 34731 trap 'as_fn_exit 1' 1 2 13 15 34732} 34733# Create a (secure) tmp directory for tmp files. 34734 34735{ 34736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34737 test -d "$tmp" 34738} || 34739{ 34740 tmp=./conf$$-$RANDOM 34741 (umask 077 && mkdir "$tmp") 34742} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34743ac_tmp=$tmp 34744 34745# Set up the scripts for CONFIG_FILES section. 34746# No need to generate them if there are no CONFIG_FILES. 34747# This happens for instance with `./config.status config.h'. 34748if test -n "$CONFIG_FILES"; then 34749 34750if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 34751 ac_cs_awk_getline=: 34752 ac_cs_awk_pipe_init= 34753 ac_cs_awk_read_file=' 34754 while ((getline aline < (F[key])) > 0) 34755 print(aline) 34756 close(F[key])' 34757 ac_cs_awk_pipe_fini= 34758else 34759 ac_cs_awk_getline=false 34760 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 34761 ac_cs_awk_read_file=' 34762 print "|#_!!_#|" 34763 print "cat " F[key] " &&" 34764 '$ac_cs_awk_pipe_init 34765 # The final `:' finishes the AND list. 34766 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 34767fi 34768ac_cr=`echo X | tr X '\015'` 34769# On cygwin, bash can eat \r inside `` if the user requested igncr. 34770# But we know of no other shell where ac_cr would be empty at this 34771# point, so we can use a bashism as a fallback. 34772if test "x$ac_cr" = x; then 34773 eval ac_cr=\$\'\\r\' 34774fi 34775ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34776if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34777 ac_cs_awk_cr='\\r' 34778else 34779 ac_cs_awk_cr=$ac_cr 34780fi 34781 34782echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34783_ACEOF 34784 34785# Create commands to substitute file output variables. 34786{ 34787 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 34788 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 34789 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 34790 echo "_ACAWK" && 34791 echo "_ACEOF" 34792} >conf$$files.sh && 34793. ./conf$$files.sh || 34794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34795rm -f conf$$files.sh 34796 34797{ 34798 echo "cat >conf$$subs.awk <<_ACEOF" && 34799 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34800 echo "_ACEOF" 34801} >conf$$subs.sh || 34802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34803ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34804ac_delim='%!_!# ' 34805for ac_last_try in false false false false false :; do 34806 . ./conf$$subs.sh || 34807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34808 34809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34810 if test $ac_delim_n = $ac_delim_num; then 34811 break 34812 elif $ac_last_try; then 34813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34814 else 34815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34816 fi 34817done 34818rm -f conf$$subs.sh 34819 34820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34821cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34822_ACEOF 34823sed -n ' 34824h 34825s/^/S["/; s/!.*/"]=/ 34826p 34827g 34828s/^[^!]*!// 34829:repl 34830t repl 34831s/'"$ac_delim"'$// 34832t delim 34833:nl 34834h 34835s/\(.\{148\}\)..*/\1/ 34836t more1 34837s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34838p 34839n 34840b repl 34841:more1 34842s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34843p 34844g 34845s/.\{148\}// 34846t nl 34847:delim 34848h 34849s/\(.\{148\}\)..*/\1/ 34850t more2 34851s/["\\]/\\&/g; s/^/"/; s/$/"/ 34852p 34853b 34854:more2 34855s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34856p 34857g 34858s/.\{148\}// 34859t delim 34860' <conf$$subs.awk | sed ' 34861/^[^""]/{ 34862 N 34863 s/\n// 34864} 34865' >>$CONFIG_STATUS || ac_write_fail=1 34866rm -f conf$$subs.awk 34867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34868_ACAWK 34869cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34870 for (key in S) S_is_set[key] = 1 34871 FS = "" 34872 \$ac_cs_awk_pipe_init 34873} 34874{ 34875 line = $ 0 34876 nfields = split(line, field, "@") 34877 substed = 0 34878 len = length(field[1]) 34879 for (i = 2; i < nfields; i++) { 34880 key = field[i] 34881 keylen = length(key) 34882 if (S_is_set[key]) { 34883 value = S[key] 34884 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34885 len += length(value) + length(field[++i]) 34886 substed = 1 34887 } else 34888 len += 1 + keylen 34889 } 34890 if (nfields == 3 && !substed) { 34891 key = field[2] 34892 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 34893 \$ac_cs_awk_read_file 34894 next 34895 } 34896 } 34897 print line 34898} 34899\$ac_cs_awk_pipe_fini 34900_ACAWK 34901_ACEOF 34902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34903if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34905else 34906 cat 34907fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34908 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34909_ACEOF 34910 34911# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34912# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34913# trailing colons and then remove the whole line if VPATH becomes empty 34914# (actually we leave an empty line to preserve line numbers). 34915if test "x$srcdir" = x.; then 34916 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34917h 34918s/// 34919s/^/:/ 34920s/[ ]*$/:/ 34921s/:\$(srcdir):/:/g 34922s/:\${srcdir}:/:/g 34923s/:@srcdir@:/:/g 34924s/^:*// 34925s/:*$// 34926x 34927s/\(=[ ]*\).*/\1/ 34928G 34929s/\n// 34930s/^[^=]*=[ ]*$// 34931}' 34932fi 34933 34934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34935fi # test -n "$CONFIG_FILES" 34936 34937# Set up the scripts for CONFIG_HEADERS section. 34938# No need to generate them if there are no CONFIG_HEADERS. 34939# This happens for instance with `./config.status Makefile'. 34940if test -n "$CONFIG_HEADERS"; then 34941cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34942BEGIN { 34943_ACEOF 34944 34945# Transform confdefs.h into an awk script `defines.awk', embedded as 34946# here-document in config.status, that substitutes the proper values into 34947# config.h.in to produce config.h. 34948 34949# Create a delimiter string that does not exist in confdefs.h, to ease 34950# handling of long lines. 34951ac_delim='%!_!# ' 34952for ac_last_try in false false :; do 34953 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34954 if test -z "$ac_tt"; then 34955 break 34956 elif $ac_last_try; then 34957 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34958 else 34959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34960 fi 34961done 34962 34963# For the awk script, D is an array of macro values keyed by name, 34964# likewise P contains macro parameters if any. Preserve backslash 34965# newline sequences. 34966 34967ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34968sed -n ' 34969s/.\{148\}/&'"$ac_delim"'/g 34970t rset 34971:rset 34972s/^[ ]*#[ ]*define[ ][ ]*/ / 34973t def 34974d 34975:def 34976s/\\$// 34977t bsnl 34978s/["\\]/\\&/g 34979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34980D["\1"]=" \3"/p 34981s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34982d 34983:bsnl 34984s/["\\]/\\&/g 34985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34986D["\1"]=" \3\\\\\\n"\\/p 34987t cont 34988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34989t cont 34990d 34991:cont 34992n 34993s/.\{148\}/&'"$ac_delim"'/g 34994t clear 34995:clear 34996s/\\$// 34997t bsnlc 34998s/["\\]/\\&/g; s/^/"/; s/$/"/p 34999d 35000:bsnlc 35001s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 35002b cont 35003' <confdefs.h | sed ' 35004s/'"$ac_delim"'/"\\\ 35005"/g' >>$CONFIG_STATUS || ac_write_fail=1 35006 35007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35008 for (key in D) D_is_set[key] = 1 35009 FS = "" 35010} 35011/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 35012 line = \$ 0 35013 split(line, arg, " ") 35014 if (arg[1] == "#") { 35015 defundef = arg[2] 35016 mac1 = arg[3] 35017 } else { 35018 defundef = substr(arg[1], 2) 35019 mac1 = arg[2] 35020 } 35021 split(mac1, mac2, "(") #) 35022 macro = mac2[1] 35023 prefix = substr(line, 1, index(line, defundef) - 1) 35024 if (D_is_set[macro]) { 35025 # Preserve the white space surrounding the "#". 35026 print prefix "define", macro P[macro] D[macro] 35027 next 35028 } else { 35029 # Replace #undef with comments. This is necessary, for example, 35030 # in the case of _POSIX_SOURCE, which is predefined and required 35031 # on some systems where configure will not decide to define it. 35032 if (defundef == "undef") { 35033 print "/*", prefix defundef, macro, "*/" 35034 next 35035 } 35036 } 35037} 35038{ print } 35039_ACAWK 35040_ACEOF 35041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35042 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 35043fi # test -n "$CONFIG_HEADERS" 35044 35045 35046eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 35047shift 35048for ac_tag 35049do 35050 case $ac_tag in 35051 :[FHLC]) ac_mode=$ac_tag; continue;; 35052 esac 35053 case $ac_mode$ac_tag in 35054 :[FHL]*:*);; 35055 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 35056 :[FH]-) ac_tag=-:-;; 35057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35058 esac 35059 ac_save_IFS=$IFS 35060 IFS=: 35061 set x $ac_tag 35062 IFS=$ac_save_IFS 35063 shift 35064 ac_file=$1 35065 shift 35066 35067 case $ac_mode in 35068 :L) ac_source=$1;; 35069 :[FH]) 35070 ac_file_inputs= 35071 for ac_f 35072 do 35073 case $ac_f in 35074 -) ac_f="$ac_tmp/stdin";; 35075 *) # Look for the file first in the build tree, then in the source tree 35076 # (if the path is not absolute). The absolute path cannot be DOS-style, 35077 # because $ac_f cannot contain `:'. 35078 test -f "$ac_f" || 35079 case $ac_f in 35080 [\\/$]*) false;; 35081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35082 esac || 35083 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 35084 esac 35085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 35086 as_fn_append ac_file_inputs " '$ac_f'" 35087 done 35088 35089 # Let's still pretend it is `configure' which instantiates (i.e., don't 35090 # use $as_me), people would be surprised to read: 35091 # /* config.h. Generated by config.status. */ 35092 configure_input='Generated from '` 35093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 35094 `' by configure.' 35095 if test x"$ac_file" != x-; then 35096 configure_input="$ac_file. $configure_input" 35097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 35098$as_echo "$as_me: creating $ac_file" >&6;} 35099 fi 35100 # Neutralize special characters interpreted by sed in replacement strings. 35101 case $configure_input in #( 35102 *\&* | *\|* | *\\* ) 35103 ac_sed_conf_input=`$as_echo "$configure_input" | 35104 sed 's/[\\\\&|]/\\\\&/g'`;; #( 35105 *) ac_sed_conf_input=$configure_input;; 35106 esac 35107 35108 case $ac_tag in 35109 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 35110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 35111 esac 35112 ;; 35113 esac 35114 35115 ac_dir=`$as_dirname -- "$ac_file" || 35116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35117 X"$ac_file" : 'X\(//\)[^/]' \| \ 35118 X"$ac_file" : 'X\(//\)$' \| \ 35119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35120$as_echo X"$ac_file" | 35121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35122 s//\1/ 35123 q 35124 } 35125 /^X\(\/\/\)[^/].*/{ 35126 s//\1/ 35127 q 35128 } 35129 /^X\(\/\/\)$/{ 35130 s//\1/ 35131 q 35132 } 35133 /^X\(\/\).*/{ 35134 s//\1/ 35135 q 35136 } 35137 s/.*/./; q'` 35138 as_dir="$ac_dir"; as_fn_mkdir_p 35139 ac_builddir=. 35140 35141case "$ac_dir" in 35142.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35143*) 35144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 35145 # A ".." for each directory in $ac_dir_suffix. 35146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 35147 case $ac_top_builddir_sub in 35148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35150 esac ;; 35151esac 35152ac_abs_top_builddir=$ac_pwd 35153ac_abs_builddir=$ac_pwd$ac_dir_suffix 35154# for backward compatibility: 35155ac_top_builddir=$ac_top_build_prefix 35156 35157case $srcdir in 35158 .) # We are building in place. 35159 ac_srcdir=. 35160 ac_top_srcdir=$ac_top_builddir_sub 35161 ac_abs_top_srcdir=$ac_pwd ;; 35162 [\\/]* | ?:[\\/]* ) # Absolute name. 35163 ac_srcdir=$srcdir$ac_dir_suffix; 35164 ac_top_srcdir=$srcdir 35165 ac_abs_top_srcdir=$srcdir ;; 35166 *) # Relative name. 35167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35168 ac_top_srcdir=$ac_top_build_prefix$srcdir 35169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35170esac 35171ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35172 35173 35174 case $ac_mode in 35175 :F) 35176 # 35177 # CONFIG_FILE 35178 # 35179 35180 case $INSTALL in 35181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35183 esac 35184 ac_MKDIR_P=$MKDIR_P 35185 case $MKDIR_P in 35186 [\\/$]* | ?:[\\/]* ) ;; 35187 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35188 esac 35189_ACEOF 35190 35191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35192# If the template does not know about datarootdir, expand it. 35193# FIXME: This hack should be removed a few years after 2.60. 35194ac_datarootdir_hack=; ac_datarootdir_seen= 35195ac_sed_dataroot=' 35196/datarootdir/ { 35197 p 35198 q 35199} 35200/@datadir@/p 35201/@docdir@/p 35202/@infodir@/p 35203/@localedir@/p 35204/@mandir@/p' 35205case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35206*datarootdir*) ac_datarootdir_seen=yes;; 35207*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35209$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35210_ACEOF 35211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35212 ac_datarootdir_hack=' 35213 s&@datadir@&$datadir&g 35214 s&@docdir@&$docdir&g 35215 s&@infodir@&$infodir&g 35216 s&@localedir@&$localedir&g 35217 s&@mandir@&$mandir&g 35218 s&\\\${datarootdir}&$datarootdir&g' ;; 35219esac 35220_ACEOF 35221 35222# Neutralize VPATH when `$srcdir' = `.'. 35223# Shell code in configure.ac might set extrasub. 35224# FIXME: do we really want to maintain this feature? 35225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35226ac_sed_extra="$ac_vpsub 35227$extrasub 35228_ACEOF 35229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35230:t 35231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35232s|@configure_input@|$ac_sed_conf_input|;t t 35233s&@top_builddir@&$ac_top_builddir_sub&;t t 35234s&@top_build_prefix@&$ac_top_build_prefix&;t t 35235s&@srcdir@&$ac_srcdir&;t t 35236s&@abs_srcdir@&$ac_abs_srcdir&;t t 35237s&@top_srcdir@&$ac_top_srcdir&;t t 35238s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35239s&@builddir@&$ac_builddir&;t t 35240s&@abs_builddir@&$ac_abs_builddir&;t t 35241s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35242s&@INSTALL@&$ac_INSTALL&;t t 35243s&@MKDIR_P@&$ac_MKDIR_P&;t t 35244$ac_datarootdir_hack 35245" 35246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 35247if $ac_cs_awk_getline; then 35248 $AWK -f "$ac_tmp/subs.awk" 35249else 35250 $AWK -f "$ac_tmp/subs.awk" | $SHELL 35251fi \ 35252 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35253 35254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35255 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35257 "$ac_tmp/out"`; test -z "$ac_out"; } && 35258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35259which seems to be undefined. Please make sure it is defined" >&5 35260$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35261which seems to be undefined. Please make sure it is defined" >&2;} 35262 35263 rm -f "$ac_tmp/stdin" 35264 case $ac_file in 35265 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 35266 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 35267 esac \ 35268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35269 ;; 35270 :H) 35271 # 35272 # CONFIG_HEADER 35273 # 35274 if test x"$ac_file" != x-; then 35275 { 35276 $as_echo "/* $configure_input */" \ 35277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 35278 } >"$ac_tmp/config.h" \ 35279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35280 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 35281 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 35282$as_echo "$as_me: $ac_file is unchanged" >&6;} 35283 else 35284 rm -f "$ac_file" 35285 mv "$ac_tmp/config.h" "$ac_file" \ 35286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35287 fi 35288 else 35289 $as_echo "/* $configure_input */" \ 35290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 35291 || as_fn_error $? "could not create -" "$LINENO" 5 35292 fi 35293# Compute "$ac_file"'s index in $config_headers. 35294_am_arg="$ac_file" 35295_am_stamp_count=1 35296for _am_header in $config_headers :; do 35297 case $_am_header in 35298 $_am_arg | $_am_arg:* ) 35299 break ;; 35300 * ) 35301 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 35302 esac 35303done 35304echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 35305$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35306 X"$_am_arg" : 'X\(//\)[^/]' \| \ 35307 X"$_am_arg" : 'X\(//\)$' \| \ 35308 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 35309$as_echo X"$_am_arg" | 35310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35311 s//\1/ 35312 q 35313 } 35314 /^X\(\/\/\)[^/].*/{ 35315 s//\1/ 35316 q 35317 } 35318 /^X\(\/\/\)$/{ 35319 s//\1/ 35320 q 35321 } 35322 /^X\(\/\).*/{ 35323 s//\1/ 35324 q 35325 } 35326 s/.*/./; q'`/stamp-h$_am_stamp_count 35327 ;; 35328 35329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 35330$as_echo "$as_me: executing $ac_file commands" >&6;} 35331 ;; 35332 esac 35333 35334 35335 case $ac_file$ac_mode in 35336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 35337 # Older Autoconf quotes --file arguments for eval, but not when files 35338 # are listed without --file. Let's play safe and only enable the eval 35339 # if we detect the quoting. 35340 case $CONFIG_FILES in 35341 *\'*) eval set x "$CONFIG_FILES" ;; 35342 *) set x $CONFIG_FILES ;; 35343 esac 35344 shift 35345 for mf 35346 do 35347 # Strip MF so we end up with the name of the file. 35348 mf=`echo "$mf" | sed -e 's/:.*$//'` 35349 # Check whether this is an Automake generated Makefile or not. 35350 # We used to match only the files named 'Makefile.in', but 35351 # some people rename them; so instead we look at the file content. 35352 # Grep'ing the first line is not enough: some people post-process 35353 # each Makefile.in and add a new line on top of each file to say so. 35354 # Grep'ing the whole file is not good either: AIX grep has a line 35355 # limit of 2048, but all sed's we know have understand at least 4000. 35356 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 35357 dirpart=`$as_dirname -- "$mf" || 35358$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35359 X"$mf" : 'X\(//\)[^/]' \| \ 35360 X"$mf" : 'X\(//\)$' \| \ 35361 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 35362$as_echo X"$mf" | 35363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35364 s//\1/ 35365 q 35366 } 35367 /^X\(\/\/\)[^/].*/{ 35368 s//\1/ 35369 q 35370 } 35371 /^X\(\/\/\)$/{ 35372 s//\1/ 35373 q 35374 } 35375 /^X\(\/\).*/{ 35376 s//\1/ 35377 q 35378 } 35379 s/.*/./; q'` 35380 else 35381 continue 35382 fi 35383 # Extract the definition of DEPDIR, am__include, and am__quote 35384 # from the Makefile without running 'make'. 35385 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 35386 test -z "$DEPDIR" && continue 35387 am__include=`sed -n 's/^am__include = //p' < "$mf"` 35388 test -z "$am__include" && continue 35389 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 35390 # Find all dependency output files, they are included files with 35391 # $(DEPDIR) in their names. We invoke sed twice because it is the 35392 # simplest approach to changing $(DEPDIR) to its actual value in the 35393 # expansion. 35394 for file in `sed -n " 35395 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 35396 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 35397 # Make sure the directory exists. 35398 test -f "$dirpart/$file" && continue 35399 fdir=`$as_dirname -- "$file" || 35400$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35401 X"$file" : 'X\(//\)[^/]' \| \ 35402 X"$file" : 'X\(//\)$' \| \ 35403 X"$file" : 'X\(/\)' \| . 2>/dev/null || 35404$as_echo X"$file" | 35405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35406 s//\1/ 35407 q 35408 } 35409 /^X\(\/\/\)[^/].*/{ 35410 s//\1/ 35411 q 35412 } 35413 /^X\(\/\/\)$/{ 35414 s//\1/ 35415 q 35416 } 35417 /^X\(\/\).*/{ 35418 s//\1/ 35419 q 35420 } 35421 s/.*/./; q'` 35422 as_dir=$dirpart/$fdir; as_fn_mkdir_p 35423 # echo "creating $dirpart/$file" 35424 echo '# dummy' > "$dirpart/$file" 35425 done 35426 done 35427} 35428 ;; 35429 "libtool":C) 35430 35431 # See if we are running on zsh, and set the options that allow our 35432 # commands through without removal of \ escapes. 35433 if test -n "${ZSH_VERSION+set}"; then 35434 setopt NO_GLOB_SUBST 35435 fi 35436 35437 cfgfile=${ofile}T 35438 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 35439 $RM "$cfgfile" 35440 35441 cat <<_LT_EOF >> "$cfgfile" 35442#! $SHELL 35443# Generated automatically by $as_me ($PACKAGE) $VERSION 35444# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 35445# NOTE: Changes made to this file will be lost: look at ltmain.sh. 35446 35447# Provide generalized library-building support services. 35448# Written by Gordon Matzigkeit, 1996 35449 35450# Copyright (C) 2014 Free Software Foundation, Inc. 35451# This is free software; see the source for copying conditions. There is NO 35452# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35453 35454# GNU Libtool is free software; you can redistribute it and/or modify 35455# it under the terms of the GNU General Public License as published by 35456# the Free Software Foundation; either version 2 of of the License, or 35457# (at your option) any later version. 35458# 35459# As a special exception to the GNU General Public License, if you 35460# distribute this file as part of a program or library that is built 35461# using GNU Libtool, you may include this file under the same 35462# distribution terms that you use for the rest of that program. 35463# 35464# GNU Libtool is distributed in the hope that it will be useful, but 35465# WITHOUT ANY WARRANTY; without even the implied warranty of 35466# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 35467# GNU General Public License for more details. 35468# 35469# You should have received a copy of the GNU General Public License 35470# along with this program. If not, see <http://www.gnu.org/licenses/>. 35471 35472 35473# The names of the tagged configurations supported by this script. 35474available_tags='' 35475 35476# Configured defaults for sys_lib_dlsearch_path munging. 35477: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 35478 35479# ### BEGIN LIBTOOL CONFIG 35480 35481# Whether or not to build shared libraries. 35482build_libtool_libs=$enable_shared 35483 35484# Which release of libtool.m4 was used? 35485macro_version=$macro_version 35486macro_revision=$macro_revision 35487 35488# Whether or not to build static libraries. 35489build_old_libs=$enable_static 35490 35491# What type of objects to build. 35492pic_mode=$pic_mode 35493 35494# Whether or not to optimize for fast installation. 35495fast_install=$enable_fast_install 35496 35497# Shared archive member basename,for filename based shared library versioning on AIX. 35498shared_archive_member_spec=$shared_archive_member_spec 35499 35500# Shell to use when invoking shell scripts. 35501SHELL=$lt_SHELL 35502 35503# An echo program that protects backslashes. 35504ECHO=$lt_ECHO 35505 35506# The PATH separator for the build system. 35507PATH_SEPARATOR=$lt_PATH_SEPARATOR 35508 35509# The host system. 35510host_alias=$host_alias 35511host=$host 35512host_os=$host_os 35513 35514# The build system. 35515build_alias=$build_alias 35516build=$build 35517build_os=$build_os 35518 35519# A sed program that does not truncate output. 35520SED=$lt_SED 35521 35522# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35523Xsed="\$SED -e 1s/^X//" 35524 35525# A grep program that handles long lines. 35526GREP=$lt_GREP 35527 35528# An ERE matcher. 35529EGREP=$lt_EGREP 35530 35531# A literal string matcher. 35532FGREP=$lt_FGREP 35533 35534# A BSD- or MS-compatible name lister. 35535NM=$lt_NM 35536 35537# Whether we need soft or hard links. 35538LN_S=$lt_LN_S 35539 35540# What is the maximum length of a command? 35541max_cmd_len=$max_cmd_len 35542 35543# Object file suffix (normally "o"). 35544objext=$ac_objext 35545 35546# Executable file suffix (normally ""). 35547exeext=$exeext 35548 35549# whether the shell understands "unset". 35550lt_unset=$lt_unset 35551 35552# turn spaces into newlines. 35553SP2NL=$lt_lt_SP2NL 35554 35555# turn newlines into spaces. 35556NL2SP=$lt_lt_NL2SP 35557 35558# convert \$build file names to \$host format. 35559to_host_file_cmd=$lt_cv_to_host_file_cmd 35560 35561# convert \$build files to toolchain format. 35562to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35563 35564# An object symbol dumper. 35565OBJDUMP=$lt_OBJDUMP 35566 35567# Method to check whether dependent libraries are shared objects. 35568deplibs_check_method=$lt_deplibs_check_method 35569 35570# Command to use when deplibs_check_method = "file_magic". 35571file_magic_cmd=$lt_file_magic_cmd 35572 35573# How to find potential files when deplibs_check_method = "file_magic". 35574file_magic_glob=$lt_file_magic_glob 35575 35576# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35577want_nocaseglob=$lt_want_nocaseglob 35578 35579# DLL creation program. 35580DLLTOOL=$lt_DLLTOOL 35581 35582# Command to associate shared and link libraries. 35583sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35584 35585# The archiver. 35586AR=$lt_AR 35587 35588# Flags to create an archive. 35589AR_FLAGS=$lt_AR_FLAGS 35590 35591# How to feed a file listing to the archiver. 35592archiver_list_spec=$lt_archiver_list_spec 35593 35594# A symbol stripping program. 35595STRIP=$lt_STRIP 35596 35597# Commands used to install an old-style archive. 35598RANLIB=$lt_RANLIB 35599old_postinstall_cmds=$lt_old_postinstall_cmds 35600old_postuninstall_cmds=$lt_old_postuninstall_cmds 35601 35602# Whether to use a lock for old archive extraction. 35603lock_old_archive_extraction=$lock_old_archive_extraction 35604 35605# A C compiler. 35606LTCC=$lt_CC 35607 35608# LTCC compiler flags. 35609LTCFLAGS=$lt_CFLAGS 35610 35611# Take the output of nm and produce a listing of raw symbols and C names. 35612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35613 35614# Transform the output of nm in a proper C declaration. 35615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35616 35617# Transform the output of nm into a list of symbols to manually relocate. 35618global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35619 35620# Transform the output of nm in a C name address pair. 35621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35622 35623# Transform the output of nm in a C name address pair when lib prefix is needed. 35624global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35625 35626# The name lister interface. 35627nm_interface=$lt_lt_cv_nm_interface 35628 35629# Specify filename containing input files for \$NM. 35630nm_file_list_spec=$lt_nm_file_list_spec 35631 35632# The root where to search for dependent libraries,and where our libraries should be installed. 35633lt_sysroot=$lt_sysroot 35634 35635# Command to truncate a binary pipe. 35636lt_truncate_bin=$lt_lt_cv_truncate_bin 35637 35638# The name of the directory that contains temporary libtool files. 35639objdir=$objdir 35640 35641# Used to examine libraries when file_magic_cmd begins with "file". 35642MAGIC_CMD=$MAGIC_CMD 35643 35644# Must we lock files when doing compilation? 35645need_locks=$lt_need_locks 35646 35647# Manifest tool. 35648MANIFEST_TOOL=$lt_MANIFEST_TOOL 35649 35650# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35651DSYMUTIL=$lt_DSYMUTIL 35652 35653# Tool to change global to local symbols on Mac OS X. 35654NMEDIT=$lt_NMEDIT 35655 35656# Tool to manipulate fat objects and archives on Mac OS X. 35657LIPO=$lt_LIPO 35658 35659# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35660OTOOL=$lt_OTOOL 35661 35662# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35663OTOOL64=$lt_OTOOL64 35664 35665# Old archive suffix (normally "a"). 35666libext=$libext 35667 35668# Shared library suffix (normally ".so"). 35669shrext_cmds=$lt_shrext_cmds 35670 35671# The commands to extract the exported symbol list from a shared archive. 35672extract_expsyms_cmds=$lt_extract_expsyms_cmds 35673 35674# Variables whose values should be saved in libtool wrapper scripts and 35675# restored at link time. 35676variables_saved_for_relink=$lt_variables_saved_for_relink 35677 35678# Do we need the "lib" prefix for modules? 35679need_lib_prefix=$need_lib_prefix 35680 35681# Do we need a version for libraries? 35682need_version=$need_version 35683 35684# Library versioning type. 35685version_type=$version_type 35686 35687# Shared library runtime path variable. 35688runpath_var=$runpath_var 35689 35690# Shared library path variable. 35691shlibpath_var=$shlibpath_var 35692 35693# Is shlibpath searched before the hard-coded library search path? 35694shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35695 35696# Format of library name prefix. 35697libname_spec=$lt_libname_spec 35698 35699# List of archive names. First name is the real one, the rest are links. 35700# The last name is the one that the linker finds with -lNAME 35701library_names_spec=$lt_library_names_spec 35702 35703# The coded name of the library, if different from the real name. 35704soname_spec=$lt_soname_spec 35705 35706# Permission mode override for installation of shared libraries. 35707install_override_mode=$lt_install_override_mode 35708 35709# Command to use after installation of a shared archive. 35710postinstall_cmds=$lt_postinstall_cmds 35711 35712# Command to use after uninstallation of a shared archive. 35713postuninstall_cmds=$lt_postuninstall_cmds 35714 35715# Commands used to finish a libtool library installation in a directory. 35716finish_cmds=$lt_finish_cmds 35717 35718# As "finish_cmds", except a single script fragment to be evaled but 35719# not shown. 35720finish_eval=$lt_finish_eval 35721 35722# Whether we should hardcode library paths into libraries. 35723hardcode_into_libs=$hardcode_into_libs 35724 35725# Compile-time system search path for libraries. 35726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35727 35728# Detected run-time system search path for libraries. 35729sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35730 35731# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35732configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35733 35734# Whether dlopen is supported. 35735dlopen_support=$enable_dlopen 35736 35737# Whether dlopen of programs is supported. 35738dlopen_self=$enable_dlopen_self 35739 35740# Whether dlopen of statically linked programs is supported. 35741dlopen_self_static=$enable_dlopen_self_static 35742 35743# Commands to strip libraries. 35744old_striplib=$lt_old_striplib 35745striplib=$lt_striplib 35746 35747 35748# The linker used to build libraries. 35749LD=$lt_LD 35750 35751# How to create reloadable object files. 35752reload_flag=$lt_reload_flag 35753reload_cmds=$lt_reload_cmds 35754 35755# Commands used to build an old-style archive. 35756old_archive_cmds=$lt_old_archive_cmds 35757 35758# A language specific compiler. 35759CC=$lt_compiler 35760 35761# Is the compiler the GNU compiler? 35762with_gcc=$GCC 35763 35764# Compiler flag to turn off builtin functions. 35765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35766 35767# Additional compiler flags for building library objects. 35768pic_flag=$lt_lt_prog_compiler_pic 35769 35770# How to pass a linker flag through the compiler. 35771wl=$lt_lt_prog_compiler_wl 35772 35773# Compiler flag to prevent dynamic linking. 35774link_static_flag=$lt_lt_prog_compiler_static 35775 35776# Does compiler simultaneously support -c and -o options? 35777compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35778 35779# Whether or not to add -lc for building shared libraries. 35780build_libtool_need_lc=$archive_cmds_need_lc 35781 35782# Whether or not to disallow shared libs when runtime libs are static. 35783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35784 35785# Compiler flag to allow reflexive dlopens. 35786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35787 35788# Compiler flag to generate shared objects directly from archives. 35789whole_archive_flag_spec=$lt_whole_archive_flag_spec 35790 35791# Whether the compiler copes with passing no objects directly. 35792compiler_needs_object=$lt_compiler_needs_object 35793 35794# Create an old-style archive from a shared archive. 35795old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35796 35797# Create a temporary old-style archive to link instead of a shared archive. 35798old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35799 35800# Commands used to build a shared archive. 35801archive_cmds=$lt_archive_cmds 35802archive_expsym_cmds=$lt_archive_expsym_cmds 35803 35804# Commands used to build a loadable module if different from building 35805# a shared archive. 35806module_cmds=$lt_module_cmds 35807module_expsym_cmds=$lt_module_expsym_cmds 35808 35809# Whether we are building with GNU ld or not. 35810with_gnu_ld=$lt_with_gnu_ld 35811 35812# Flag that allows shared libraries with undefined symbols to be built. 35813allow_undefined_flag=$lt_allow_undefined_flag 35814 35815# Flag that enforces no undefined symbols. 35816no_undefined_flag=$lt_no_undefined_flag 35817 35818# Flag to hardcode \$libdir into a binary during linking. 35819# This must work even if \$libdir does not exist 35820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35821 35822# Whether we need a single "-rpath" flag with a separated argument. 35823hardcode_libdir_separator=$lt_hardcode_libdir_separator 35824 35825# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35826# DIR into the resulting binary. 35827hardcode_direct=$hardcode_direct 35828 35829# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35830# DIR into the resulting binary and the resulting library dependency is 35831# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35832# library is relocated. 35833hardcode_direct_absolute=$hardcode_direct_absolute 35834 35835# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35836# into the resulting binary. 35837hardcode_minus_L=$hardcode_minus_L 35838 35839# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35840# into the resulting binary. 35841hardcode_shlibpath_var=$hardcode_shlibpath_var 35842 35843# Set to "yes" if building a shared library automatically hardcodes DIR 35844# into the library and all subsequent libraries and executables linked 35845# against it. 35846hardcode_automatic=$hardcode_automatic 35847 35848# Set to yes if linker adds runtime paths of dependent libraries 35849# to runtime path list. 35850inherit_rpath=$inherit_rpath 35851 35852# Whether libtool must link a program against all its dependency libraries. 35853link_all_deplibs=$link_all_deplibs 35854 35855# Set to "yes" if exported symbols are required. 35856always_export_symbols=$always_export_symbols 35857 35858# The commands to list exported symbols. 35859export_symbols_cmds=$lt_export_symbols_cmds 35860 35861# Symbols that should not be listed in the preloaded symbols. 35862exclude_expsyms=$lt_exclude_expsyms 35863 35864# Symbols that must always be exported. 35865include_expsyms=$lt_include_expsyms 35866 35867# Commands necessary for linking programs (against libraries) with templates. 35868prelink_cmds=$lt_prelink_cmds 35869 35870# Commands necessary for finishing linking programs. 35871postlink_cmds=$lt_postlink_cmds 35872 35873# Specify filename containing input files. 35874file_list_spec=$lt_file_list_spec 35875 35876# How to hardcode a shared library path into an executable. 35877hardcode_action=$hardcode_action 35878 35879# ### END LIBTOOL CONFIG 35880 35881_LT_EOF 35882 35883 cat <<'_LT_EOF' >> "$cfgfile" 35884 35885# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35886 35887# func_munge_path_list VARIABLE PATH 35888# ----------------------------------- 35889# VARIABLE is name of variable containing _space_ separated list of 35890# directories to be munged by the contents of PATH, which is string 35891# having a format: 35892# "DIR[:DIR]:" 35893# string "DIR[ DIR]" will be prepended to VARIABLE 35894# ":DIR[:DIR]" 35895# string "DIR[ DIR]" will be appended to VARIABLE 35896# "DIRP[:DIRP]::[DIRA:]DIRA" 35897# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35898# "DIRA[ DIRA]" will be appended to VARIABLE 35899# "DIR[:DIR]" 35900# VARIABLE will be replaced by "DIR[ DIR]" 35901func_munge_path_list () 35902{ 35903 case x$2 in 35904 x) 35905 ;; 35906 *:) 35907 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35908 ;; 35909 x:*) 35910 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35911 ;; 35912 *::*) 35913 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35914 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35915 ;; 35916 *) 35917 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35918 ;; 35919 esac 35920} 35921 35922 35923# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35924func_cc_basename () 35925{ 35926 for cc_temp in $*""; do 35927 case $cc_temp in 35928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35930 \-*) ;; 35931 *) break;; 35932 esac 35933 done 35934 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35935} 35936 35937 35938# ### END FUNCTIONS SHARED WITH CONFIGURE 35939 35940_LT_EOF 35941 35942 case $host_os in 35943 aix3*) 35944 cat <<\_LT_EOF >> "$cfgfile" 35945# AIX sometimes has problems with the GCC collect2 program. For some 35946# reason, if we set the COLLECT_NAMES environment variable, the problems 35947# vanish in a puff of smoke. 35948if test set != "${COLLECT_NAMES+set}"; then 35949 COLLECT_NAMES= 35950 export COLLECT_NAMES 35951fi 35952_LT_EOF 35953 ;; 35954 esac 35955 35956 35957ltmain=$ac_aux_dir/ltmain.sh 35958 35959 35960 # We use sed instead of cat because bash on DJGPP gets confused if 35961 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35962 # text mode, it properly converts lines to CR/LF. This bash problem 35963 # is reportedly fixed, but why not run on old versions too? 35964 sed '$q' "$ltmain" >> "$cfgfile" \ 35965 || (rm -f "$cfgfile"; exit 1) 35966 35967 mv -f "$cfgfile" "$ofile" || 35968 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35969 chmod +x "$ofile" 35970 35971 ;; 35972 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;; 35973 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 35974 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;; 35975 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;; 35976 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;; 35977 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;; 35978 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;; 35979 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;; 35980 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 35981 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 35982 "scripts/summary":F) chmod +x scripts/summary ;; 35983 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;; 35984 35985 esac 35986done # for ac_tag 35987 35988 35989as_fn_exit 0 35990_ACEOF 35991ac_clean_files=$ac_clean_files_save 35992 35993test $ac_write_fail = 0 || 35994 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35995 35996 35997# configure is writing to config.log, and then calls config.status. 35998# config.status does its own redirection, appending to config.log. 35999# Unfortunately, on DOS this fails, as config.log is still kept open 36000# by configure, so config.status won't be able to write to it; its 36001# output is simply discarded. So we exec the FD to /dev/null, 36002# effectively closing config.log, so it can be properly (re)opened and 36003# appended to by config.status. When coming back to configure, we 36004# need to make the FD available again. 36005if test "$no_create" != yes; then 36006 ac_cs_success=: 36007 ac_config_status_args= 36008 test "$silent" = yes && 36009 ac_config_status_args="$ac_config_status_args --quiet" 36010 exec 5>/dev/null 36011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 36012 exec 5>>config.log 36013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 36014 # would make configure fail if this is the last instruction. 36015 $ac_cs_success || as_fn_exit 1 36016fi 36017 36018# 36019# CONFIG_SUBDIRS section. 36020# 36021if test "$no_recursion" != yes; then 36022 36023 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 36024 # so they do not pile up. 36025 ac_sub_configure_args= 36026 ac_prev= 36027 eval "set x $ac_configure_args" 36028 shift 36029 for ac_arg 36030 do 36031 if test -n "$ac_prev"; then 36032 ac_prev= 36033 continue 36034 fi 36035 case $ac_arg in 36036 -cache-file | --cache-file | --cache-fil | --cache-fi \ 36037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 36038 ac_prev=cache_file ;; 36039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 36040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 36041 | --c=*) 36042 ;; 36043 --config-cache | -C) 36044 ;; 36045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 36046 ac_prev=srcdir ;; 36047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 36048 ;; 36049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 36050 ac_prev=prefix ;; 36051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 36052 ;; 36053 --disable-option-checking) 36054 ;; 36055 *) 36056 case $ac_arg in 36057 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36058 esac 36059 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 36060 esac 36061 done 36062 36063 # Always prepend --prefix to ensure using the same prefix 36064 # in subdir configurations. 36065 ac_arg="--prefix=$prefix" 36066 case $ac_arg in 36067 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36068 esac 36069 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 36070 36071 # Pass --silent 36072 if test "$silent" = yes; then 36073 ac_sub_configure_args="--silent $ac_sub_configure_args" 36074 fi 36075 36076 # Always prepend --disable-option-checking to silence warnings, since 36077 # different subdirs can have different --enable and --with options. 36078 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 36079 36080 ac_popdir=`pwd` 36081 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 36082 36083 # Do not complain, so a configure script can configure whichever 36084 # parts of a large source tree are present. 36085 test -d "$srcdir/$ac_dir" || continue 36086 36087 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 36088 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 36089 $as_echo "$ac_msg" >&6 36090 as_dir="$ac_dir"; as_fn_mkdir_p 36091 ac_builddir=. 36092 36093case "$ac_dir" in 36094.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36095*) 36096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 36097 # A ".." for each directory in $ac_dir_suffix. 36098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36099 case $ac_top_builddir_sub in 36100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36102 esac ;; 36103esac 36104ac_abs_top_builddir=$ac_pwd 36105ac_abs_builddir=$ac_pwd$ac_dir_suffix 36106# for backward compatibility: 36107ac_top_builddir=$ac_top_build_prefix 36108 36109case $srcdir in 36110 .) # We are building in place. 36111 ac_srcdir=. 36112 ac_top_srcdir=$ac_top_builddir_sub 36113 ac_abs_top_srcdir=$ac_pwd ;; 36114 [\\/]* | ?:[\\/]* ) # Absolute name. 36115 ac_srcdir=$srcdir$ac_dir_suffix; 36116 ac_top_srcdir=$srcdir 36117 ac_abs_top_srcdir=$srcdir ;; 36118 *) # Relative name. 36119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36120 ac_top_srcdir=$ac_top_build_prefix$srcdir 36121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36122esac 36123ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36124 36125 36126 cd "$ac_dir" 36127 36128 # Check for guested configure; otherwise get Cygnus style configure. 36129 if test -f "$ac_srcdir/configure.gnu"; then 36130 ac_sub_configure=$ac_srcdir/configure.gnu 36131 elif test -f "$ac_srcdir/configure"; then 36132 ac_sub_configure=$ac_srcdir/configure 36133 elif test -f "$ac_srcdir/configure.in"; then 36134 # This should be Cygnus configure. 36135 ac_sub_configure=$ac_aux_dir/configure 36136 else 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 36138$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 36139 ac_sub_configure= 36140 fi 36141 36142 # The recursion is here. 36143 if test -n "$ac_sub_configure"; then 36144 # Make the cache file name correct relative to the subdirectory. 36145 case $cache_file in 36146 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 36147 *) # Relative name. 36148 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 36149 esac 36150 36151 { $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 36152$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 36153 # The eval makes quoting arguments work. 36154 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 36155 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 36156 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 36157 fi 36158 36159 cd "$ac_popdir" 36160 done 36161fi 36162if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 36163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 36164$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 36165fi 36166 36167