1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p13. 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.8p13' 594PACKAGE_STRING='ntp 4.2.8p13' 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.8p13 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.8p13:";; 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.8p13 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.8p13, 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.8p13' 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 26094case "$host" in 26095*-convex-*) 26096 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 26097do : 26098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26099ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26100if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26101 cat >>confdefs.h <<_ACEOF 26102#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26103_ACEOF 26104 26105fi 26106 26107done 26108 26109 ;; 26110*-*-bsdi*) 26111 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 26112do : 26113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26114ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26116 cat >>confdefs.h <<_ACEOF 26117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26118_ACEOF 26119 26120fi 26121 26122done 26123 26124 ;; 26125esac 26126 26127case "$ac_cv_header_stdatomic_h" in 26128 yes) 26129 for ac_func in atomic_thread_fence 26130do : 26131 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence" 26132if test "x$ac_cv_func_atomic_thread_fence" = xyes; then : 26133 cat >>confdefs.h <<_ACEOF 26134#define HAVE_ATOMIC_THREAD_FENCE 1 26135_ACEOF 26136 26137fi 26138done 26139 26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5 26141$as_echo_n "checking for atomic_thread_fence()... " >&6; } 26142if ${ntp_cv_func_atomic_thread_fence+:} false; then : 26143 $as_echo_n "(cached) " >&6 26144else 26145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26146/* end confdefs.h. */ 26147 26148 #include <stdatomic.h> 26149 26150int 26151main () 26152{ 26153 26154 atomic_thread_fence(memory_order_seq_cst); 26155 26156 26157 ; 26158 return 0; 26159} 26160 ntp_cv_func_atomic_thread_fence=yes 26161_ACEOF 26162if ac_fn_c_try_compile "$LINENO"; then : 26163 ntp_cv_func_atomic_thread_fence=no 26164 26165fi 26166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26167 26168fi 26169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5 26170$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; } 26171 ;; 26172esac 26173 26174case "$host" in 26175 *-*-solaris2.6) 26176 # Broken... 26177 ;; 26178 *) 26179 for ac_func in ntp_adjtime ntp_gettime 26180do : 26181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26183if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26184 cat >>confdefs.h <<_ACEOF 26185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26186_ACEOF 26187 26188fi 26189done 26190 26191 ;; 26192esac 26193 26194case "$host" in 26195 *-*-*linux*) 26196 case "$ac_cv_func_ntp_gettime" in 26197 yes) 26198 ;; 26199 *) 26200 for ac_func in __ntp_gettime 26201do : 26202 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime" 26203if test "x$ac_cv_func___ntp_gettime" = xyes; then : 26204 cat >>confdefs.h <<_ACEOF 26205#define HAVE___NTP_GETTIME 1 26206_ACEOF 26207 26208fi 26209done 26210 26211 case "$ac_cv_func___ntp_gettime" in 26212 yes) 26213 26214$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h 26215 26216 26217$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h 26218 26219 esac 26220 ;; 26221 esac 26222 for ac_func in adjtimex 26223do : 26224 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex" 26225if test "x$ac_cv_func_adjtimex" = xyes; then : 26226 cat >>confdefs.h <<_ACEOF 26227#define HAVE_ADJTIMEX 1 26228_ACEOF 26229 26230fi 26231done 26232 26233 case "$ac_cv_func_adjtimex" in 26234 yes) 26235 26236$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h 26237 26238 26239$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 26240 26241 have_adjtimex=1 26242 ;; 26243 *) 26244 for ac_func in __adjtimex 26245do : 26246 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex" 26247if test "x$ac_cv_func___adjtimex" = xyes; then : 26248 cat >>confdefs.h <<_ACEOF 26249#define HAVE___ADJTIMEX 1 26250_ACEOF 26251 26252fi 26253done 26254 26255 case "$ac_cv_func___adjtimex" in 26256 yes) 26257 26258$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h 26259 26260 26261$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 26262 26263 26264$as_echo "#define adjtimex __adjtimex" >>confdefs.h 26265 26266 26267$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h 26268 26269 have_adjtimex=1 26270 esac 26271 ;; 26272 esac 26273esac 26274case "$have_adjtimex" in 26275 '') 26276 # nlist stuff is only needed for tickadj. 26277 saved_LIBS="$LIBS" 26278 LIBS= 26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5 26280$as_echo_n "checking for library containing nlist... " >&6; } 26281if ${ac_cv_search_nlist+:} false; then : 26282 $as_echo_n "(cached) " >&6 26283else 26284 ac_func_search_save_LIBS=$LIBS 26285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26286/* end confdefs.h. */ 26287 26288/* Override any GCC internal prototype to avoid an error. 26289 Use char because int might match the return type of a GCC 26290 builtin and then its argument prototype would still apply. */ 26291#ifdef __cplusplus 26292extern "C" 26293#endif 26294char nlist (); 26295int 26296main () 26297{ 26298return nlist (); 26299 ; 26300 return 0; 26301} 26302_ACEOF 26303for ac_lib in '' elf ld mld; do 26304 if test -z "$ac_lib"; then 26305 ac_res="none required" 26306 else 26307 ac_res=-l$ac_lib 26308 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26309 fi 26310 if ac_fn_c_try_link "$LINENO"; then : 26311 ac_cv_search_nlist=$ac_res 26312fi 26313rm -f core conftest.err conftest.$ac_objext \ 26314 conftest$ac_exeext 26315 if ${ac_cv_search_nlist+:} false; then : 26316 break 26317fi 26318done 26319if ${ac_cv_search_nlist+:} false; then : 26320 26321else 26322 ac_cv_search_nlist=no 26323fi 26324rm conftest.$ac_ext 26325LIBS=$ac_func_search_save_LIBS 26326fi 26327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5 26328$as_echo "$ac_cv_search_nlist" >&6; } 26329ac_res=$ac_cv_search_nlist 26330if test "$ac_res" != no; then : 26331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26332 26333fi 26334 26335 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...' 26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5 26337$as_echo_n "checking for library containing kvm_open... " >&6; } 26338if ${ac_cv_search_kvm_open+:} false; then : 26339 $as_echo_n "(cached) " >&6 26340else 26341 ac_func_search_save_LIBS=$LIBS 26342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26343/* end confdefs.h. */ 26344 26345/* Override any GCC internal prototype to avoid an error. 26346 Use char because int might match the return type of a GCC 26347 builtin and then its argument prototype would still apply. */ 26348#ifdef __cplusplus 26349extern "C" 26350#endif 26351char kvm_open (); 26352int 26353main () 26354{ 26355return kvm_open (); 26356 ; 26357 return 0; 26358} 26359_ACEOF 26360for ac_lib in '' kvm; do 26361 if test -z "$ac_lib"; then 26362 ac_res="none required" 26363 else 26364 ac_res=-l$ac_lib 26365 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26366 fi 26367 if ac_fn_c_try_link "$LINENO"; then : 26368 ac_cv_search_kvm_open=$ac_res 26369fi 26370rm -f core conftest.err conftest.$ac_objext \ 26371 conftest$ac_exeext 26372 if ${ac_cv_search_kvm_open+:} false; then : 26373 break 26374fi 26375done 26376if ${ac_cv_search_kvm_open+:} false; then : 26377 26378else 26379 ac_cv_search_kvm_open=no 26380fi 26381rm conftest.$ac_ext 26382LIBS=$ac_func_search_save_LIBS 26383fi 26384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5 26385$as_echo "$ac_cv_search_kvm_open" >&6; } 26386ac_res=$ac_cv_search_kvm_open 26387if test "$ac_res" != no; then : 26388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26389 26390fi 26391 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...' 26392 for ac_header in nlist.h sys/var.h 26393do : 26394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26395ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26397 cat >>confdefs.h <<_ACEOF 26398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26399_ACEOF 26400 26401fi 26402 26403done 26404 26405 case "$ac_cv_header_nlist_h" in 26406 yes) 26407 26408$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 26409 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 26411$as_echo_n "checking for n_un in struct nlist... " >&6; } 26412if ${ntp_cv_struct_nlist_n_un+:} false; then : 26413 $as_echo_n "(cached) " >&6 26414else 26415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26416/* end confdefs.h. */ 26417 26418 #include <nlist.h> 26419 26420int 26421main () 26422{ 26423 26424 struct nlist n; 26425 n.n_un.n_name = 0; 26426 26427 26428 ; 26429 return 0; 26430} 26431 ntp_cv_struct_nlist_n_un=yes 26432_ACEOF 26433if ac_fn_c_try_compile "$LINENO"; then : 26434 ntp_cv_struct_nlist_n_un=no 26435 26436fi 26437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26438 26439fi 26440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5 26441$as_echo "$ntp_cv_struct_nlist_n_un" >&6; } 26442 case "$ntp_cv_struct_nlist_n_un" in 26443 yes) 26444 26445$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 26446 26447 esac 26448 esac 26449 26450 LDADD_NLIST="$LIBS" 26451 LIBS="$saved_LIBS" 26452 { saved_LIBS=; unset saved_LIBS;} 26453esac 26454 26455for ac_header in sys/proc.h 26456do : 26457 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" " 26458 #ifdef HAVE_SYS_TYPES_H 26459 # include <sys/types.h> 26460 #endif 26461 #ifdef HAVE_SYS_TIME_H 26462 # include <sys/time.h> 26463 #endif 26464 26465" 26466if test "x$ac_cv_header_sys_proc_h" = xyes; then : 26467 cat >>confdefs.h <<_ACEOF 26468#define HAVE_SYS_PROC_H 1 26469_ACEOF 26470 26471fi 26472 26473done 26474 26475 26476for ac_header in sys/resource.h 26477do : 26478 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 26479 #ifdef HAVE_SYS_TIME_H 26480 # include <sys/time.h> 26481 #endif 26482 26483" 26484if test "x$ac_cv_header_sys_resource_h" = xyes; then : 26485 cat >>confdefs.h <<_ACEOF 26486#define HAVE_SYS_RESOURCE_H 1 26487_ACEOF 26488 26489fi 26490 26491done 26492 26493 26494for ac_header in sys/shm.h 26495do : 26496 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" " 26497 #ifdef HAVE_SYS_TYPES_H 26498 # include <sys/types.h> 26499 #endif 26500 #ifdef HAVE_SYS_IPC_H 26501 # include <sys/ipc.h> 26502 #endif 26503 26504" 26505if test "x$ac_cv_header_sys_shm_h" = xyes; then : 26506 cat >>confdefs.h <<_ACEOF 26507#define HAVE_SYS_SHM_H 1 26508_ACEOF 26509 26510fi 26511 26512done 26513 26514 26515for ac_header in sys/timex.h 26516do : 26517 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" " 26518 #ifdef HAVE_SYS_TIME_H 26519 # include <sys/time.h> 26520 #endif 26521 26522" 26523if test "x$ac_cv_header_sys_timex_h" = xyes; then : 26524 cat >>confdefs.h <<_ACEOF 26525#define HAVE_SYS_TIMEX_H 1 26526_ACEOF 26527 26528fi 26529 26530done 26531 26532 26533 26534 26535# We could do a cv check here, but is it worth it? 26536 26537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26538/* end confdefs.h. */ 26539 26540 #include <sys/socket.h> 26541 #ifndef AF_UNSPEC 26542 #include "Bletch: AF_UNSPEC is undefined!" 26543 #endif 26544 #if AF_UNSPEC != 0 26545 #include "Bletch: AF_UNSPEC != 0" 26546 #endif 26547 26548int 26549main () 26550{ 26551{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5 26552$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;} 26553 ; 26554 return 0; 26555} 26556 26557_ACEOF 26558if ac_fn_c_try_compile "$LINENO"; then : 26559 26560fi 26561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26562 26563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 26564$as_echo_n "checking return type of signal handlers... " >&6; } 26565if ${ac_cv_type_signal+:} false; then : 26566 $as_echo_n "(cached) " >&6 26567else 26568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26569/* end confdefs.h. */ 26570#include <sys/types.h> 26571#include <signal.h> 26572 26573int 26574main () 26575{ 26576return *(signal (0, 0)) (0) == 1; 26577 ; 26578 return 0; 26579} 26580_ACEOF 26581if ac_fn_c_try_compile "$LINENO"; then : 26582 ac_cv_type_signal=int 26583else 26584 ac_cv_type_signal=void 26585fi 26586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26587fi 26588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 26589$as_echo "$ac_cv_type_signal" >&6; } 26590 26591cat >>confdefs.h <<_ACEOF 26592#define RETSIGTYPE $ac_cv_type_signal 26593_ACEOF 26594 26595 26596ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 26597if test "x$ac_cv_type_off_t" = xyes; then : 26598 26599else 26600 26601cat >>confdefs.h <<_ACEOF 26602#define off_t long int 26603_ACEOF 26604 26605fi 26606 26607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 26608$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 26609if ${ac_cv_struct_tm+:} false; then : 26610 $as_echo_n "(cached) " >&6 26611else 26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26613/* end confdefs.h. */ 26614#include <sys/types.h> 26615#include <time.h> 26616 26617int 26618main () 26619{ 26620struct tm tm; 26621 int *p = &tm.tm_sec; 26622 return !p; 26623 ; 26624 return 0; 26625} 26626_ACEOF 26627if ac_fn_c_try_compile "$LINENO"; then : 26628 ac_cv_struct_tm=time.h 26629else 26630 ac_cv_struct_tm=sys/time.h 26631fi 26632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26633fi 26634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 26635$as_echo "$ac_cv_struct_tm" >&6; } 26636if test $ac_cv_struct_tm = sys/time.h; then 26637 26638$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 26639 26640fi 26641 26642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 26643$as_echo_n "checking for a fallback value for HZ... " >&6; } 26644if ${ntp_cv_default_hz+:} false; then : 26645 $as_echo_n "(cached) " >&6 26646else 26647 26648 ntp_cv_default_hz=100 26649 case "$host" in 26650 alpha*-dec-osf4*|alpha*-dec-osf5*) 26651 ntp_cv_default_hz=1024 26652 ;; 26653 mips-dec-ultrix4*) 26654 ntp_cv_default_hz=256 26655 ;; 26656 esac 26657 26658 26659fi 26660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5 26661$as_echo "$ntp_cv_default_hz" >&6; } 26662 26663cat >>confdefs.h <<_ACEOF 26664#define DEFAULT_HZ $ntp_cv_default_hz 26665_ACEOF 26666 26667 26668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 26669$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 26670if ${ntp_cv_override_hz+:} false; then : 26671 $as_echo_n "(cached) " >&6 26672else 26673 26674 ntp_cv_override_hz=no 26675 case "$host" in 26676 alpha*-dec-osf4*|alpha*-dec-osf5*) 26677 ntp_cv_override_hz=yes 26678 ;; 26679 mips-dec-ultrix4*) 26680 ntp_cv_override_hz=yes 26681 ;; 26682 *-*-freebsd*) 26683 ntp_cv_override_hz=yes 26684 ;; 26685 *-*-sunos4*) 26686 ntp_cv_override_hz=yes 26687 ;; 26688 *-*-kfreebsd*) 26689 ntp_cv_override_hz=yes 26690 ;; 26691 esac 26692 26693 26694fi 26695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5 26696$as_echo "$ntp_cv_override_hz" >&6; } 26697case "$ntp_cv_override_hz" in 26698 yes) 26699 26700$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 26701 26702esac 26703 26704 26705 26706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 26707$as_echo_n "checking for struct rt_msghdr... " >&6; } 26708if ${ntp_cv_struct_rt_msghdr+:} false; then : 26709 $as_echo_n "(cached) " >&6 26710else 26711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26712/* end confdefs.h. */ 26713 26714 #include <sys/types.h> 26715 #include <sys/socket.h> 26716 #include <net/if.h> 26717 #include <net/route.h> 26718 26719int 26720main () 26721{ 26722 26723 struct rt_msghdr p; 26724 26725 26726 ; 26727 return 0; 26728} 26729_ACEOF 26730if ac_fn_c_try_compile "$LINENO"; then : 26731 ntp_cv_struct_rt_msghdr=yes 26732else 26733 ntp_cv_struct_rt_msghdr=no 26734 26735fi 26736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26737 26738fi 26739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 26740$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 26741 26742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 26743$as_echo_n "checking for struct rtattr... " >&6; } 26744if ${ntp_cv_rtattr+:} false; then : 26745 $as_echo_n "(cached) " >&6 26746else 26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26748/* end confdefs.h. */ 26749 26750 #include <stddef.h> 26751 #include <sys/socket.h> 26752 #include <linux/rtnetlink.h> 26753 26754int 26755main () 26756{ 26757 26758 struct rtattr p; 26759 26760 26761 ; 26762 return 0; 26763} 26764_ACEOF 26765if ac_fn_c_try_compile "$LINENO"; then : 26766 ntp_cv_rtattr=yes 26767else 26768 ntp_cv_rtattr=no 26769 26770fi 26771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26772 26773fi 26774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5 26775$as_echo "$ntp_cv_rtattr" >&6; } 26776 26777case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 26778 *yes*) 26779 26780$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 26781 26782 case "$ntp_cv_rtattr" in 26783 yes) 26784 26785$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 26786 26787 esac 26788esac 26789 26790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 26791$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 26792if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then : 26793 $as_echo_n "(cached) " >&6 26794else 26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26796/* end confdefs.h. */ 26797 26798 #include <signal.h> 26799 26800int 26801main () 26802{ 26803 26804 struct sigaction act; 26805 act.sa_sigaction = 0; 26806 26807 26808 ; 26809 return 0; 26810} 26811_ACEOF 26812if ac_fn_c_try_compile "$LINENO"; then : 26813 ntp_cv_struct_sigaction_has_sa_sigaction=yes 26814else 26815 ntp_cv_struct_sigaction_has_sa_sigaction=no 26816 26817fi 26818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26819 26820fi 26821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5 26822$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; } 26823case "$ntp_cv_struct_sigaction_has_sa_sigaction" in 26824 yes) 26825 26826$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 26827 26828esac 26829 26830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 26831$as_echo_n "checking for struct ppsclockev... " >&6; } 26832if ${ntp_cv_struct_ppsclockev+:} false; then : 26833 $as_echo_n "(cached) " >&6 26834else 26835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26836/* end confdefs.h. */ 26837 26838 #ifdef HAVE_SYS_TYPES_H 26839 # include <sys/types.h> 26840 #endif 26841 #ifdef HAVE_SYS_TERMIOS_H 26842 # include <sys/termios.h> 26843 #endif 26844 #ifdef HAVE_SYS_TIME_H 26845 # include <sys/time.h> 26846 #endif 26847 #ifdef HAVE_SYS_PPSCLOCK_H 26848 # include <sys/ppsclock.h> 26849 #endif 26850 26851int 26852main () 26853{ 26854 26855 extern struct ppsclockev *pce; 26856 return pce->serial; 26857 26858 26859 ; 26860 return 0; 26861} 26862_ACEOF 26863if ac_fn_c_try_compile "$LINENO"; then : 26864 ntp_cv_struct_ppsclockev=yes 26865else 26866 ntp_cv_struct_ppsclockev=no 26867 26868fi 26869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26870 26871fi 26872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5 26873$as_echo "$ntp_cv_struct_ppsclockev" >&6; } 26874case "$ntp_cv_struct_ppsclockev" in 26875 yes) 26876 26877$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 26878 26879esac 26880 26881case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 26882 *yes*) 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 26884$as_echo_n "checking for struct snd_size... " >&6; } 26885if ${ntp_cv_struct_snd_size+:} false; then : 26886 $as_echo_n "(cached) " >&6 26887else 26888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26889/* end confdefs.h. */ 26890 26891 #ifdef HAVE_MACHINE_SOUNDCARD_H 26892 # include <machine/soundcard.h> 26893 #endif 26894 #ifdef HAVE_SYS_SOUNDCARD_H 26895 # include <sys/soundcard.h> 26896 #endif 26897 26898int 26899main () 26900{ 26901 26902 extern struct snd_size *ss; 26903 return ss->rec_size; 26904 26905 26906 ; 26907 return 0; 26908} 26909_ACEOF 26910if ac_fn_c_try_compile "$LINENO"; then : 26911 ntp_cv_struct_snd_size=yes 26912else 26913 ntp_cv_struct_snd_size=no 26914 26915fi 26916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26917 26918fi 26919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5 26920$as_echo "$ntp_cv_struct_snd_size" >&6; } 26921 case "$ntp_cv_struct_snd_size" in 26922 yes) 26923 26924$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 26925 26926 esac 26927esac 26928 26929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 26930$as_echo_n "checking struct clockinfo for hz... " >&6; } 26931if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 26932 $as_echo_n "(cached) " >&6 26933else 26934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26935/* end confdefs.h. */ 26936 26937 #include <sys/time.h> 26938 26939int 26940main () 26941{ 26942 26943 extern struct clockinfo *pc; 26944 return pc->hz; 26945 26946 26947 ; 26948 return 0; 26949} 26950_ACEOF 26951if ac_fn_c_try_compile "$LINENO"; then : 26952 ntp_cv_struct_clockinfo_has_hz=yes 26953else 26954 ntp_cv_struct_clockinfo_has_hz=no 26955 26956fi 26957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26958 26959fi 26960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 26961$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 26962case "$ntp_cv_struct_clockinfo_has_hz" in 26963 yes) 26964 26965$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 26966 26967esac 26968 26969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 26970$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 26971if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 26972 $as_echo_n "(cached) " >&6 26973else 26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26975/* end confdefs.h. */ 26976 26977 #include <sys/time.h> 26978 26979int 26980main () 26981{ 26982 26983 extern struct clockinfo *pc; 26984 return pc->tickadj; 26985 26986 26987 ; 26988 return 0; 26989} 26990_ACEOF 26991if ac_fn_c_try_compile "$LINENO"; then : 26992 ntp_cv_struct_clockinfo_has_hz=yes 26993else 26994 ntp_cv_struct_clockinfo_has_hz=no 26995 26996fi 26997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26998 26999fi 27000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 27001$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 27002case "$ntp_cv_struct_clockinfo_has_hz" in 27003 yes) 27004 27005$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 27006 27007esac 27008 27009case "$ntp_cv_struct_ntptimeval" in 27010 yes) 27011 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" " 27012 #ifdef HAVE_SYS_TIME_H 27013 # include <sys/time.h> 27014 #else 27015 # ifdef HAVE_TIME_H 27016 # include <time.h> 27017 # endif 27018 #endif 27019 #ifdef HAVE_SYS_TIMEX_H 27020 # include <sys/timex.h> 27021 #else 27022 # ifdef HAVE_TIMEX_H 27023 # include <timex.h> 27024 # endif 27025 #endif 27026 27027 27028" 27029if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then : 27030 27031cat >>confdefs.h <<_ACEOF 27032#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 27033_ACEOF 27034 27035 27036fi 27037 27038esac 27039 27040#### 27041 27042for ac_func in arc4random_buf 27043do : 27044 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 27045if test "x$ac_cv_func_arc4random_buf" = xyes; then : 27046 cat >>confdefs.h <<_ACEOF 27047#define HAVE_ARC4RANDOM_BUF 1 27048_ACEOF 27049 27050fi 27051done 27052 27053 27054#### 27055 27056saved_LIBS="$LIBS" 27057LIBS="$LIBS $LDADD_LIBNTP" 27058for ac_func in daemon 27059do : 27060 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 27061if test "x$ac_cv_func_daemon" = xyes; then : 27062 cat >>confdefs.h <<_ACEOF 27063#define HAVE_DAEMON 1 27064_ACEOF 27065 27066fi 27067done 27068 27069# XXX if we keep everything in LIBS and also keep separate lists, this simplifies. 27070LIBS="$saved_LIBS" 27071{ saved_LIBS=; unset saved_LIBS;} 27072 27073for ac_func in finite 27074do : 27075 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 27076if test "x$ac_cv_func_finite" = xyes; then : 27077 cat >>confdefs.h <<_ACEOF 27078#define HAVE_FINITE 1 27079_ACEOF 27080 27081else 27082 for ac_func in isfinite 27083do : 27084 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 27085if test "x$ac_cv_func_isfinite" = xyes; then : 27086 cat >>confdefs.h <<_ACEOF 27087#define HAVE_ISFINITE 1 27088_ACEOF 27089 27090else 27091 27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 27093$as_echo_n "checking for isfinite with <math.h>... " >&6; } 27094 _libs=$LIBS 27095 # XXX 27096 LIBS="$LIBS -lm" 27097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27098/* end confdefs.h. */ 27099 27100 #include <math.h> 27101 27102int 27103main () 27104{ 27105 27106 float f = 0.0; 27107 isfinite(f); 27108 27109 27110 ; 27111 return 0; 27112} 27113_ACEOF 27114if ac_fn_c_try_link "$LINENO"; then : 27115 ans=yes 27116else 27117 ans=no 27118 27119fi 27120rm -f core conftest.err conftest.$ac_objext \ 27121 conftest$ac_exeext conftest.$ac_ext 27122 LIBS=$_libs 27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27124$as_echo "$ans" >&6; } 27125 case "$ans" in 27126 yes) 27127 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 27128 27129 esac 27130 27131 27132fi 27133done 27134 27135 27136fi 27137done 27138 27139 27140for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal 27141do : 27142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27143ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27144if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27145 cat >>confdefs.h <<_ACEOF 27146#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27147_ACEOF 27148 27149fi 27150done 27151 27152 27153# kvm_open() is only used by tickadj. Also see above. 27154case "$ac_cv_header_kvm_h" in 27155 yes) 27156 for ac_func in kvm_open 27157do : 27158 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 27159if test "x$ac_cv_func_kvm_open" = xyes; then : 27160 cat >>confdefs.h <<_ACEOF 27161#define HAVE_KVM_OPEN 1 27162_ACEOF 27163 27164fi 27165done 27166 27167 ;; 27168esac 27169 27170case "$host" in 27171 *-*-sco3.2v5.0.*) 27172 # Just stubs. Sigh. 27173 ;; 27174 *) for ac_func in mkstemp 27175do : 27176 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 27177if test "x$ac_cv_func_mkstemp" = xyes; then : 27178 cat >>confdefs.h <<_ACEOF 27179#define HAVE_MKSTEMP 1 27180_ACEOF 27181 27182fi 27183done 27184 27185 ;; 27186esac 27187for ac_func in mktime 27188do : 27189 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 27190if test "x$ac_cv_func_mktime" = xyes; then : 27191 cat >>confdefs.h <<_ACEOF 27192#define HAVE_MKTIME 1 27193_ACEOF 27194 27195fi 27196done 27197 27198case "$host" in 27199 *-*-aix[4-9]*) 27200 # XXX only verified thru AIX6. 27201 # Just a stub. Sigh. 27202 ;; 27203 *-*-irix[45]*) 27204 # Just a stub in "old" Irix. Sigh. 27205 ;; 27206# In the belief that the fix for bug 1223 fixes mlockall() under linux... 27207# *-*-*linux*) 27208# # there, but more trouble than it is worth for now (resolver problems) 27209# ;; 27210 *-*-qnx*) 27211 # Apparently there but not working in QNX. Sigh? 27212 ;; 27213 *-*-sco3.2v5.0.*) 27214 # Just a stub. Sigh. 27215 ;; 27216 alpha*-dec-osf4*|alpha*-dec-osf5*) 27217 # mlockall is there, as a #define calling memlk via <sys/mman.h> 27218 # Not easy to test for - cheat. 27219 for ac_func in memlk 27220do : 27221 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 27222if test "x$ac_cv_func_memlk" = xyes; then : 27223 cat >>confdefs.h <<_ACEOF 27224#define HAVE_MEMLK 1 27225_ACEOF 27226 ac_cv_func_mlockall=yes 27227fi 27228done 27229 27230 for ac_func in mlockall 27231do : 27232 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 27233if test "x$ac_cv_func_mlockall" = xyes; then : 27234 cat >>confdefs.h <<_ACEOF 27235#define HAVE_MLOCKALL 1 27236_ACEOF 27237 27238fi 27239done 27240 27241 ;; 27242 *) for ac_func in mlockall 27243do : 27244 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 27245if test "x$ac_cv_func_mlockall" = xyes; then : 27246 cat >>confdefs.h <<_ACEOF 27247#define HAVE_MLOCKALL 1 27248_ACEOF 27249 27250fi 27251done 27252 27253 ;; 27254esac 27255for ac_func in nice plock pututline pututxline readlink rtprio 27256do : 27257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27258ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27259if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27260 cat >>confdefs.h <<_ACEOF 27261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27262_ACEOF 27263 27264fi 27265done 27266 27267case "$host" in 27268 *-*-aix[4-9]*) 27269 # XXX only verified thru AIX6. 27270 # Just a stub in AIX 4. Sigh. 27271 ;; 27272 *-*-solaris2.5*) 27273 # Just stubs in solaris2.5. Sigh. 27274 ;; 27275 *) for ac_func in sched_setscheduler 27276do : 27277 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 27278if test "x$ac_cv_func_sched_setscheduler" = xyes; then : 27279 cat >>confdefs.h <<_ACEOF 27280#define HAVE_SCHED_SETSCHEDULER 1 27281_ACEOF 27282 27283fi 27284done 27285 27286 ;; 27287esac 27288for ac_func in setlinebuf setpgid setpriority setsid setvbuf 27289do : 27290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27292if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27293 cat >>confdefs.h <<_ACEOF 27294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27295_ACEOF 27296 27297fi 27298done 27299 27300for ac_func in strdup strerror setrlimit strchr 27301do : 27302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27304if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27305 cat >>confdefs.h <<_ACEOF 27306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27307_ACEOF 27308 27309fi 27310done 27311 27312case "$host" in 27313 *-*-aix[4-9]*) 27314 # XXX only verified thru AIX6. 27315 # Just stubs. Sigh. 27316 ;; 27317 *-*-netbsd1*) 27318 # Just stubs. Sigh. 27319 ;; 27320 *-*-netbsdelf1*) 27321 # Just stubs. Sigh. 27322 ;; 27323 *-*-openbsd*) 27324 # Just stubs. Sigh. 27325 ;; 27326 *) 27327 for ac_func in timer_create 27328do : 27329 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" 27330if test "x$ac_cv_func_timer_create" = xyes; then : 27331 cat >>confdefs.h <<_ACEOF 27332#define HAVE_TIMER_CREATE 1 27333_ACEOF 27334 27335fi 27336done 27337 27338 ;; 27339esac 27340 27341 27342 27343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5 27344$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; } 27345if ${ntp_cv_rlimit_memlock+:} false; then : 27346 $as_echo_n "(cached) " >&6 27347else 27348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27349/* end confdefs.h. */ 27350 27351 #ifdef HAVE_SYS_TYPES_H 27352 # include <sys/types.h> 27353 #endif 27354 #ifdef HAVE_SYS_TIME_H 27355 # include <sys/time.h> 27356 #endif 27357 #ifdef HAVE_SYS_RESOURCE_H 27358 # include <sys/resource.h> 27359 #endif 27360 27361int 27362main () 27363{ 27364 27365 getrlimit(RLIMIT_MEMLOCK, 0); 27366 27367 27368 ; 27369 return 0; 27370} 27371_ACEOF 27372if ac_fn_c_try_compile "$LINENO"; then : 27373 ntp_cv_rlimit_memlock=yes 27374else 27375 ntp_cv_rlimit_memlock=no 27376 27377fi 27378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27379 27380fi 27381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5 27382$as_echo "$ntp_cv_rlimit_memlock" >&6; } 27383case "$host" in 27384 *-*-*linux*) 27385 ntp_dflt_rlimit_memlock="-1" ;; 27386 *) ntp_dflt_rlimit_memlock="32" ;; 27387esac 27388case "$ntp_cv_rlimit_memlock" in 27389 yes) 27390 27391 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;; 27392esac 27393 27394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5 27395$as_echo_n "checking for RLIMIT_STACK... " >&6; } 27396if ${ntp_cv_rlimit_stack+:} false; then : 27397 $as_echo_n "(cached) " >&6 27398else 27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27400/* end confdefs.h. */ 27401 27402 #ifdef HAVE_SYS_TYPES_H 27403 # include <sys/types.h> 27404 #endif 27405 #ifdef HAVE_SYS_TIME_H 27406 # include <sys/time.h> 27407 #endif 27408 #ifdef HAVE_SYS_RESOURCE_H 27409 # include <sys/resource.h> 27410 #endif 27411 27412int 27413main () 27414{ 27415 27416 getrlimit(RLIMIT_STACK, 0); 27417 27418 27419 ; 27420 return 0; 27421} 27422_ACEOF 27423if ac_fn_c_try_compile "$LINENO"; then : 27424 ntp_cv_rlimit_stack=yes 27425else 27426 ntp_cv_rlimit_stack=no 27427 27428fi 27429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27430 27431fi 27432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5 27433$as_echo "$ntp_cv_rlimit_stack" >&6; } 27434case "$ntp_cv_rlimit_stack" in 27435 yes) 27436 27437 HAVE_RLIMIT_STACK=" stacksize 50" 27438esac 27439 27440# HMS: Only if we are doing the MLOCKALL stuff... 27441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5 27442$as_echo_n "checking for the default number of 4k stack pages... " >&6; } 27443 27444# Check whether --with-stack-limit was given. 27445if test "${with_stack_limit+set}" = set; then : 27446 withval=$with_stack_limit; ans=$withval 27447else 27448 ans=yes 27449 27450fi 27451 27452case "$ans" in 27453 yes | no) 27454 case "$host" in 27455 *-*-openbsd*) 27456 ans=200 27457 ;; 27458 *) ans=50 27459 ;; 27460 esac 27461 ;; 27462 [1-9][0-9]*) 27463 ;; 27464 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5 27465 ;; 27466esac 27467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27468$as_echo "$ans" >&6; } 27469 27470cat >>confdefs.h <<_ACEOF 27471#define DFLT_RLIMIT_STACK $ans 27472_ACEOF 27473 27474 27475# HMS: only if we have RLIMIT_MEMLOCK 27476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5 27477$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; } 27478 27479# Check whether --with-memlock was given. 27480if test "${with_memlock+set}" = set; then : 27481 withval=$with_memlock; ans=$withval 27482else 27483 ans=yes 27484 27485fi 27486 27487case "$ans" in 27488 yes | no) 27489 ans=$ntp_dflt_rlimit_memlock 27490 ;; 27491 [1-9][0-9]*) ;; 27492 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5 27493 ;; 27494esac 27495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 27496$as_echo "$ans" >&6; } 27497 27498cat >>confdefs.h <<_ACEOF 27499#define DFLT_RLIMIT_MEMLOCK $ans 27500_ACEOF 27501 27502 27503 27504 27505# some OSes prefer _exit() in forked children to exit() 27506for ac_func in _exit 27507do : 27508 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit" 27509if test "x$ac_cv_func__exit" = xyes; then : 27510 cat >>confdefs.h <<_ACEOF 27511#define HAVE__EXIT 1 27512_ACEOF 27513 27514fi 27515done 27516 27517ntp_worker_child_exit=exit 27518case "$ac_cv_func__exit::$host_os" in 27519 yes::netbsd*) 27520 ntp_worker_child_exit=_exit 27521 ;; 27522 yes::openbsd*) 27523 ntp_worker_child_exit=_exit 27524 ;; 27525esac 27526 27527cat >>confdefs.h <<_ACEOF 27528#define WORKER_CHILD_EXIT $ntp_worker_child_exit 27529_ACEOF 27530 27531 27532for ac_func in umask uname updwtmp updwtmpx 27533do : 27534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27536if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27537 cat >>confdefs.h <<_ACEOF 27538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27539_ACEOF 27540 27541fi 27542done 27543 27544 27545### 27546 27547# http://bugs.ntp.org/737 27548case "$ac_cv_func_recvmsg" in 27549 yes) 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 27551$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 27552if ${ntp_cv_struct_iovec_help+:} false; then : 27553 $as_echo_n "(cached) " >&6 27554else 27555 27556 compiled=no 27557 for ntp_cv_struct_iovec_help in '0' '1'; do 27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27559/* end confdefs.h. */ 27560 27561 #ifdef HAVE_SYS_TYPES_H 27562 # include <sys/types.h> 27563 #endif 27564 #ifdef HAVE_SYS_SOCKET_H 27565 # include <sys/socket.h> 27566 #endif 27567 #if $ntp_cv_struct_iovec_help 27568 # include <sys/uio.h> 27569 #endif 27570 27571int 27572main () 27573{ 27574 27575 void foo(void) { 27576 ssize_t x; 27577 int s = 0; 27578 struct iovec iov; 27579 struct msghdr mh; 27580 int flags = 0; 27581 27582 mh.msg_iov = &iov; 27583 x = recvmsg(s, &mh, flags); 27584 } 27585 27586 27587 ; 27588 return 0; 27589} 27590_ACEOF 27591if ac_fn_c_try_compile "$LINENO"; then : 27592 compiled=yes ; break 1 27593fi 27594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27595 done 27596 case "$compiled" in 27597 no) 27598 ntp_cv_struct_iovec_help=0 27599 esac 27600 { compiled=; unset compiled;} 27601 27602 27603fi 27604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5 27605$as_echo "$ntp_cv_struct_iovec_help" >&6; } 27606 case "$ntp_cv_struct_iovec_help" in 27607 1) 27608 27609$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 27610 27611 esac 27612esac 27613 27614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 27615$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 27616if ${ntp_cv_func_setpgrp_nargs+:} false; then : 27617 $as_echo_n "(cached) " >&6 27618else 27619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27620/* end confdefs.h. */ 27621 27622 #ifdef HAVE_SYS_TYPES_H 27623 # include <sys/types.h> 27624 #endif 27625 #ifdef HAVE_UNISTD_H 27626 # include <unistd.h> 27627 #endif 27628 27629int 27630main () 27631{ 27632 27633 setpgrp(0, 0); 27634 27635 27636 ; 27637 return 0; 27638} 27639_ACEOF 27640if ac_fn_c_try_compile "$LINENO"; then : 27641 ntp_cv_func_setpgrp_nargs=2 27642else 27643 ntp_cv_func_setpgrp_nargs=0 27644 27645fi 27646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27647 27648fi 27649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5 27650$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; } 27651case "$ntp_cv_func_setpgrp_nargs" in 27652 0) 27653 27654$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 27655 27656esac 27657 27658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 27659$as_echo_n "checking if we need to declare 'errno'... " >&6; } 27660if ${ntp_cv_decl_errno+:} false; then : 27661 $as_echo_n "(cached) " >&6 27662else 27663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27664/* end confdefs.h. */ 27665 27666 #ifdef HAVE_ERRNO_H 27667 # include <errno.h> 27668 #endif 27669 27670int 27671main () 27672{ 27673 27674 errno = 0; 27675 27676 27677 ; 27678 return 0; 27679} 27680_ACEOF 27681if ac_fn_c_try_compile "$LINENO"; then : 27682 ntp_cv_decl_errno=no 27683else 27684 ntp_cv_decl_errno=yes 27685 27686fi 27687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27688 27689fi 27690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5 27691$as_echo "$ntp_cv_decl_errno" >&6; } 27692case "$ntp_cv_decl_errno" in 27693 yes) 27694 27695$as_echo "#define DECL_ERRNO 1" >>confdefs.h 27696 27697esac 27698 27699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 27700$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 27701if ${ntp_cv_decl_h_errno+:} false; then : 27702 $as_echo_n "(cached) " >&6 27703else 27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27705/* end confdefs.h. */ 27706 27707 #include <sys/types.h> 27708 #ifdef HAVE_NETINET_IN_H 27709 # include <netinet/in.h> 27710 #endif 27711 #ifdef HAVE_ARPA_NAMESER_H 27712 # include <arpa/nameser.h> 27713 #endif 27714 #ifdef HAVE_NETDB_H 27715 # include <netdb.h> 27716 #endif 27717 #ifdef HAVE_RESOLV_H 27718 # include <resolv.h> 27719 #endif 27720 27721int 27722main () 27723{ 27724 27725 extern int h_errno; 27726 27727 27728 ; 27729 return 0; 27730} 27731_ACEOF 27732if ac_fn_c_try_compile "$LINENO"; then : 27733 ntp_cv_decl_h_errno=yes 27734else 27735 ntp_cv_decl_h_errno=no 27736 27737fi 27738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27739 27740fi 27741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5 27742$as_echo "$ntp_cv_decl_h_errno" >&6; } 27743case "$ntp_cv_decl_h_errno" in 27744 yes) 27745 27746$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 27747 27748esac 27749 27750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 27751$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 27752if ${ntp_cv_decl_syscall+:} false; then : 27753 $as_echo_n "(cached) " >&6 27754else 27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27756/* end confdefs.h. */ 27757 27758 #ifdef HAVE_SYS_TYPES_H 27759 # include <sys/types.h> 27760 #endif 27761 #ifdef HAVE_UNISTD_H 27762 # include <unistd.h> 27763 #endif 27764 27765int 27766main () 27767{ 27768 27769 extern int syscall (int, ...); 27770 27771 27772 ; 27773 return 0; 27774} 27775 ntp_cv_decl_syscall=yes 27776_ACEOF 27777if ac_fn_c_try_compile "$LINENO"; then : 27778 ntp_cv_decl_syscall=no 27779 27780fi 27781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27782 27783fi 27784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5 27785$as_echo "$ntp_cv_decl_syscall" >&6; } 27786case "$ntp_cv_decl_syscall" in 27787 yes) 27788 27789$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 27790 27791esac 27792 27793case "$host" in 27794 *-*-aix4.3.*) 27795 27796$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 27797 # Needed for XLC under AIX 4.3.2 27798 ;; 27799 *-*-mpeix*) 27800 27801$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27802 27803 27804$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 27805 27806 27807$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27808 27809 27810$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27811 27812 27813$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27814 27815 27816$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27817 27818 27819$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27820 27821 ;; 27822 *-*-osf[45]*) 27823 27824$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 27825 27826 27827$as_echo "#define DECL_STIME_1 1" >>confdefs.h 27828 27829 ;; 27830 *-*-qnx*) 27831 27832$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27833 27834 ;; 27835 *-*-riscos4*) 27836 27837$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27838 27839 27840$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27841 27842 27843$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27844 27845 27846$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27847 27848 27849$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 27850 27851 27852$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27853 27854 27855$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 27856 27857 27858$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27859 27860 27861$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27862 27863 27864$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 27865 27866 27867$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 27868 27869 27870$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 27871 27872 27873$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27874 27875 27876$as_echo "#define DECL_TIME_0 1" >>confdefs.h 27877 27878 27879$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27880 27881 27882$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 27883 27884 ;; 27885 *-*-solaris2*) 27886 27887$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 27888 27889 27890$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 27891 27892 case "$host" in 27893 *-*-solaris2.4) 27894 27895$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27896 27897 ;; 27898 esac 27899 ;; 27900 *-*-sunos4*) 27901 27902$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27903 27904 27905$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 27906 27907 27908$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27909 27910 27911$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27912 27913 27914$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27915 27916 27917$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 27918 27919 27920$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27921 27922 27923$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 27924 27925 27926$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 27927 27928 27929$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27930 27931 27932$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27933 27934 27935$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 27936 27937 27938$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 27939 27940 case "`basename $ac_cv_prog_CC`" in 27941 acc*) ;; 27942 *) 27943$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 27944 27945 ;; 27946 esac 27947 27948$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 27949 27950 27951$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 27952 27953 27954$as_echo "#define DECL_TIME_0 1" >>confdefs.h 27955 27956 27957$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 27958 27959 27960$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 27961 27962 27963$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 27964 27965 27966$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 27967 27968 ;; 27969 *-*-ultrix4*) 27970 27971$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 27972 27973 27974$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 27975 27976 27977$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 27978 27979 27980$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 27981 27982 27983$as_echo "#define DECL_IPC_0 1" >>confdefs.h 27984 27985 27986$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 27987 27988 27989$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 27990 27991 27992$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 27993 27994 27995$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 27996 27997 27998$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 27999 28000 28001$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 28002 28003 28004$as_echo "#define DECL_STIME_0 1" >>confdefs.h 28005 28006 28007$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 28008 28009 28010$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 28011 28012 ;; 28013esac 28014 28015case "$host" in 28016 *-*-sco3.2*) 28017 28018$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 28019 28020 ;; 28021esac 28022 28023case "$host" in 28024 *-*-hpux[567]*) 28025 28026$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 28027 28028esac 28029 28030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 28031$as_echo_n "checking if we will open the broadcast socket... " >&6; } 28032if ${ntp_cv_var_open_bcast_socket+:} false; then : 28033 $as_echo_n "(cached) " >&6 28034else 28035 28036 ans=yes 28037 case "$host" in 28038 *-*-domainos) 28039 ans=no 28040 esac 28041 ntp_cv_var_open_bcast_socket=$ans 28042 28043 28044fi 28045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5 28046$as_echo "$ntp_cv_var_open_bcast_socket" >&6; } 28047case "$ntp_cv_var_open_bcast_socket" in 28048 yes) 28049 28050$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 28051 28052esac 28053 28054case "$host" in 28055 *-*-hpux*) 28056 28057$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 28058 28059esac 28060 28061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 28062$as_echo_n "checking if process groups are set with -pid... " >&6; } 28063if ${ntp_cv_arg_setpgrp_negpid+:} false; then : 28064 $as_echo_n "(cached) " >&6 28065else 28066 28067 case "$host" in 28068 *-*-hpux[567]*) 28069 ans=no 28070 ;; 28071 *-*-hpux*) 28072 ans=yes 28073 ;; 28074 *-*-*linux*) 28075 ans=yes 28076 ;; 28077 *-*-sunos3*) 28078 ans=yes 28079 ;; 28080 *-*-ultrix2*) 28081 ans=yes 28082 ;; 28083 *) 28084 ans=no 28085 ;; 28086 esac 28087 ntp_cv_arg_setpgrp_negpid=$ans 28088 28089 28090fi 28091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5 28092$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; } 28093case "$ntp_cv_arg_setpgrp_negpid" in 28094 yes) 28095 28096$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 28097 28098esac 28099 28100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 28101$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 28102if ${ntp_cv_func_ctty_for_f_setown+:} false; then : 28103 $as_echo_n "(cached) " >&6 28104else 28105 28106 case "$host" in 28107 *-*-bsdi[23]*) 28108 ans=yes 28109 ;; 28110 *-*-freebsd*) 28111 ans=yes 28112 ;; 28113 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 28114 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 28115 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 28116 # in $host may be followed by "aout", "ecoff", or "elf". 28117 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7]) 28118 ans=yes 28119 ;; 28120 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7]) 28121 ans=yes 28122 ;; 28123 *-*-openbsd*) 28124 ans=yes 28125 ;; 28126 *-*-osf*) 28127 ans=yes 28128 ;; 28129 *-*-darwin*) 28130 ans=yes 28131 ;; 28132 *) 28133 ans=no 28134 ;; 28135 esac 28136 ntp_cv_func_ctty_for_f_setown=$ans 28137 28138 28139fi 28140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 28141$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 28142case "$ntp_cv_func_ctty_for_f_setown" in 28143 yes) 28144 28145$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 28146 28147esac 28148 28149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5 28150$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; } 28151if ${ntp_cv_os_routeupdates+:} false; then : 28152 $as_echo_n "(cached) " >&6 28153else 28154 28155 case "$host" in 28156 *-*-netbsd*) 28157 ans=yes 28158 ;; 28159 *) 28160 ans=no 28161 ;; 28162 esac 28163 ntp_cv_os_routeupdates=$ans 28164 28165 28166fi 28167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5 28168$as_echo "$ntp_cv_os_routeupdates" >&6; } 28169case "$ntp_cv_os_routeupdates" in 28170 yes) 28171 28172$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 28173 28174esac 28175 28176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5 28177$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; } 28178if ${ntp_cv_os_wildcardreuse+:} false; then : 28179 $as_echo_n "(cached) " >&6 28180else 28181 28182 case "$host" in 28183 *-*-*linux*) 28184 ans=yes 28185 ;; 28186 *) ans=no 28187 ;; 28188 esac 28189 ntp_cv_os_wildcardreuse=$ans 28190 28191 28192fi 28193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5 28194$as_echo "$ntp_cv_os_wildcardreuse" >&6; } 28195case "$ntp_cv_os_wildcardreuse" in 28196 yes) 28197 28198$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 28199 28200esac 28201 28202case "$host" in 28203 *-*-aix*) 28204 28205$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 28206 28207esac 28208 28209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 28210$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 28211if ${ntp_cv_var_min_rec_tickadj+:} false; then : 28212 $as_echo_n "(cached) " >&6 28213else 28214 28215 ans=no 28216 case "$host" in 28217 *-*-aix*) 28218 ans=40 28219 ;; 28220 esac 28221 ntp_cv_var_min_rec_tickadj=$ans 28222 28223 28224fi 28225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5 28226$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; } 28227case "$ntp_cv_var_min_rec_tickadj" in 28228 ''|no) 28229 ;; 28230 *) 28231 28232cat >>confdefs.h <<_ACEOF 28233#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj 28234_ACEOF 28235 28236esac 28237 28238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 28239$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 28240if ${ntp_cv_no_parenb_ignpar+:} false; then : 28241 $as_echo_n "(cached) " >&6 28242else 28243 28244 ans=no 28245 case "$host" in 28246 i?86-*-*linux*) 28247 ans=yes 28248 ;; 28249 mips-sgi-irix*) 28250 ans=yes 28251 ;; 28252 i?86-*-freebsd[123].*) 28253 ;; 28254 i?86-*-freebsd*) 28255 ans=yes 28256 ;; 28257 *-*-unicosmp*) 28258 ans=yes 28259 ;; 28260 esac 28261 ntp_cv_no_parenb_ignpar=$ans 28262 28263 28264fi 28265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5 28266$as_echo "$ntp_cv_no_parenb_ignpar" >&6; } 28267case "$ntp_cv_no_parenb_ignpar" in 28268 yes) 28269 28270$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 28271 28272esac 28273 28274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5 28275$as_echo_n "checking if we're including processing time debugging code... " >&6; } 28276# Check whether --enable-debug-timing was given. 28277if test "${enable_debug_timing+set}" = set; then : 28278 enableval=$enable_debug_timing; ntp_ok=$enableval 28279else 28280 ntp_ok=no 28281 28282fi 28283 28284case "$ntp_ok" in 28285 yes) 28286 28287$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 28288 28289esac 28290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28291$as_echo "$ntp_ok" >&6; } 28292 28293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 28294$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 28295# Check whether --enable-dst-minutes was given. 28296if test "${enable_dst_minutes+set}" = set; then : 28297 enableval=$enable_dst_minutes; ans=$enableval 28298else 28299 ans=60 28300 28301fi 28302 28303 28304cat >>confdefs.h <<_ACEOF 28305#define DSTMINUTES $ans 28306_ACEOF 28307 28308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28309$as_echo "$ans" >&6; } 28310 28311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 28312$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 28313# Check whether --enable-ignore-dns-errors was given. 28314if test "${enable_ignore_dns_errors+set}" = set; then : 28315 enableval=$enable_ignore_dns_errors; ans=$enableval 28316else 28317 ans=no 28318 28319fi 28320 28321case "$ans" in 28322 yes) 28323 28324$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 28325 28326esac 28327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28328$as_echo "$ans" >&6; } 28329 28330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 28331$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 28332if ${ntp_cv_var_ntp_syscalls+:} false; then : 28333 $as_echo_n "(cached) " >&6 28334else 28335 28336 ntp_cv_var_ntp_syscalls=no 28337 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 28338 yesyes*) 28339 ntp_cv_var_ntp_syscalls=libc 28340 ;; 28341 *yes) 28342 ntp_cv_var_ntp_syscalls=inline 28343 ;; 28344 *) 28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28346/* end confdefs.h. */ 28347 28348 #include <sys/syscall.h> 28349 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime) 28350 # error 28351 #endif 28352 28353_ACEOF 28354if ac_fn_c_try_cpp "$LINENO"; then : 28355 ntp_cv_var_ntp_syscalls=kernel 28356 28357fi 28358rm -f conftest.err conftest.i conftest.$ac_ext 28359 ;; 28360 esac 28361 28362 28363fi 28364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5 28365$as_echo "$ntp_cv_var_ntp_syscalls" >&6; } 28366case "$ntp_cv_var_ntp_syscalls" in 28367 libc) 28368 28369$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 28370 28371 ;; 28372 kernel) 28373 28374$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 28375 28376 ;; 28377esac 28378 28379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 28380$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 28381if ${ntp_cv_var_sta_fll+:} false; then : 28382 $as_echo_n "(cached) " >&6 28383else 28384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28385/* end confdefs.h. */ 28386 28387 #include <sys/timex.h> 28388 #ifndef STA_FLL 28389 # error 28390 #endif 28391 28392_ACEOF 28393if ac_fn_c_try_cpp "$LINENO"; then : 28394 ntp_cv_var_sta_fll=yes 28395else 28396 ntp_cv_var_sta_fll=no 28397 28398fi 28399rm -f conftest.err conftest.i conftest.$ac_ext 28400 28401fi 28402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5 28403$as_echo "$ntp_cv_var_sta_fll" >&6; } 28404 28405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 28406$as_echo_n "checking if we have kernel PLL support... " >&6; } 28407if ${ntp_cv_var_kernel_pll+:} false; then : 28408 $as_echo_n "(cached) " >&6 28409else 28410 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in 28411 *no*) 28412 ntp_cv_var_kernel_pll=no 28413 ;; 28414 *) ntp_cv_var_kernel_pll=yes 28415 ;; 28416 esac 28417 28418 28419fi 28420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5 28421$as_echo "$ntp_cv_var_kernel_pll" >&6; } 28422case "$ntp_cv_var_kernel_pll" in 28423 yes) 28424 28425$as_echo "#define KERNEL_PLL 1" >>confdefs.h 28426 28427esac 28428 28429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 28430$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 28431if ${ntp_cv_size_returned_in_buffer+:} false; then : 28432 $as_echo_n "(cached) " >&6 28433else 28434 28435 ans=no 28436 case "$host" in 28437 *-fujitsu-uxp*) 28438 ans=yes 28439 ;; 28440 *-ncr-sysv4*) 28441 ans=yes 28442 ;; 28443 *-univel-sysv*) 28444 ans=yes 28445 ;; 28446 esac 28447 ntp_cv_size_returned_in_buffer=$ans 28448 28449 28450fi 28451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5 28452$as_echo "$ntp_cv_size_returned_in_buffer" >&6; } 28453case "$ntp_cv_size_returned_in_buffer" in 28454 yes) 28455 28456$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 28457 28458esac 28459 28460# Check for ioctls TIOCGPPSEV 28461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5 28462$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; } 28463case "$ac_cv_header_termios_h" in 28464 yes) 28465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28466/* end confdefs.h. */ 28467 28468 #include <termios.h> 28469 #ifndef TIOCGPPSEV 28470 # error 28471 #endif 28472 28473_ACEOF 28474if ac_fn_c_try_cpp "$LINENO"; then : 28475 ntp_ok=yes 28476else 28477 ntp_ok=no 28478 28479fi 28480rm -f conftest.err conftest.i conftest.$ac_ext 28481 ;; 28482 *) 28483 ntp_ok=no 28484 ;; 28485esac 28486case "$ntp_ok" in 28487 yes) 28488 28489$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 28490 28491esac 28492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28493$as_echo "$ntp_ok" >&6; } 28494 28495# Check for ioctls TIOCSPPS 28496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5 28497$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; } 28498case "$ac_cv_header_termios_h" in 28499 yes) 28500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28501/* end confdefs.h. */ 28502 28503 #include <termios.h> 28504 #ifndef TIOCSPPS 28505 # error 28506 #endif 28507 28508_ACEOF 28509if ac_fn_c_try_cpp "$LINENO"; then : 28510 ntp_ok=yes 28511else 28512 ntp_ok=no 28513 28514fi 28515rm -f conftest.err conftest.i conftest.$ac_ext 28516 ;; 28517 *) 28518 ntp_ok=no 28519 ;; 28520esac 28521case "$ntp_ok" in 28522 yes) 28523 28524$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 28525 28526esac 28527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28528$as_echo "$ntp_ok" >&6; } 28529 28530# Check for ioctls CIOGETEV 28531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5 28532$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; } 28533case "$ac_cv_header_sys_ppsclock_h" in 28534 yes) 28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28536/* end confdefs.h. */ 28537 28538 #include <sys/ppsclock.h> 28539 #ifndef CIOGETEV 28540 # error 28541 #endif 28542 28543_ACEOF 28544if ac_fn_c_try_cpp "$LINENO"; then : 28545 ntp_ok=yes 28546else 28547 ntp_ok=no 28548 28549fi 28550rm -f conftest.err conftest.i conftest.$ac_ext 28551 ;; 28552 *) 28553 ntp_ok=no 28554 ;; 28555esac 28556case "$ntp_ok" in 28557 yes) 28558 28559$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 28560 28561esac 28562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28563$as_echo "$ntp_ok" >&6; } 28564 28565# ATOM/PPSAPI stuff. 28566 28567ntp_atom_ok=yes 28568 28569# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 28570 28571# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 28572# The PPSAPI needs struct timespec. 28573# The PPSAPI also needs a timepps header. 28574 28575case "$ac_cv_c_inline$ntp_cv_struct_timespec" in 28576 inlineyes) 28577 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 28578 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 28579 28580$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 28581 28582 ntp_jupiter_ok=yes 28583 ntp_oncore_ok=yes 28584 ntp_parse_ok=yes 28585 ntp_ripe_ncc_ok=yes 28586 ;; 28587 esac 28588 ;; 28589esac 28590 28591# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 28592ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 28593if test "x$ac_cv_header_linux_serial_h" = xyes; then : 28594 28595fi 28596 28597 28598case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 28599 yesyes) 28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 28601$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 28602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28603/* end confdefs.h. */ 28604 28605 #include <sys/time.h> 28606 typedef int u_int; 28607 #include <sys/ppsclock.h> 28608 #include <linux/serial.h> 28609 28610 #ifndef TIOCGSERIAL 28611 # error 28612 #endif 28613 #ifndef TIOCSSERIAL 28614 # error 28615 #endif 28616 #ifndef ASYNC_PPS_CD_POS 28617 # error 28618 #endif 28619 #ifndef ASYNC_PPS_CD_NEG 28620 # error 28621 #endif 28622 #ifndef CIOGETEV 28623 # error 28624 #endif 28625 28626_ACEOF 28627if ac_fn_c_try_cpp "$LINENO"; then : 28628 ntp_ok=yes 28629else 28630 ntp_ok=no 28631 28632fi 28633rm -f conftest.err conftest.i conftest.$ac_ext 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28635$as_echo "$ntp_ok" >&6; } 28636 ;; 28637 *) 28638 ntp_ok=no 28639 ;; 28640esac 28641case "$ntp_ok" in 28642 yes) 28643 28644$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 28645 28646esac 28647 28648# Check for SHMEM_STATUS support 28649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 28650$as_echo_n "checking SHMEM_STATUS support... " >&6; } 28651case "$ac_cv_header_sys_mman_h" in 28652 yes) 28653 ntp_ok=yes 28654 ;; 28655 *) 28656 ntp_ok=no 28657 ;; 28658esac 28659case "$ntp_ok" in 28660 yes) 28661 28662$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 28663 28664esac 28665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28666$as_echo "$ntp_ok" >&6; } 28667 28668ntp_refclock=no 28669 28670# HPUX only, and by explicit request 28671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 28672$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 28673# Check whether --enable-BANCOMM was given. 28674if test "${enable_BANCOMM+set}" = set; then : 28675 enableval=$enable_BANCOMM; ntp_ok=$enableval 28676else 28677 ntp_ok=no 28678 28679fi 28680 28681case "$ntp_ok" in 28682 yes) 28683 ntp_refclock=yes 28684 28685$as_echo "#define CLOCK_BANC 1" >>confdefs.h 28686 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5 28688$as_echo_n "checking for library containing bcStartPci... " >&6; } 28689if ${ac_cv_search_bcStartPci+:} false; then : 28690 $as_echo_n "(cached) " >&6 28691else 28692 ac_func_search_save_LIBS=$LIBS 28693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28694/* end confdefs.h. */ 28695 28696/* Override any GCC internal prototype to avoid an error. 28697 Use char because int might match the return type of a GCC 28698 builtin and then its argument prototype would still apply. */ 28699#ifdef __cplusplus 28700extern "C" 28701#endif 28702char bcStartPci (); 28703int 28704main () 28705{ 28706return bcStartPci (); 28707 ; 28708 return 0; 28709} 28710_ACEOF 28711for ac_lib in '' bcsdk; do 28712 if test -z "$ac_lib"; then 28713 ac_res="none required" 28714 else 28715 ac_res=-l$ac_lib 28716 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28717 fi 28718 if ac_fn_c_try_link "$LINENO"; then : 28719 ac_cv_search_bcStartPci=$ac_res 28720fi 28721rm -f core conftest.err conftest.$ac_objext \ 28722 conftest$ac_exeext 28723 if ${ac_cv_search_bcStartPci+:} false; then : 28724 break 28725fi 28726done 28727if ${ac_cv_search_bcStartPci+:} false; then : 28728 28729else 28730 ac_cv_search_bcStartPci=no 28731fi 28732rm conftest.$ac_ext 28733LIBS=$ac_func_search_save_LIBS 28734fi 28735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5 28736$as_echo "$ac_cv_search_bcStartPci" >&6; } 28737ac_res=$ac_cv_search_bcStartPci 28738if test "$ac_res" != no; then : 28739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28740 28741fi 28742 28743 ;; 28744esac 28745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28746$as_echo "$ntp_ok" >&6; } 28747case "$ntp_ok$host" in 28748 yes*-*-hpux*) ;; 28749 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 28750$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 28751esac 28752 28753#HPUX only, and only by explicit request 28754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 28755$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 28756# Check whether --enable-GPSVME was given. 28757if test "${enable_GPSVME+set}" = set; then : 28758 enableval=$enable_GPSVME; ntp_ok=$enableval 28759else 28760 ntp_ok=no 28761 28762fi 28763 28764case "$ntp_ok" in 28765 yes) 28766 ntp_refclock=yes 28767 28768$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 28769 28770 ;; 28771esac 28772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28773$as_echo "$ntp_ok" >&6; } 28774case "$ntp_ok$host" in 28775 yes*-*-hpux*) ;; 28776 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 28777$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 28778esac 28779 28780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 28781$as_echo_n "checking for PCL720 clock support... " >&6; } 28782case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 28783 yesyesyes) 28784 28785$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 28786 28787 ans=yes 28788 ;; 28789 *) 28790 ans=no 28791 ;; 28792esac 28793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28794$as_echo "$ans" >&6; } 28795 28796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 28797$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 28798# Check whether --enable-all-clocks was given. 28799if test "${enable_all_clocks+set}" = set; then : 28800 enableval=$enable_all_clocks; ntp_eac=$enableval 28801else 28802 ntp_eac=yes 28803 28804fi 28805 28806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 28807$as_echo "$ntp_eac" >&6; } 28808 28809# HMS: Should we also require ntp_parse_ok? 28810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 28811$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 28812case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 28813 yes*yes*) 28814 ntp_canparse=yes 28815 ;; 28816 *) ntp_canparse=no 28817 ;; 28818esac 28819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 28820$as_echo "$ntp_canparse" >&6; } 28821 28822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 28823$as_echo_n "checking if we have support for audio clocks... " >&6; } 28824case "$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 28825 *yes*) 28826 ntp_canaudio=yes 28827 28828$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 28829 28830 ;; 28831 *) ntp_canaudio=no ;; 28832esac 28833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 28834$as_echo "$ntp_canaudio" >&6; } 28835 28836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 28837$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 28838case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 28839 yesyes) 28840 ntp_canshm=yes 28841 ;; 28842 *) ntp_canshm=no ;; 28843esac 28844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 28845$as_echo "$ntp_canshm" >&6; } 28846 28847# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade) 28848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5 28849$as_echo_n "checking for termios modem control... " >&6; } 28850if ${ntp_cv_modem_control+:} false; then : 28851 $as_echo_n "(cached) " >&6 28852else 28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28854/* end confdefs.h. */ 28855 28856 #ifdef HAVE_UNISTD_H 28857 # include <unistd.h> 28858 #endif 28859 #ifdef HAVE_TERMIOS_H 28860 # include <termios.h> 28861 #endif 28862 #ifdef HAVE_SYS_IOCTL_H 28863 # include <sys/ioctl.h> 28864 #endif 28865 28866int 28867main () 28868{ 28869 28870 int dtr = TIOCM_DTR; 28871 28872 ioctl(1, TIOCMBIS, (char *)&dtr); 28873 28874 28875 ; 28876 return 0; 28877} 28878_ACEOF 28879if ac_fn_c_try_compile "$LINENO"; then : 28880 ntp_cv_modem_control=yes 28881else 28882 ntp_cv_modem_control=no 28883 28884fi 28885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28886 28887fi 28888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5 28889$as_echo "$ntp_cv_modem_control" >&6; } 28890case "$ntp_eac::$ntp_cv_modem_control" in 28891 yes::yes) 28892 ntp_enable_all_modem_control_clocks=yes 28893 ;; 28894 *) 28895 ntp_enable_all_modem_control_clocks=no 28896 ;; 28897esac 28898 28899# Requires modem control 28900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 28901$as_echo_n "checking ACTS modem service... " >&6; } 28902# Check whether --enable-ACTS was given. 28903if test "${enable_ACTS+set}" = set; then : 28904 enableval=$enable_ACTS; ntp_ok=$enableval 28905else 28906 ntp_ok=$ntp_enable_all_modem_control_clocks 28907 28908fi 28909 28910case "$ntp_ok" in 28911 yes) 28912 ntp_refclock=yes 28913 28914$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 28915 28916 ;; 28917esac 28918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28919$as_echo "$ntp_ok" >&6; } 28920 28921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 28922$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 28923# Check whether --enable-ARBITER was given. 28924if test "${enable_ARBITER+set}" = set; then : 28925 enableval=$enable_ARBITER; ntp_ok=$enableval 28926else 28927 ntp_ok=$ntp_eac 28928 28929fi 28930 28931case "$ntp_ok" in 28932 yes) 28933 ntp_refclock=yes 28934 28935$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 28936 28937 ;; 28938esac 28939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28940$as_echo "$ntp_ok" >&6; } 28941 28942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 28943$as_echo_n "checking Arcron MSF receiver... " >&6; } 28944# Check whether --enable-ARCRON_MSF was given. 28945if test "${enable_ARCRON_MSF+set}" = set; then : 28946 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 28947else 28948 ntp_ok=$ntp_eac 28949 28950fi 28951 28952case "$ntp_ok" in 28953 yes) 28954 ntp_refclock=yes 28955 28956$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 28957 28958 ;; 28959esac 28960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28961$as_echo "$ntp_ok" >&6; } 28962 28963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 28964$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 28965# Check whether --enable-AS2201 was given. 28966if test "${enable_AS2201+set}" = set; then : 28967 enableval=$enable_AS2201; ntp_ok=$enableval 28968else 28969 ntp_ok=$ntp_eac 28970 28971fi 28972 28973case "$ntp_ok" in 28974 yes) 28975 ntp_refclock=yes 28976 28977$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 28978 28979 ;; 28980esac 28981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28982$as_echo "$ntp_ok" >&6; } 28983 28984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 28985$as_echo_n "checking ATOM PPS interface... " >&6; } 28986# Check whether --enable-ATOM was given. 28987if test "${enable_ATOM+set}" = set; then : 28988 enableval=$enable_ATOM; ntp_ok=$enableval 28989else 28990 ntp_ok=$ntp_eac 28991 28992fi 28993 28994case "$ntp_atom_ok" in 28995 no) ntp_ok=no ;; 28996esac 28997case "$ntp_ok" in 28998 yes) 28999 ntp_refclock=yes 29000 29001$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 29002 29003 ;; 29004esac 29005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29006$as_echo "$ntp_ok" >&6; } 29007 29008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 29009$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 29010# Check whether --enable-CHRONOLOG was given. 29011if test "${enable_CHRONOLOG+set}" = set; then : 29012 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 29013else 29014 ntp_ok=$ntp_eac 29015 29016fi 29017 29018case "$ntp_ok" in 29019 yes) 29020 ntp_refclock=yes 29021 29022$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 29023 29024 ;; 29025esac 29026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29027$as_echo "$ntp_ok" >&6; } 29028 29029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 29030$as_echo_n "checking CHU modem/decoder... " >&6; } 29031# Check whether --enable-CHU was given. 29032if test "${enable_CHU+set}" = set; then : 29033 enableval=$enable_CHU; ntp_ok=$enableval 29034else 29035 ntp_ok=$ntp_eac 29036 29037fi 29038 29039case "$ntp_ok" in 29040 yes) 29041 ntp_refclock=yes 29042 29043$as_echo "#define CLOCK_CHU 1" >>confdefs.h 29044 29045 ;; 29046esac 29047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29048$as_echo "$ntp_ok" >&6; } 29049ntp_refclock_chu=$ntp_ok 29050 29051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 29052$as_echo_n "checking CHU audio/decoder... " >&6; } 29053# Check whether --enable-AUDIO-CHU was given. 29054if test "${enable_AUDIO_CHU+set}" = set; then : 29055 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 29056else 29057 29058 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in 29059 *no*) ntp_ok=no ;; 29060 *) ntp_ok=yes ;; 29061 esac 29062 29063 29064fi 29065 29066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29067$as_echo "$ntp_ok" >&6; } 29068# We used to check for sunos/solaris target... 29069case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in 29070 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 29071$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} 29072esac 29073 29074# Not under HP-UX 29075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 29076$as_echo_n "checking Datum Programmable Time System... " >&6; } 29077# Check whether --enable-DATUM was given. 29078if test "${enable_DATUM+set}" = set; then : 29079 enableval=$enable_DATUM; ntp_ok=$enableval 29080else 29081 29082 case "$ac_cv_header_termios_h" in 29083 yes) 29084 ntp_ok=$ntp_eac 29085 ;; 29086 *) ntp_ok=no 29087 ;; 29088 esac 29089 29090 29091fi 29092 29093case "$ntp_ok" in 29094 yes) 29095 ntp_refclock=yes 29096 29097$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 29098 29099 ;; 29100esac 29101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29102$as_echo "$ntp_ok" >&6; } 29103 29104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 29105$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 29106# Check whether --enable-DUMBCLOCK was given. 29107if test "${enable_DUMBCLOCK+set}" = set; then : 29108 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 29109else 29110 ntp_ok=$ntp_eac 29111 29112fi 29113 29114case "$ntp_ok" in 29115 yes) 29116 ntp_refclock=yes 29117 29118$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 29119 29120 ;; 29121esac 29122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29123$as_echo "$ntp_ok" >&6; } 29124 29125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 29126$as_echo_n "checking Forum Graphic GPS... " >&6; } 29127# Check whether --enable-FG was given. 29128if test "${enable_FG+set}" = set; then : 29129 enableval=$enable_FG; ntp_ok=$enableval 29130else 29131 ntp_ok=$ntp_eac 29132 29133fi 29134 29135case "$ntp_ok" in 29136 yes) 29137 ntp_refclock=yes 29138 29139$as_echo "#define CLOCK_FG 1" >>confdefs.h 29140 29141 ;; 29142esac 29143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29144$as_echo "$ntp_ok" >&6; } 29145 29146# Requires modem control 29147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 29148$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 29149# Check whether --enable-HEATH was given. 29150if test "${enable_HEATH+set}" = set; then : 29151 enableval=$enable_HEATH; ntp_ok=$enableval 29152else 29153 ntp_ok=$ntp_enable_all_modem_control_clocks 29154 29155fi 29156 29157case "$ntp_ok" in 29158 yes) 29159 ntp_refclock=yes 29160 29161$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 29162 29163 ;; 29164esac 29165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29166$as_echo "$ntp_ok" >&6; } 29167 29168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 29169$as_echo_n "checking for hopf serial clock device... " >&6; } 29170# Check whether --enable-HOPFSERIAL was given. 29171if test "${enable_HOPFSERIAL+set}" = set; then : 29172 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 29173else 29174 ntp_ok=$ntp_eac 29175 29176fi 29177 29178case "$ntp_ok" in 29179 yes) 29180 ntp_refclock=yes 29181 29182$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 29183 29184 ;; 29185esac 29186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29187$as_echo "$ntp_ok" >&6; } 29188 29189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 29190$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 29191# Check whether --enable-HOPFPCI was given. 29192if test "${enable_HOPFPCI+set}" = set; then : 29193 enableval=$enable_HOPFPCI; ntp_ok=$enableval 29194else 29195 ntp_ok=$ntp_eac 29196 29197fi 29198 29199case "$ntp_ok" in 29200 yes) 29201 ntp_refclock=yes 29202 29203$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 29204 29205 ;; 29206esac 29207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29208$as_echo "$ntp_ok" >&6; } 29209 29210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 29211$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 29212# Check whether --enable-HPGPS was given. 29213if test "${enable_HPGPS+set}" = set; then : 29214 enableval=$enable_HPGPS; ntp_ok=$enableval 29215else 29216 ntp_ok=$ntp_eac 29217 29218fi 29219 29220case "$ntp_ok" in 29221 yes) 29222 ntp_refclock=yes 29223 29224$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 29225 29226 ;; 29227esac 29228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29229$as_echo "$ntp_ok" >&6; } 29230 29231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 29232$as_echo_n "checking IRIG audio decoder... " >&6; } 29233# Check whether --enable-IRIG was given. 29234if test "${enable_IRIG+set}" = set; then : 29235 enableval=$enable_IRIG; ntp_ok=$enableval 29236else 29237 29238 case "$ntp_eac$ntp_canaudio" in 29239 *no*) ntp_ok=no ;; 29240 *) ntp_ok=yes ;; 29241 esac 29242 29243 29244fi 29245 29246case "$ntp_ok" in 29247 yes) 29248 ntp_refclock=yes 29249 29250$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 29251 29252 ;; 29253esac 29254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29255$as_echo "$ntp_ok" >&6; } 29256case "$ntp_ok$ntp_canaudio" in 29257 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29258$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29259esac 29260 29261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 29262$as_echo_n "checking for JJY receiver... " >&6; } 29263# Check whether --enable-JJY was given. 29264if test "${enable_JJY+set}" = set; then : 29265 enableval=$enable_JJY; ntp_ok=$enableval 29266else 29267 ntp_ok=$ntp_eac 29268 29269fi 29270 29271case "$ntp_ok" in 29272 yes) 29273 ntp_refclock=yes 29274 29275$as_echo "#define CLOCK_JJY 1" >>confdefs.h 29276 29277 ;; 29278esac 29279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29280$as_echo "$ntp_ok" >&6; } 29281 29282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 29283$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 29284# Check whether --enable-JUPITER was given. 29285if test "${enable_JUPITER+set}" = set; then : 29286 enableval=$enable_JUPITER; ntp_ok=$enableval 29287else 29288 ntp_ok=$ntp_eac 29289fi 29290 29291case "$ntp_jupiter_ok" in 29292 no) ntp_ok=no ;; 29293esac 29294case "$ntp_ok" in 29295 yes) 29296 ntp_refclock=yes 29297 29298$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 29299 29300 ;; 29301esac 29302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29303$as_echo "$ntp_ok" >&6; } 29304 29305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 29306$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 29307# Check whether --enable-LEITCH was given. 29308if test "${enable_LEITCH+set}" = set; then : 29309 enableval=$enable_LEITCH; ntp_ok=$enableval 29310else 29311 ntp_ok=$ntp_eac 29312 29313fi 29314 29315case "$ntp_ok" in 29316 yes) 29317 ntp_refclock=yes 29318 29319$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 29320 29321 ;; 29322esac 29323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29324$as_echo "$ntp_ok" >&6; } 29325 29326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 29327$as_echo_n "checking local clock reference... " >&6; } 29328# Check whether --enable-LOCAL-CLOCK was given. 29329if test "${enable_LOCAL_CLOCK+set}" = set; then : 29330 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 29331else 29332 ntp_ok=$ntp_eac 29333 29334fi 29335 29336case "$ntp_ok" in 29337 yes) 29338 ntp_refclock=yes 29339 29340$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 29341 29342 ;; 29343esac 29344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29345$as_echo "$ntp_ok" >&6; } 29346 29347 29348# Not Ultrix 29349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 29350$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 29351# Check whether --enable-MX4200 was given. 29352if test "${enable_MX4200+set}" = set; then : 29353 enableval=$enable_MX4200; ntp_ok=$enableval 29354else 29355 29356 case "$ac_cv_var_ppsclock" in 29357 yes) 29358 ntp_ok=$ntp_eac 29359 ;; 29360 *) 29361 ntp_ok=no 29362 ;; 29363 esac 29364 29365 29366fi 29367 29368case "$ntp_ok" in 29369 yes) 29370 ntp_refclock=yes 29371 29372$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 29373 29374 ;; 29375esac 29376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29377$as_echo "$ntp_ok" >&6; } 29378case "$ntp_ok$host" in 29379 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29380$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29381esac 29382 29383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 29384$as_echo_n "checking for NeoClock4X receiver... " >&6; } 29385# Check whether --enable-NEOCLOCK4X was given. 29386if test "${enable_NEOCLOCK4X+set}" = set; then : 29387 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 29388else 29389 ntp_ok=$ntp_eac 29390 29391fi 29392 29393case "$ntp_ok" in 29394 yes) 29395 ntp_refclock=yes 29396 29397$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 29398 29399 ;; 29400esac 29401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29402$as_echo "$ntp_ok" >&6; } 29403 29404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 29405$as_echo_n "checking NMEA GPS receiver... " >&6; } 29406# Check whether --enable-NMEA was given. 29407if test "${enable_NMEA+set}" = set; then : 29408 enableval=$enable_NMEA; ntp_ok=$enableval 29409else 29410 ntp_ok=$ntp_eac 29411 29412fi 29413 29414case "$ntp_ok" in 29415 yes) 29416 ntp_refclock=yes 29417 29418$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 29419 29420 ;; 29421esac 29422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29423$as_echo "$ntp_ok" >&6; } 29424 29425for ac_func in strtoll 29426do : 29427 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 29428if test "x$ac_cv_func_strtoll" = xyes; then : 29429 cat >>confdefs.h <<_ACEOF 29430#define HAVE_STRTOLL 1 29431_ACEOF 29432 29433fi 29434done 29435 29436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5 29437$as_echo_n "checking for GPSD JSON receiver... " >&6; } 29438# Check whether --enable-GPSD was given. 29439if test "${enable_GPSD+set}" = set; then : 29440 enableval=$enable_GPSD; ntp_ok=$enableval 29441else 29442 case "$ac_cv_func_strtoll" in 29443 yes) ntp_ok=$ntp_eac ;; 29444 *) ntp_ok="no" ;; 29445 esac 29446 29447fi 29448 29449case "$ntp_ok" in 29450 yes) 29451 ntp_refclock=yes 29452 29453$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h 29454 29455 ;; 29456esac 29457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29458$as_echo "$ntp_ok" >&6; } 29459 29460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 29461$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 29462# Check whether --enable-ONCORE was given. 29463if test "${enable_ONCORE+set}" = set; then : 29464 enableval=$enable_ONCORE; ntp_ok=$enableval 29465else 29466 ntp_ok=$ntp_eac 29467 29468fi 29469 29470case "$ntp_oncore_ok" in 29471 no) ntp_ok=no ;; 29472esac 29473case "$ntp_ok" in 29474 yes) 29475 ntp_refclock=yes 29476 29477$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 29478 29479 ;; 29480esac 29481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29482$as_echo "$ntp_ok" >&6; } 29483 29484# Requires modem control 29485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 29486$as_echo_n "checking for Palisade clock... " >&6; } 29487# Check whether --enable-PALISADE was given. 29488if test "${enable_PALISADE+set}" = set; then : 29489 enableval=$enable_PALISADE; ntp_ok=$enableval 29490else 29491 ntp_ok=$ntp_enable_all_modem_control_clocks 29492 29493fi 29494 29495case "$ntp_ok" in 29496 yes) 29497 ntp_refclock=yes 29498 29499$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 29500 29501 ;; 29502esac 29503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29504$as_echo "$ntp_ok" >&6; } 29505 29506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 29507$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 29508# Check whether --enable-PCF was given. 29509if test "${enable_PCF+set}" = set; then : 29510 enableval=$enable_PCF; ntp_ok=$enableval 29511else 29512 ntp_ok=$ntp_eac 29513 29514fi 29515 29516case "$ntp_ok" in 29517 yes) 29518 ntp_refclock=yes 29519 29520$as_echo "#define CLOCK_PCF 1" >>confdefs.h 29521 29522 ;; 29523esac 29524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29525$as_echo "$ntp_ok" >&6; } 29526 29527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 29528$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 29529# Check whether --enable-PST was given. 29530if test "${enable_PST+set}" = set; then : 29531 enableval=$enable_PST; ntp_ok=$enableval 29532else 29533 ntp_ok=$ntp_eac 29534 29535fi 29536 29537case "$ntp_ok" in 29538 yes) 29539 ntp_refclock=yes 29540 29541$as_echo "#define CLOCK_PST 1" >>confdefs.h 29542 29543 ;; 29544esac 29545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29546$as_echo "$ntp_ok" >&6; } 29547 29548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 29549$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 29550# Check whether --enable-RIPENCC was given. 29551if test "${enable_RIPENCC+set}" = set; then : 29552 enableval=$enable_RIPENCC; ntp_ok=$enableval 29553else 29554 ntp_ok=no 29555 29556fi 29557 29558# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 29559case "$ntp_ripe_ncc_ok" in 29560 no) ntp_ok=no ;; 29561esac 29562case "$ntp_ok" in 29563 yes) 29564 ntp_refclock=yes 29565 29566$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 29567 29568 ;; 29569esac 29570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29571$as_echo "$ntp_ok" >&6; } 29572 29573# Danny Meyer says SHM compiles (with a few warnings) under Win32. 29574# For *IX, we need sys/ipc.h and sys/shm.h. 29575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 29576$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 29577# Check whether --enable-SHM was given. 29578if test "${enable_SHM+set}" = set; then : 29579 enableval=$enable_SHM; ntp_ok=$enableval 29580else 29581 29582 case "$ntp_eac$ntp_canshm" in 29583 *no*) ntp_ok=no ;; 29584 *) ntp_ok=yes ;; 29585 esac 29586 29587 29588fi 29589 29590case "$ntp_ok" in 29591 yes) 29592 ntp_refclock=yes 29593 29594$as_echo "#define CLOCK_SHM 1" >>confdefs.h 29595 29596 ;; 29597esac 29598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29599$as_echo "$ntp_ok" >&6; } 29600 29601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 29602$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 29603# Check whether --enable-SPECTRACOM was given. 29604if test "${enable_SPECTRACOM+set}" = set; then : 29605 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 29606else 29607 ntp_ok=$ntp_eac 29608 29609fi 29610 29611case "$ntp_ok" in 29612 yes) 29613 ntp_refclock=yes 29614 29615$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 29616 29617 ;; 29618esac 29619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29620$as_echo "$ntp_ok" >&6; } 29621 29622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 29623$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 29624# Check whether --enable-TPRO was given. 29625if test "${enable_TPRO+set}" = set; then : 29626 enableval=$enable_TPRO; ntp_ok=$enableval 29627else 29628 29629 case "$ac_cv_header_sys_tpro_h" in 29630 yes) 29631 ntp_ok=$ntp_eac 29632 ;; 29633 *) 29634 ntp_ok=no 29635 ;; 29636 esac 29637 29638 29639fi 29640 29641case "$ntp_ok" in 29642 yes) 29643 ntp_refclock=yes 29644 29645$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 29646 29647 ;; 29648esac 29649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29650$as_echo "$ntp_ok" >&6; } 29651case "$ntp_ok$ac_cv_header_sys_tpro" in 29652 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29653$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29654esac 29655 29656# Not on a vax-dec-bsd 29657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 29658$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 29659# Check whether --enable-TRUETIME was given. 29660if test "${enable_TRUETIME+set}" = set; then : 29661 enableval=$enable_TRUETIME; ntp_ok=$enableval 29662else 29663 29664 case "$host" in 29665 vax-dec-bsd) 29666 ntp_ok=no 29667 ;; 29668 *) 29669 ntp_ok=$ntp_eac 29670 ;; 29671 esac 29672 29673 29674fi 29675 29676case "$ntp_ok" in 29677 yes) 29678 ntp_refclock=yes 29679 29680$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 29681 29682 ;; 29683esac 29684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29685$as_echo "$ntp_ok" >&6; } 29686case "$ntp_ok$host" in 29687 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29688$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29689esac 29690 29691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 29692$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 29693# Check whether --enable-TT560 was given. 29694if test "${enable_TT560+set}" = set; then : 29695 enableval=$enable_TT560; ntp_ok=$enableval 29696else 29697 ntp_ok=no 29698 29699fi 29700 29701case "$ntp_ok" in 29702 yes) 29703 ntp_refclock=yes 29704 29705$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 29706 29707 ;; 29708esac 29709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29710$as_echo "$ntp_ok" >&6; } 29711 29712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 29713$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 29714# Check whether --enable-ULINK was given. 29715if test "${enable_ULINK+set}" = set; then : 29716 enableval=$enable_ULINK; ntp_ok=$enableval 29717else 29718 ntp_ok=$ntp_eac 29719 29720fi 29721 29722case "$ntp_ok" in 29723 yes) 29724 ntp_refclock=yes 29725 29726$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 29727 29728 ;; 29729esac 29730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29731$as_echo "$ntp_ok" >&6; } 29732 29733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5 29734$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; } 29735# Check whether --enable-TSYNCPCI was given. 29736if test "${enable_TSYNCPCI+set}" = set; then : 29737 enableval=$enable_TSYNCPCI; ntp_ok=$enableval 29738else 29739 29740 case "$host" in 29741 *-*-*linux*) 29742 ntp_ok=$ntp_eac 29743 ;; 29744 *) 29745 ntp_ok=no 29746 esac 29747 29748 29749fi 29750 29751case "$ntp_ok" in 29752 yes) 29753 ntp_refclock=yes 29754 29755$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h 29756 29757 ;; 29758esac 29759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29760$as_echo "$ntp_ok" >&6; } 29761 29762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 29763$as_echo_n "checking WWV receiver... " >&6; } 29764# Check whether --enable-WWV was given. 29765if test "${enable_WWV+set}" = set; then : 29766 enableval=$enable_WWV; ntp_ok=$enableval 29767else 29768 29769 case "$ntp_eac$ntp_canaudio" in 29770 *no*) ntp_ok=no ;; 29771 *) ntp_ok=yes ;; 29772 esac 29773 29774 29775fi 29776 29777case "$ntp_ok" in 29778 yes) 29779 ntp_refclock=yes 29780 29781$as_echo "#define CLOCK_WWV 1" >>confdefs.h 29782 29783 ;; 29784esac 29785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29786$as_echo "$ntp_ok" >&6; } 29787case "$ntp_ok$ntp_canaudio" in 29788 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 29789$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 29790esac 29791 29792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 29793$as_echo_n "checking for Zyfer receiver... " >&6; } 29794# Check whether --enable-ZYFER was given. 29795if test "${enable_ZYFER+set}" = set; then : 29796 enableval=$enable_ZYFER; ntp_ok=$enableval 29797else 29798 ntp_ok=$ntp_eac 29799 29800fi 29801 29802case "$ntp_ok" in 29803 yes) 29804 ntp_refclock=yes 29805 29806$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 29807 29808 ;; 29809esac 29810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29811$as_echo "$ntp_ok" >&6; } 29812 29813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 29814$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 29815# Check whether --enable-parse-clocks was given. 29816if test "${enable_parse_clocks+set}" = set; then : 29817 enableval=$enable_parse_clocks; ntp_eapc=$enableval 29818else 29819 29820 case "$ntp_eac" in 29821 yes) ntp_eapc=$ntp_canparse ;; 29822 *) ntp_eapc=no ;; 29823 esac 29824 # Delete the next line one of these days 29825 ntp_eapc=no 29826 29827 29828fi 29829 29830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 29831$as_echo "$ntp_eapc" >&6; } 29832 29833case "$ntp_eac$ntp_eapc$ntp_canparse" in 29834 noyes*) 29835 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 29836 ;; 29837 yesyesno) 29838 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 29839 ;; 29840esac 29841 29842ntp_libparse=no 29843ntp_parseutil=no 29844ntp_rawdcf=no 29845 29846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 29847$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 29848# Check whether --enable-COMPUTIME was given. 29849if test "${enable_COMPUTIME+set}" = set; then : 29850 enableval=$enable_COMPUTIME; ntp_ok=$enableval 29851else 29852 ntp_ok=$ntp_eapc 29853 29854fi 29855 29856case "$ntp_ok" in 29857 yes) 29858 ntp_libparse=yes 29859 ntp_refclock=yes 29860 29861$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 29862 29863 ;; 29864esac 29865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29866$as_echo "$ntp_ok" >&6; } 29867case "$ntp_ok$ntp_canparse" in 29868 yesno) 29869 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29870esac 29871 29872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 29873$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 29874# Check whether --enable-DCF7000 was given. 29875if test "${enable_DCF7000+set}" = set; then : 29876 enableval=$enable_DCF7000; ntp_ok=$enableval 29877else 29878 ntp_ok=$ntp_eapc 29879 29880fi 29881 29882case "$ntp_ok" in 29883 yes) 29884 ntp_libparse=yes 29885 ntp_refclock=yes 29886 29887$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 29888 29889 ;; 29890esac 29891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29892$as_echo "$ntp_ok" >&6; } 29893case "$ntp_ok$ntp_canparse" in 29894 yesno) 29895 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29896esac 29897 29898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 29899$as_echo_n "checking HOPF 6021 clock... " >&6; } 29900# Check whether --enable-HOPF6021 was given. 29901if test "${enable_HOPF6021+set}" = set; then : 29902 enableval=$enable_HOPF6021; ntp_ok=$enableval 29903else 29904 ntp_ok=$ntp_eapc 29905 29906fi 29907 29908case "$ntp_ok" in 29909 yes) 29910 ntp_libparse=yes 29911 ntp_refclock=yes 29912 29913$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 29914 29915 ;; 29916esac 29917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29918$as_echo "$ntp_ok" >&6; } 29919case "$ntp_ok$ntp_canparse" in 29920 yesno) 29921 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29922esac 29923 29924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 29925$as_echo_n "checking Meinberg clocks... " >&6; } 29926# Check whether --enable-MEINBERG was given. 29927if test "${enable_MEINBERG+set}" = set; then : 29928 enableval=$enable_MEINBERG; ntp_ok=$enableval 29929else 29930 ntp_ok=$ntp_eapc 29931 29932fi 29933 29934case "$ntp_ok" in 29935 yes) 29936 ntp_libparse=yes 29937 ntp_refclock=yes 29938 29939$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 29940 29941 ;; 29942esac 29943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29944$as_echo "$ntp_ok" >&6; } 29945case "$ntp_ok$ntp_canparse" in 29946 yesno) 29947 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29948esac 29949 29950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 29951$as_echo_n "checking DCF77 raw time code... " >&6; } 29952# Check whether --enable-RAWDCF was given. 29953if test "${enable_RAWDCF+set}" = set; then : 29954 enableval=$enable_RAWDCF; ntp_ok=$enableval 29955else 29956 ntp_ok=$ntp_eapc 29957 29958fi 29959 29960case "$ntp_ok" in 29961 yes) 29962 ntp_libparse=yes 29963 ntp_parseutil=yes 29964 ntp_refclock=yes 29965 ntp_rawdcf=yes 29966 29967$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 29968 29969 ;; 29970esac 29971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29972$as_echo "$ntp_ok" >&6; } 29973case "$ntp_ok$ntp_canparse" in 29974 yesno) 29975 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 29976esac 29977 29978case "$ntp_rawdcf" in 29979 yes) 29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 29981$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 29982if ${ntp_cv_rawdcf_parity+:} false; then : 29983 $as_echo_n "(cached) " >&6 29984else 29985 29986 ans=no 29987 case "$host" in 29988 *-*-*linux*) 29989 ans=yes 29990 ;; 29991 esac 29992 ntp_cv_rawdcf_parity=$ans 29993 29994 29995fi 29996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5 29997$as_echo "$ntp_cv_rawdcf_parity" >&6; } 29998 case "$ntp_cv_rawdcf_parity" in 29999 yes) 30000 30001$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 30002 ;; 30003 esac 30004esac 30005 30006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 30007$as_echo_n "checking RCC 8000 clock... " >&6; } 30008# Check whether --enable-RCC8000 was given. 30009if test "${enable_RCC8000+set}" = set; then : 30010 enableval=$enable_RCC8000; ntp_ok=$enableval 30011else 30012 ntp_ok=$ntp_eapc 30013 30014fi 30015 30016case "$ntp_ok" in 30017 yes) 30018 ntp_libparse=yes 30019 ntp_refclock=yes 30020 30021$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 30022 30023 ;; 30024esac 30025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30026$as_echo "$ntp_ok" >&6; } 30027case "$ntp_ok$ntp_canparse" in 30028 yesno) 30029 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30030esac 30031 30032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 30033$as_echo_n "checking Schmid DCF77 clock... " >&6; } 30034# Check whether --enable-SCHMID was given. 30035if test "${enable_SCHMID+set}" = set; then : 30036 enableval=$enable_SCHMID; ntp_ok=$enableval 30037else 30038 ntp_ok=$ntp_eapc 30039 30040fi 30041 30042case "$ntp_ok" in 30043 yes) 30044 ntp_libparse=yes 30045 ntp_refclock=yes 30046 30047$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 30048 30049 ;; 30050esac 30051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30052$as_echo "$ntp_ok" >&6; } 30053case "$ntp_ok$ntp_canparse" in 30054 yesno) 30055 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30056esac 30057 30058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 30059$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 30060# Check whether --enable-TRIMTAIP was given. 30061if test "${enable_TRIMTAIP+set}" = set; then : 30062 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 30063else 30064 ntp_ok=$ntp_eapc 30065 30066fi 30067 30068case "$ntp_ok" in 30069 yes) 30070 ntp_libparse=yes 30071 ntp_refclock=yes 30072 30073$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 30074 30075 ;; 30076esac 30077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30078$as_echo "$ntp_ok" >&6; } 30079case "$ntp_ok$ntp_canparse" in 30080 yesno) 30081 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30082esac 30083 30084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 30085$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 30086# Check whether --enable-TRIMTSIP was given. 30087if test "${enable_TRIMTSIP+set}" = set; then : 30088 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 30089else 30090 ntp_ok=$ntp_eapc 30091 30092fi 30093 30094case "$ntp_ok" in 30095 yes) 30096 ntp_libparse=yes 30097 ntp_refclock=yes 30098 30099$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 30100 30101 ;; 30102esac 30103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30104$as_echo "$ntp_ok" >&6; } 30105case "$ntp_ok$ntp_canparse" in 30106 yesno) 30107 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30108esac 30109 30110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 30111$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 30112# Check whether --enable-WHARTON was given. 30113if test "${enable_WHARTON+set}" = set; then : 30114 enableval=$enable_WHARTON; ntp_ok=$enableval 30115else 30116 ntp_ok=$ntp_eapc 30117 30118fi 30119 30120case "$ntp_ok" in 30121 yes) 30122 ntp_libparse=yes 30123 ntp_refclock=yes 30124 30125$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 30126 30127 ;; 30128esac 30129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30130$as_echo "$ntp_ok" >&6; } 30131case "$ntp_ok$ntp_canparse" in 30132 yesno) 30133 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30134esac 30135 30136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 30137$as_echo_n "checking VARITEXT clock... " >&6; } 30138# Check whether --enable-VARITEXT was given. 30139if test "${enable_VARITEXT+set}" = set; then : 30140 enableval=$enable_VARITEXT; ntp_ok=$enableval 30141else 30142 ntp_ok=$ntp_eapc 30143 30144fi 30145 30146case "$ntp_ok" in 30147 yes) 30148 ntp_libparse=yes 30149 ntp_refclock=yes 30150 30151$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 30152 30153 ;; 30154esac 30155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30156$as_echo "$ntp_ok" >&6; } 30157case "$ntp_ok$ntp_canparse" in 30158 yesno) 30159 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30160esac 30161 30162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5 30163$as_echo_n "checking SEL240X clock... " >&6; } 30164# Check whether --enable-SEL240X was given. 30165if test "${enable_SEL240X+set}" = set; then : 30166 enableval=$enable_SEL240X; ntp_ok=$enableval 30167else 30168 ntp_ok=$ntp_eapc 30169fi 30170 30171if test "$ntp_ok" = "yes"; then 30172 ntp_libparse=yes 30173 ntp_refclock=yes 30174 30175$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h 30176 30177fi 30178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30179$as_echo "$ntp_ok" >&6; } 30180case "$ntp_ok$ntp_canparse" in 30181 yesno) 30182 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 30183 ;; 30184esac 30185 30186 30187 30188 30189 30190 30191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 30192$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 30193ans=no 30194case "$ntp_libparse" in 30195 yes) 30196 ans=yes 30197 30198$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 30199 30200 LIBPARSE=../libparse/libparse.a 30201 MAKE_LIBPARSE=libparse.a 30202 # HMS: check_y2k trips the 34 year problem now... 30203 false && MAKE_CHECK_Y2K=check_y2k 30204esac 30205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30206$as_echo "$ans" >&6; } 30207 30208 30209 30210 30211VER_SUFFIX= 30212 30213 30214 30215 30216# Check whether --with-crypto was given. 30217if test "${with_crypto+set}" = set; then : 30218 withval=$with_crypto; 30219fi 30220 30221 30222# Check whether --with-openssl-libdir was given. 30223if test "${with_openssl_libdir+set}" = set; then : 30224 withval=$with_openssl_libdir; 30225fi 30226 30227 30228# Check whether --with-openssl-incdir was given. 30229if test "${with_openssl_incdir+set}" = set; then : 30230 withval=$with_openssl_incdir; 30231fi 30232 30233 30234# Check whether --with-rpath was given. 30235if test "${with_rpath+set}" = set; then : 30236 withval=$with_rpath; 30237fi 30238 30239 30240ntp_openssl=no 30241ntp_openssl_from_pkg_config=no 30242 30243with_crypto=${with_crypto:-openssl,libcrypto} 30244case "$with_crypto" in 30245 yes) 30246 with_crypto=openssl,libcrypto 30247esac 30248 30249 30250case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 30251 no:*) ;; 30252 *:notempty:notgiven:notgiven) 30253 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 30255$as_echo_n "checking pkg-config for $pkg... " >&6; } 30256 if $PKG_CONFIG --exists $pkg ; then 30257 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 30258 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 30259 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 30260 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`" 30261 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 30262 VER_SUFFIX=o 30263 ntp_openssl=yes 30264 ntp_openssl_from_pkg_config=yes 30265 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`" 30266 case "$ntp_openssl_version" in 30267 *.*) ;; 30268 *) ntp_openssl_version='(unknown)' ;; 30269 esac 30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5 30271$as_echo "yes, version $ntp_openssl_version" >&6; } 30272 30273 break 30274 fi 30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30276$as_echo "no" >&6; } 30277 done 30278esac 30279case "$with_crypto:$ntp_openssl" in 30280 no:*) ;; 30281 *:no) 30282 need_dash_r= 30283 need_dash_Wlrpath= 30284 case "${with_rpath-notgiven}" in 30285 yes) 30286 # Lame - what to do if we need -Wl... but not -R? 30287 need_dash_r=1 30288 ;; 30289 notgiven) 30290 case "$host" in 30291 *-*-linux*) 30292 # This may really only be true for gcc 30293 need_dash_Wlrpath=1 30294 ;; 30295 *-*-netbsd*) 30296 need_dash_r=1 30297 ;; 30298 *-*-solaris*) 30299 need_dash_r=1 30300 ;; 30301 esac 30302 ;; 30303 esac 30304 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 30306$as_echo_n "checking for openssl library directory... " >&6; } 30307 with_openssl_libdir=${with_openssl_libdir-notgiven} 30308 case "$with_openssl_libdir" in 30309 notgiven) 30310 case "$build" in 30311 $host) 30312 with_openssl_libdir=default 30313 ;; 30314 *) 30315 with_openssl_libdir=no 30316 ;; 30317 esac 30318 esac 30319 case "$with_openssl_libdir" in 30320 default) 30321 # Look in: 30322 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 30323 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 30324 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 30325 esac 30326 case "$with_openssl_libdir" in 30327 no) 30328 ;; 30329 *) # Look for libcrypto.a and libssl.a: 30330 for i in $with_openssl_libdir no 30331 do 30332 case "$host" in 30333 *-*-darwin*) 30334 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 30335 ;; 30336 *) 30337 test -f $i/libcrypto.so -a -f $i/libssl.so && break 30338 test -f $i/libcrypto.a -a -f $i/libssl.a && break 30339 ;; 30340 esac 30341 done 30342 openssl_libdir=$i 30343 ;; 30344 esac 30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 30346$as_echo "$openssl_libdir" >&6; } 30347 case "$openssl_libdir" in 30348 no) 30349 openssl_libdir= 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 30351$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 30352 esac 30353 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 30355$as_echo_n "checking for openssl include directory... " >&6; } 30356 with_openssl_incdir=${with_openssl_incdir-notgiven} 30357 case "$with_openssl_incdir" in 30358 notgiven) 30359 # Look in: 30360 with_openssl_incdir="/usr/include /usr/sfw/include" 30361 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 30362 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 30363 esac 30364 case "$with_openssl_incdir" in 30365 no) 30366 ;; 30367 *) # look for openssl/evp.h: 30368 for i in $with_openssl_incdir no 30369 do 30370 test -f $i/openssl/evp.h && break 30371 done 30372 openssl_incdir=$i 30373 ;; 30374 esac 30375 { i=; unset i;} 30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 30377$as_echo "$openssl_incdir" >&6; } 30378 case "$openssl_incdir" in 30379 no) 30380 openssl_incdir= 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 30382$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 30383 esac 30384 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 30385 then 30386 ntp_openssl=no 30387 else 30388 ntp_openssl=yes 30389 VER_SUFFIX=o 30390 fi 30391 case "$ntp_openssl" in 30392 yes) 30393 # We have OpenSSL inc/lib dirs - use them. 30394 case "$openssl_incdir" in 30395 /usr/include) 30396 ;; 30397 *) 30398 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 30399 ;; 30400 esac 30401 case "$openssl_libdir" in 30402 /usr/lib) 30403 ;; 30404 *) 30405 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 30406 case "$need_dash_r" in 30407 1) 30408 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 30409 esac 30410 case "$need_dash_Wlrpath" in 30411 1) 30412 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 30413 esac 30414 ;; 30415 esac 30416 LDADD_NTP="$LDADD_NTP -lcrypto" 30417 esac 30418esac 30419 30420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 30421$as_echo_n "checking if we will use crypto... " >&6; } 30422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 30423$as_echo "$ntp_openssl" >&6; } 30424 30425case "$ntp_openssl" in 30426 yes) 30427 for ac_header in openssl/cmac.h openssl/hmac.h 30428do : 30429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30432 cat >>confdefs.h <<_ACEOF 30433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30434_ACEOF 30435 30436fi 30437 30438done 30439 30440 30441$as_echo "#define OPENSSL /**/" >>confdefs.h 30442 30443 case "$VER_SUFFIX" in 30444 *o*) ;; 30445 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 30446 esac 30447 ;; 30448esac 30449 30450NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 30451CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 30452NTPO_SAVED_LIBS="$LIBS" 30453 30454# 30455# check for linking with -lcrypto failure, and try -lcrypto -lz. 30456# Helps m68k-atari-mint 30457# 30458case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 30459 yes:no) 30460 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 30462$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 30463if ${ntp_cv_bare_lcrypto+:} false; then : 30464 $as_echo_n "(cached) " >&6 30465else 30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30467/* end confdefs.h. */ 30468 30469 #include "openssl/err.h" 30470 #include "openssl/evp.h" 30471 30472int 30473main () 30474{ 30475 30476 ERR_load_crypto_strings(); 30477 OpenSSL_add_all_algorithms(); 30478 30479 30480 ; 30481 return 0; 30482} 30483_ACEOF 30484if ac_fn_c_try_link "$LINENO"; then : 30485 ntp_cv_bare_lcrypto=yes 30486else 30487 ntp_cv_bare_lcrypto=no 30488 30489fi 30490rm -f core conftest.err conftest.$ac_objext \ 30491 conftest$ac_exeext conftest.$ac_ext 30492 30493fi 30494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 30495$as_echo "$ntp_cv_bare_lcrypto" >&6; } 30496 case "$ntp_cv_bare_lcrypto" in 30497 no) 30498 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 30500$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 30501if ${ntp_cv_lcrypto_lz+:} false; then : 30502 $as_echo_n "(cached) " >&6 30503else 30504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30505/* end confdefs.h. */ 30506 30507 #include "openssl/err.h" 30508 #include "openssl/evp.h" 30509 30510int 30511main () 30512{ 30513 30514 ERR_load_crypto_strings(); 30515 OpenSSL_add_all_algorithms(); 30516 30517 30518 ; 30519 return 0; 30520} 30521_ACEOF 30522if ac_fn_c_try_link "$LINENO"; then : 30523 ntp_cv_lcrypto_lz=yes 30524else 30525 ntp_cv_lcrypto_lz=no 30526 30527fi 30528rm -f core conftest.err conftest.$ac_objext \ 30529 conftest$ac_exeext conftest.$ac_ext 30530 30531fi 30532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 30533$as_echo "$ntp_cv_lcrypto_lz" >&6; } 30534 case "$ntp_cv_lcrypto_lz" in 30535 yes) 30536 LDADD_NTP="$LDADD_NTP -lz" 30537 esac 30538 esac 30539esac 30540 30541# 30542# Older OpenSSL headers have a number of callback prototypes inside 30543# other function prototypes which trigger copious warnings with gcc's 30544# -Wstrict-prototypes, which is included in -Wall. 30545# 30546# An example: 30547# 30548# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 30549# int (*cb)(), int sgckey); 30550# ^^^^^^^^^^^ 30551# 30552# 30553# 30554openssl_triggers_warnings=unknown 30555NTPO_SAVED_CFLAGS="$CFLAGS" 30556 30557case "$ntp_openssl:$GCC" in 30558 yes:yes) 30559 CFLAGS="$CFLAGS -Werror" 30560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30561/* end confdefs.h. */ 30562 30563 30564int 30565main () 30566{ 30567 30568 /* see if -Werror breaks gcc */ 30569 30570 30571 ; 30572 return 0; 30573} 30574_ACEOF 30575if ac_fn_c_try_compile "$LINENO"; then : 30576 gcc_handles_Werror=yes 30577else 30578 gcc_handles_Werror=no 30579 30580fi 30581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30582 case "$gcc_handles_Werror" in 30583 no) 30584 # if this gcc doesn't do -Werror go ahead and use 30585 # -Wstrict-prototypes. 30586 openssl_triggers_warnings=yes 30587 ;; 30588 yes) 30589 CFLAGS="$CFLAGS -Wstrict-prototypes" 30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30591/* end confdefs.h. */ 30592 30593 #include "openssl/asn1_mac.h" 30594 #include "openssl/bn.h" 30595 #include "openssl/err.h" 30596 #include "openssl/evp.h" 30597 #include "openssl/pem.h" 30598 #include "openssl/rand.h" 30599 #include "openssl/x509v3.h" 30600 30601int 30602main () 30603{ 30604 30605 /* empty body */ 30606 30607 30608 ; 30609 return 0; 30610} 30611_ACEOF 30612if ac_fn_c_try_compile "$LINENO"; then : 30613 openssl_triggers_warnings=no 30614else 30615 openssl_triggers_warnings=yes 30616 30617fi 30618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30619 esac 30620 case "$openssl_triggers_warnings" in 30621 yes) 30622 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 30623 ;; 30624 *) 30625 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 30626 esac 30627 ;; 30628 no:yes) 30629 # gcc without OpenSSL 30630 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 30631esac 30632 30633# Because we don't want -Werror for the EVP_MD_do_all_sorted check 30634CFLAGS="$NTPO_SAVED_CFLAGS" 30635 30636case "$ntp_openssl" in 30637 yes) 30638 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30639 for ac_func in EVP_MD_do_all_sorted 30640do : 30641 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 30642if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 30643 cat >>confdefs.h <<_ACEOF 30644#define HAVE_EVP_MD_DO_ALL_SORTED 1 30645_ACEOF 30646 30647fi 30648done 30649 30650 ;; 30651esac 30652 30653 30654CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 30655LIBS="$NTPO_SAVED_LIBS" 30656{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 30657{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 30658{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 30659{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 30660{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 30661 30662 30663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5 30664$as_echo_n "checking if we want to enable CMAC support... " >&6; } 30665case "$ac_cv_header_openssl_cmac_h" in 30666 yes) 30667 30668$as_echo "#define ENABLE_CMAC 1" >>confdefs.h 30669 30670 ans="yes" 30671 ;; 30672 *) ans="no" 30673 ;; 30674esac 30675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30676$as_echo "$ans" >&6; } 30677 30678 30679 30680 30681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5 30682$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; } 30683# Check whether --enable-openssl-random was given. 30684if test "${enable_openssl_random+set}" = set; then : 30685 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval 30686else 30687 ntp_use_openssl_random=yes 30688 30689fi 30690 30691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5 30692$as_echo "$ntp_use_openssl_random" >&6; } 30693 30694# The following might need extra libraries 30695NTPO_SAVED_LIBS="$LIBS" 30696LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 30697for ac_func in RAND_bytes RAND_poll 30698do : 30699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30701if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30702 cat >>confdefs.h <<_ACEOF 30703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30704_ACEOF 30705 30706fi 30707done 30708 30709LIBS="$NTPO_SAVED_LIBS" 30710case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in 30711 yesyesyes) 30712 30713$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h 30714 30715 ;; 30716 *) ntp_use_openssl_random=no ;; 30717esac 30718 30719 30720 30721# if we are using OpenSSL (--with-crypto), by default Autokey is enabled 30722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5 30723$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; } 30724# Check whether --enable-autokey was given. 30725if test "${enable_autokey+set}" = set; then : 30726 enableval=$enable_autokey; ntp_autokey=$enableval 30727else 30728 ntp_autokey=$ntp_openssl 30729 30730fi 30731 30732case "$ntp_autokey" in 30733 no) 30734 ;; 30735 *) 30736 case "$ntp_openssl" in 30737 no) 30738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5 30739$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;} 30740 ntp_autokey=no 30741 ;; 30742 *) 30743 30744$as_echo "#define AUTOKEY 1" >>confdefs.h 30745 30746 ntp_autokey=yes 30747 ;; 30748 esac 30749 ;; 30750esac 30751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5 30752$as_echo "$ntp_autokey" >&6; } 30753 30754 30755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 30756$as_echo_n "checking if we want to run check-layout... " >&6; } 30757case "$cross_compiling$PATH_PERL" in 30758 no/*) 30759 MAKE_CHECK_LAYOUT=check-layout 30760 ans=yes 30761 ;; 30762 *) 30763 ans=no 30764 ;; 30765esac 30766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30767$as_echo "$ans" >&6; } 30768 30769 30770 30771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 30772$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 30773ans=no 30774case "$ntp_parseutil" in 30775 yes) 30776 case "$host" in 30777 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 30778 ans="dcfd testdcf" 30779 DCFD=dcfd 30780 TESTDCF=testdcf 30781 esac 30782 ;; 30783esac 30784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30785$as_echo "$ans" >&6; } 30786 30787 30788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 30789$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 30790ans=no 30791case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 30792 yesyes) 30793 case "$host" in 30794 sparc-*-sunos4*) 30795 case "$ntp_cv_var_kernel_pll" in 30796 yes) 30797 30798$as_echo "#define PPS_SYNC 1" >>confdefs.h 30799 30800 ;; 30801 esac 30802 ans=parsestreams 30803 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 30804 ;; 30805 sparc-*-solaris2*) 30806 ans=parsesolaris 30807 MAKE_PARSEKMODULE=parse 30808 for ac_header in strings.h 30809do : 30810 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 30811if test "x$ac_cv_header_strings_h" = xyes; then : 30812 cat >>confdefs.h <<_ACEOF 30813#define HAVE_STRINGS_H 1 30814_ACEOF 30815 30816fi 30817 30818done 30819 30820 ;; 30821 esac 30822 ;; 30823esac 30824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30825$as_echo "$ans" >&6; } 30826 30827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 30828$as_echo_n "checking if we need basic refclock support... " >&6; } 30829case "$ntp_refclock" in 30830 yes) 30831 30832$as_echo "#define REFCLOCK 1" >>confdefs.h 30833 30834 ;; 30835esac 30836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 30837$as_echo "$ntp_refclock" >&6; } 30838 30839PROPDELAY=propdelay 30840 30841 30842 30843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 30844$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 30845case "$host" in 30846 *-*-hpux[56789]*) 30847 ans=yes 30848 ;; 30849 *) ans=no 30850 ;; 30851esac 30852case "$ans" in 30853 yes) 30854 MAKE_ADJTIMED=adjtimed 30855 30856$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 30857 30858 ;; 30859 *) ADJTIMED_DB= 30860 ADJTIMED_DL= 30861 ADJTIMED_DS= 30862 ADJTIMED_MS= 30863 ;; 30864esac 30865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30866$as_echo "$ans" >&6; } 30867 30868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 30869$as_echo_n "checking if we want QNX adjtime support... " >&6; } 30870case "$host" in 30871 *-*-qnx*) 30872 ans=yes 30873 ;; 30874 *) ans=no 30875 ;; 30876esac 30877case "$ans" in 30878 yes) 30879 30880$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 30881 30882 ;; 30883esac 30884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30885$as_echo "$ans" >&6; } 30886 30887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 30888$as_echo_n "checking if we can read kmem... " >&6; } 30889 30890# the default is to enable it if the system has the capability 30891 30892case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 30893 *yes*) 30894 ans=yes 30895 ;; 30896 *) ans=no 30897 ;; 30898esac 30899 30900case "$host" in 30901 *-*-domainos) # Won't be found... 30902 ans=no 30903 ;; 30904 *-*-hpux*) 30905 #ans=no 30906 ;; 30907 *-*-irix[456]*) 30908 ans=no 30909 ;; 30910 *-*-*linux*) 30911 ans=no 30912 ;; 30913 *-*-winnt3.5) 30914 ans=no 30915 ;; 30916 *-*-unicosmp*) 30917 ans=no 30918 ;; 30919esac 30920 30921# --enable-kmem / --disable-kmem controls if present 30922# Check whether --enable-kmem was given. 30923if test "${enable_kmem+set}" = set; then : 30924 enableval=$enable_kmem; ans=$enableval 30925 30926fi 30927 30928 30929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30930$as_echo "$ans" >&6; } 30931 30932case "$ans" in 30933 yes) 30934 can_kmem=yes 30935 ;; 30936 *) 30937 can_kmem=no 30938 30939$as_echo "#define NOKMEM 1" >>confdefs.h 30940 30941esac 30942 30943 30944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 30945$as_echo_n "checking if adjtime is accurate... " >&6; } 30946 30947# target-dependent defaults 30948 30949case "$host" in 30950 i386-sequent-ptx*) 30951 ans=no 30952 ;; 30953 i386-unknown-osf1*) 30954 ans=yes 30955 ;; 30956 mips-sgi-irix[456]*) 30957 ans=yes 30958 ;; 30959 *-fujitsu-uxp*) 30960 ans=yes 30961 ;; 30962 *-ibm-aix[4-9]*) 30963 # XXX only verified thru AIX6. 30964 ans=yes 30965 ;; 30966 *-*-*linux*) 30967 ans=yes 30968 ;; 30969 *-*-solaris2.[01]) 30970 ans=no 30971 ;; 30972 *-*-solaris2*) 30973 ans=yes 30974 ;; 30975 *-*-unicosmp*) 30976 ans=yes 30977 ;; 30978 *) ans=no 30979 ;; 30980esac 30981 30982# --enable-accurate-adjtime / --disable-accurate-adjtime 30983# override the default 30984# Check whether --enable-accurate-adjtime was given. 30985if test "${enable_accurate_adjtime+set}" = set; then : 30986 enableval=$enable_accurate_adjtime; ans=$enableval 30987 30988fi 30989 30990 30991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30992$as_echo "$ans" >&6; } 30993 30994case "$ans" in 30995 yes) 30996 30997$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 30998 30999 adjtime_is_accurate=yes 31000 ;; 31001 *) 31002 adjtime_is_accurate=no 31003 ;; 31004esac 31005 31006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 31007$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 31008if ${ntp_cv_nlist_tick+:} false; then : 31009 $as_echo_n "(cached) " >&6 31010else 31011 31012 ans=_tick 31013 case "$host" in 31014 m68*-hp-hpux*) # HP9000/300? 31015 ans=_old_tick 31016 ;; 31017 *-apple-aux[23]*) 31018 ans=tick 31019 ;; 31020 *-hp-hpux*) 31021 ans=old_tick 31022 ;; 31023 *-ibm-aix[3-9]*) 31024 # XXX only verified thru AIX6. 31025 ans=no 31026 ;; 31027 *-*-mpeix*) 31028 ans=no 31029 ;; 31030 *-*-ptx*) 31031 ans=tick 31032 ;; 31033 *-*-sco3.2v[45]*) 31034 ans=no 31035 ;; 31036 *-*-solaris2*) 31037 ans=nsec_per_tick 31038 ;; 31039 *-*-sysv4*) 31040 ans=tick 31041 ;; 31042 esac 31043 ntp_cv_nlist_tick=$ans 31044 31045 31046fi 31047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5 31048$as_echo "$ntp_cv_nlist_tick" >&6; } 31049case "$ntp_cv_nlist_tick" in 31050 ''|no) 31051 ;; # HMS: I think we can only get 'no' here... 31052 *) 31053 31054cat >>confdefs.h <<_ACEOF 31055#define K_TICK_NAME "$ntp_cv_nlist_tick" 31056_ACEOF 31057 31058esac 31059 31060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 31061$as_echo_n "checking for the units of 'tick'... " >&6; } 31062if ${ntp_cv_tick_nano+:} false; then : 31063 $as_echo_n "(cached) " >&6 31064else 31065 31066 ans=usec 31067 case "$host" in 31068 *-*-solaris2*) 31069 ans=nsec 31070 ;; 31071 esac 31072 ntp_cv_tick_nano=$ans 31073 31074 31075fi 31076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5 31077$as_echo "$ntp_cv_tick_nano" >&6; } 31078case "$ntp_cv_tick_nano" in 31079 nsec) 31080 31081$as_echo "#define TICK_NANO 1" >>confdefs.h 31082 31083esac 31084 31085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 31086$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 31087if ${ntp_cv_nlist_tickadj+:} false; then : 31088 $as_echo_n "(cached) " >&6 31089else 31090 31091 ans=_tickadj 31092 case "$host" in 31093 m68*-hp-hpux*) # HP9000/300? 31094 ans=_tickadj 31095 ;; 31096 *-apple-aux[23]*) 31097 ans=tickadj 31098 ;; 31099 *-hp-hpux10*) 31100 ans=no 31101 ;; 31102 *-hp-hpux9*) 31103 ans=no 31104 ;; 31105 *-hp-hpux*) 31106 ans=tickadj 31107 ;; 31108 *-*-aix*) 31109 ans=tickadj 31110 ;; 31111 *-*-mpeix*) 31112 ans=no 31113 ;; 31114 *-*-ptx*) 31115 ans=tickadj 31116 ;; 31117 *-*-sco3.2v4*) 31118 ans=no 31119 ;; 31120 *-*-sco3.2v5.0*) 31121 ans=clock_drift 31122 ;; 31123 *-*-solaris2*) 31124 ans=no # hrestime_adj 31125 ;; 31126 *-*-sysv4*) 31127 ans=tickadj 31128 ;; 31129 esac 31130 ntp_cv_nlist_tickadj=$ans 31131 31132 31133fi 31134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5 31135$as_echo "$ntp_cv_nlist_tickadj" >&6; } 31136case "$ntp_cv_nlist_tickadj" in 31137 ''|no) 31138 ;; # HMS: I think we can only get 'no' here... 31139 *) 31140 31141cat >>confdefs.h <<_ACEOF 31142#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj" 31143_ACEOF 31144 31145esac 31146 31147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 31148$as_echo_n "checking for the units of 'tickadj'... " >&6; } 31149if ${ntp_cv_tickadj_nano+:} false; then : 31150 $as_echo_n "(cached) " >&6 31151else 31152 31153 ans=usec 31154 case "$host" in 31155 *-*-solaris2*) 31156 ans=nsec 31157 ;; 31158 esac 31159 ntp_cv_tickadj_nano=$ans 31160 31161 31162fi 31163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5 31164$as_echo "$ntp_cv_tickadj_nano" >&6; } 31165case "$ntp_cv_tickadj_nano" in 31166 nsec) 31167 31168$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 31169 31170esac 31171 31172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 31173$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 31174if ${ntp_cv_nlist_dosynctodr+:} false; then : 31175 $as_echo_n "(cached) " >&6 31176else 31177 31178 case "$host" in 31179 *-apple-aux[23]*) 31180 ans=no 31181 ;; 31182 *-sni-sysv*) 31183 ans=dosynctodr 31184 ;; 31185 *-stratus-vos) 31186 ans=no 31187 ;; 31188 *-*-aix*) 31189 ans=dosynctodr 31190 ;; 31191 *-*-hpux*) 31192 ans=no 31193 ;; 31194 *-*-mpeix*) 31195 ans=no 31196 ;; 31197 *-*-nextstep*) 31198 ans=_dosynctodr 31199 ;; 31200 *-*-ptx*) 31201 ans=doresettodr 31202 ;; 31203 *-*-sco3.2v4*) 31204 ans=no 31205 ;; 31206 *-*-sco3.2v5*) 31207 ans=track_rtc 31208 ;; 31209 *-*-solaris2*) 31210 ans=dosynctodr 31211 ;; 31212 *-*-sysv4*) 31213 ans=doresettodr 31214 ;; 31215 *) 31216 ans=_dosynctodr 31217 ;; 31218 esac 31219 ntp_cv_nlist_dosynctodr=$ans 31220 31221 31222fi 31223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5 31224$as_echo "$ntp_cv_nlist_dosynctodr" >&6; } 31225case "$ntp_cv_nlist_dosynctodr" in 31226 no) 31227 ;; 31228 *) 31229 31230cat >>confdefs.h <<_ACEOF 31231#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr" 31232_ACEOF 31233 31234 ;; 31235esac 31236 31237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 31238$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 31239if ${ntp_cv_nlist_noprintf+:} false; then : 31240 $as_echo_n "(cached) " >&6 31241else 31242 31243 case "$host" in 31244 *-apple-aux[23]*) 31245 ans=no 31246 ;; 31247 *-sni-sysv*) 31248 ans=noprintf 31249 ;; 31250 *-stratus-vos) 31251 ans=no 31252 ;; 31253 *-*-aix*) 31254 ans=noprintf 31255 ;; 31256 *-*-hpux*) 31257 ans=no 31258 ;; 31259 *-*-mpeix*) 31260 ans=no 31261 ;; 31262 *-*-ptx*) 31263 ans=noprintf 31264 ;; 31265 *-*-nextstep*) 31266 ans=_noprintf 31267 ;; 31268 *-*-solaris2*) 31269 ans=noprintf 31270 ;; 31271 *-*-sysv4*) 31272 ans=noprintf 31273 ;; 31274 *) 31275 ans=_noprintf 31276 ;; 31277 esac 31278 ntp_cv_nlist_noprintf=$ans 31279 31280 31281fi 31282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5 31283$as_echo "$ntp_cv_nlist_noprintf" >&6; } 31284case "$ntp_cv_nlist_noprintf" in 31285 no) 31286 ;; 31287 *) 31288 31289cat >>confdefs.h <<_ACEOF 31290#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf" 31291_ACEOF 31292 31293 ;; 31294esac 31295 31296 31297 31298 31299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 31300$as_echo_n "checking for a default value for 'tick'... " >&6; } 31301 31302# target-dependent default for tick 31303 31304case "$host" in 31305 *-*-pc-cygwin*) 31306 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5 31307 ;; 31308 *-univel-sysv*) 31309 ans=10000 31310 ;; 31311 *-*-irix*) 31312 ans=10000 31313 ;; 31314 *-*-*linux*) 31315 ans=txc.tick 31316 ;; 31317 *-*-mpeix*) 31318 ans=no 31319 ;; 31320 *-*-winnt3.5) 31321 ans='(every / 10)' 31322 ;; 31323 *-*-unicosmp*) 31324 ans=10000 31325 ;; 31326 *) 31327 ans='1000000L/hz' 31328 ;; 31329esac 31330 31331# Check whether --enable-tick was given. 31332if test "${enable_tick+set}" = set; then : 31333 enableval=$enable_tick; ans=$enableval 31334 31335fi 31336 31337 31338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31339$as_echo "$ans" >&6; } 31340 31341case "$ans" in 31342 ''|no) 31343 ;; # HMS: I think we can only get 'no' here... 31344 *) 31345 31346cat >>confdefs.h <<_ACEOF 31347#define PRESET_TICK $ans 31348_ACEOF 31349 31350esac 31351 31352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 31353$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 31354 31355# target-specific default 31356ans='500/hz' 31357case "$host" in 31358 *-fujitsu-uxp*) 31359 case "$adjtime_is_accurate" in 31360 yes) 31361 ans='tick/16' 31362 esac 31363 ;; 31364 *-univel-sysv*) 31365 ans=80 31366 ;; 31367 *-*-aix*) 31368 case "$can_kmem" in 31369 no) 31370 ans=1000 31371 ;; 31372 esac 31373 ;; 31374 *-*-domainos) # Skippy: won't be found... 31375 case "$can_kmem" in 31376 no) 31377 ans=668 31378 ;; 31379 esac 31380 ;; 31381 *-*-hpux*) 31382 case "$adjtime_is_accurate" in 31383 yes) 31384 ans='tick/16' 31385 ;; 31386 esac 31387 ;; 31388 *-*-irix*) 31389 ans=150 31390 ;; 31391 *-*-mpeix*) 31392 ans=no 31393 ;; 31394 *-*-sco3.2v5.0*) 31395 ans=10000L/hz 31396 ;; 31397 *-*-winnt3.5) 31398 ans=50 31399 ;; 31400 *-*-unicosmp*) 31401 ans=150 31402 ;; 31403esac 31404 31405# Check whether --enable-tickadj was given. 31406if test "${enable_tickadj+set}" = set; then : 31407 enableval=$enable_tickadj; ans=$enableval 31408 31409fi 31410 31411 31412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31413$as_echo "$ans" >&6; } 31414 31415default_tickadj=$ans 31416 31417case "$default_tickadj" in 31418 ''|no) 31419 ;; # HMS: I think we can only get 'no' here... 31420 *) 31421 31422cat >>confdefs.h <<_ACEOF 31423#define PRESET_TICKADJ $default_tickadj 31424_ACEOF 31425 ;; 31426esac 31427 31428# Newer versions of ReliantUNIX round adjtime() values down to 31429# 1/100s (system tick). Sigh ... 31430# Unfortunately, there is no easy way to know if particular release 31431# has this "feature" or any obvious way to test for it. 31432case "$host" in 31433 mips-sni-sysv4*) 31434 31435$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 31436 31437esac 31438 31439case "$host" in 31440 *-*-sco3.2v5*) 31441 31442$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 31443 31444esac 31445 31446ntp_cv_make_tickadj=yes 31447case "$can_kmem$ac_cv_var_tick$default_tickadj" in 31448 nonono) # Don't read KMEM, no presets. Bogus. 31449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 31450$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 31451 ntp_cv_make_tickadj=no 31452 ;; 31453 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 31454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 31455$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 31456 ntp_cv_make_tickadj=no 31457 ;; 31458 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 31460$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 31461 ntp_cv_make_tickadj=no 31462 ;; 31463 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 31464 ;; 31465 yesnono) # Read KMEM, no presets. Cool. 31466 ;; 31467 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 31468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 31469$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 31470 ;; 31471 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 31472 ;; 31473 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 31474 ;; 31475 *) # Generally bogus. 31476 as_fn_error $? "This shouldn't happen." "$LINENO" 5 31477 ;; 31478esac 31479 31480 31481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 31482$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 31483if ${ac_cv_make_ntptime+:} false; then : 31484 $as_echo_n "(cached) " >&6 31485else 31486 case "$host" in 31487 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in 31488 yesyes) 31489 ans=yes 31490 ;; 31491 *) 31492 ans=no 31493 ;; 31494 esac 31495 ;; 31496esac 31497ac_cv_make_ntptime=$ans 31498fi 31499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 31500$as_echo "$ac_cv_make_ntptime" >&6; } 31501case "$ac_cv_make_ntptime" in 31502 yes) 31503 MAKE_NTPTIME=ntptime 31504 ;; 31505 *) 31506 NTPTIME_DB= 31507 NTPTIME_DL= 31508 NTPTIME_DS= 31509 NTPTIME_MS= 31510 ;; 31511esac 31512 31513 31514case "$host" in 31515 mips-sni-sysv4*) 31516 # tickadj is pretty useless on newer versions of ReliantUNIX 31517 # Do not bother 31518 ntp_cv_make_tickadj=no 31519 ;; 31520 *-*-irix*) 31521 ntp_cv_make_tickadj=no 31522 ;; 31523 *-*-solaris2*) 31524 # DLM says tickadj is a no-no starting with solaris2.5 31525 case "$host" in 31526 *-*-solaris2.1[0-9]*) 31527 ntp_cv_make_tickadj=no 31528 ;; 31529 *-*-solaris2.[0-4]*) ;; 31530 *) ntp_cv_make_tickadj=no ;; 31531 esac 31532 ;; 31533 *-*-unicosmp*) 31534 ntp_cv_make_tickadj=no 31535 ;; 31536esac 31537 31538# 31539# Despite all the above, we always make tickadj. Setting 31540# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false 31541# report that the configuration variable was cached. It may 31542# be better to simply remove the hunk above, I did not want 31543# to remove it if there is hope it will be used again. 31544# 31545{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;} 31546 31547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 31548$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 31549if ${ntp_cv_make_tickadj+:} false; then : 31550 $as_echo_n "(cached) " >&6 31551else 31552 ntp_cv_make_tickadj=yes 31553 31554fi 31555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5 31556$as_echo "$ntp_cv_make_tickadj" >&6; } 31557case "$ntp_cv_make_tickadj" in 31558 yes) 31559 MAKE_TICKADJ=tickadj 31560 ;; 31561 *) 31562 CALC_TICKADJ_DB= 31563 CALC_TICKADJ_DL= 31564 CALC_TICKADJ_DS= 31565 CALC_TICKADJ_MS= 31566 TICKADJ_DB= 31567 TICKADJ_DL= 31568 TICKADJ_DS= 31569 TICKADJ_MS= 31570 ;; 31571esac 31572 31573 31574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 31575$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 31576if ${ntp_cv_make_timetrim+:} false; then : 31577 $as_echo_n "(cached) " >&6 31578else 31579 31580 case "$host" in 31581 *-*-irix*) 31582 ntp_cv_make_timetrim=yes 31583 ;; 31584 *-*-unicosmp*) 31585 ntp_cv_make_timetrim=yes 31586 ;; 31587 *) 31588 ntp_cv_make_timetrim=no 31589 ;; 31590 esac 31591 31592 31593fi 31594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5 31595$as_echo "$ntp_cv_make_timetrim" >&6; } 31596case "$ntp_cv_make_timetrim" in 31597 yes) 31598 MAKE_TIMETRIM=timetrim 31599 ;; 31600 *) TIMETRIM_DB= 31601 TIMETRIM_DL= 31602 TIMETRIM_DS= 31603 TIMETRIM_MS= 31604 ;; 31605esac 31606 31607 31608 31609 31610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 31611$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 31612# Check whether --enable-simulator was given. 31613if test "${enable_simulator+set}" = set; then : 31614 enableval=$enable_simulator; ans=$enableval 31615else 31616 ans=no 31617 31618fi 31619 31620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31621$as_echo "$ans" >&6; } 31622case "$ans" in 31623 yes) 31624 MAKE_NTPDSIM=ntpdsim 31625 MAKE_LIBNTPSIM=libntpsim.a 31626 ;; 31627 *) 31628 NTPDSIM_DB= 31629 NTPDSIM_DL= 31630 NTPDSIM_DS= 31631 NTPDSIM_MS= 31632 ;; 31633esac 31634 31635case "$build" in 31636 $host) 31637 ;; 31638 *) case "$host" in 31639 *-*-vxworks*) 31640 LDFLAGS="$LDFLAGS -r" 31641 ;; 31642 esac 31643 ;; 31644esac 31645 31646 31647 31648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 31649$as_echo_n "checking if sntp will be built... " >&6; } 31650 31651# Check whether --with-sntp was given. 31652if test "${with_sntp+set}" = set; then : 31653 withval=$with_sntp; 31654else 31655 with_sntp="${withsntp=yes}" 31656 31657fi 31658 31659case "$with_sntp" in 31660 no) 31661 SNTP= 31662 ;; 31663 *) 31664 SNTP=sntp 31665 ;; 31666esac 31667 31668 if test -n "$SNTP"; then 31669 BUILD_SNTP_TRUE= 31670 BUILD_SNTP_FALSE='#' 31671else 31672 BUILD_SNTP_TRUE='#' 31673 BUILD_SNTP_FALSE= 31674fi 31675 31676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 31677$as_echo "$with_sntp" >&6; } 31678 31679 31680 31681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 31682$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 31683 31684# Check whether --with-ntpsnmpd was given. 31685if test "${with_ntpsnmpd+set}" = set; then : 31686 withval=$with_ntpsnmpd; ans=$withval 31687else 31688 31689 case "$PATH_NET_SNMP_CONFIG" in 31690 /*) ans=yes ;; 31691 *) ans=no ;; 31692 esac 31693 31694 31695fi 31696 31697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31698$as_echo "$ans" >&6; } 31699case "$ans" in 31700 yes) 31701 case "$PATH_NET_SNMP_CONFIG" in 31702 /*) 31703 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 31704 # Bug 2815. This is a bit of a hack, but it works... 31705 case "$ntp_cv_net_snmp_version" in 31706 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'` 31707 ;; 31708 esac 31709 31710 # HMS: we really want to separate CPPFLAGS and CFLAGS 31711 foo=`$PATH_NET_SNMP_CONFIG --cflags` 31712 SNMP_CPPFLAGS= 31713 SNMP_CFLAGS= 31714 for i in $foo; do 31715 case "$i" in 31716 -D*|-U*|-I*) 31717 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 31718 ;; 31719 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 31720 ;; 31721 esac 31722 done 31723 31724 31725 31726 save_CFLAGS=$CFLAGS 31727 save_CPPFLAGS=$CPPFLAGS 31728 save_LIBS=$LIBS 31729 CFLAGS=$SNMP_CFLAGS 31730 CPPFLAGS=$SNMP_CPPFLAGS 31731 31732 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" 31733if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 31734 MAKE_NTPSNMPD=ntpsnmpd 31735else 31736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 31737$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 31738 31739fi 31740 31741 31742 31743 # Do this last, as we're messing up LIBS. 31744 # check -lnetsnmp for netsnmp_daemonize 31745 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 31746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 31747$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 31748if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then : 31749 $as_echo_n "(cached) " >&6 31750else 31751 ac_check_lib_save_LIBS=$LIBS 31752LIBS="-lnetsnmp $LIBS" 31753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31754/* end confdefs.h. */ 31755 31756/* Override any GCC internal prototype to avoid an error. 31757 Use char because int might match the return type of a GCC 31758 builtin and then its argument prototype would still apply. */ 31759#ifdef __cplusplus 31760extern "C" 31761#endif 31762char netsnmp_daemonize (); 31763int 31764main () 31765{ 31766return netsnmp_daemonize (); 31767 ; 31768 return 0; 31769} 31770_ACEOF 31771if ac_fn_c_try_link "$LINENO"; then : 31772 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 31773else 31774 ac_cv_lib_netsnmp_netsnmp_daemonize=no 31775fi 31776rm -f core conftest.err conftest.$ac_objext \ 31777 conftest$ac_exeext conftest.$ac_ext 31778LIBS=$ac_check_lib_save_LIBS 31779fi 31780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 31781$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 31782if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then : 31783 ans=yes 31784else 31785 ans=no 31786 31787fi 31788 31789 case "$ans" in 31790 no) 31791 31792$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 31793 31794 esac 31795 31796 CFLAGS=$save_CFLAGS 31797 { save_CFLAGS=; unset save_CFLAGS;} 31798 CPPFLAGS=$save_CPPFLAGS 31799 { save_CPPFLAGS=; unset save_CPPFLAGS;} 31800 LIBS=$save_LIBS 31801 { save_LIBS=; unset save_LIBS;} 31802 ;; 31803 *) 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5 31805$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;} 31806 ;; 31807 esac 31808 ;; 31809esac 31810 31811 31812case "$MAKE_NTPSNMPD" in 31813 '') 31814 NTPSNMPD_DB= 31815 NTPSNMPD_DL= 31816 NTPSNMPD_DS= 31817 NTPSNMPD_MS= 31818 ;; 31819esac 31820 31821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 31822$as_echo_n "checking if we should always slew the time... " >&6; } 31823 31824# target-specific defaults 31825 31826case "$host" in 31827 *-apple-aux[23]*) 31828 ans=yes 31829 ;; 31830 *-*-bsdi[012]*) 31831 ans=no 31832 ;; 31833 *-*-bsdi*) 31834 ans=yes 31835 ;; 31836 *-*-openvms*) # HMS: won't be found 31837 ans=yes 31838 ;; 31839 *) ans=no 31840 ;; 31841esac 31842 31843# --enable-slew-always / --disable-slew-always overrides default 31844 31845# Check whether --enable-slew-always was given. 31846if test "${enable_slew_always+set}" = set; then : 31847 enableval=$enable_slew_always; ans=$enableval 31848 31849fi 31850 31851 31852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31853$as_echo "$ans" >&6; } 31854 31855case "$ans" in 31856 yes) 31857 31858$as_echo "#define SLEWALWAYS 1" >>confdefs.h 31859 31860esac 31861 31862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 31863$as_echo_n "checking if we should step and slew the time... " >&6; } 31864 31865case "$host" in 31866 *-sni-sysv*) 31867 ans=yes 31868 ;; 31869 *-stratus-vos) 31870 ans=no 31871 ;; 31872 *-univel-sysv*) 31873 ans=no 31874 ;; 31875 *-*-ptx*) 31876 ans=yes 31877 ;; 31878 *-*-solaris2.1[0-9]*) 31879 ans=no 31880 ;; 31881 *-*-solaris2.[012]*) 31882 ans=yes 31883 ;; 31884 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 31885 ans=yes 31886 ;; 31887 *) ans=no 31888 ;; 31889esac 31890 31891# Check whether --enable-step-slew was given. 31892if test "${enable_step_slew+set}" = set; then : 31893 enableval=$enable_step_slew; ans=$enableval 31894 31895fi 31896 31897 31898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31899$as_echo "$ans" >&6; } 31900 31901case "$ans" in 31902 yes) 31903 31904$as_echo "#define STEP_SLEW 1" >>confdefs.h 31905 31906esac 31907 31908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 31909$as_echo_n "checking if ntpdate should step the time... " >&6; } 31910 31911case "$host" in 31912 *-apple-aux[23]*) 31913 ans=yes 31914 ;; 31915 *) ans=no 31916 ;; 31917esac 31918 31919# Check whether --enable-ntpdate-step was given. 31920if test "${enable_ntpdate_step+set}" = set; then : 31921 enableval=$enable_ntpdate_step; ans=$enableval 31922 31923fi 31924 31925 31926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31927$as_echo "$ans" >&6; } 31928 31929case "$ans" in 31930 yes) 31931 31932$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 31933 31934esac 31935 31936 31937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 31938$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 31939 31940case "$host" in 31941 *-*-nextstep*) 31942 ans=yes 31943 ;; 31944 *-*-openvms*) # HMS: won't be found 31945 ans=yes 31946 ;; 31947 *) 31948 ans=no 31949 ;; 31950esac 31951 31952# Check whether --enable-hourly-todr-sync was given. 31953if test "${enable_hourly_todr_sync+set}" = set; then : 31954 enableval=$enable_hourly_todr_sync; ans=$enableval 31955 31956fi 31957 31958 31959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31960$as_echo "$ans" >&6; } 31961 31962case "$ac_cv_var_sync_todr" in 31963 yes) 31964 31965$as_echo "#define DOSYNCTODR 1" >>confdefs.h 31966 ;; 31967esac 31968 31969 31970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 31971$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 31972 31973case "$host" in 31974 *-*-solaris2.6) 31975 unamev=`uname -v` 31976 case "$unamev" in 31977 Generic_105181-*) 31978 old_IFS="$IFS" 31979 IFS="-" 31980 set $unamev 31981 IFS="$old_IFS" 31982 if test "$2" -ge 17 31983 then 31984 # Generic_105181-17 and higher 31985 ans=no 31986 else 31987 ans=yes 31988 fi 31989 ;; 31990 *) 31991 ans=yes 31992 ;; 31993 esac 31994 ;; 31995 *-*-solaris2.7) 31996 unamev=`uname -v` 31997 case "$unamev" in 31998 Generic_106541-*) 31999 old_IFS="$IFS" 32000 IFS="-" 32001 set $unamev 32002 IFS="$old_IFS" 32003 if test "$2" -ge 07 32004 then 32005 # Generic_106541-07 and higher 32006 ans=no 32007 else 32008 ans=yes 32009 fi 32010 ;; 32011 *) 32012 ans=yes 32013 ;; 32014 esac 32015 ;; 32016 *) 32017 ans=no 32018 ;; 32019esac 32020 32021# Check whether --enable-kernel-fll-bug was given. 32022if test "${enable_kernel_fll_bug+set}" = set; then : 32023 enableval=$enable_kernel_fll_bug; ans=$enableval 32024 32025fi 32026 32027 32028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32029$as_echo "$ans" >&6; } 32030 32031case "$ans" in 32032 yes) 32033 32034$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 32035 32036esac 32037 32038 32039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 32040$as_echo_n "checking if we want new session key behavior... " >&6; } 32041# Check whether --enable-bug1243-fix was given. 32042if test "${enable_bug1243_fix+set}" = set; then : 32043 enableval=$enable_bug1243_fix; ans=$enableval 32044else 32045 ans=yes 32046 32047fi 32048 32049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32050$as_echo "$ans" >&6; } 32051case "$ans" in 32052 no) 32053 32054$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 32055 32056esac 32057 32058 32059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5 32060$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; } 32061# Check whether --enable-bug3020-fix was given. 32062if test "${enable_bug3020_fix+set}" = set; then : 32063 enableval=$enable_bug3020_fix; ans=$enableval 32064else 32065 ans=yes 32066 32067fi 32068 32069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32070$as_echo "$ans" >&6; } 32071case "$ans" in 32072 yes) 32073 32074$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h 32075 32076esac 32077 32078 32079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5 32080$as_echo_n "checking if we want correct mode7 fudgetime2 behavior... " >&6; } 32081# Check whether --enable-bug3527-fix was given. 32082if test "${enable_bug3527_fix+set}" = set; then : 32083 enableval=$enable_bug3527_fix; ans=$enableval 32084else 32085 ans=yes 32086 32087fi 32088 32089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32090$as_echo "$ans" >&6; } 32091case "$ans" in 32092 no) 32093 32094$as_echo "#define DISABLE_BUG3527_FIX 1" >>confdefs.h 32095 32096esac 32097 32098 32099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 32100$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 32101 32102case "$host" in 32103 *-*-solaris2.[89]) 32104 ans=yes 32105 ;; 32106 *-*-solaris2.1[0-9]*) 32107 ans=yes 32108 ;; 32109 *) ans=no 32110 ;; 32111esac 32112 32113# Check whether --enable-irig-sawtooth was given. 32114if test "${enable_irig_sawtooth+set}" = set; then : 32115 enableval=$enable_irig_sawtooth; ans=$enableval 32116 32117fi 32118 32119 32120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32121$as_echo "$ans" >&6; } 32122 32123case "$ans" in 32124 yes) 32125 32126$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 32127 32128esac 32129 32130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 32131$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 32132# Check whether --enable-nist was given. 32133if test "${enable_nist+set}" = set; then : 32134 enableval=$enable_nist; ans=$enableval 32135else 32136 ans=no 32137 32138fi 32139 32140 32141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32142$as_echo "$ans" >&6; } 32143 32144case "$ans" in 32145 yes) 32146 32147$as_echo "#define LOCKCLOCK 1" >>confdefs.h 32148 ;; 32149esac 32150 32151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 32152$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 32153# Check whether --enable-ntp-signd was given. 32154if test "${enable_ntp_signd+set}" = set; then : 32155 enableval=$enable_ntp_signd; ans=$enableval 32156else 32157 ans=no 32158 32159fi 32160 32161 32162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32163$as_echo "$ans" >&6; } 32164 32165case "$ans" in 32166 no) 32167 ntp_signd_path= 32168 ;; 32169 yes) 32170 ntp_signd_path=/var/run/ntp_signd 32171 ;; 32172 *) 32173 ntp_signd_path="$ans" 32174esac 32175 32176case "$ntp_signd_path" in 32177 '') 32178 ;; 32179 *) 32180 32181$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h 32182 32183 32184cat >>confdefs.h <<_ACEOF 32185#define NTP_SIGND_PATH "$ntp_signd_path" 32186_ACEOF 32187 32188 ;; 32189esac 32190 32191for ac_header in libscf.h 32192do : 32193 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 32194if test "x$ac_cv_header_libscf_h" = xyes; then : 32195 cat >>confdefs.h <<_ACEOF 32196#define HAVE_LIBSCF_H 1 32197_ACEOF 32198 32199fi 32200 32201done 32202 32203LSCF= 32204case "$ac_cv_header_libscf_h" in 32205 yes) 32206 LSCF='-lscf' 32207esac 32208 32209 32210 32211 32212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 32213$as_echo_n "checking for struct sockaddr_storage... " >&6; } 32214if ${ntp_cv_sockaddr_storage+:} false; then : 32215 $as_echo_n "(cached) " >&6 32216else 32217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32218/* end confdefs.h. */ 32219 32220 #ifdef HAVE_SYS_TYPES_H 32221 # include <sys/types.h> 32222 #endif 32223 #ifdef HAVE_SYS_SOCKET_H 32224 # include <sys/socket.h> 32225 #endif 32226 #ifdef HAVE_NETINET_IN_H 32227 # include <netinet/in.h> 32228 #endif 32229 32230int 32231main () 32232{ 32233 32234 struct sockaddr_storage n; 32235 32236 32237 ; 32238 return 0; 32239} 32240_ACEOF 32241if ac_fn_c_try_compile "$LINENO"; then : 32242 ntp_cv_sockaddr_storage=yes 32243else 32244 ntp_cv_sockaddr_storage=no 32245 32246fi 32247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32248 32249fi 32250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 32251$as_echo "$ntp_cv_sockaddr_storage" >&6; } 32252case "$ntp_cv_sockaddr_storage" in 32253 yes) 32254 32255$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 32256 32257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 32258$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 32259if ${ntp_cv_have___ss_family+:} false; then : 32260 $as_echo_n "(cached) " >&6 32261else 32262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32263/* end confdefs.h. */ 32264 32265 #ifdef HAVE_SYS_TYPES_H 32266 # include <sys/types.h> 32267 #endif 32268 #ifdef HAVE_SYS_SOCKET_H 32269 # include <sys/socket.h> 32270 #endif 32271 #ifdef HAVE_NETINET_IN_H 32272 # include <netinet/in.h> 32273 #endif 32274 32275int 32276main () 32277{ 32278 32279 struct sockaddr_storage s; 32280 s.__ss_family = 1; 32281 32282 32283 ; 32284 return 0; 32285} 32286_ACEOF 32287if ac_fn_c_try_compile "$LINENO"; then : 32288 ntp_cv_have___ss_family=yes 32289else 32290 ntp_cv_have___ss_family=no 32291 32292fi 32293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32294 32295fi 32296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 32297$as_echo "$ntp_cv_have___ss_family" >&6; } 32298 case "$ntp_cv_have___ss_family" in 32299 yes) 32300 32301$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 32302 32303 esac 32304 32305esac 32306 32307 32308# 32309# Look for in_port_t. 32310# 32311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 32312$as_echo_n "checking for in_port_t... " >&6; } 32313if ${isc_cv_have_in_port_t+:} false; then : 32314 $as_echo_n "(cached) " >&6 32315else 32316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32317/* end confdefs.h. */ 32318 32319 #include <sys/types.h> 32320 #include <netinet/in.h> 32321 32322int 32323main () 32324{ 32325 32326 in_port_t port = 25; 32327 return (0); 32328 32329 32330 ; 32331 return 0; 32332} 32333_ACEOF 32334if ac_fn_c_try_compile "$LINENO"; then : 32335 isc_cv_have_in_port_t=yes 32336else 32337 isc_cv_have_in_port_t=no 32338 32339fi 32340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32341 32342fi 32343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 32344$as_echo "$isc_cv_have_in_port_t" >&6; } 32345case "$isc_cv_have_in_port_t" in 32346 no) 32347 32348$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 32349 32350esac 32351 32352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 32353$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 32354if ${ntp_cv_getsockname_socklen_type+:} false; then : 32355 $as_echo_n "(cached) " >&6 32356else 32357 32358 getsockname_socklen_type_found=no 32359 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 32360 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 32361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32362/* end confdefs.h. */ 32363 32364 #ifdef HAVE_SYS_TYPES_H 32365 # include <sys/types.h> 32366 #endif 32367 #ifdef HAVE_SYS_SOCKET_H 32368 # include <sys/socket.h> 32369 #endif 32370 32371int 32372main () 32373{ 32374 32375 extern 32376 getsockname(int, $getsockname_arg2, 32377 $ntp_cv_getsockname_socklen_type *); 32378 32379 32380 ; 32381 return 0; 32382} 32383_ACEOF 32384if ac_fn_c_try_compile "$LINENO"; then : 32385 getsockname_socklen_type_found=yes ; break 2 32386fi 32387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32388 done 32389 done 32390 case "$getsockname_socklen_type_found" in 32391 no) 32392 ntp_cv_getsockname_socklen_type='socklen_t' 32393 esac 32394 { getsockname_arg2=; unset getsockname_arg2;} 32395 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 32396 32397 32398fi 32399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 32400$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 32401 32402cat >>confdefs.h <<_ACEOF 32403#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 32404_ACEOF 32405 32406 32407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 32408$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 32409if ${isc_cv_platform_havesalen+:} false; then : 32410 $as_echo_n "(cached) " >&6 32411else 32412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32413/* end confdefs.h. */ 32414 32415 #include <sys/types.h> 32416 #include <sys/socket.h> 32417 32418int 32419main () 32420{ 32421 32422 extern struct sockaddr *ps; 32423 return ps->sa_len; 32424 32425 32426 ; 32427 return 0; 32428} 32429_ACEOF 32430if ac_fn_c_try_compile "$LINENO"; then : 32431 isc_cv_platform_havesalen=yes 32432else 32433 isc_cv_platform_havesalen=no 32434 32435fi 32436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32437 32438fi 32439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 32440$as_echo "$isc_cv_platform_havesalen" >&6; } 32441case "$isc_cv_platform_havesalen" in 32442 yes) 32443 32444$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 32445 32446esac 32447 32448# Check whether --enable-ipv6 was given. 32449if test "${enable_ipv6+set}" = set; then : 32450 enableval=$enable_ipv6; 32451fi 32452 32453 32454case "$enable_ipv6" in 32455 yes|''|autodetect) 32456 case "$host" in 32457 powerpc-ibm-aix4*) 32458 ;; 32459 *) 32460 32461$as_echo "#define WANT_IPV6 1" >>confdefs.h 32462 32463 ;; 32464 esac 32465 ;; 32466 no) 32467 ;; 32468esac 32469 32470 32471case "$host" in 32472 *-*-darwin*) 32473 32474$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 32475 32476esac 32477 32478 32479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 32480$as_echo_n "checking for IPv6 structures... " >&6; } 32481if ${isc_cv_found_ipv6+:} false; then : 32482 $as_echo_n "(cached) " >&6 32483else 32484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32485/* end confdefs.h. */ 32486 32487 #include <sys/types.h> 32488 #include <sys/socket.h> 32489 #include <netinet/in.h> 32490 32491int 32492main () 32493{ 32494 32495 struct sockaddr_in6 sin6; 32496 32497 32498 ; 32499 return 0; 32500} 32501_ACEOF 32502if ac_fn_c_try_compile "$LINENO"; then : 32503 isc_cv_found_ipv6=yes 32504else 32505 isc_cv_found_ipv6=no 32506 32507fi 32508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32509 32510fi 32511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 32512$as_echo "$isc_cv_found_ipv6" >&6; } 32513 32514# 32515# See whether IPv6 support is provided via a Kame add-on. 32516# This is done before other IPv6 linking tests so LIBS is properly set. 32517# 32518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 32519$as_echo_n "checking for Kame IPv6 support... " >&6; } 32520 32521# Check whether --with-kame was given. 32522if test "${with_kame+set}" = set; then : 32523 withval=$with_kame; use_kame="$withval" 32524else 32525 use_kame="no" 32526 32527fi 32528 32529case "$use_kame" in 32530 no) 32531 ;; 32532 yes) 32533 kame_path=/usr/local/v6 32534 ;; 32535 *) 32536 kame_path="$use_kame" 32537 ;; 32538esac 32539case "$use_kame" in 32540 no) 32541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32542$as_echo "no" >&6; } 32543 ;; 32544 *) 32545 if test -f $kame_path/lib/libinet6.a; then 32546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 32547$as_echo "$kame_path/lib/libinet6.a" >&6; } 32548 LIBS="-L$kame_path/lib -linet6 $LIBS" 32549 else 32550 as_fn_error $? "$kame_path/lib/libinet6.a not found. 32551 32552Please choose the proper path with the following command: 32553 32554 configure --with-kame=PATH 32555" "$LINENO" 5 32556 fi 32557 ;; 32558esac 32559 32560# 32561# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 32562# Including it on Kame-using platforms is very bad, though, because 32563# Kame uses #error against direct inclusion. So include it on only 32564# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 32565# This is done before the in6_pktinfo check because that's what 32566# netinet6/in6.h is needed for. 32567# 32568case "$host" in 32569 *-bsdi4.[01]*) 32570 32571$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 32572 32573 isc_netinet6in6_hack="#include <netinet6/in6.h>" 32574 ;; 32575 *) 32576 isc_netinet6in6_hack="" 32577 ;; 32578esac 32579 32580# 32581# This is similar to the netinet6/in6.h issue. 32582# 32583case "$host" in 32584 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 32585 32586$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 32587 32588 isc_netinetin6_hack="#include <netinet/in6.h>" 32589 ;; 32590 *) 32591 isc_netinetin6_hack="" 32592 ;; 32593esac 32594 32595 32596case "$isc_cv_found_ipv6" in 32597 yes) 32598 32599$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 32600 32601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 32602$as_echo_n "checking for in6_pktinfo... " >&6; } 32603if ${isc_cv_have_in6_pktinfo+:} false; then : 32604 $as_echo_n "(cached) " >&6 32605else 32606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32607/* end confdefs.h. */ 32608 32609 #include <sys/types.h> 32610 #include <sys/socket.h> 32611 #include <netinet/in.h> 32612 $isc_netinetin6_hack 32613 $isc_netinet6in6_hack 32614 32615int 32616main () 32617{ 32618 32619 struct in6_pktinfo xyzzy; 32620 32621 32622 ; 32623 return 0; 32624} 32625_ACEOF 32626if ac_fn_c_try_compile "$LINENO"; then : 32627 isc_cv_have_in6_pktinfo=yes 32628else 32629 isc_cv_have_in6_pktinfo=no 32630 32631fi 32632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32633 32634fi 32635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 32636$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 32637 case "$isc_cv_have_in6_pktinfo" in 32638 yes) 32639 32640$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 32641 32642 esac 32643 32644 32645 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 32646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 32647$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 32648if ${isc_cv_have_sin6_scope_id+:} false; then : 32649 $as_echo_n "(cached) " >&6 32650else 32651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32652/* end confdefs.h. */ 32653 32654 #include <sys/types.h> 32655 #include <sys/socket.h> 32656 #include <netinet/in.h> 32657 $isc_netinetin6_hack 32658 $isc_netinet6in6_hack 32659 32660int 32661main () 32662{ 32663 32664 struct sockaddr_in6 xyzzy; 32665 xyzzy.sin6_scope_id = 0; 32666 32667 32668 ; 32669 return 0; 32670} 32671_ACEOF 32672if ac_fn_c_try_compile "$LINENO"; then : 32673 isc_cv_have_sin6_scope_id=yes 32674else 32675 isc_cv_have_sin6_scope_id=no 32676 32677fi 32678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32679 32680fi 32681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 32682$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 32683 32684 case "$isc_cv_have_sin6_scope_id" in 32685 yes) 32686 32687$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 32688 32689 esac 32690esac 32691 32692 32693# We need this check run even without isc_cv_found_ipv6=yes 32694 32695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 32696$as_echo_n "checking for in6addr_any... " >&6; } 32697if ${isc_cv_in6addr_any_links+:} false; then : 32698 $as_echo_n "(cached) " >&6 32699else 32700 32701 SAVED_LIBS="$LIBS" 32702 LIBS="$LDADD_LIBNTP $LIBS" 32703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32704/* end confdefs.h. */ 32705$ac_includes_default 32706 #include <sys/socket.h> 32707 #include <netinet/in.h> 32708 $isc_netinetin6_hack 32709 $isc_netinet6in6_hack 32710 32711int 32712main () 32713{ 32714 32715 printf("%x", in6addr_any.s6_addr[15]); 32716 32717 32718 ; 32719 return 0; 32720} 32721_ACEOF 32722if ac_fn_c_try_link "$LINENO"; then : 32723 isc_cv_in6addr_any_links=yes 32724else 32725 isc_cv_in6addr_any_links=no 32726 32727fi 32728rm -f core conftest.err conftest.$ac_objext \ 32729 conftest$ac_exeext conftest.$ac_ext 32730 LIBS="$SAVED_LIBS" 32731 { SAVED_LIBS=; unset SAVED_LIBS;} 32732 32733 32734fi 32735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 32736$as_echo "$isc_cv_in6addr_any_links" >&6; } 32737 32738case "$isc_cv_in6addr_any_links" in 32739 no) 32740 32741$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 32742 32743esac 32744 32745 32746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 32747$as_echo_n "checking for struct if_laddrconf... " >&6; } 32748if ${isc_cv_struct_if_laddrconf+:} false; then : 32749 $as_echo_n "(cached) " >&6 32750else 32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32752/* end confdefs.h. */ 32753 32754 #include <sys/types.h> 32755 #include <net/if6.h> 32756 32757int 32758main () 32759{ 32760 32761 struct if_laddrconf a; 32762 32763 32764 ; 32765 return 0; 32766} 32767_ACEOF 32768if ac_fn_c_try_compile "$LINENO"; then : 32769 isc_cv_struct_if_laddrconf=yes 32770else 32771 isc_cv_struct_if_laddrconf=no 32772 32773fi 32774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32775 32776fi 32777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 32778$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 32779 32780case "$isc_cv_struct_if_laddrconf" in 32781 yes) 32782 32783$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 32784 32785esac 32786 32787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 32788$as_echo_n "checking for struct if_laddrreq... " >&6; } 32789if ${isc_cv_struct_if_laddrreq+:} false; then : 32790 $as_echo_n "(cached) " >&6 32791else 32792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32793/* end confdefs.h. */ 32794 32795 #include <sys/types.h> 32796 #include <net/if6.h> 32797 32798int 32799main () 32800{ 32801 32802 struct if_laddrreq a; 32803 32804 32805 ; 32806 return 0; 32807} 32808_ACEOF 32809if ac_fn_c_try_compile "$LINENO"; then : 32810 isc_cv_struct_if_laddrreq=yes 32811else 32812 isc_cv_struct_if_laddrreq=no 32813 32814fi 32815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32816 32817fi 32818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 32819$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 32820 32821case "$isc_cv_struct_if_laddrreq" in 32822 yes) 32823 32824$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 32825 32826esac 32827 32828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 32829$as_echo_n "checking for multicast IP support... " >&6; } 32830if ${ntp_cv_multicast+:} false; then : 32831 $as_echo_n "(cached) " >&6 32832else 32833 32834 ntp_cv_multicast=no 32835 case "$host" in 32836 i386-sequent-sysv4) 32837 ;; 32838 *) 32839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32840/* end confdefs.h. */ 32841 32842 #ifdef HAVE_NETINET_IN_H 32843 # include <netinet/in.h> 32844 #endif 32845 32846int 32847main () 32848{ 32849 32850 struct ip_mreq ipmr; 32851 ipmr.imr_interface.s_addr = 0; 32852 32853 32854 ; 32855 return 0; 32856} 32857_ACEOF 32858if ac_fn_c_try_compile "$LINENO"; then : 32859 ntp_cv_multicast=yes 32860fi 32861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32862 ;; 32863 esac 32864 32865 32866fi 32867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 32868$as_echo "$ntp_cv_multicast" >&6; } 32869case "$ntp_cv_multicast" in 32870 yes) 32871 32872$as_echo "#define MCAST 1" >>confdefs.h 32873 32874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 32875$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 32876if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 32877 $as_echo_n "(cached) " >&6 32878else 32879 32880 case "$host" in 32881 *-*-netbsd*|*-*-*linux*) 32882 ntp_cv_typeof_ip_multicast_loop=u_int 32883 ;; 32884 *) 32885 ntp_cv_typeof_ip_multicast_loop=u_char 32886 ;; 32887 esac 32888 32889 32890fi 32891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 32892$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 32893 32894cat >>confdefs.h <<_ACEOF 32895#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 32896_ACEOF 32897 32898esac 32899 32900# Check whether --enable-getifaddrs was given. 32901if test "${enable_getifaddrs+set}" = set; then : 32902 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 32903else 32904 want_getifaddrs="yes" 32905 32906fi 32907 32908 32909case $want_getifaddrs in 32910 glibc) 32911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 32912$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 32913esac 32914case $want_getifaddrs in 32915 no) 32916 ;; 32917 *) 32918 SAVED_LIBS="$LIBS" 32919 LIBS="$LDADD_LIBNTP $LIBS" 32920 for ac_func in getifaddrs 32921do : 32922 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 32923if test "x$ac_cv_func_getifaddrs" = xyes; then : 32924 cat >>confdefs.h <<_ACEOF 32925#define HAVE_GETIFADDRS 1 32926_ACEOF 32927 32928fi 32929done 32930 32931 LIBS="$SAVED_LIBS" 32932 { SAVED_LIBS=; unset SAVED_LIBS;} 32933 ;; 32934esac 32935 32936# 32937# Check for if_nametoindex() for IPv6 scoped addresses support 32938# 32939case "$host" in 32940 *-hp-hpux*) 32941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 32942$as_echo_n "checking for library containing if_nametoindex... " >&6; } 32943if ${ac_cv_search_if_nametoindex+:} false; then : 32944 $as_echo_n "(cached) " >&6 32945else 32946 ac_func_search_save_LIBS=$LIBS 32947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32948/* end confdefs.h. */ 32949 32950/* Override any GCC internal prototype to avoid an error. 32951 Use char because int might match the return type of a GCC 32952 builtin and then its argument prototype would still apply. */ 32953#ifdef __cplusplus 32954extern "C" 32955#endif 32956char if_nametoindex (); 32957int 32958main () 32959{ 32960return if_nametoindex (); 32961 ; 32962 return 0; 32963} 32964_ACEOF 32965for ac_lib in '' ipv6; do 32966 if test -z "$ac_lib"; then 32967 ac_res="none required" 32968 else 32969 ac_res=-l$ac_lib 32970 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32971 fi 32972 if ac_fn_c_try_link "$LINENO"; then : 32973 ac_cv_search_if_nametoindex=$ac_res 32974fi 32975rm -f core conftest.err conftest.$ac_objext \ 32976 conftest$ac_exeext 32977 if ${ac_cv_search_if_nametoindex+:} false; then : 32978 break 32979fi 32980done 32981if ${ac_cv_search_if_nametoindex+:} false; then : 32982 32983else 32984 ac_cv_search_if_nametoindex=no 32985fi 32986rm conftest.$ac_ext 32987LIBS=$ac_func_search_save_LIBS 32988fi 32989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 32990$as_echo "$ac_cv_search_if_nametoindex" >&6; } 32991ac_res=$ac_cv_search_if_nametoindex 32992if test "$ac_res" != no; then : 32993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32994 32995fi 32996 32997esac 32998SAVED_LIBS="$LIBS" 32999LIBS="$LDADD_LIBNTP $LIBS" 33000for ac_func in if_nametoindex 33001do : 33002 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 33003if test "x$ac_cv_func_if_nametoindex" = xyes; then : 33004 cat >>confdefs.h <<_ACEOF 33005#define HAVE_IF_NAMETOINDEX 1 33006_ACEOF 33007 33008fi 33009done 33010 33011LIBS="$SAVED_LIBS" 33012{ SAVED_LIBS=; unset SAVED_LIBS;} 33013case "$ac_cv_func_if_nametoindex" in 33014 yes) 33015 33016$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 33017 33018esac 33019 33020 33021 33022 33023# 33024# Look for a sysctl call to get the list of network interfaces. 33025# 33026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 33027$as_echo_n "checking for interface list sysctl... " >&6; } 33028if ${ntp_cv_iflist_sysctl+:} false; then : 33029 $as_echo_n "(cached) " >&6 33030else 33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33032/* end confdefs.h. */ 33033 33034 #include <sys/param.h> 33035 #include <sys/sysctl.h> 33036 #include <sys/socket.h> 33037 #ifndef NET_RT_IFLIST 33038 # error 33039 #endif 33040 33041_ACEOF 33042if ac_fn_c_try_cpp "$LINENO"; then : 33043 ntp_cv_iflist_sysctl=yes 33044else 33045 ntp_cv_iflist_sysctl=no 33046 33047fi 33048rm -f conftest.err conftest.i conftest.$ac_ext 33049 33050fi 33051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5 33052$as_echo "$ntp_cv_iflist_sysctl" >&6; } 33053case "$ntp_cv_iflist_sysctl" in 33054 yes) 33055 33056$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 33057 33058esac 33059 33060### 33061 33062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 33063$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 33064# Check whether --enable-saveconfig was given. 33065if test "${enable_saveconfig+set}" = set; then : 33066 enableval=$enable_saveconfig; ntp_ok=$enableval 33067else 33068 ntp_ok=yes 33069 33070fi 33071 33072ntp_saveconfig_enabled=0 33073case "$ntp_ok" in 33074 yes) 33075 ntp_saveconfig_enabled=1 33076 33077$as_echo "#define SAVECONFIG 1" >>confdefs.h 33078 33079 ;; 33080esac 33081 if test x$ntp_saveconfig_enabled = x1; then 33082 SAVECONFIG_ENABLED_TRUE= 33083 SAVECONFIG_ENABLED_FALSE='#' 33084else 33085 SAVECONFIG_ENABLED_TRUE='#' 33086 SAVECONFIG_ENABLED_FALSE= 33087fi 33088 33089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33090$as_echo "$ntp_ok" >&6; } 33091 33092### 33093 33094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5 33095$as_echo_n "checking if we want the experimental leap smear code... " >&6; } 33096# Check whether --enable-leap-smear was given. 33097if test "${enable_leap_smear+set}" = set; then : 33098 enableval=$enable_leap_smear; ntp_ok=$enableval 33099else 33100 ntp_ok=no 33101 33102fi 33103 33104ntp_leap_smear_enabled=0 33105case "$ntp_ok" in 33106 yes) 33107 ntp_leap_smear_enabled=1 33108 33109$as_echo "#define LEAP_SMEAR 1" >>confdefs.h 33110 33111 33112 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0" 33113 ;; 33114esac 33115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33116$as_echo "$ntp_ok" >&6; } 33117 33118### 33119 33120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5 33121$as_echo_n "checking if we want dynamic interleave support... " >&6; } 33122# Check whether --enable-dynamic-interleave was given. 33123if test "${enable_dynamic_interleave+set}" = set; then : 33124 enableval=$enable_dynamic_interleave; ntp_ok=$enableval 33125else 33126 ntp_ok=no 33127 33128fi 33129 33130ntp_dynamic_interleave=0 33131case "$ntp_ok" in 33132 yes) 33133 ntp_dynamic_interleave=1 33134 ;; 33135esac 33136 33137cat >>confdefs.h <<_ACEOF 33138#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave 33139_ACEOF 33140 33141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33142$as_echo "$ntp_ok" >&6; } 33143 33144 33145# We may not need have_unity 33146have_unity=false 33147# Extract the first word of "ruby", so it can be a program name with args. 33148set dummy ruby; ac_word=$2 33149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33150$as_echo_n "checking for $ac_word... " >&6; } 33151if ${ac_cv_path_PATH_RUBY+:} false; then : 33152 $as_echo_n "(cached) " >&6 33153else 33154 case $PATH_RUBY in 33155 [\\/]* | ?:[\\/]*) 33156 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 33157 ;; 33158 *) 33159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33160for as_dir in $PATH 33161do 33162 IFS=$as_save_IFS 33163 test -z "$as_dir" && as_dir=. 33164 for ac_exec_ext in '' $ac_executable_extensions; do 33165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33166 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 33167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33168 break 2 33169 fi 33170done 33171 done 33172IFS=$as_save_IFS 33173 33174 ;; 33175esac 33176fi 33177PATH_RUBY=$ac_cv_path_PATH_RUBY 33178if test -n "$PATH_RUBY"; then 33179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 33180$as_echo "$PATH_RUBY" >&6; } 33181else 33182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33183$as_echo "no" >&6; } 33184fi 33185 33186 33187case "$PATH_RUBY" in 33188 /*) 33189 have_unity=true 33190 ;; 33191 *) PATH_RUBY="false" 33192 ;; 33193esac 33194# We may not need UNITYBUILD_AVAILABLE 33195 if $have_unity; then 33196 UNITYBUILD_AVAILABLE_TRUE= 33197 UNITYBUILD_AVAILABLE_FALSE='#' 33198else 33199 UNITYBUILD_AVAILABLE_TRUE='#' 33200 UNITYBUILD_AVAILABLE_FALSE= 33201fi 33202 33203 33204 33205 33206 33207gta=false 33208 33209# Check whether --with-gtest was given. 33210if test "${with_gtest+set}" = set; then : 33211 withval=$with_gtest; try_gtest=$withval 33212else 33213 try_gtest=yes 33214 33215fi 33216 33217case "$try_gtest" in 33218 yes) 33219 # Extract the first word of "gtest-config", so it can be a program name with args. 33220set dummy gtest-config; ac_word=$2 33221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33222$as_echo_n "checking for $ac_word... " >&6; } 33223if ${ac_cv_path_GTEST_CONFIG+:} false; then : 33224 $as_echo_n "(cached) " >&6 33225else 33226 case $GTEST_CONFIG in 33227 [\\/]* | ?:[\\/]*) 33228 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 33229 ;; 33230 *) 33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33232for as_dir in $PATH 33233do 33234 IFS=$as_save_IFS 33235 test -z "$as_dir" && as_dir=. 33236 for ac_exec_ext in '' $ac_executable_extensions; do 33237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33238 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 33239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33240 break 2 33241 fi 33242done 33243 done 33244IFS=$as_save_IFS 33245 33246 ;; 33247esac 33248fi 33249GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 33250if test -n "$GTEST_CONFIG"; then 33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 33252$as_echo "$GTEST_CONFIG" >&6; } 33253else 33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33255$as_echo "no" >&6; } 33256fi 33257 33258 33259 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 33260 case x${GTEST_CONFIG} in 33261 x) ;; 33262 *) 33263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 33264$as_echo_n "checking gtest version... " >&6; } 33265 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 33266 case "$gtest_version_test" in 33267 toolow*) 33268 ;; 33269 *) 33270 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 33271 GTEST_LIBS=`$GTEST_CONFIG --libs` 33272 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 33273 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 33274 33275 33276 33277 33278 gta=true 33279 ;; 33280 esac 33281 gtest_version=`$GTEST_CONFIG --version` 33282 case "$gta" in 33283 true) 33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 33285$as_echo "($gtest_version) ok" >&6; } 33286 ;; 33287 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 33288$as_echo "($gtest_version) not ok" >&6; } 33289 ;; 33290 esac 33291 { gtest_version_test=; unset gtest_version_test;} 33292 { gtest_version=; unset gtest_version;} 33293 esac 33294esac 33295 if $gta; then 33296 GTEST_AVAILABLE_TRUE= 33297 GTEST_AVAILABLE_FALSE='#' 33298else 33299 GTEST_AVAILABLE_TRUE='#' 33300 GTEST_AVAILABLE_FALSE= 33301fi 33302 33303 33304 33305 33306 33307case "$build" in 33308 $host) cross=0 ;; 33309 *) cross=1 ;; 33310esac 33311 33312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 33313$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 33314# Check whether --enable-problem-tests was given. 33315if test "${enable_problem_tests+set}" = set; then : 33316 enableval=$enable_problem_tests; ntp_ept=$enableval 33317else 33318 ntp_ept=yes 33319 33320fi 33321 33322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5 33323$as_echo "$ntp_ept" >&6; } 33324 33325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5 33326$as_echo_n "checking if we can run test-ntp_restrict... " >&6; } 33327ntp_test_ntp_restrict="no" 33328case "$ntp_ept:$cross:$host" in 33329 no:0:*-*-freebsd6.4) ;; 33330 no:0:*-*-hpux11.23*) ;; 33331 no:0:*-*-solaris*) ;; 33332 *) ntp_test_ntp_restrict="yes" ;; 33333esac 33334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5 33335$as_echo "$ntp_test_ntp_restrict" >&6; } 33336 if test x$ntp_test_ntp_restrict = xyes; then 33337 BUILD_TEST_NTP_RESTRICT_TRUE= 33338 BUILD_TEST_NTP_RESTRICT_FALSE='#' 33339else 33340 BUILD_TEST_NTP_RESTRICT_TRUE='#' 33341 BUILD_TEST_NTP_RESTRICT_FALSE= 33342fi 33343 33344 33345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5 33346$as_echo_n "checking if we can run test-ntp_scanner... " >&6; } 33347ntp_test_ntp_scanner="no" 33348case "$ntp_ept:$cross:$host" in 33349 no:0:*-*-freebsd6.4) ;; 33350 no:0:*-*-solaris*) ;; 33351 *) ntp_test_ntp_scanner="yes" ;; 33352esac 33353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5 33354$as_echo "$ntp_test_ntp_scanner" >&6; } 33355 if test x$ntp_test_ntp_scanner = xyes; then 33356 BUILD_TEST_NTP_SCANNER_TRUE= 33357 BUILD_TEST_NTP_SCANNER_FALSE='#' 33358else 33359 BUILD_TEST_NTP_SCANNER_TRUE='#' 33360 BUILD_TEST_NTP_SCANNER_FALSE= 33361fi 33362 33363 33364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5 33365$as_echo_n "checking if we can run test-ntp_signd... " >&6; } 33366ntp_test_ntp_signd="no" 33367case "$ntp_ept:$cross:$host" in 33368 no:0:*-*-freebsd6.4) ;; 33369 no:0:*-*-solaris*) ;; 33370 *) ntp_test_ntp_signd="yes" ;; 33371esac 33372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5 33373$as_echo "$ntp_test_ntp_signd" >&6; } 33374 if test x$ntp_test_ntp_signd = xyes; then 33375 BUILD_TEST_NTP_SIGND_TRUE= 33376 BUILD_TEST_NTP_SIGND_FALSE='#' 33377else 33378 BUILD_TEST_NTP_SIGND_TRUE='#' 33379 BUILD_TEST_NTP_SIGND_FALSE= 33380fi 33381 33382 33383 33384 33385### 33386 33387ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h> 33388" 33389if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then : 33390 ac_have_decl=1 33391else 33392 ac_have_decl=0 33393fi 33394 33395cat >>confdefs.h <<_ACEOF 33396#define HAVE_DECL_SIGSETJMP $ac_have_decl 33397_ACEOF 33398ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h> 33399" 33400if test "x$ac_cv_have_decl_siglongjmp" = xyes; then : 33401 ac_have_decl=1 33402else 33403 ac_have_decl=0 33404fi 33405 33406cat >>confdefs.h <<_ACEOF 33407#define HAVE_DECL_SIGLONGJMP $ac_have_decl 33408_ACEOF 33409 33410 33411### 33412 33413 33414 prefix_NONE= 33415 exec_prefix_NONE= 33416 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33417 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33418 eval ac_define_dir="\"$sysconfdir\"" 33419 eval ac_define_dir="\"$ac_define_dir\"" 33420 NTP_KEYSDIR="$ac_define_dir" 33421 33422 33423cat >>confdefs.h <<_ACEOF 33424#define NTP_KEYSDIR "$ac_define_dir" 33425_ACEOF 33426 33427 test "$prefix_NONE" && prefix=NONE 33428 test "$exec_prefix_NONE" && exec_prefix=NONE 33429 33430 33431ac_config_files="$ac_config_files Makefile" 33432 33433ac_config_files="$ac_config_files adjtimed/Makefile" 33434 33435ac_config_files="$ac_config_files clockstuff/Makefile" 33436 33437ac_config_files="$ac_config_files include/Makefile" 33438 33439ac_config_files="$ac_config_files include/isc/Makefile" 33440 33441ac_config_files="$ac_config_files kernel/Makefile" 33442 33443ac_config_files="$ac_config_files kernel/sys/Makefile" 33444 33445ac_config_files="$ac_config_files libntp/Makefile" 33446 33447ac_config_files="$ac_config_files libparse/Makefile" 33448 33449ac_config_files="$ac_config_files ntpd/Makefile" 33450 33451ac_config_files="$ac_config_files ntpd/complete.conf" 33452 33453ac_config_files="$ac_config_files ntpdate/Makefile" 33454 33455ac_config_files="$ac_config_files ntpdc/Makefile" 33456 33457ac_config_files="$ac_config_files ntpdc/nl.pl" 33458 33459ac_config_files="$ac_config_files ntpq/Makefile" 33460 33461ac_config_files="$ac_config_files ntpsnmpd/Makefile" 33462 33463ac_config_files="$ac_config_files parseutil/Makefile" 33464 33465ac_config_files="$ac_config_files scripts/Makefile" 33466 33467ac_config_files="$ac_config_files scripts/build/Makefile" 33468 33469ac_config_files="$ac_config_files scripts/build/genAuthors" 33470 33471ac_config_files="$ac_config_files scripts/build/mkver" 33472 33473ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile" 33474 33475ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj" 33476 33477ac_config_files="$ac_config_files scripts/lib/Makefile" 33478 33479ac_config_files="$ac_config_files scripts/ntp-wait/Makefile" 33480 33481ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait" 33482 33483ac_config_files="$ac_config_files scripts/ntpsweep/Makefile" 33484 33485ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep" 33486 33487ac_config_files="$ac_config_files scripts/ntptrace/Makefile" 33488 33489ac_config_files="$ac_config_files scripts/ntptrace/ntptrace" 33490 33491ac_config_files="$ac_config_files scripts/ntpver" 33492 33493ac_config_files="$ac_config_files scripts/plot_summary" 33494 33495ac_config_files="$ac_config_files scripts/summary" 33496 33497ac_config_files="$ac_config_files scripts/update-leap/Makefile" 33498 33499ac_config_files="$ac_config_files scripts/update-leap/update-leap" 33500 33501ac_config_files="$ac_config_files tests/Makefile" 33502 33503ac_config_files="$ac_config_files tests/bug-2803/Makefile" 33504 33505ac_config_files="$ac_config_files tests/libntp/Makefile" 33506 33507ac_config_files="$ac_config_files tests/ntpd/Makefile" 33508 33509ac_config_files="$ac_config_files tests/ntpq/Makefile" 33510 33511ac_config_files="$ac_config_files tests/sandbox/Makefile" 33512 33513ac_config_files="$ac_config_files tests/sec-2853/Makefile" 33514 33515ac_config_files="$ac_config_files util/Makefile" 33516 33517 33518perllibdir="${datadir}/ntp/lib" 33519 33520 prefix_NONE= 33521 exec_prefix_NONE= 33522 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33523 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33524 eval ac_define_dir="\"$perllibdir\"" 33525 eval ac_define_dir="\"$ac_define_dir\"" 33526 PERLLIBDIR="$ac_define_dir" 33527 33528 33529cat >>confdefs.h <<_ACEOF 33530#define PERLLIBDIR "$ac_define_dir" 33531_ACEOF 33532 33533 test "$prefix_NONE" && prefix=NONE 33534 test "$exec_prefix_NONE" && exec_prefix=NONE 33535 33536 33537calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts" 33538 33539ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts" 33540 33541ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts" 33542 33543ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts" 33544 33545summary_opts="$srcdir/scripts/summary-opts" 33546 33547plot_summary_opts="$srcdir/scripts/plot_summary-opts" 33548 33549 33550 33551 33552subdirs="$subdirs sntp" 33553 33554 33555cat >confcache <<\_ACEOF 33556# This file is a shell script that caches the results of configure 33557# tests run on this system so they can be shared between configure 33558# scripts and configure runs, see configure's option --config-cache. 33559# It is not useful on other systems. If it contains results you don't 33560# want to keep, you may remove or edit it. 33561# 33562# config.status only pays attention to the cache file if you give it 33563# the --recheck option to rerun configure. 33564# 33565# `ac_cv_env_foo' variables (set or unset) will be overridden when 33566# loading this file, other *unset* `ac_cv_foo' will be assigned the 33567# following values. 33568 33569_ACEOF 33570 33571# The following way of writing the cache mishandles newlines in values, 33572# but we know of no workaround that is simple, portable, and efficient. 33573# So, we kill variables containing newlines. 33574# Ultrix sh set writes to stderr and can't be redirected directly, 33575# and sets the high bit in the cache file unless we assign to the vars. 33576( 33577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33578 eval ac_val=\$$ac_var 33579 case $ac_val in #( 33580 *${as_nl}*) 33581 case $ac_var in #( 33582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33584 esac 33585 case $ac_var in #( 33586 _ | IFS | as_nl) ;; #( 33587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33588 *) { eval $ac_var=; unset $ac_var;} ;; 33589 esac ;; 33590 esac 33591 done 33592 33593 (set) 2>&1 | 33594 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33595 *${as_nl}ac_space=\ *) 33596 # `set' does not quote correctly, so add quotes: double-quote 33597 # substitution turns \\\\ into \\, and sed turns \\ into \. 33598 sed -n \ 33599 "s/'/'\\\\''/g; 33600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33601 ;; #( 33602 *) 33603 # `set' quotes correctly as required by POSIX, so do not add quotes. 33604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33605 ;; 33606 esac | 33607 sort 33608) | 33609 sed ' 33610 /^ac_cv_env_/b end 33611 t clear 33612 :clear 33613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 33614 t end 33615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33616 :end' >>confcache 33617if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33618 if test -w "$cache_file"; then 33619 if test "x$cache_file" != "x/dev/null"; then 33620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33621$as_echo "$as_me: updating cache $cache_file" >&6;} 33622 if test ! -f "$cache_file" || test -h "$cache_file"; then 33623 cat confcache >"$cache_file" 33624 else 33625 case $cache_file in #( 33626 */* | ?:*) 33627 mv -f confcache "$cache_file"$$ && 33628 mv -f "$cache_file"$$ "$cache_file" ;; #( 33629 *) 33630 mv -f confcache "$cache_file" ;; 33631 esac 33632 fi 33633 fi 33634 else 33635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33636$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 33637 fi 33638fi 33639rm -f confcache 33640 33641test "x$prefix" = xNONE && prefix=$ac_default_prefix 33642# Let make expand exec_prefix. 33643test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33644 33645DEFS=-DHAVE_CONFIG_H 33646 33647ac_libobjs= 33648ac_ltlibobjs= 33649U= 33650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33651 # 1. Remove the extension, and $U if already installed. 33652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 33654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33655 # will be set to the directory where LIBOBJS objects are built. 33656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33658done 33659LIBOBJS=$ac_libobjs 33660 33661LTLIBOBJS=$ac_ltlibobjs 33662 33663 33664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 33665$as_echo_n "checking that generated files are newer than configure... " >&6; } 33666 if test -n "$am_sleep_pid"; then 33667 # Hide warnings about reused PIDs. 33668 wait $am_sleep_pid 2>/dev/null 33669 fi 33670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 33671$as_echo "done" >&6; } 33672 if test -n "$EXEEXT"; then 33673 am__EXEEXT_TRUE= 33674 am__EXEEXT_FALSE='#' 33675else 33676 am__EXEEXT_TRUE='#' 33677 am__EXEEXT_FALSE= 33678fi 33679 33680if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 33681 as_fn_error $? "conditional \"AMDEP\" was never defined. 33682Usually this means the macro was only invoked conditionally." "$LINENO" 5 33683fi 33684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 33685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 33686Usually this means the macro was only invoked conditionally." "$LINENO" 5 33687fi 33688 33689if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 33690 as_fn_error $? "conditional \"VPATH_HACK\" was never defined. 33691Usually this means the macro was only invoked conditionally." "$LINENO" 5 33692fi 33693if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 33694 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 33695Usually this means the macro was only invoked conditionally." "$LINENO" 5 33696fi 33697if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 33698 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 33699Usually this means the macro was only invoked conditionally." "$LINENO" 5 33700fi 33701if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 33702 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 33703Usually this means the macro was only invoked conditionally." "$LINENO" 5 33704fi 33705if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 33706 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 33707Usually this means the macro was only invoked conditionally." "$LINENO" 5 33708fi 33709if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 33710 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 33711Usually this means the macro was only invoked conditionally." "$LINENO" 5 33712fi 33713if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 33714 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 33715Usually this means the macro was only invoked conditionally." "$LINENO" 5 33716fi 33717if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 33718 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 33719Usually this means the macro was only invoked conditionally." "$LINENO" 5 33720fi 33721if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 33722 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 33723Usually this means the macro was only invoked conditionally." "$LINENO" 5 33724fi 33725if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 33726 as_fn_error $? "conditional \"PTHREADS\" was never defined. 33727Usually this means the macro was only invoked conditionally." "$LINENO" 5 33728fi 33729if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 33730 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 33731Usually this means the macro was only invoked conditionally." "$LINENO" 5 33732fi 33733if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 33734 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined. 33735Usually this means the macro was only invoked conditionally." "$LINENO" 5 33736fi 33737if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 33738 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 33739Usually this means the macro was only invoked conditionally." "$LINENO" 5 33740fi 33741if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 33742 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 33743Usually this means the macro was only invoked conditionally." "$LINENO" 5 33744fi 33745if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then 33746 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined. 33747Usually this means the macro was only invoked conditionally." "$LINENO" 5 33748fi 33749if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then 33750 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined. 33751Usually this means the macro was only invoked conditionally." "$LINENO" 5 33752fi 33753if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then 33754 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined. 33755Usually this means the macro was only invoked conditionally." "$LINENO" 5 33756fi 33757 33758: "${CONFIG_STATUS=./config.status}" 33759ac_write_fail=0 33760ac_clean_files_save=$ac_clean_files 33761ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33762{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33763$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33764as_write_fail=0 33765cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33766#! $SHELL 33767# Generated by $as_me. 33768# Run this file to recreate the current configuration. 33769# Compiler output produced by configure, useful for debugging 33770# configure, is in config.log if it exists. 33771 33772debug=false 33773ac_cs_recheck=false 33774ac_cs_silent=false 33775 33776SHELL=\${CONFIG_SHELL-$SHELL} 33777export SHELL 33778_ASEOF 33779cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33780## -------------------- ## 33781## M4sh Initialization. ## 33782## -------------------- ## 33783 33784# Be more Bourne compatible 33785DUALCASE=1; export DUALCASE # for MKS sh 33786if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33787 emulate sh 33788 NULLCMD=: 33789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33790 # is contrary to our usage. Disable this feature. 33791 alias -g '${1+"$@"}'='"$@"' 33792 setopt NO_GLOB_SUBST 33793else 33794 case `(set -o) 2>/dev/null` in #( 33795 *posix*) : 33796 set -o posix ;; #( 33797 *) : 33798 ;; 33799esac 33800fi 33801 33802 33803as_nl=' 33804' 33805export as_nl 33806# Printing a long string crashes Solaris 7 /usr/bin/printf. 33807as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33810# Prefer a ksh shell builtin over an external printf program on Solaris, 33811# but without wasting forks for bash or zsh. 33812if test -z "$BASH_VERSION$ZSH_VERSION" \ 33813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33814 as_echo='print -r --' 33815 as_echo_n='print -rn --' 33816elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33817 as_echo='printf %s\n' 33818 as_echo_n='printf %s' 33819else 33820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33821 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33822 as_echo_n='/usr/ucb/echo -n' 33823 else 33824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33825 as_echo_n_body='eval 33826 arg=$1; 33827 case $arg in #( 33828 *"$as_nl"*) 33829 expr "X$arg" : "X\\(.*\\)$as_nl"; 33830 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33831 esac; 33832 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33833 ' 33834 export as_echo_n_body 33835 as_echo_n='sh -c $as_echo_n_body as_echo' 33836 fi 33837 export as_echo_body 33838 as_echo='sh -c $as_echo_body as_echo' 33839fi 33840 33841# The user is always right. 33842if test "${PATH_SEPARATOR+set}" != set; then 33843 PATH_SEPARATOR=: 33844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33845 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33846 PATH_SEPARATOR=';' 33847 } 33848fi 33849 33850 33851# IFS 33852# We need space, tab and new line, in precisely that order. Quoting is 33853# there to prevent editors from complaining about space-tab. 33854# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33855# splitting by setting IFS to empty value.) 33856IFS=" "" $as_nl" 33857 33858# Find who we are. Look in the path if we contain no directory separator. 33859as_myself= 33860case $0 in #(( 33861 *[\\/]* ) as_myself=$0 ;; 33862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33863for as_dir in $PATH 33864do 33865 IFS=$as_save_IFS 33866 test -z "$as_dir" && as_dir=. 33867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33868 done 33869IFS=$as_save_IFS 33870 33871 ;; 33872esac 33873# We did not find ourselves, most probably we were run as `sh COMMAND' 33874# in which case we are not to be found in the path. 33875if test "x$as_myself" = x; then 33876 as_myself=$0 33877fi 33878if test ! -f "$as_myself"; then 33879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33880 exit 1 33881fi 33882 33883# Unset variables that we do not need and which cause bugs (e.g. in 33884# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33885# suppresses any "Segmentation fault" message there. '((' could 33886# trigger a bug in pdksh 5.2.14. 33887for as_var in BASH_ENV ENV MAIL MAILPATH 33888do eval test x\${$as_var+set} = xset \ 33889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33890done 33891PS1='$ ' 33892PS2='> ' 33893PS4='+ ' 33894 33895# NLS nuisances. 33896LC_ALL=C 33897export LC_ALL 33898LANGUAGE=C 33899export LANGUAGE 33900 33901# CDPATH. 33902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33903 33904 33905# as_fn_error STATUS ERROR [LINENO LOG_FD] 33906# ---------------------------------------- 33907# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33908# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33909# script with STATUS, using 1 if that was 0. 33910as_fn_error () 33911{ 33912 as_status=$1; test $as_status -eq 0 && as_status=1 33913 if test "$4"; then 33914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33916 fi 33917 $as_echo "$as_me: error: $2" >&2 33918 as_fn_exit $as_status 33919} # as_fn_error 33920 33921 33922# as_fn_set_status STATUS 33923# ----------------------- 33924# Set $? to STATUS, without forking. 33925as_fn_set_status () 33926{ 33927 return $1 33928} # as_fn_set_status 33929 33930# as_fn_exit STATUS 33931# ----------------- 33932# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33933as_fn_exit () 33934{ 33935 set +e 33936 as_fn_set_status $1 33937 exit $1 33938} # as_fn_exit 33939 33940# as_fn_unset VAR 33941# --------------- 33942# Portably unset VAR. 33943as_fn_unset () 33944{ 33945 { eval $1=; unset $1;} 33946} 33947as_unset=as_fn_unset 33948# as_fn_append VAR VALUE 33949# ---------------------- 33950# Append the text in VALUE to the end of the definition contained in VAR. Take 33951# advantage of any shell optimizations that allow amortized linear growth over 33952# repeated appends, instead of the typical quadratic growth present in naive 33953# implementations. 33954if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33955 eval 'as_fn_append () 33956 { 33957 eval $1+=\$2 33958 }' 33959else 33960 as_fn_append () 33961 { 33962 eval $1=\$$1\$2 33963 } 33964fi # as_fn_append 33965 33966# as_fn_arith ARG... 33967# ------------------ 33968# Perform arithmetic evaluation on the ARGs, and store the result in the 33969# global $as_val. Take advantage of shells that can avoid forks. The arguments 33970# must be portable across $(()) and expr. 33971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33972 eval 'as_fn_arith () 33973 { 33974 as_val=$(( $* )) 33975 }' 33976else 33977 as_fn_arith () 33978 { 33979 as_val=`expr "$@" || test $? -eq 1` 33980 } 33981fi # as_fn_arith 33982 33983 33984if expr a : '\(a\)' >/dev/null 2>&1 && 33985 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33986 as_expr=expr 33987else 33988 as_expr=false 33989fi 33990 33991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33992 as_basename=basename 33993else 33994 as_basename=false 33995fi 33996 33997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33998 as_dirname=dirname 33999else 34000 as_dirname=false 34001fi 34002 34003as_me=`$as_basename -- "$0" || 34004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34005 X"$0" : 'X\(//\)$' \| \ 34006 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34007$as_echo X/"$0" | 34008 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34009 s//\1/ 34010 q 34011 } 34012 /^X\/\(\/\/\)$/{ 34013 s//\1/ 34014 q 34015 } 34016 /^X\/\(\/\).*/{ 34017 s//\1/ 34018 q 34019 } 34020 s/.*/./; q'` 34021 34022# Avoid depending upon Character Ranges. 34023as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34025as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34026as_cr_digits='0123456789' 34027as_cr_alnum=$as_cr_Letters$as_cr_digits 34028 34029ECHO_C= ECHO_N= ECHO_T= 34030case `echo -n x` in #((((( 34031-n*) 34032 case `echo 'xy\c'` in 34033 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34034 xy) ECHO_C='\c';; 34035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 34036 ECHO_T=' ';; 34037 esac;; 34038*) 34039 ECHO_N='-n';; 34040esac 34041 34042rm -f conf$$ conf$$.exe conf$$.file 34043if test -d conf$$.dir; then 34044 rm -f conf$$.dir/conf$$.file 34045else 34046 rm -f conf$$.dir 34047 mkdir conf$$.dir 2>/dev/null 34048fi 34049if (echo >conf$$.file) 2>/dev/null; then 34050 if ln -s conf$$.file conf$$ 2>/dev/null; then 34051 as_ln_s='ln -s' 34052 # ... but there are two gotchas: 34053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34055 # In both cases, we have to default to `cp -pR'. 34056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34057 as_ln_s='cp -pR' 34058 elif ln conf$$.file conf$$ 2>/dev/null; then 34059 as_ln_s=ln 34060 else 34061 as_ln_s='cp -pR' 34062 fi 34063else 34064 as_ln_s='cp -pR' 34065fi 34066rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34067rmdir conf$$.dir 2>/dev/null 34068 34069 34070# as_fn_mkdir_p 34071# ------------- 34072# Create "$as_dir" as a directory, including parents if necessary. 34073as_fn_mkdir_p () 34074{ 34075 34076 case $as_dir in #( 34077 -*) as_dir=./$as_dir;; 34078 esac 34079 test -d "$as_dir" || eval $as_mkdir_p || { 34080 as_dirs= 34081 while :; do 34082 case $as_dir in #( 34083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34084 *) as_qdir=$as_dir;; 34085 esac 34086 as_dirs="'$as_qdir' $as_dirs" 34087 as_dir=`$as_dirname -- "$as_dir" || 34088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34089 X"$as_dir" : 'X\(//\)[^/]' \| \ 34090 X"$as_dir" : 'X\(//\)$' \| \ 34091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34092$as_echo X"$as_dir" | 34093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34094 s//\1/ 34095 q 34096 } 34097 /^X\(\/\/\)[^/].*/{ 34098 s//\1/ 34099 q 34100 } 34101 /^X\(\/\/\)$/{ 34102 s//\1/ 34103 q 34104 } 34105 /^X\(\/\).*/{ 34106 s//\1/ 34107 q 34108 } 34109 s/.*/./; q'` 34110 test -d "$as_dir" && break 34111 done 34112 test -z "$as_dirs" || eval "mkdir $as_dirs" 34113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34114 34115 34116} # as_fn_mkdir_p 34117if mkdir -p . 2>/dev/null; then 34118 as_mkdir_p='mkdir -p "$as_dir"' 34119else 34120 test -d ./-p && rmdir ./-p 34121 as_mkdir_p=false 34122fi 34123 34124 34125# as_fn_executable_p FILE 34126# ----------------------- 34127# Test if FILE is an executable regular file. 34128as_fn_executable_p () 34129{ 34130 test -f "$1" && test -x "$1" 34131} # as_fn_executable_p 34132as_test_x='test -x' 34133as_executable_p=as_fn_executable_p 34134 34135# Sed expression to map a string onto a valid CPP name. 34136as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34137 34138# Sed expression to map a string onto a valid variable name. 34139as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34140 34141 34142exec 6>&1 34143## ----------------------------------- ## 34144## Main body of $CONFIG_STATUS script. ## 34145## ----------------------------------- ## 34146_ASEOF 34147test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 34148 34149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34150# Save the log message, to keep $0 and so on meaningful, and to 34151# report actual input values of CONFIG_FILES etc. instead of their 34152# values after options handling. 34153ac_log=" 34154This file was extended by ntp $as_me 4.2.8p13, which was 34155generated by GNU Autoconf 2.69. Invocation command line was 34156 34157 CONFIG_FILES = $CONFIG_FILES 34158 CONFIG_HEADERS = $CONFIG_HEADERS 34159 CONFIG_LINKS = $CONFIG_LINKS 34160 CONFIG_COMMANDS = $CONFIG_COMMANDS 34161 $ $0 $@ 34162 34163on `(hostname || uname -n) 2>/dev/null | sed 1q` 34164" 34165 34166_ACEOF 34167 34168case $ac_config_files in *" 34169"*) set x $ac_config_files; shift; ac_config_files=$*;; 34170esac 34171 34172case $ac_config_headers in *" 34173"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 34174esac 34175 34176 34177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34178# Files that config.status was made for. 34179config_files="$ac_config_files" 34180config_headers="$ac_config_headers" 34181config_commands="$ac_config_commands" 34182 34183_ACEOF 34184 34185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34186ac_cs_usage="\ 34187\`$as_me' instantiates files and other configuration actions 34188from templates according to the current configuration. Unless the files 34189and actions are specified as TAGs, all are instantiated by default. 34190 34191Usage: $0 [OPTION]... [TAG]... 34192 34193 -h, --help print this help, then exit 34194 -V, --version print version number and configuration settings, then exit 34195 --config print configuration, then exit 34196 -q, --quiet, --silent 34197 do not print progress messages 34198 -d, --debug don't remove temporary files 34199 --recheck update $as_me by reconfiguring in the same conditions 34200 --file=FILE[:TEMPLATE] 34201 instantiate the configuration file FILE 34202 --header=FILE[:TEMPLATE] 34203 instantiate the configuration header FILE 34204 34205Configuration files: 34206$config_files 34207 34208Configuration headers: 34209$config_headers 34210 34211Configuration commands: 34212$config_commands 34213 34214Report bugs to <http://bugs.ntp.org./>. 34215ntp home page: <http://www.ntp.org./>." 34216 34217_ACEOF 34218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 34220ac_cs_version="\\ 34221ntp config.status 4.2.8p13 34222configured by $0, generated by GNU Autoconf 2.69, 34223 with options \\"\$ac_cs_config\\" 34224 34225Copyright (C) 2012 Free Software Foundation, Inc. 34226This config.status script is free software; the Free Software Foundation 34227gives unlimited permission to copy, distribute and modify it." 34228 34229ac_pwd='$ac_pwd' 34230srcdir='$srcdir' 34231INSTALL='$INSTALL' 34232MKDIR_P='$MKDIR_P' 34233AWK='$AWK' 34234test -n "\$AWK" || AWK=awk 34235_ACEOF 34236 34237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34238# The default lists apply if the user does not specify any file. 34239ac_need_defaults=: 34240while test $# != 0 34241do 34242 case $1 in 34243 --*=?*) 34244 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34246 ac_shift=: 34247 ;; 34248 --*=) 34249 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34250 ac_optarg= 34251 ac_shift=: 34252 ;; 34253 *) 34254 ac_option=$1 34255 ac_optarg=$2 34256 ac_shift=shift 34257 ;; 34258 esac 34259 34260 case $ac_option in 34261 # Handling of the options. 34262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34263 ac_cs_recheck=: ;; 34264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34265 $as_echo "$ac_cs_version"; exit ;; 34266 --config | --confi | --conf | --con | --co | --c ) 34267 $as_echo "$ac_cs_config"; exit ;; 34268 --debug | --debu | --deb | --de | --d | -d ) 34269 debug=: ;; 34270 --file | --fil | --fi | --f ) 34271 $ac_shift 34272 case $ac_optarg in 34273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34274 '') as_fn_error $? "missing file argument" ;; 34275 esac 34276 as_fn_append CONFIG_FILES " '$ac_optarg'" 34277 ac_need_defaults=false;; 34278 --header | --heade | --head | --hea ) 34279 $ac_shift 34280 case $ac_optarg in 34281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34282 esac 34283 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34284 ac_need_defaults=false;; 34285 --he | --h) 34286 # Conflict between --help and --header 34287 as_fn_error $? "ambiguous option: \`$1' 34288Try \`$0 --help' for more information.";; 34289 --help | --hel | -h ) 34290 $as_echo "$ac_cs_usage"; exit ;; 34291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34292 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34293 ac_cs_silent=: ;; 34294 34295 # This is an error. 34296 -*) as_fn_error $? "unrecognized option: \`$1' 34297Try \`$0 --help' for more information." ;; 34298 34299 *) as_fn_append ac_config_targets " $1" 34300 ac_need_defaults=false ;; 34301 34302 esac 34303 shift 34304done 34305 34306ac_configure_extra_args= 34307 34308if $ac_cs_silent; then 34309 exec 6>/dev/null 34310 ac_configure_extra_args="$ac_configure_extra_args --silent" 34311fi 34312 34313_ACEOF 34314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34315if \$ac_cs_recheck; then 34316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34317 shift 34318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 34319 CONFIG_SHELL='$SHELL' 34320 export CONFIG_SHELL 34321 exec "\$@" 34322fi 34323 34324_ACEOF 34325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34326exec 5>>config.log 34327{ 34328 echo 34329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34330## Running $as_me. ## 34331_ASBOX 34332 $as_echo "$ac_log" 34333} >&5 34334 34335_ACEOF 34336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34337# 34338# INIT-COMMANDS 34339# 34340AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 34341 34342 34343# The HP-UX ksh and POSIX shell print the target directory to stdout 34344# if CDPATH is set. 34345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34346 34347sed_quote_subst='$sed_quote_subst' 34348double_quote_subst='$double_quote_subst' 34349delay_variable_subst='$delay_variable_subst' 34350enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 34351macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 34352macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 34353enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 34354pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 34355enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 34356shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 34357SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 34358ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 34359PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 34360host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 34361host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 34362host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 34363build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 34364build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 34365build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 34366SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 34367Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 34368GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 34369EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 34370FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 34371LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 34372NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 34373LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 34374max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 34375ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 34376exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 34377lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 34378lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 34379lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 34380lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 34381lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 34382reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 34383reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 34384OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 34385deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 34386file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 34387file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 34388want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 34389DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 34390sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 34391AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 34392AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 34393archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 34394STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 34395RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 34396old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34397old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34398old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34399lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34400CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34401CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34402compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34403GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34404lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34405lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34406lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34407lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34408lt_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"`' 34409lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34410nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34411lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34412lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34413objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34414MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34415lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34416lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34417lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34418lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34419lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34420need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34421MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34422DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34423NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34424LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34425OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34426OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34427libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34428shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34429extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34430archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34431enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34432export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34433whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34434compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34435old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34436old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34437archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34438archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34439module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34440module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34441with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34442allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34443no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34444hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34445hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34446hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34447hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34448hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34449hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34450hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34451inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34452link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34453always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34454export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34455exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34456include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34457prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34458postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34459file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34460variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34461need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34462need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34463version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34464runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34465shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34466shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34467libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34468library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34469soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34470install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34471postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34472postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34473finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34474finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34475hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34476sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34477configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34478configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34479hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34480enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34481enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34482enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34483old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34484striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34485 34486LTCC='$LTCC' 34487LTCFLAGS='$LTCFLAGS' 34488compiler='$compiler_DEFAULT' 34489 34490# A function that is used when there is no print builtin or printf. 34491func_fallback_echo () 34492{ 34493 eval 'cat <<_LTECHO_EOF 34494\$1 34495_LTECHO_EOF' 34496} 34497 34498# Quote evaled strings. 34499for var in SHELL \ 34500ECHO \ 34501PATH_SEPARATOR \ 34502SED \ 34503GREP \ 34504EGREP \ 34505FGREP \ 34506LD \ 34507NM \ 34508LN_S \ 34509lt_SP2NL \ 34510lt_NL2SP \ 34511reload_flag \ 34512OBJDUMP \ 34513deplibs_check_method \ 34514file_magic_cmd \ 34515file_magic_glob \ 34516want_nocaseglob \ 34517DLLTOOL \ 34518sharedlib_from_linklib_cmd \ 34519AR \ 34520AR_FLAGS \ 34521archiver_list_spec \ 34522STRIP \ 34523RANLIB \ 34524CC \ 34525CFLAGS \ 34526compiler \ 34527lt_cv_sys_global_symbol_pipe \ 34528lt_cv_sys_global_symbol_to_cdecl \ 34529lt_cv_sys_global_symbol_to_import \ 34530lt_cv_sys_global_symbol_to_c_name_address \ 34531lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34532lt_cv_nm_interface \ 34533nm_file_list_spec \ 34534lt_cv_truncate_bin \ 34535lt_prog_compiler_no_builtin_flag \ 34536lt_prog_compiler_pic \ 34537lt_prog_compiler_wl \ 34538lt_prog_compiler_static \ 34539lt_cv_prog_compiler_c_o \ 34540need_locks \ 34541MANIFEST_TOOL \ 34542DSYMUTIL \ 34543NMEDIT \ 34544LIPO \ 34545OTOOL \ 34546OTOOL64 \ 34547shrext_cmds \ 34548export_dynamic_flag_spec \ 34549whole_archive_flag_spec \ 34550compiler_needs_object \ 34551with_gnu_ld \ 34552allow_undefined_flag \ 34553no_undefined_flag \ 34554hardcode_libdir_flag_spec \ 34555hardcode_libdir_separator \ 34556exclude_expsyms \ 34557include_expsyms \ 34558file_list_spec \ 34559variables_saved_for_relink \ 34560libname_spec \ 34561library_names_spec \ 34562soname_spec \ 34563install_override_mode \ 34564finish_eval \ 34565old_striplib \ 34566striplib; do 34567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34568 *[\\\\\\\`\\"\\\$]*) 34569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34570 ;; 34571 *) 34572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34573 ;; 34574 esac 34575done 34576 34577# Double-quote double-evaled strings. 34578for var in reload_cmds \ 34579old_postinstall_cmds \ 34580old_postuninstall_cmds \ 34581old_archive_cmds \ 34582extract_expsyms_cmds \ 34583old_archive_from_new_cmds \ 34584old_archive_from_expsyms_cmds \ 34585archive_cmds \ 34586archive_expsym_cmds \ 34587module_cmds \ 34588module_expsym_cmds \ 34589export_symbols_cmds \ 34590prelink_cmds \ 34591postlink_cmds \ 34592postinstall_cmds \ 34593postuninstall_cmds \ 34594finish_cmds \ 34595sys_lib_search_path_spec \ 34596configure_time_dlsearch_path \ 34597configure_time_lt_sys_library_path; do 34598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34599 *[\\\\\\\`\\"\\\$]*) 34600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34601 ;; 34602 *) 34603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34604 ;; 34605 esac 34606done 34607 34608ac_aux_dir='$ac_aux_dir' 34609 34610# See if we are running on zsh, and set the options that allow our 34611# commands through without removal of \ escapes INIT. 34612if test -n "\${ZSH_VERSION+set}"; then 34613 setopt NO_GLOB_SUBST 34614fi 34615 34616 34617 PACKAGE='$PACKAGE' 34618 VERSION='$VERSION' 34619 RM='$RM' 34620 ofile='$ofile' 34621 34622 34623 34624 34625_ACEOF 34626 34627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34628 34629# Handling of arguments. 34630for ac_config_target in $ac_config_targets 34631do 34632 case $ac_config_target in 34633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 34634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34637 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 34638 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 34639 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34640 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 34641 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 34642 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 34643 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 34644 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 34645 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 34646 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;; 34647 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 34648 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 34649 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 34650 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 34651 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 34652 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 34653 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 34654 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;; 34655 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;; 34656 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;; 34657 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;; 34658 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;; 34659 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;; 34660 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;; 34661 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;; 34662 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;; 34663 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;; 34664 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;; 34665 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;; 34666 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 34667 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 34668 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 34669 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;; 34670 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;; 34671 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 34672 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;; 34673 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;; 34674 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;; 34675 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;; 34676 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;; 34677 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;; 34678 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 34679 34680 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34681 esac 34682done 34683 34684 34685# If the user did not use the arguments to specify the items to instantiate, 34686# then the envvar interface is used. Set only those that are not. 34687# We use the long form for the default assignment because of an extremely 34688# bizarre bug on SunOS 4.1.3. 34689if $ac_need_defaults; then 34690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34693fi 34694 34695# Have a temporary directory for convenience. Make it in the build tree 34696# simply because there is no reason against having it here, and in addition, 34697# creating and moving files from /tmp can sometimes cause problems. 34698# Hook for its removal unless debugging. 34699# Note that there is a small window in which the directory will not be cleaned: 34700# after its creation but before its name has been assigned to `$tmp'. 34701$debug || 34702{ 34703 tmp= ac_tmp= 34704 trap 'exit_status=$? 34705 : "${ac_tmp:=$tmp}" 34706 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34707' 0 34708 trap 'as_fn_exit 1' 1 2 13 15 34709} 34710# Create a (secure) tmp directory for tmp files. 34711 34712{ 34713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34714 test -d "$tmp" 34715} || 34716{ 34717 tmp=./conf$$-$RANDOM 34718 (umask 077 && mkdir "$tmp") 34719} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34720ac_tmp=$tmp 34721 34722# Set up the scripts for CONFIG_FILES section. 34723# No need to generate them if there are no CONFIG_FILES. 34724# This happens for instance with `./config.status config.h'. 34725if test -n "$CONFIG_FILES"; then 34726 34727if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 34728 ac_cs_awk_getline=: 34729 ac_cs_awk_pipe_init= 34730 ac_cs_awk_read_file=' 34731 while ((getline aline < (F[key])) > 0) 34732 print(aline) 34733 close(F[key])' 34734 ac_cs_awk_pipe_fini= 34735else 34736 ac_cs_awk_getline=false 34737 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 34738 ac_cs_awk_read_file=' 34739 print "|#_!!_#|" 34740 print "cat " F[key] " &&" 34741 '$ac_cs_awk_pipe_init 34742 # The final `:' finishes the AND list. 34743 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 34744fi 34745ac_cr=`echo X | tr X '\015'` 34746# On cygwin, bash can eat \r inside `` if the user requested igncr. 34747# But we know of no other shell where ac_cr would be empty at this 34748# point, so we can use a bashism as a fallback. 34749if test "x$ac_cr" = x; then 34750 eval ac_cr=\$\'\\r\' 34751fi 34752ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34753if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34754 ac_cs_awk_cr='\\r' 34755else 34756 ac_cs_awk_cr=$ac_cr 34757fi 34758 34759echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34760_ACEOF 34761 34762# Create commands to substitute file output variables. 34763{ 34764 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 34765 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 34766 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 34767 echo "_ACAWK" && 34768 echo "_ACEOF" 34769} >conf$$files.sh && 34770. ./conf$$files.sh || 34771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34772rm -f conf$$files.sh 34773 34774{ 34775 echo "cat >conf$$subs.awk <<_ACEOF" && 34776 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34777 echo "_ACEOF" 34778} >conf$$subs.sh || 34779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34780ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34781ac_delim='%!_!# ' 34782for ac_last_try in false false false false false :; do 34783 . ./conf$$subs.sh || 34784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34785 34786 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34787 if test $ac_delim_n = $ac_delim_num; then 34788 break 34789 elif $ac_last_try; then 34790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34791 else 34792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34793 fi 34794done 34795rm -f conf$$subs.sh 34796 34797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34798cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34799_ACEOF 34800sed -n ' 34801h 34802s/^/S["/; s/!.*/"]=/ 34803p 34804g 34805s/^[^!]*!// 34806:repl 34807t repl 34808s/'"$ac_delim"'$// 34809t delim 34810:nl 34811h 34812s/\(.\{148\}\)..*/\1/ 34813t more1 34814s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34815p 34816n 34817b repl 34818:more1 34819s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34820p 34821g 34822s/.\{148\}// 34823t nl 34824:delim 34825h 34826s/\(.\{148\}\)..*/\1/ 34827t more2 34828s/["\\]/\\&/g; s/^/"/; s/$/"/ 34829p 34830b 34831:more2 34832s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34833p 34834g 34835s/.\{148\}// 34836t delim 34837' <conf$$subs.awk | sed ' 34838/^[^""]/{ 34839 N 34840 s/\n// 34841} 34842' >>$CONFIG_STATUS || ac_write_fail=1 34843rm -f conf$$subs.awk 34844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34845_ACAWK 34846cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34847 for (key in S) S_is_set[key] = 1 34848 FS = "" 34849 \$ac_cs_awk_pipe_init 34850} 34851{ 34852 line = $ 0 34853 nfields = split(line, field, "@") 34854 substed = 0 34855 len = length(field[1]) 34856 for (i = 2; i < nfields; i++) { 34857 key = field[i] 34858 keylen = length(key) 34859 if (S_is_set[key]) { 34860 value = S[key] 34861 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34862 len += length(value) + length(field[++i]) 34863 substed = 1 34864 } else 34865 len += 1 + keylen 34866 } 34867 if (nfields == 3 && !substed) { 34868 key = field[2] 34869 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 34870 \$ac_cs_awk_read_file 34871 next 34872 } 34873 } 34874 print line 34875} 34876\$ac_cs_awk_pipe_fini 34877_ACAWK 34878_ACEOF 34879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34880if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34882else 34883 cat 34884fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34885 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34886_ACEOF 34887 34888# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34889# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34890# trailing colons and then remove the whole line if VPATH becomes empty 34891# (actually we leave an empty line to preserve line numbers). 34892if test "x$srcdir" = x.; then 34893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34894h 34895s/// 34896s/^/:/ 34897s/[ ]*$/:/ 34898s/:\$(srcdir):/:/g 34899s/:\${srcdir}:/:/g 34900s/:@srcdir@:/:/g 34901s/^:*// 34902s/:*$// 34903x 34904s/\(=[ ]*\).*/\1/ 34905G 34906s/\n// 34907s/^[^=]*=[ ]*$// 34908}' 34909fi 34910 34911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34912fi # test -n "$CONFIG_FILES" 34913 34914# Set up the scripts for CONFIG_HEADERS section. 34915# No need to generate them if there are no CONFIG_HEADERS. 34916# This happens for instance with `./config.status Makefile'. 34917if test -n "$CONFIG_HEADERS"; then 34918cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34919BEGIN { 34920_ACEOF 34921 34922# Transform confdefs.h into an awk script `defines.awk', embedded as 34923# here-document in config.status, that substitutes the proper values into 34924# config.h.in to produce config.h. 34925 34926# Create a delimiter string that does not exist in confdefs.h, to ease 34927# handling of long lines. 34928ac_delim='%!_!# ' 34929for ac_last_try in false false :; do 34930 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34931 if test -z "$ac_tt"; then 34932 break 34933 elif $ac_last_try; then 34934 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34935 else 34936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34937 fi 34938done 34939 34940# For the awk script, D is an array of macro values keyed by name, 34941# likewise P contains macro parameters if any. Preserve backslash 34942# newline sequences. 34943 34944ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34945sed -n ' 34946s/.\{148\}/&'"$ac_delim"'/g 34947t rset 34948:rset 34949s/^[ ]*#[ ]*define[ ][ ]*/ / 34950t def 34951d 34952:def 34953s/\\$// 34954t bsnl 34955s/["\\]/\\&/g 34956s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34957D["\1"]=" \3"/p 34958s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34959d 34960:bsnl 34961s/["\\]/\\&/g 34962s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34963D["\1"]=" \3\\\\\\n"\\/p 34964t cont 34965s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34966t cont 34967d 34968:cont 34969n 34970s/.\{148\}/&'"$ac_delim"'/g 34971t clear 34972:clear 34973s/\\$// 34974t bsnlc 34975s/["\\]/\\&/g; s/^/"/; s/$/"/p 34976d 34977:bsnlc 34978s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34979b cont 34980' <confdefs.h | sed ' 34981s/'"$ac_delim"'/"\\\ 34982"/g' >>$CONFIG_STATUS || ac_write_fail=1 34983 34984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34985 for (key in D) D_is_set[key] = 1 34986 FS = "" 34987} 34988/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34989 line = \$ 0 34990 split(line, arg, " ") 34991 if (arg[1] == "#") { 34992 defundef = arg[2] 34993 mac1 = arg[3] 34994 } else { 34995 defundef = substr(arg[1], 2) 34996 mac1 = arg[2] 34997 } 34998 split(mac1, mac2, "(") #) 34999 macro = mac2[1] 35000 prefix = substr(line, 1, index(line, defundef) - 1) 35001 if (D_is_set[macro]) { 35002 # Preserve the white space surrounding the "#". 35003 print prefix "define", macro P[macro] D[macro] 35004 next 35005 } else { 35006 # Replace #undef with comments. This is necessary, for example, 35007 # in the case of _POSIX_SOURCE, which is predefined and required 35008 # on some systems where configure will not decide to define it. 35009 if (defundef == "undef") { 35010 print "/*", prefix defundef, macro, "*/" 35011 next 35012 } 35013 } 35014} 35015{ print } 35016_ACAWK 35017_ACEOF 35018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35019 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 35020fi # test -n "$CONFIG_HEADERS" 35021 35022 35023eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 35024shift 35025for ac_tag 35026do 35027 case $ac_tag in 35028 :[FHLC]) ac_mode=$ac_tag; continue;; 35029 esac 35030 case $ac_mode$ac_tag in 35031 :[FHL]*:*);; 35032 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 35033 :[FH]-) ac_tag=-:-;; 35034 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35035 esac 35036 ac_save_IFS=$IFS 35037 IFS=: 35038 set x $ac_tag 35039 IFS=$ac_save_IFS 35040 shift 35041 ac_file=$1 35042 shift 35043 35044 case $ac_mode in 35045 :L) ac_source=$1;; 35046 :[FH]) 35047 ac_file_inputs= 35048 for ac_f 35049 do 35050 case $ac_f in 35051 -) ac_f="$ac_tmp/stdin";; 35052 *) # Look for the file first in the build tree, then in the source tree 35053 # (if the path is not absolute). The absolute path cannot be DOS-style, 35054 # because $ac_f cannot contain `:'. 35055 test -f "$ac_f" || 35056 case $ac_f in 35057 [\\/$]*) false;; 35058 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35059 esac || 35060 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 35061 esac 35062 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 35063 as_fn_append ac_file_inputs " '$ac_f'" 35064 done 35065 35066 # Let's still pretend it is `configure' which instantiates (i.e., don't 35067 # use $as_me), people would be surprised to read: 35068 # /* config.h. Generated by config.status. */ 35069 configure_input='Generated from '` 35070 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 35071 `' by configure.' 35072 if test x"$ac_file" != x-; then 35073 configure_input="$ac_file. $configure_input" 35074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 35075$as_echo "$as_me: creating $ac_file" >&6;} 35076 fi 35077 # Neutralize special characters interpreted by sed in replacement strings. 35078 case $configure_input in #( 35079 *\&* | *\|* | *\\* ) 35080 ac_sed_conf_input=`$as_echo "$configure_input" | 35081 sed 's/[\\\\&|]/\\\\&/g'`;; #( 35082 *) ac_sed_conf_input=$configure_input;; 35083 esac 35084 35085 case $ac_tag in 35086 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 35087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 35088 esac 35089 ;; 35090 esac 35091 35092 ac_dir=`$as_dirname -- "$ac_file" || 35093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35094 X"$ac_file" : 'X\(//\)[^/]' \| \ 35095 X"$ac_file" : 'X\(//\)$' \| \ 35096 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35097$as_echo X"$ac_file" | 35098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35099 s//\1/ 35100 q 35101 } 35102 /^X\(\/\/\)[^/].*/{ 35103 s//\1/ 35104 q 35105 } 35106 /^X\(\/\/\)$/{ 35107 s//\1/ 35108 q 35109 } 35110 /^X\(\/\).*/{ 35111 s//\1/ 35112 q 35113 } 35114 s/.*/./; q'` 35115 as_dir="$ac_dir"; as_fn_mkdir_p 35116 ac_builddir=. 35117 35118case "$ac_dir" in 35119.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35120*) 35121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 35122 # A ".." for each directory in $ac_dir_suffix. 35123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 35124 case $ac_top_builddir_sub in 35125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35127 esac ;; 35128esac 35129ac_abs_top_builddir=$ac_pwd 35130ac_abs_builddir=$ac_pwd$ac_dir_suffix 35131# for backward compatibility: 35132ac_top_builddir=$ac_top_build_prefix 35133 35134case $srcdir in 35135 .) # We are building in place. 35136 ac_srcdir=. 35137 ac_top_srcdir=$ac_top_builddir_sub 35138 ac_abs_top_srcdir=$ac_pwd ;; 35139 [\\/]* | ?:[\\/]* ) # Absolute name. 35140 ac_srcdir=$srcdir$ac_dir_suffix; 35141 ac_top_srcdir=$srcdir 35142 ac_abs_top_srcdir=$srcdir ;; 35143 *) # Relative name. 35144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35145 ac_top_srcdir=$ac_top_build_prefix$srcdir 35146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35147esac 35148ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35149 35150 35151 case $ac_mode in 35152 :F) 35153 # 35154 # CONFIG_FILE 35155 # 35156 35157 case $INSTALL in 35158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35160 esac 35161 ac_MKDIR_P=$MKDIR_P 35162 case $MKDIR_P in 35163 [\\/$]* | ?:[\\/]* ) ;; 35164 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35165 esac 35166_ACEOF 35167 35168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35169# If the template does not know about datarootdir, expand it. 35170# FIXME: This hack should be removed a few years after 2.60. 35171ac_datarootdir_hack=; ac_datarootdir_seen= 35172ac_sed_dataroot=' 35173/datarootdir/ { 35174 p 35175 q 35176} 35177/@datadir@/p 35178/@docdir@/p 35179/@infodir@/p 35180/@localedir@/p 35181/@mandir@/p' 35182case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35183*datarootdir*) ac_datarootdir_seen=yes;; 35184*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35186$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35187_ACEOF 35188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35189 ac_datarootdir_hack=' 35190 s&@datadir@&$datadir&g 35191 s&@docdir@&$docdir&g 35192 s&@infodir@&$infodir&g 35193 s&@localedir@&$localedir&g 35194 s&@mandir@&$mandir&g 35195 s&\\\${datarootdir}&$datarootdir&g' ;; 35196esac 35197_ACEOF 35198 35199# Neutralize VPATH when `$srcdir' = `.'. 35200# Shell code in configure.ac might set extrasub. 35201# FIXME: do we really want to maintain this feature? 35202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35203ac_sed_extra="$ac_vpsub 35204$extrasub 35205_ACEOF 35206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35207:t 35208/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35209s|@configure_input@|$ac_sed_conf_input|;t t 35210s&@top_builddir@&$ac_top_builddir_sub&;t t 35211s&@top_build_prefix@&$ac_top_build_prefix&;t t 35212s&@srcdir@&$ac_srcdir&;t t 35213s&@abs_srcdir@&$ac_abs_srcdir&;t t 35214s&@top_srcdir@&$ac_top_srcdir&;t t 35215s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35216s&@builddir@&$ac_builddir&;t t 35217s&@abs_builddir@&$ac_abs_builddir&;t t 35218s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35219s&@INSTALL@&$ac_INSTALL&;t t 35220s&@MKDIR_P@&$ac_MKDIR_P&;t t 35221$ac_datarootdir_hack 35222" 35223eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 35224if $ac_cs_awk_getline; then 35225 $AWK -f "$ac_tmp/subs.awk" 35226else 35227 $AWK -f "$ac_tmp/subs.awk" | $SHELL 35228fi \ 35229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35230 35231test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35234 "$ac_tmp/out"`; test -z "$ac_out"; } && 35235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35236which seems to be undefined. Please make sure it is defined" >&5 35237$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35238which seems to be undefined. Please make sure it is defined" >&2;} 35239 35240 rm -f "$ac_tmp/stdin" 35241 case $ac_file in 35242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 35243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 35244 esac \ 35245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35246 ;; 35247 :H) 35248 # 35249 # CONFIG_HEADER 35250 # 35251 if test x"$ac_file" != x-; then 35252 { 35253 $as_echo "/* $configure_input */" \ 35254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 35255 } >"$ac_tmp/config.h" \ 35256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 35258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 35259$as_echo "$as_me: $ac_file is unchanged" >&6;} 35260 else 35261 rm -f "$ac_file" 35262 mv "$ac_tmp/config.h" "$ac_file" \ 35263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35264 fi 35265 else 35266 $as_echo "/* $configure_input */" \ 35267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 35268 || as_fn_error $? "could not create -" "$LINENO" 5 35269 fi 35270# Compute "$ac_file"'s index in $config_headers. 35271_am_arg="$ac_file" 35272_am_stamp_count=1 35273for _am_header in $config_headers :; do 35274 case $_am_header in 35275 $_am_arg | $_am_arg:* ) 35276 break ;; 35277 * ) 35278 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 35279 esac 35280done 35281echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 35282$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35283 X"$_am_arg" : 'X\(//\)[^/]' \| \ 35284 X"$_am_arg" : 'X\(//\)$' \| \ 35285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 35286$as_echo X"$_am_arg" | 35287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35288 s//\1/ 35289 q 35290 } 35291 /^X\(\/\/\)[^/].*/{ 35292 s//\1/ 35293 q 35294 } 35295 /^X\(\/\/\)$/{ 35296 s//\1/ 35297 q 35298 } 35299 /^X\(\/\).*/{ 35300 s//\1/ 35301 q 35302 } 35303 s/.*/./; q'`/stamp-h$_am_stamp_count 35304 ;; 35305 35306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 35307$as_echo "$as_me: executing $ac_file commands" >&6;} 35308 ;; 35309 esac 35310 35311 35312 case $ac_file$ac_mode in 35313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 35314 # Older Autoconf quotes --file arguments for eval, but not when files 35315 # are listed without --file. Let's play safe and only enable the eval 35316 # if we detect the quoting. 35317 case $CONFIG_FILES in 35318 *\'*) eval set x "$CONFIG_FILES" ;; 35319 *) set x $CONFIG_FILES ;; 35320 esac 35321 shift 35322 for mf 35323 do 35324 # Strip MF so we end up with the name of the file. 35325 mf=`echo "$mf" | sed -e 's/:.*$//'` 35326 # Check whether this is an Automake generated Makefile or not. 35327 # We used to match only the files named 'Makefile.in', but 35328 # some people rename them; so instead we look at the file content. 35329 # Grep'ing the first line is not enough: some people post-process 35330 # each Makefile.in and add a new line on top of each file to say so. 35331 # Grep'ing the whole file is not good either: AIX grep has a line 35332 # limit of 2048, but all sed's we know have understand at least 4000. 35333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 35334 dirpart=`$as_dirname -- "$mf" || 35335$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35336 X"$mf" : 'X\(//\)[^/]' \| \ 35337 X"$mf" : 'X\(//\)$' \| \ 35338 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 35339$as_echo X"$mf" | 35340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35341 s//\1/ 35342 q 35343 } 35344 /^X\(\/\/\)[^/].*/{ 35345 s//\1/ 35346 q 35347 } 35348 /^X\(\/\/\)$/{ 35349 s//\1/ 35350 q 35351 } 35352 /^X\(\/\).*/{ 35353 s//\1/ 35354 q 35355 } 35356 s/.*/./; q'` 35357 else 35358 continue 35359 fi 35360 # Extract the definition of DEPDIR, am__include, and am__quote 35361 # from the Makefile without running 'make'. 35362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 35363 test -z "$DEPDIR" && continue 35364 am__include=`sed -n 's/^am__include = //p' < "$mf"` 35365 test -z "$am__include" && continue 35366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 35367 # Find all dependency output files, they are included files with 35368 # $(DEPDIR) in their names. We invoke sed twice because it is the 35369 # simplest approach to changing $(DEPDIR) to its actual value in the 35370 # expansion. 35371 for file in `sed -n " 35372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 35373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 35374 # Make sure the directory exists. 35375 test -f "$dirpart/$file" && continue 35376 fdir=`$as_dirname -- "$file" || 35377$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35378 X"$file" : 'X\(//\)[^/]' \| \ 35379 X"$file" : 'X\(//\)$' \| \ 35380 X"$file" : 'X\(/\)' \| . 2>/dev/null || 35381$as_echo X"$file" | 35382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35383 s//\1/ 35384 q 35385 } 35386 /^X\(\/\/\)[^/].*/{ 35387 s//\1/ 35388 q 35389 } 35390 /^X\(\/\/\)$/{ 35391 s//\1/ 35392 q 35393 } 35394 /^X\(\/\).*/{ 35395 s//\1/ 35396 q 35397 } 35398 s/.*/./; q'` 35399 as_dir=$dirpart/$fdir; as_fn_mkdir_p 35400 # echo "creating $dirpart/$file" 35401 echo '# dummy' > "$dirpart/$file" 35402 done 35403 done 35404} 35405 ;; 35406 "libtool":C) 35407 35408 # See if we are running on zsh, and set the options that allow our 35409 # commands through without removal of \ escapes. 35410 if test -n "${ZSH_VERSION+set}"; then 35411 setopt NO_GLOB_SUBST 35412 fi 35413 35414 cfgfile=${ofile}T 35415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 35416 $RM "$cfgfile" 35417 35418 cat <<_LT_EOF >> "$cfgfile" 35419#! $SHELL 35420# Generated automatically by $as_me ($PACKAGE) $VERSION 35421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 35422# NOTE: Changes made to this file will be lost: look at ltmain.sh. 35423 35424# Provide generalized library-building support services. 35425# Written by Gordon Matzigkeit, 1996 35426 35427# Copyright (C) 2014 Free Software Foundation, Inc. 35428# This is free software; see the source for copying conditions. There is NO 35429# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35430 35431# GNU Libtool is free software; you can redistribute it and/or modify 35432# it under the terms of the GNU General Public License as published by 35433# the Free Software Foundation; either version 2 of of the License, or 35434# (at your option) any later version. 35435# 35436# As a special exception to the GNU General Public License, if you 35437# distribute this file as part of a program or library that is built 35438# using GNU Libtool, you may include this file under the same 35439# distribution terms that you use for the rest of that program. 35440# 35441# GNU Libtool is distributed in the hope that it will be useful, but 35442# WITHOUT ANY WARRANTY; without even the implied warranty of 35443# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 35444# GNU General Public License for more details. 35445# 35446# You should have received a copy of the GNU General Public License 35447# along with this program. If not, see <http://www.gnu.org/licenses/>. 35448 35449 35450# The names of the tagged configurations supported by this script. 35451available_tags='' 35452 35453# Configured defaults for sys_lib_dlsearch_path munging. 35454: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 35455 35456# ### BEGIN LIBTOOL CONFIG 35457 35458# Whether or not to build shared libraries. 35459build_libtool_libs=$enable_shared 35460 35461# Which release of libtool.m4 was used? 35462macro_version=$macro_version 35463macro_revision=$macro_revision 35464 35465# Whether or not to build static libraries. 35466build_old_libs=$enable_static 35467 35468# What type of objects to build. 35469pic_mode=$pic_mode 35470 35471# Whether or not to optimize for fast installation. 35472fast_install=$enable_fast_install 35473 35474# Shared archive member basename,for filename based shared library versioning on AIX. 35475shared_archive_member_spec=$shared_archive_member_spec 35476 35477# Shell to use when invoking shell scripts. 35478SHELL=$lt_SHELL 35479 35480# An echo program that protects backslashes. 35481ECHO=$lt_ECHO 35482 35483# The PATH separator for the build system. 35484PATH_SEPARATOR=$lt_PATH_SEPARATOR 35485 35486# The host system. 35487host_alias=$host_alias 35488host=$host 35489host_os=$host_os 35490 35491# The build system. 35492build_alias=$build_alias 35493build=$build 35494build_os=$build_os 35495 35496# A sed program that does not truncate output. 35497SED=$lt_SED 35498 35499# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35500Xsed="\$SED -e 1s/^X//" 35501 35502# A grep program that handles long lines. 35503GREP=$lt_GREP 35504 35505# An ERE matcher. 35506EGREP=$lt_EGREP 35507 35508# A literal string matcher. 35509FGREP=$lt_FGREP 35510 35511# A BSD- or MS-compatible name lister. 35512NM=$lt_NM 35513 35514# Whether we need soft or hard links. 35515LN_S=$lt_LN_S 35516 35517# What is the maximum length of a command? 35518max_cmd_len=$max_cmd_len 35519 35520# Object file suffix (normally "o"). 35521objext=$ac_objext 35522 35523# Executable file suffix (normally ""). 35524exeext=$exeext 35525 35526# whether the shell understands "unset". 35527lt_unset=$lt_unset 35528 35529# turn spaces into newlines. 35530SP2NL=$lt_lt_SP2NL 35531 35532# turn newlines into spaces. 35533NL2SP=$lt_lt_NL2SP 35534 35535# convert \$build file names to \$host format. 35536to_host_file_cmd=$lt_cv_to_host_file_cmd 35537 35538# convert \$build files to toolchain format. 35539to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35540 35541# An object symbol dumper. 35542OBJDUMP=$lt_OBJDUMP 35543 35544# Method to check whether dependent libraries are shared objects. 35545deplibs_check_method=$lt_deplibs_check_method 35546 35547# Command to use when deplibs_check_method = "file_magic". 35548file_magic_cmd=$lt_file_magic_cmd 35549 35550# How to find potential files when deplibs_check_method = "file_magic". 35551file_magic_glob=$lt_file_magic_glob 35552 35553# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35554want_nocaseglob=$lt_want_nocaseglob 35555 35556# DLL creation program. 35557DLLTOOL=$lt_DLLTOOL 35558 35559# Command to associate shared and link libraries. 35560sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35561 35562# The archiver. 35563AR=$lt_AR 35564 35565# Flags to create an archive. 35566AR_FLAGS=$lt_AR_FLAGS 35567 35568# How to feed a file listing to the archiver. 35569archiver_list_spec=$lt_archiver_list_spec 35570 35571# A symbol stripping program. 35572STRIP=$lt_STRIP 35573 35574# Commands used to install an old-style archive. 35575RANLIB=$lt_RANLIB 35576old_postinstall_cmds=$lt_old_postinstall_cmds 35577old_postuninstall_cmds=$lt_old_postuninstall_cmds 35578 35579# Whether to use a lock for old archive extraction. 35580lock_old_archive_extraction=$lock_old_archive_extraction 35581 35582# A C compiler. 35583LTCC=$lt_CC 35584 35585# LTCC compiler flags. 35586LTCFLAGS=$lt_CFLAGS 35587 35588# Take the output of nm and produce a listing of raw symbols and C names. 35589global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35590 35591# Transform the output of nm in a proper C declaration. 35592global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35593 35594# Transform the output of nm into a list of symbols to manually relocate. 35595global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35596 35597# Transform the output of nm in a C name address pair. 35598global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35599 35600# Transform the output of nm in a C name address pair when lib prefix is needed. 35601global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35602 35603# The name lister interface. 35604nm_interface=$lt_lt_cv_nm_interface 35605 35606# Specify filename containing input files for \$NM. 35607nm_file_list_spec=$lt_nm_file_list_spec 35608 35609# The root where to search for dependent libraries,and where our libraries should be installed. 35610lt_sysroot=$lt_sysroot 35611 35612# Command to truncate a binary pipe. 35613lt_truncate_bin=$lt_lt_cv_truncate_bin 35614 35615# The name of the directory that contains temporary libtool files. 35616objdir=$objdir 35617 35618# Used to examine libraries when file_magic_cmd begins with "file". 35619MAGIC_CMD=$MAGIC_CMD 35620 35621# Must we lock files when doing compilation? 35622need_locks=$lt_need_locks 35623 35624# Manifest tool. 35625MANIFEST_TOOL=$lt_MANIFEST_TOOL 35626 35627# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35628DSYMUTIL=$lt_DSYMUTIL 35629 35630# Tool to change global to local symbols on Mac OS X. 35631NMEDIT=$lt_NMEDIT 35632 35633# Tool to manipulate fat objects and archives on Mac OS X. 35634LIPO=$lt_LIPO 35635 35636# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35637OTOOL=$lt_OTOOL 35638 35639# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35640OTOOL64=$lt_OTOOL64 35641 35642# Old archive suffix (normally "a"). 35643libext=$libext 35644 35645# Shared library suffix (normally ".so"). 35646shrext_cmds=$lt_shrext_cmds 35647 35648# The commands to extract the exported symbol list from a shared archive. 35649extract_expsyms_cmds=$lt_extract_expsyms_cmds 35650 35651# Variables whose values should be saved in libtool wrapper scripts and 35652# restored at link time. 35653variables_saved_for_relink=$lt_variables_saved_for_relink 35654 35655# Do we need the "lib" prefix for modules? 35656need_lib_prefix=$need_lib_prefix 35657 35658# Do we need a version for libraries? 35659need_version=$need_version 35660 35661# Library versioning type. 35662version_type=$version_type 35663 35664# Shared library runtime path variable. 35665runpath_var=$runpath_var 35666 35667# Shared library path variable. 35668shlibpath_var=$shlibpath_var 35669 35670# Is shlibpath searched before the hard-coded library search path? 35671shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35672 35673# Format of library name prefix. 35674libname_spec=$lt_libname_spec 35675 35676# List of archive names. First name is the real one, the rest are links. 35677# The last name is the one that the linker finds with -lNAME 35678library_names_spec=$lt_library_names_spec 35679 35680# The coded name of the library, if different from the real name. 35681soname_spec=$lt_soname_spec 35682 35683# Permission mode override for installation of shared libraries. 35684install_override_mode=$lt_install_override_mode 35685 35686# Command to use after installation of a shared archive. 35687postinstall_cmds=$lt_postinstall_cmds 35688 35689# Command to use after uninstallation of a shared archive. 35690postuninstall_cmds=$lt_postuninstall_cmds 35691 35692# Commands used to finish a libtool library installation in a directory. 35693finish_cmds=$lt_finish_cmds 35694 35695# As "finish_cmds", except a single script fragment to be evaled but 35696# not shown. 35697finish_eval=$lt_finish_eval 35698 35699# Whether we should hardcode library paths into libraries. 35700hardcode_into_libs=$hardcode_into_libs 35701 35702# Compile-time system search path for libraries. 35703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35704 35705# Detected run-time system search path for libraries. 35706sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35707 35708# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35709configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35710 35711# Whether dlopen is supported. 35712dlopen_support=$enable_dlopen 35713 35714# Whether dlopen of programs is supported. 35715dlopen_self=$enable_dlopen_self 35716 35717# Whether dlopen of statically linked programs is supported. 35718dlopen_self_static=$enable_dlopen_self_static 35719 35720# Commands to strip libraries. 35721old_striplib=$lt_old_striplib 35722striplib=$lt_striplib 35723 35724 35725# The linker used to build libraries. 35726LD=$lt_LD 35727 35728# How to create reloadable object files. 35729reload_flag=$lt_reload_flag 35730reload_cmds=$lt_reload_cmds 35731 35732# Commands used to build an old-style archive. 35733old_archive_cmds=$lt_old_archive_cmds 35734 35735# A language specific compiler. 35736CC=$lt_compiler 35737 35738# Is the compiler the GNU compiler? 35739with_gcc=$GCC 35740 35741# Compiler flag to turn off builtin functions. 35742no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35743 35744# Additional compiler flags for building library objects. 35745pic_flag=$lt_lt_prog_compiler_pic 35746 35747# How to pass a linker flag through the compiler. 35748wl=$lt_lt_prog_compiler_wl 35749 35750# Compiler flag to prevent dynamic linking. 35751link_static_flag=$lt_lt_prog_compiler_static 35752 35753# Does compiler simultaneously support -c and -o options? 35754compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35755 35756# Whether or not to add -lc for building shared libraries. 35757build_libtool_need_lc=$archive_cmds_need_lc 35758 35759# Whether or not to disallow shared libs when runtime libs are static. 35760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35761 35762# Compiler flag to allow reflexive dlopens. 35763export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35764 35765# Compiler flag to generate shared objects directly from archives. 35766whole_archive_flag_spec=$lt_whole_archive_flag_spec 35767 35768# Whether the compiler copes with passing no objects directly. 35769compiler_needs_object=$lt_compiler_needs_object 35770 35771# Create an old-style archive from a shared archive. 35772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35773 35774# Create a temporary old-style archive to link instead of a shared archive. 35775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35776 35777# Commands used to build a shared archive. 35778archive_cmds=$lt_archive_cmds 35779archive_expsym_cmds=$lt_archive_expsym_cmds 35780 35781# Commands used to build a loadable module if different from building 35782# a shared archive. 35783module_cmds=$lt_module_cmds 35784module_expsym_cmds=$lt_module_expsym_cmds 35785 35786# Whether we are building with GNU ld or not. 35787with_gnu_ld=$lt_with_gnu_ld 35788 35789# Flag that allows shared libraries with undefined symbols to be built. 35790allow_undefined_flag=$lt_allow_undefined_flag 35791 35792# Flag that enforces no undefined symbols. 35793no_undefined_flag=$lt_no_undefined_flag 35794 35795# Flag to hardcode \$libdir into a binary during linking. 35796# This must work even if \$libdir does not exist 35797hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35798 35799# Whether we need a single "-rpath" flag with a separated argument. 35800hardcode_libdir_separator=$lt_hardcode_libdir_separator 35801 35802# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35803# DIR into the resulting binary. 35804hardcode_direct=$hardcode_direct 35805 35806# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35807# DIR into the resulting binary and the resulting library dependency is 35808# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35809# library is relocated. 35810hardcode_direct_absolute=$hardcode_direct_absolute 35811 35812# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35813# into the resulting binary. 35814hardcode_minus_L=$hardcode_minus_L 35815 35816# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35817# into the resulting binary. 35818hardcode_shlibpath_var=$hardcode_shlibpath_var 35819 35820# Set to "yes" if building a shared library automatically hardcodes DIR 35821# into the library and all subsequent libraries and executables linked 35822# against it. 35823hardcode_automatic=$hardcode_automatic 35824 35825# Set to yes if linker adds runtime paths of dependent libraries 35826# to runtime path list. 35827inherit_rpath=$inherit_rpath 35828 35829# Whether libtool must link a program against all its dependency libraries. 35830link_all_deplibs=$link_all_deplibs 35831 35832# Set to "yes" if exported symbols are required. 35833always_export_symbols=$always_export_symbols 35834 35835# The commands to list exported symbols. 35836export_symbols_cmds=$lt_export_symbols_cmds 35837 35838# Symbols that should not be listed in the preloaded symbols. 35839exclude_expsyms=$lt_exclude_expsyms 35840 35841# Symbols that must always be exported. 35842include_expsyms=$lt_include_expsyms 35843 35844# Commands necessary for linking programs (against libraries) with templates. 35845prelink_cmds=$lt_prelink_cmds 35846 35847# Commands necessary for finishing linking programs. 35848postlink_cmds=$lt_postlink_cmds 35849 35850# Specify filename containing input files. 35851file_list_spec=$lt_file_list_spec 35852 35853# How to hardcode a shared library path into an executable. 35854hardcode_action=$hardcode_action 35855 35856# ### END LIBTOOL CONFIG 35857 35858_LT_EOF 35859 35860 cat <<'_LT_EOF' >> "$cfgfile" 35861 35862# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35863 35864# func_munge_path_list VARIABLE PATH 35865# ----------------------------------- 35866# VARIABLE is name of variable containing _space_ separated list of 35867# directories to be munged by the contents of PATH, which is string 35868# having a format: 35869# "DIR[:DIR]:" 35870# string "DIR[ DIR]" will be prepended to VARIABLE 35871# ":DIR[:DIR]" 35872# string "DIR[ DIR]" will be appended to VARIABLE 35873# "DIRP[:DIRP]::[DIRA:]DIRA" 35874# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35875# "DIRA[ DIRA]" will be appended to VARIABLE 35876# "DIR[:DIR]" 35877# VARIABLE will be replaced by "DIR[ DIR]" 35878func_munge_path_list () 35879{ 35880 case x$2 in 35881 x) 35882 ;; 35883 *:) 35884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35885 ;; 35886 x:*) 35887 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35888 ;; 35889 *::*) 35890 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35891 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35892 ;; 35893 *) 35894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35895 ;; 35896 esac 35897} 35898 35899 35900# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35901func_cc_basename () 35902{ 35903 for cc_temp in $*""; do 35904 case $cc_temp in 35905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35907 \-*) ;; 35908 *) break;; 35909 esac 35910 done 35911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35912} 35913 35914 35915# ### END FUNCTIONS SHARED WITH CONFIGURE 35916 35917_LT_EOF 35918 35919 case $host_os in 35920 aix3*) 35921 cat <<\_LT_EOF >> "$cfgfile" 35922# AIX sometimes has problems with the GCC collect2 program. For some 35923# reason, if we set the COLLECT_NAMES environment variable, the problems 35924# vanish in a puff of smoke. 35925if test set != "${COLLECT_NAMES+set}"; then 35926 COLLECT_NAMES= 35927 export COLLECT_NAMES 35928fi 35929_LT_EOF 35930 ;; 35931 esac 35932 35933 35934ltmain=$ac_aux_dir/ltmain.sh 35935 35936 35937 # We use sed instead of cat because bash on DJGPP gets confused if 35938 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35939 # text mode, it properly converts lines to CR/LF. This bash problem 35940 # is reportedly fixed, but why not run on old versions too? 35941 sed '$q' "$ltmain" >> "$cfgfile" \ 35942 || (rm -f "$cfgfile"; exit 1) 35943 35944 mv -f "$cfgfile" "$ofile" || 35945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35946 chmod +x "$ofile" 35947 35948 ;; 35949 "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 ;; 35950 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 35951 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;; 35952 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;; 35953 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;; 35954 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;; 35955 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;; 35956 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;; 35957 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 35958 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 35959 "scripts/summary":F) chmod +x scripts/summary ;; 35960 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;; 35961 35962 esac 35963done # for ac_tag 35964 35965 35966as_fn_exit 0 35967_ACEOF 35968ac_clean_files=$ac_clean_files_save 35969 35970test $ac_write_fail = 0 || 35971 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35972 35973 35974# configure is writing to config.log, and then calls config.status. 35975# config.status does its own redirection, appending to config.log. 35976# Unfortunately, on DOS this fails, as config.log is still kept open 35977# by configure, so config.status won't be able to write to it; its 35978# output is simply discarded. So we exec the FD to /dev/null, 35979# effectively closing config.log, so it can be properly (re)opened and 35980# appended to by config.status. When coming back to configure, we 35981# need to make the FD available again. 35982if test "$no_create" != yes; then 35983 ac_cs_success=: 35984 ac_config_status_args= 35985 test "$silent" = yes && 35986 ac_config_status_args="$ac_config_status_args --quiet" 35987 exec 5>/dev/null 35988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35989 exec 5>>config.log 35990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35991 # would make configure fail if this is the last instruction. 35992 $ac_cs_success || as_fn_exit 1 35993fi 35994 35995# 35996# CONFIG_SUBDIRS section. 35997# 35998if test "$no_recursion" != yes; then 35999 36000 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 36001 # so they do not pile up. 36002 ac_sub_configure_args= 36003 ac_prev= 36004 eval "set x $ac_configure_args" 36005 shift 36006 for ac_arg 36007 do 36008 if test -n "$ac_prev"; then 36009 ac_prev= 36010 continue 36011 fi 36012 case $ac_arg in 36013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 36014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 36015 ac_prev=cache_file ;; 36016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 36017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 36018 | --c=*) 36019 ;; 36020 --config-cache | -C) 36021 ;; 36022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 36023 ac_prev=srcdir ;; 36024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 36025 ;; 36026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 36027 ac_prev=prefix ;; 36028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 36029 ;; 36030 --disable-option-checking) 36031 ;; 36032 *) 36033 case $ac_arg in 36034 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36035 esac 36036 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 36037 esac 36038 done 36039 36040 # Always prepend --prefix to ensure using the same prefix 36041 # in subdir configurations. 36042 ac_arg="--prefix=$prefix" 36043 case $ac_arg in 36044 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 36045 esac 36046 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 36047 36048 # Pass --silent 36049 if test "$silent" = yes; then 36050 ac_sub_configure_args="--silent $ac_sub_configure_args" 36051 fi 36052 36053 # Always prepend --disable-option-checking to silence warnings, since 36054 # different subdirs can have different --enable and --with options. 36055 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 36056 36057 ac_popdir=`pwd` 36058 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 36059 36060 # Do not complain, so a configure script can configure whichever 36061 # parts of a large source tree are present. 36062 test -d "$srcdir/$ac_dir" || continue 36063 36064 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 36065 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 36066 $as_echo "$ac_msg" >&6 36067 as_dir="$ac_dir"; as_fn_mkdir_p 36068 ac_builddir=. 36069 36070case "$ac_dir" in 36071.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36072*) 36073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 36074 # A ".." for each directory in $ac_dir_suffix. 36075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36076 case $ac_top_builddir_sub in 36077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36079 esac ;; 36080esac 36081ac_abs_top_builddir=$ac_pwd 36082ac_abs_builddir=$ac_pwd$ac_dir_suffix 36083# for backward compatibility: 36084ac_top_builddir=$ac_top_build_prefix 36085 36086case $srcdir in 36087 .) # We are building in place. 36088 ac_srcdir=. 36089 ac_top_srcdir=$ac_top_builddir_sub 36090 ac_abs_top_srcdir=$ac_pwd ;; 36091 [\\/]* | ?:[\\/]* ) # Absolute name. 36092 ac_srcdir=$srcdir$ac_dir_suffix; 36093 ac_top_srcdir=$srcdir 36094 ac_abs_top_srcdir=$srcdir ;; 36095 *) # Relative name. 36096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36097 ac_top_srcdir=$ac_top_build_prefix$srcdir 36098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36099esac 36100ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36101 36102 36103 cd "$ac_dir" 36104 36105 # Check for guested configure; otherwise get Cygnus style configure. 36106 if test -f "$ac_srcdir/configure.gnu"; then 36107 ac_sub_configure=$ac_srcdir/configure.gnu 36108 elif test -f "$ac_srcdir/configure"; then 36109 ac_sub_configure=$ac_srcdir/configure 36110 elif test -f "$ac_srcdir/configure.in"; then 36111 # This should be Cygnus configure. 36112 ac_sub_configure=$ac_aux_dir/configure 36113 else 36114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 36115$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 36116 ac_sub_configure= 36117 fi 36118 36119 # The recursion is here. 36120 if test -n "$ac_sub_configure"; then 36121 # Make the cache file name correct relative to the subdirectory. 36122 case $cache_file in 36123 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 36124 *) # Relative name. 36125 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 36126 esac 36127 36128 { $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 36129$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 36130 # The eval makes quoting arguments work. 36131 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 36132 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 36133 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 36134 fi 36135 36136 cd "$ac_popdir" 36137 done 36138fi 36139if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 36140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 36141$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 36142fi 36143 36144