1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4. 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.8p4' 594PACKAGE_STRING='ntp 4.2.8p4' 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 726CXXCPP 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 835YFLAGS 836YACC 837am__fastdepCXX_FALSE 838am__fastdepCXX_TRUE 839CXXDEPMODE 840ac_ct_CXX 841CXXFLAGS 842CXX 843LDFLAGS_NTP 844LDADD_NTP 845CPPFLAGS_NTP 846CFLAGS_NTP 847EGREP 848GREP 849CPP 850am__fastdepCC_FALSE 851am__fastdepCC_TRUE 852CCDEPMODE 853am__nodep 854AMDEPBACKSLASH 855AMDEP_FALSE 856AMDEP_TRUE 857am__quote 858am__include 859DEPDIR 860OBJEXT 861EXEEXT 862ac_ct_CC 863CPPFLAGS 864LDFLAGS 865CFLAGS 866CC 867host_os 868host_vendor 869host_cpu 870host 871build_os 872build_vendor 873build_cpu 874build 875AM_BACKSLASH 876AM_DEFAULT_VERBOSITY 877AM_DEFAULT_V 878AM_V 879am__untar 880am__tar 881AMTAR 882am__leading_dot 883SET_MAKE 884AWK 885mkdir_p 886MKDIR_P 887INSTALL_STRIP_PROGRAM 888STRIP 889install_sh 890MAKEINFO 891AUTOHEADER 892AUTOMAKE 893AUTOCONF 894ACLOCAL 895VERSION 896PACKAGE 897CYGPATH_W 898am__isrc 899INSTALL_DATA 900INSTALL_SCRIPT 901INSTALL_PROGRAM 902target_alias 903host_alias 904build_alias 905LIBS 906ECHO_T 907ECHO_N 908ECHO_C 909DEFS 910mandir 911localedir 912libdir 913psdir 914pdfdir 915dvidir 916htmldir 917infodir 918docdir 919oldincludedir 920includedir 921localstatedir 922sharedstatedir 923sysconfdir 924datadir 925datarootdir 926libexecdir 927sbindir 928bindir 929program_transform_name 930prefix 931exec_prefix 932PACKAGE_URL 933PACKAGE_BUGREPORT 934PACKAGE_STRING 935PACKAGE_VERSION 936PACKAGE_TARNAME 937PACKAGE_NAME 938PATH_SEPARATOR 939SHELL' 940ac_subst_files='calc_tickadj_opts 941ntp_wait_opts 942ntpsweep_opts 943ntptrace_opts 944summary_opts 945plot_summary_opts' 946ac_user_opts=' 947enable_option_checking 948enable_silent_rules 949enable_dependency_tracking 950with_locfile 951enable_shared 952enable_static 953with_pic 954enable_fast_install 955with_gnu_ld 956with_sysroot 957enable_libtool_lock 958enable_nls 959enable_local_libopts 960enable_libopts_install 961with_autoopts_config 962enable_local_libevent 963with_lineeditlibs 964enable_debugging 965enable_thread_support 966with_threads 967with_yielding_select 968enable_c99_snprintf 969enable_clockctl 970enable_linuxcaps 971enable_solarisprivs 972with_arlib 973with_net_snmp_config 974enable_libseccomp 975with_stack_limit 976with_memlock 977enable_debug_timing 978enable_dst_minutes 979enable_ignore_dns_errors 980enable_BANCOMM 981enable_GPSVME 982enable_all_clocks 983enable_ACTS 984enable_ARBITER 985enable_ARCRON_MSF 986enable_AS2201 987enable_ATOM 988enable_CHRONOLOG 989enable_CHU 990enable_AUDIO_CHU 991enable_DATUM 992enable_DUMBCLOCK 993enable_FG 994enable_HEATH 995enable_HOPFSERIAL 996enable_HOPFPCI 997enable_HPGPS 998enable_IRIG 999enable_JJY 1000enable_JUPITER 1001enable_LEITCH 1002enable_LOCAL_CLOCK 1003enable_MX4200 1004enable_NEOCLOCK4X 1005enable_NMEA 1006enable_GPSD 1007enable_ONCORE 1008enable_PALISADE 1009enable_PCF 1010enable_PST 1011enable_RIPENCC 1012enable_SHM 1013enable_SPECTRACOM 1014enable_TPRO 1015enable_TRUETIME 1016enable_TT560 1017enable_ULINK 1018enable_TSYNCPCI 1019enable_WWV 1020enable_ZYFER 1021enable_parse_clocks 1022enable_COMPUTIME 1023enable_DCF7000 1024enable_HOPF6021 1025enable_MEINBERG 1026enable_RAWDCF 1027enable_RCC8000 1028enable_SCHMID 1029enable_TRIMTAIP 1030enable_TRIMTSIP 1031enable_WHARTON 1032enable_VARITEXT 1033enable_SEL240X 1034with_crypto 1035with_openssl_libdir 1036with_openssl_incdir 1037with_rpath 1038enable_openssl_random 1039enable_autokey 1040enable_kmem 1041enable_accurate_adjtime 1042enable_tick 1043enable_tickadj 1044enable_simulator 1045with_sntp 1046with_ntpsnmpd 1047enable_slew_always 1048enable_step_slew 1049enable_ntpdate_step 1050enable_hourly_todr_sync 1051enable_kernel_fll_bug 1052enable_bug1243_fix 1053enable_irig_sawtooth 1054enable_nist 1055enable_ntp_signd 1056enable_ipv6 1057with_kame 1058enable_getifaddrs 1059enable_saveconfig 1060enable_leap_smear 1061with_gtest 1062enable_problem_tests 1063' 1064 ac_precious_vars='build_alias 1065host_alias 1066target_alias 1067CC 1068CFLAGS 1069LDFLAGS 1070LIBS 1071CPPFLAGS 1072CPP 1073CXX 1074CXXFLAGS 1075CCC 1076YACC 1077YFLAGS 1078CXXCPP' 1079ac_subdirs_all='sntp' 1080 1081# Initialize some variables set by options. 1082ac_init_help= 1083ac_init_version=false 1084ac_unrecognized_opts= 1085ac_unrecognized_sep= 1086# The variables have the same names as the options, with 1087# dashes changed to underlines. 1088cache_file=/dev/null 1089exec_prefix=NONE 1090no_create= 1091no_recursion= 1092prefix=NONE 1093program_prefix=NONE 1094program_suffix=NONE 1095program_transform_name=s,x,x, 1096silent= 1097site= 1098srcdir= 1099verbose= 1100x_includes=NONE 1101x_libraries=NONE 1102 1103# Installation directory options. 1104# These are left unexpanded so users can "make install exec_prefix=/foo" 1105# and all the variables that are supposed to be based on exec_prefix 1106# by default will actually change. 1107# Use braces instead of parens because sh, perl, etc. also accept them. 1108# (The list follows the same order as the GNU Coding Standards.) 1109bindir='${exec_prefix}/bin' 1110sbindir='${exec_prefix}/sbin' 1111libexecdir='${exec_prefix}/libexec' 1112datarootdir='${prefix}/share' 1113datadir='${datarootdir}' 1114sysconfdir='${prefix}/etc' 1115sharedstatedir='${prefix}/com' 1116localstatedir='${prefix}/var' 1117includedir='${prefix}/include' 1118oldincludedir='/usr/include' 1119docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1120infodir='${datarootdir}/info' 1121htmldir='${docdir}' 1122dvidir='${docdir}' 1123pdfdir='${docdir}' 1124psdir='${docdir}' 1125libdir='${exec_prefix}/lib' 1126localedir='${datarootdir}/locale' 1127mandir='${datarootdir}/man' 1128 1129ac_prev= 1130ac_dashdash= 1131for ac_option 1132do 1133 # If the previous option needs an argument, assign it. 1134 if test -n "$ac_prev"; then 1135 eval $ac_prev=\$ac_option 1136 ac_prev= 1137 continue 1138 fi 1139 1140 case $ac_option in 1141 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1142 *=) ac_optarg= ;; 1143 *) ac_optarg=yes ;; 1144 esac 1145 1146 # Accept the important Cygnus configure options, so we can diagnose typos. 1147 1148 case $ac_dashdash$ac_option in 1149 --) 1150 ac_dashdash=yes ;; 1151 1152 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1153 ac_prev=bindir ;; 1154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1155 bindir=$ac_optarg ;; 1156 1157 -build | --build | --buil | --bui | --bu) 1158 ac_prev=build_alias ;; 1159 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1160 build_alias=$ac_optarg ;; 1161 1162 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1164 ac_prev=cache_file ;; 1165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1167 cache_file=$ac_optarg ;; 1168 1169 --config-cache | -C) 1170 cache_file=config.cache ;; 1171 1172 -datadir | --datadir | --datadi | --datad) 1173 ac_prev=datadir ;; 1174 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1175 datadir=$ac_optarg ;; 1176 1177 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1178 | --dataroo | --dataro | --datar) 1179 ac_prev=datarootdir ;; 1180 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1181 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1182 datarootdir=$ac_optarg ;; 1183 1184 -disable-* | --disable-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid feature name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"enable_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval enable_$ac_useropt=no ;; 1199 1200 -docdir | --docdir | --docdi | --doc | --do) 1201 ac_prev=docdir ;; 1202 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1203 docdir=$ac_optarg ;; 1204 1205 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1206 ac_prev=dvidir ;; 1207 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1208 dvidir=$ac_optarg ;; 1209 1210 -enable-* | --enable-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid feature name: $ac_useropt" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"enable_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval enable_$ac_useropt=\$ac_optarg ;; 1225 1226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1228 | --exec | --exe | --ex) 1229 ac_prev=exec_prefix ;; 1230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1232 | --exec=* | --exe=* | --ex=*) 1233 exec_prefix=$ac_optarg ;; 1234 1235 -gas | --gas | --ga | --g) 1236 # Obsolete; use --with-gas. 1237 with_gas=yes ;; 1238 1239 -help | --help | --hel | --he | -h) 1240 ac_init_help=long ;; 1241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1242 ac_init_help=recursive ;; 1243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1244 ac_init_help=short ;; 1245 1246 -host | --host | --hos | --ho) 1247 ac_prev=host_alias ;; 1248 -host=* | --host=* | --hos=* | --ho=*) 1249 host_alias=$ac_optarg ;; 1250 1251 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1252 ac_prev=htmldir ;; 1253 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1254 | --ht=*) 1255 htmldir=$ac_optarg ;; 1256 1257 -includedir | --includedir | --includedi | --included | --include \ 1258 | --includ | --inclu | --incl | --inc) 1259 ac_prev=includedir ;; 1260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1261 | --includ=* | --inclu=* | --incl=* | --inc=*) 1262 includedir=$ac_optarg ;; 1263 1264 -infodir | --infodir | --infodi | --infod | --info | --inf) 1265 ac_prev=infodir ;; 1266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1267 infodir=$ac_optarg ;; 1268 1269 -libdir | --libdir | --libdi | --libd) 1270 ac_prev=libdir ;; 1271 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1272 libdir=$ac_optarg ;; 1273 1274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1275 | --libexe | --libex | --libe) 1276 ac_prev=libexecdir ;; 1277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1278 | --libexe=* | --libex=* | --libe=*) 1279 libexecdir=$ac_optarg ;; 1280 1281 -localedir | --localedir | --localedi | --localed | --locale) 1282 ac_prev=localedir ;; 1283 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1284 localedir=$ac_optarg ;; 1285 1286 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1287 | --localstate | --localstat | --localsta | --localst | --locals) 1288 ac_prev=localstatedir ;; 1289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1290 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1291 localstatedir=$ac_optarg ;; 1292 1293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1294 ac_prev=mandir ;; 1295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1296 mandir=$ac_optarg ;; 1297 1298 -nfp | --nfp | --nf) 1299 # Obsolete; use --without-fp. 1300 with_fp=no ;; 1301 1302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1303 | --no-cr | --no-c | -n) 1304 no_create=yes ;; 1305 1306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1308 no_recursion=yes ;; 1309 1310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1312 | --oldin | --oldi | --old | --ol | --o) 1313 ac_prev=oldincludedir ;; 1314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1317 oldincludedir=$ac_optarg ;; 1318 1319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1320 ac_prev=prefix ;; 1321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1322 prefix=$ac_optarg ;; 1323 1324 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1325 | --program-pre | --program-pr | --program-p) 1326 ac_prev=program_prefix ;; 1327 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1329 program_prefix=$ac_optarg ;; 1330 1331 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1332 | --program-suf | --program-su | --program-s) 1333 ac_prev=program_suffix ;; 1334 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1336 program_suffix=$ac_optarg ;; 1337 1338 -program-transform-name | --program-transform-name \ 1339 | --program-transform-nam | --program-transform-na \ 1340 | --program-transform-n | --program-transform- \ 1341 | --program-transform | --program-transfor \ 1342 | --program-transfo | --program-transf \ 1343 | --program-trans | --program-tran \ 1344 | --progr-tra | --program-tr | --program-t) 1345 ac_prev=program_transform_name ;; 1346 -program-transform-name=* | --program-transform-name=* \ 1347 | --program-transform-nam=* | --program-transform-na=* \ 1348 | --program-transform-n=* | --program-transform-=* \ 1349 | --program-transform=* | --program-transfor=* \ 1350 | --program-transfo=* | --program-transf=* \ 1351 | --program-trans=* | --program-tran=* \ 1352 | --progr-tra=* | --program-tr=* | --program-t=*) 1353 program_transform_name=$ac_optarg ;; 1354 1355 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1356 ac_prev=pdfdir ;; 1357 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1358 pdfdir=$ac_optarg ;; 1359 1360 -psdir | --psdir | --psdi | --psd | --ps) 1361 ac_prev=psdir ;; 1362 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1363 psdir=$ac_optarg ;; 1364 1365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1366 | -silent | --silent | --silen | --sile | --sil) 1367 silent=yes ;; 1368 1369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1370 ac_prev=sbindir ;; 1371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1372 | --sbi=* | --sb=*) 1373 sbindir=$ac_optarg ;; 1374 1375 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1377 | --sharedst | --shareds | --shared | --share | --shar \ 1378 | --sha | --sh) 1379 ac_prev=sharedstatedir ;; 1380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1383 | --sha=* | --sh=*) 1384 sharedstatedir=$ac_optarg ;; 1385 1386 -site | --site | --sit) 1387 ac_prev=site ;; 1388 -site=* | --site=* | --sit=*) 1389 site=$ac_optarg ;; 1390 1391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1392 ac_prev=srcdir ;; 1393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1394 srcdir=$ac_optarg ;; 1395 1396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1397 | --syscon | --sysco | --sysc | --sys | --sy) 1398 ac_prev=sysconfdir ;; 1399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1401 sysconfdir=$ac_optarg ;; 1402 1403 -target | --target | --targe | --targ | --tar | --ta | --t) 1404 ac_prev=target_alias ;; 1405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1406 target_alias=$ac_optarg ;; 1407 1408 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1409 verbose=yes ;; 1410 1411 -version | --version | --versio | --versi | --vers | -V) 1412 ac_init_version=: ;; 1413 1414 -with-* | --with-*) 1415 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1416 # Reject names that are not valid shell variable names. 1417 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1418 as_fn_error $? "invalid package name: $ac_useropt" 1419 ac_useropt_orig=$ac_useropt 1420 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1421 case $ac_user_opts in 1422 *" 1423"with_$ac_useropt" 1424"*) ;; 1425 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1426 ac_unrecognized_sep=', ';; 1427 esac 1428 eval with_$ac_useropt=\$ac_optarg ;; 1429 1430 -without-* | --without-*) 1431 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1432 # Reject names that are not valid shell variable names. 1433 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1434 as_fn_error $? "invalid package name: $ac_useropt" 1435 ac_useropt_orig=$ac_useropt 1436 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1437 case $ac_user_opts in 1438 *" 1439"with_$ac_useropt" 1440"*) ;; 1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1442 ac_unrecognized_sep=', ';; 1443 esac 1444 eval with_$ac_useropt=no ;; 1445 1446 --x) 1447 # Obsolete; use --with-x. 1448 with_x=yes ;; 1449 1450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1451 | --x-incl | --x-inc | --x-in | --x-i) 1452 ac_prev=x_includes ;; 1453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1455 x_includes=$ac_optarg ;; 1456 1457 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1459 ac_prev=x_libraries ;; 1460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1462 x_libraries=$ac_optarg ;; 1463 1464 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1465Try \`$0 --help' for more information" 1466 ;; 1467 1468 *=*) 1469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1470 # Reject names that are not valid shell variable names. 1471 case $ac_envvar in #( 1472 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1473 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1474 esac 1475 eval $ac_envvar=\$ac_optarg 1476 export $ac_envvar ;; 1477 1478 *) 1479 # FIXME: should be removed in autoconf 3.0. 1480 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1482 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1483 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1484 ;; 1485 1486 esac 1487done 1488 1489if test -n "$ac_prev"; then 1490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1491 as_fn_error $? "missing argument to $ac_option" 1492fi 1493 1494if test -n "$ac_unrecognized_opts"; then 1495 case $enable_option_checking in 1496 no) ;; 1497 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1498 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1499 esac 1500fi 1501 1502# Check all directory arguments for consistency. 1503for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1504 datadir sysconfdir sharedstatedir localstatedir includedir \ 1505 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1506 libdir localedir mandir 1507do 1508 eval ac_val=\$$ac_var 1509 # Remove trailing slashes. 1510 case $ac_val in 1511 */ ) 1512 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1513 eval $ac_var=\$ac_val;; 1514 esac 1515 # Be sure to have absolute directory names. 1516 case $ac_val in 1517 [\\/$]* | ?:[\\/]* ) continue;; 1518 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1519 esac 1520 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1521done 1522 1523# There might be people who depend on the old broken behavior: `$host' 1524# used to hold the argument of --host etc. 1525# FIXME: To remove some day. 1526build=$build_alias 1527host=$host_alias 1528target=$target_alias 1529 1530# FIXME: To remove some day. 1531if test "x$host_alias" != x; then 1532 if test "x$build_alias" = x; then 1533 cross_compiling=maybe 1534 elif test "x$build_alias" != "x$host_alias"; then 1535 cross_compiling=yes 1536 fi 1537fi 1538 1539ac_tool_prefix= 1540test -n "$host_alias" && ac_tool_prefix=$host_alias- 1541 1542test "$silent" = yes && exec 6>/dev/null 1543 1544 1545ac_pwd=`pwd` && test -n "$ac_pwd" && 1546ac_ls_di=`ls -di .` && 1547ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1548 as_fn_error $? "working directory cannot be determined" 1549test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1550 as_fn_error $? "pwd does not report name of working directory" 1551 1552 1553# Find the source files, if location was not specified. 1554if test -z "$srcdir"; then 1555 ac_srcdir_defaulted=yes 1556 # Try the directory containing this script, then the parent directory. 1557 ac_confdir=`$as_dirname -- "$as_myself" || 1558$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1559 X"$as_myself" : 'X\(//\)[^/]' \| \ 1560 X"$as_myself" : 'X\(//\)$' \| \ 1561 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1562$as_echo X"$as_myself" | 1563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1564 s//\1/ 1565 q 1566 } 1567 /^X\(\/\/\)[^/].*/{ 1568 s//\1/ 1569 q 1570 } 1571 /^X\(\/\/\)$/{ 1572 s//\1/ 1573 q 1574 } 1575 /^X\(\/\).*/{ 1576 s//\1/ 1577 q 1578 } 1579 s/.*/./; q'` 1580 srcdir=$ac_confdir 1581 if test ! -r "$srcdir/$ac_unique_file"; then 1582 srcdir=.. 1583 fi 1584else 1585 ac_srcdir_defaulted=no 1586fi 1587if test ! -r "$srcdir/$ac_unique_file"; then 1588 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1589 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1590fi 1591ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1592ac_abs_confdir=`( 1593 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1594 pwd)` 1595# When building in place, set srcdir=. 1596if test "$ac_abs_confdir" = "$ac_pwd"; then 1597 srcdir=. 1598fi 1599# Remove unnecessary trailing slashes from srcdir. 1600# Double slashes in file names in object file debugging info 1601# mess up M-x gdb in Emacs. 1602case $srcdir in 1603*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1604esac 1605for ac_var in $ac_precious_vars; do 1606 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1607 eval ac_env_${ac_var}_value=\$${ac_var} 1608 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1609 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1610done 1611 1612# 1613# Report the --help message. 1614# 1615if test "$ac_init_help" = "long"; then 1616 # Omit some internal or obsolete options to make the list less imposing. 1617 # This message is too long to be a string in the A/UX 3.1 sh. 1618 cat <<_ACEOF 1619\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems. 1620 1621Usage: $0 [OPTION]... [VAR=VALUE]... 1622 1623To assign environment variables (e.g., CC, CFLAGS...), specify them as 1624VAR=VALUE. See below for descriptions of some of the useful variables. 1625 1626Defaults for the options are specified in brackets. 1627 1628Configuration: 1629 -h, --help display this help and exit 1630 --help=short display options specific to this package 1631 --help=recursive display the short help of all the included packages 1632 -V, --version display version information and exit 1633 -q, --quiet, --silent do not print \`checking ...' messages 1634 --cache-file=FILE cache test results in FILE [disabled] 1635 -C, --config-cache alias for \`--cache-file=config.cache' 1636 -n, --no-create do not create output files 1637 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1638 1639Installation directories: 1640 --prefix=PREFIX install architecture-independent files in PREFIX 1641 [$ac_default_prefix] 1642 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1643 [PREFIX] 1644 1645By default, \`make install' will install all the files in 1646\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1647an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1648for instance \`--prefix=\$HOME'. 1649 1650For better control, use the options below. 1651 1652Fine tuning of the installation directories: 1653 --bindir=DIR user executables [EPREFIX/bin] 1654 --sbindir=DIR system admin executables [EPREFIX/sbin] 1655 --libexecdir=DIR program executables [EPREFIX/libexec] 1656 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1657 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1658 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1659 --libdir=DIR object code libraries [EPREFIX/lib] 1660 --includedir=DIR C header files [PREFIX/include] 1661 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1662 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1663 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1664 --infodir=DIR info documentation [DATAROOTDIR/info] 1665 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1666 --mandir=DIR man documentation [DATAROOTDIR/man] 1667 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1668 --htmldir=DIR html documentation [DOCDIR] 1669 --dvidir=DIR dvi documentation [DOCDIR] 1670 --pdfdir=DIR pdf documentation [DOCDIR] 1671 --psdir=DIR ps documentation [DOCDIR] 1672_ACEOF 1673 1674 cat <<\_ACEOF 1675 1676Program names: 1677 --program-prefix=PREFIX prepend PREFIX to installed program names 1678 --program-suffix=SUFFIX append SUFFIX to installed program names 1679 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1680 1681System types: 1682 --build=BUILD configure for building on BUILD [guessed] 1683 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1684_ACEOF 1685fi 1686 1687if test -n "$ac_init_help"; then 1688 case $ac_init_help in 1689 short | recursive ) echo "Configuration of ntp 4.2.8p4:";; 1690 esac 1691 cat <<\_ACEOF 1692 1693Optional Features and Packages: 1694 --disable-option-checking ignore unrecognized --enable/--with options 1695 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1696 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1699 --enable-silent-rules less verbose build output (undo: "make V=1") 1700 --disable-silent-rules verbose build output (undo: "make V=0") 1701 --enable-dependency-tracking 1702 do not reject slow dependency extractors 1703 --disable-dependency-tracking 1704 speeds up one-time build 1705 --with-locfile=XXX os-specific or "legacy" 1706 --enable-shared[=PKGS] build shared libraries [default=no] 1707 --enable-static[=PKGS] build static libraries [default=yes] 1708 --with-pic try to use only PIC/non-PIC objects [default=use 1709 both] 1710 --enable-fast-install[=PKGS] 1711 optimize for fast installation [default=yes] 1712 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1713 --with-sysroot=DIR Search for dependent libraries within DIR 1714 (or the compiler's sysroot if not specified). 1715 --disable-libtool-lock avoid locking (might break parallel builds) 1716 --disable-nls disable nls support in libopts 1717 --enable-local-libopts Use the supplied libopts tearoff code 1718 --enable-libopts-install 1719 Install libopts with client installation 1720 --with-autoopts-config specify the config-info script 1721 --enable-local-libevent Force using the supplied libevent tearoff code 1722 --with-lineeditlibs edit,editline (readline may be specified if desired) 1723 defaults: + yes, - no, s system-specific 1724 --enable-debugging + include ntpd debugging code 1725 --enable-thread-support s use threads (+ if available) 1726 --with-threads with threads [auto] 1727 --with-yielding-select with yielding select [auto] 1728 --enable-c99-snprintf s force replacement 1729 --enable-clockctl s Use /dev/clockctl for non-root clock control 1730 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1731 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1732 --with-arlib - deprecated, arlib not distributed 1733 --with-net-snmp-config + =net-snmp-config 1734 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp 1735 sandboxing (default is no) 1736 --with-stack-limit ? =50 (200 for openbsd) 4k pages 1737 --with-memlock ? =32 (-1 on linux) megabytes 1738 --enable-debug-timing - include processing time debugging code (costs 1739 performance) 1740 --enable-dst-minutes =60 minutes per DST adjustment 1741 --enable-ignore-dns-errors 1742 - retry DNS queries on any error 1743 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1744 --enable-GPSVME - TrueTime GPS receiver/VME interface 1745 --enable-all-clocks + include all suitable non-PARSE clocks: 1746 --enable-ACTS s ACTS modem service 1747 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1748 --enable-ARCRON-MSF + Arcron MSF receiver 1749 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1750 --enable-ATOM s ATOM PPS interface 1751 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1752 --enable-CHU + CHU modem/decoder 1753 --enable-AUDIO-CHU s CHU audio/decoder 1754 --enable-DATUM s Datum Programmable Time System 1755 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1756 --enable-FG + Forum Graphic GPS 1757 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1758 --enable-HOPFSERIAL + hopf serial clock device 1759 --enable-HOPFPCI + hopf 6039 PCI board 1760 --enable-HPGPS + HP 58503A GPS receiver 1761 --enable-IRIG s IRIG audio decoder 1762 --enable-JJY + JJY receiver 1763 --enable-JUPITER s Rockwell Jupiter GPS receiver 1764 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1765 --enable-LOCAL-CLOCK + local clock reference 1766 --enable-MX4200 s Magnavox MX4200 GPS receiver 1767 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1768 --enable-NMEA + NMEA GPS receiver 1769 --enable-GPSD + GPSD JSON receiver 1770 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1771 --enable-PALISADE s Palisade clock 1772 --enable-PCF + Conrad parallel port radio clock 1773 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1774 --enable-RIPENCC - RIPENCC specific Trimble driver 1775 --enable-SHM s SHM clock attached thru shared memory 1776 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1777 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1778 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1779 --enable-TT560 - TrueTime 560 IRIG-B decoder 1780 --enable-ULINK + Ultralink WWVB receiver 1781 --enable-TSYNCPCI s Spectracom TSYNC timing board 1782 --enable-WWV s WWV Audio receiver 1783 --enable-ZYFER + Zyfer GPStarplus receiver 1784 --enable-parse-clocks - include all suitable PARSE clocks: 1785 --enable-COMPUTIME s Diem Computime Radio Clock 1786 --enable-DCF7000 s ELV/DCF7000 clock 1787 --enable-HOPF6021 s HOPF 6021 clock 1788 --enable-MEINBERG s Meinberg clocks 1789 --enable-RAWDCF s DCF77 raw time code 1790 --enable-RCC8000 s RCC 8000 clock 1791 --enable-SCHMID s Schmid DCF77 clock 1792 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1793 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1794 --enable-WHARTON s WHARTON 400A Series clock 1795 --enable-VARITEXT s VARITEXT clock 1796 --enable-SEL240X s SEL240X clock 1797 --with-crypto + =openssl,libcrypto 1798 1799 --with-openssl-libdir + =/something/reasonable 1800 1801 --with-openssl-incdir + =/something/reasonable 1802 1803 --without-rpath s Disable auto-added -R linker paths 1804 1805 --enable-openssl-random Use OpenSSL's crypto random number functions, if 1806 available (default is yes) 1807 --enable-autokey + support NTP Autokey protocol 1808 --enable-kmem s read /dev/kmem for tick and/or tickadj 1809 --enable-accurate-adjtime 1810 s the adjtime() call is accurate 1811 --enable-tick=VALUE s force a value for 'tick' 1812 --enable-tickadj=VALUE s force a value for 'tickadj' 1813 --enable-simulator - build/install the NTPD simulator? 1814 --without-sntp - disable building sntp and sntp/tests 1815 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1816 --enable-slew-always s always slew the time 1817 --enable-step-slew s step and slew the time 1818 --enable-ntpdate-step s if ntpdate should step the time 1819 --enable-hourly-todr-sync 1820 s if we should sync TODR hourly 1821 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1822 --enable-bug1243-fix + use unmodified autokey session keys 1823 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1824 --enable-nist - if we should enable the NIST lockclock scheme 1825 --enable-ntp-signd - Provide support for Samba's signing daemon, 1826 =/var/run/ntp_signd 1827 --enable-ipv6 s use IPv6? 1828 1829 --with-kame - =/usr/local/v6 1830 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1831 --enable-saveconfig + saveconfig mechanism 1832 --enable-leap-smear - experimental leap smear code 1833 --with-gtest Use the gtest framework (Default: if it's available) 1834 --enable-problem-tests + enable tests with undiagnosed problems 1835 1836Some influential environment variables: 1837 CC C compiler command 1838 CFLAGS C compiler flags 1839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1840 nonstandard directory <lib dir> 1841 LIBS libraries to pass to the linker, e.g. -l<library> 1842 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1843 you have headers in a nonstandard directory <include dir> 1844 CPP C preprocessor 1845 CXX C++ compiler command 1846 CXXFLAGS C++ compiler flags 1847 YACC The `Yet Another Compiler Compiler' implementation to use. 1848 Defaults to the first program found out of: `bison -y', `byacc', 1849 `yacc'. 1850 YFLAGS The list of arguments that will be passed by default to $YACC. 1851 This script will default YFLAGS to the empty string to avoid a 1852 default value of `-d' given by some make applications. 1853 CXXCPP C++ preprocessor 1854 1855Use these variables to override the choices made by `configure' or to help 1856it to find libraries and programs with nonstandard names/locations. 1857 1858Report bugs to <http://bugs.ntp.org./>. 1859ntp home page: <http://www.ntp.org./>. 1860_ACEOF 1861ac_status=$? 1862fi 1863 1864if test "$ac_init_help" = "recursive"; then 1865 # If there are subdirs, report their specific --help. 1866 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1867 test -d "$ac_dir" || 1868 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1869 continue 1870 ac_builddir=. 1871 1872case "$ac_dir" in 1873.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1874*) 1875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1876 # A ".." for each directory in $ac_dir_suffix. 1877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1878 case $ac_top_builddir_sub in 1879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1881 esac ;; 1882esac 1883ac_abs_top_builddir=$ac_pwd 1884ac_abs_builddir=$ac_pwd$ac_dir_suffix 1885# for backward compatibility: 1886ac_top_builddir=$ac_top_build_prefix 1887 1888case $srcdir in 1889 .) # We are building in place. 1890 ac_srcdir=. 1891 ac_top_srcdir=$ac_top_builddir_sub 1892 ac_abs_top_srcdir=$ac_pwd ;; 1893 [\\/]* | ?:[\\/]* ) # Absolute name. 1894 ac_srcdir=$srcdir$ac_dir_suffix; 1895 ac_top_srcdir=$srcdir 1896 ac_abs_top_srcdir=$srcdir ;; 1897 *) # Relative name. 1898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1899 ac_top_srcdir=$ac_top_build_prefix$srcdir 1900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1901esac 1902ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1903 1904 cd "$ac_dir" || { ac_status=$?; continue; } 1905 # Check for guested configure. 1906 if test -f "$ac_srcdir/configure.gnu"; then 1907 echo && 1908 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1909 elif test -f "$ac_srcdir/configure"; then 1910 echo && 1911 $SHELL "$ac_srcdir/configure" --help=recursive 1912 else 1913 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1914 fi || ac_status=$? 1915 cd "$ac_pwd" || { ac_status=$?; break; } 1916 done 1917fi 1918 1919test -n "$ac_init_help" && exit $ac_status 1920if $ac_init_version; then 1921 cat <<\_ACEOF 1922ntp configure 4.2.8p4 1923generated by GNU Autoconf 2.69 1924 1925Copyright (C) 2012 Free Software Foundation, Inc. 1926This configure script is free software; the Free Software Foundation 1927gives unlimited permission to copy, distribute and modify it. 1928_ACEOF 1929 exit 1930fi 1931 1932## ------------------------ ## 1933## Autoconf initialization. ## 1934## ------------------------ ## 1935 1936# ac_fn_c_try_compile LINENO 1937# -------------------------- 1938# Try to compile conftest.$ac_ext, and return whether this succeeded. 1939ac_fn_c_try_compile () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 rm -f conftest.$ac_objext 1943 if { { ac_try="$ac_compile" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949$as_echo "$ac_try_echo"; } >&5 1950 (eval "$ac_compile") 2>conftest.err 1951 ac_status=$? 1952 if test -s conftest.err; then 1953 grep -v '^ *+' conftest.err >conftest.er1 1954 cat conftest.er1 >&5 1955 mv -f conftest.er1 conftest.err 1956 fi 1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1958 test $ac_status = 0; } && { 1959 test -z "$ac_c_werror_flag" || 1960 test ! -s conftest.err 1961 } && test -s conftest.$ac_objext; then : 1962 ac_retval=0 1963else 1964 $as_echo "$as_me: failed program was:" >&5 1965sed 's/^/| /' conftest.$ac_ext >&5 1966 1967 ac_retval=1 1968fi 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_c_try_compile 1973 1974# ac_fn_c_try_cpp LINENO 1975# ---------------------- 1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_c_try_cpp () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 if { { ac_try="$ac_cpp conftest.$ac_ext" 1981case "(($ac_try" in 1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1983 *) ac_try_echo=$ac_try;; 1984esac 1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1986$as_echo "$ac_try_echo"; } >&5 1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1988 ac_status=$? 1989 if test -s conftest.err; then 1990 grep -v '^ *+' conftest.err >conftest.er1 1991 cat conftest.er1 >&5 1992 mv -f conftest.er1 conftest.err 1993 fi 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; } > conftest.i && { 1996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1997 test ! -s conftest.err 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_c_try_cpp 2010 2011# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2012# ------------------------------------------------------- 2013# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2014# the include files in INCLUDES and setting the cache variable VAR 2015# accordingly. 2016ac_fn_c_check_header_mongrel () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 if eval \${$3+:} false; then : 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2021$as_echo_n "checking for $2... " >&6; } 2022if eval \${$3+:} false; then : 2023 $as_echo_n "(cached) " >&6 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028else 2029 # Is the header compilable? 2030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2031$as_echo_n "checking $2 usability... " >&6; } 2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033/* end confdefs.h. */ 2034$4 2035#include <$2> 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 ac_header_compiler=yes 2039else 2040 ac_header_compiler=no 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2044$as_echo "$ac_header_compiler" >&6; } 2045 2046# Is the header present? 2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2048$as_echo_n "checking $2 presence... " >&6; } 2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051#include <$2> 2052_ACEOF 2053if ac_fn_c_try_cpp "$LINENO"; then : 2054 ac_header_preproc=yes 2055else 2056 ac_header_preproc=no 2057fi 2058rm -f conftest.err conftest.i conftest.$ac_ext 2059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2060$as_echo "$ac_header_preproc" >&6; } 2061 2062# So? What about this header? 2063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2064 yes:no: ) 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2066$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2068$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2069 ;; 2070 no:yes:* ) 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2072$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2074$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2076$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2078$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2081( $as_echo "## ------------------------------------ ## 2082## Report this to http://bugs.ntp.org./ ## 2083## ------------------------------------ ##" 2084 ) | sed "s/^/$as_me: WARNING: /" >&2 2085 ;; 2086esac 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091else 2092 eval "$3=\$ac_header_compiler" 2093fi 2094eval ac_res=\$$3 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2096$as_echo "$ac_res" >&6; } 2097fi 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100} # ac_fn_c_check_header_mongrel 2101 2102# ac_fn_c_try_run LINENO 2103# ---------------------- 2104# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2105# that executables *can* be run. 2106ac_fn_c_try_run () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 if { { ac_try="$ac_link" 2110case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115$as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_link") 2>&5 2117 ac_status=$? 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2119 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2120 { { case "(($ac_try" in 2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2122 *) ac_try_echo=$ac_try;; 2123esac 2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2125$as_echo "$ac_try_echo"; } >&5 2126 (eval "$ac_try") 2>&5 2127 ac_status=$? 2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2129 test $ac_status = 0; }; }; then : 2130 ac_retval=0 2131else 2132 $as_echo "$as_me: program exited with status $ac_status" >&5 2133 $as_echo "$as_me: failed program was:" >&5 2134sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 ac_retval=$ac_status 2137fi 2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2140 as_fn_set_status $ac_retval 2141 2142} # ac_fn_c_try_run 2143 2144# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2145# ------------------------------------------------------- 2146# Tests whether HEADER exists and can be compiled using the include files in 2147# INCLUDES, setting the cache variable VAR accordingly. 2148ac_fn_c_check_header_compile () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2152$as_echo_n "checking for $2... " >&6; } 2153if eval \${$3+:} false; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159#include <$2> 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 eval "$3=yes" 2163else 2164 eval "$3=no" 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172 2173} # ac_fn_c_check_header_compile 2174 2175# ac_fn_c_try_link LINENO 2176# ----------------------- 2177# Try to link conftest.$ac_ext, and return whether this succeeded. 2178ac_fn_c_try_link () 2179{ 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 rm -f conftest.$ac_objext conftest$ac_exeext 2182 if { { ac_try="$ac_link" 2183case "(($ac_try" in 2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2185 *) ac_try_echo=$ac_try;; 2186esac 2187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2188$as_echo "$ac_try_echo"; } >&5 2189 (eval "$ac_link") 2>conftest.err 2190 ac_status=$? 2191 if test -s conftest.err; then 2192 grep -v '^ *+' conftest.err >conftest.er1 2193 cat conftest.er1 >&5 2194 mv -f conftest.er1 conftest.err 2195 fi 2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2197 test $ac_status = 0; } && { 2198 test -z "$ac_c_werror_flag" || 2199 test ! -s conftest.err 2200 } && test -s conftest$ac_exeext && { 2201 test "$cross_compiling" = yes || 2202 test -x conftest$ac_exeext 2203 }; then : 2204 ac_retval=0 2205else 2206 $as_echo "$as_me: failed program was:" >&5 2207sed 's/^/| /' conftest.$ac_ext >&5 2208 2209 ac_retval=1 2210fi 2211 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2212 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2213 # interfere with the next link command; also delete a directory that is 2214 # left behind by Apple's compiler. We do this before executing the actions. 2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2217 as_fn_set_status $ac_retval 2218 2219} # ac_fn_c_try_link 2220 2221# ac_fn_cxx_try_compile LINENO 2222# ---------------------------- 2223# Try to compile conftest.$ac_ext, and return whether this succeeded. 2224ac_fn_cxx_try_compile () 2225{ 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 rm -f conftest.$ac_objext 2228 if { { ac_try="$ac_compile" 2229case "(($ac_try" in 2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2231 *) ac_try_echo=$ac_try;; 2232esac 2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2234$as_echo "$ac_try_echo"; } >&5 2235 (eval "$ac_compile") 2>conftest.err 2236 ac_status=$? 2237 if test -s conftest.err; then 2238 grep -v '^ *+' conftest.err >conftest.er1 2239 cat conftest.er1 >&5 2240 mv -f conftest.er1 conftest.err 2241 fi 2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2243 test $ac_status = 0; } && { 2244 test -z "$ac_cxx_werror_flag" || 2245 test ! -s conftest.err 2246 } && test -s conftest.$ac_objext; then : 2247 ac_retval=0 2248else 2249 $as_echo "$as_me: failed program was:" >&5 2250sed 's/^/| /' conftest.$ac_ext >&5 2251 2252 ac_retval=1 2253fi 2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2255 as_fn_set_status $ac_retval 2256 2257} # ac_fn_cxx_try_compile 2258 2259# ac_fn_c_check_func LINENO FUNC VAR 2260# ---------------------------------- 2261# Tests whether FUNC exists, setting the cache variable VAR accordingly 2262ac_fn_c_check_func () 2263{ 2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2266$as_echo_n "checking for $2... " >&6; } 2267if eval \${$3+:} false; then : 2268 $as_echo_n "(cached) " >&6 2269else 2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2271/* end confdefs.h. */ 2272/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2274#define $2 innocuous_$2 2275 2276/* System header to define __stub macros and hopefully few prototypes, 2277 which can conflict with char $2 (); below. 2278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2279 <limits.h> exists even on freestanding compilers. */ 2280 2281#ifdef __STDC__ 2282# include <limits.h> 2283#else 2284# include <assert.h> 2285#endif 2286 2287#undef $2 2288 2289/* Override any GCC internal prototype to avoid an error. 2290 Use char because int might match the return type of a GCC 2291 builtin and then its argument prototype would still apply. */ 2292#ifdef __cplusplus 2293extern "C" 2294#endif 2295char $2 (); 2296/* The GNU C library defines this for functions which it implements 2297 to always fail with ENOSYS. Some functions are actually named 2298 something starting with __ and the normal name is an alias. */ 2299#if defined __stub_$2 || defined __stub___$2 2300choke me 2301#endif 2302 2303int 2304main () 2305{ 2306return $2 (); 2307 ; 2308 return 0; 2309} 2310_ACEOF 2311if ac_fn_c_try_link "$LINENO"; then : 2312 eval "$3=yes" 2313else 2314 eval "$3=no" 2315fi 2316rm -f core conftest.err conftest.$ac_objext \ 2317 conftest$ac_exeext conftest.$ac_ext 2318fi 2319eval ac_res=\$$3 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2321$as_echo "$ac_res" >&6; } 2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2323 2324} # ac_fn_c_check_func 2325 2326# ac_fn_cxx_try_cpp LINENO 2327# ------------------------ 2328# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2329ac_fn_cxx_try_cpp () 2330{ 2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2332 if { { ac_try="$ac_cpp conftest.$ac_ext" 2333case "(($ac_try" in 2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2335 *) ac_try_echo=$ac_try;; 2336esac 2337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2338$as_echo "$ac_try_echo"; } >&5 2339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2340 ac_status=$? 2341 if test -s conftest.err; then 2342 grep -v '^ *+' conftest.err >conftest.er1 2343 cat conftest.er1 >&5 2344 mv -f conftest.er1 conftest.err 2345 fi 2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2347 test $ac_status = 0; } > conftest.i && { 2348 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2349 test ! -s conftest.err 2350 }; then : 2351 ac_retval=0 2352else 2353 $as_echo "$as_me: failed program was:" >&5 2354sed 's/^/| /' conftest.$ac_ext >&5 2355 2356 ac_retval=1 2357fi 2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2359 as_fn_set_status $ac_retval 2360 2361} # ac_fn_cxx_try_cpp 2362 2363# ac_fn_cxx_try_link LINENO 2364# ------------------------- 2365# Try to link conftest.$ac_ext, and return whether this succeeded. 2366ac_fn_cxx_try_link () 2367{ 2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2369 rm -f conftest.$ac_objext conftest$ac_exeext 2370 if { { ac_try="$ac_link" 2371case "(($ac_try" in 2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2373 *) ac_try_echo=$ac_try;; 2374esac 2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2376$as_echo "$ac_try_echo"; } >&5 2377 (eval "$ac_link") 2>conftest.err 2378 ac_status=$? 2379 if test -s conftest.err; then 2380 grep -v '^ *+' conftest.err >conftest.er1 2381 cat conftest.er1 >&5 2382 mv -f conftest.er1 conftest.err 2383 fi 2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2385 test $ac_status = 0; } && { 2386 test -z "$ac_cxx_werror_flag" || 2387 test ! -s conftest.err 2388 } && test -s conftest$ac_exeext && { 2389 test "$cross_compiling" = yes || 2390 test -x conftest$ac_exeext 2391 }; then : 2392 ac_retval=0 2393else 2394 $as_echo "$as_me: failed program was:" >&5 2395sed 's/^/| /' conftest.$ac_ext >&5 2396 2397 ac_retval=1 2398fi 2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2401 # interfere with the next link command; also delete a directory that is 2402 # left behind by Apple's compiler. We do this before executing the actions. 2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2405 as_fn_set_status $ac_retval 2406 2407} # ac_fn_cxx_try_link 2408 2409# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2410# ------------------------------------------- 2411# Tests whether TYPE exists after having included INCLUDES, setting cache 2412# variable VAR accordingly. 2413ac_fn_c_check_type () 2414{ 2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2417$as_echo_n "checking for $2... " >&6; } 2418if eval \${$3+:} false; then : 2419 $as_echo_n "(cached) " >&6 2420else 2421 eval "$3=no" 2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2423/* end confdefs.h. */ 2424$4 2425int 2426main () 2427{ 2428if (sizeof ($2)) 2429 return 0; 2430 ; 2431 return 0; 2432} 2433_ACEOF 2434if ac_fn_c_try_compile "$LINENO"; then : 2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2436/* end confdefs.h. */ 2437$4 2438int 2439main () 2440{ 2441if (sizeof (($2))) 2442 return 0; 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447if ac_fn_c_try_compile "$LINENO"; then : 2448 2449else 2450 eval "$3=yes" 2451fi 2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2453fi 2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2455fi 2456eval ac_res=\$$3 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2458$as_echo "$ac_res" >&6; } 2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2460 2461} # ac_fn_c_check_type 2462 2463# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2464# -------------------------------------------- 2465# Tries to find the compile-time value of EXPR in a program that includes 2466# INCLUDES, setting VAR accordingly. Returns whether the value could be 2467# computed 2468ac_fn_c_compute_int () 2469{ 2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2471 if test "$cross_compiling" = yes; then 2472 # Depending upon the size, compute the lo and hi bounds. 2473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2474/* end confdefs.h. */ 2475$4 2476int 2477main () 2478{ 2479static int test_array [1 - 2 * !(($2) >= 0)]; 2480test_array [0] = 0; 2481return test_array [0]; 2482 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487if ac_fn_c_try_compile "$LINENO"; then : 2488 ac_lo=0 ac_mid=0 2489 while :; do 2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2491/* end confdefs.h. */ 2492$4 2493int 2494main () 2495{ 2496static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2497test_array [0] = 0; 2498return test_array [0]; 2499 2500 ; 2501 return 0; 2502} 2503_ACEOF 2504if ac_fn_c_try_compile "$LINENO"; then : 2505 ac_hi=$ac_mid; break 2506else 2507 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2508 if test $ac_lo -le $ac_mid; then 2509 ac_lo= ac_hi= 2510 break 2511 fi 2512 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2513fi 2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2515 done 2516else 2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2518/* end confdefs.h. */ 2519$4 2520int 2521main () 2522{ 2523static int test_array [1 - 2 * !(($2) < 0)]; 2524test_array [0] = 0; 2525return test_array [0]; 2526 2527 ; 2528 return 0; 2529} 2530_ACEOF 2531if ac_fn_c_try_compile "$LINENO"; then : 2532 ac_hi=-1 ac_mid=-1 2533 while :; do 2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2535/* end confdefs.h. */ 2536$4 2537int 2538main () 2539{ 2540static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2541test_array [0] = 0; 2542return test_array [0]; 2543 2544 ; 2545 return 0; 2546} 2547_ACEOF 2548if ac_fn_c_try_compile "$LINENO"; then : 2549 ac_lo=$ac_mid; break 2550else 2551 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2552 if test $ac_mid -le $ac_hi; then 2553 ac_lo= ac_hi= 2554 break 2555 fi 2556 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2557fi 2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2559 done 2560else 2561 ac_lo= ac_hi= 2562fi 2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2564fi 2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2566# Binary search between lo and hi bounds. 2567while test "x$ac_lo" != "x$ac_hi"; do 2568 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2570/* end confdefs.h. */ 2571$4 2572int 2573main () 2574{ 2575static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2576test_array [0] = 0; 2577return test_array [0]; 2578 2579 ; 2580 return 0; 2581} 2582_ACEOF 2583if ac_fn_c_try_compile "$LINENO"; then : 2584 ac_hi=$ac_mid 2585else 2586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2587fi 2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2589done 2590case $ac_lo in #(( 2591?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2592'') ac_retval=1 ;; 2593esac 2594 else 2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2596/* end confdefs.h. */ 2597$4 2598static long int longval () { return $2; } 2599static unsigned long int ulongval () { return $2; } 2600#include <stdio.h> 2601#include <stdlib.h> 2602int 2603main () 2604{ 2605 2606 FILE *f = fopen ("conftest.val", "w"); 2607 if (! f) 2608 return 1; 2609 if (($2) < 0) 2610 { 2611 long int i = longval (); 2612 if (i != ($2)) 2613 return 1; 2614 fprintf (f, "%ld", i); 2615 } 2616 else 2617 { 2618 unsigned long int i = ulongval (); 2619 if (i != ($2)) 2620 return 1; 2621 fprintf (f, "%lu", i); 2622 } 2623 /* Do not output a trailing newline, as this causes \r\n confusion 2624 on some platforms. */ 2625 return ferror (f) || fclose (f) != 0; 2626 2627 ; 2628 return 0; 2629} 2630_ACEOF 2631if ac_fn_c_try_run "$LINENO"; then : 2632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2633else 2634 ac_retval=1 2635fi 2636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2637 conftest.$ac_objext conftest.beam conftest.$ac_ext 2638rm -f conftest.val 2639 2640 fi 2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2642 as_fn_set_status $ac_retval 2643 2644} # ac_fn_c_compute_int 2645 2646# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2647# --------------------------------------------- 2648# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2649# accordingly. 2650ac_fn_c_check_decl () 2651{ 2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2653 as_decl_name=`echo $2|sed 's/ *(.*//'` 2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2656$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2657if eval \${$3+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661/* end confdefs.h. */ 2662$4 2663int 2664main () 2665{ 2666#ifndef $as_decl_name 2667#ifdef __cplusplus 2668 (void) $as_decl_use; 2669#else 2670 (void) $as_decl_name; 2671#endif 2672#endif 2673 2674 ; 2675 return 0; 2676} 2677_ACEOF 2678if ac_fn_c_try_compile "$LINENO"; then : 2679 eval "$3=yes" 2680else 2681 eval "$3=no" 2682fi 2683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2684fi 2685eval ac_res=\$$3 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2687$as_echo "$ac_res" >&6; } 2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2689 2690} # ac_fn_c_check_decl 2691 2692# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2693# ---------------------------------------------------- 2694# Tries to find if the field MEMBER exists in type AGGR, after including 2695# INCLUDES, setting cache variable VAR accordingly. 2696ac_fn_c_check_member () 2697{ 2698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2700$as_echo_n "checking for $2.$3... " >&6; } 2701if eval \${$4+:} false; then : 2702 $as_echo_n "(cached) " >&6 2703else 2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2705/* end confdefs.h. */ 2706$5 2707int 2708main () 2709{ 2710static $2 ac_aggr; 2711if (ac_aggr.$3) 2712return 0; 2713 ; 2714 return 0; 2715} 2716_ACEOF 2717if ac_fn_c_try_compile "$LINENO"; then : 2718 eval "$4=yes" 2719else 2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2721/* end confdefs.h. */ 2722$5 2723int 2724main () 2725{ 2726static $2 ac_aggr; 2727if (sizeof ac_aggr.$3) 2728return 0; 2729 ; 2730 return 0; 2731} 2732_ACEOF 2733if ac_fn_c_try_compile "$LINENO"; then : 2734 eval "$4=yes" 2735else 2736 eval "$4=no" 2737fi 2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2739fi 2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2741fi 2742eval ac_res=\$$4 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2744$as_echo "$ac_res" >&6; } 2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2746 2747} # ac_fn_c_check_member 2748cat >config.log <<_ACEOF 2749This file contains any messages produced by compilers while 2750running configure, to aid debugging if configure makes a mistake. 2751 2752It was created by ntp $as_me 4.2.8p4, which was 2753generated by GNU Autoconf 2.69. Invocation command line was 2754 2755 $ $0 $@ 2756 2757_ACEOF 2758exec 5>>config.log 2759{ 2760cat <<_ASUNAME 2761## --------- ## 2762## Platform. ## 2763## --------- ## 2764 2765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2766uname -m = `(uname -m) 2>/dev/null || echo unknown` 2767uname -r = `(uname -r) 2>/dev/null || echo unknown` 2768uname -s = `(uname -s) 2>/dev/null || echo unknown` 2769uname -v = `(uname -v) 2>/dev/null || echo unknown` 2770 2771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2772/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2773 2774/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2775/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2777/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2778/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2779/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2780/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2781 2782_ASUNAME 2783 2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785for as_dir in $PATH 2786do 2787 IFS=$as_save_IFS 2788 test -z "$as_dir" && as_dir=. 2789 $as_echo "PATH: $as_dir" 2790 done 2791IFS=$as_save_IFS 2792 2793} >&5 2794 2795cat >&5 <<_ACEOF 2796 2797 2798## ----------- ## 2799## Core tests. ## 2800## ----------- ## 2801 2802_ACEOF 2803 2804 2805# Keep a trace of the command line. 2806# Strip out --no-create and --no-recursion so they do not pile up. 2807# Strip out --silent because we don't want to record it for future runs. 2808# Also quote any args containing shell meta-characters. 2809# Make two passes to allow for proper duplicate-argument suppression. 2810ac_configure_args= 2811ac_configure_args0= 2812ac_configure_args1= 2813ac_must_keep_next=false 2814for ac_pass in 1 2 2815do 2816 for ac_arg 2817 do 2818 case $ac_arg in 2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2821 | -silent | --silent | --silen | --sile | --sil) 2822 continue ;; 2823 *\'*) 2824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2825 esac 2826 case $ac_pass in 2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2828 2) 2829 as_fn_append ac_configure_args1 " '$ac_arg'" 2830 if test $ac_must_keep_next = true; then 2831 ac_must_keep_next=false # Got value, back to normal. 2832 else 2833 case $ac_arg in 2834 *=* | --config-cache | -C | -disable-* | --disable-* \ 2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2837 | -with-* | --with-* | -without-* | --without-* | --x) 2838 case "$ac_configure_args0 " in 2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2840 esac 2841 ;; 2842 -* ) ac_must_keep_next=true ;; 2843 esac 2844 fi 2845 as_fn_append ac_configure_args " '$ac_arg'" 2846 ;; 2847 esac 2848 done 2849done 2850{ ac_configure_args0=; unset ac_configure_args0;} 2851{ ac_configure_args1=; unset ac_configure_args1;} 2852 2853# When interrupted or exit'd, cleanup temporary files, and complete 2854# config.log. We remove comments because anyway the quotes in there 2855# would cause problems or look ugly. 2856# WARNING: Use '\'' to represent an apostrophe within the trap. 2857# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2858trap 'exit_status=$? 2859 # Save into config.log some information that might help in debugging. 2860 { 2861 echo 2862 2863 $as_echo "## ---------------- ## 2864## Cache variables. ## 2865## ---------------- ##" 2866 echo 2867 # The following way of writing the cache mishandles newlines in values, 2868( 2869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2870 eval ac_val=\$$ac_var 2871 case $ac_val in #( 2872 *${as_nl}*) 2873 case $ac_var in #( 2874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2875$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2876 esac 2877 case $ac_var in #( 2878 _ | IFS | as_nl) ;; #( 2879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2880 *) { eval $ac_var=; unset $ac_var;} ;; 2881 esac ;; 2882 esac 2883 done 2884 (set) 2>&1 | 2885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2886 *${as_nl}ac_space=\ *) 2887 sed -n \ 2888 "s/'\''/'\''\\\\'\'''\''/g; 2889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2890 ;; #( 2891 *) 2892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2893 ;; 2894 esac | 2895 sort 2896) 2897 echo 2898 2899 $as_echo "## ----------------- ## 2900## Output variables. ## 2901## ----------------- ##" 2902 echo 2903 for ac_var in $ac_subst_vars 2904 do 2905 eval ac_val=\$$ac_var 2906 case $ac_val in 2907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2908 esac 2909 $as_echo "$ac_var='\''$ac_val'\''" 2910 done | sort 2911 echo 2912 2913 if test -n "$ac_subst_files"; then 2914 $as_echo "## ------------------- ## 2915## File substitutions. ## 2916## ------------------- ##" 2917 echo 2918 for ac_var in $ac_subst_files 2919 do 2920 eval ac_val=\$$ac_var 2921 case $ac_val in 2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2923 esac 2924 $as_echo "$ac_var='\''$ac_val'\''" 2925 done | sort 2926 echo 2927 fi 2928 2929 if test -s confdefs.h; then 2930 $as_echo "## ----------- ## 2931## confdefs.h. ## 2932## ----------- ##" 2933 echo 2934 cat confdefs.h 2935 echo 2936 fi 2937 test "$ac_signal" != 0 && 2938 $as_echo "$as_me: caught signal $ac_signal" 2939 $as_echo "$as_me: exit $exit_status" 2940 } >&5 2941 rm -f core *.core core.conftest.* && 2942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2943 exit $exit_status 2944' 0 2945for ac_signal in 1 2 13 15; do 2946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2947done 2948ac_signal=0 2949 2950# confdefs.h avoids OS command line length limits that DEFS can exceed. 2951rm -f -r conftest* confdefs.h 2952 2953$as_echo "/* confdefs.h */" > confdefs.h 2954 2955# Predefined preprocessor variables. 2956 2957cat >>confdefs.h <<_ACEOF 2958#define PACKAGE_NAME "$PACKAGE_NAME" 2959_ACEOF 2960 2961cat >>confdefs.h <<_ACEOF 2962#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2963_ACEOF 2964 2965cat >>confdefs.h <<_ACEOF 2966#define PACKAGE_VERSION "$PACKAGE_VERSION" 2967_ACEOF 2968 2969cat >>confdefs.h <<_ACEOF 2970#define PACKAGE_STRING "$PACKAGE_STRING" 2971_ACEOF 2972 2973cat >>confdefs.h <<_ACEOF 2974#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2975_ACEOF 2976 2977cat >>confdefs.h <<_ACEOF 2978#define PACKAGE_URL "$PACKAGE_URL" 2979_ACEOF 2980 2981 2982# Let the site file select an alternate cache file if it wants to. 2983# Prefer an explicitly selected file to automatically selected ones. 2984ac_site_file1=NONE 2985ac_site_file2=NONE 2986if test -n "$CONFIG_SITE"; then 2987 # We do not want a PATH search for config.site. 2988 case $CONFIG_SITE in #(( 2989 -*) ac_site_file1=./$CONFIG_SITE;; 2990 */*) ac_site_file1=$CONFIG_SITE;; 2991 *) ac_site_file1=./$CONFIG_SITE;; 2992 esac 2993elif test "x$prefix" != xNONE; then 2994 ac_site_file1=$prefix/share/config.site 2995 ac_site_file2=$prefix/etc/config.site 2996else 2997 ac_site_file1=$ac_default_prefix/share/config.site 2998 ac_site_file2=$ac_default_prefix/etc/config.site 2999fi 3000for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3001do 3002 test "x$ac_site_file" = xNONE && continue 3003 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3005$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3006 sed 's/^/| /' "$ac_site_file" >&5 3007 . "$ac_site_file" \ 3008 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3010as_fn_error $? "failed to load site script $ac_site_file 3011See \`config.log' for more details" "$LINENO" 5; } 3012 fi 3013done 3014 3015if test -r "$cache_file"; then 3016 # Some versions of bash will fail to source /dev/null (special files 3017 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3018 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3020$as_echo "$as_me: loading cache $cache_file" >&6;} 3021 case $cache_file in 3022 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3023 *) . "./$cache_file";; 3024 esac 3025 fi 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3028$as_echo "$as_me: creating cache $cache_file" >&6;} 3029 >$cache_file 3030fi 3031 3032as_fn_append ac_header_list " stdarg.h" 3033# Check that the precious variables saved in the cache have kept the same 3034# value. 3035ac_cache_corrupted=false 3036for ac_var in $ac_precious_vars; do 3037 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3038 eval ac_new_set=\$ac_env_${ac_var}_set 3039 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3040 eval ac_new_val=\$ac_env_${ac_var}_value 3041 case $ac_old_set,$ac_new_set in 3042 set,) 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3044$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3045 ac_cache_corrupted=: ;; 3046 ,set) 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3048$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3049 ac_cache_corrupted=: ;; 3050 ,);; 3051 *) 3052 if test "x$ac_old_val" != "x$ac_new_val"; then 3053 # differences in whitespace do not lead to failure. 3054 ac_old_val_w=`echo x $ac_old_val` 3055 ac_new_val_w=`echo x $ac_new_val` 3056 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3058$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3059 ac_cache_corrupted=: 3060 else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3062$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3063 eval $ac_var=\$ac_old_val 3064 fi 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3066$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3068$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3069 fi;; 3070 esac 3071 # Pass precious variables to config.status. 3072 if test "$ac_new_set" = set; then 3073 case $ac_new_val in 3074 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3075 *) ac_arg=$ac_var=$ac_new_val ;; 3076 esac 3077 case " $ac_configure_args " in 3078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3079 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3080 esac 3081 fi 3082done 3083if $ac_cache_corrupted; then 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3087$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3088 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3089fi 3090## -------------------- ## 3091## Main body of script. ## 3092## -------------------- ## 3093 3094ac_ext=c 3095ac_cpp='$CPP $CPPFLAGS' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu 3099 3100 3101 3102ac_aux_dir= 3103for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do 3104 if test -f "$ac_dir/install-sh"; then 3105 ac_aux_dir=$ac_dir 3106 ac_install_sh="$ac_aux_dir/install-sh -c" 3107 break 3108 elif test -f "$ac_dir/install.sh"; then 3109 ac_aux_dir=$ac_dir 3110 ac_install_sh="$ac_aux_dir/install.sh -c" 3111 break 3112 elif test -f "$ac_dir/shtool"; then 3113 ac_aux_dir=$ac_dir 3114 ac_install_sh="$ac_aux_dir/shtool install -c" 3115 break 3116 fi 3117done 3118if test -z "$ac_aux_dir"; then 3119 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5 3120fi 3121 3122# These three variables are undocumented and unsupported, 3123# and are intended to be withdrawn in a future Autoconf release. 3124# They can cause serious problems if a builder's source tree is in a directory 3125# whose full name contains unusual characters. 3126ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3127ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3128ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3129 3130 3131ac_ext=c 3132ac_cpp='$CPP $CPPFLAGS' 3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3135ac_compiler_gnu=$ac_cv_c_compiler_gnu 3136 3137 3138 3139 3140 3141 3142# Bump ntp_configure_cache_version for each change to configure.ac or 3143# .m4 files which invalidates cached values from previous configure 3144# runs. 3145# 3146# If the change affects cache variables used only by the main NTP 3147# configure.ac, then only its version number should be bumped, while 3148# the subdir configure.ac version numbers should be unchanged. The 3149# same is true for a test/variable that is used only by one subdir 3150# being changed incompatibly; only that subdir's cache version needs 3151# bumping. 3152# 3153# If a change affects variables shared by all NTP configure scripts, 3154# please bump the version numbers of each. If you are not sure, the 3155# safe choice is to bump all on any cache-invalidating change. 3156# 3157# In order to avoid the risk of version stamp collision between -stable 3158# and -dev branches, do not simply increment the version, instead use 3159# the date YYYYMMDD optionally with -HHMM if there is more than one 3160# bump in a day. 3161 3162ntp_configure_cache_version=20120806 3163 3164# When the cache version of config.cache and configure do not 3165# match, NTP_CACHEVERSION will flush the cache. 3166 3167 3168 3169 ntp_cache_flush=1 3170 3171 case "$ntp_cv_main_cache_version" in 3172 $ntp_configure_cache_version) 3173 # same version, good 3174 ntp_cache_flush=0 3175 ;; 3176 '') 3177 # No cache, predates ntp_cv_main_cache_version, or is empty. 3178 case "$cache_file" in 3179 /dev/null) 3180 ntp_cache_flush=0 3181 ;; 3182 *) 3183 case "$NTP_CACHEVERSION_PARENT" in 3184 '') 3185 # Do not clear the cache immediately after it is created 3186 # empty as it is noisy. Differentiate a newly-created 3187 # config.cache from one predating the cache version 3188 # mechanism by looking for the first cached variable set 3189 # by Autoconf 3190 case "$ac_cv_path_install" in 3191 '') 3192 # empty config.cache file 3193 ntp_cache_flush=0 3194 esac 3195 ;; 3196 *) 3197 # Parent configure just created cache from empty, 3198 # flushing would be counterproductive. 3199 ntp_cache_flush=0; 3200 ;; 3201 esac 3202 esac 3203 ;; 3204 *) 3205 # configure cache version mismatches config.cache version 3206 ;; 3207 esac 3208 3209 case "$ntp_cache_flush" in 3210 1) 3211 c_version="${ntp_cv_main_cache_version:-(no version found)}" 3212 3213 # Do we flush all variables or exclude others' version stamps? 3214 3215 case "$NTP_CACHEVERSION_PARENT" in 3216 '') 3217 # Clear all *_cv_* variables including our child subdirs' 3218 # ntp_cv_*_cache_version variables. This prevents subdir 3219 # configure scripts from noticing a version mismatch just 3220 # after the top configure in the invocation cleared and 3221 # recreated the cache. 3222 3223 c_varname_list=`set | 3224 sed -n -e 's/=.*$//' \ 3225 -e '/_cv_/p' 3226 ` 3227 ;; 3228 *) 3229 # This is not the top configure this particular invocation. 3230 # Clear all *_cv_* variables sparing the version stamps 3231 # of other configure scripts, so we don't trigger 3232 # useless repeated clearings. 3233 3234 c_varname_list=`set | 3235 sed -n -e 's/=.*$//' \ 3236 -e '/ntp_cv_.*_cache_version/d' \ 3237 -e '/_cv_/p' 3238 ` 3239 esac 3240 3241 for c_varname in $c_varname_list 3242 do 3243 { eval $c_varname=; unset $c_varname; } 3244 done 3245 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3247$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 3249$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3251$as_echo "$as_me: $cache_file version: $c_version" >&6;} 3252 { c_varname=; unset c_varname;} 3253 { c_varname_list=; unset c_varname_list;} 3254 { c_version=; unset c_version;} 3255 esac 3256 3257 { ntp_cache_flush=; unset ntp_cache_flush;} 3258 3259 # save configure version in config.cache for next time 3260 ntp_cv_main_cache_version="$ntp_configure_cache_version" 3261 3262 # let any subdir configure.ac NTP_CACHEVERSION invocations 3263 # know they are not the top level. 3264 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 3265 3266 3267am__api_version='1.15' 3268 3269# Find a good install program. We prefer a C program (faster), 3270# so one script is as good as another. But avoid the broken or 3271# incompatible versions: 3272# SysV /etc/install, /usr/sbin/install 3273# SunOS /usr/etc/install 3274# IRIX /sbin/install 3275# AIX /bin/install 3276# AmigaOS /C/install, which installs bootblocks on floppy discs 3277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3278# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3280# OS/2's system install, which has a completely different semantic 3281# ./install, which can be erroneously created by make from ./install.sh. 3282# Reject install programs that cannot install multiple files. 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3284$as_echo_n "checking for a BSD-compatible install... " >&6; } 3285if test -z "$INSTALL"; then 3286if ${ac_cv_path_install+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 # Account for people who put trailing slashes in PATH elements. 3295case $as_dir/ in #(( 3296 ./ | .// | /[cC]/* | \ 3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3299 /usr/ucb/* ) ;; 3300 *) 3301 # OSF1 and SCO ODT 3.0 have their own names for install. 3302 # Don't use installbsd from OSF since it installs stuff as root 3303 # by default. 3304 for ac_prog in ginstall scoinst install; do 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3307 if test $ac_prog = install && 3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3309 # AIX install. It has an incompatible calling convention. 3310 : 3311 elif test $ac_prog = install && 3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3313 # program-specific install script used by HP pwplus--don't use. 3314 : 3315 else 3316 rm -rf conftest.one conftest.two conftest.dir 3317 echo one > conftest.one 3318 echo two > conftest.two 3319 mkdir conftest.dir 3320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3321 test -s conftest.one && test -s conftest.two && 3322 test -s conftest.dir/conftest.one && 3323 test -s conftest.dir/conftest.two 3324 then 3325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3326 break 3 3327 fi 3328 fi 3329 fi 3330 done 3331 done 3332 ;; 3333esac 3334 3335 done 3336IFS=$as_save_IFS 3337 3338rm -rf conftest.one conftest.two conftest.dir 3339 3340fi 3341 if test "${ac_cv_path_install+set}" = set; then 3342 INSTALL=$ac_cv_path_install 3343 else 3344 # As a last resort, use the slow shell script. Don't cache a 3345 # value for INSTALL within a source directory, because that will 3346 # break other packages using the cache if that directory is 3347 # removed, or if the value is a relative name. 3348 INSTALL=$ac_install_sh 3349 fi 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3352$as_echo "$INSTALL" >&6; } 3353 3354# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3355# It thinks the first close brace ends the variable substitution. 3356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3357 3358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3359 3360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3361 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3363$as_echo_n "checking whether build environment is sane... " >&6; } 3364# Reject unsafe characters in $srcdir or the absolute working directory 3365# name. Accept space and tab only in the latter. 3366am_lf=' 3367' 3368case `pwd` in 3369 *[\\\"\#\$\&\'\`$am_lf]*) 3370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3371esac 3372case $srcdir in 3373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3375esac 3376 3377# Do 'set' in a subshell so we don't clobber the current shell's 3378# arguments. Must try -L first in case configure is actually a 3379# symlink; some systems play weird games with the mod time of symlinks 3380# (eg FreeBSD returns the mod time of the symlink's containing 3381# directory). 3382if ( 3383 am_has_slept=no 3384 for am_try in 1 2; do 3385 echo "timestamp, slept: $am_has_slept" > conftest.file 3386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3387 if test "$*" = "X"; then 3388 # -L didn't work. 3389 set X `ls -t "$srcdir/configure" conftest.file` 3390 fi 3391 if test "$*" != "X $srcdir/configure conftest.file" \ 3392 && test "$*" != "X conftest.file $srcdir/configure"; then 3393 3394 # If neither matched, then we have a broken ls. This can happen 3395 # if, for instance, CONFIG_SHELL is bash and it inherits a 3396 # broken ls alias from the environment. This has actually 3397 # happened. Such a system could not be considered "sane". 3398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3399 alias in your environment" "$LINENO" 5 3400 fi 3401 if test "$2" = conftest.file || test $am_try -eq 2; then 3402 break 3403 fi 3404 # Just in case. 3405 sleep 1 3406 am_has_slept=yes 3407 done 3408 test "$2" = conftest.file 3409 ) 3410then 3411 # Ok. 3412 : 3413else 3414 as_fn_error $? "newly created file is older than distributed files! 3415Check your system clock" "$LINENO" 5 3416fi 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3418$as_echo "yes" >&6; } 3419# If we didn't sleep, we still need to ensure time stamps of config.status and 3420# generated files are strictly newer. 3421am_sleep_pid= 3422if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3423 ( sleep 1 ) & 3424 am_sleep_pid=$! 3425fi 3426 3427rm -f conftest.file 3428 3429test "$program_prefix" != NONE && 3430 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3431# Use a double $ so make ignores it. 3432test "$program_suffix" != NONE && 3433 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3434# Double any \ or $. 3435# By default was `s,x,x', remove it if useless. 3436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3438 3439# Expand $ac_aux_dir to an absolute path. 3440am_aux_dir=`cd "$ac_aux_dir" && pwd` 3441 3442if test x"${MISSING+set}" != xset; then 3443 case $am_aux_dir in 3444 *\ * | *\ *) 3445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3446 *) 3447 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3448 esac 3449fi 3450# Use eval to expand $SHELL 3451if eval "$MISSING --is-lightweight"; then 3452 am_missing_run="$MISSING " 3453else 3454 am_missing_run= 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3456$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3457fi 3458 3459if test x"${install_sh+set}" != xset; then 3460 case $am_aux_dir in 3461 *\ * | *\ *) 3462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3463 *) 3464 install_sh="\${SHELL} $am_aux_dir/install-sh" 3465 esac 3466fi 3467 3468# Installed binaries are usually stripped using 'strip' when the user 3469# run "make install-strip". However 'strip' might not be the right 3470# tool to use in cross-compilation environments, therefore Automake 3471# will honor the 'STRIP' environment variable to overrule this program. 3472if test "$cross_compiling" != no; then 3473 if test -n "$ac_tool_prefix"; then 3474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3475set dummy ${ac_tool_prefix}strip; ac_word=$2 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3477$as_echo_n "checking for $ac_word... " >&6; } 3478if ${ac_cv_prog_STRIP+:} false; then : 3479 $as_echo_n "(cached) " >&6 3480else 3481 if test -n "$STRIP"; then 3482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3483else 3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3485for as_dir in $PATH 3486do 3487 IFS=$as_save_IFS 3488 test -z "$as_dir" && as_dir=. 3489 for ac_exec_ext in '' $ac_executable_extensions; do 3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3491 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3493 break 2 3494 fi 3495done 3496 done 3497IFS=$as_save_IFS 3498 3499fi 3500fi 3501STRIP=$ac_cv_prog_STRIP 3502if test -n "$STRIP"; then 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3504$as_echo "$STRIP" >&6; } 3505else 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3507$as_echo "no" >&6; } 3508fi 3509 3510 3511fi 3512if test -z "$ac_cv_prog_STRIP"; then 3513 ac_ct_STRIP=$STRIP 3514 # Extract the first word of "strip", so it can be a program name with args. 3515set dummy strip; ac_word=$2 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3517$as_echo_n "checking for $ac_word... " >&6; } 3518if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3519 $as_echo_n "(cached) " >&6 3520else 3521 if test -n "$ac_ct_STRIP"; then 3522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3523else 3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3525for as_dir in $PATH 3526do 3527 IFS=$as_save_IFS 3528 test -z "$as_dir" && as_dir=. 3529 for ac_exec_ext in '' $ac_executable_extensions; do 3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3531 ac_cv_prog_ac_ct_STRIP="strip" 3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3533 break 2 3534 fi 3535done 3536 done 3537IFS=$as_save_IFS 3538 3539fi 3540fi 3541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3542if test -n "$ac_ct_STRIP"; then 3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3544$as_echo "$ac_ct_STRIP" >&6; } 3545else 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3547$as_echo "no" >&6; } 3548fi 3549 3550 if test "x$ac_ct_STRIP" = x; then 3551 STRIP=":" 3552 else 3553 case $cross_compiling:$ac_tool_warned in 3554yes:) 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3557ac_tool_warned=yes ;; 3558esac 3559 STRIP=$ac_ct_STRIP 3560 fi 3561else 3562 STRIP="$ac_cv_prog_STRIP" 3563fi 3564 3565fi 3566INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3569$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3570if test -z "$MKDIR_P"; then 3571 if ${ac_cv_path_mkdir+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3575for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3576do 3577 IFS=$as_save_IFS 3578 test -z "$as_dir" && as_dir=. 3579 for ac_prog in mkdir gmkdir; do 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3583 'mkdir (GNU coreutils) '* | \ 3584 'mkdir (coreutils) '* | \ 3585 'mkdir (fileutils) '4.1*) 3586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3587 break 3;; 3588 esac 3589 done 3590 done 3591 done 3592IFS=$as_save_IFS 3593 3594fi 3595 3596 test -d ./--version && rmdir ./--version 3597 if test "${ac_cv_path_mkdir+set}" = set; then 3598 MKDIR_P="$ac_cv_path_mkdir -p" 3599 else 3600 # As a last resort, use the slow shell script. Don't cache a 3601 # value for MKDIR_P within a source directory, because that will 3602 # break other packages using the cache if that directory is 3603 # removed, or if the value is a relative name. 3604 MKDIR_P="$ac_install_sh -d" 3605 fi 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3608$as_echo "$MKDIR_P" >&6; } 3609 3610for ac_prog in gawk mawk nawk awk 3611do 3612 # Extract the first word of "$ac_prog", so it can be a program name with args. 3613set dummy $ac_prog; ac_word=$2 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615$as_echo_n "checking for $ac_word... " >&6; } 3616if ${ac_cv_prog_AWK+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 if test -n "$AWK"; then 3620 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3621else 3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3629 ac_cv_prog_AWK="$ac_prog" 3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633done 3634 done 3635IFS=$as_save_IFS 3636 3637fi 3638fi 3639AWK=$ac_cv_prog_AWK 3640if test -n "$AWK"; then 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3642$as_echo "$AWK" >&6; } 3643else 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645$as_echo "no" >&6; } 3646fi 3647 3648 3649 test -n "$AWK" && break 3650done 3651 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3654set x ${MAKE-make} 3655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3656if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 cat >conftest.make <<\_ACEOF 3660SHELL = /bin/sh 3661all: 3662 @echo '@@@%%%=$(MAKE)=@@@%%%' 3663_ACEOF 3664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3665case `${MAKE-make} -f conftest.make 2>/dev/null` in 3666 *@@@%%%=?*=@@@%%%*) 3667 eval ac_cv_prog_make_${ac_make}_set=yes;; 3668 *) 3669 eval ac_cv_prog_make_${ac_make}_set=no;; 3670esac 3671rm -f conftest.make 3672fi 3673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675$as_echo "yes" >&6; } 3676 SET_MAKE= 3677else 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3679$as_echo "no" >&6; } 3680 SET_MAKE="MAKE=${MAKE-make}" 3681fi 3682 3683rm -rf .tst 2>/dev/null 3684mkdir .tst 2>/dev/null 3685if test -d .tst; then 3686 am__leading_dot=. 3687else 3688 am__leading_dot=_ 3689fi 3690rmdir .tst 2>/dev/null 3691 3692# Check whether --enable-silent-rules was given. 3693if test "${enable_silent_rules+set}" = set; then : 3694 enableval=$enable_silent_rules; 3695fi 3696 3697case $enable_silent_rules in # ((( 3698 yes) AM_DEFAULT_VERBOSITY=0;; 3699 no) AM_DEFAULT_VERBOSITY=1;; 3700 *) AM_DEFAULT_VERBOSITY=1;; 3701esac 3702am_make=${MAKE-make} 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3704$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3705if ${am_cv_make_support_nested_variables+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 if $as_echo 'TRUE=$(BAR$(V)) 3709BAR0=false 3710BAR1=true 3711V=1 3712am__doit: 3713 @$(TRUE) 3714.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3715 am_cv_make_support_nested_variables=yes 3716else 3717 am_cv_make_support_nested_variables=no 3718fi 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3721$as_echo "$am_cv_make_support_nested_variables" >&6; } 3722if test $am_cv_make_support_nested_variables = yes; then 3723 AM_V='$(V)' 3724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3725else 3726 AM_V=$AM_DEFAULT_VERBOSITY 3727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3728fi 3729AM_BACKSLASH='\' 3730 3731if test "`cd $srcdir && pwd`" != "`pwd`"; then 3732 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3733 # is not polluted with repeated "-I." 3734 am__isrc=' -I$(srcdir)' 3735 # test to see if srcdir already configured 3736 if test -f $srcdir/config.status; then 3737 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3738 fi 3739fi 3740 3741# test whether we have cygpath 3742if test -z "$CYGPATH_W"; then 3743 if (cygpath --version) >/dev/null 2>/dev/null; then 3744 CYGPATH_W='cygpath -w' 3745 else 3746 CYGPATH_W=echo 3747 fi 3748fi 3749 3750 3751# Define the identity of the package. 3752 PACKAGE='ntp' 3753 VERSION='4.2.8p4' 3754 3755 3756cat >>confdefs.h <<_ACEOF 3757#define PACKAGE "$PACKAGE" 3758_ACEOF 3759 3760 3761cat >>confdefs.h <<_ACEOF 3762#define VERSION "$VERSION" 3763_ACEOF 3764 3765# Some tools Automake needs. 3766 3767ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3768 3769 3770AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3771 3772 3773AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3774 3775 3776AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3777 3778 3779MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3780 3781# For better backward compatibility. To be removed once Automake 1.9.x 3782# dies out for good. For more background, see: 3783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3785mkdir_p='$(MKDIR_P)' 3786 3787# We need awk for the "check" target (and possibly the TAP driver). The 3788# system "awk" is bad on some platforms. 3789# Always define AMTAR for backward compatibility. Yes, it's still used 3790# in the wild :-( We should find a proper way to deprecate it ... 3791AMTAR='$${TAR-tar}' 3792 3793 3794# We'll loop over all known methods to create a tar archive until one works. 3795_am_tools='gnutar pax cpio none' 3796 3797am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3798 3799 3800 3801 3802 3803 3804# POSIX will say in a future version that running "rm -f" with no argument 3805# is OK; and we want to be able to make that assumption in our Makefile 3806# recipes. So use an aggressive probe to check that the usage we want is 3807# actually supported "in the wild" to an acceptable degree. 3808# See automake bug#10828. 3809# To make any issue more visible, cause the running configure to be aborted 3810# by default if the 'rm' program in use doesn't match our expectations; the 3811# user can still override this though. 3812if rm -f && rm -fr && rm -rf; then : OK; else 3813 cat >&2 <<'END' 3814Oops! 3815 3816Your 'rm' program seems unable to run without file operands specified 3817on the command line, even when the '-f' option is present. This is contrary 3818to the behaviour of most rm programs out there, and not conforming with 3819the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3820 3821Please tell bug-automake@gnu.org about your system, including the value 3822of your $PATH and any error possibly output before this message. This 3823can help us improve future automake versions. 3824 3825END 3826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3827 echo 'Configuration will proceed anyway, since you have set the' >&2 3828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3829 echo >&2 3830 else 3831 cat >&2 <<'END' 3832Aborting the configuration process, to ensure you take notice of the issue. 3833 3834You can download and install GNU coreutils to get an 'rm' implementation 3835that behaves properly: <http://www.gnu.org/software/coreutils/>. 3836 3837If you want to complete the configuration process using your problematic 3838'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3839to "yes", and re-run configure. 3840 3841END 3842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3843 fi 3844fi 3845 3846 3847# Check whether --enable-silent-rules was given. 3848if test "${enable_silent_rules+set}" = set; then : 3849 enableval=$enable_silent_rules; 3850fi 3851 3852case $enable_silent_rules in # ((( 3853 yes) AM_DEFAULT_VERBOSITY=0;; 3854 no) AM_DEFAULT_VERBOSITY=1;; 3855 *) AM_DEFAULT_VERBOSITY=0;; 3856esac 3857am_make=${MAKE-make} 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3859$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3860if ${am_cv_make_support_nested_variables+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 if $as_echo 'TRUE=$(BAR$(V)) 3864BAR0=false 3865BAR1=true 3866V=1 3867am__doit: 3868 @$(TRUE) 3869.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3870 am_cv_make_support_nested_variables=yes 3871else 3872 am_cv_make_support_nested_variables=no 3873fi 3874fi 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3876$as_echo "$am_cv_make_support_nested_variables" >&6; } 3877if test $am_cv_make_support_nested_variables = yes; then 3878 AM_V='$(V)' 3879 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3880else 3881 AM_V=$AM_DEFAULT_VERBOSITY 3882 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3883fi 3884AM_BACKSLASH='\' 3885 3886 3887# Make sure we can run config.sub. 3888$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3889 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3890 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3892$as_echo_n "checking build system type... " >&6; } 3893if ${ac_cv_build+:} false; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 ac_build_alias=$build_alias 3897test "x$ac_build_alias" = x && 3898 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3899test "x$ac_build_alias" = x && 3900 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3901ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3903 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3906$as_echo "$ac_cv_build" >&6; } 3907case $ac_cv_build in 3908*-*-*) ;; 3909*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3910esac 3911build=$ac_cv_build 3912ac_save_IFS=$IFS; IFS='-' 3913set x $ac_cv_build 3914shift 3915build_cpu=$1 3916build_vendor=$2 3917shift; shift 3918# Remember, the first character of IFS is used to create $*, 3919# except with old shells: 3920build_os=$* 3921IFS=$ac_save_IFS 3922case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3923 3924 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3926$as_echo_n "checking host system type... " >&6; } 3927if ${ac_cv_host+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 if test "x$host_alias" = x; then 3931 ac_cv_host=$ac_cv_build 3932else 3933 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3935fi 3936 3937fi 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3939$as_echo "$ac_cv_host" >&6; } 3940case $ac_cv_host in 3941*-*-*) ;; 3942*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3943esac 3944host=$ac_cv_host 3945ac_save_IFS=$IFS; IFS='-' 3946set x $ac_cv_host 3947shift 3948host_cpu=$1 3949host_vendor=$2 3950shift; shift 3951# Remember, the first character of IFS is used to create $*, 3952# except with old shells: 3953host_os=$* 3954IFS=$ac_save_IFS 3955case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3956 3957 3958 3959cat >>confdefs.h <<_ACEOF 3960#define STR_SYSTEM "$host" 3961_ACEOF 3962 3963ac_config_headers="$ac_config_headers config.h" 3964 3965 3966ntp_atom_ok=${ntp_atom_ok=no} 3967ntp_oncore_ok=${ntp_oncore_ok=no} 3968ntp_parse_ok=${ntp_parse_ok=no} 3969ntp_ripe_ncc_ok=${ntp_parse_ok=no} 3970ntp_jupiter_ok=${ntp_jupiter_ok=no} 3971 3972DEPDIR="${am__leading_dot}deps" 3973 3974ac_config_commands="$ac_config_commands depfiles" 3975 3976 3977am_make=${MAKE-make} 3978cat > confinc << 'END' 3979am__doit: 3980 @echo this is the am__doit target 3981.PHONY: am__doit 3982END 3983# If we don't find an include directive, just comment out the code. 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3985$as_echo_n "checking for style of include used by $am_make... " >&6; } 3986am__include="#" 3987am__quote= 3988_am_result=none 3989# First try GNU make style include. 3990echo "include confinc" > confmf 3991# Ignore all kinds of additional output from 'make'. 3992case `$am_make -s -f confmf 2> /dev/null` in #( 3993*the\ am__doit\ target*) 3994 am__include=include 3995 am__quote= 3996 _am_result=GNU 3997 ;; 3998esac 3999# Now try BSD make style include. 4000if test "$am__include" = "#"; then 4001 echo '.include "confinc"' > confmf 4002 case `$am_make -s -f confmf 2> /dev/null` in #( 4003 *the\ am__doit\ target*) 4004 am__include=.include 4005 am__quote="\"" 4006 _am_result=BSD 4007 ;; 4008 esac 4009fi 4010 4011 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4013$as_echo "$_am_result" >&6; } 4014rm -f confinc confmf 4015 4016# Check whether --enable-dependency-tracking was given. 4017if test "${enable_dependency_tracking+set}" = set; then : 4018 enableval=$enable_dependency_tracking; 4019fi 4020 4021if test "x$enable_dependency_tracking" != xno; then 4022 am_depcomp="$ac_aux_dir/depcomp" 4023 AMDEPBACKSLASH='\' 4024 am__nodep='_no' 4025fi 4026 if test "x$enable_dependency_tracking" != xno; then 4027 AMDEP_TRUE= 4028 AMDEP_FALSE='#' 4029else 4030 AMDEP_TRUE='#' 4031 AMDEP_FALSE= 4032fi 4033 4034 4035ac_ext=c 4036ac_cpp='$CPP $CPPFLAGS' 4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4039ac_compiler_gnu=$ac_cv_c_compiler_gnu 4040if test -n "$ac_tool_prefix"; then 4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4042set dummy ${ac_tool_prefix}gcc; ac_word=$2 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4044$as_echo_n "checking for $ac_word... " >&6; } 4045if ${ac_cv_prog_CC+:} false; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 if test -n "$CC"; then 4049 ac_cv_prog_CC="$CC" # Let the user override the test. 4050else 4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH 4053do 4054 IFS=$as_save_IFS 4055 test -z "$as_dir" && as_dir=. 4056 for ac_exec_ext in '' $ac_executable_extensions; do 4057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4058 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4060 break 2 4061 fi 4062done 4063 done 4064IFS=$as_save_IFS 4065 4066fi 4067fi 4068CC=$ac_cv_prog_CC 4069if test -n "$CC"; then 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4071$as_echo "$CC" >&6; } 4072else 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4074$as_echo "no" >&6; } 4075fi 4076 4077 4078fi 4079if test -z "$ac_cv_prog_CC"; then 4080 ac_ct_CC=$CC 4081 # Extract the first word of "gcc", so it can be a program name with args. 4082set dummy gcc; ac_word=$2 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4084$as_echo_n "checking for $ac_word... " >&6; } 4085if ${ac_cv_prog_ac_ct_CC+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 if test -n "$ac_ct_CC"; then 4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4090else 4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4092for as_dir in $PATH 4093do 4094 IFS=$as_save_IFS 4095 test -z "$as_dir" && as_dir=. 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4098 ac_cv_prog_ac_ct_CC="gcc" 4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4100 break 2 4101 fi 4102done 4103 done 4104IFS=$as_save_IFS 4105 4106fi 4107fi 4108ac_ct_CC=$ac_cv_prog_ac_ct_CC 4109if test -n "$ac_ct_CC"; then 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4111$as_echo "$ac_ct_CC" >&6; } 4112else 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4114$as_echo "no" >&6; } 4115fi 4116 4117 if test "x$ac_ct_CC" = x; then 4118 CC="" 4119 else 4120 case $cross_compiling:$ac_tool_warned in 4121yes:) 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4124ac_tool_warned=yes ;; 4125esac 4126 CC=$ac_ct_CC 4127 fi 4128else 4129 CC="$ac_cv_prog_CC" 4130fi 4131 4132if test -z "$CC"; then 4133 if test -n "$ac_tool_prefix"; then 4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4135set dummy ${ac_tool_prefix}cc; ac_word=$2 4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4137$as_echo_n "checking for $ac_word... " >&6; } 4138if ${ac_cv_prog_CC+:} false; then : 4139 $as_echo_n "(cached) " >&6 4140else 4141 if test -n "$CC"; then 4142 ac_cv_prog_CC="$CC" # Let the user override the test. 4143else 4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4145for as_dir in $PATH 4146do 4147 IFS=$as_save_IFS 4148 test -z "$as_dir" && as_dir=. 4149 for ac_exec_ext in '' $ac_executable_extensions; do 4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4151 ac_cv_prog_CC="${ac_tool_prefix}cc" 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4153 break 2 4154 fi 4155done 4156 done 4157IFS=$as_save_IFS 4158 4159fi 4160fi 4161CC=$ac_cv_prog_CC 4162if test -n "$CC"; then 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4164$as_echo "$CC" >&6; } 4165else 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4167$as_echo "no" >&6; } 4168fi 4169 4170 4171 fi 4172fi 4173if test -z "$CC"; then 4174 # Extract the first word of "cc", so it can be a program name with args. 4175set dummy cc; ac_word=$2 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4177$as_echo_n "checking for $ac_word... " >&6; } 4178if ${ac_cv_prog_CC+:} false; then : 4179 $as_echo_n "(cached) " >&6 4180else 4181 if test -n "$CC"; then 4182 ac_cv_prog_CC="$CC" # Let the user override the test. 4183else 4184 ac_prog_rejected=no 4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4186for as_dir in $PATH 4187do 4188 IFS=$as_save_IFS 4189 test -z "$as_dir" && as_dir=. 4190 for ac_exec_ext in '' $ac_executable_extensions; do 4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4193 ac_prog_rejected=yes 4194 continue 4195 fi 4196 ac_cv_prog_CC="cc" 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4198 break 2 4199 fi 4200done 4201 done 4202IFS=$as_save_IFS 4203 4204if test $ac_prog_rejected = yes; then 4205 # We found a bogon in the path, so make sure we never use it. 4206 set dummy $ac_cv_prog_CC 4207 shift 4208 if test $# != 0; then 4209 # We chose a different compiler from the bogus one. 4210 # However, it has the same basename, so the bogon will be chosen 4211 # first if we set CC to just the basename; use the full file name. 4212 shift 4213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4214 fi 4215fi 4216fi 4217fi 4218CC=$ac_cv_prog_CC 4219if test -n "$CC"; then 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4221$as_echo "$CC" >&6; } 4222else 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4224$as_echo "no" >&6; } 4225fi 4226 4227 4228fi 4229if test -z "$CC"; then 4230 if test -n "$ac_tool_prefix"; then 4231 for ac_prog in cl.exe 4232 do 4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4234set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4236$as_echo_n "checking for $ac_word... " >&6; } 4237if ${ac_cv_prog_CC+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 if test -n "$CC"; then 4241 ac_cv_prog_CC="$CC" # Let the user override the test. 4242else 4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_exec_ext in '' $ac_executable_extensions; do 4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4252 break 2 4253 fi 4254done 4255 done 4256IFS=$as_save_IFS 4257 4258fi 4259fi 4260CC=$ac_cv_prog_CC 4261if test -n "$CC"; then 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4263$as_echo "$CC" >&6; } 4264else 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4266$as_echo "no" >&6; } 4267fi 4268 4269 4270 test -n "$CC" && break 4271 done 4272fi 4273if test -z "$CC"; then 4274 ac_ct_CC=$CC 4275 for ac_prog in cl.exe 4276do 4277 # Extract the first word of "$ac_prog", so it can be a program name with args. 4278set dummy $ac_prog; ac_word=$2 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4280$as_echo_n "checking for $ac_word... " >&6; } 4281if ${ac_cv_prog_ac_ct_CC+:} false; then : 4282 $as_echo_n "(cached) " >&6 4283else 4284 if test -n "$ac_ct_CC"; then 4285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4286else 4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4288for as_dir in $PATH 4289do 4290 IFS=$as_save_IFS 4291 test -z "$as_dir" && as_dir=. 4292 for ac_exec_ext in '' $ac_executable_extensions; do 4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4294 ac_cv_prog_ac_ct_CC="$ac_prog" 4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4296 break 2 4297 fi 4298done 4299 done 4300IFS=$as_save_IFS 4301 4302fi 4303fi 4304ac_ct_CC=$ac_cv_prog_ac_ct_CC 4305if test -n "$ac_ct_CC"; then 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4307$as_echo "$ac_ct_CC" >&6; } 4308else 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4310$as_echo "no" >&6; } 4311fi 4312 4313 4314 test -n "$ac_ct_CC" && break 4315done 4316 4317 if test "x$ac_ct_CC" = x; then 4318 CC="" 4319 else 4320 case $cross_compiling:$ac_tool_warned in 4321yes:) 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4324ac_tool_warned=yes ;; 4325esac 4326 CC=$ac_ct_CC 4327 fi 4328fi 4329 4330fi 4331 4332 4333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4335as_fn_error $? "no acceptable C compiler found in \$PATH 4336See \`config.log' for more details" "$LINENO" 5; } 4337 4338# Provide some information about the compiler. 4339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4340set X $ac_compile 4341ac_compiler=$2 4342for ac_option in --version -v -V -qversion; do 4343 { { ac_try="$ac_compiler $ac_option >&5" 4344case "(($ac_try" in 4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4346 *) ac_try_echo=$ac_try;; 4347esac 4348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4349$as_echo "$ac_try_echo"; } >&5 4350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4351 ac_status=$? 4352 if test -s conftest.err; then 4353 sed '10a\ 4354... rest of stderr output deleted ... 4355 10q' conftest.err >conftest.er1 4356 cat conftest.er1 >&5 4357 fi 4358 rm -f conftest.er1 conftest.err 4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4360 test $ac_status = 0; } 4361done 4362 4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365 4366int 4367main () 4368{ 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374ac_clean_files_save=$ac_clean_files 4375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4376# Try to create an executable without -o first, disregard a.out. 4377# It will help us diagnose broken compilers, and finding out an intuition 4378# of exeext. 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4380$as_echo_n "checking whether the C compiler works... " >&6; } 4381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4382 4383# The possible output files: 4384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4385 4386ac_rmfiles= 4387for ac_file in $ac_files 4388do 4389 case $ac_file in 4390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4391 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4392 esac 4393done 4394rm -f $ac_rmfiles 4395 4396if { { ac_try="$ac_link_default" 4397case "(($ac_try" in 4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4399 *) ac_try_echo=$ac_try;; 4400esac 4401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4402$as_echo "$ac_try_echo"; } >&5 4403 (eval "$ac_link_default") 2>&5 4404 ac_status=$? 4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4406 test $ac_status = 0; }; then : 4407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4409# in a Makefile. We should not override ac_cv_exeext if it was cached, 4410# so that the user can short-circuit this test for compilers unknown to 4411# Autoconf. 4412for ac_file in $ac_files '' 4413do 4414 test -f "$ac_file" || continue 4415 case $ac_file in 4416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4417 ;; 4418 [ab].out ) 4419 # We found the default executable, but exeext='' is most 4420 # certainly right. 4421 break;; 4422 *.* ) 4423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4424 then :; else 4425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4426 fi 4427 # We set ac_cv_exeext here because the later test for it is not 4428 # safe: cross compilers may not add the suffix if given an `-o' 4429 # argument, so we may need to know it at that point already. 4430 # Even if this section looks crufty: it has the advantage of 4431 # actually working. 4432 break;; 4433 * ) 4434 break;; 4435 esac 4436done 4437test "$ac_cv_exeext" = no && ac_cv_exeext= 4438 4439else 4440 ac_file='' 4441fi 4442if test -z "$ac_file"; then : 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445$as_echo "$as_me: failed program was:" >&5 4446sed 's/^/| /' conftest.$ac_ext >&5 4447 4448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4450as_fn_error 77 "C compiler cannot create executables 4451See \`config.log' for more details" "$LINENO" 5; } 4452else 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4454$as_echo "yes" >&6; } 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4457$as_echo_n "checking for C compiler default output file name... " >&6; } 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4459$as_echo "$ac_file" >&6; } 4460ac_exeext=$ac_cv_exeext 4461 4462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4463ac_clean_files=$ac_clean_files_save 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4465$as_echo_n "checking for suffix of executables... " >&6; } 4466if { { ac_try="$ac_link" 4467case "(($ac_try" in 4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4469 *) ac_try_echo=$ac_try;; 4470esac 4471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4472$as_echo "$ac_try_echo"; } >&5 4473 (eval "$ac_link") 2>&5 4474 ac_status=$? 4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4476 test $ac_status = 0; }; then : 4477 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4478# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4479# work properly (i.e., refer to `conftest.exe'), while it won't with 4480# `rm'. 4481for ac_file in conftest.exe conftest conftest.*; do 4482 test -f "$ac_file" || continue 4483 case $ac_file in 4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4486 break;; 4487 * ) break;; 4488 esac 4489done 4490else 4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4493as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4494See \`config.log' for more details" "$LINENO" 5; } 4495fi 4496rm -f conftest conftest$ac_cv_exeext 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4498$as_echo "$ac_cv_exeext" >&6; } 4499 4500rm -f conftest.$ac_ext 4501EXEEXT=$ac_cv_exeext 4502ac_exeext=$EXEEXT 4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <stdio.h> 4506int 4507main () 4508{ 4509FILE *f = fopen ("conftest.out", "w"); 4510 return ferror (f) || fclose (f) != 0; 4511 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516ac_clean_files="$ac_clean_files conftest.out" 4517# Check that the compiler produces executables we can run. If not, either 4518# the compiler is broken, or we cross compile. 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4520$as_echo_n "checking whether we are cross compiling... " >&6; } 4521if test "$cross_compiling" != yes; then 4522 { { ac_try="$ac_link" 4523case "(($ac_try" in 4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4525 *) ac_try_echo=$ac_try;; 4526esac 4527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4528$as_echo "$ac_try_echo"; } >&5 4529 (eval "$ac_link") 2>&5 4530 ac_status=$? 4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4532 test $ac_status = 0; } 4533 if { ac_try='./conftest$ac_cv_exeext' 4534 { { case "(($ac_try" in 4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4536 *) ac_try_echo=$ac_try;; 4537esac 4538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4539$as_echo "$ac_try_echo"; } >&5 4540 (eval "$ac_try") 2>&5 4541 ac_status=$? 4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4543 test $ac_status = 0; }; }; then 4544 cross_compiling=no 4545 else 4546 if test "$cross_compiling" = maybe; then 4547 cross_compiling=yes 4548 else 4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4551as_fn_error $? "cannot run C compiled programs. 4552If you meant to cross compile, use \`--host'. 4553See \`config.log' for more details" "$LINENO" 5; } 4554 fi 4555 fi 4556fi 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4558$as_echo "$cross_compiling" >&6; } 4559 4560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4561ac_clean_files=$ac_clean_files_save 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4563$as_echo_n "checking for suffix of object files... " >&6; } 4564if ${ac_cv_objext+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4568/* end confdefs.h. */ 4569 4570int 4571main () 4572{ 4573 4574 ; 4575 return 0; 4576} 4577_ACEOF 4578rm -f conftest.o conftest.obj 4579if { { ac_try="$ac_compile" 4580case "(($ac_try" in 4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4582 *) ac_try_echo=$ac_try;; 4583esac 4584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4585$as_echo "$ac_try_echo"; } >&5 4586 (eval "$ac_compile") 2>&5 4587 ac_status=$? 4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4589 test $ac_status = 0; }; then : 4590 for ac_file in conftest.o conftest.obj conftest.*; do 4591 test -f "$ac_file" || continue; 4592 case $ac_file in 4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4595 break;; 4596 esac 4597done 4598else 4599 $as_echo "$as_me: failed program was:" >&5 4600sed 's/^/| /' conftest.$ac_ext >&5 4601 4602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4604as_fn_error $? "cannot compute suffix of object files: cannot compile 4605See \`config.log' for more details" "$LINENO" 5; } 4606fi 4607rm -f conftest.$ac_cv_objext conftest.$ac_ext 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4610$as_echo "$ac_cv_objext" >&6; } 4611OBJEXT=$ac_cv_objext 4612ac_objext=$OBJEXT 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4615if ${ac_cv_c_compiler_gnu+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4619/* end confdefs.h. */ 4620 4621int 4622main () 4623{ 4624#ifndef __GNUC__ 4625 choke me 4626#endif 4627 4628 ; 4629 return 0; 4630} 4631_ACEOF 4632if ac_fn_c_try_compile "$LINENO"; then : 4633 ac_compiler_gnu=yes 4634else 4635 ac_compiler_gnu=no 4636fi 4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638ac_cv_c_compiler_gnu=$ac_compiler_gnu 4639 4640fi 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4642$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4643if test $ac_compiler_gnu = yes; then 4644 GCC=yes 4645else 4646 GCC= 4647fi 4648ac_test_CFLAGS=${CFLAGS+set} 4649ac_save_CFLAGS=$CFLAGS 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4651$as_echo_n "checking whether $CC accepts -g... " >&6; } 4652if ${ac_cv_prog_cc_g+:} false; then : 4653 $as_echo_n "(cached) " >&6 4654else 4655 ac_save_c_werror_flag=$ac_c_werror_flag 4656 ac_c_werror_flag=yes 4657 ac_cv_prog_cc_g=no 4658 CFLAGS="-g" 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661 4662int 4663main () 4664{ 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670if ac_fn_c_try_compile "$LINENO"; then : 4671 ac_cv_prog_cc_g=yes 4672else 4673 CFLAGS="" 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676 4677int 4678main () 4679{ 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685if ac_fn_c_try_compile "$LINENO"; then : 4686 4687else 4688 ac_c_werror_flag=$ac_save_c_werror_flag 4689 CFLAGS="-g" 4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4691/* end confdefs.h. */ 4692 4693int 4694main () 4695{ 4696 4697 ; 4698 return 0; 4699} 4700_ACEOF 4701if ac_fn_c_try_compile "$LINENO"; then : 4702 ac_cv_prog_cc_g=yes 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4705fi 4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4707fi 4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4709 ac_c_werror_flag=$ac_save_c_werror_flag 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4712$as_echo "$ac_cv_prog_cc_g" >&6; } 4713if test "$ac_test_CFLAGS" = set; then 4714 CFLAGS=$ac_save_CFLAGS 4715elif test $ac_cv_prog_cc_g = yes; then 4716 if test "$GCC" = yes; then 4717 CFLAGS="-g -O2" 4718 else 4719 CFLAGS="-g" 4720 fi 4721else 4722 if test "$GCC" = yes; then 4723 CFLAGS="-O2" 4724 else 4725 CFLAGS= 4726 fi 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4730if ${ac_cv_prog_cc_c89+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 ac_cv_prog_cc_c89=no 4734ac_save_CC=$CC 4735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4736/* end confdefs.h. */ 4737#include <stdarg.h> 4738#include <stdio.h> 4739struct stat; 4740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4741struct buf { int x; }; 4742FILE * (*rcsopen) (struct buf *, struct stat *, int); 4743static char *e (p, i) 4744 char **p; 4745 int i; 4746{ 4747 return p[i]; 4748} 4749static char *f (char * (*g) (char **, int), char **p, ...) 4750{ 4751 char *s; 4752 va_list v; 4753 va_start (v,p); 4754 s = g (p, va_arg (v,int)); 4755 va_end (v); 4756 return s; 4757} 4758 4759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4760 function prototypes and stuff, but not '\xHH' hex character constants. 4761 These don't provoke an error unfortunately, instead are silently treated 4762 as 'x'. The following induces an error, until -std is added to get 4763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4764 array size at least. It's necessary to write '\x00'==0 to get something 4765 that's true only with -std. */ 4766int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4767 4768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4769 inside strings and character constants. */ 4770#define FOO(x) 'x' 4771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4772 4773int test (int i, double x); 4774struct s1 {int (*f) (int a);}; 4775struct s2 {int (*f) (double a);}; 4776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4777int argc; 4778char **argv; 4779int 4780main () 4781{ 4782return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4783 ; 4784 return 0; 4785} 4786_ACEOF 4787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4789do 4790 CC="$ac_save_CC $ac_arg" 4791 if ac_fn_c_try_compile "$LINENO"; then : 4792 ac_cv_prog_cc_c89=$ac_arg 4793fi 4794rm -f core conftest.err conftest.$ac_objext 4795 test "x$ac_cv_prog_cc_c89" != "xno" && break 4796done 4797rm -f conftest.$ac_ext 4798CC=$ac_save_CC 4799 4800fi 4801# AC_CACHE_VAL 4802case "x$ac_cv_prog_cc_c89" in 4803 x) 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4805$as_echo "none needed" >&6; } ;; 4806 xno) 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4808$as_echo "unsupported" >&6; } ;; 4809 *) 4810 CC="$CC $ac_cv_prog_cc_c89" 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4813esac 4814if test "x$ac_cv_prog_cc_c89" != xno; then : 4815 4816fi 4817 4818ac_ext=c 4819ac_cpp='$CPP $CPPFLAGS' 4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4822ac_compiler_gnu=$ac_cv_c_compiler_gnu 4823 4824ac_ext=c 4825ac_cpp='$CPP $CPPFLAGS' 4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4828ac_compiler_gnu=$ac_cv_c_compiler_gnu 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4830$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4831if ${am_cv_prog_cc_c_o+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837int 4838main () 4839{ 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845 # Make sure it works both with $CC and with simple cc. 4846 # Following AC_PROG_CC_C_O, we do the test twice because some 4847 # compilers refuse to overwrite an existing .o file with -o, 4848 # though they will create one. 4849 am_cv_prog_cc_c_o=yes 4850 for am_i in 1 2; do 4851 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4852 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4853 ac_status=$? 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } \ 4856 && test -f conftest2.$ac_objext; then 4857 : OK 4858 else 4859 am_cv_prog_cc_c_o=no 4860 break 4861 fi 4862 done 4863 rm -f core conftest* 4864 unset am_i 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4867$as_echo "$am_cv_prog_cc_c_o" >&6; } 4868if test "$am_cv_prog_cc_c_o" != yes; then 4869 # Losing compiler, so override with the script. 4870 # FIXME: It is wrong to rewrite CC. 4871 # But if we don't then we get into trouble of one sort or another. 4872 # A longer-term fix would be to have automake use am__CC in this case, 4873 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4874 CC="$am_aux_dir/compile $CC" 4875fi 4876ac_ext=c 4877ac_cpp='$CPP $CPPFLAGS' 4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4880ac_compiler_gnu=$ac_cv_c_compiler_gnu 4881 4882 4883depcc="$CC" am_compiler_list= 4884 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4886$as_echo_n "checking dependency style of $depcc... " >&6; } 4887if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4891 # We make a subdir and do the tests there. Otherwise we can end up 4892 # making bogus files that we don't know about and never remove. For 4893 # instance it was reported that on HP-UX the gcc test will end up 4894 # making a dummy file named 'D' -- because '-MD' means "put the output 4895 # in D". 4896 rm -rf conftest.dir 4897 mkdir conftest.dir 4898 # Copy depcomp to subdir because otherwise we won't find it if we're 4899 # using a relative directory. 4900 cp "$am_depcomp" conftest.dir 4901 cd conftest.dir 4902 # We will build objects and dependencies in a subdirectory because 4903 # it helps to detect inapplicable dependency modes. For instance 4904 # both Tru64's cc and ICC support -MD to output dependencies as a 4905 # side effect of compilation, but ICC will put the dependencies in 4906 # the current directory while Tru64 will put them in the object 4907 # directory. 4908 mkdir sub 4909 4910 am_cv_CC_dependencies_compiler_type=none 4911 if test "$am_compiler_list" = ""; then 4912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4913 fi 4914 am__universal=false 4915 case " $depcc " in #( 4916 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4917 esac 4918 4919 for depmode in $am_compiler_list; do 4920 # Setup a source with many dependencies, because some compilers 4921 # like to wrap large dependency lists on column 80 (with \), and 4922 # we should not choose a depcomp mode which is confused by this. 4923 # 4924 # We need to recreate these files for each test, as the compiler may 4925 # overwrite some of them when testing with obscure command lines. 4926 # This happens at least with the AIX C compiler. 4927 : > sub/conftest.c 4928 for i in 1 2 3 4 5 6; do 4929 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4931 # Solaris 10 /bin/sh. 4932 echo '/* dummy */' > sub/conftst$i.h 4933 done 4934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4935 4936 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4937 # mode. It turns out that the SunPro C++ compiler does not properly 4938 # handle '-M -o', and we need to detect this. Also, some Intel 4939 # versions had trouble with output in subdirs. 4940 am__obj=sub/conftest.${OBJEXT-o} 4941 am__minus_obj="-o $am__obj" 4942 case $depmode in 4943 gcc) 4944 # This depmode causes a compiler race in universal mode. 4945 test "$am__universal" = false || continue 4946 ;; 4947 nosideeffect) 4948 # After this tag, mechanisms are not by side-effect, so they'll 4949 # only be used when explicitly requested. 4950 if test "x$enable_dependency_tracking" = xyes; then 4951 continue 4952 else 4953 break 4954 fi 4955 ;; 4956 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4957 # This compiler won't grok '-c -o', but also, the minuso test has 4958 # not run yet. These depmodes are late enough in the game, and 4959 # so weak that their functioning should not be impacted. 4960 am__obj=conftest.${OBJEXT-o} 4961 am__minus_obj= 4962 ;; 4963 none) break ;; 4964 esac 4965 if depmode=$depmode \ 4966 source=sub/conftest.c object=$am__obj \ 4967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4969 >/dev/null 2>conftest.err && 4970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4974 # icc doesn't choke on unknown options, it will just issue warnings 4975 # or remarks (even with -Werror). So we grep stderr for any message 4976 # that says an option was ignored or not supported. 4977 # When given -MP, icc 7.0 and 7.1 complain thusly: 4978 # icc: Command line warning: ignoring option '-M'; no argument required 4979 # The diagnosis changed in icc 8.0: 4980 # icc: Command line remark: option '-MP' not supported 4981 if (grep 'ignoring option' conftest.err || 4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4983 am_cv_CC_dependencies_compiler_type=$depmode 4984 break 4985 fi 4986 fi 4987 done 4988 4989 cd .. 4990 rm -rf conftest.dir 4991else 4992 am_cv_CC_dependencies_compiler_type=none 4993fi 4994 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4997$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4998CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4999 5000 if 5001 test "x$enable_dependency_tracking" != xno \ 5002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5003 am__fastdepCC_TRUE= 5004 am__fastdepCC_FALSE='#' 5005else 5006 am__fastdepCC_TRUE='#' 5007 am__fastdepCC_FALSE= 5008fi 5009 5010 5011 5012ac_ext=c 5013ac_cpp='$CPP $CPPFLAGS' 5014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5016ac_compiler_gnu=$ac_cv_c_compiler_gnu 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5018$as_echo_n "checking how to run the C preprocessor... " >&6; } 5019# On Suns, sometimes $CPP names a directory. 5020if test -n "$CPP" && test -d "$CPP"; then 5021 CPP= 5022fi 5023if test -z "$CPP"; then 5024 if ${ac_cv_prog_CPP+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 # Double quotes because CPP needs to be expanded 5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5029 do 5030 ac_preproc_ok=false 5031for ac_c_preproc_warn_flag in '' yes 5032do 5033 # Use a header file that comes with gcc, so configuring glibc 5034 # with a fresh cross-compiler works. 5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5036 # <limits.h> exists even on freestanding compilers. 5037 # On the NeXT, cc -E runs the code through the compiler's parser, 5038 # not just through cpp. "Syntax error" is here to catch this case. 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041#ifdef __STDC__ 5042# include <limits.h> 5043#else 5044# include <assert.h> 5045#endif 5046 Syntax error 5047_ACEOF 5048if ac_fn_c_try_cpp "$LINENO"; then : 5049 5050else 5051 # Broken: fails on valid input. 5052continue 5053fi 5054rm -f conftest.err conftest.i conftest.$ac_ext 5055 5056 # OK, works on sane cases. Now check whether nonexistent headers 5057 # can be detected and how. 5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059/* end confdefs.h. */ 5060#include <ac_nonexistent.h> 5061_ACEOF 5062if ac_fn_c_try_cpp "$LINENO"; then : 5063 # Broken: success on invalid input. 5064continue 5065else 5066 # Passes both tests. 5067ac_preproc_ok=: 5068break 5069fi 5070rm -f conftest.err conftest.i conftest.$ac_ext 5071 5072done 5073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5074rm -f conftest.i conftest.err conftest.$ac_ext 5075if $ac_preproc_ok; then : 5076 break 5077fi 5078 5079 done 5080 ac_cv_prog_CPP=$CPP 5081 5082fi 5083 CPP=$ac_cv_prog_CPP 5084else 5085 ac_cv_prog_CPP=$CPP 5086fi 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5088$as_echo "$CPP" >&6; } 5089ac_preproc_ok=false 5090for ac_c_preproc_warn_flag in '' yes 5091do 5092 # Use a header file that comes with gcc, so configuring glibc 5093 # with a fresh cross-compiler works. 5094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5095 # <limits.h> exists even on freestanding compilers. 5096 # On the NeXT, cc -E runs the code through the compiler's parser, 5097 # not just through cpp. "Syntax error" is here to catch this case. 5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5099/* end confdefs.h. */ 5100#ifdef __STDC__ 5101# include <limits.h> 5102#else 5103# include <assert.h> 5104#endif 5105 Syntax error 5106_ACEOF 5107if ac_fn_c_try_cpp "$LINENO"; then : 5108 5109else 5110 # Broken: fails on valid input. 5111continue 5112fi 5113rm -f conftest.err conftest.i conftest.$ac_ext 5114 5115 # OK, works on sane cases. Now check whether nonexistent headers 5116 # can be detected and how. 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119#include <ac_nonexistent.h> 5120_ACEOF 5121if ac_fn_c_try_cpp "$LINENO"; then : 5122 # Broken: success on invalid input. 5123continue 5124else 5125 # Passes both tests. 5126ac_preproc_ok=: 5127break 5128fi 5129rm -f conftest.err conftest.i conftest.$ac_ext 5130 5131done 5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5133rm -f conftest.i conftest.err conftest.$ac_ext 5134if $ac_preproc_ok; then : 5135 5136else 5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5139as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5140See \`config.log' for more details" "$LINENO" 5; } 5141fi 5142 5143ac_ext=c 5144ac_cpp='$CPP $CPPFLAGS' 5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5147ac_compiler_gnu=$ac_cv_c_compiler_gnu 5148 5149 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5151$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5152if ${ac_cv_path_GREP+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 if test -z "$GREP"; then 5156 ac_path_GREP_found=false 5157 # Loop through the user's path and test for each of PROGNAME-LIST 5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5160do 5161 IFS=$as_save_IFS 5162 test -z "$as_dir" && as_dir=. 5163 for ac_prog in grep ggrep; do 5164 for ac_exec_ext in '' $ac_executable_extensions; do 5165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5166 as_fn_executable_p "$ac_path_GREP" || continue 5167# Check for GNU ac_path_GREP and select it if it is found. 5168 # Check for GNU $ac_path_GREP 5169case `"$ac_path_GREP" --version 2>&1` in 5170*GNU*) 5171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5172*) 5173 ac_count=0 5174 $as_echo_n 0123456789 >"conftest.in" 5175 while : 5176 do 5177 cat "conftest.in" "conftest.in" >"conftest.tmp" 5178 mv "conftest.tmp" "conftest.in" 5179 cp "conftest.in" "conftest.nl" 5180 $as_echo 'GREP' >> "conftest.nl" 5181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5183 as_fn_arith $ac_count + 1 && ac_count=$as_val 5184 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5185 # Best one so far, save it but keep looking for a better one 5186 ac_cv_path_GREP="$ac_path_GREP" 5187 ac_path_GREP_max=$ac_count 5188 fi 5189 # 10*(2^10) chars as input seems more than enough 5190 test $ac_count -gt 10 && break 5191 done 5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5193esac 5194 5195 $ac_path_GREP_found && break 3 5196 done 5197 done 5198 done 5199IFS=$as_save_IFS 5200 if test -z "$ac_cv_path_GREP"; then 5201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5202 fi 5203else 5204 ac_cv_path_GREP=$GREP 5205fi 5206 5207fi 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5209$as_echo "$ac_cv_path_GREP" >&6; } 5210 GREP="$ac_cv_path_GREP" 5211 5212 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5214$as_echo_n "checking for egrep... " >&6; } 5215if ${ac_cv_path_EGREP+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5219 then ac_cv_path_EGREP="$GREP -E" 5220 else 5221 if test -z "$EGREP"; then 5222 ac_path_EGREP_found=false 5223 # Loop through the user's path and test for each of PROGNAME-LIST 5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_prog in egrep; do 5230 for ac_exec_ext in '' $ac_executable_extensions; do 5231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5232 as_fn_executable_p "$ac_path_EGREP" || continue 5233# Check for GNU ac_path_EGREP and select it if it is found. 5234 # Check for GNU $ac_path_EGREP 5235case `"$ac_path_EGREP" --version 2>&1` in 5236*GNU*) 5237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5238*) 5239 ac_count=0 5240 $as_echo_n 0123456789 >"conftest.in" 5241 while : 5242 do 5243 cat "conftest.in" "conftest.in" >"conftest.tmp" 5244 mv "conftest.tmp" "conftest.in" 5245 cp "conftest.in" "conftest.nl" 5246 $as_echo 'EGREP' >> "conftest.nl" 5247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5249 as_fn_arith $ac_count + 1 && ac_count=$as_val 5250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5251 # Best one so far, save it but keep looking for a better one 5252 ac_cv_path_EGREP="$ac_path_EGREP" 5253 ac_path_EGREP_max=$ac_count 5254 fi 5255 # 10*(2^10) chars as input seems more than enough 5256 test $ac_count -gt 10 && break 5257 done 5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5259esac 5260 5261 $ac_path_EGREP_found && break 3 5262 done 5263 done 5264 done 5265IFS=$as_save_IFS 5266 if test -z "$ac_cv_path_EGREP"; then 5267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5268 fi 5269else 5270 ac_cv_path_EGREP=$EGREP 5271fi 5272 5273 fi 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5276$as_echo "$ac_cv_path_EGREP" >&6; } 5277 EGREP="$ac_cv_path_EGREP" 5278 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5281$as_echo_n "checking for ANSI C header files... " >&6; } 5282if ${ac_cv_header_stdc+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287#include <stdlib.h> 5288#include <stdarg.h> 5289#include <string.h> 5290#include <float.h> 5291 5292int 5293main () 5294{ 5295 5296 ; 5297 return 0; 5298} 5299_ACEOF 5300if ac_fn_c_try_compile "$LINENO"; then : 5301 ac_cv_header_stdc=yes 5302else 5303 ac_cv_header_stdc=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306 5307if test $ac_cv_header_stdc = yes; then 5308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311#include <string.h> 5312 5313_ACEOF 5314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5315 $EGREP "memchr" >/dev/null 2>&1; then : 5316 5317else 5318 ac_cv_header_stdc=no 5319fi 5320rm -f conftest* 5321 5322fi 5323 5324if test $ac_cv_header_stdc = yes; then 5325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327/* end confdefs.h. */ 5328#include <stdlib.h> 5329 5330_ACEOF 5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5332 $EGREP "free" >/dev/null 2>&1; then : 5333 5334else 5335 ac_cv_header_stdc=no 5336fi 5337rm -f conftest* 5338 5339fi 5340 5341if test $ac_cv_header_stdc = yes; then 5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5343 if test "$cross_compiling" = yes; then : 5344 : 5345else 5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347/* end confdefs.h. */ 5348#include <ctype.h> 5349#include <stdlib.h> 5350#if ((' ' & 0x0FF) == 0x020) 5351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5353#else 5354# define ISLOWER(c) \ 5355 (('a' <= (c) && (c) <= 'i') \ 5356 || ('j' <= (c) && (c) <= 'r') \ 5357 || ('s' <= (c) && (c) <= 'z')) 5358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5359#endif 5360 5361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5362int 5363main () 5364{ 5365 int i; 5366 for (i = 0; i < 256; i++) 5367 if (XOR (islower (i), ISLOWER (i)) 5368 || toupper (i) != TOUPPER (i)) 5369 return 2; 5370 return 0; 5371} 5372_ACEOF 5373if ac_fn_c_try_run "$LINENO"; then : 5374 5375else 5376 ac_cv_header_stdc=no 5377fi 5378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5379 conftest.$ac_objext conftest.beam conftest.$ac_ext 5380fi 5381 5382fi 5383fi 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5385$as_echo "$ac_cv_header_stdc" >&6; } 5386if test $ac_cv_header_stdc = yes; then 5387 5388$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5389 5390fi 5391 5392# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5393for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5394 inttypes.h stdint.h unistd.h 5395do : 5396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5397ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5398" 5399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5400 cat >>confdefs.h <<_ACEOF 5401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5402_ACEOF 5403 5404fi 5405 5406done 5407 5408 5409 5410 5411 5412 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5413if test "x$ac_cv_header_minix_config_h" = xyes; then : 5414 MINIX=yes 5415else 5416 MINIX= 5417fi 5418 5419 5420 if test "$MINIX" = yes; then 5421 5422$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5423 5424 5425$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5426 5427 5428$as_echo "#define _MINIX 1" >>confdefs.h 5429 5430 fi 5431 5432 case "$host_os" in 5433 hpux*) 5434 5435$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5436 5437 ;; 5438 esac 5439 5440 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5442$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5443if ${ac_cv_safe_to_define___extensions__+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448 5449# define __EXTENSIONS__ 1 5450 $ac_includes_default 5451int 5452main () 5453{ 5454 5455 ; 5456 return 0; 5457} 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO"; then : 5460 ac_cv_safe_to_define___extensions__=yes 5461else 5462 ac_cv_safe_to_define___extensions__=no 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5467$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5468 test $ac_cv_safe_to_define___extensions__ = yes && 5469 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5470 5471 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5472 5473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5474 5475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5476 5477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5478 5479 5480 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5482$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5483if ${ac_cv_prog_cc_c89+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 ac_cv_prog_cc_c89=no 5487ac_save_CC=$CC 5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490#include <stdarg.h> 5491#include <stdio.h> 5492struct stat; 5493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5494struct buf { int x; }; 5495FILE * (*rcsopen) (struct buf *, struct stat *, int); 5496static char *e (p, i) 5497 char **p; 5498 int i; 5499{ 5500 return p[i]; 5501} 5502static char *f (char * (*g) (char **, int), char **p, ...) 5503{ 5504 char *s; 5505 va_list v; 5506 va_start (v,p); 5507 s = g (p, va_arg (v,int)); 5508 va_end (v); 5509 return s; 5510} 5511 5512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5513 function prototypes and stuff, but not '\xHH' hex character constants. 5514 These don't provoke an error unfortunately, instead are silently treated 5515 as 'x'. The following induces an error, until -std is added to get 5516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5517 array size at least. It's necessary to write '\x00'==0 to get something 5518 that's true only with -std. */ 5519int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5520 5521/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5522 inside strings and character constants. */ 5523#define FOO(x) 'x' 5524int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5525 5526int test (int i, double x); 5527struct s1 {int (*f) (int a);}; 5528struct s2 {int (*f) (double a);}; 5529int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5530int argc; 5531char **argv; 5532int 5533main () 5534{ 5535return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5536 ; 5537 return 0; 5538} 5539_ACEOF 5540for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5542do 5543 CC="$ac_save_CC $ac_arg" 5544 if ac_fn_c_try_compile "$LINENO"; then : 5545 ac_cv_prog_cc_c89=$ac_arg 5546fi 5547rm -f core conftest.err conftest.$ac_objext 5548 test "x$ac_cv_prog_cc_c89" != "xno" && break 5549done 5550rm -f conftest.$ac_ext 5551CC=$ac_save_CC 5552 5553fi 5554# AC_CACHE_VAL 5555case "x$ac_cv_prog_cc_c89" in 5556 x) 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5558$as_echo "none needed" >&6; } ;; 5559 xno) 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5561$as_echo "unsupported" >&6; } ;; 5562 *) 5563 CC="$CC $ac_cv_prog_cc_c89" 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5565$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5566esac 5567if test "x$ac_cv_prog_cc_c89" != xno; then : 5568 5569fi 5570 5571 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5573$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5574if ${ac_cv_prog_cc_c99+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 ac_cv_prog_cc_c99=no 5578ac_save_CC=$CC 5579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581#include <stdarg.h> 5582#include <stdbool.h> 5583#include <stdlib.h> 5584#include <wchar.h> 5585#include <stdio.h> 5586 5587// Check varargs macros. These examples are taken from C99 6.10.3.5. 5588#define debug(...) fprintf (stderr, __VA_ARGS__) 5589#define showlist(...) puts (#__VA_ARGS__) 5590#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5591static void 5592test_varargs_macros (void) 5593{ 5594 int x = 1234; 5595 int y = 5678; 5596 debug ("Flag"); 5597 debug ("X = %d\n", x); 5598 showlist (The first, second, and third items.); 5599 report (x>y, "x is %d but y is %d", x, y); 5600} 5601 5602// Check long long types. 5603#define BIG64 18446744073709551615ull 5604#define BIG32 4294967295ul 5605#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5606#if !BIG_OK 5607 your preprocessor is broken; 5608#endif 5609#if BIG_OK 5610#else 5611 your preprocessor is broken; 5612#endif 5613static long long int bignum = -9223372036854775807LL; 5614static unsigned long long int ubignum = BIG64; 5615 5616struct incomplete_array 5617{ 5618 int datasize; 5619 double data[]; 5620}; 5621 5622struct named_init { 5623 int number; 5624 const wchar_t *name; 5625 double average; 5626}; 5627 5628typedef const char *ccp; 5629 5630static inline int 5631test_restrict (ccp restrict text) 5632{ 5633 // See if C++-style comments work. 5634 // Iterate through items via the restricted pointer. 5635 // Also check for declarations in for loops. 5636 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5637 continue; 5638 return 0; 5639} 5640 5641// Check varargs and va_copy. 5642static void 5643test_varargs (const char *format, ...) 5644{ 5645 va_list args; 5646 va_start (args, format); 5647 va_list args_copy; 5648 va_copy (args_copy, args); 5649 5650 const char *str; 5651 int number; 5652 float fnumber; 5653 5654 while (*format) 5655 { 5656 switch (*format++) 5657 { 5658 case 's': // string 5659 str = va_arg (args_copy, const char *); 5660 break; 5661 case 'd': // int 5662 number = va_arg (args_copy, int); 5663 break; 5664 case 'f': // float 5665 fnumber = va_arg (args_copy, double); 5666 break; 5667 default: 5668 break; 5669 } 5670 } 5671 va_end (args_copy); 5672 va_end (args); 5673} 5674 5675int 5676main () 5677{ 5678 5679 // Check bool. 5680 _Bool success = false; 5681 5682 // Check restrict. 5683 if (test_restrict ("String literal") == 0) 5684 success = true; 5685 char *restrict newvar = "Another string"; 5686 5687 // Check varargs. 5688 test_varargs ("s, d' f .", "string", 65, 34.234); 5689 test_varargs_macros (); 5690 5691 // Check flexible array members. 5692 struct incomplete_array *ia = 5693 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5694 ia->datasize = 10; 5695 for (int i = 0; i < ia->datasize; ++i) 5696 ia->data[i] = i * 1.234; 5697 5698 // Check named initializers. 5699 struct named_init ni = { 5700 .number = 34, 5701 .name = L"Test wide string", 5702 .average = 543.34343, 5703 }; 5704 5705 ni.number = 58; 5706 5707 int dynamic_array[ni.number]; 5708 dynamic_array[ni.number - 1] = 543; 5709 5710 // work around unused variable warnings 5711 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5712 || dynamic_array[ni.number - 1] != 543); 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5719do 5720 CC="$ac_save_CC $ac_arg" 5721 if ac_fn_c_try_compile "$LINENO"; then : 5722 ac_cv_prog_cc_c99=$ac_arg 5723fi 5724rm -f core conftest.err conftest.$ac_objext 5725 test "x$ac_cv_prog_cc_c99" != "xno" && break 5726done 5727rm -f conftest.$ac_ext 5728CC=$ac_save_CC 5729 5730fi 5731# AC_CACHE_VAL 5732case "x$ac_cv_prog_cc_c99" in 5733 x) 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5735$as_echo "none needed" >&6; } ;; 5736 xno) 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5738$as_echo "unsupported" >&6; } ;; 5739 *) 5740 CC="$CC $ac_cv_prog_cc_c99" 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5742$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5743esac 5744if test "x$ac_cv_prog_cc_c99" != xno; then : 5745 5746fi 5747 5748 5749 5750 5751 5752 5753ac_ext=c 5754ac_cpp='$CPP $CPPFLAGS' 5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5757ac_compiler_gnu=$ac_cv_c_compiler_gnu 5758if test -n "$ac_tool_prefix"; then 5759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5760set dummy ${ac_tool_prefix}gcc; ac_word=$2 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5762$as_echo_n "checking for $ac_word... " >&6; } 5763if ${ac_cv_prog_CC+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 if test -n "$CC"; then 5767 ac_cv_prog_CC="$CC" # Let the user override the test. 5768else 5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770for as_dir in $PATH 5771do 5772 IFS=$as_save_IFS 5773 test -z "$as_dir" && as_dir=. 5774 for ac_exec_ext in '' $ac_executable_extensions; do 5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5776 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5778 break 2 5779 fi 5780done 5781 done 5782IFS=$as_save_IFS 5783 5784fi 5785fi 5786CC=$ac_cv_prog_CC 5787if test -n "$CC"; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5789$as_echo "$CC" >&6; } 5790else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5792$as_echo "no" >&6; } 5793fi 5794 5795 5796fi 5797if test -z "$ac_cv_prog_CC"; then 5798 ac_ct_CC=$CC 5799 # Extract the first word of "gcc", so it can be a program name with args. 5800set dummy gcc; ac_word=$2 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802$as_echo_n "checking for $ac_word... " >&6; } 5803if ${ac_cv_prog_ac_ct_CC+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$ac_ct_CC"; then 5807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5808else 5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5816 ac_cv_prog_ac_ct_CC="gcc" 5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5818 break 2 5819 fi 5820done 5821 done 5822IFS=$as_save_IFS 5823 5824fi 5825fi 5826ac_ct_CC=$ac_cv_prog_ac_ct_CC 5827if test -n "$ac_ct_CC"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5829$as_echo "$ac_ct_CC" >&6; } 5830else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833fi 5834 5835 if test "x$ac_ct_CC" = x; then 5836 CC="" 5837 else 5838 case $cross_compiling:$ac_tool_warned in 5839yes:) 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5842ac_tool_warned=yes ;; 5843esac 5844 CC=$ac_ct_CC 5845 fi 5846else 5847 CC="$ac_cv_prog_CC" 5848fi 5849 5850if test -z "$CC"; then 5851 if test -n "$ac_tool_prefix"; then 5852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5853set dummy ${ac_tool_prefix}cc; ac_word=$2 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5855$as_echo_n "checking for $ac_word... " >&6; } 5856if ${ac_cv_prog_CC+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 if test -n "$CC"; then 5860 ac_cv_prog_CC="$CC" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_CC="${ac_tool_prefix}cc" 5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874 done 5875IFS=$as_save_IFS 5876 5877fi 5878fi 5879CC=$ac_cv_prog_CC 5880if test -n "$CC"; then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5882$as_echo "$CC" >&6; } 5883else 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885$as_echo "no" >&6; } 5886fi 5887 5888 5889 fi 5890fi 5891if test -z "$CC"; then 5892 # Extract the first word of "cc", so it can be a program name with args. 5893set dummy cc; ac_word=$2 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895$as_echo_n "checking for $ac_word... " >&6; } 5896if ${ac_cv_prog_CC+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 if test -n "$CC"; then 5900 ac_cv_prog_CC="$CC" # Let the user override the test. 5901else 5902 ac_prog_rejected=no 5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5904for as_dir in $PATH 5905do 5906 IFS=$as_save_IFS 5907 test -z "$as_dir" && as_dir=. 5908 for ac_exec_ext in '' $ac_executable_extensions; do 5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5911 ac_prog_rejected=yes 5912 continue 5913 fi 5914 ac_cv_prog_CC="cc" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922if test $ac_prog_rejected = yes; then 5923 # We found a bogon in the path, so make sure we never use it. 5924 set dummy $ac_cv_prog_CC 5925 shift 5926 if test $# != 0; then 5927 # We chose a different compiler from the bogus one. 5928 # However, it has the same basename, so the bogon will be chosen 5929 # first if we set CC to just the basename; use the full file name. 5930 shift 5931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5932 fi 5933fi 5934fi 5935fi 5936CC=$ac_cv_prog_CC 5937if test -n "$CC"; then 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5939$as_echo "$CC" >&6; } 5940else 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5942$as_echo "no" >&6; } 5943fi 5944 5945 5946fi 5947if test -z "$CC"; then 5948 if test -n "$ac_tool_prefix"; then 5949 for ac_prog in cl.exe 5950 do 5951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5954$as_echo_n "checking for $ac_word... " >&6; } 5955if ${ac_cv_prog_CC+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 if test -n "$CC"; then 5959 ac_cv_prog_CC="$CC" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978CC=$ac_cv_prog_CC 5979if test -n "$CC"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5981$as_echo "$CC" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 5988 test -n "$CC" && break 5989 done 5990fi 5991if test -z "$CC"; then 5992 ac_ct_CC=$CC 5993 for ac_prog in cl.exe 5994do 5995 # Extract the first word of "$ac_prog", so it can be a program name with args. 5996set dummy $ac_prog; ac_word=$2 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5998$as_echo_n "checking for $ac_word... " >&6; } 5999if ${ac_cv_prog_ac_ct_CC+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 if test -n "$ac_ct_CC"; then 6003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6004else 6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006for as_dir in $PATH 6007do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6012 ac_cv_prog_ac_ct_CC="$ac_prog" 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016done 6017 done 6018IFS=$as_save_IFS 6019 6020fi 6021fi 6022ac_ct_CC=$ac_cv_prog_ac_ct_CC 6023if test -n "$ac_ct_CC"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6025$as_echo "$ac_ct_CC" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028$as_echo "no" >&6; } 6029fi 6030 6031 6032 test -n "$ac_ct_CC" && break 6033done 6034 6035 if test "x$ac_ct_CC" = x; then 6036 CC="" 6037 else 6038 case $cross_compiling:$ac_tool_warned in 6039yes:) 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6042ac_tool_warned=yes ;; 6043esac 6044 CC=$ac_ct_CC 6045 fi 6046fi 6047 6048fi 6049 6050 6051test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6053as_fn_error $? "no acceptable C compiler found in \$PATH 6054See \`config.log' for more details" "$LINENO" 5; } 6055 6056# Provide some information about the compiler. 6057$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6058set X $ac_compile 6059ac_compiler=$2 6060for ac_option in --version -v -V -qversion; do 6061 { { ac_try="$ac_compiler $ac_option >&5" 6062case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065esac 6066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6067$as_echo "$ac_try_echo"; } >&5 6068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6069 ac_status=$? 6070 if test -s conftest.err; then 6071 sed '10a\ 6072... rest of stderr output deleted ... 6073 10q' conftest.err >conftest.er1 6074 cat conftest.er1 >&5 6075 fi 6076 rm -f conftest.er1 conftest.err 6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6078 test $ac_status = 0; } 6079done 6080 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6082$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6083if ${ac_cv_c_compiler_gnu+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088 6089int 6090main () 6091{ 6092#ifndef __GNUC__ 6093 choke me 6094#endif 6095 6096 ; 6097 return 0; 6098} 6099_ACEOF 6100if ac_fn_c_try_compile "$LINENO"; then : 6101 ac_compiler_gnu=yes 6102else 6103 ac_compiler_gnu=no 6104fi 6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6106ac_cv_c_compiler_gnu=$ac_compiler_gnu 6107 6108fi 6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6110$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6111if test $ac_compiler_gnu = yes; then 6112 GCC=yes 6113else 6114 GCC= 6115fi 6116ac_test_CFLAGS=${CFLAGS+set} 6117ac_save_CFLAGS=$CFLAGS 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6119$as_echo_n "checking whether $CC accepts -g... " >&6; } 6120if ${ac_cv_prog_cc_g+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 ac_save_c_werror_flag=$ac_c_werror_flag 6124 ac_c_werror_flag=yes 6125 ac_cv_prog_cc_g=no 6126 CFLAGS="-g" 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129 6130int 6131main () 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 ac_cv_prog_cc_g=yes 6140else 6141 CFLAGS="" 6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143/* end confdefs.h. */ 6144 6145int 6146main () 6147{ 6148 6149 ; 6150 return 0; 6151} 6152_ACEOF 6153if ac_fn_c_try_compile "$LINENO"; then : 6154 6155else 6156 ac_c_werror_flag=$ac_save_c_werror_flag 6157 CFLAGS="-g" 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160 6161int 6162main () 6163{ 6164 6165 ; 6166 return 0; 6167} 6168_ACEOF 6169if ac_fn_c_try_compile "$LINENO"; then : 6170 ac_cv_prog_cc_g=yes 6171fi 6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6173fi 6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6175fi 6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6177 ac_c_werror_flag=$ac_save_c_werror_flag 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6180$as_echo "$ac_cv_prog_cc_g" >&6; } 6181if test "$ac_test_CFLAGS" = set; then 6182 CFLAGS=$ac_save_CFLAGS 6183elif test $ac_cv_prog_cc_g = yes; then 6184 if test "$GCC" = yes; then 6185 CFLAGS="-g -O2" 6186 else 6187 CFLAGS="-g" 6188 fi 6189else 6190 if test "$GCC" = yes; then 6191 CFLAGS="-O2" 6192 else 6193 CFLAGS= 6194 fi 6195fi 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6197$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6198if ${ac_cv_prog_cc_c89+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 ac_cv_prog_cc_c89=no 6202ac_save_CC=$CC 6203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205#include <stdarg.h> 6206#include <stdio.h> 6207struct stat; 6208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6209struct buf { int x; }; 6210FILE * (*rcsopen) (struct buf *, struct stat *, int); 6211static char *e (p, i) 6212 char **p; 6213 int i; 6214{ 6215 return p[i]; 6216} 6217static char *f (char * (*g) (char **, int), char **p, ...) 6218{ 6219 char *s; 6220 va_list v; 6221 va_start (v,p); 6222 s = g (p, va_arg (v,int)); 6223 va_end (v); 6224 return s; 6225} 6226 6227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6228 function prototypes and stuff, but not '\xHH' hex character constants. 6229 These don't provoke an error unfortunately, instead are silently treated 6230 as 'x'. The following induces an error, until -std is added to get 6231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6232 array size at least. It's necessary to write '\x00'==0 to get something 6233 that's true only with -std. */ 6234int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6235 6236/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6237 inside strings and character constants. */ 6238#define FOO(x) 'x' 6239int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6240 6241int test (int i, double x); 6242struct s1 {int (*f) (int a);}; 6243struct s2 {int (*f) (double a);}; 6244int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6245int argc; 6246char **argv; 6247int 6248main () 6249{ 6250return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6257do 6258 CC="$ac_save_CC $ac_arg" 6259 if ac_fn_c_try_compile "$LINENO"; then : 6260 ac_cv_prog_cc_c89=$ac_arg 6261fi 6262rm -f core conftest.err conftest.$ac_objext 6263 test "x$ac_cv_prog_cc_c89" != "xno" && break 6264done 6265rm -f conftest.$ac_ext 6266CC=$ac_save_CC 6267 6268fi 6269# AC_CACHE_VAL 6270case "x$ac_cv_prog_cc_c89" in 6271 x) 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6273$as_echo "none needed" >&6; } ;; 6274 xno) 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6276$as_echo "unsupported" >&6; } ;; 6277 *) 6278 CC="$CC $ac_cv_prog_cc_c89" 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6280$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6281esac 6282if test "x$ac_cv_prog_cc_c89" != xno; then : 6283 6284fi 6285 6286ac_ext=c 6287ac_cpp='$CPP $CPPFLAGS' 6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6290ac_compiler_gnu=$ac_cv_c_compiler_gnu 6291 6292ac_ext=c 6293ac_cpp='$CPP $CPPFLAGS' 6294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6296ac_compiler_gnu=$ac_cv_c_compiler_gnu 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6298$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6299if ${am_cv_prog_cc_c_o+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304 6305int 6306main () 6307{ 6308 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313 # Make sure it works both with $CC and with simple cc. 6314 # Following AC_PROG_CC_C_O, we do the test twice because some 6315 # compilers refuse to overwrite an existing .o file with -o, 6316 # though they will create one. 6317 am_cv_prog_cc_c_o=yes 6318 for am_i in 1 2; do 6319 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6320 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6321 ac_status=$? 6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6323 (exit $ac_status); } \ 6324 && test -f conftest2.$ac_objext; then 6325 : OK 6326 else 6327 am_cv_prog_cc_c_o=no 6328 break 6329 fi 6330 done 6331 rm -f core conftest* 6332 unset am_i 6333fi 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6335$as_echo "$am_cv_prog_cc_c_o" >&6; } 6336if test "$am_cv_prog_cc_c_o" != yes; then 6337 # Losing compiler, so override with the script. 6338 # FIXME: It is wrong to rewrite CC. 6339 # But if we don't then we get into trouble of one sort or another. 6340 # A longer-term fix would be to have automake use am__CC in this case, 6341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6342 CC="$am_aux_dir/compile $CC" 6343fi 6344ac_ext=c 6345ac_cpp='$CPP $CPPFLAGS' 6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6348ac_compiler_gnu=$ac_cv_c_compiler_gnu 6349 6350 6351depcc="$CC" am_compiler_list= 6352 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6354$as_echo_n "checking dependency style of $depcc... " >&6; } 6355if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6359 # We make a subdir and do the tests there. Otherwise we can end up 6360 # making bogus files that we don't know about and never remove. For 6361 # instance it was reported that on HP-UX the gcc test will end up 6362 # making a dummy file named 'D' -- because '-MD' means "put the output 6363 # in D". 6364 rm -rf conftest.dir 6365 mkdir conftest.dir 6366 # Copy depcomp to subdir because otherwise we won't find it if we're 6367 # using a relative directory. 6368 cp "$am_depcomp" conftest.dir 6369 cd conftest.dir 6370 # We will build objects and dependencies in a subdirectory because 6371 # it helps to detect inapplicable dependency modes. For instance 6372 # both Tru64's cc and ICC support -MD to output dependencies as a 6373 # side effect of compilation, but ICC will put the dependencies in 6374 # the current directory while Tru64 will put them in the object 6375 # directory. 6376 mkdir sub 6377 6378 am_cv_CC_dependencies_compiler_type=none 6379 if test "$am_compiler_list" = ""; then 6380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6381 fi 6382 am__universal=false 6383 case " $depcc " in #( 6384 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6385 esac 6386 6387 for depmode in $am_compiler_list; do 6388 # Setup a source with many dependencies, because some compilers 6389 # like to wrap large dependency lists on column 80 (with \), and 6390 # we should not choose a depcomp mode which is confused by this. 6391 # 6392 # We need to recreate these files for each test, as the compiler may 6393 # overwrite some of them when testing with obscure command lines. 6394 # This happens at least with the AIX C compiler. 6395 : > sub/conftest.c 6396 for i in 1 2 3 4 5 6; do 6397 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6398 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6399 # Solaris 10 /bin/sh. 6400 echo '/* dummy */' > sub/conftst$i.h 6401 done 6402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6403 6404 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6405 # mode. It turns out that the SunPro C++ compiler does not properly 6406 # handle '-M -o', and we need to detect this. Also, some Intel 6407 # versions had trouble with output in subdirs. 6408 am__obj=sub/conftest.${OBJEXT-o} 6409 am__minus_obj="-o $am__obj" 6410 case $depmode in 6411 gcc) 6412 # This depmode causes a compiler race in universal mode. 6413 test "$am__universal" = false || continue 6414 ;; 6415 nosideeffect) 6416 # After this tag, mechanisms are not by side-effect, so they'll 6417 # only be used when explicitly requested. 6418 if test "x$enable_dependency_tracking" = xyes; then 6419 continue 6420 else 6421 break 6422 fi 6423 ;; 6424 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6425 # This compiler won't grok '-c -o', but also, the minuso test has 6426 # not run yet. These depmodes are late enough in the game, and 6427 # so weak that their functioning should not be impacted. 6428 am__obj=conftest.${OBJEXT-o} 6429 am__minus_obj= 6430 ;; 6431 none) break ;; 6432 esac 6433 if depmode=$depmode \ 6434 source=sub/conftest.c object=$am__obj \ 6435 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6436 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6437 >/dev/null 2>conftest.err && 6438 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6440 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6442 # icc doesn't choke on unknown options, it will just issue warnings 6443 # or remarks (even with -Werror). So we grep stderr for any message 6444 # that says an option was ignored or not supported. 6445 # When given -MP, icc 7.0 and 7.1 complain thusly: 6446 # icc: Command line warning: ignoring option '-M'; no argument required 6447 # The diagnosis changed in icc 8.0: 6448 # icc: Command line remark: option '-MP' not supported 6449 if (grep 'ignoring option' conftest.err || 6450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6451 am_cv_CC_dependencies_compiler_type=$depmode 6452 break 6453 fi 6454 fi 6455 done 6456 6457 cd .. 6458 rm -rf conftest.dir 6459else 6460 am_cv_CC_dependencies_compiler_type=none 6461fi 6462 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6465$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6466CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6467 6468 if 6469 test "x$enable_dependency_tracking" != xno \ 6470 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6471 am__fastdepCC_TRUE= 6472 am__fastdepCC_FALSE='#' 6473else 6474 am__fastdepCC_TRUE='#' 6475 am__fastdepCC_FALSE= 6476fi 6477 6478 6479# Ralf Wildenhues: With per-target flags we need CC_C_O 6480# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 6481 6482if test $ac_cv_c_compiler_gnu = yes; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 6484$as_echo_n "checking whether $CC needs -traditional... " >&6; } 6485if ${ac_cv_prog_gcc_traditional+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 ac_pattern="Autoconf.*'x'" 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491#include <sgtty.h> 6492Autoconf TIOCGETP 6493_ACEOF 6494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6495 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6496 ac_cv_prog_gcc_traditional=yes 6497else 6498 ac_cv_prog_gcc_traditional=no 6499fi 6500rm -f conftest* 6501 6502 6503 if test $ac_cv_prog_gcc_traditional = no; then 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506#include <termio.h> 6507Autoconf TCGETA 6508_ACEOF 6509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6510 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6511 ac_cv_prog_gcc_traditional=yes 6512fi 6513rm -f conftest* 6514 6515 fi 6516fi 6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 6518$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 6519 if test $ac_cv_prog_gcc_traditional = yes; then 6520 CC="$CC -traditional" 6521 fi 6522fi 6523 6524 6525 6526 6527 6528CFLAGS_NTP= 6529CPPFLAGS_NTP= 6530LDADD_NTP= 6531LDFLAGS_NTP= 6532 6533 6534 6535 6536 6537case "$ac_cv_prog_cc_c89" in 6538 no) 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6540 version 4.2.5 and higher." >&5 6541$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6542 version 4.2.5 and higher." >&2;} 6543 ;; 6544esac 6545 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 6547$as_echo_n "checking if $CC can handle #warning... " >&6; } 6548if ${ntp_cv_cpp_warning+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6552/* end confdefs.h. */ 6553 6554int 6555main () 6556{ 6557#warning foo 6558 ; 6559 return 0; 6560} 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO"; then : 6563 ntp_cv_cpp_warning=yes 6564else 6565 ntp_cv_cpp_warning=no 6566 6567fi 6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6569 6570fi 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 6572$as_echo "$ntp_cv_cpp_warning" >&6; } 6573case "$ntp_cv_cpp_warning" in 6574 no) 6575 6576$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 6577 6578esac 6579 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 6581$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 6582if ${ntp_cv_cc_attribute+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587 6588int 6589main () 6590{ 6591void foo(void) __attribute__((__noreturn__)); 6592 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597if ac_fn_c_try_compile "$LINENO"; then : 6598 ntp_cv_cc_attribute=yes 6599else 6600 ntp_cv_cc_attribute=no 6601 6602fi 6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6604 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6607$as_echo "$ntp_cv_cc_attribute" >&6; } 6608case "$ntp_cv_cc_attribute" in 6609 yes) 6610 6611$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6612 6613esac 6614 6615 6616case "$GCC" in 6617 yes) 6618 SAVED_CFLAGS="$CFLAGS" 6619 CFLAGS="$CFLAGS -Wstrict-overflow" 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6621$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6622if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627 6628int 6629main () 6630{ 6631 6632 ; 6633 return 0; 6634} 6635_ACEOF 6636if ac_fn_c_try_compile "$LINENO"; then : 6637 ntp_cv_gcc_Wstrict_overflow=yes 6638else 6639 ntp_cv_gcc_Wstrict_overflow=no 6640 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6643 6644fi 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6646$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6647 # 6648 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6649 # flag to CFLAGS. 6650 # 6651 CFLAGS="$SAVED_CFLAGS -Winit-self" 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6653$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6654if ${ntp_cv_gcc_Winit_self+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660 6661int 6662main () 6663{ 6664 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669if ac_fn_c_try_compile "$LINENO"; then : 6670 ntp_cv_gcc_Winit_self=yes 6671else 6672 ntp_cv_gcc_Winit_self=no 6673 6674fi 6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6676 6677 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6680$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6681 CFLAGS="$SAVED_CFLAGS" 6682 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6683 # 6684 # $ntp_cv_gcc_Winit_self is tested later to add the 6685 # flag to CFLAGS_NTP. 6686 # 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6688$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6689if ${ntp_cv_gc_sections_runs+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 6693 origCFLAGS="$CFLAGS" 6694 CFLAGS="$CFLAGS -Wl,--gc-sections" 6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697 6698 #include <stdlib.h> 6699 #include <stdio.h> 6700 6701int 6702main () 6703{ 6704 6705 FILE * fpC; 6706 char buf[32]; 6707 size_t cch; 6708 int read_success_once; 6709 6710 fpC = fopen("conftest.c", "r"); 6711 if (NULL == fpC) 6712 exit(1); 6713 do { 6714 cch = fread(buf, sizeof(buf), 1, fpC); 6715 read_success_once |= (0 != cch); 6716 } while (0 != cch); 6717 if (!read_success_once) 6718 exit(2); 6719 if (!feof(fpC)) 6720 exit(3); 6721 if (0 != fclose(fpC)) 6722 exit(4); 6723 6724 exit(EXIT_SUCCESS); 6725 6726 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_c_try_link "$LINENO"; then : 6732 6733 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6734 ntp_cv_gc_sections_runs=no 6735 else 6736 ntp_cv_gc_sections_runs=no 6737 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6738 fi 6739 6740else 6741 ntp_cv_gc_sections_runs=no 6742 6743fi 6744rm -f core conftest.err conftest.$ac_objext \ 6745 conftest$ac_exeext conftest.$ac_ext 6746 CFLAGS="$origCFLAGS" 6747 { origCFLAGS=; unset origCFLAGS;} 6748 6749 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6752$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6753 case "$ntp_cv_gc_sections_runs" in 6754 yes) 6755 LDADD_LIBNTP="-Wl,--gc-sections" 6756 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6757 ;; 6758 no) 6759 LDADD_LIBNTP= 6760 ;; 6761 esac 6762 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6763 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6764 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6765 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6766 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6767 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6768 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6769 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6770 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6771 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6772 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6773 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6774 case "$ntp_cv_gcc_Winit_self" in 6775 yes) 6776 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6777 esac 6778 case "$ntp_cv_gcc_Wstrict_overflow" in 6779 yes) 6780 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6781 esac 6782 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6783esac 6784 6785 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6787$as_echo_n "checking additional compiler flags... " >&6; } 6788 # allow ntp_os_cflags to be preset to skip this stuff 6789 case "${ntp_os_cflags+set}" in 6790 set) 6791 ;; 6792 *) 6793 ntp_os_cflags= 6794 case "$host_os" in 6795 aix[1-3]*) 6796 ;; 6797 aix4.[0-2]*) 6798 # turn on additional headers 6799 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6800 ;; 6801 aix5.3*) 6802 # avoid circular dependencies in yp headers, and more 6803 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6804 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6805 ;; 6806 aix*) 6807 # XXX Only verified thru AIX6. 6808 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6809 # avoid circular dependencies in yp headers 6810 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6811 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6812 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6813 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6814 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6815 ;; 6816 amigaos) 6817 ntp_os_cflags="-DSYS_AMIGA" 6818 ;; 6819 darwin*|macosx*|rhapsody*) 6820 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6821 ;; 6822 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6823 case "$GCC" in 6824 yes) 6825 ;; 6826 *) 6827 # use Ansi compiler on HPUX, and some -Wp magic 6828 ntp_os_cflags="-Ae -Wp,-H18816" 6829 ;; 6830 esac 6831 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6832 ;; 6833 hpux*) 6834 case "$GCC" in 6835 yes) 6836 ;; 6837 *) 6838 # use Ansi compiler on HPUX 6839 ntp_os_cflags="-Ae" 6840 esac 6841 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6842 ;; 6843 irix6*) 6844 case "$CC" in 6845 cc) 6846 # do not use 64-bit compiler 6847 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6848 esac 6849 ;; 6850 nextstep3) 6851 ntp_os_cflags="-posix" 6852 ;; 6853 solaris1*|solaris2.[0-5]|solaris2.5.*) 6854 ;; 6855 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6856 ;; 6857 solaris2*|sunos5*) 6858 # turn on 64-bit file offset interface 6859 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6860 ;; 6861 vxworks*) 6862 case "$build" in 6863 $host) 6864 ;; 6865 *) 6866 # Quick and dirty sanity check 6867 case "$VX_KERNEL" in 6868 '') 6869 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6870 esac 6871 ntp_os_cflags="-DSYS_VXWORKS" 6872 esac 6873 ;; 6874 esac 6875 esac 6876 case "$ntp_os_cflags" in 6877 '') 6878 ntp_os_cflags_msg="none needed" 6879 ;; 6880 *) 6881 ntp_os_cflags_msg="$ntp_os_cflags" 6882 esac 6883 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6885$as_echo "$ntp_os_cflags_msg" >&6; } 6886 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6887 ### 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 6889$as_echo_n "checking additional linker flags... " >&6; } 6890 # HMS: The following might still need tweaking 6891 # allow ntp_os_ldflags to be preset to skip this stuff 6892 case "${ntp_os_ldflags+set}" in 6893 set) 6894 ;; 6895 *) 6896 ntp_os_ldflags= 6897 case "$host_os" in 6898 hpux*) 6899 case "$GCC" in 6900 yes) 6901 ntp_os_ldflags="-Wl,+allowdups" 6902 ;; 6903 esac 6904 ;; 6905 esac 6906 ;; 6907 esac 6908 case "$ntp_os_ldflags" in 6909 '') 6910 ntp_os_ldflags_msg="none needed" 6911 ;; 6912 *) 6913 ntp_os_ldflags_msg="$ntp_os_ldflags" 6914 esac 6915 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 6917$as_echo "$ntp_os_ldflags_msg" >&6; } 6918 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 6919 6920 6921 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6923$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6924if ${ac_cv_c_bigendian+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 ac_cv_c_bigendian=unknown 6928 # See if we're dealing with a universal compiler. 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931#ifndef __APPLE_CC__ 6932 not a universal capable compiler 6933 #endif 6934 typedef int dummy; 6935 6936_ACEOF 6937if ac_fn_c_try_compile "$LINENO"; then : 6938 6939 # Check for potential -arch flags. It is not universal unless 6940 # there are at least two -arch flags with different values. 6941 ac_arch= 6942 ac_prev= 6943 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6944 if test -n "$ac_prev"; then 6945 case $ac_word in 6946 i?86 | x86_64 | ppc | ppc64) 6947 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6948 ac_arch=$ac_word 6949 else 6950 ac_cv_c_bigendian=universal 6951 break 6952 fi 6953 ;; 6954 esac 6955 ac_prev= 6956 elif test "x$ac_word" = "x-arch"; then 6957 ac_prev=arch 6958 fi 6959 done 6960fi 6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6962 if test $ac_cv_c_bigendian = unknown; then 6963 # See if sys/param.h defines the BYTE_ORDER macro. 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966#include <sys/types.h> 6967 #include <sys/param.h> 6968 6969int 6970main () 6971{ 6972#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6973 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6974 && LITTLE_ENDIAN) 6975 bogus endian macros 6976 #endif 6977 6978 ; 6979 return 0; 6980} 6981_ACEOF 6982if ac_fn_c_try_compile "$LINENO"; then : 6983 # It does; now see whether it defined to BIG_ENDIAN or not. 6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985/* end confdefs.h. */ 6986#include <sys/types.h> 6987 #include <sys/param.h> 6988 6989int 6990main () 6991{ 6992#if BYTE_ORDER != BIG_ENDIAN 6993 not big endian 6994 #endif 6995 6996 ; 6997 return 0; 6998} 6999_ACEOF 7000if ac_fn_c_try_compile "$LINENO"; then : 7001 ac_cv_c_bigendian=yes 7002else 7003 ac_cv_c_bigendian=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006fi 7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7008 fi 7009 if test $ac_cv_c_bigendian = unknown; then 7010 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013#include <limits.h> 7014 7015int 7016main () 7017{ 7018#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 7019 bogus endian macros 7020 #endif 7021 7022 ; 7023 return 0; 7024} 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO"; then : 7027 # It does; now see whether it defined to _BIG_ENDIAN or not. 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029/* end confdefs.h. */ 7030#include <limits.h> 7031 7032int 7033main () 7034{ 7035#ifndef _BIG_ENDIAN 7036 not big endian 7037 #endif 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043if ac_fn_c_try_compile "$LINENO"; then : 7044 ac_cv_c_bigendian=yes 7045else 7046 ac_cv_c_bigendian=no 7047fi 7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7049fi 7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7051 fi 7052 if test $ac_cv_c_bigendian = unknown; then 7053 # Compile a test program. 7054 if test "$cross_compiling" = yes; then : 7055 # Try to guess by grepping values from an object file. 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058short int ascii_mm[] = 7059 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7060 short int ascii_ii[] = 7061 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7062 int use_ascii (int i) { 7063 return ascii_mm[i] + ascii_ii[i]; 7064 } 7065 short int ebcdic_ii[] = 7066 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7067 short int ebcdic_mm[] = 7068 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7069 int use_ebcdic (int i) { 7070 return ebcdic_mm[i] + ebcdic_ii[i]; 7071 } 7072 extern int foo; 7073 7074int 7075main () 7076{ 7077return use_ascii (foo) == use_ebcdic (foo); 7078 ; 7079 return 0; 7080} 7081_ACEOF 7082if ac_fn_c_try_compile "$LINENO"; then : 7083 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 7084 ac_cv_c_bigendian=yes 7085 fi 7086 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7087 if test "$ac_cv_c_bigendian" = unknown; then 7088 ac_cv_c_bigendian=no 7089 else 7090 # finding both strings is unlikely to happen, but who knows? 7091 ac_cv_c_bigendian=unknown 7092 fi 7093 fi 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7096else 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099$ac_includes_default 7100int 7101main () 7102{ 7103 7104 /* Are we little or big endian? From Harbison&Steele. */ 7105 union 7106 { 7107 long int l; 7108 char c[sizeof (long int)]; 7109 } u; 7110 u.l = 1; 7111 return u.c[sizeof (long int) - 1] == 1; 7112 7113 ; 7114 return 0; 7115} 7116_ACEOF 7117if ac_fn_c_try_run "$LINENO"; then : 7118 ac_cv_c_bigendian=no 7119else 7120 ac_cv_c_bigendian=yes 7121fi 7122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7123 conftest.$ac_objext conftest.beam conftest.$ac_ext 7124fi 7125 7126 fi 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7129$as_echo "$ac_cv_c_bigendian" >&6; } 7130 case $ac_cv_c_bigendian in #( 7131 yes) 7132 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 7133;; #( 7134 no) 7135 ;; #( 7136 universal) 7137 7138$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 7139 7140 ;; #( 7141 *) 7142 as_fn_error $? "unknown endianness 7143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 7144 esac 7145 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 7147$as_echo_n "checking for working volatile... " >&6; } 7148if ${ac_cv_c_volatile+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152/* end confdefs.h. */ 7153 7154int 7155main () 7156{ 7157 7158volatile int x; 7159int * volatile y = (int *) 0; 7160return !x && !y; 7161 ; 7162 return 0; 7163} 7164_ACEOF 7165if ac_fn_c_try_compile "$LINENO"; then : 7166 ac_cv_c_volatile=yes 7167else 7168 ac_cv_c_volatile=no 7169fi 7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7171fi 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 7173$as_echo "$ac_cv_c_volatile" >&6; } 7174if test $ac_cv_c_volatile = no; then 7175 7176$as_echo "#define volatile /**/" >>confdefs.h 7177 7178fi 7179 7180ac_ext=c 7181ac_cpp='$CPP $CPPFLAGS' 7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7184ac_compiler_gnu=$ac_cv_c_compiler_gnu 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7186$as_echo_n "checking how to run the C preprocessor... " >&6; } 7187# On Suns, sometimes $CPP names a directory. 7188if test -n "$CPP" && test -d "$CPP"; then 7189 CPP= 7190fi 7191if test -z "$CPP"; then 7192 if ${ac_cv_prog_CPP+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 # Double quotes because CPP needs to be expanded 7196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7197 do 7198 ac_preproc_ok=false 7199for ac_c_preproc_warn_flag in '' yes 7200do 7201 # Use a header file that comes with gcc, so configuring glibc 7202 # with a fresh cross-compiler works. 7203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7204 # <limits.h> exists even on freestanding compilers. 7205 # On the NeXT, cc -E runs the code through the compiler's parser, 7206 # not just through cpp. "Syntax error" is here to catch this case. 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209#ifdef __STDC__ 7210# include <limits.h> 7211#else 7212# include <assert.h> 7213#endif 7214 Syntax error 7215_ACEOF 7216if ac_fn_c_try_cpp "$LINENO"; then : 7217 7218else 7219 # Broken: fails on valid input. 7220continue 7221fi 7222rm -f conftest.err conftest.i conftest.$ac_ext 7223 7224 # OK, works on sane cases. Now check whether nonexistent headers 7225 # can be detected and how. 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228#include <ac_nonexistent.h> 7229_ACEOF 7230if ac_fn_c_try_cpp "$LINENO"; then : 7231 # Broken: success on invalid input. 7232continue 7233else 7234 # Passes both tests. 7235ac_preproc_ok=: 7236break 7237fi 7238rm -f conftest.err conftest.i conftest.$ac_ext 7239 7240done 7241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7242rm -f conftest.i conftest.err conftest.$ac_ext 7243if $ac_preproc_ok; then : 7244 break 7245fi 7246 7247 done 7248 ac_cv_prog_CPP=$CPP 7249 7250fi 7251 CPP=$ac_cv_prog_CPP 7252else 7253 ac_cv_prog_CPP=$CPP 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7256$as_echo "$CPP" >&6; } 7257ac_preproc_ok=false 7258for ac_c_preproc_warn_flag in '' yes 7259do 7260 # Use a header file that comes with gcc, so configuring glibc 7261 # with a fresh cross-compiler works. 7262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7263 # <limits.h> exists even on freestanding compilers. 7264 # On the NeXT, cc -E runs the code through the compiler's parser, 7265 # not just through cpp. "Syntax error" is here to catch this case. 7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7267/* end confdefs.h. */ 7268#ifdef __STDC__ 7269# include <limits.h> 7270#else 7271# include <assert.h> 7272#endif 7273 Syntax error 7274_ACEOF 7275if ac_fn_c_try_cpp "$LINENO"; then : 7276 7277else 7278 # Broken: fails on valid input. 7279continue 7280fi 7281rm -f conftest.err conftest.i conftest.$ac_ext 7282 7283 # OK, works on sane cases. Now check whether nonexistent headers 7284 # can be detected and how. 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287#include <ac_nonexistent.h> 7288_ACEOF 7289if ac_fn_c_try_cpp "$LINENO"; then : 7290 # Broken: success on invalid input. 7291continue 7292else 7293 # Passes both tests. 7294ac_preproc_ok=: 7295break 7296fi 7297rm -f conftest.err conftest.i conftest.$ac_ext 7298 7299done 7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7301rm -f conftest.i conftest.err conftest.$ac_ext 7302if $ac_preproc_ok; then : 7303 7304else 7305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7307as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7308See \`config.log' for more details" "$LINENO" 5; } 7309fi 7310 7311ac_ext=c 7312ac_cpp='$CPP $CPPFLAGS' 7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7315ac_compiler_gnu=$ac_cv_c_compiler_gnu 7316 7317 7318 7319ac_ext=c 7320ac_cpp='$CPP $CPPFLAGS' 7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7323ac_compiler_gnu=$ac_cv_c_compiler_gnu 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7325$as_echo_n "checking how to run the C preprocessor... " >&6; } 7326# On Suns, sometimes $CPP names a directory. 7327if test -n "$CPP" && test -d "$CPP"; then 7328 CPP= 7329fi 7330if test -z "$CPP"; then 7331 if ${ac_cv_prog_CPP+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 # Double quotes because CPP needs to be expanded 7335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7336 do 7337 ac_preproc_ok=false 7338for ac_c_preproc_warn_flag in '' yes 7339do 7340 # Use a header file that comes with gcc, so configuring glibc 7341 # with a fresh cross-compiler works. 7342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7343 # <limits.h> exists even on freestanding compilers. 7344 # On the NeXT, cc -E runs the code through the compiler's parser, 7345 # not just through cpp. "Syntax error" is here to catch this case. 7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348#ifdef __STDC__ 7349# include <limits.h> 7350#else 7351# include <assert.h> 7352#endif 7353 Syntax error 7354_ACEOF 7355if ac_fn_c_try_cpp "$LINENO"; then : 7356 7357else 7358 # Broken: fails on valid input. 7359continue 7360fi 7361rm -f conftest.err conftest.i conftest.$ac_ext 7362 7363 # OK, works on sane cases. Now check whether nonexistent headers 7364 # can be detected and how. 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#include <ac_nonexistent.h> 7368_ACEOF 7369if ac_fn_c_try_cpp "$LINENO"; then : 7370 # Broken: success on invalid input. 7371continue 7372else 7373 # Passes both tests. 7374ac_preproc_ok=: 7375break 7376fi 7377rm -f conftest.err conftest.i conftest.$ac_ext 7378 7379done 7380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7381rm -f conftest.i conftest.err conftest.$ac_ext 7382if $ac_preproc_ok; then : 7383 break 7384fi 7385 7386 done 7387 ac_cv_prog_CPP=$CPP 7388 7389fi 7390 CPP=$ac_cv_prog_CPP 7391else 7392 ac_cv_prog_CPP=$CPP 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7395$as_echo "$CPP" >&6; } 7396ac_preproc_ok=false 7397for ac_c_preproc_warn_flag in '' yes 7398do 7399 # Use a header file that comes with gcc, so configuring glibc 7400 # with a fresh cross-compiler works. 7401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7402 # <limits.h> exists even on freestanding compilers. 7403 # On the NeXT, cc -E runs the code through the compiler's parser, 7404 # not just through cpp. "Syntax error" is here to catch this case. 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407#ifdef __STDC__ 7408# include <limits.h> 7409#else 7410# include <assert.h> 7411#endif 7412 Syntax error 7413_ACEOF 7414if ac_fn_c_try_cpp "$LINENO"; then : 7415 7416else 7417 # Broken: fails on valid input. 7418continue 7419fi 7420rm -f conftest.err conftest.i conftest.$ac_ext 7421 7422 # OK, works on sane cases. Now check whether nonexistent headers 7423 # can be detected and how. 7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7425/* end confdefs.h. */ 7426#include <ac_nonexistent.h> 7427_ACEOF 7428if ac_fn_c_try_cpp "$LINENO"; then : 7429 # Broken: success on invalid input. 7430continue 7431else 7432 # Passes both tests. 7433ac_preproc_ok=: 7434break 7435fi 7436rm -f conftest.err conftest.i conftest.$ac_ext 7437 7438done 7439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7440rm -f conftest.i conftest.err conftest.$ac_ext 7441if $ac_preproc_ok; then : 7442 7443else 7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7446as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7447See \`config.log' for more details" "$LINENO" 5; } 7448fi 7449 7450ac_ext=c 7451ac_cpp='$CPP $CPPFLAGS' 7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7454ac_compiler_gnu=$ac_cv_c_compiler_gnu 7455 7456# Do we need CXX for anything besides google test? 7457ac_ext=cpp 7458ac_cpp='$CXXCPP $CPPFLAGS' 7459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7462if test -z "$CXX"; then 7463 if test -n "$CCC"; then 7464 CXX=$CCC 7465 else 7466 if test -n "$ac_tool_prefix"; then 7467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7468 do 7469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_CXX+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$CXX"; then 7477 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7486 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496CXX=$ac_cv_prog_CXX 7497if test -n "$CXX"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7499$as_echo "$CXX" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 7506 test -n "$CXX" && break 7507 done 7508fi 7509if test -z "$CXX"; then 7510 ac_ct_CXX=$CXX 7511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7512do 7513 # Extract the first word of "$ac_prog", so it can be a program name with args. 7514set dummy $ac_prog; ac_word=$2 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7516$as_echo_n "checking for $ac_word... " >&6; } 7517if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 if test -n "$ac_ct_CXX"; then 7521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 test -z "$as_dir" && as_dir=. 7528 for ac_exec_ext in '' $ac_executable_extensions; do 7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7530 ac_cv_prog_ac_ct_CXX="$ac_prog" 7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7532 break 2 7533 fi 7534done 7535 done 7536IFS=$as_save_IFS 7537 7538fi 7539fi 7540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7541if test -n "$ac_ct_CXX"; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7543$as_echo "$ac_ct_CXX" >&6; } 7544else 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7546$as_echo "no" >&6; } 7547fi 7548 7549 7550 test -n "$ac_ct_CXX" && break 7551done 7552 7553 if test "x$ac_ct_CXX" = x; then 7554 CXX="g++" 7555 else 7556 case $cross_compiling:$ac_tool_warned in 7557yes:) 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7560ac_tool_warned=yes ;; 7561esac 7562 CXX=$ac_ct_CXX 7563 fi 7564fi 7565 7566 fi 7567fi 7568# Provide some information about the compiler. 7569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7570set X $ac_compile 7571ac_compiler=$2 7572for ac_option in --version -v -V -qversion; do 7573 { { ac_try="$ac_compiler $ac_option >&5" 7574case "(($ac_try" in 7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7576 *) ac_try_echo=$ac_try;; 7577esac 7578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7579$as_echo "$ac_try_echo"; } >&5 7580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7581 ac_status=$? 7582 if test -s conftest.err; then 7583 sed '10a\ 7584... rest of stderr output deleted ... 7585 10q' conftest.err >conftest.er1 7586 cat conftest.er1 >&5 7587 fi 7588 rm -f conftest.er1 conftest.err 7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7590 test $ac_status = 0; } 7591done 7592 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7594$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7595if ${ac_cv_cxx_compiler_gnu+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600 7601int 7602main () 7603{ 7604#ifndef __GNUC__ 7605 choke me 7606#endif 7607 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612if ac_fn_cxx_try_compile "$LINENO"; then : 7613 ac_compiler_gnu=yes 7614else 7615 ac_compiler_gnu=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7619 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7622$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7623if test $ac_compiler_gnu = yes; then 7624 GXX=yes 7625else 7626 GXX= 7627fi 7628ac_test_CXXFLAGS=${CXXFLAGS+set} 7629ac_save_CXXFLAGS=$CXXFLAGS 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7631$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7632if ${ac_cv_prog_cxx_g+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7636 ac_cxx_werror_flag=yes 7637 ac_cv_prog_cxx_g=no 7638 CXXFLAGS="-g" 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641 7642int 7643main () 7644{ 7645 7646 ; 7647 return 0; 7648} 7649_ACEOF 7650if ac_fn_cxx_try_compile "$LINENO"; then : 7651 ac_cv_prog_cxx_g=yes 7652else 7653 CXXFLAGS="" 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656 7657int 7658main () 7659{ 7660 7661 ; 7662 return 0; 7663} 7664_ACEOF 7665if ac_fn_cxx_try_compile "$LINENO"; then : 7666 7667else 7668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7669 CXXFLAGS="-g" 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671/* end confdefs.h. */ 7672 7673int 7674main () 7675{ 7676 7677 ; 7678 return 0; 7679} 7680_ACEOF 7681if ac_fn_cxx_try_compile "$LINENO"; then : 7682 ac_cv_prog_cxx_g=yes 7683fi 7684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7685fi 7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7689 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7690fi 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7692$as_echo "$ac_cv_prog_cxx_g" >&6; } 7693if test "$ac_test_CXXFLAGS" = set; then 7694 CXXFLAGS=$ac_save_CXXFLAGS 7695elif test $ac_cv_prog_cxx_g = yes; then 7696 if test "$GXX" = yes; then 7697 CXXFLAGS="-g -O2" 7698 else 7699 CXXFLAGS="-g" 7700 fi 7701else 7702 if test "$GXX" = yes; then 7703 CXXFLAGS="-O2" 7704 else 7705 CXXFLAGS= 7706 fi 7707fi 7708ac_ext=c 7709ac_cpp='$CPP $CPPFLAGS' 7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7712ac_compiler_gnu=$ac_cv_c_compiler_gnu 7713 7714depcc="$CXX" am_compiler_list= 7715 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7717$as_echo_n "checking dependency style of $depcc... " >&6; } 7718if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7722 # We make a subdir and do the tests there. Otherwise we can end up 7723 # making bogus files that we don't know about and never remove. For 7724 # instance it was reported that on HP-UX the gcc test will end up 7725 # making a dummy file named 'D' -- because '-MD' means "put the output 7726 # in D". 7727 rm -rf conftest.dir 7728 mkdir conftest.dir 7729 # Copy depcomp to subdir because otherwise we won't find it if we're 7730 # using a relative directory. 7731 cp "$am_depcomp" conftest.dir 7732 cd conftest.dir 7733 # We will build objects and dependencies in a subdirectory because 7734 # it helps to detect inapplicable dependency modes. For instance 7735 # both Tru64's cc and ICC support -MD to output dependencies as a 7736 # side effect of compilation, but ICC will put the dependencies in 7737 # the current directory while Tru64 will put them in the object 7738 # directory. 7739 mkdir sub 7740 7741 am_cv_CXX_dependencies_compiler_type=none 7742 if test "$am_compiler_list" = ""; then 7743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7744 fi 7745 am__universal=false 7746 case " $depcc " in #( 7747 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7748 esac 7749 7750 for depmode in $am_compiler_list; do 7751 # Setup a source with many dependencies, because some compilers 7752 # like to wrap large dependency lists on column 80 (with \), and 7753 # we should not choose a depcomp mode which is confused by this. 7754 # 7755 # We need to recreate these files for each test, as the compiler may 7756 # overwrite some of them when testing with obscure command lines. 7757 # This happens at least with the AIX C compiler. 7758 : > sub/conftest.c 7759 for i in 1 2 3 4 5 6; do 7760 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7762 # Solaris 10 /bin/sh. 7763 echo '/* dummy */' > sub/conftst$i.h 7764 done 7765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7766 7767 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7768 # mode. It turns out that the SunPro C++ compiler does not properly 7769 # handle '-M -o', and we need to detect this. Also, some Intel 7770 # versions had trouble with output in subdirs. 7771 am__obj=sub/conftest.${OBJEXT-o} 7772 am__minus_obj="-o $am__obj" 7773 case $depmode in 7774 gcc) 7775 # This depmode causes a compiler race in universal mode. 7776 test "$am__universal" = false || continue 7777 ;; 7778 nosideeffect) 7779 # After this tag, mechanisms are not by side-effect, so they'll 7780 # only be used when explicitly requested. 7781 if test "x$enable_dependency_tracking" = xyes; then 7782 continue 7783 else 7784 break 7785 fi 7786 ;; 7787 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7788 # This compiler won't grok '-c -o', but also, the minuso test has 7789 # not run yet. These depmodes are late enough in the game, and 7790 # so weak that their functioning should not be impacted. 7791 am__obj=conftest.${OBJEXT-o} 7792 am__minus_obj= 7793 ;; 7794 none) break ;; 7795 esac 7796 if depmode=$depmode \ 7797 source=sub/conftest.c object=$am__obj \ 7798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7800 >/dev/null 2>conftest.err && 7801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7805 # icc doesn't choke on unknown options, it will just issue warnings 7806 # or remarks (even with -Werror). So we grep stderr for any message 7807 # that says an option was ignored or not supported. 7808 # When given -MP, icc 7.0 and 7.1 complain thusly: 7809 # icc: Command line warning: ignoring option '-M'; no argument required 7810 # The diagnosis changed in icc 8.0: 7811 # icc: Command line remark: option '-MP' not supported 7812 if (grep 'ignoring option' conftest.err || 7813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7814 am_cv_CXX_dependencies_compiler_type=$depmode 7815 break 7816 fi 7817 fi 7818 done 7819 7820 cd .. 7821 rm -rf conftest.dir 7822else 7823 am_cv_CXX_dependencies_compiler_type=none 7824fi 7825 7826fi 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7828$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7829CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7830 7831 if 7832 test "x$enable_dependency_tracking" != xno \ 7833 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7834 am__fastdepCXX_TRUE= 7835 am__fastdepCXX_FALSE='#' 7836else 7837 am__fastdepCXX_TRUE='#' 7838 am__fastdepCXX_FALSE= 7839fi 7840 7841 7842for ac_prog in 'bison -y' byacc 7843do 7844 # Extract the first word of "$ac_prog", so it can be a program name with args. 7845set dummy $ac_prog; ac_word=$2 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7847$as_echo_n "checking for $ac_word... " >&6; } 7848if ${ac_cv_prog_YACC+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 if test -n "$YACC"; then 7852 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7853else 7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7855for as_dir in $PATH 7856do 7857 IFS=$as_save_IFS 7858 test -z "$as_dir" && as_dir=. 7859 for ac_exec_ext in '' $ac_executable_extensions; do 7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7861 ac_cv_prog_YACC="$ac_prog" 7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7863 break 2 7864 fi 7865done 7866 done 7867IFS=$as_save_IFS 7868 7869fi 7870fi 7871YACC=$ac_cv_prog_YACC 7872if test -n "$YACC"; then 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7874$as_echo "$YACC" >&6; } 7875else 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7877$as_echo "no" >&6; } 7878fi 7879 7880 7881 test -n "$YACC" && break 7882done 7883test -n "$YACC" || YACC="yacc" 7884 7885if test "x$CC" != xcc; then 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7887$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7888else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7890$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7891fi 7892set dummy $CC; ac_cc=`$as_echo "$2" | 7893 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7894if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899 7900int 7901main () 7902{ 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908# Make sure it works both with $CC and with simple cc. 7909# We do the test twice because some compilers refuse to overwrite an 7910# existing .o file with -o, though they will create one. 7911ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7912rm -f conftest2.* 7913if { { case "(($ac_try" in 7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7915 *) ac_try_echo=$ac_try;; 7916esac 7917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7918$as_echo "$ac_try_echo"; } >&5 7919 (eval "$ac_try") 2>&5 7920 ac_status=$? 7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7922 test $ac_status = 0; } && 7923 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7925 *) ac_try_echo=$ac_try;; 7926esac 7927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7928$as_echo "$ac_try_echo"; } >&5 7929 (eval "$ac_try") 2>&5 7930 ac_status=$? 7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7932 test $ac_status = 0; }; 7933then 7934 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7935 if test "x$CC" != xcc; then 7936 # Test first that cc exists at all. 7937 if { ac_try='cc -c conftest.$ac_ext >&5' 7938 { { case "(($ac_try" in 7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7940 *) ac_try_echo=$ac_try;; 7941esac 7942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7943$as_echo "$ac_try_echo"; } >&5 7944 (eval "$ac_try") 2>&5 7945 ac_status=$? 7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7947 test $ac_status = 0; }; }; then 7948 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7949 rm -f conftest2.* 7950 if { { case "(($ac_try" in 7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7952 *) ac_try_echo=$ac_try;; 7953esac 7954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7955$as_echo "$ac_try_echo"; } >&5 7956 (eval "$ac_try") 2>&5 7957 ac_status=$? 7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7959 test $ac_status = 0; } && 7960 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7962 *) ac_try_echo=$ac_try;; 7963esac 7964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7965$as_echo "$ac_try_echo"; } >&5 7966 (eval "$ac_try") 2>&5 7967 ac_status=$? 7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7969 test $ac_status = 0; }; 7970 then 7971 # cc works too. 7972 : 7973 else 7974 # cc exists but doesn't like -o. 7975 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7976 fi 7977 fi 7978 fi 7979else 7980 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7981fi 7982rm -f core conftest* 7983 7984fi 7985if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7987$as_echo "yes" >&6; } 7988else 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7990$as_echo "no" >&6; } 7991 7992$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7993 7994fi 7995 7996 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5 7998$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; } 7999 8000 8001 ac_ext=c 8002ac_cpp='$CPP $CPPFLAGS' 8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8005ac_compiler_gnu=$ac_cv_c_compiler_gnu 8006 8007 8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8009/* end confdefs.h. */ 8010 8011 struct foo_s {int i1; int i2;}; 8012 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; } 8013 8014_ACEOF 8015if ac_fn_c_try_compile "$LINENO"; then : 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8017$as_echo "yes" >&6; } 8018else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020$as_echo "no" >&6; } 8021 8022$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h 8023 8024fi 8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8026 8027 ac_ext=c 8028ac_cpp='$CPP $CPPFLAGS' 8029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8031ac_compiler_gnu=$ac_cv_c_compiler_gnu 8032 8033 8034 8035 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5 8037$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; } 8038ntp_vpath_hack="no" 8039case "$srcdir::${force_ntp_vpath_hack-no}" in 8040 .::*) 8041 ;; # VPATH_HACK path is for VPATH builds only. 8042 *::yes) 8043 ntp_vpath_hack="yes" 8044 ;; 8045 *::*) 8046 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8047 '') 8048 ntp_vpath_hack="yes" 8049 esac 8050esac 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5 8052$as_echo "$ntp_vpath_hack" >&6; } 8053 if test x$ntp_vpath_hack = xyes; then 8054 VPATH_HACK_TRUE= 8055 VPATH_HACK_FALSE='#' 8056else 8057 VPATH_HACK_TRUE='#' 8058 VPATH_HACK_FALSE= 8059fi 8060 8061 8062 8063 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 8065$as_echo_n "checking for install dir and man conventions... " >&6; } 8066 8067 8068# Check whether --with-locfile was given. 8069if test "${with_locfile+set}" = set; then : 8070 withval=$with_locfile; 8071else 8072 with_locfile=no 8073 8074fi 8075 8076 8077( \ 8078 SENTINEL_DIR="$PWD" && \ 8079 cd $srcdir/sntp && \ 8080 case "$with_locfile" in \ 8081 yes|no|'') \ 8082 scripts/genLocInfo -d "$SENTINEL_DIR" \ 8083 ;; \ 8084 *) \ 8085 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 8086 ;; \ 8087 esac \ 8088) > genLocInfo.i 2> genLocInfo.err 8089. ./genLocInfo.i 8090 8091case "$GENLOCINFO" in 8092 OK) 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 8094$as_echo "in file $GENLOCINFOFILE" >&6; } 8095 rm genLocInfo.err genLocInfo.i 8096 ;; 8097 *) 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 8099$as_echo "failed." >&6; } 8100 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 8101 ;; 8102esac 8103 8104 if test "$CALC_TICKADJ_MS" ; then 8105 WANT_CALC_TICKADJ_MS_TRUE= 8106 WANT_CALC_TICKADJ_MS_FALSE='#' 8107else 8108 WANT_CALC_TICKADJ_MS_TRUE='#' 8109 WANT_CALC_TICKADJ_MS_FALSE= 8110fi 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 if test -z "$NTPSWEEP_NI" ; then 8155 INSTALL_NTPSWEEP_TRUE= 8156 INSTALL_NTPSWEEP_FALSE='#' 8157else 8158 INSTALL_NTPSWEEP_TRUE='#' 8159 INSTALL_NTPSWEEP_FALSE= 8160fi 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 if test -z "$UPDATE_LEAP_NI" ; then 8203 INSTALL_UPDATE_LEAP_TRUE= 8204 INSTALL_UPDATE_LEAP_FALSE='#' 8205else 8206 INSTALL_UPDATE_LEAP_TRUE='#' 8207 INSTALL_UPDATE_LEAP_FALSE= 8208fi 8209 8210 8211 8212if test -n "$ac_tool_prefix"; then 8213 for ac_prog in ar lib "link -lib" 8214 do 8215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8216set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8218$as_echo_n "checking for $ac_word... " >&6; } 8219if ${ac_cv_prog_AR+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 if test -n "$AR"; then 8223 ac_cv_prog_AR="$AR" # Let the user override the test. 8224else 8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8226for as_dir in $PATH 8227do 8228 IFS=$as_save_IFS 8229 test -z "$as_dir" && as_dir=. 8230 for ac_exec_ext in '' $ac_executable_extensions; do 8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8232 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8234 break 2 8235 fi 8236done 8237 done 8238IFS=$as_save_IFS 8239 8240fi 8241fi 8242AR=$ac_cv_prog_AR 8243if test -n "$AR"; then 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8245$as_echo "$AR" >&6; } 8246else 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248$as_echo "no" >&6; } 8249fi 8250 8251 8252 test -n "$AR" && break 8253 done 8254fi 8255if test -z "$AR"; then 8256 ac_ct_AR=$AR 8257 for ac_prog in ar lib "link -lib" 8258do 8259 # Extract the first word of "$ac_prog", so it can be a program name with args. 8260set dummy $ac_prog; ac_word=$2 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8262$as_echo_n "checking for $ac_word... " >&6; } 8263if ${ac_cv_prog_ac_ct_AR+:} false; then : 8264 $as_echo_n "(cached) " >&6 8265else 8266 if test -n "$ac_ct_AR"; then 8267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8268else 8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8270for as_dir in $PATH 8271do 8272 IFS=$as_save_IFS 8273 test -z "$as_dir" && as_dir=. 8274 for ac_exec_ext in '' $ac_executable_extensions; do 8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8276 ac_cv_prog_ac_ct_AR="$ac_prog" 8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8278 break 2 8279 fi 8280done 8281 done 8282IFS=$as_save_IFS 8283 8284fi 8285fi 8286ac_ct_AR=$ac_cv_prog_ac_ct_AR 8287if test -n "$ac_ct_AR"; then 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8289$as_echo "$ac_ct_AR" >&6; } 8290else 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8292$as_echo "no" >&6; } 8293fi 8294 8295 8296 test -n "$ac_ct_AR" && break 8297done 8298 8299 if test "x$ac_ct_AR" = x; then 8300 AR="false" 8301 else 8302 case $cross_compiling:$ac_tool_warned in 8303yes:) 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8306ac_tool_warned=yes ;; 8307esac 8308 AR=$ac_ct_AR 8309 fi 8310fi 8311 8312: ${AR=ar} 8313 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 8315$as_echo_n "checking the archiver ($AR) interface... " >&6; } 8316if ${am_cv_ar_interface+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 ac_ext=c 8320ac_cpp='$CPP $CPPFLAGS' 8321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8323ac_compiler_gnu=$ac_cv_c_compiler_gnu 8324 8325 am_cv_ar_interface=ar 8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8327/* end confdefs.h. */ 8328int some_variable = 0; 8329_ACEOF 8330if ac_fn_c_try_compile "$LINENO"; then : 8331 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 8332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8333 (eval $am_ar_try) 2>&5 8334 ac_status=$? 8335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8336 test $ac_status = 0; } 8337 if test "$ac_status" -eq 0; then 8338 am_cv_ar_interface=ar 8339 else 8340 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 8341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8342 (eval $am_ar_try) 2>&5 8343 ac_status=$? 8344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8345 test $ac_status = 0; } 8346 if test "$ac_status" -eq 0; then 8347 am_cv_ar_interface=lib 8348 else 8349 am_cv_ar_interface=unknown 8350 fi 8351 fi 8352 rm -f conftest.lib libconftest.a 8353 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356 ac_ext=c 8357ac_cpp='$CPP $CPPFLAGS' 8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8360ac_compiler_gnu=$ac_cv_c_compiler_gnu 8361 8362fi 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 8364$as_echo "$am_cv_ar_interface" >&6; } 8365 8366case $am_cv_ar_interface in 8367ar) 8368 ;; 8369lib) 8370 # Microsoft lib, so override with the ar-lib wrapper script. 8371 # FIXME: It is wrong to rewrite AR. 8372 # But if we don't then we get into trouble of one sort or another. 8373 # A longer-term fix would be to have automake use am__AR in this case, 8374 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 8375 # similar. 8376 AR="$am_aux_dir/ar-lib $AR" 8377 ;; 8378unknown) 8379 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 8380 ;; 8381esac 8382 8383 8384 8385# So far, the only shared library we might use is libopts. 8386# It's a small library - we might as well use a static version of it. 8387# Check whether --enable-shared was given. 8388if test "${enable_shared+set}" = set; then : 8389 enableval=$enable_shared; p=${PACKAGE-default} 8390 case $enableval in 8391 yes) enable_shared=yes ;; 8392 no) enable_shared=no ;; 8393 *) 8394 enable_shared=no 8395 # Look at the argument we got. We use all the common list separators. 8396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8397 for pkg in $enableval; do 8398 IFS="$lt_save_ifs" 8399 if test "X$pkg" = "X$p"; then 8400 enable_shared=yes 8401 fi 8402 done 8403 IFS="$lt_save_ifs" 8404 ;; 8405 esac 8406else 8407 enable_shared=no 8408fi 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418case `pwd` in 8419 *\ * | *\ *) 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8421$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8422esac 8423 8424 8425 8426macro_version='2.4.2' 8427macro_revision='1.3337' 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441ltmain="$ac_aux_dir/ltmain.sh" 8442 8443# Backslashify metacharacters that are still active within 8444# double-quoted strings. 8445sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8446 8447# Same as above, but do not quote variable references. 8448double_quote_subst='s/\(["`\\]\)/\\\1/g' 8449 8450# Sed substitution to delay expansion of an escaped shell variable in a 8451# double_quote_subst'ed string. 8452delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8453 8454# Sed substitution to delay expansion of an escaped single quote. 8455delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8456 8457# Sed substitution to avoid accidental globbing in evaled expressions 8458no_glob_subst='s/\*/\\\*/g' 8459 8460ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8462ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8463 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8465$as_echo_n "checking how to print strings... " >&6; } 8466# Test print first, because it will be a builtin if present. 8467if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8468 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8469 ECHO='print -r --' 8470elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8471 ECHO='printf %s\n' 8472else 8473 # Use this function as a fallback that always works. 8474 func_fallback_echo () 8475 { 8476 eval 'cat <<_LTECHO_EOF 8477$1 8478_LTECHO_EOF' 8479 } 8480 ECHO='func_fallback_echo' 8481fi 8482 8483# func_echo_all arg... 8484# Invoke $ECHO with all args, space-separated. 8485func_echo_all () 8486{ 8487 $ECHO "" 8488} 8489 8490case "$ECHO" in 8491 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8492$as_echo "printf" >&6; } ;; 8493 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8494$as_echo "print -r" >&6; } ;; 8495 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8496$as_echo "cat" >&6; } ;; 8497esac 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8513$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8514if ${ac_cv_path_SED+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8518 for ac_i in 1 2 3 4 5 6 7; do 8519 ac_script="$ac_script$as_nl$ac_script" 8520 done 8521 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8522 { ac_script=; unset ac_script;} 8523 if test -z "$SED"; then 8524 ac_path_SED_found=false 8525 # Loop through the user's path and test for each of PROGNAME-LIST 8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8527for as_dir in $PATH 8528do 8529 IFS=$as_save_IFS 8530 test -z "$as_dir" && as_dir=. 8531 for ac_prog in sed gsed; do 8532 for ac_exec_ext in '' $ac_executable_extensions; do 8533 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8534 as_fn_executable_p "$ac_path_SED" || continue 8535# Check for GNU ac_path_SED and select it if it is found. 8536 # Check for GNU $ac_path_SED 8537case `"$ac_path_SED" --version 2>&1` in 8538*GNU*) 8539 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8540*) 8541 ac_count=0 8542 $as_echo_n 0123456789 >"conftest.in" 8543 while : 8544 do 8545 cat "conftest.in" "conftest.in" >"conftest.tmp" 8546 mv "conftest.tmp" "conftest.in" 8547 cp "conftest.in" "conftest.nl" 8548 $as_echo '' >> "conftest.nl" 8549 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8551 as_fn_arith $ac_count + 1 && ac_count=$as_val 8552 if test $ac_count -gt ${ac_path_SED_max-0}; then 8553 # Best one so far, save it but keep looking for a better one 8554 ac_cv_path_SED="$ac_path_SED" 8555 ac_path_SED_max=$ac_count 8556 fi 8557 # 10*(2^10) chars as input seems more than enough 8558 test $ac_count -gt 10 && break 8559 done 8560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8561esac 8562 8563 $ac_path_SED_found && break 3 8564 done 8565 done 8566 done 8567IFS=$as_save_IFS 8568 if test -z "$ac_cv_path_SED"; then 8569 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8570 fi 8571else 8572 ac_cv_path_SED=$SED 8573fi 8574 8575fi 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8577$as_echo "$ac_cv_path_SED" >&6; } 8578 SED="$ac_cv_path_SED" 8579 rm -f conftest.sed 8580 8581test -z "$SED" && SED=sed 8582Xsed="$SED -e 1s/^X//" 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8595$as_echo_n "checking for fgrep... " >&6; } 8596if ${ac_cv_path_FGREP+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8600 then ac_cv_path_FGREP="$GREP -F" 8601 else 8602 if test -z "$FGREP"; then 8603 ac_path_FGREP_found=false 8604 # Loop through the user's path and test for each of PROGNAME-LIST 8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8607do 8608 IFS=$as_save_IFS 8609 test -z "$as_dir" && as_dir=. 8610 for ac_prog in fgrep; do 8611 for ac_exec_ext in '' $ac_executable_extensions; do 8612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8613 as_fn_executable_p "$ac_path_FGREP" || continue 8614# Check for GNU ac_path_FGREP and select it if it is found. 8615 # Check for GNU $ac_path_FGREP 8616case `"$ac_path_FGREP" --version 2>&1` in 8617*GNU*) 8618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8619*) 8620 ac_count=0 8621 $as_echo_n 0123456789 >"conftest.in" 8622 while : 8623 do 8624 cat "conftest.in" "conftest.in" >"conftest.tmp" 8625 mv "conftest.tmp" "conftest.in" 8626 cp "conftest.in" "conftest.nl" 8627 $as_echo 'FGREP' >> "conftest.nl" 8628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8630 as_fn_arith $ac_count + 1 && ac_count=$as_val 8631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8632 # Best one so far, save it but keep looking for a better one 8633 ac_cv_path_FGREP="$ac_path_FGREP" 8634 ac_path_FGREP_max=$ac_count 8635 fi 8636 # 10*(2^10) chars as input seems more than enough 8637 test $ac_count -gt 10 && break 8638 done 8639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8640esac 8641 8642 $ac_path_FGREP_found && break 3 8643 done 8644 done 8645 done 8646IFS=$as_save_IFS 8647 if test -z "$ac_cv_path_FGREP"; then 8648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8649 fi 8650else 8651 ac_cv_path_FGREP=$FGREP 8652fi 8653 8654 fi 8655fi 8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8657$as_echo "$ac_cv_path_FGREP" >&6; } 8658 FGREP="$ac_cv_path_FGREP" 8659 8660 8661test -z "$GREP" && GREP=grep 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681# Check whether --with-gnu-ld was given. 8682if test "${with_gnu_ld+set}" = set; then : 8683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8684else 8685 with_gnu_ld=no 8686fi 8687 8688ac_prog=ld 8689if test "$GCC" = yes; then 8690 # Check if gcc -print-prog-name=ld gives a path. 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8692$as_echo_n "checking for ld used by $CC... " >&6; } 8693 case $host in 8694 *-*-mingw*) 8695 # gcc leaves a trailing carriage return which upsets mingw 8696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8697 *) 8698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8699 esac 8700 case $ac_prog in 8701 # Accept absolute paths. 8702 [\\/]* | ?:[\\/]*) 8703 re_direlt='/[^/][^/]*/\.\./' 8704 # Canonicalize the pathname of ld 8705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8708 done 8709 test -z "$LD" && LD="$ac_prog" 8710 ;; 8711 "") 8712 # If it fails, then pretend we aren't using GCC. 8713 ac_prog=ld 8714 ;; 8715 *) 8716 # If it is relative, then search for the first ld in PATH. 8717 with_gnu_ld=unknown 8718 ;; 8719 esac 8720elif test "$with_gnu_ld" = yes; then 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8722$as_echo_n "checking for GNU ld... " >&6; } 8723else 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8725$as_echo_n "checking for non-GNU ld... " >&6; } 8726fi 8727if ${lt_cv_path_LD+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 if test -z "$LD"; then 8731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8732 for ac_dir in $PATH; do 8733 IFS="$lt_save_ifs" 8734 test -z "$ac_dir" && ac_dir=. 8735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8736 lt_cv_path_LD="$ac_dir/$ac_prog" 8737 # Check to see if the program is GNU ld. I'd rather use --version, 8738 # but apparently some variants of GNU ld only accept -v. 8739 # Break only if it was the GNU/non-GNU ld that we prefer. 8740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8741 *GNU* | *'with BFD'*) 8742 test "$with_gnu_ld" != no && break 8743 ;; 8744 *) 8745 test "$with_gnu_ld" != yes && break 8746 ;; 8747 esac 8748 fi 8749 done 8750 IFS="$lt_save_ifs" 8751else 8752 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8753fi 8754fi 8755 8756LD="$lt_cv_path_LD" 8757if test -n "$LD"; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8759$as_echo "$LD" >&6; } 8760else 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8762$as_echo "no" >&6; } 8763fi 8764test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8766$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8767if ${lt_cv_prog_gnu_ld+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8771case `$LD -v 2>&1 </dev/null` in 8772*GNU* | *'with BFD'*) 8773 lt_cv_prog_gnu_ld=yes 8774 ;; 8775*) 8776 lt_cv_prog_gnu_ld=no 8777 ;; 8778esac 8779fi 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8781$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8782with_gnu_ld=$lt_cv_prog_gnu_ld 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8793$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8794if ${lt_cv_path_NM+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 if test -n "$NM"; then 8798 # Let the user override the test. 8799 lt_cv_path_NM="$NM" 8800else 8801 lt_nm_to_check="${ac_tool_prefix}nm" 8802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8803 lt_nm_to_check="$lt_nm_to_check nm" 8804 fi 8805 for lt_tmp_nm in $lt_nm_to_check; do 8806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8808 IFS="$lt_save_ifs" 8809 test -z "$ac_dir" && ac_dir=. 8810 tmp_nm="$ac_dir/$lt_tmp_nm" 8811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8812 # Check to see if the nm accepts a BSD-compat flag. 8813 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8814 # nm: unknown option "B" ignored 8815 # Tru64's nm complains that /dev/null is an invalid object file 8816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8817 */dev/null* | *'Invalid file or object type'*) 8818 lt_cv_path_NM="$tmp_nm -B" 8819 break 8820 ;; 8821 *) 8822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8823 */dev/null*) 8824 lt_cv_path_NM="$tmp_nm -p" 8825 break 8826 ;; 8827 *) 8828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8829 continue # so that we can try to find one that supports BSD flags 8830 ;; 8831 esac 8832 ;; 8833 esac 8834 fi 8835 done 8836 IFS="$lt_save_ifs" 8837 done 8838 : ${lt_cv_path_NM=no} 8839fi 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8842$as_echo "$lt_cv_path_NM" >&6; } 8843if test "$lt_cv_path_NM" != "no"; then 8844 NM="$lt_cv_path_NM" 8845else 8846 # Didn't find any BSD compatible name lister, look for dumpbin. 8847 if test -n "$DUMPBIN"; then : 8848 # Let the user override the test. 8849 else 8850 if test -n "$ac_tool_prefix"; then 8851 for ac_prog in dumpbin "link -dump" 8852 do 8853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8854set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8856$as_echo_n "checking for $ac_word... " >&6; } 8857if ${ac_cv_prog_DUMPBIN+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 if test -n "$DUMPBIN"; then 8861 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8862else 8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8864for as_dir in $PATH 8865do 8866 IFS=$as_save_IFS 8867 test -z "$as_dir" && as_dir=. 8868 for ac_exec_ext in '' $ac_executable_extensions; do 8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8872 break 2 8873 fi 8874done 8875 done 8876IFS=$as_save_IFS 8877 8878fi 8879fi 8880DUMPBIN=$ac_cv_prog_DUMPBIN 8881if test -n "$DUMPBIN"; then 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8883$as_echo "$DUMPBIN" >&6; } 8884else 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8886$as_echo "no" >&6; } 8887fi 8888 8889 8890 test -n "$DUMPBIN" && break 8891 done 8892fi 8893if test -z "$DUMPBIN"; then 8894 ac_ct_DUMPBIN=$DUMPBIN 8895 for ac_prog in dumpbin "link -dump" 8896do 8897 # Extract the first word of "$ac_prog", so it can be a program name with args. 8898set dummy $ac_prog; ac_word=$2 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8900$as_echo_n "checking for $ac_word... " >&6; } 8901if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8902 $as_echo_n "(cached) " >&6 8903else 8904 if test -n "$ac_ct_DUMPBIN"; then 8905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8906else 8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8908for as_dir in $PATH 8909do 8910 IFS=$as_save_IFS 8911 test -z "$as_dir" && as_dir=. 8912 for ac_exec_ext in '' $ac_executable_extensions; do 8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8914 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8916 break 2 8917 fi 8918done 8919 done 8920IFS=$as_save_IFS 8921 8922fi 8923fi 8924ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8925if test -n "$ac_ct_DUMPBIN"; then 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8927$as_echo "$ac_ct_DUMPBIN" >&6; } 8928else 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8930$as_echo "no" >&6; } 8931fi 8932 8933 8934 test -n "$ac_ct_DUMPBIN" && break 8935done 8936 8937 if test "x$ac_ct_DUMPBIN" = x; then 8938 DUMPBIN=":" 8939 else 8940 case $cross_compiling:$ac_tool_warned in 8941yes:) 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8944ac_tool_warned=yes ;; 8945esac 8946 DUMPBIN=$ac_ct_DUMPBIN 8947 fi 8948fi 8949 8950 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8951 *COFF*) 8952 DUMPBIN="$DUMPBIN -symbols" 8953 ;; 8954 *) 8955 DUMPBIN=: 8956 ;; 8957 esac 8958 fi 8959 8960 if test "$DUMPBIN" != ":"; then 8961 NM="$DUMPBIN" 8962 fi 8963fi 8964test -z "$NM" && NM=nm 8965 8966 8967 8968 8969 8970 8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8972$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8973if ${lt_cv_nm_interface+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 lt_cv_nm_interface="BSD nm" 8977 echo "int some_variable = 0;" > conftest.$ac_ext 8978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8979 (eval "$ac_compile" 2>conftest.err) 8980 cat conftest.err >&5 8981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8983 cat conftest.err >&5 8984 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8985 cat conftest.out >&5 8986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8987 lt_cv_nm_interface="MS dumpbin" 8988 fi 8989 rm -f conftest* 8990fi 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8992$as_echo "$lt_cv_nm_interface" >&6; } 8993 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8995$as_echo_n "checking whether ln -s works... " >&6; } 8996LN_S=$as_ln_s 8997if test "$LN_S" = "ln -s"; then 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8999$as_echo "yes" >&6; } 9000else 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9002$as_echo "no, using $LN_S" >&6; } 9003fi 9004 9005# find the maximum length of command line arguments 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9007$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9008if ${lt_cv_sys_max_cmd_len+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 i=0 9012 teststring="ABCD" 9013 9014 case $build_os in 9015 msdosdjgpp*) 9016 # On DJGPP, this test can blow up pretty badly due to problems in libc 9017 # (any single argument exceeding 2000 bytes causes a buffer overrun 9018 # during glob expansion). Even if it were fixed, the result of this 9019 # check would be larger than it should be. 9020 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9021 ;; 9022 9023 gnu*) 9024 # Under GNU Hurd, this test is not required because there is 9025 # no limit to the length of command line arguments. 9026 # Libtool will interpret -1 as no limit whatsoever 9027 lt_cv_sys_max_cmd_len=-1; 9028 ;; 9029 9030 cygwin* | mingw* | cegcc*) 9031 # On Win9x/ME, this test blows up -- it succeeds, but takes 9032 # about 5 minutes as the teststring grows exponentially. 9033 # Worse, since 9x/ME are not pre-emptively multitasking, 9034 # you end up with a "frozen" computer, even though with patience 9035 # the test eventually succeeds (with a max line length of 256k). 9036 # Instead, let's just punt: use the minimum linelength reported by 9037 # all of the supported platforms: 8192 (on NT/2K/XP). 9038 lt_cv_sys_max_cmd_len=8192; 9039 ;; 9040 9041 mint*) 9042 # On MiNT this can take a long time and run out of memory. 9043 lt_cv_sys_max_cmd_len=8192; 9044 ;; 9045 9046 amigaos*) 9047 # On AmigaOS with pdksh, this test takes hours, literally. 9048 # So we just punt and use a minimum line length of 8192. 9049 lt_cv_sys_max_cmd_len=8192; 9050 ;; 9051 9052 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9053 # This has been around since 386BSD, at least. Likely further. 9054 if test -x /sbin/sysctl; then 9055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9056 elif test -x /usr/sbin/sysctl; then 9057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9058 else 9059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9060 fi 9061 # And add a safety zone 9062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9064 ;; 9065 9066 interix*) 9067 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9068 lt_cv_sys_max_cmd_len=196608 9069 ;; 9070 9071 osf*) 9072 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9073 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9074 # nice to cause kernel panics so lets avoid the loop below. 9075 # First set a reasonable default. 9076 lt_cv_sys_max_cmd_len=16384 9077 # 9078 if test -x /sbin/sysconfig; then 9079 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9080 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9081 esac 9082 fi 9083 ;; 9084 sco3.2v5*) 9085 lt_cv_sys_max_cmd_len=102400 9086 ;; 9087 sysv5* | sco5v6* | sysv4.2uw2*) 9088 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9089 if test -n "$kargmax"; then 9090 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9091 else 9092 lt_cv_sys_max_cmd_len=32768 9093 fi 9094 ;; 9095 *) 9096 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9097 if test -n "$lt_cv_sys_max_cmd_len"; then 9098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9100 else 9101 # Make teststring a little bigger before we do anything with it. 9102 # a 1K string should be a reasonable start. 9103 for i in 1 2 3 4 5 6 7 8 ; do 9104 teststring=$teststring$teststring 9105 done 9106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9107 # If test is not a shell built-in, we'll probably end up computing a 9108 # maximum length that is only half of the actual maximum length, but 9109 # we can't tell. 9110 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 9111 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9112 test $i != 17 # 1/2 MB should be enough 9113 do 9114 i=`expr $i + 1` 9115 teststring=$teststring$teststring 9116 done 9117 # Only check the string length outside the loop. 9118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9119 teststring= 9120 # Add a significant safety factor because C++ compilers can tack on 9121 # massive amounts of additional arguments before passing them to the 9122 # linker. It appears as though 1/2 is a usable value. 9123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9124 fi 9125 ;; 9126 esac 9127 9128fi 9129 9130if test -n $lt_cv_sys_max_cmd_len ; then 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9132$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9133else 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9135$as_echo "none" >&6; } 9136fi 9137max_cmd_len=$lt_cv_sys_max_cmd_len 9138 9139 9140 9141 9142 9143 9144: ${CP="cp -f"} 9145: ${MV="mv -f"} 9146: ${RM="rm -f"} 9147 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 9149$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 9150# Try some XSI features 9151xsi_shell=no 9152( _lt_dummy="a/b/c" 9153 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 9154 = c,a/b,b/c, \ 9155 && eval 'test $(( 1 + 1 )) -eq 2 \ 9156 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9157 && xsi_shell=yes 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 9159$as_echo "$xsi_shell" >&6; } 9160 9161 9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 9163$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 9164lt_shell_append=no 9165( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 9166 >/dev/null 2>&1 \ 9167 && lt_shell_append=yes 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 9169$as_echo "$lt_shell_append" >&6; } 9170 9171 9172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9173 lt_unset=unset 9174else 9175 lt_unset=false 9176fi 9177 9178 9179 9180 9181 9182# test EBCDIC or ASCII 9183case `echo X|tr X '\101'` in 9184 A) # ASCII based system 9185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9186 lt_SP2NL='tr \040 \012' 9187 lt_NL2SP='tr \015\012 \040\040' 9188 ;; 9189 *) # EBCDIC based system 9190 lt_SP2NL='tr \100 \n' 9191 lt_NL2SP='tr \r\n \100\100' 9192 ;; 9193esac 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9204$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9205if ${lt_cv_to_host_file_cmd+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 case $host in 9209 *-*-mingw* ) 9210 case $build in 9211 *-*-mingw* ) # actually msys 9212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9213 ;; 9214 *-*-cygwin* ) 9215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9216 ;; 9217 * ) # otherwise, assume *nix 9218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9219 ;; 9220 esac 9221 ;; 9222 *-*-cygwin* ) 9223 case $build in 9224 *-*-mingw* ) # actually msys 9225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9226 ;; 9227 *-*-cygwin* ) 9228 lt_cv_to_host_file_cmd=func_convert_file_noop 9229 ;; 9230 * ) # otherwise, assume *nix 9231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9232 ;; 9233 esac 9234 ;; 9235 * ) # unhandled hosts (and "normal" native builds) 9236 lt_cv_to_host_file_cmd=func_convert_file_noop 9237 ;; 9238esac 9239 9240fi 9241 9242to_host_file_cmd=$lt_cv_to_host_file_cmd 9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9244$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9245 9246 9247 9248 9249 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9252if ${lt_cv_to_tool_file_cmd+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 #assume ordinary cross tools, or native build. 9256lt_cv_to_tool_file_cmd=func_convert_file_noop 9257case $host in 9258 *-*-mingw* ) 9259 case $build in 9260 *-*-mingw* ) # actually msys 9261 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9262 ;; 9263 esac 9264 ;; 9265esac 9266 9267fi 9268 9269to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9271$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9272 9273 9274 9275 9276 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9278$as_echo_n "checking for $LD option to reload object files... " >&6; } 9279if ${lt_cv_ld_reload_flag+:} false; then : 9280 $as_echo_n "(cached) " >&6 9281else 9282 lt_cv_ld_reload_flag='-r' 9283fi 9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9285$as_echo "$lt_cv_ld_reload_flag" >&6; } 9286reload_flag=$lt_cv_ld_reload_flag 9287case $reload_flag in 9288"" | " "*) ;; 9289*) reload_flag=" $reload_flag" ;; 9290esac 9291reload_cmds='$LD$reload_flag -o $output$reload_objs' 9292case $host_os in 9293 cygwin* | mingw* | pw32* | cegcc*) 9294 if test "$GCC" != yes; then 9295 reload_cmds=false 9296 fi 9297 ;; 9298 darwin*) 9299 if test "$GCC" = yes; then 9300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 9301 else 9302 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9303 fi 9304 ;; 9305esac 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315if test -n "$ac_tool_prefix"; then 9316 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9317set dummy ${ac_tool_prefix}objdump; ac_word=$2 9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9319$as_echo_n "checking for $ac_word... " >&6; } 9320if ${ac_cv_prog_OBJDUMP+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 if test -n "$OBJDUMP"; then 9324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9325else 9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9327for as_dir in $PATH 9328do 9329 IFS=$as_save_IFS 9330 test -z "$as_dir" && as_dir=. 9331 for ac_exec_ext in '' $ac_executable_extensions; do 9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9335 break 2 9336 fi 9337done 9338 done 9339IFS=$as_save_IFS 9340 9341fi 9342fi 9343OBJDUMP=$ac_cv_prog_OBJDUMP 9344if test -n "$OBJDUMP"; then 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9346$as_echo "$OBJDUMP" >&6; } 9347else 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9349$as_echo "no" >&6; } 9350fi 9351 9352 9353fi 9354if test -z "$ac_cv_prog_OBJDUMP"; then 9355 ac_ct_OBJDUMP=$OBJDUMP 9356 # Extract the first word of "objdump", so it can be a program name with args. 9357set dummy objdump; ac_word=$2 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9359$as_echo_n "checking for $ac_word... " >&6; } 9360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 if test -n "$ac_ct_OBJDUMP"; then 9364 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9365else 9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9367for as_dir in $PATH 9368do 9369 IFS=$as_save_IFS 9370 test -z "$as_dir" && as_dir=. 9371 for ac_exec_ext in '' $ac_executable_extensions; do 9372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9373 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9375 break 2 9376 fi 9377done 9378 done 9379IFS=$as_save_IFS 9380 9381fi 9382fi 9383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9384if test -n "$ac_ct_OBJDUMP"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9386$as_echo "$ac_ct_OBJDUMP" >&6; } 9387else 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9389$as_echo "no" >&6; } 9390fi 9391 9392 if test "x$ac_ct_OBJDUMP" = x; then 9393 OBJDUMP="false" 9394 else 9395 case $cross_compiling:$ac_tool_warned in 9396yes:) 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9399ac_tool_warned=yes ;; 9400esac 9401 OBJDUMP=$ac_ct_OBJDUMP 9402 fi 9403else 9404 OBJDUMP="$ac_cv_prog_OBJDUMP" 9405fi 9406 9407test -z "$OBJDUMP" && OBJDUMP=objdump 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9418$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9419if ${lt_cv_deplibs_check_method+:} false; then : 9420 $as_echo_n "(cached) " >&6 9421else 9422 lt_cv_file_magic_cmd='$MAGIC_CMD' 9423lt_cv_file_magic_test_file= 9424lt_cv_deplibs_check_method='unknown' 9425# Need to set the preceding variable on all platforms that support 9426# interlibrary dependencies. 9427# 'none' -- dependencies not supported. 9428# `unknown' -- same as none, but documents that we really don't know. 9429# 'pass_all' -- all dependencies passed with no checks. 9430# 'test_compile' -- check by making test program. 9431# 'file_magic [[regex]]' -- check by looking for files in library path 9432# which responds to the $file_magic_cmd with a given extended regex. 9433# If you have `file' or equivalent on your system and you're not sure 9434# whether `pass_all' will *always* work, you probably want this one. 9435 9436case $host_os in 9437aix[4-9]*) 9438 lt_cv_deplibs_check_method=pass_all 9439 ;; 9440 9441beos*) 9442 lt_cv_deplibs_check_method=pass_all 9443 ;; 9444 9445bsdi[45]*) 9446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9447 lt_cv_file_magic_cmd='/usr/bin/file -L' 9448 lt_cv_file_magic_test_file=/shlib/libc.so 9449 ;; 9450 9451cygwin*) 9452 # func_win32_libid is a shell function defined in ltmain.sh 9453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9454 lt_cv_file_magic_cmd='func_win32_libid' 9455 ;; 9456 9457mingw* | pw32*) 9458 # Base MSYS/MinGW do not provide the 'file' command needed by 9459 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9460 # unless we find 'file', for example because we are cross-compiling. 9461 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 9462 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 9463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9464 lt_cv_file_magic_cmd='func_win32_libid' 9465 else 9466 # Keep this pattern in sync with the one in func_win32_libid. 9467 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9468 lt_cv_file_magic_cmd='$OBJDUMP -f' 9469 fi 9470 ;; 9471 9472cegcc*) 9473 # use the weaker test based on 'objdump'. See mingw*. 9474 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9475 lt_cv_file_magic_cmd='$OBJDUMP -f' 9476 ;; 9477 9478darwin* | rhapsody*) 9479 lt_cv_deplibs_check_method=pass_all 9480 ;; 9481 9482freebsd* | dragonfly*) 9483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9484 case $host_cpu in 9485 i*86 ) 9486 # Not sure whether the presence of OpenBSD here was a mistake. 9487 # Let's accept both of them until this is cleared up. 9488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9489 lt_cv_file_magic_cmd=/usr/bin/file 9490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9491 ;; 9492 esac 9493 else 9494 lt_cv_deplibs_check_method=pass_all 9495 fi 9496 ;; 9497 9498gnu*) 9499 lt_cv_deplibs_check_method=pass_all 9500 ;; 9501 9502haiku*) 9503 lt_cv_deplibs_check_method=pass_all 9504 ;; 9505 9506hpux10.20* | hpux11*) 9507 lt_cv_file_magic_cmd=/usr/bin/file 9508 case $host_cpu in 9509 ia64*) 9510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9512 ;; 9513 hppa*64*) 9514 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]' 9515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9516 ;; 9517 *) 9518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9519 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9520 ;; 9521 esac 9522 ;; 9523 9524interix[3-9]*) 9525 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9527 ;; 9528 9529irix5* | irix6* | nonstopux*) 9530 case $LD in 9531 *-32|*"-32 ") libmagic=32-bit;; 9532 *-n32|*"-n32 ") libmagic=N32;; 9533 *-64|*"-64 ") libmagic=64-bit;; 9534 *) libmagic=never-match;; 9535 esac 9536 lt_cv_deplibs_check_method=pass_all 9537 ;; 9538 9539# This must be Linux ELF. 9540linux* | k*bsd*-gnu | kopensolaris*-gnu) 9541 lt_cv_deplibs_check_method=pass_all 9542 ;; 9543 9544netbsd*) 9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9547 else 9548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9549 fi 9550 ;; 9551 9552newos6*) 9553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9554 lt_cv_file_magic_cmd=/usr/bin/file 9555 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9556 ;; 9557 9558*nto* | *qnx*) 9559 lt_cv_deplibs_check_method=pass_all 9560 ;; 9561 9562openbsd*) 9563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9565 else 9566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9567 fi 9568 ;; 9569 9570osf3* | osf4* | osf5*) 9571 lt_cv_deplibs_check_method=pass_all 9572 ;; 9573 9574rdos*) 9575 lt_cv_deplibs_check_method=pass_all 9576 ;; 9577 9578solaris*) 9579 lt_cv_deplibs_check_method=pass_all 9580 ;; 9581 9582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9583 lt_cv_deplibs_check_method=pass_all 9584 ;; 9585 9586sysv4 | sysv4.3*) 9587 case $host_vendor in 9588 motorola) 9589 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]' 9590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9591 ;; 9592 ncr) 9593 lt_cv_deplibs_check_method=pass_all 9594 ;; 9595 sequent) 9596 lt_cv_file_magic_cmd='/bin/file' 9597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9598 ;; 9599 sni) 9600 lt_cv_file_magic_cmd='/bin/file' 9601 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9602 lt_cv_file_magic_test_file=/lib/libc.so 9603 ;; 9604 siemens) 9605 lt_cv_deplibs_check_method=pass_all 9606 ;; 9607 pc) 9608 lt_cv_deplibs_check_method=pass_all 9609 ;; 9610 esac 9611 ;; 9612 9613tpf*) 9614 lt_cv_deplibs_check_method=pass_all 9615 ;; 9616esac 9617 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9620$as_echo "$lt_cv_deplibs_check_method" >&6; } 9621 9622file_magic_glob= 9623want_nocaseglob=no 9624if test "$build" = "$host"; then 9625 case $host_os in 9626 mingw* | pw32*) 9627 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9628 want_nocaseglob=yes 9629 else 9630 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9631 fi 9632 ;; 9633 esac 9634fi 9635 9636file_magic_cmd=$lt_cv_file_magic_cmd 9637deplibs_check_method=$lt_cv_deplibs_check_method 9638test -z "$deplibs_check_method" && deplibs_check_method=unknown 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661if test -n "$ac_tool_prefix"; then 9662 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9663set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9665$as_echo_n "checking for $ac_word... " >&6; } 9666if ${ac_cv_prog_DLLTOOL+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 if test -n "$DLLTOOL"; then 9670 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9671else 9672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9673for as_dir in $PATH 9674do 9675 IFS=$as_save_IFS 9676 test -z "$as_dir" && as_dir=. 9677 for ac_exec_ext in '' $ac_executable_extensions; do 9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9679 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9681 break 2 9682 fi 9683done 9684 done 9685IFS=$as_save_IFS 9686 9687fi 9688fi 9689DLLTOOL=$ac_cv_prog_DLLTOOL 9690if test -n "$DLLTOOL"; then 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9692$as_echo "$DLLTOOL" >&6; } 9693else 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9695$as_echo "no" >&6; } 9696fi 9697 9698 9699fi 9700if test -z "$ac_cv_prog_DLLTOOL"; then 9701 ac_ct_DLLTOOL=$DLLTOOL 9702 # Extract the first word of "dlltool", so it can be a program name with args. 9703set dummy dlltool; ac_word=$2 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9705$as_echo_n "checking for $ac_word... " >&6; } 9706if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9707 $as_echo_n "(cached) " >&6 9708else 9709 if test -n "$ac_ct_DLLTOOL"; then 9710 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9711else 9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9713for as_dir in $PATH 9714do 9715 IFS=$as_save_IFS 9716 test -z "$as_dir" && as_dir=. 9717 for ac_exec_ext in '' $ac_executable_extensions; do 9718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9719 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9721 break 2 9722 fi 9723done 9724 done 9725IFS=$as_save_IFS 9726 9727fi 9728fi 9729ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9730if test -n "$ac_ct_DLLTOOL"; then 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9732$as_echo "$ac_ct_DLLTOOL" >&6; } 9733else 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9735$as_echo "no" >&6; } 9736fi 9737 9738 if test "x$ac_ct_DLLTOOL" = x; then 9739 DLLTOOL="false" 9740 else 9741 case $cross_compiling:$ac_tool_warned in 9742yes:) 9743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9745ac_tool_warned=yes ;; 9746esac 9747 DLLTOOL=$ac_ct_DLLTOOL 9748 fi 9749else 9750 DLLTOOL="$ac_cv_prog_DLLTOOL" 9751fi 9752 9753test -z "$DLLTOOL" && DLLTOOL=dlltool 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9765$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9766if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9767 $as_echo_n "(cached) " >&6 9768else 9769 lt_cv_sharedlib_from_linklib_cmd='unknown' 9770 9771case $host_os in 9772cygwin* | mingw* | pw32* | cegcc*) 9773 # two different shell functions defined in ltmain.sh 9774 # decide which to use based on capabilities of $DLLTOOL 9775 case `$DLLTOOL --help 2>&1` in 9776 *--identify-strict*) 9777 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9778 ;; 9779 *) 9780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9781 ;; 9782 esac 9783 ;; 9784*) 9785 # fallback: assume linklib IS sharedlib 9786 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 9787 ;; 9788esac 9789 9790fi 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9792$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9793sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9794test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9795 9796 9797 9798 9799 9800 9801 9802if test -n "$ac_tool_prefix"; then 9803 for ac_prog in ar 9804 do 9805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9806set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9808$as_echo_n "checking for $ac_word... " >&6; } 9809if ${ac_cv_prog_AR+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 if test -n "$AR"; then 9813 ac_cv_prog_AR="$AR" # Let the user override the test. 9814else 9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9816for as_dir in $PATH 9817do 9818 IFS=$as_save_IFS 9819 test -z "$as_dir" && as_dir=. 9820 for ac_exec_ext in '' $ac_executable_extensions; do 9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9822 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9824 break 2 9825 fi 9826done 9827 done 9828IFS=$as_save_IFS 9829 9830fi 9831fi 9832AR=$ac_cv_prog_AR 9833if test -n "$AR"; then 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9835$as_echo "$AR" >&6; } 9836else 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9838$as_echo "no" >&6; } 9839fi 9840 9841 9842 test -n "$AR" && break 9843 done 9844fi 9845if test -z "$AR"; then 9846 ac_ct_AR=$AR 9847 for ac_prog in ar 9848do 9849 # Extract the first word of "$ac_prog", so it can be a program name with args. 9850set dummy $ac_prog; ac_word=$2 9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9852$as_echo_n "checking for $ac_word... " >&6; } 9853if ${ac_cv_prog_ac_ct_AR+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 if test -n "$ac_ct_AR"; then 9857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9858else 9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9860for as_dir in $PATH 9861do 9862 IFS=$as_save_IFS 9863 test -z "$as_dir" && as_dir=. 9864 for ac_exec_ext in '' $ac_executable_extensions; do 9865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9866 ac_cv_prog_ac_ct_AR="$ac_prog" 9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9868 break 2 9869 fi 9870done 9871 done 9872IFS=$as_save_IFS 9873 9874fi 9875fi 9876ac_ct_AR=$ac_cv_prog_ac_ct_AR 9877if test -n "$ac_ct_AR"; then 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9879$as_echo "$ac_ct_AR" >&6; } 9880else 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9882$as_echo "no" >&6; } 9883fi 9884 9885 9886 test -n "$ac_ct_AR" && break 9887done 9888 9889 if test "x$ac_ct_AR" = x; then 9890 AR="false" 9891 else 9892 case $cross_compiling:$ac_tool_warned in 9893yes:) 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9896ac_tool_warned=yes ;; 9897esac 9898 AR=$ac_ct_AR 9899 fi 9900fi 9901 9902: ${AR=ar} 9903: ${AR_FLAGS=cru} 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9916$as_echo_n "checking for archiver @FILE support... " >&6; } 9917if ${lt_cv_ar_at_file+:} false; then : 9918 $as_echo_n "(cached) " >&6 9919else 9920 lt_cv_ar_at_file=no 9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9922/* end confdefs.h. */ 9923 9924int 9925main () 9926{ 9927 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932if ac_fn_c_try_compile "$LINENO"; then : 9933 echo conftest.$ac_objext > conftest.lst 9934 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9936 (eval $lt_ar_try) 2>&5 9937 ac_status=$? 9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9939 test $ac_status = 0; } 9940 if test "$ac_status" -eq 0; then 9941 # Ensure the archiver fails upon bogus file names. 9942 rm -f conftest.$ac_objext libconftest.a 9943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9944 (eval $lt_ar_try) 2>&5 9945 ac_status=$? 9946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9947 test $ac_status = 0; } 9948 if test "$ac_status" -ne 0; then 9949 lt_cv_ar_at_file=@ 9950 fi 9951 fi 9952 rm -f conftest.* libconftest.a 9953 9954fi 9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9956 9957fi 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9959$as_echo "$lt_cv_ar_at_file" >&6; } 9960 9961if test "x$lt_cv_ar_at_file" = xno; then 9962 archiver_list_spec= 9963else 9964 archiver_list_spec=$lt_cv_ar_at_file 9965fi 9966 9967 9968 9969 9970 9971 9972 9973if test -n "$ac_tool_prefix"; then 9974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9975set dummy ${ac_tool_prefix}strip; ac_word=$2 9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9977$as_echo_n "checking for $ac_word... " >&6; } 9978if ${ac_cv_prog_STRIP+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 if test -n "$STRIP"; then 9982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9983else 9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9985for as_dir in $PATH 9986do 9987 IFS=$as_save_IFS 9988 test -z "$as_dir" && as_dir=. 9989 for ac_exec_ext in '' $ac_executable_extensions; do 9990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9991 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9993 break 2 9994 fi 9995done 9996 done 9997IFS=$as_save_IFS 9998 9999fi 10000fi 10001STRIP=$ac_cv_prog_STRIP 10002if test -n "$STRIP"; then 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10004$as_echo "$STRIP" >&6; } 10005else 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10007$as_echo "no" >&6; } 10008fi 10009 10010 10011fi 10012if test -z "$ac_cv_prog_STRIP"; then 10013 ac_ct_STRIP=$STRIP 10014 # Extract the first word of "strip", so it can be a program name with args. 10015set dummy strip; ac_word=$2 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10017$as_echo_n "checking for $ac_word... " >&6; } 10018if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10019 $as_echo_n "(cached) " >&6 10020else 10021 if test -n "$ac_ct_STRIP"; then 10022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10023else 10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10025for as_dir in $PATH 10026do 10027 IFS=$as_save_IFS 10028 test -z "$as_dir" && as_dir=. 10029 for ac_exec_ext in '' $ac_executable_extensions; do 10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10031 ac_cv_prog_ac_ct_STRIP="strip" 10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10033 break 2 10034 fi 10035done 10036 done 10037IFS=$as_save_IFS 10038 10039fi 10040fi 10041ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10042if test -n "$ac_ct_STRIP"; then 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10044$as_echo "$ac_ct_STRIP" >&6; } 10045else 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10047$as_echo "no" >&6; } 10048fi 10049 10050 if test "x$ac_ct_STRIP" = x; then 10051 STRIP=":" 10052 else 10053 case $cross_compiling:$ac_tool_warned in 10054yes:) 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10057ac_tool_warned=yes ;; 10058esac 10059 STRIP=$ac_ct_STRIP 10060 fi 10061else 10062 STRIP="$ac_cv_prog_STRIP" 10063fi 10064 10065test -z "$STRIP" && STRIP=: 10066 10067 10068 10069 10070 10071 10072if test -n "$ac_tool_prefix"; then 10073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10074set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10076$as_echo_n "checking for $ac_word... " >&6; } 10077if ${ac_cv_prog_RANLIB+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079else 10080 if test -n "$RANLIB"; then 10081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10082else 10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10084for as_dir in $PATH 10085do 10086 IFS=$as_save_IFS 10087 test -z "$as_dir" && as_dir=. 10088 for ac_exec_ext in '' $ac_executable_extensions; do 10089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10092 break 2 10093 fi 10094done 10095 done 10096IFS=$as_save_IFS 10097 10098fi 10099fi 10100RANLIB=$ac_cv_prog_RANLIB 10101if test -n "$RANLIB"; then 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10103$as_echo "$RANLIB" >&6; } 10104else 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10106$as_echo "no" >&6; } 10107fi 10108 10109 10110fi 10111if test -z "$ac_cv_prog_RANLIB"; then 10112 ac_ct_RANLIB=$RANLIB 10113 # Extract the first word of "ranlib", so it can be a program name with args. 10114set dummy ranlib; ac_word=$2 10115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10116$as_echo_n "checking for $ac_word... " >&6; } 10117if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119else 10120 if test -n "$ac_ct_RANLIB"; then 10121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10122else 10123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10124for as_dir in $PATH 10125do 10126 IFS=$as_save_IFS 10127 test -z "$as_dir" && as_dir=. 10128 for ac_exec_ext in '' $ac_executable_extensions; do 10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10130 ac_cv_prog_ac_ct_RANLIB="ranlib" 10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10132 break 2 10133 fi 10134done 10135 done 10136IFS=$as_save_IFS 10137 10138fi 10139fi 10140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10141if test -n "$ac_ct_RANLIB"; then 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10143$as_echo "$ac_ct_RANLIB" >&6; } 10144else 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10146$as_echo "no" >&6; } 10147fi 10148 10149 if test "x$ac_ct_RANLIB" = x; then 10150 RANLIB=":" 10151 else 10152 case $cross_compiling:$ac_tool_warned in 10153yes:) 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10156ac_tool_warned=yes ;; 10157esac 10158 RANLIB=$ac_ct_RANLIB 10159 fi 10160else 10161 RANLIB="$ac_cv_prog_RANLIB" 10162fi 10163 10164test -z "$RANLIB" && RANLIB=: 10165 10166 10167 10168 10169 10170 10171# Determine commands to create old-style static archives. 10172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10173old_postinstall_cmds='chmod 644 $oldlib' 10174old_postuninstall_cmds= 10175 10176if test -n "$RANLIB"; then 10177 case $host_os in 10178 openbsd*) 10179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 10180 ;; 10181 *) 10182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 10183 ;; 10184 esac 10185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 10186fi 10187 10188case $host_os in 10189 darwin*) 10190 lock_old_archive_extraction=yes ;; 10191 *) 10192 lock_old_archive_extraction=no ;; 10193esac 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233# If no C compiler was specified, use CC. 10234LTCC=${LTCC-"$CC"} 10235 10236# If no C compiler flags were specified, use CFLAGS. 10237LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10238 10239# Allow CC to be a program name with arguments. 10240compiler=$CC 10241 10242 10243# Check for command to grab the raw symbol name followed by C symbol from nm. 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10245$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10246if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 10250# These are sane defaults that work on at least a few old systems. 10251# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10252 10253# Character class describing NM global symbol codes. 10254symcode='[BCDEGRST]' 10255 10256# Regexp to match symbols that can be accessed directly from C. 10257sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10258 10259# Define system-specific variables. 10260case $host_os in 10261aix*) 10262 symcode='[BCDT]' 10263 ;; 10264cygwin* | mingw* | pw32* | cegcc*) 10265 symcode='[ABCDGISTW]' 10266 ;; 10267hpux*) 10268 if test "$host_cpu" = ia64; then 10269 symcode='[ABCDEGRST]' 10270 fi 10271 ;; 10272irix* | nonstopux*) 10273 symcode='[BCDEGRST]' 10274 ;; 10275osf*) 10276 symcode='[BCDEGQRST]' 10277 ;; 10278solaris*) 10279 symcode='[BDRT]' 10280 ;; 10281sco3.2v5*) 10282 symcode='[DT]' 10283 ;; 10284sysv4.2uw2*) 10285 symcode='[DT]' 10286 ;; 10287sysv5* | sco5v6* | unixware* | OpenUNIX*) 10288 symcode='[ABDT]' 10289 ;; 10290sysv4) 10291 symcode='[DFNSTU]' 10292 ;; 10293esac 10294 10295# If we're using GNU nm, then use its standard symbol codes. 10296case `$NM -V 2>&1` in 10297*GNU* | *'with BFD'*) 10298 symcode='[ABCDGIRSTW]' ;; 10299esac 10300 10301# Transform an extracted symbol line into a proper C declaration. 10302# Some systems (esp. on ia64) link data and code symbols differently, 10303# so use this general approach. 10304lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10305 10306# Transform an extracted symbol line into symbol name and symbol address 10307lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 10308lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 10309 10310# Handle CRLF in mingw tool chain 10311opt_cr= 10312case $build_os in 10313mingw*) 10314 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10315 ;; 10316esac 10317 10318# Try without a prefix underscore, then with it. 10319for ac_symprfx in "" "_"; do 10320 10321 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10322 symxfrm="\\1 $ac_symprfx\\2 \\2" 10323 10324 # Write the raw and C identifiers. 10325 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10326 # Fake it for dumpbin and say T for any non-static function 10327 # and D for any global variable. 10328 # Also find C++ and __fastcall symbols from MSVC++, 10329 # which start with @ or ?. 10330 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10331" {last_section=section; section=\$ 3};"\ 10332" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10333" \$ 0!~/External *\|/{next};"\ 10334" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10335" {if(hide[section]) next};"\ 10336" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 10337" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 10338" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 10339" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 10340" ' prfx=^$ac_symprfx" 10341 else 10342 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10343 fi 10344 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10345 10346 # Check to see that the pipe works correctly. 10347 pipe_works=no 10348 10349 rm -f conftest* 10350 cat > conftest.$ac_ext <<_LT_EOF 10351#ifdef __cplusplus 10352extern "C" { 10353#endif 10354char nm_test_var; 10355void nm_test_func(void); 10356void nm_test_func(void){} 10357#ifdef __cplusplus 10358} 10359#endif 10360int main(){nm_test_var='a';nm_test_func();return(0);} 10361_LT_EOF 10362 10363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10364 (eval $ac_compile) 2>&5 10365 ac_status=$? 10366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10367 test $ac_status = 0; }; then 10368 # Now try to grab the symbols. 10369 nlist=conftest.nm 10370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10371 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10372 ac_status=$? 10373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10374 test $ac_status = 0; } && test -s "$nlist"; then 10375 # Try sorting and uniquifying the output. 10376 if sort "$nlist" | uniq > "$nlist"T; then 10377 mv -f "$nlist"T "$nlist" 10378 else 10379 rm -f "$nlist"T 10380 fi 10381 10382 # Make sure that we snagged all the symbols we need. 10383 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10384 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10385 cat <<_LT_EOF > conftest.$ac_ext 10386/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10387#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 10388/* DATA imports from DLLs on WIN32 con't be const, because runtime 10389 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10390# define LT_DLSYM_CONST 10391#elif defined(__osf__) 10392/* This system does not cope well with relocations in const data. */ 10393# define LT_DLSYM_CONST 10394#else 10395# define LT_DLSYM_CONST const 10396#endif 10397 10398#ifdef __cplusplus 10399extern "C" { 10400#endif 10401 10402_LT_EOF 10403 # Now generate the symbol file. 10404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10405 10406 cat <<_LT_EOF >> conftest.$ac_ext 10407 10408/* The mapping between symbol names and symbols. */ 10409LT_DLSYM_CONST struct { 10410 const char *name; 10411 void *address; 10412} 10413lt__PROGRAM__LTX_preloaded_symbols[] = 10414{ 10415 { "@PROGRAM@", (void *) 0 }, 10416_LT_EOF 10417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10418 cat <<\_LT_EOF >> conftest.$ac_ext 10419 {0, (void *) 0} 10420}; 10421 10422/* This works around a problem in FreeBSD linker */ 10423#ifdef FREEBSD_WORKAROUND 10424static const void *lt_preloaded_setup() { 10425 return lt__PROGRAM__LTX_preloaded_symbols; 10426} 10427#endif 10428 10429#ifdef __cplusplus 10430} 10431#endif 10432_LT_EOF 10433 # Now try linking the two files. 10434 mv conftest.$ac_objext conftstm.$ac_objext 10435 lt_globsym_save_LIBS=$LIBS 10436 lt_globsym_save_CFLAGS=$CFLAGS 10437 LIBS="conftstm.$ac_objext" 10438 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10440 (eval $ac_link) 2>&5 10441 ac_status=$? 10442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10443 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10444 pipe_works=yes 10445 fi 10446 LIBS=$lt_globsym_save_LIBS 10447 CFLAGS=$lt_globsym_save_CFLAGS 10448 else 10449 echo "cannot find nm_test_func in $nlist" >&5 10450 fi 10451 else 10452 echo "cannot find nm_test_var in $nlist" >&5 10453 fi 10454 else 10455 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10456 fi 10457 else 10458 echo "$progname: failed program was:" >&5 10459 cat conftest.$ac_ext >&5 10460 fi 10461 rm -rf conftest* conftst* 10462 10463 # Do not use the global_symbol_pipe unless it works. 10464 if test "$pipe_works" = yes; then 10465 break 10466 else 10467 lt_cv_sys_global_symbol_pipe= 10468 fi 10469done 10470 10471fi 10472 10473if test -z "$lt_cv_sys_global_symbol_pipe"; then 10474 lt_cv_sys_global_symbol_to_cdecl= 10475fi 10476if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10478$as_echo "failed" >&6; } 10479else 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10481$as_echo "ok" >&6; } 10482fi 10483 10484# Response file support. 10485if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10486 nm_file_list_spec='@' 10487elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10488 nm_file_list_spec='@' 10489fi 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10518$as_echo_n "checking for sysroot... " >&6; } 10519 10520# Check whether --with-sysroot was given. 10521if test "${with_sysroot+set}" = set; then : 10522 withval=$with_sysroot; 10523else 10524 with_sysroot=no 10525fi 10526 10527 10528lt_sysroot= 10529case ${with_sysroot} in #( 10530 yes) 10531 if test "$GCC" = yes; then 10532 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10533 fi 10534 ;; #( 10535 /*) 10536 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10537 ;; #( 10538 no|'') 10539 ;; #( 10540 *) 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 10542$as_echo "${with_sysroot}" >&6; } 10543 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10544 ;; 10545esac 10546 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10548$as_echo "${lt_sysroot:-no}" >&6; } 10549 10550 10551 10552 10553 10554# Check whether --enable-libtool-lock was given. 10555if test "${enable_libtool_lock+set}" = set; then : 10556 enableval=$enable_libtool_lock; 10557fi 10558 10559test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10560 10561# Some flags need to be propagated to the compiler or linker for good 10562# libtool support. 10563case $host in 10564ia64-*-hpux*) 10565 # Find out which ABI we are using. 10566 echo 'int i;' > conftest.$ac_ext 10567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10568 (eval $ac_compile) 2>&5 10569 ac_status=$? 10570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10571 test $ac_status = 0; }; then 10572 case `/usr/bin/file conftest.$ac_objext` in 10573 *ELF-32*) 10574 HPUX_IA64_MODE="32" 10575 ;; 10576 *ELF-64*) 10577 HPUX_IA64_MODE="64" 10578 ;; 10579 esac 10580 fi 10581 rm -rf conftest* 10582 ;; 10583*-*-irix6*) 10584 # Find out which ABI we are using. 10585 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10587 (eval $ac_compile) 2>&5 10588 ac_status=$? 10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10590 test $ac_status = 0; }; then 10591 if test "$lt_cv_prog_gnu_ld" = yes; then 10592 case `/usr/bin/file conftest.$ac_objext` in 10593 *32-bit*) 10594 LD="${LD-ld} -melf32bsmip" 10595 ;; 10596 *N32*) 10597 LD="${LD-ld} -melf32bmipn32" 10598 ;; 10599 *64-bit*) 10600 LD="${LD-ld} -melf64bmip" 10601 ;; 10602 esac 10603 else 10604 case `/usr/bin/file conftest.$ac_objext` in 10605 *32-bit*) 10606 LD="${LD-ld} -32" 10607 ;; 10608 *N32*) 10609 LD="${LD-ld} -n32" 10610 ;; 10611 *64-bit*) 10612 LD="${LD-ld} -64" 10613 ;; 10614 esac 10615 fi 10616 fi 10617 rm -rf conftest* 10618 ;; 10619 10620x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 10621s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10622 # Find out which ABI we are using. 10623 echo 'int i;' > conftest.$ac_ext 10624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10625 (eval $ac_compile) 2>&5 10626 ac_status=$? 10627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10628 test $ac_status = 0; }; then 10629 case `/usr/bin/file conftest.o` in 10630 *32-bit*) 10631 case $host in 10632 x86_64-*kfreebsd*-gnu) 10633 LD="${LD-ld} -m elf_i386_fbsd" 10634 ;; 10635 x86_64-*linux*) 10636 LD="${LD-ld} -m elf_i386" 10637 ;; 10638 ppc64-*linux*|powerpc64-*linux*) 10639 LD="${LD-ld} -m elf32ppclinux" 10640 ;; 10641 s390x-*linux*) 10642 LD="${LD-ld} -m elf_s390" 10643 ;; 10644 sparc64-*linux*) 10645 LD="${LD-ld} -m elf32_sparc" 10646 ;; 10647 esac 10648 ;; 10649 *64-bit*) 10650 case $host in 10651 x86_64-*kfreebsd*-gnu) 10652 LD="${LD-ld} -m elf_x86_64_fbsd" 10653 ;; 10654 x86_64-*linux*) 10655 LD="${LD-ld} -m elf_x86_64" 10656 ;; 10657 ppc*-*linux*|powerpc*-*linux*) 10658 LD="${LD-ld} -m elf64ppc" 10659 ;; 10660 s390*-*linux*|s390*-*tpf*) 10661 LD="${LD-ld} -m elf64_s390" 10662 ;; 10663 sparc*-*linux*) 10664 LD="${LD-ld} -m elf64_sparc" 10665 ;; 10666 esac 10667 ;; 10668 esac 10669 fi 10670 rm -rf conftest* 10671 ;; 10672 10673*-*-sco3.2v5*) 10674 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10675 SAVE_CFLAGS="$CFLAGS" 10676 CFLAGS="$CFLAGS -belf" 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10678$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10679if ${lt_cv_cc_needs_belf+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 ac_ext=c 10683ac_cpp='$CPP $CPPFLAGS' 10684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10686ac_compiler_gnu=$ac_cv_c_compiler_gnu 10687 10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689/* end confdefs.h. */ 10690 10691int 10692main () 10693{ 10694 10695 ; 10696 return 0; 10697} 10698_ACEOF 10699if ac_fn_c_try_link "$LINENO"; then : 10700 lt_cv_cc_needs_belf=yes 10701else 10702 lt_cv_cc_needs_belf=no 10703fi 10704rm -f core conftest.err conftest.$ac_objext \ 10705 conftest$ac_exeext conftest.$ac_ext 10706 ac_ext=c 10707ac_cpp='$CPP $CPPFLAGS' 10708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10710ac_compiler_gnu=$ac_cv_c_compiler_gnu 10711 10712fi 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10714$as_echo "$lt_cv_cc_needs_belf" >&6; } 10715 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10716 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10717 CFLAGS="$SAVE_CFLAGS" 10718 fi 10719 ;; 10720sparc*-*solaris*) 10721 # Find out which ABI we are using. 10722 echo 'int i;' > conftest.$ac_ext 10723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10724 (eval $ac_compile) 2>&5 10725 ac_status=$? 10726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10727 test $ac_status = 0; }; then 10728 case `/usr/bin/file conftest.o` in 10729 *64-bit*) 10730 case $lt_cv_prog_gnu_ld in 10731 yes*) LD="${LD-ld} -m elf64_sparc" ;; 10732 *) 10733 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10734 LD="${LD-ld} -64" 10735 fi 10736 ;; 10737 esac 10738 ;; 10739 esac 10740 fi 10741 rm -rf conftest* 10742 ;; 10743esac 10744 10745need_locks="$enable_libtool_lock" 10746 10747if test -n "$ac_tool_prefix"; then 10748 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10749set dummy ${ac_tool_prefix}mt; ac_word=$2 10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10751$as_echo_n "checking for $ac_word... " >&6; } 10752if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10753 $as_echo_n "(cached) " >&6 10754else 10755 if test -n "$MANIFEST_TOOL"; then 10756 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10757else 10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10759for as_dir in $PATH 10760do 10761 IFS=$as_save_IFS 10762 test -z "$as_dir" && as_dir=. 10763 for ac_exec_ext in '' $ac_executable_extensions; do 10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10765 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10767 break 2 10768 fi 10769done 10770 done 10771IFS=$as_save_IFS 10772 10773fi 10774fi 10775MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10776if test -n "$MANIFEST_TOOL"; then 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10778$as_echo "$MANIFEST_TOOL" >&6; } 10779else 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10781$as_echo "no" >&6; } 10782fi 10783 10784 10785fi 10786if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10787 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10788 # Extract the first word of "mt", so it can be a program name with args. 10789set dummy mt; ac_word=$2 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791$as_echo_n "checking for $ac_word... " >&6; } 10792if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 if test -n "$ac_ct_MANIFEST_TOOL"; then 10796 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10797else 10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10799for as_dir in $PATH 10800do 10801 IFS=$as_save_IFS 10802 test -z "$as_dir" && as_dir=. 10803 for ac_exec_ext in '' $ac_executable_extensions; do 10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10805 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10807 break 2 10808 fi 10809done 10810 done 10811IFS=$as_save_IFS 10812 10813fi 10814fi 10815ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10816if test -n "$ac_ct_MANIFEST_TOOL"; then 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10818$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10819else 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10821$as_echo "no" >&6; } 10822fi 10823 10824 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10825 MANIFEST_TOOL=":" 10826 else 10827 case $cross_compiling:$ac_tool_warned in 10828yes:) 10829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10831ac_tool_warned=yes ;; 10832esac 10833 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10834 fi 10835else 10836 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10837fi 10838 10839test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10841$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10842if ${lt_cv_path_mainfest_tool+:} false; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 lt_cv_path_mainfest_tool=no 10846 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10847 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10848 cat conftest.err >&5 10849 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10850 lt_cv_path_mainfest_tool=yes 10851 fi 10852 rm -f conftest* 10853fi 10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10855$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10856if test "x$lt_cv_path_mainfest_tool" != xyes; then 10857 MANIFEST_TOOL=: 10858fi 10859 10860 10861 10862 10863 10864 10865 case $host_os in 10866 rhapsody* | darwin*) 10867 if test -n "$ac_tool_prefix"; then 10868 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10869set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10871$as_echo_n "checking for $ac_word... " >&6; } 10872if ${ac_cv_prog_DSYMUTIL+:} false; then : 10873 $as_echo_n "(cached) " >&6 10874else 10875 if test -n "$DSYMUTIL"; then 10876 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10877else 10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10879for as_dir in $PATH 10880do 10881 IFS=$as_save_IFS 10882 test -z "$as_dir" && as_dir=. 10883 for ac_exec_ext in '' $ac_executable_extensions; do 10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10885 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10887 break 2 10888 fi 10889done 10890 done 10891IFS=$as_save_IFS 10892 10893fi 10894fi 10895DSYMUTIL=$ac_cv_prog_DSYMUTIL 10896if test -n "$DSYMUTIL"; then 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10898$as_echo "$DSYMUTIL" >&6; } 10899else 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10901$as_echo "no" >&6; } 10902fi 10903 10904 10905fi 10906if test -z "$ac_cv_prog_DSYMUTIL"; then 10907 ac_ct_DSYMUTIL=$DSYMUTIL 10908 # Extract the first word of "dsymutil", so it can be a program name with args. 10909set dummy dsymutil; ac_word=$2 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10911$as_echo_n "checking for $ac_word... " >&6; } 10912if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10913 $as_echo_n "(cached) " >&6 10914else 10915 if test -n "$ac_ct_DSYMUTIL"; then 10916 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10917else 10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10919for as_dir in $PATH 10920do 10921 IFS=$as_save_IFS 10922 test -z "$as_dir" && as_dir=. 10923 for ac_exec_ext in '' $ac_executable_extensions; do 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10925 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10927 break 2 10928 fi 10929done 10930 done 10931IFS=$as_save_IFS 10932 10933fi 10934fi 10935ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10936if test -n "$ac_ct_DSYMUTIL"; then 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10938$as_echo "$ac_ct_DSYMUTIL" >&6; } 10939else 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10941$as_echo "no" >&6; } 10942fi 10943 10944 if test "x$ac_ct_DSYMUTIL" = x; then 10945 DSYMUTIL=":" 10946 else 10947 case $cross_compiling:$ac_tool_warned in 10948yes:) 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10951ac_tool_warned=yes ;; 10952esac 10953 DSYMUTIL=$ac_ct_DSYMUTIL 10954 fi 10955else 10956 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10957fi 10958 10959 if test -n "$ac_tool_prefix"; then 10960 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10961set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10963$as_echo_n "checking for $ac_word... " >&6; } 10964if ${ac_cv_prog_NMEDIT+:} false; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 if test -n "$NMEDIT"; then 10968 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10969else 10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10971for as_dir in $PATH 10972do 10973 IFS=$as_save_IFS 10974 test -z "$as_dir" && as_dir=. 10975 for ac_exec_ext in '' $ac_executable_extensions; do 10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10977 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10979 break 2 10980 fi 10981done 10982 done 10983IFS=$as_save_IFS 10984 10985fi 10986fi 10987NMEDIT=$ac_cv_prog_NMEDIT 10988if test -n "$NMEDIT"; then 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10990$as_echo "$NMEDIT" >&6; } 10991else 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10993$as_echo "no" >&6; } 10994fi 10995 10996 10997fi 10998if test -z "$ac_cv_prog_NMEDIT"; then 10999 ac_ct_NMEDIT=$NMEDIT 11000 # Extract the first word of "nmedit", so it can be a program name with args. 11001set dummy nmedit; ac_word=$2 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11003$as_echo_n "checking for $ac_word... " >&6; } 11004if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11005 $as_echo_n "(cached) " >&6 11006else 11007 if test -n "$ac_ct_NMEDIT"; then 11008 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11009else 11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11011for as_dir in $PATH 11012do 11013 IFS=$as_save_IFS 11014 test -z "$as_dir" && as_dir=. 11015 for ac_exec_ext in '' $ac_executable_extensions; do 11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11017 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11019 break 2 11020 fi 11021done 11022 done 11023IFS=$as_save_IFS 11024 11025fi 11026fi 11027ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11028if test -n "$ac_ct_NMEDIT"; then 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11030$as_echo "$ac_ct_NMEDIT" >&6; } 11031else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11033$as_echo "no" >&6; } 11034fi 11035 11036 if test "x$ac_ct_NMEDIT" = x; then 11037 NMEDIT=":" 11038 else 11039 case $cross_compiling:$ac_tool_warned in 11040yes:) 11041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11043ac_tool_warned=yes ;; 11044esac 11045 NMEDIT=$ac_ct_NMEDIT 11046 fi 11047else 11048 NMEDIT="$ac_cv_prog_NMEDIT" 11049fi 11050 11051 if test -n "$ac_tool_prefix"; then 11052 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11053set dummy ${ac_tool_prefix}lipo; ac_word=$2 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11055$as_echo_n "checking for $ac_word... " >&6; } 11056if ${ac_cv_prog_LIPO+:} false; then : 11057 $as_echo_n "(cached) " >&6 11058else 11059 if test -n "$LIPO"; then 11060 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11061else 11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11063for as_dir in $PATH 11064do 11065 IFS=$as_save_IFS 11066 test -z "$as_dir" && as_dir=. 11067 for ac_exec_ext in '' $ac_executable_extensions; do 11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11069 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11071 break 2 11072 fi 11073done 11074 done 11075IFS=$as_save_IFS 11076 11077fi 11078fi 11079LIPO=$ac_cv_prog_LIPO 11080if test -n "$LIPO"; then 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11082$as_echo "$LIPO" >&6; } 11083else 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11085$as_echo "no" >&6; } 11086fi 11087 11088 11089fi 11090if test -z "$ac_cv_prog_LIPO"; then 11091 ac_ct_LIPO=$LIPO 11092 # Extract the first word of "lipo", so it can be a program name with args. 11093set dummy lipo; ac_word=$2 11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11095$as_echo_n "checking for $ac_word... " >&6; } 11096if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11097 $as_echo_n "(cached) " >&6 11098else 11099 if test -n "$ac_ct_LIPO"; then 11100 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11101else 11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11103for as_dir in $PATH 11104do 11105 IFS=$as_save_IFS 11106 test -z "$as_dir" && as_dir=. 11107 for ac_exec_ext in '' $ac_executable_extensions; do 11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11109 ac_cv_prog_ac_ct_LIPO="lipo" 11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11111 break 2 11112 fi 11113done 11114 done 11115IFS=$as_save_IFS 11116 11117fi 11118fi 11119ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11120if test -n "$ac_ct_LIPO"; then 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11122$as_echo "$ac_ct_LIPO" >&6; } 11123else 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11125$as_echo "no" >&6; } 11126fi 11127 11128 if test "x$ac_ct_LIPO" = x; then 11129 LIPO=":" 11130 else 11131 case $cross_compiling:$ac_tool_warned in 11132yes:) 11133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11135ac_tool_warned=yes ;; 11136esac 11137 LIPO=$ac_ct_LIPO 11138 fi 11139else 11140 LIPO="$ac_cv_prog_LIPO" 11141fi 11142 11143 if test -n "$ac_tool_prefix"; then 11144 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11145set dummy ${ac_tool_prefix}otool; ac_word=$2 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11147$as_echo_n "checking for $ac_word... " >&6; } 11148if ${ac_cv_prog_OTOOL+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150else 11151 if test -n "$OTOOL"; then 11152 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11153else 11154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11155for as_dir in $PATH 11156do 11157 IFS=$as_save_IFS 11158 test -z "$as_dir" && as_dir=. 11159 for ac_exec_ext in '' $ac_executable_extensions; do 11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11161 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11163 break 2 11164 fi 11165done 11166 done 11167IFS=$as_save_IFS 11168 11169fi 11170fi 11171OTOOL=$ac_cv_prog_OTOOL 11172if test -n "$OTOOL"; then 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11174$as_echo "$OTOOL" >&6; } 11175else 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11177$as_echo "no" >&6; } 11178fi 11179 11180 11181fi 11182if test -z "$ac_cv_prog_OTOOL"; then 11183 ac_ct_OTOOL=$OTOOL 11184 # Extract the first word of "otool", so it can be a program name with args. 11185set dummy otool; ac_word=$2 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11187$as_echo_n "checking for $ac_word... " >&6; } 11188if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 if test -n "$ac_ct_OTOOL"; then 11192 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11193else 11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11195for as_dir in $PATH 11196do 11197 IFS=$as_save_IFS 11198 test -z "$as_dir" && as_dir=. 11199 for ac_exec_ext in '' $ac_executable_extensions; do 11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11201 ac_cv_prog_ac_ct_OTOOL="otool" 11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11203 break 2 11204 fi 11205done 11206 done 11207IFS=$as_save_IFS 11208 11209fi 11210fi 11211ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11212if test -n "$ac_ct_OTOOL"; then 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11214$as_echo "$ac_ct_OTOOL" >&6; } 11215else 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11217$as_echo "no" >&6; } 11218fi 11219 11220 if test "x$ac_ct_OTOOL" = x; then 11221 OTOOL=":" 11222 else 11223 case $cross_compiling:$ac_tool_warned in 11224yes:) 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11227ac_tool_warned=yes ;; 11228esac 11229 OTOOL=$ac_ct_OTOOL 11230 fi 11231else 11232 OTOOL="$ac_cv_prog_OTOOL" 11233fi 11234 11235 if test -n "$ac_tool_prefix"; then 11236 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11237set dummy ${ac_tool_prefix}otool64; ac_word=$2 11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11239$as_echo_n "checking for $ac_word... " >&6; } 11240if ${ac_cv_prog_OTOOL64+:} false; then : 11241 $as_echo_n "(cached) " >&6 11242else 11243 if test -n "$OTOOL64"; then 11244 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11245else 11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11247for as_dir in $PATH 11248do 11249 IFS=$as_save_IFS 11250 test -z "$as_dir" && as_dir=. 11251 for ac_exec_ext in '' $ac_executable_extensions; do 11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11253 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11255 break 2 11256 fi 11257done 11258 done 11259IFS=$as_save_IFS 11260 11261fi 11262fi 11263OTOOL64=$ac_cv_prog_OTOOL64 11264if test -n "$OTOOL64"; then 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11266$as_echo "$OTOOL64" >&6; } 11267else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11269$as_echo "no" >&6; } 11270fi 11271 11272 11273fi 11274if test -z "$ac_cv_prog_OTOOL64"; then 11275 ac_ct_OTOOL64=$OTOOL64 11276 # Extract the first word of "otool64", so it can be a program name with args. 11277set dummy otool64; ac_word=$2 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11279$as_echo_n "checking for $ac_word... " >&6; } 11280if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 if test -n "$ac_ct_OTOOL64"; then 11284 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11285else 11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11287for as_dir in $PATH 11288do 11289 IFS=$as_save_IFS 11290 test -z "$as_dir" && as_dir=. 11291 for ac_exec_ext in '' $ac_executable_extensions; do 11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11293 ac_cv_prog_ac_ct_OTOOL64="otool64" 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11295 break 2 11296 fi 11297done 11298 done 11299IFS=$as_save_IFS 11300 11301fi 11302fi 11303ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11304if test -n "$ac_ct_OTOOL64"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11306$as_echo "$ac_ct_OTOOL64" >&6; } 11307else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309$as_echo "no" >&6; } 11310fi 11311 11312 if test "x$ac_ct_OTOOL64" = x; then 11313 OTOOL64=":" 11314 else 11315 case $cross_compiling:$ac_tool_warned in 11316yes:) 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11319ac_tool_warned=yes ;; 11320esac 11321 OTOOL64=$ac_ct_OTOOL64 11322 fi 11323else 11324 OTOOL64="$ac_cv_prog_OTOOL64" 11325fi 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11354$as_echo_n "checking for -single_module linker flag... " >&6; } 11355if ${lt_cv_apple_cc_single_mod+:} false; then : 11356 $as_echo_n "(cached) " >&6 11357else 11358 lt_cv_apple_cc_single_mod=no 11359 if test -z "${LT_MULTI_MODULE}"; then 11360 # By default we will add the -single_module flag. You can override 11361 # by either setting the environment variable LT_MULTI_MODULE 11362 # non-empty at configure time, or by adding -multi_module to the 11363 # link flags. 11364 rm -rf libconftest.dylib* 11365 echo "int foo(void){return 1;}" > conftest.c 11366 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11367-dynamiclib -Wl,-single_module conftest.c" >&5 11368 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11369 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11370 _lt_result=$? 11371 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 11372 lt_cv_apple_cc_single_mod=yes 11373 else 11374 cat conftest.err >&5 11375 fi 11376 rm -rf libconftest.dylib* 11377 rm -f conftest.* 11378 fi 11379fi 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11381$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11383$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11384if ${lt_cv_ld_exported_symbols_list+:} false; then : 11385 $as_echo_n "(cached) " >&6 11386else 11387 lt_cv_ld_exported_symbols_list=no 11388 save_LDFLAGS=$LDFLAGS 11389 echo "_main" > conftest.sym 11390 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11392/* end confdefs.h. */ 11393 11394int 11395main () 11396{ 11397 11398 ; 11399 return 0; 11400} 11401_ACEOF 11402if ac_fn_c_try_link "$LINENO"; then : 11403 lt_cv_ld_exported_symbols_list=yes 11404else 11405 lt_cv_ld_exported_symbols_list=no 11406fi 11407rm -f core conftest.err conftest.$ac_objext \ 11408 conftest$ac_exeext conftest.$ac_ext 11409 LDFLAGS="$save_LDFLAGS" 11410 11411fi 11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11413$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11415$as_echo_n "checking for -force_load linker flag... " >&6; } 11416if ${lt_cv_ld_force_load+:} false; then : 11417 $as_echo_n "(cached) " >&6 11418else 11419 lt_cv_ld_force_load=no 11420 cat > conftest.c << _LT_EOF 11421int forced_loaded() { return 2;} 11422_LT_EOF 11423 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11424 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11425 echo "$AR cru libconftest.a conftest.o" >&5 11426 $AR cru libconftest.a conftest.o 2>&5 11427 echo "$RANLIB libconftest.a" >&5 11428 $RANLIB libconftest.a 2>&5 11429 cat > conftest.c << _LT_EOF 11430int main() { return 0;} 11431_LT_EOF 11432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11434 _lt_result=$? 11435 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 11436 lt_cv_ld_force_load=yes 11437 else 11438 cat conftest.err >&5 11439 fi 11440 rm -f conftest.err libconftest.a conftest conftest.c 11441 rm -rf conftest.dSYM 11442 11443fi 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11445$as_echo "$lt_cv_ld_force_load" >&6; } 11446 case $host_os in 11447 rhapsody* | darwin1.[012]) 11448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 11449 darwin1.*) 11450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11451 darwin*) # darwin 5.x on 11452 # if running on 10.5 or later, the deployment target defaults 11453 # to the OS version, if on x86, and 10.4, the deployment 11454 # target defaults to 10.4. Don't you love it? 11455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11456 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11458 10.[012]*) 11459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11460 10.*) 11461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11462 esac 11463 ;; 11464 esac 11465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 11466 _lt_dar_single_mod='$single_module' 11467 fi 11468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 11469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 11470 else 11471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 11472 fi 11473 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 11474 _lt_dsymutil='~$DSYMUTIL $lib || :' 11475 else 11476 _lt_dsymutil= 11477 fi 11478 ;; 11479 esac 11480 11481for ac_header in dlfcn.h 11482do : 11483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11484" 11485if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11486 cat >>confdefs.h <<_ACEOF 11487#define HAVE_DLFCN_H 1 11488_ACEOF 11489 11490fi 11491 11492done 11493 11494 11495 11496 11497func_stripname_cnf () 11498{ 11499 case ${2} in 11500 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 11501 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 11502 esac 11503} # func_stripname_cnf 11504 11505 11506 11507 11508 11509# Set options 11510 11511 11512 11513 enable_dlopen=no 11514 11515 11516 enable_win32_dll=no 11517 11518 11519 11520 # Check whether --enable-static was given. 11521if test "${enable_static+set}" = set; then : 11522 enableval=$enable_static; p=${PACKAGE-default} 11523 case $enableval in 11524 yes) enable_static=yes ;; 11525 no) enable_static=no ;; 11526 *) 11527 enable_static=no 11528 # Look at the argument we got. We use all the common list separators. 11529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11530 for pkg in $enableval; do 11531 IFS="$lt_save_ifs" 11532 if test "X$pkg" = "X$p"; then 11533 enable_static=yes 11534 fi 11535 done 11536 IFS="$lt_save_ifs" 11537 ;; 11538 esac 11539else 11540 enable_static=yes 11541fi 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552# Check whether --with-pic was given. 11553if test "${with_pic+set}" = set; then : 11554 withval=$with_pic; pic_mode="$withval" 11555else 11556 pic_mode=default 11557fi 11558 11559 11560test -z "$pic_mode" && pic_mode=default 11561 11562 11563 11564 11565 11566 11567 11568 # Check whether --enable-fast-install was given. 11569if test "${enable_fast_install+set}" = set; then : 11570 enableval=$enable_fast_install; p=${PACKAGE-default} 11571 case $enableval in 11572 yes) enable_fast_install=yes ;; 11573 no) enable_fast_install=no ;; 11574 *) 11575 enable_fast_install=no 11576 # Look at the argument we got. We use all the common list separators. 11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11578 for pkg in $enableval; do 11579 IFS="$lt_save_ifs" 11580 if test "X$pkg" = "X$p"; then 11581 enable_fast_install=yes 11582 fi 11583 done 11584 IFS="$lt_save_ifs" 11585 ;; 11586 esac 11587else 11588 enable_fast_install=yes 11589fi 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601# This can be used to rebuild libtool when needed 11602LIBTOOL_DEPS="$ltmain" 11603 11604# Always use our own libtool. 11605LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632test -z "$LN_S" && LN_S="ln -s" 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647if test -n "${ZSH_VERSION+set}" ; then 11648 setopt NO_GLOB_SUBST 11649fi 11650 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11652$as_echo_n "checking for objdir... " >&6; } 11653if ${lt_cv_objdir+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 rm -f .libs 2>/dev/null 11657mkdir .libs 2>/dev/null 11658if test -d .libs; then 11659 lt_cv_objdir=.libs 11660else 11661 # MS-DOS does not allow filenames that begin with a dot. 11662 lt_cv_objdir=_libs 11663fi 11664rmdir .libs 2>/dev/null 11665fi 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11667$as_echo "$lt_cv_objdir" >&6; } 11668objdir=$lt_cv_objdir 11669 11670 11671 11672 11673 11674cat >>confdefs.h <<_ACEOF 11675#define LT_OBJDIR "$lt_cv_objdir/" 11676_ACEOF 11677 11678 11679 11680 11681case $host_os in 11682aix3*) 11683 # AIX sometimes has problems with the GCC collect2 program. For some 11684 # reason, if we set the COLLECT_NAMES environment variable, the problems 11685 # vanish in a puff of smoke. 11686 if test "X${COLLECT_NAMES+set}" != Xset; then 11687 COLLECT_NAMES= 11688 export COLLECT_NAMES 11689 fi 11690 ;; 11691esac 11692 11693# Global variables: 11694ofile=libtool 11695can_build_shared=yes 11696 11697# All known linkers require a `.a' archive for static linking (except MSVC, 11698# which needs '.lib'). 11699libext=a 11700 11701with_gnu_ld="$lt_cv_prog_gnu_ld" 11702 11703old_CC="$CC" 11704old_CFLAGS="$CFLAGS" 11705 11706# Set sane defaults for various variables 11707test -z "$CC" && CC=cc 11708test -z "$LTCC" && LTCC=$CC 11709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11710test -z "$LD" && LD=ld 11711test -z "$ac_objext" && ac_objext=o 11712 11713for cc_temp in $compiler""; do 11714 case $cc_temp in 11715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11717 \-*) ;; 11718 *) break;; 11719 esac 11720done 11721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11722 11723 11724# Only perform the check for file, if the check method requires it 11725test -z "$MAGIC_CMD" && MAGIC_CMD=file 11726case $deplibs_check_method in 11727file_magic*) 11728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11731if ${lt_cv_path_MAGIC_CMD+:} false; then : 11732 $as_echo_n "(cached) " >&6 11733else 11734 case $MAGIC_CMD in 11735[\\/*] | ?:[\\/]*) 11736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11737 ;; 11738*) 11739 lt_save_MAGIC_CMD="$MAGIC_CMD" 11740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11742 for ac_dir in $ac_dummy; do 11743 IFS="$lt_save_ifs" 11744 test -z "$ac_dir" && ac_dir=. 11745 if test -f $ac_dir/${ac_tool_prefix}file; then 11746 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11747 if test -n "$file_magic_test_file"; then 11748 case $deplibs_check_method in 11749 "file_magic "*) 11750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11753 $EGREP "$file_magic_regex" > /dev/null; then 11754 : 11755 else 11756 cat <<_LT_EOF 1>&2 11757 11758*** Warning: the command libtool uses to detect shared libraries, 11759*** $file_magic_cmd, produces output that libtool cannot recognize. 11760*** The result is that libtool may fail to recognize shared libraries 11761*** as such. This will affect the creation of libtool libraries that 11762*** depend on shared libraries, but programs linked with such libtool 11763*** libraries will work regardless of this problem. Nevertheless, you 11764*** may want to report the problem to your system manager and/or to 11765*** bug-libtool@gnu.org 11766 11767_LT_EOF 11768 fi ;; 11769 esac 11770 fi 11771 break 11772 fi 11773 done 11774 IFS="$lt_save_ifs" 11775 MAGIC_CMD="$lt_save_MAGIC_CMD" 11776 ;; 11777esac 11778fi 11779 11780MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11781if test -n "$MAGIC_CMD"; then 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11783$as_echo "$MAGIC_CMD" >&6; } 11784else 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11786$as_echo "no" >&6; } 11787fi 11788 11789 11790 11791 11792 11793if test -z "$lt_cv_path_MAGIC_CMD"; then 11794 if test -n "$ac_tool_prefix"; then 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11796$as_echo_n "checking for file... " >&6; } 11797if ${lt_cv_path_MAGIC_CMD+:} false; then : 11798 $as_echo_n "(cached) " >&6 11799else 11800 case $MAGIC_CMD in 11801[\\/*] | ?:[\\/]*) 11802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11803 ;; 11804*) 11805 lt_save_MAGIC_CMD="$MAGIC_CMD" 11806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11808 for ac_dir in $ac_dummy; do 11809 IFS="$lt_save_ifs" 11810 test -z "$ac_dir" && ac_dir=. 11811 if test -f $ac_dir/file; then 11812 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11813 if test -n "$file_magic_test_file"; then 11814 case $deplibs_check_method in 11815 "file_magic "*) 11816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11819 $EGREP "$file_magic_regex" > /dev/null; then 11820 : 11821 else 11822 cat <<_LT_EOF 1>&2 11823 11824*** Warning: the command libtool uses to detect shared libraries, 11825*** $file_magic_cmd, produces output that libtool cannot recognize. 11826*** The result is that libtool may fail to recognize shared libraries 11827*** as such. This will affect the creation of libtool libraries that 11828*** depend on shared libraries, but programs linked with such libtool 11829*** libraries will work regardless of this problem. Nevertheless, you 11830*** may want to report the problem to your system manager and/or to 11831*** bug-libtool@gnu.org 11832 11833_LT_EOF 11834 fi ;; 11835 esac 11836 fi 11837 break 11838 fi 11839 done 11840 IFS="$lt_save_ifs" 11841 MAGIC_CMD="$lt_save_MAGIC_CMD" 11842 ;; 11843esac 11844fi 11845 11846MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11847if test -n "$MAGIC_CMD"; then 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11849$as_echo "$MAGIC_CMD" >&6; } 11850else 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11852$as_echo "no" >&6; } 11853fi 11854 11855 11856 else 11857 MAGIC_CMD=: 11858 fi 11859fi 11860 11861 fi 11862 ;; 11863esac 11864 11865# Use C for the default configuration in the libtool script 11866 11867lt_save_CC="$CC" 11868ac_ext=c 11869ac_cpp='$CPP $CPPFLAGS' 11870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11872ac_compiler_gnu=$ac_cv_c_compiler_gnu 11873 11874 11875# Source file extension for C test sources. 11876ac_ext=c 11877 11878# Object file extension for compiled C test sources. 11879objext=o 11880objext=$objext 11881 11882# Code to be used in simple compile tests 11883lt_simple_compile_test_code="int some_variable = 0;" 11884 11885# Code to be used in simple link tests 11886lt_simple_link_test_code='int main(){return(0);}' 11887 11888 11889 11890 11891 11892 11893 11894# If no C compiler was specified, use CC. 11895LTCC=${LTCC-"$CC"} 11896 11897# If no C compiler flags were specified, use CFLAGS. 11898LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11899 11900# Allow CC to be a program name with arguments. 11901compiler=$CC 11902 11903# Save the default compiler, since it gets overwritten when the other 11904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11905compiler_DEFAULT=$CC 11906 11907# save warnings/boilerplate of simple test code 11908ac_outfile=conftest.$ac_objext 11909echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11911_lt_compiler_boilerplate=`cat conftest.err` 11912$RM conftest* 11913 11914ac_outfile=conftest.$ac_objext 11915echo "$lt_simple_link_test_code" >conftest.$ac_ext 11916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11917_lt_linker_boilerplate=`cat conftest.err` 11918$RM -r conftest* 11919 11920 11921## CAVEAT EMPTOR: 11922## There is no encapsulation within the following macros, do not change 11923## the running order or otherwise move them around unless you know exactly 11924## what you are doing... 11925if test -n "$compiler"; then 11926 11927lt_prog_compiler_no_builtin_flag= 11928 11929if test "$GCC" = yes; then 11930 case $cc_basename in 11931 nvcc*) 11932 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11933 *) 11934 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11935 esac 11936 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11940 $as_echo_n "(cached) " >&6 11941else 11942 lt_cv_prog_compiler_rtti_exceptions=no 11943 ac_outfile=conftest.$ac_objext 11944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11945 lt_compiler_flag="-fno-rtti -fno-exceptions" 11946 # Insert the option either (1) after the last *FLAGS variable, or 11947 # (2) before a word containing "conftest.", or (3) at the end. 11948 # Note that $ac_compile itself does not contain backslashes and begins 11949 # with a dollar sign (not a hyphen), so the echo should work correctly. 11950 # The option is referenced via a variable to avoid confusing sed. 11951 lt_compile=`echo "$ac_compile" | $SED \ 11952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11954 -e 's:$: $lt_compiler_flag:'` 11955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11956 (eval "$lt_compile" 2>conftest.err) 11957 ac_status=$? 11958 cat conftest.err >&5 11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11960 if (exit $ac_status) && test -s "$ac_outfile"; then 11961 # The compiler can only warn and ignore the option if not recognized 11962 # So say no if there are warnings other than the usual output. 11963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11966 lt_cv_prog_compiler_rtti_exceptions=yes 11967 fi 11968 fi 11969 $RM conftest* 11970 11971fi 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11974 11975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11976 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11977else 11978 : 11979fi 11980 11981fi 11982 11983 11984 11985 11986 11987 11988 lt_prog_compiler_wl= 11989lt_prog_compiler_pic= 11990lt_prog_compiler_static= 11991 11992 11993 if test "$GCC" = yes; then 11994 lt_prog_compiler_wl='-Wl,' 11995 lt_prog_compiler_static='-static' 11996 11997 case $host_os in 11998 aix*) 11999 # All AIX code is PIC. 12000 if test "$host_cpu" = ia64; then 12001 # AIX 5 now supports IA64 processor 12002 lt_prog_compiler_static='-Bstatic' 12003 fi 12004 ;; 12005 12006 amigaos*) 12007 case $host_cpu in 12008 powerpc) 12009 # see comment about AmigaOS4 .so support 12010 lt_prog_compiler_pic='-fPIC' 12011 ;; 12012 m68k) 12013 # FIXME: we need at least 68020 code to build shared libraries, but 12014 # adding the `-m68020' flag to GCC prevents building anything better, 12015 # like `-m68040'. 12016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12017 ;; 12018 esac 12019 ;; 12020 12021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12022 # PIC is the default for these OSes. 12023 ;; 12024 12025 mingw* | cygwin* | pw32* | os2* | cegcc*) 12026 # This hack is so that the source file can tell whether it is being 12027 # built for inclusion in a dll (and should export symbols for example). 12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12029 # (--disable-auto-import) libraries 12030 lt_prog_compiler_pic='-DDLL_EXPORT' 12031 ;; 12032 12033 darwin* | rhapsody*) 12034 # PIC is the default on this platform 12035 # Common symbols not allowed in MH_DYLIB files 12036 lt_prog_compiler_pic='-fno-common' 12037 ;; 12038 12039 haiku*) 12040 # PIC is the default for Haiku. 12041 # The "-static" flag exists, but is broken. 12042 lt_prog_compiler_static= 12043 ;; 12044 12045 hpux*) 12046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12048 # sets the default TLS model and affects inlining. 12049 case $host_cpu in 12050 hppa*64*) 12051 # +Z the default 12052 ;; 12053 *) 12054 lt_prog_compiler_pic='-fPIC' 12055 ;; 12056 esac 12057 ;; 12058 12059 interix[3-9]*) 12060 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12061 # Instead, we relocate shared libraries at runtime. 12062 ;; 12063 12064 msdosdjgpp*) 12065 # Just because we use GCC doesn't mean we suddenly get shared libraries 12066 # on systems that don't support them. 12067 lt_prog_compiler_can_build_shared=no 12068 enable_shared=no 12069 ;; 12070 12071 *nto* | *qnx*) 12072 # QNX uses GNU C++, but need to define -shared option too, otherwise 12073 # it will coredump. 12074 lt_prog_compiler_pic='-fPIC -shared' 12075 ;; 12076 12077 sysv4*MP*) 12078 if test -d /usr/nec; then 12079 lt_prog_compiler_pic=-Kconform_pic 12080 fi 12081 ;; 12082 12083 *) 12084 lt_prog_compiler_pic='-fPIC' 12085 ;; 12086 esac 12087 12088 case $cc_basename in 12089 nvcc*) # Cuda Compiler Driver 2.2 12090 lt_prog_compiler_wl='-Xlinker ' 12091 lt_prog_compiler_pic='-Xcompiler -fPIC' 12092 ;; 12093 esac 12094 else 12095 # PORTME Check for flag to pass linker flags through the system compiler. 12096 case $host_os in 12097 aix*) 12098 lt_prog_compiler_wl='-Wl,' 12099 if test "$host_cpu" = ia64; then 12100 # AIX 5 now supports IA64 processor 12101 lt_prog_compiler_static='-Bstatic' 12102 else 12103 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12104 fi 12105 ;; 12106 12107 mingw* | cygwin* | pw32* | os2* | cegcc*) 12108 # This hack is so that the source file can tell whether it is being 12109 # built for inclusion in a dll (and should export symbols for example). 12110 lt_prog_compiler_pic='-DDLL_EXPORT' 12111 ;; 12112 12113 hpux9* | hpux10* | hpux11*) 12114 lt_prog_compiler_wl='-Wl,' 12115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12116 # not for PA HP-UX. 12117 case $host_cpu in 12118 hppa*64*|ia64*) 12119 # +Z the default 12120 ;; 12121 *) 12122 lt_prog_compiler_pic='+Z' 12123 ;; 12124 esac 12125 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12126 lt_prog_compiler_static='${wl}-a ${wl}archive' 12127 ;; 12128 12129 irix5* | irix6* | nonstopux*) 12130 lt_prog_compiler_wl='-Wl,' 12131 # PIC (with -KPIC) is the default. 12132 lt_prog_compiler_static='-non_shared' 12133 ;; 12134 12135 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12136 case $cc_basename in 12137 # old Intel for x86_64 which still supported -KPIC. 12138 ecc*) 12139 lt_prog_compiler_wl='-Wl,' 12140 lt_prog_compiler_pic='-KPIC' 12141 lt_prog_compiler_static='-static' 12142 ;; 12143 # icc used to be incompatible with GCC. 12144 # ICC 10 doesn't accept -KPIC any more. 12145 icc* | ifort*) 12146 lt_prog_compiler_wl='-Wl,' 12147 lt_prog_compiler_pic='-fPIC' 12148 lt_prog_compiler_static='-static' 12149 ;; 12150 # Lahey Fortran 8.1. 12151 lf95*) 12152 lt_prog_compiler_wl='-Wl,' 12153 lt_prog_compiler_pic='--shared' 12154 lt_prog_compiler_static='--static' 12155 ;; 12156 nagfor*) 12157 # NAG Fortran compiler 12158 lt_prog_compiler_wl='-Wl,-Wl,,' 12159 lt_prog_compiler_pic='-PIC' 12160 lt_prog_compiler_static='-Bstatic' 12161 ;; 12162 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12163 # Portland Group compilers (*not* the Pentium gcc compiler, 12164 # which looks to be a dead project) 12165 lt_prog_compiler_wl='-Wl,' 12166 lt_prog_compiler_pic='-fpic' 12167 lt_prog_compiler_static='-Bstatic' 12168 ;; 12169 ccc*) 12170 lt_prog_compiler_wl='-Wl,' 12171 # All Alpha code is PIC. 12172 lt_prog_compiler_static='-non_shared' 12173 ;; 12174 xl* | bgxl* | bgf* | mpixl*) 12175 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12176 lt_prog_compiler_wl='-Wl,' 12177 lt_prog_compiler_pic='-qpic' 12178 lt_prog_compiler_static='-qstaticlink' 12179 ;; 12180 *) 12181 case `$CC -V 2>&1 | sed 5q` in 12182 *Sun\ F* | *Sun*Fortran*) 12183 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12184 lt_prog_compiler_pic='-KPIC' 12185 lt_prog_compiler_static='-Bstatic' 12186 lt_prog_compiler_wl='' 12187 ;; 12188 *Sun\ C*) 12189 # Sun C 5.9 12190 lt_prog_compiler_pic='-KPIC' 12191 lt_prog_compiler_static='-Bstatic' 12192 lt_prog_compiler_wl='-Wl,' 12193 ;; 12194 esac 12195 ;; 12196 esac 12197 ;; 12198 12199 newsos6) 12200 lt_prog_compiler_pic='-KPIC' 12201 lt_prog_compiler_static='-Bstatic' 12202 ;; 12203 12204 *nto* | *qnx*) 12205 # QNX uses GNU C++, but need to define -shared option too, otherwise 12206 # it will coredump. 12207 lt_prog_compiler_pic='-fPIC -shared' 12208 ;; 12209 12210 osf3* | osf4* | osf5*) 12211 lt_prog_compiler_wl='-Wl,' 12212 # All OSF/1 code is PIC. 12213 lt_prog_compiler_static='-non_shared' 12214 ;; 12215 12216 rdos*) 12217 lt_prog_compiler_static='-non_shared' 12218 ;; 12219 12220 solaris*) 12221 lt_prog_compiler_pic='-KPIC' 12222 lt_prog_compiler_static='-Bstatic' 12223 case $cc_basename in 12224 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12225 lt_prog_compiler_wl='-Qoption ld ';; 12226 *) 12227 lt_prog_compiler_wl='-Wl,';; 12228 esac 12229 ;; 12230 12231 sunos4*) 12232 lt_prog_compiler_wl='-Qoption ld ' 12233 lt_prog_compiler_pic='-PIC' 12234 lt_prog_compiler_static='-Bstatic' 12235 ;; 12236 12237 sysv4 | sysv4.2uw2* | sysv4.3*) 12238 lt_prog_compiler_wl='-Wl,' 12239 lt_prog_compiler_pic='-KPIC' 12240 lt_prog_compiler_static='-Bstatic' 12241 ;; 12242 12243 sysv4*MP*) 12244 if test -d /usr/nec ;then 12245 lt_prog_compiler_pic='-Kconform_pic' 12246 lt_prog_compiler_static='-Bstatic' 12247 fi 12248 ;; 12249 12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12251 lt_prog_compiler_wl='-Wl,' 12252 lt_prog_compiler_pic='-KPIC' 12253 lt_prog_compiler_static='-Bstatic' 12254 ;; 12255 12256 unicos*) 12257 lt_prog_compiler_wl='-Wl,' 12258 lt_prog_compiler_can_build_shared=no 12259 ;; 12260 12261 uts4*) 12262 lt_prog_compiler_pic='-pic' 12263 lt_prog_compiler_static='-Bstatic' 12264 ;; 12265 12266 *) 12267 lt_prog_compiler_can_build_shared=no 12268 ;; 12269 esac 12270 fi 12271 12272case $host_os in 12273 # For platforms which do not support PIC, -DPIC is meaningless: 12274 *djgpp*) 12275 lt_prog_compiler_pic= 12276 ;; 12277 *) 12278 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12279 ;; 12280esac 12281 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12283$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12284if ${lt_cv_prog_compiler_pic+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12288fi 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12290$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12291lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12292 12293# 12294# Check to make sure the PIC flag actually works. 12295# 12296if test -n "$lt_prog_compiler_pic"; then 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12298$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12299if ${lt_cv_prog_compiler_pic_works+:} false; then : 12300 $as_echo_n "(cached) " >&6 12301else 12302 lt_cv_prog_compiler_pic_works=no 12303 ac_outfile=conftest.$ac_objext 12304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 12306 # Insert the option either (1) after the last *FLAGS variable, or 12307 # (2) before a word containing "conftest.", or (3) at the end. 12308 # Note that $ac_compile itself does not contain backslashes and begins 12309 # with a dollar sign (not a hyphen), so the echo should work correctly. 12310 # The option is referenced via a variable to avoid confusing sed. 12311 lt_compile=`echo "$ac_compile" | $SED \ 12312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12314 -e 's:$: $lt_compiler_flag:'` 12315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12316 (eval "$lt_compile" 2>conftest.err) 12317 ac_status=$? 12318 cat conftest.err >&5 12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12320 if (exit $ac_status) && test -s "$ac_outfile"; then 12321 # The compiler can only warn and ignore the option if not recognized 12322 # So say no if there are warnings other than the usual output. 12323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12326 lt_cv_prog_compiler_pic_works=yes 12327 fi 12328 fi 12329 $RM conftest* 12330 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12333$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12334 12335if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 12336 case $lt_prog_compiler_pic in 12337 "" | " "*) ;; 12338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12339 esac 12340else 12341 lt_prog_compiler_pic= 12342 lt_prog_compiler_can_build_shared=no 12343fi 12344 12345fi 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357# 12358# Check to make sure the static flag actually works. 12359# 12360wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12362$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12363if ${lt_cv_prog_compiler_static_works+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 lt_cv_prog_compiler_static_works=no 12367 save_LDFLAGS="$LDFLAGS" 12368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12369 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12371 # The linker can only warn and ignore the option if not recognized 12372 # So say no if there are warnings 12373 if test -s conftest.err; then 12374 # Append any errors to the config.log. 12375 cat conftest.err 1>&5 12376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12378 if diff conftest.exp conftest.er2 >/dev/null; then 12379 lt_cv_prog_compiler_static_works=yes 12380 fi 12381 else 12382 lt_cv_prog_compiler_static_works=yes 12383 fi 12384 fi 12385 $RM -r conftest* 12386 LDFLAGS="$save_LDFLAGS" 12387 12388fi 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12390$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12391 12392if test x"$lt_cv_prog_compiler_static_works" = xyes; then 12393 : 12394else 12395 lt_prog_compiler_static= 12396fi 12397 12398 12399 12400 12401 12402 12403 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12405$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12406if ${lt_cv_prog_compiler_c_o+:} false; then : 12407 $as_echo_n "(cached) " >&6 12408else 12409 lt_cv_prog_compiler_c_o=no 12410 $RM -r conftest 2>/dev/null 12411 mkdir conftest 12412 cd conftest 12413 mkdir out 12414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12415 12416 lt_compiler_flag="-o out/conftest2.$ac_objext" 12417 # Insert the option either (1) after the last *FLAGS variable, or 12418 # (2) before a word containing "conftest.", or (3) at the end. 12419 # Note that $ac_compile itself does not contain backslashes and begins 12420 # with a dollar sign (not a hyphen), so the echo should work correctly. 12421 lt_compile=`echo "$ac_compile" | $SED \ 12422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12424 -e 's:$: $lt_compiler_flag:'` 12425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12426 (eval "$lt_compile" 2>out/conftest.err) 12427 ac_status=$? 12428 cat out/conftest.err >&5 12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12430 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12431 then 12432 # The compiler can only warn and ignore the option if not recognized 12433 # So say no if there are warnings 12434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12437 lt_cv_prog_compiler_c_o=yes 12438 fi 12439 fi 12440 chmod u+w . 2>&5 12441 $RM conftest* 12442 # SGI C++ compiler will create directory out/ii_files/ for 12443 # template instantiation 12444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12445 $RM out/* && rmdir out 12446 cd .. 12447 $RM -r conftest 12448 $RM conftest* 12449 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12452$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12453 12454 12455 12456 12457 12458 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12460$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12461if ${lt_cv_prog_compiler_c_o+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463else 12464 lt_cv_prog_compiler_c_o=no 12465 $RM -r conftest 2>/dev/null 12466 mkdir conftest 12467 cd conftest 12468 mkdir out 12469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12470 12471 lt_compiler_flag="-o out/conftest2.$ac_objext" 12472 # Insert the option either (1) after the last *FLAGS variable, or 12473 # (2) before a word containing "conftest.", or (3) at the end. 12474 # Note that $ac_compile itself does not contain backslashes and begins 12475 # with a dollar sign (not a hyphen), so the echo should work correctly. 12476 lt_compile=`echo "$ac_compile" | $SED \ 12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12479 -e 's:$: $lt_compiler_flag:'` 12480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12481 (eval "$lt_compile" 2>out/conftest.err) 12482 ac_status=$? 12483 cat out/conftest.err >&5 12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12485 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12486 then 12487 # The compiler can only warn and ignore the option if not recognized 12488 # So say no if there are warnings 12489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12492 lt_cv_prog_compiler_c_o=yes 12493 fi 12494 fi 12495 chmod u+w . 2>&5 12496 $RM conftest* 12497 # SGI C++ compiler will create directory out/ii_files/ for 12498 # template instantiation 12499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12500 $RM out/* && rmdir out 12501 cd .. 12502 $RM -r conftest 12503 $RM conftest* 12504 12505fi 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12507$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12508 12509 12510 12511 12512hard_links="nottested" 12513if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 12514 # do not overwrite the value of need_locks provided by the user 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12516$as_echo_n "checking if we can lock with hard links... " >&6; } 12517 hard_links=yes 12518 $RM conftest* 12519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12520 touch conftest.a 12521 ln conftest.a conftest.b 2>&5 || hard_links=no 12522 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12524$as_echo "$hard_links" >&6; } 12525 if test "$hard_links" = no; then 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12527$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12528 need_locks=warn 12529 fi 12530else 12531 need_locks=no 12532fi 12533 12534 12535 12536 12537 12538 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12540$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12541 12542 runpath_var= 12543 allow_undefined_flag= 12544 always_export_symbols=no 12545 archive_cmds= 12546 archive_expsym_cmds= 12547 compiler_needs_object=no 12548 enable_shared_with_static_runtimes=no 12549 export_dynamic_flag_spec= 12550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12551 hardcode_automatic=no 12552 hardcode_direct=no 12553 hardcode_direct_absolute=no 12554 hardcode_libdir_flag_spec= 12555 hardcode_libdir_flag_spec_ld= 12556 hardcode_libdir_separator= 12557 hardcode_minus_L=no 12558 hardcode_shlibpath_var=unsupported 12559 inherit_rpath=no 12560 link_all_deplibs=unknown 12561 module_cmds= 12562 module_expsym_cmds= 12563 old_archive_from_new_cmds= 12564 old_archive_from_expsyms_cmds= 12565 thread_safe_flag_spec= 12566 whole_archive_flag_spec= 12567 # include_expsyms should be a list of space-separated symbols to be *always* 12568 # included in the symbol list 12569 include_expsyms= 12570 # exclude_expsyms can be an extended regexp of symbols to exclude 12571 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12573 # as well as any symbol that contains `d'. 12574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12576 # platforms (ab)use it in PIC code, but their linkers get confused if 12577 # the symbol is explicitly referenced. Since portable code cannot 12578 # rely on this symbol name, it's probably fine to never include it in 12579 # preloaded symbol tables. 12580 # Exclude shared library initialization/finalization symbols. 12581 extract_expsyms_cmds= 12582 12583 case $host_os in 12584 cygwin* | mingw* | pw32* | cegcc*) 12585 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12586 # When not using gcc, we currently assume that we are using 12587 # Microsoft Visual C++. 12588 if test "$GCC" != yes; then 12589 with_gnu_ld=no 12590 fi 12591 ;; 12592 interix*) 12593 # we just hope/assume this is gcc and not c89 (= MSVC++) 12594 with_gnu_ld=yes 12595 ;; 12596 openbsd*) 12597 with_gnu_ld=no 12598 ;; 12599 esac 12600 12601 ld_shlibs=yes 12602 12603 # On some targets, GNU ld is compatible enough with the native linker 12604 # that we're better off using the native interface for both. 12605 lt_use_gnu_ld_interface=no 12606 if test "$with_gnu_ld" = yes; then 12607 case $host_os in 12608 aix*) 12609 # The AIX port of GNU ld has always aspired to compatibility 12610 # with the native linker. However, as the warning in the GNU ld 12611 # block says, versions before 2.19.5* couldn't really create working 12612 # shared libraries, regardless of the interface used. 12613 case `$LD -v 2>&1` in 12614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12616 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12617 *) 12618 lt_use_gnu_ld_interface=yes 12619 ;; 12620 esac 12621 ;; 12622 *) 12623 lt_use_gnu_ld_interface=yes 12624 ;; 12625 esac 12626 fi 12627 12628 if test "$lt_use_gnu_ld_interface" = yes; then 12629 # If archive_cmds runs LD, not CC, wlarc should be empty 12630 wlarc='${wl}' 12631 12632 # Set some defaults for GNU ld with shared library support. These 12633 # are reset later if shared libraries are not supported. Putting them 12634 # here allows them to be overridden if necessary. 12635 runpath_var=LD_RUN_PATH 12636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12637 export_dynamic_flag_spec='${wl}--export-dynamic' 12638 # ancient GNU ld didn't support --whole-archive et. al. 12639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12641 else 12642 whole_archive_flag_spec= 12643 fi 12644 supports_anon_versioning=no 12645 case `$LD -v 2>&1` in 12646 *GNU\ gold*) supports_anon_versioning=yes ;; 12647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12650 *\ 2.11.*) ;; # other 2.11 versions 12651 *) supports_anon_versioning=yes ;; 12652 esac 12653 12654 # See if GNU ld supports shared libraries. 12655 case $host_os in 12656 aix[3-9]*) 12657 # On AIX/PPC, the GNU linker is very broken 12658 if test "$host_cpu" != ia64; then 12659 ld_shlibs=no 12660 cat <<_LT_EOF 1>&2 12661 12662*** Warning: the GNU linker, at least up to release 2.19, is reported 12663*** to be unable to reliably create shared libraries on AIX. 12664*** Therefore, libtool is disabling shared libraries support. If you 12665*** really care for shared libraries, you may want to install binutils 12666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12667*** You will then need to restart the configuration process. 12668 12669_LT_EOF 12670 fi 12671 ;; 12672 12673 amigaos*) 12674 case $host_cpu in 12675 powerpc) 12676 # see comment about AmigaOS4 .so support 12677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12678 archive_expsym_cmds='' 12679 ;; 12680 m68k) 12681 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)' 12682 hardcode_libdir_flag_spec='-L$libdir' 12683 hardcode_minus_L=yes 12684 ;; 12685 esac 12686 ;; 12687 12688 beos*) 12689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12690 allow_undefined_flag=unsupported 12691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12692 # support --undefined. This deserves some investigation. FIXME 12693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12694 else 12695 ld_shlibs=no 12696 fi 12697 ;; 12698 12699 cygwin* | mingw* | pw32* | cegcc*) 12700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12701 # as there is no search path for DLLs. 12702 hardcode_libdir_flag_spec='-L$libdir' 12703 export_dynamic_flag_spec='${wl}--export-all-symbols' 12704 allow_undefined_flag=unsupported 12705 always_export_symbols=no 12706 enable_shared_with_static_runtimes=yes 12707 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' 12708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12709 12710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12712 # If the export-symbols file already is a .def file (1st line 12713 # is EXPORTS), use it as is; otherwise, prepend... 12714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12715 cp $export_symbols $output_objdir/$soname.def; 12716 else 12717 echo EXPORTS > $output_objdir/$soname.def; 12718 cat $export_symbols >> $output_objdir/$soname.def; 12719 fi~ 12720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12721 else 12722 ld_shlibs=no 12723 fi 12724 ;; 12725 12726 haiku*) 12727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12728 link_all_deplibs=yes 12729 ;; 12730 12731 interix[3-9]*) 12732 hardcode_direct=no 12733 hardcode_shlibpath_var=no 12734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12735 export_dynamic_flag_spec='${wl}-E' 12736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12737 # Instead, shared libraries are loaded at an image base (0x10000000 by 12738 # default) and relocated if they conflict, which is a slow very memory 12739 # consuming and fragmenting process. To avoid this, we pick a random, 12740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12741 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12743 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' 12744 ;; 12745 12746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12747 tmp_diet=no 12748 if test "$host_os" = linux-dietlibc; then 12749 case $cc_basename in 12750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12751 esac 12752 fi 12753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12754 && test "$tmp_diet" = no 12755 then 12756 tmp_addflag=' $pic_flag' 12757 tmp_sharedflag='-shared' 12758 case $cc_basename,$host_cpu in 12759 pgcc*) # Portland Group C compiler 12760 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' 12761 tmp_addflag=' $pic_flag' 12762 ;; 12763 pgf77* | pgf90* | pgf95* | pgfortran*) 12764 # Portland Group f77 and f90 compilers 12765 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' 12766 tmp_addflag=' $pic_flag -Mnomain' ;; 12767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12768 tmp_addflag=' -i_dynamic' ;; 12769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12770 tmp_addflag=' -i_dynamic -nofor_main' ;; 12771 ifc* | ifort*) # Intel Fortran compiler 12772 tmp_addflag=' -nofor_main' ;; 12773 lf95*) # Lahey Fortran 8.1 12774 whole_archive_flag_spec= 12775 tmp_sharedflag='--shared' ;; 12776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12777 tmp_sharedflag='-qmkshrobj' 12778 tmp_addflag= ;; 12779 nvcc*) # Cuda Compiler Driver 2.2 12780 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' 12781 compiler_needs_object=yes 12782 ;; 12783 esac 12784 case `$CC -V 2>&1 | sed 5q` in 12785 *Sun\ C*) # Sun C 5.9 12786 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' 12787 compiler_needs_object=yes 12788 tmp_sharedflag='-G' ;; 12789 *Sun\ F*) # Sun Fortran 8.3 12790 tmp_sharedflag='-G' ;; 12791 esac 12792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12793 12794 if test "x$supports_anon_versioning" = xyes; then 12795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12797 echo "local: *; };" >> $output_objdir/$libname.ver~ 12798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12799 fi 12800 12801 case $cc_basename in 12802 xlf* | bgf* | bgxlf* | mpixlf*) 12803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12805 hardcode_libdir_flag_spec= 12806 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12808 if test "x$supports_anon_versioning" = xyes; then 12809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12811 echo "local: *; };" >> $output_objdir/$libname.ver~ 12812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12813 fi 12814 ;; 12815 esac 12816 else 12817 ld_shlibs=no 12818 fi 12819 ;; 12820 12821 netbsd*) 12822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12824 wlarc= 12825 else 12826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12828 fi 12829 ;; 12830 12831 solaris*) 12832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12833 ld_shlibs=no 12834 cat <<_LT_EOF 1>&2 12835 12836*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12837*** create shared libraries on Solaris systems. Therefore, libtool 12838*** is disabling shared libraries support. We urge you to upgrade GNU 12839*** binutils to release 2.9.1 or newer. Another option is to modify 12840*** your PATH or compiler configuration so that the native linker is 12841*** used, and then restart. 12842 12843_LT_EOF 12844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12847 else 12848 ld_shlibs=no 12849 fi 12850 ;; 12851 12852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12853 case `$LD -v 2>&1` in 12854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12855 ld_shlibs=no 12856 cat <<_LT_EOF 1>&2 12857 12858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12859*** reliably create shared libraries on SCO systems. Therefore, libtool 12860*** is disabling shared libraries support. We urge you to upgrade GNU 12861*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12862*** your PATH or compiler configuration so that the native linker is 12863*** used, and then restart. 12864 12865_LT_EOF 12866 ;; 12867 *) 12868 # For security reasons, it is highly recommended that you always 12869 # use absolute paths for naming shared libraries, and exclude the 12870 # DT_RUNPATH tag from executables and libraries. But doing so 12871 # requires that you compile everything twice, which is a pain. 12872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12876 else 12877 ld_shlibs=no 12878 fi 12879 ;; 12880 esac 12881 ;; 12882 12883 sunos4*) 12884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12885 wlarc= 12886 hardcode_direct=yes 12887 hardcode_shlibpath_var=no 12888 ;; 12889 12890 *) 12891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12894 else 12895 ld_shlibs=no 12896 fi 12897 ;; 12898 esac 12899 12900 if test "$ld_shlibs" = no; then 12901 runpath_var= 12902 hardcode_libdir_flag_spec= 12903 export_dynamic_flag_spec= 12904 whole_archive_flag_spec= 12905 fi 12906 else 12907 # PORTME fill in a description of your system's linker (not GNU ld) 12908 case $host_os in 12909 aix3*) 12910 allow_undefined_flag=unsupported 12911 always_export_symbols=yes 12912 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' 12913 # Note: this linker hardcodes the directories in LIBPATH if there 12914 # are no directories specified by -L. 12915 hardcode_minus_L=yes 12916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12917 # Neither direct hardcoding nor static linking is supported with a 12918 # broken collect2. 12919 hardcode_direct=unsupported 12920 fi 12921 ;; 12922 12923 aix[4-9]*) 12924 if test "$host_cpu" = ia64; then 12925 # On IA64, the linker does run time linking by default, so we don't 12926 # have to do anything special. 12927 aix_use_runtimelinking=no 12928 exp_sym_flag='-Bexport' 12929 no_entry_flag="" 12930 else 12931 # If we're using GNU nm, then we don't want the "-C" option. 12932 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12933 # Also, AIX nm treats weak defined symbols like other global 12934 # defined symbols, whereas GNU nm marks them as "W". 12935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12936 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12937 else 12938 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12939 fi 12940 aix_use_runtimelinking=no 12941 12942 # Test if we are trying to use run time linking or normal 12943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12944 # need to do runtime linking. 12945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12946 for ld_flag in $LDFLAGS; do 12947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12948 aix_use_runtimelinking=yes 12949 break 12950 fi 12951 done 12952 ;; 12953 esac 12954 12955 exp_sym_flag='-bexport' 12956 no_entry_flag='-bnoentry' 12957 fi 12958 12959 # When large executables or shared objects are built, AIX ld can 12960 # have problems creating the table of contents. If linking a library 12961 # or program results in "error TOC overflow" add -mminimal-toc to 12962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12964 12965 archive_cmds='' 12966 hardcode_direct=yes 12967 hardcode_direct_absolute=yes 12968 hardcode_libdir_separator=':' 12969 link_all_deplibs=yes 12970 file_list_spec='${wl}-f,' 12971 12972 if test "$GCC" = yes; then 12973 case $host_os in aix4.[012]|aix4.[012].*) 12974 # We only want to do this on AIX 4.2 and lower, the check 12975 # below for broken collect2 doesn't work under 4.3+ 12976 collect2name=`${CC} -print-prog-name=collect2` 12977 if test -f "$collect2name" && 12978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12979 then 12980 # We have reworked collect2 12981 : 12982 else 12983 # We have old collect2 12984 hardcode_direct=unsupported 12985 # It fails to find uninstalled libraries when the uninstalled 12986 # path is not listed in the libpath. Setting hardcode_minus_L 12987 # to unsupported forces relinking 12988 hardcode_minus_L=yes 12989 hardcode_libdir_flag_spec='-L$libdir' 12990 hardcode_libdir_separator= 12991 fi 12992 ;; 12993 esac 12994 shared_flag='-shared' 12995 if test "$aix_use_runtimelinking" = yes; then 12996 shared_flag="$shared_flag "'${wl}-G' 12997 fi 12998 else 12999 # not using gcc 13000 if test "$host_cpu" = ia64; then 13001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13002 # chokes on -Wl,-G. The following line is correct: 13003 shared_flag='-G' 13004 else 13005 if test "$aix_use_runtimelinking" = yes; then 13006 shared_flag='${wl}-G' 13007 else 13008 shared_flag='${wl}-bM:SRE' 13009 fi 13010 fi 13011 fi 13012 13013 export_dynamic_flag_spec='${wl}-bexpall' 13014 # It seems that -bexpall does not export symbols beginning with 13015 # underscore (_), so it is better to generate a list of symbols to export. 13016 always_export_symbols=yes 13017 if test "$aix_use_runtimelinking" = yes; then 13018 # Warning - without using the other runtime loading flags (-brtl), 13019 # -berok will link without error, but may produce a broken library. 13020 allow_undefined_flag='-berok' 13021 # Determine the default libpath from the value encoded in an 13022 # empty executable. 13023 if test "${lt_cv_aix_libpath+set}" = set; then 13024 aix_libpath=$lt_cv_aix_libpath 13025else 13026 if ${lt_cv_aix_libpath_+:} false; then : 13027 $as_echo_n "(cached) " >&6 13028else 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031 13032int 13033main () 13034{ 13035 13036 ; 13037 return 0; 13038} 13039_ACEOF 13040if ac_fn_c_try_link "$LINENO"; then : 13041 13042 lt_aix_libpath_sed=' 13043 /Import File Strings/,/^$/ { 13044 /^0/ { 13045 s/^0 *\([^ ]*\) *$/\1/ 13046 p 13047 } 13048 }' 13049 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13050 # Check for a 64-bit object if we didn't find anything. 13051 if test -z "$lt_cv_aix_libpath_"; then 13052 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13053 fi 13054fi 13055rm -f core conftest.err conftest.$ac_objext \ 13056 conftest$ac_exeext conftest.$ac_ext 13057 if test -z "$lt_cv_aix_libpath_"; then 13058 lt_cv_aix_libpath_="/usr/lib:/lib" 13059 fi 13060 13061fi 13062 13063 aix_libpath=$lt_cv_aix_libpath_ 13064fi 13065 13066 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 13067 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13068 else 13069 if test "$host_cpu" = ia64; then 13070 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 13071 allow_undefined_flag="-z nodefs" 13072 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" 13073 else 13074 # Determine the default libpath from the value encoded in an 13075 # empty executable. 13076 if test "${lt_cv_aix_libpath+set}" = set; then 13077 aix_libpath=$lt_cv_aix_libpath 13078else 13079 if ${lt_cv_aix_libpath_+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13083/* end confdefs.h. */ 13084 13085int 13086main () 13087{ 13088 13089 ; 13090 return 0; 13091} 13092_ACEOF 13093if ac_fn_c_try_link "$LINENO"; then : 13094 13095 lt_aix_libpath_sed=' 13096 /Import File Strings/,/^$/ { 13097 /^0/ { 13098 s/^0 *\([^ ]*\) *$/\1/ 13099 p 13100 } 13101 }' 13102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13103 # Check for a 64-bit object if we didn't find anything. 13104 if test -z "$lt_cv_aix_libpath_"; then 13105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13106 fi 13107fi 13108rm -f core conftest.err conftest.$ac_objext \ 13109 conftest$ac_exeext conftest.$ac_ext 13110 if test -z "$lt_cv_aix_libpath_"; then 13111 lt_cv_aix_libpath_="/usr/lib:/lib" 13112 fi 13113 13114fi 13115 13116 aix_libpath=$lt_cv_aix_libpath_ 13117fi 13118 13119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 13120 # Warning - without using the other run time loading flags, 13121 # -berok will link without error, but may produce a broken library. 13122 no_undefined_flag=' ${wl}-bernotok' 13123 allow_undefined_flag=' ${wl}-berok' 13124 if test "$with_gnu_ld" = yes; then 13125 # We only use this code for GNU lds that support --whole-archive. 13126 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13127 else 13128 # Exported symbols can be pulled into shared objects from archives 13129 whole_archive_flag_spec='$convenience' 13130 fi 13131 archive_cmds_need_lc=yes 13132 # This is similar to how AIX traditionally builds its shared libraries. 13133 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13134 fi 13135 fi 13136 ;; 13137 13138 amigaos*) 13139 case $host_cpu in 13140 powerpc) 13141 # see comment about AmigaOS4 .so support 13142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13143 archive_expsym_cmds='' 13144 ;; 13145 m68k) 13146 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)' 13147 hardcode_libdir_flag_spec='-L$libdir' 13148 hardcode_minus_L=yes 13149 ;; 13150 esac 13151 ;; 13152 13153 bsdi[45]*) 13154 export_dynamic_flag_spec=-rdynamic 13155 ;; 13156 13157 cygwin* | mingw* | pw32* | cegcc*) 13158 # When not using gcc, we currently assume that we are using 13159 # Microsoft Visual C++. 13160 # hardcode_libdir_flag_spec is actually meaningless, as there is 13161 # no search path for DLLs. 13162 case $cc_basename in 13163 cl*) 13164 # Native MSVC 13165 hardcode_libdir_flag_spec=' ' 13166 allow_undefined_flag=unsupported 13167 always_export_symbols=yes 13168 file_list_spec='@' 13169 # Tell ltmain to make .lib files, not .a files. 13170 libext=lib 13171 # Tell ltmain to make .dll files, not .so files. 13172 shrext_cmds=".dll" 13173 # FIXME: Setting linknames here is a bad hack. 13174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13176 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13177 else 13178 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13179 fi~ 13180 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13181 linknames=' 13182 # The linker will not automatically build a static lib if we build a DLL. 13183 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13184 enable_shared_with_static_runtimes=yes 13185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13186 # Don't use ranlib 13187 old_postinstall_cmds='chmod 644 $oldlib' 13188 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13189 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13190 case $lt_outputfile in 13191 *.exe|*.EXE) ;; 13192 *) 13193 lt_outputfile="$lt_outputfile.exe" 13194 lt_tool_outputfile="$lt_tool_outputfile.exe" 13195 ;; 13196 esac~ 13197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13199 $RM "$lt_outputfile.manifest"; 13200 fi' 13201 ;; 13202 *) 13203 # Assume MSVC wrapper 13204 hardcode_libdir_flag_spec=' ' 13205 allow_undefined_flag=unsupported 13206 # Tell ltmain to make .lib files, not .a files. 13207 libext=lib 13208 # Tell ltmain to make .dll files, not .so files. 13209 shrext_cmds=".dll" 13210 # FIXME: Setting linknames here is a bad hack. 13211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13212 # The linker will automatically build a .lib file if we build a DLL. 13213 old_archive_from_new_cmds='true' 13214 # FIXME: Should let the user specify the lib program. 13215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13216 enable_shared_with_static_runtimes=yes 13217 ;; 13218 esac 13219 ;; 13220 13221 darwin* | rhapsody*) 13222 13223 13224 archive_cmds_need_lc=no 13225 hardcode_direct=no 13226 hardcode_automatic=yes 13227 hardcode_shlibpath_var=unsupported 13228 if test "$lt_cv_ld_force_load" = "yes"; then 13229 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\"`' 13230 else 13231 whole_archive_flag_spec='' 13232 fi 13233 link_all_deplibs=yes 13234 allow_undefined_flag="$_lt_dar_allow_undefined" 13235 case $cc_basename in 13236 ifort*) _lt_dar_can_shared=yes ;; 13237 *) _lt_dar_can_shared=$GCC ;; 13238 esac 13239 if test "$_lt_dar_can_shared" = "yes"; then 13240 output_verbose_link_cmd=func_echo_all 13241 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13242 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13243 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}" 13244 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}" 13245 13246 else 13247 ld_shlibs=no 13248 fi 13249 13250 ;; 13251 13252 dgux*) 13253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13254 hardcode_libdir_flag_spec='-L$libdir' 13255 hardcode_shlibpath_var=no 13256 ;; 13257 13258 freebsd1*) 13259 ld_shlibs=no 13260 ;; 13261 13262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13263 # support. Future versions do this automatically, but an explicit c++rt0.o 13264 # does not break anything, and helps significantly (at the cost of a little 13265 # extra space). 13266 freebsd2.2*) 13267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13268 hardcode_libdir_flag_spec='-R$libdir' 13269 hardcode_direct=yes 13270 hardcode_shlibpath_var=no 13271 ;; 13272 13273 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13274 freebsd2*) 13275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13276 hardcode_direct=yes 13277 hardcode_minus_L=yes 13278 hardcode_shlibpath_var=no 13279 ;; 13280 13281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13282 freebsd* | dragonfly*) 13283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13284 hardcode_libdir_flag_spec='-R$libdir' 13285 hardcode_direct=yes 13286 hardcode_shlibpath_var=no 13287 ;; 13288 13289 hpux9*) 13290 if test "$GCC" = yes; then 13291 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13292 else 13293 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13294 fi 13295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13296 hardcode_libdir_separator=: 13297 hardcode_direct=yes 13298 13299 # hardcode_minus_L: Not really in the search PATH, 13300 # but as the default location of the library. 13301 hardcode_minus_L=yes 13302 export_dynamic_flag_spec='${wl}-E' 13303 ;; 13304 13305 hpux10*) 13306 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13307 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13308 else 13309 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13310 fi 13311 if test "$with_gnu_ld" = no; then 13312 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13313 hardcode_libdir_flag_spec_ld='+b $libdir' 13314 hardcode_libdir_separator=: 13315 hardcode_direct=yes 13316 hardcode_direct_absolute=yes 13317 export_dynamic_flag_spec='${wl}-E' 13318 # hardcode_minus_L: Not really in the search PATH, 13319 # but as the default location of the library. 13320 hardcode_minus_L=yes 13321 fi 13322 ;; 13323 13324 hpux11*) 13325 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13326 case $host_cpu in 13327 hppa*64*) 13328 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13329 ;; 13330 ia64*) 13331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13332 ;; 13333 *) 13334 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13335 ;; 13336 esac 13337 else 13338 case $host_cpu in 13339 hppa*64*) 13340 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13341 ;; 13342 ia64*) 13343 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13344 ;; 13345 *) 13346 13347 # Older versions of the 11.00 compiler do not understand -b yet 13348 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13350$as_echo_n "checking if $CC understands -b... " >&6; } 13351if ${lt_cv_prog_compiler__b+:} false; then : 13352 $as_echo_n "(cached) " >&6 13353else 13354 lt_cv_prog_compiler__b=no 13355 save_LDFLAGS="$LDFLAGS" 13356 LDFLAGS="$LDFLAGS -b" 13357 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13359 # The linker can only warn and ignore the option if not recognized 13360 # So say no if there are warnings 13361 if test -s conftest.err; then 13362 # Append any errors to the config.log. 13363 cat conftest.err 1>&5 13364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13366 if diff conftest.exp conftest.er2 >/dev/null; then 13367 lt_cv_prog_compiler__b=yes 13368 fi 13369 else 13370 lt_cv_prog_compiler__b=yes 13371 fi 13372 fi 13373 $RM -r conftest* 13374 LDFLAGS="$save_LDFLAGS" 13375 13376fi 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13378$as_echo "$lt_cv_prog_compiler__b" >&6; } 13379 13380if test x"$lt_cv_prog_compiler__b" = xyes; then 13381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13382else 13383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13384fi 13385 13386 ;; 13387 esac 13388 fi 13389 if test "$with_gnu_ld" = no; then 13390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13391 hardcode_libdir_separator=: 13392 13393 case $host_cpu in 13394 hppa*64*|ia64*) 13395 hardcode_direct=no 13396 hardcode_shlibpath_var=no 13397 ;; 13398 *) 13399 hardcode_direct=yes 13400 hardcode_direct_absolute=yes 13401 export_dynamic_flag_spec='${wl}-E' 13402 13403 # hardcode_minus_L: Not really in the search PATH, 13404 # but as the default location of the library. 13405 hardcode_minus_L=yes 13406 ;; 13407 esac 13408 fi 13409 ;; 13410 13411 irix5* | irix6* | nonstopux*) 13412 if test "$GCC" = yes; then 13413 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' 13414 # Try to use the -exported_symbol ld option, if it does not 13415 # work, assume that -exports_file does not work either and 13416 # implicitly export all symbols. 13417 # This should be the same for all languages, so no per-tag cache variable. 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13419$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13420if ${lt_cv_irix_exported_symbol+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 save_LDFLAGS="$LDFLAGS" 13424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427int foo (void) { return 0; } 13428_ACEOF 13429if ac_fn_c_try_link "$LINENO"; then : 13430 lt_cv_irix_exported_symbol=yes 13431else 13432 lt_cv_irix_exported_symbol=no 13433fi 13434rm -f core conftest.err conftest.$ac_objext \ 13435 conftest$ac_exeext conftest.$ac_ext 13436 LDFLAGS="$save_LDFLAGS" 13437fi 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13439$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13440 if test "$lt_cv_irix_exported_symbol" = yes; then 13441 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' 13442 fi 13443 else 13444 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' 13445 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' 13446 fi 13447 archive_cmds_need_lc='no' 13448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13449 hardcode_libdir_separator=: 13450 inherit_rpath=yes 13451 link_all_deplibs=yes 13452 ;; 13453 13454 netbsd*) 13455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13457 else 13458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13459 fi 13460 hardcode_libdir_flag_spec='-R$libdir' 13461 hardcode_direct=yes 13462 hardcode_shlibpath_var=no 13463 ;; 13464 13465 newsos6) 13466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13467 hardcode_direct=yes 13468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13469 hardcode_libdir_separator=: 13470 hardcode_shlibpath_var=no 13471 ;; 13472 13473 *nto* | *qnx*) 13474 ;; 13475 13476 openbsd*) 13477 if test -f /usr/libexec/ld.so; then 13478 hardcode_direct=yes 13479 hardcode_shlibpath_var=no 13480 hardcode_direct_absolute=yes 13481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13485 export_dynamic_flag_spec='${wl}-E' 13486 else 13487 case $host_os in 13488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13490 hardcode_libdir_flag_spec='-R$libdir' 13491 ;; 13492 *) 13493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13495 ;; 13496 esac 13497 fi 13498 else 13499 ld_shlibs=no 13500 fi 13501 ;; 13502 13503 os2*) 13504 hardcode_libdir_flag_spec='-L$libdir' 13505 hardcode_minus_L=yes 13506 allow_undefined_flag=unsupported 13507 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 13508 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13509 ;; 13510 13511 osf3*) 13512 if test "$GCC" = yes; then 13513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13514 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' 13515 else 13516 allow_undefined_flag=' -expect_unresolved \*' 13517 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' 13518 fi 13519 archive_cmds_need_lc='no' 13520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13521 hardcode_libdir_separator=: 13522 ;; 13523 13524 osf4* | osf5*) # as osf3* with the addition of -msym flag 13525 if test "$GCC" = yes; then 13526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13527 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' 13528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13529 else 13530 allow_undefined_flag=' -expect_unresolved \*' 13531 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' 13532 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~ 13533 $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' 13534 13535 # Both c and cxx compiler support -rpath directly 13536 hardcode_libdir_flag_spec='-rpath $libdir' 13537 fi 13538 archive_cmds_need_lc='no' 13539 hardcode_libdir_separator=: 13540 ;; 13541 13542 solaris*) 13543 no_undefined_flag=' -z defs' 13544 if test "$GCC" = yes; then 13545 wlarc='${wl}' 13546 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13548 $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' 13549 else 13550 case `$CC -V 2>&1` in 13551 *"Compilers 5.0"*) 13552 wlarc='' 13553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13556 ;; 13557 *) 13558 wlarc='${wl}' 13559 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13562 ;; 13563 esac 13564 fi 13565 hardcode_libdir_flag_spec='-R$libdir' 13566 hardcode_shlibpath_var=no 13567 case $host_os in 13568 solaris2.[0-5] | solaris2.[0-5].*) ;; 13569 *) 13570 # The compiler driver will combine and reorder linker options, 13571 # but understands `-z linker_flag'. GCC discards it without `$wl', 13572 # but is careful enough not to reorder. 13573 # Supported since Solaris 2.6 (maybe 2.5.1?) 13574 if test "$GCC" = yes; then 13575 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13576 else 13577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13578 fi 13579 ;; 13580 esac 13581 link_all_deplibs=yes 13582 ;; 13583 13584 sunos4*) 13585 if test "x$host_vendor" = xsequent; then 13586 # Use $CC to link under sequent, because it throws in some extra .o 13587 # files that make .init and .fini sections work. 13588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13589 else 13590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13591 fi 13592 hardcode_libdir_flag_spec='-L$libdir' 13593 hardcode_direct=yes 13594 hardcode_minus_L=yes 13595 hardcode_shlibpath_var=no 13596 ;; 13597 13598 sysv4) 13599 case $host_vendor in 13600 sni) 13601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13602 hardcode_direct=yes # is this really true??? 13603 ;; 13604 siemens) 13605 ## LD is ld it makes a PLAMLIB 13606 ## CC just makes a GrossModule. 13607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13608 reload_cmds='$CC -r -o $output$reload_objs' 13609 hardcode_direct=no 13610 ;; 13611 motorola) 13612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13614 ;; 13615 esac 13616 runpath_var='LD_RUN_PATH' 13617 hardcode_shlibpath_var=no 13618 ;; 13619 13620 sysv4.3*) 13621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13622 hardcode_shlibpath_var=no 13623 export_dynamic_flag_spec='-Bexport' 13624 ;; 13625 13626 sysv4*MP*) 13627 if test -d /usr/nec; then 13628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13629 hardcode_shlibpath_var=no 13630 runpath_var=LD_RUN_PATH 13631 hardcode_runpath_var=yes 13632 ld_shlibs=yes 13633 fi 13634 ;; 13635 13636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13637 no_undefined_flag='${wl}-z,text' 13638 archive_cmds_need_lc=no 13639 hardcode_shlibpath_var=no 13640 runpath_var='LD_RUN_PATH' 13641 13642 if test "$GCC" = yes; then 13643 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13644 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13645 else 13646 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13647 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13648 fi 13649 ;; 13650 13651 sysv5* | sco3.2v5* | sco5v6*) 13652 # Note: We can NOT use -z defs as we might desire, because we do not 13653 # link with -lc, and that would cause any symbols used from libc to 13654 # always be unresolved, which means just about no library would 13655 # ever link correctly. If we're not using GNU ld we use -z text 13656 # though, which does catch some bad symbols but isn't as heavy-handed 13657 # as -z defs. 13658 no_undefined_flag='${wl}-z,text' 13659 allow_undefined_flag='${wl}-z,nodefs' 13660 archive_cmds_need_lc=no 13661 hardcode_shlibpath_var=no 13662 hardcode_libdir_flag_spec='${wl}-R,$libdir' 13663 hardcode_libdir_separator=':' 13664 link_all_deplibs=yes 13665 export_dynamic_flag_spec='${wl}-Bexport' 13666 runpath_var='LD_RUN_PATH' 13667 13668 if test "$GCC" = yes; then 13669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13671 else 13672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13674 fi 13675 ;; 13676 13677 uts4*) 13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13679 hardcode_libdir_flag_spec='-L$libdir' 13680 hardcode_shlibpath_var=no 13681 ;; 13682 13683 *) 13684 ld_shlibs=no 13685 ;; 13686 esac 13687 13688 if test x$host_vendor = xsni; then 13689 case $host in 13690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13691 export_dynamic_flag_spec='${wl}-Blargedynsym' 13692 ;; 13693 esac 13694 fi 13695 fi 13696 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13698$as_echo "$ld_shlibs" >&6; } 13699test "$ld_shlibs" = no && can_build_shared=no 13700 13701with_gnu_ld=$with_gnu_ld 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717# 13718# Do we need to explicitly link libc? 13719# 13720case "x$archive_cmds_need_lc" in 13721x|xyes) 13722 # Assume -lc should be added 13723 archive_cmds_need_lc=yes 13724 13725 if test "$enable_shared" = yes && test "$GCC" = yes; then 13726 case $archive_cmds in 13727 *'~'*) 13728 # FIXME: we may have to deal with multi-command sequences. 13729 ;; 13730 '$CC '*) 13731 # Test whether the compiler implicitly links with -lc since on some 13732 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13733 # to ld, don't add -lc before -lgcc. 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13736if ${lt_cv_archive_cmds_need_lc+:} false; then : 13737 $as_echo_n "(cached) " >&6 13738else 13739 $RM conftest* 13740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13741 13742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13743 (eval $ac_compile) 2>&5 13744 ac_status=$? 13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13746 test $ac_status = 0; } 2>conftest.err; then 13747 soname=conftest 13748 lib=conftest 13749 libobjs=conftest.$ac_objext 13750 deplibs= 13751 wl=$lt_prog_compiler_wl 13752 pic_flag=$lt_prog_compiler_pic 13753 compiler_flags=-v 13754 linker_flags=-v 13755 verstring= 13756 output_objdir=. 13757 libname=conftest 13758 lt_save_allow_undefined_flag=$allow_undefined_flag 13759 allow_undefined_flag= 13760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13762 ac_status=$? 13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13764 test $ac_status = 0; } 13765 then 13766 lt_cv_archive_cmds_need_lc=no 13767 else 13768 lt_cv_archive_cmds_need_lc=yes 13769 fi 13770 allow_undefined_flag=$lt_save_allow_undefined_flag 13771 else 13772 cat conftest.err 1>&5 13773 fi 13774 $RM conftest* 13775 13776fi 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13778$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13780 ;; 13781 esac 13782 fi 13783 ;; 13784esac 13785 13786 13787 13788 13789 13790 13791 13792 13793 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 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13943$as_echo_n "checking dynamic linker characteristics... " >&6; } 13944 13945if test "$GCC" = yes; then 13946 case $host_os in 13947 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13948 *) lt_awk_arg="/^libraries:/" ;; 13949 esac 13950 case $host_os in 13951 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 13952 *) lt_sed_strip_eq="s,=/,/,g" ;; 13953 esac 13954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13955 case $lt_search_path_spec in 13956 *\;*) 13957 # if the path contains ";" then we assume it to be the separator 13958 # otherwise default to the standard path separator (i.e. ":") - it is 13959 # assumed that no part of a normal pathname contains ";" but that should 13960 # okay in the real world where ";" in dirpaths is itself problematic. 13961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13962 ;; 13963 *) 13964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13965 ;; 13966 esac 13967 # Ok, now we have the path, separated by spaces, we can step through it 13968 # and add multilib dir if necessary. 13969 lt_tmp_lt_search_path_spec= 13970 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13971 for lt_sys_path in $lt_search_path_spec; do 13972 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13974 else 13975 test -d "$lt_sys_path" && \ 13976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13977 fi 13978 done 13979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13980BEGIN {RS=" "; FS="/|\n";} { 13981 lt_foo=""; 13982 lt_count=0; 13983 for (lt_i = NF; lt_i > 0; lt_i--) { 13984 if ($lt_i != "" && $lt_i != ".") { 13985 if ($lt_i == "..") { 13986 lt_count++; 13987 } else { 13988 if (lt_count == 0) { 13989 lt_foo="/" $lt_i lt_foo; 13990 } else { 13991 lt_count--; 13992 } 13993 } 13994 } 13995 } 13996 if (lt_foo != "") { lt_freq[lt_foo]++; } 13997 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13998}'` 13999 # AWK program above erroneously prepends '/' to C:/dos/paths 14000 # for these hosts. 14001 case $host_os in 14002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14003 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 14004 esac 14005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14006else 14007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14008fi 14009library_names_spec= 14010libname_spec='lib$name' 14011soname_spec= 14012shrext_cmds=".so" 14013postinstall_cmds= 14014postuninstall_cmds= 14015finish_cmds= 14016finish_eval= 14017shlibpath_var= 14018shlibpath_overrides_runpath=unknown 14019version_type=none 14020dynamic_linker="$host_os ld.so" 14021sys_lib_dlsearch_path_spec="/lib /usr/lib" 14022need_lib_prefix=unknown 14023hardcode_into_libs=no 14024 14025# when you set need_version to no, make sure it does not cause -set_version 14026# flags to be left without arguments 14027need_version=unknown 14028 14029case $host_os in 14030aix3*) 14031 version_type=linux 14032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14033 shlibpath_var=LIBPATH 14034 14035 # AIX 3 has no versioning support, so we append a major version to the name. 14036 soname_spec='${libname}${release}${shared_ext}$major' 14037 ;; 14038 14039aix[4-9]*) 14040 version_type=linux 14041 need_lib_prefix=no 14042 need_version=no 14043 hardcode_into_libs=yes 14044 if test "$host_cpu" = ia64; then 14045 # AIX 5 supports IA64 14046 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14047 shlibpath_var=LD_LIBRARY_PATH 14048 else 14049 # With GCC up to 2.95.x, collect2 would create an import file 14050 # for dependence libraries. The import file would start with 14051 # the line `#! .'. This would cause the generated library to 14052 # depend on `.', always an invalid library. This was fixed in 14053 # development snapshots of GCC prior to 3.0. 14054 case $host_os in 14055 aix4 | aix4.[01] | aix4.[01].*) 14056 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14057 echo ' yes ' 14058 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14059 : 14060 else 14061 can_build_shared=no 14062 fi 14063 ;; 14064 esac 14065 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14066 # soname into executable. Probably we can add versioning support to 14067 # collect2, so additional links can be useful in future. 14068 if test "$aix_use_runtimelinking" = yes; then 14069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14070 # instead of lib<name>.a to let people know that these are not 14071 # typical AIX shared libraries. 14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14073 else 14074 # We preserve .a as extension for shared libraries through AIX4.2 14075 # and later when we are not doing run time linking. 14076 library_names_spec='${libname}${release}.a $libname.a' 14077 soname_spec='${libname}${release}${shared_ext}$major' 14078 fi 14079 shlibpath_var=LIBPATH 14080 fi 14081 ;; 14082 14083amigaos*) 14084 case $host_cpu in 14085 powerpc) 14086 # Since July 2007 AmigaOS4 officially supports .so libraries. 14087 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14089 ;; 14090 m68k) 14091 library_names_spec='$libname.ixlibrary $libname.a' 14092 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14093 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14094 ;; 14095 esac 14096 ;; 14097 14098beos*) 14099 library_names_spec='${libname}${shared_ext}' 14100 dynamic_linker="$host_os ld.so" 14101 shlibpath_var=LIBRARY_PATH 14102 ;; 14103 14104bsdi[45]*) 14105 version_type=linux 14106 need_version=no 14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14108 soname_spec='${libname}${release}${shared_ext}$major' 14109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14110 shlibpath_var=LD_LIBRARY_PATH 14111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14113 # the default ld.so.conf also contains /usr/contrib/lib and 14114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14115 # libtool to hard-code these into programs 14116 ;; 14117 14118cygwin* | mingw* | pw32* | cegcc*) 14119 version_type=windows 14120 shrext_cmds=".dll" 14121 need_version=no 14122 need_lib_prefix=no 14123 14124 case $GCC,$cc_basename in 14125 yes,*) 14126 # gcc 14127 library_names_spec='$libname.dll.a' 14128 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14129 postinstall_cmds='base_file=`basename \${file}`~ 14130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14131 dldir=$destdir/`dirname \$dlpath`~ 14132 test -d \$dldir || mkdir -p \$dldir~ 14133 $install_prog $dir/$dlname \$dldir/$dlname~ 14134 chmod a+x \$dldir/$dlname~ 14135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14137 fi' 14138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14139 dlpath=$dir/\$dldll~ 14140 $RM \$dlpath' 14141 shlibpath_overrides_runpath=yes 14142 14143 case $host_os in 14144 cygwin*) 14145 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14147 14148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14149 ;; 14150 mingw* | cegcc*) 14151 # MinGW DLLs use traditional 'lib' prefix 14152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14153 ;; 14154 pw32*) 14155 # pw32 DLLs use 'pw' prefix rather than 'lib' 14156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14157 ;; 14158 esac 14159 dynamic_linker='Win32 ld.exe' 14160 ;; 14161 14162 *,cl*) 14163 # Native MSVC 14164 libname_spec='$name' 14165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14166 library_names_spec='${libname}.dll.lib' 14167 14168 case $build_os in 14169 mingw*) 14170 sys_lib_search_path_spec= 14171 lt_save_ifs=$IFS 14172 IFS=';' 14173 for lt_path in $LIB 14174 do 14175 IFS=$lt_save_ifs 14176 # Let DOS variable expansion print the short 8.3 style file name. 14177 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14178 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14179 done 14180 IFS=$lt_save_ifs 14181 # Convert to MSYS style. 14182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14183 ;; 14184 cygwin*) 14185 # Convert to unix form, then to dos form, then back to unix form 14186 # but this time dos style (no spaces!) so that the unix form looks 14187 # like /cygdrive/c/PROGRA~1:/cygdr... 14188 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14189 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14190 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14191 ;; 14192 *) 14193 sys_lib_search_path_spec="$LIB" 14194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14195 # It is most probably a Windows format PATH. 14196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14197 else 14198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14199 fi 14200 # FIXME: find the short name or the path components, as spaces are 14201 # common. (e.g. "Program Files" -> "PROGRA~1") 14202 ;; 14203 esac 14204 14205 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14206 postinstall_cmds='base_file=`basename \${file}`~ 14207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14208 dldir=$destdir/`dirname \$dlpath`~ 14209 test -d \$dldir || mkdir -p \$dldir~ 14210 $install_prog $dir/$dlname \$dldir/$dlname' 14211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14212 dlpath=$dir/\$dldll~ 14213 $RM \$dlpath' 14214 shlibpath_overrides_runpath=yes 14215 dynamic_linker='Win32 link.exe' 14216 ;; 14217 14218 *) 14219 # Assume MSVC wrapper 14220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14221 dynamic_linker='Win32 ld.exe' 14222 ;; 14223 esac 14224 # FIXME: first we should search . and the directory the executable is in 14225 shlibpath_var=PATH 14226 ;; 14227 14228darwin* | rhapsody*) 14229 dynamic_linker="$host_os dyld" 14230 version_type=darwin 14231 need_lib_prefix=no 14232 need_version=no 14233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14234 soname_spec='${libname}${release}${major}$shared_ext' 14235 shlibpath_overrides_runpath=yes 14236 shlibpath_var=DYLD_LIBRARY_PATH 14237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14238 14239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14241 ;; 14242 14243dgux*) 14244 version_type=linux 14245 need_lib_prefix=no 14246 need_version=no 14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14248 soname_spec='${libname}${release}${shared_ext}$major' 14249 shlibpath_var=LD_LIBRARY_PATH 14250 ;; 14251 14252freebsd1*) 14253 dynamic_linker=no 14254 ;; 14255 14256freebsd* | dragonfly*) 14257 # DragonFly does not have aout. When/if they implement a new 14258 # versioning mechanism, adjust this. 14259 if test -x /usr/bin/objformat; then 14260 objformat=`/usr/bin/objformat` 14261 else 14262 case $host_os in 14263 freebsd[123]*) objformat=aout ;; 14264 *) objformat=elf ;; 14265 esac 14266 fi 14267 version_type=freebsd-$objformat 14268 case $version_type in 14269 freebsd-elf*) 14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14271 need_version=no 14272 need_lib_prefix=no 14273 ;; 14274 freebsd-*) 14275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14276 need_version=yes 14277 ;; 14278 esac 14279 shlibpath_var=LD_LIBRARY_PATH 14280 case $host_os in 14281 freebsd2*) 14282 shlibpath_overrides_runpath=yes 14283 ;; 14284 freebsd3.[01]* | freebsdelf3.[01]*) 14285 shlibpath_overrides_runpath=yes 14286 hardcode_into_libs=yes 14287 ;; 14288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14290 shlibpath_overrides_runpath=no 14291 hardcode_into_libs=yes 14292 ;; 14293 *) # from 4.6 on, and DragonFly 14294 shlibpath_overrides_runpath=yes 14295 hardcode_into_libs=yes 14296 ;; 14297 esac 14298 ;; 14299 14300gnu*) 14301 version_type=linux 14302 need_lib_prefix=no 14303 need_version=no 14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14305 soname_spec='${libname}${release}${shared_ext}$major' 14306 shlibpath_var=LD_LIBRARY_PATH 14307 hardcode_into_libs=yes 14308 ;; 14309 14310haiku*) 14311 version_type=linux 14312 need_lib_prefix=no 14313 need_version=no 14314 dynamic_linker="$host_os runtime_loader" 14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14316 soname_spec='${libname}${release}${shared_ext}$major' 14317 shlibpath_var=LIBRARY_PATH 14318 shlibpath_overrides_runpath=yes 14319 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14320 hardcode_into_libs=yes 14321 ;; 14322 14323hpux9* | hpux10* | hpux11*) 14324 # Give a soname corresponding to the major version so that dld.sl refuses to 14325 # link against other versions. 14326 version_type=sunos 14327 need_lib_prefix=no 14328 need_version=no 14329 case $host_cpu in 14330 ia64*) 14331 shrext_cmds='.so' 14332 hardcode_into_libs=yes 14333 dynamic_linker="$host_os dld.so" 14334 shlibpath_var=LD_LIBRARY_PATH 14335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14337 soname_spec='${libname}${release}${shared_ext}$major' 14338 if test "X$HPUX_IA64_MODE" = X32; then 14339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14340 else 14341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14342 fi 14343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14344 ;; 14345 hppa*64*) 14346 shrext_cmds='.sl' 14347 hardcode_into_libs=yes 14348 dynamic_linker="$host_os dld.sl" 14349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14352 soname_spec='${libname}${release}${shared_ext}$major' 14353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14355 ;; 14356 *) 14357 shrext_cmds='.sl' 14358 dynamic_linker="$host_os dld.sl" 14359 shlibpath_var=SHLIB_PATH 14360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14362 soname_spec='${libname}${release}${shared_ext}$major' 14363 ;; 14364 esac 14365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14366 postinstall_cmds='chmod 555 $lib' 14367 # or fails outright, so override atomically: 14368 install_override_mode=555 14369 ;; 14370 14371interix[3-9]*) 14372 version_type=linux 14373 need_lib_prefix=no 14374 need_version=no 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14376 soname_spec='${libname}${release}${shared_ext}$major' 14377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14378 shlibpath_var=LD_LIBRARY_PATH 14379 shlibpath_overrides_runpath=no 14380 hardcode_into_libs=yes 14381 ;; 14382 14383irix5* | irix6* | nonstopux*) 14384 case $host_os in 14385 nonstopux*) version_type=nonstopux ;; 14386 *) 14387 if test "$lt_cv_prog_gnu_ld" = yes; then 14388 version_type=linux 14389 else 14390 version_type=irix 14391 fi ;; 14392 esac 14393 need_lib_prefix=no 14394 need_version=no 14395 soname_spec='${libname}${release}${shared_ext}$major' 14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14397 case $host_os in 14398 irix5* | nonstopux*) 14399 libsuff= shlibsuff= 14400 ;; 14401 *) 14402 case $LD in # libtool.m4 will add one of these switches to LD 14403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14404 libsuff= shlibsuff= libmagic=32-bit;; 14405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14406 libsuff=32 shlibsuff=N32 libmagic=N32;; 14407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14408 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14409 *) libsuff= shlibsuff= libmagic=never-match;; 14410 esac 14411 ;; 14412 esac 14413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14414 shlibpath_overrides_runpath=no 14415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14417 hardcode_into_libs=yes 14418 ;; 14419 14420# No shared lib support for Linux oldld, aout, or coff. 14421linux*oldld* | linux*aout* | linux*coff*) 14422 dynamic_linker=no 14423 ;; 14424 14425# This must be Linux ELF. 14426linux* | k*bsd*-gnu | kopensolaris*-gnu) 14427 version_type=linux 14428 need_lib_prefix=no 14429 need_version=no 14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14431 soname_spec='${libname}${release}${shared_ext}$major' 14432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14433 shlibpath_var=LD_LIBRARY_PATH 14434 shlibpath_overrides_runpath=no 14435 14436 # Some binutils ld are patched to set DT_RUNPATH 14437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14438 $as_echo_n "(cached) " >&6 14439else 14440 lt_cv_shlibpath_overrides_runpath=no 14441 save_LDFLAGS=$LDFLAGS 14442 save_libdir=$libdir 14443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447 14448int 14449main () 14450{ 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_link "$LINENO"; then : 14457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14458 lt_cv_shlibpath_overrides_runpath=yes 14459fi 14460fi 14461rm -f core conftest.err conftest.$ac_objext \ 14462 conftest$ac_exeext conftest.$ac_ext 14463 LDFLAGS=$save_LDFLAGS 14464 libdir=$save_libdir 14465 14466fi 14467 14468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14469 14470 # This implies no fast_install, which is unacceptable. 14471 # Some rework will be needed to allow for fast_install 14472 # before this can be enabled. 14473 hardcode_into_libs=yes 14474 14475 # Append ld.so.conf contents to the search path 14476 if test -f /etc/ld.so.conf; then 14477 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' ' '` 14478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14479 fi 14480 14481 # We used to test for /lib/ld.so.1 and disable shared libraries on 14482 # powerpc, because MkLinux only supported shared libraries with the 14483 # GNU dynamic linker. Since this was broken with cross compilers, 14484 # most powerpc-linux boxes support dynamic linking these days and 14485 # people can always --disable-shared, the test was removed, and we 14486 # assume the GNU/Linux dynamic linker is in use. 14487 dynamic_linker='GNU/Linux ld.so' 14488 ;; 14489 14490netbsd*) 14491 version_type=sunos 14492 need_lib_prefix=no 14493 need_version=no 14494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14497 dynamic_linker='NetBSD (a.out) ld.so' 14498 else 14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14500 soname_spec='${libname}${release}${shared_ext}$major' 14501 dynamic_linker='NetBSD ld.elf_so' 14502 fi 14503 shlibpath_var=LD_LIBRARY_PATH 14504 shlibpath_overrides_runpath=yes 14505 hardcode_into_libs=yes 14506 ;; 14507 14508newsos6) 14509 version_type=linux 14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14511 shlibpath_var=LD_LIBRARY_PATH 14512 shlibpath_overrides_runpath=yes 14513 ;; 14514 14515*nto* | *qnx*) 14516 version_type=qnx 14517 need_lib_prefix=no 14518 need_version=no 14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14520 soname_spec='${libname}${release}${shared_ext}$major' 14521 shlibpath_var=LD_LIBRARY_PATH 14522 shlibpath_overrides_runpath=no 14523 hardcode_into_libs=yes 14524 dynamic_linker='ldqnx.so' 14525 ;; 14526 14527openbsd*) 14528 version_type=sunos 14529 sys_lib_dlsearch_path_spec="/usr/lib" 14530 need_lib_prefix=no 14531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14532 case $host_os in 14533 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14534 *) need_version=no ;; 14535 esac 14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14538 shlibpath_var=LD_LIBRARY_PATH 14539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14540 case $host_os in 14541 openbsd2.[89] | openbsd2.[89].*) 14542 shlibpath_overrides_runpath=no 14543 ;; 14544 *) 14545 shlibpath_overrides_runpath=yes 14546 ;; 14547 esac 14548 else 14549 shlibpath_overrides_runpath=yes 14550 fi 14551 ;; 14552 14553os2*) 14554 libname_spec='$name' 14555 shrext_cmds=".dll" 14556 need_lib_prefix=no 14557 library_names_spec='$libname${shared_ext} $libname.a' 14558 dynamic_linker='OS/2 ld.exe' 14559 shlibpath_var=LIBPATH 14560 ;; 14561 14562osf3* | osf4* | osf5*) 14563 version_type=osf 14564 need_lib_prefix=no 14565 need_version=no 14566 soname_spec='${libname}${release}${shared_ext}$major' 14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14568 shlibpath_var=LD_LIBRARY_PATH 14569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14571 ;; 14572 14573rdos*) 14574 dynamic_linker=no 14575 ;; 14576 14577solaris*) 14578 version_type=linux 14579 need_lib_prefix=no 14580 need_version=no 14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14582 soname_spec='${libname}${release}${shared_ext}$major' 14583 shlibpath_var=LD_LIBRARY_PATH 14584 shlibpath_overrides_runpath=yes 14585 hardcode_into_libs=yes 14586 # ldd complains unless libraries are executable 14587 postinstall_cmds='chmod +x $lib' 14588 ;; 14589 14590sunos4*) 14591 version_type=sunos 14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14594 shlibpath_var=LD_LIBRARY_PATH 14595 shlibpath_overrides_runpath=yes 14596 if test "$with_gnu_ld" = yes; then 14597 need_lib_prefix=no 14598 fi 14599 need_version=yes 14600 ;; 14601 14602sysv4 | sysv4.3*) 14603 version_type=linux 14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14605 soname_spec='${libname}${release}${shared_ext}$major' 14606 shlibpath_var=LD_LIBRARY_PATH 14607 case $host_vendor in 14608 sni) 14609 shlibpath_overrides_runpath=no 14610 need_lib_prefix=no 14611 runpath_var=LD_RUN_PATH 14612 ;; 14613 siemens) 14614 need_lib_prefix=no 14615 ;; 14616 motorola) 14617 need_lib_prefix=no 14618 need_version=no 14619 shlibpath_overrides_runpath=no 14620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14621 ;; 14622 esac 14623 ;; 14624 14625sysv4*MP*) 14626 if test -d /usr/nec ;then 14627 version_type=linux 14628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14629 soname_spec='$libname${shared_ext}.$major' 14630 shlibpath_var=LD_LIBRARY_PATH 14631 fi 14632 ;; 14633 14634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14635 version_type=freebsd-elf 14636 need_lib_prefix=no 14637 need_version=no 14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14639 soname_spec='${libname}${release}${shared_ext}$major' 14640 shlibpath_var=LD_LIBRARY_PATH 14641 shlibpath_overrides_runpath=yes 14642 hardcode_into_libs=yes 14643 if test "$with_gnu_ld" = yes; then 14644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14645 else 14646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14647 case $host_os in 14648 sco3.2v5*) 14649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14650 ;; 14651 esac 14652 fi 14653 sys_lib_dlsearch_path_spec='/usr/lib' 14654 ;; 14655 14656tpf*) 14657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14658 version_type=linux 14659 need_lib_prefix=no 14660 need_version=no 14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14662 shlibpath_var=LD_LIBRARY_PATH 14663 shlibpath_overrides_runpath=no 14664 hardcode_into_libs=yes 14665 ;; 14666 14667uts4*) 14668 version_type=linux 14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14670 soname_spec='${libname}${release}${shared_ext}$major' 14671 shlibpath_var=LD_LIBRARY_PATH 14672 ;; 14673 14674*) 14675 dynamic_linker=no 14676 ;; 14677esac 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14679$as_echo "$dynamic_linker" >&6; } 14680test "$dynamic_linker" = no && can_build_shared=no 14681 14682variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14683if test "$GCC" = yes; then 14684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14685fi 14686 14687if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14688 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14689fi 14690if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14691 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14692fi 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14786$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14787hardcode_action= 14788if test -n "$hardcode_libdir_flag_spec" || 14789 test -n "$runpath_var" || 14790 test "X$hardcode_automatic" = "Xyes" ; then 14791 14792 # We can hardcode non-existent directories. 14793 if test "$hardcode_direct" != no && 14794 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14795 # have to relink, otherwise we might link with an installed library 14796 # when we should be linking with a yet-to-be-installed one 14797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 14798 test "$hardcode_minus_L" != no; then 14799 # Linking always hardcodes the temporary library directory. 14800 hardcode_action=relink 14801 else 14802 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14803 hardcode_action=immediate 14804 fi 14805else 14806 # We cannot hardcode anything, or else we can only hardcode existing 14807 # directories. 14808 hardcode_action=unsupported 14809fi 14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14811$as_echo "$hardcode_action" >&6; } 14812 14813if test "$hardcode_action" = relink || 14814 test "$inherit_rpath" = yes; then 14815 # Fast installation is not supported 14816 enable_fast_install=no 14817elif test "$shlibpath_overrides_runpath" = yes || 14818 test "$enable_shared" = no; then 14819 # Fast installation is not necessary 14820 enable_fast_install=needless 14821fi 14822 14823 14824 14825 14826 14827 14828 if test "x$enable_dlopen" != xyes; then 14829 enable_dlopen=unknown 14830 enable_dlopen_self=unknown 14831 enable_dlopen_self_static=unknown 14832else 14833 lt_cv_dlopen=no 14834 lt_cv_dlopen_libs= 14835 14836 case $host_os in 14837 beos*) 14838 lt_cv_dlopen="load_add_on" 14839 lt_cv_dlopen_libs= 14840 lt_cv_dlopen_self=yes 14841 ;; 14842 14843 mingw* | pw32* | cegcc*) 14844 lt_cv_dlopen="LoadLibrary" 14845 lt_cv_dlopen_libs= 14846 ;; 14847 14848 cygwin*) 14849 lt_cv_dlopen="dlopen" 14850 lt_cv_dlopen_libs= 14851 ;; 14852 14853 darwin*) 14854 # if libdl is installed we need to link against it 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14856$as_echo_n "checking for dlopen in -ldl... " >&6; } 14857if ${ac_cv_lib_dl_dlopen+:} false; then : 14858 $as_echo_n "(cached) " >&6 14859else 14860 ac_check_lib_save_LIBS=$LIBS 14861LIBS="-ldl $LIBS" 14862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14863/* end confdefs.h. */ 14864 14865/* Override any GCC internal prototype to avoid an error. 14866 Use char because int might match the return type of a GCC 14867 builtin and then its argument prototype would still apply. */ 14868#ifdef __cplusplus 14869extern "C" 14870#endif 14871char dlopen (); 14872int 14873main () 14874{ 14875return dlopen (); 14876 ; 14877 return 0; 14878} 14879_ACEOF 14880if ac_fn_c_try_link "$LINENO"; then : 14881 ac_cv_lib_dl_dlopen=yes 14882else 14883 ac_cv_lib_dl_dlopen=no 14884fi 14885rm -f core conftest.err conftest.$ac_objext \ 14886 conftest$ac_exeext conftest.$ac_ext 14887LIBS=$ac_check_lib_save_LIBS 14888fi 14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14890$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14891if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14893else 14894 14895 lt_cv_dlopen="dyld" 14896 lt_cv_dlopen_libs= 14897 lt_cv_dlopen_self=yes 14898 14899fi 14900 14901 ;; 14902 14903 *) 14904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14905if test "x$ac_cv_func_shl_load" = xyes; then : 14906 lt_cv_dlopen="shl_load" 14907else 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14909$as_echo_n "checking for shl_load in -ldld... " >&6; } 14910if ${ac_cv_lib_dld_shl_load+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 ac_check_lib_save_LIBS=$LIBS 14914LIBS="-ldld $LIBS" 14915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917 14918/* Override any GCC internal prototype to avoid an error. 14919 Use char because int might match the return type of a GCC 14920 builtin and then its argument prototype would still apply. */ 14921#ifdef __cplusplus 14922extern "C" 14923#endif 14924char shl_load (); 14925int 14926main () 14927{ 14928return shl_load (); 14929 ; 14930 return 0; 14931} 14932_ACEOF 14933if ac_fn_c_try_link "$LINENO"; then : 14934 ac_cv_lib_dld_shl_load=yes 14935else 14936 ac_cv_lib_dld_shl_load=no 14937fi 14938rm -f core conftest.err conftest.$ac_objext \ 14939 conftest$ac_exeext conftest.$ac_ext 14940LIBS=$ac_check_lib_save_LIBS 14941fi 14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14943$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14944if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14945 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14946else 14947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14948if test "x$ac_cv_func_dlopen" = xyes; then : 14949 lt_cv_dlopen="dlopen" 14950else 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14952$as_echo_n "checking for dlopen in -ldl... " >&6; } 14953if ${ac_cv_lib_dl_dlopen+:} false; then : 14954 $as_echo_n "(cached) " >&6 14955else 14956 ac_check_lib_save_LIBS=$LIBS 14957LIBS="-ldl $LIBS" 14958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14959/* end confdefs.h. */ 14960 14961/* Override any GCC internal prototype to avoid an error. 14962 Use char because int might match the return type of a GCC 14963 builtin and then its argument prototype would still apply. */ 14964#ifdef __cplusplus 14965extern "C" 14966#endif 14967char dlopen (); 14968int 14969main () 14970{ 14971return dlopen (); 14972 ; 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_link "$LINENO"; then : 14977 ac_cv_lib_dl_dlopen=yes 14978else 14979 ac_cv_lib_dl_dlopen=no 14980fi 14981rm -f core conftest.err conftest.$ac_objext \ 14982 conftest$ac_exeext conftest.$ac_ext 14983LIBS=$ac_check_lib_save_LIBS 14984fi 14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14986$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14987if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14989else 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14991$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14992if ${ac_cv_lib_svld_dlopen+:} false; then : 14993 $as_echo_n "(cached) " >&6 14994else 14995 ac_check_lib_save_LIBS=$LIBS 14996LIBS="-lsvld $LIBS" 14997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14998/* end confdefs.h. */ 14999 15000/* Override any GCC internal prototype to avoid an error. 15001 Use char because int might match the return type of a GCC 15002 builtin and then its argument prototype would still apply. */ 15003#ifdef __cplusplus 15004extern "C" 15005#endif 15006char dlopen (); 15007int 15008main () 15009{ 15010return dlopen (); 15011 ; 15012 return 0; 15013} 15014_ACEOF 15015if ac_fn_c_try_link "$LINENO"; then : 15016 ac_cv_lib_svld_dlopen=yes 15017else 15018 ac_cv_lib_svld_dlopen=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext \ 15021 conftest$ac_exeext conftest.$ac_ext 15022LIBS=$ac_check_lib_save_LIBS 15023fi 15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15025$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15026if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 15028else 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15030$as_echo_n "checking for dld_link in -ldld... " >&6; } 15031if ${ac_cv_lib_dld_dld_link+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033else 15034 ac_check_lib_save_LIBS=$LIBS 15035LIBS="-ldld $LIBS" 15036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15037/* end confdefs.h. */ 15038 15039/* Override any GCC internal prototype to avoid an error. 15040 Use char because int might match the return type of a GCC 15041 builtin and then its argument prototype would still apply. */ 15042#ifdef __cplusplus 15043extern "C" 15044#endif 15045char dld_link (); 15046int 15047main () 15048{ 15049return dld_link (); 15050 ; 15051 return 0; 15052} 15053_ACEOF 15054if ac_fn_c_try_link "$LINENO"; then : 15055 ac_cv_lib_dld_dld_link=yes 15056else 15057 ac_cv_lib_dld_dld_link=no 15058fi 15059rm -f core conftest.err conftest.$ac_objext \ 15060 conftest$ac_exeext conftest.$ac_ext 15061LIBS=$ac_check_lib_save_LIBS 15062fi 15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15064$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15065if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 15067fi 15068 15069 15070fi 15071 15072 15073fi 15074 15075 15076fi 15077 15078 15079fi 15080 15081 15082fi 15083 15084 ;; 15085 esac 15086 15087 if test "x$lt_cv_dlopen" != xno; then 15088 enable_dlopen=yes 15089 else 15090 enable_dlopen=no 15091 fi 15092 15093 case $lt_cv_dlopen in 15094 dlopen) 15095 save_CPPFLAGS="$CPPFLAGS" 15096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15097 15098 save_LDFLAGS="$LDFLAGS" 15099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15100 15101 save_LIBS="$LIBS" 15102 LIBS="$lt_cv_dlopen_libs $LIBS" 15103 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15105$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15106if ${lt_cv_dlopen_self+:} false; then : 15107 $as_echo_n "(cached) " >&6 15108else 15109 if test "$cross_compiling" = yes; then : 15110 lt_cv_dlopen_self=cross 15111else 15112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15113 lt_status=$lt_dlunknown 15114 cat > conftest.$ac_ext <<_LT_EOF 15115#line $LINENO "configure" 15116#include "confdefs.h" 15117 15118#if HAVE_DLFCN_H 15119#include <dlfcn.h> 15120#endif 15121 15122#include <stdio.h> 15123 15124#ifdef RTLD_GLOBAL 15125# define LT_DLGLOBAL RTLD_GLOBAL 15126#else 15127# ifdef DL_GLOBAL 15128# define LT_DLGLOBAL DL_GLOBAL 15129# else 15130# define LT_DLGLOBAL 0 15131# endif 15132#endif 15133 15134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15135 find out it does not work in some platform. */ 15136#ifndef LT_DLLAZY_OR_NOW 15137# ifdef RTLD_LAZY 15138# define LT_DLLAZY_OR_NOW RTLD_LAZY 15139# else 15140# ifdef DL_LAZY 15141# define LT_DLLAZY_OR_NOW DL_LAZY 15142# else 15143# ifdef RTLD_NOW 15144# define LT_DLLAZY_OR_NOW RTLD_NOW 15145# else 15146# ifdef DL_NOW 15147# define LT_DLLAZY_OR_NOW DL_NOW 15148# else 15149# define LT_DLLAZY_OR_NOW 0 15150# endif 15151# endif 15152# endif 15153# endif 15154#endif 15155 15156/* When -fvisbility=hidden is used, assume the code has been annotated 15157 correspondingly for the symbols needed. */ 15158#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15159int fnord () __attribute__((visibility("default"))); 15160#endif 15161 15162int fnord () { return 42; } 15163int main () 15164{ 15165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15166 int status = $lt_dlunknown; 15167 15168 if (self) 15169 { 15170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15171 else 15172 { 15173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15174 else puts (dlerror ()); 15175 } 15176 /* dlclose (self); */ 15177 } 15178 else 15179 puts (dlerror ()); 15180 15181 return status; 15182} 15183_LT_EOF 15184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15185 (eval $ac_link) 2>&5 15186 ac_status=$? 15187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15188 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15189 (./conftest; exit; ) >&5 2>/dev/null 15190 lt_status=$? 15191 case x$lt_status in 15192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15195 esac 15196 else : 15197 # compilation failed 15198 lt_cv_dlopen_self=no 15199 fi 15200fi 15201rm -fr conftest* 15202 15203 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15206$as_echo "$lt_cv_dlopen_self" >&6; } 15207 15208 if test "x$lt_cv_dlopen_self" = xyes; then 15209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15211$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15212if ${lt_cv_dlopen_self_static+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 if test "$cross_compiling" = yes; then : 15216 lt_cv_dlopen_self_static=cross 15217else 15218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15219 lt_status=$lt_dlunknown 15220 cat > conftest.$ac_ext <<_LT_EOF 15221#line $LINENO "configure" 15222#include "confdefs.h" 15223 15224#if HAVE_DLFCN_H 15225#include <dlfcn.h> 15226#endif 15227 15228#include <stdio.h> 15229 15230#ifdef RTLD_GLOBAL 15231# define LT_DLGLOBAL RTLD_GLOBAL 15232#else 15233# ifdef DL_GLOBAL 15234# define LT_DLGLOBAL DL_GLOBAL 15235# else 15236# define LT_DLGLOBAL 0 15237# endif 15238#endif 15239 15240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15241 find out it does not work in some platform. */ 15242#ifndef LT_DLLAZY_OR_NOW 15243# ifdef RTLD_LAZY 15244# define LT_DLLAZY_OR_NOW RTLD_LAZY 15245# else 15246# ifdef DL_LAZY 15247# define LT_DLLAZY_OR_NOW DL_LAZY 15248# else 15249# ifdef RTLD_NOW 15250# define LT_DLLAZY_OR_NOW RTLD_NOW 15251# else 15252# ifdef DL_NOW 15253# define LT_DLLAZY_OR_NOW DL_NOW 15254# else 15255# define LT_DLLAZY_OR_NOW 0 15256# endif 15257# endif 15258# endif 15259# endif 15260#endif 15261 15262/* When -fvisbility=hidden is used, assume the code has been annotated 15263 correspondingly for the symbols needed. */ 15264#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15265int fnord () __attribute__((visibility("default"))); 15266#endif 15267 15268int fnord () { return 42; } 15269int main () 15270{ 15271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15272 int status = $lt_dlunknown; 15273 15274 if (self) 15275 { 15276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15277 else 15278 { 15279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15280 else puts (dlerror ()); 15281 } 15282 /* dlclose (self); */ 15283 } 15284 else 15285 puts (dlerror ()); 15286 15287 return status; 15288} 15289_LT_EOF 15290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15291 (eval $ac_link) 2>&5 15292 ac_status=$? 15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15294 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15295 (./conftest; exit; ) >&5 2>/dev/null 15296 lt_status=$? 15297 case x$lt_status in 15298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15301 esac 15302 else : 15303 # compilation failed 15304 lt_cv_dlopen_self_static=no 15305 fi 15306fi 15307rm -fr conftest* 15308 15309 15310fi 15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15312$as_echo "$lt_cv_dlopen_self_static" >&6; } 15313 fi 15314 15315 CPPFLAGS="$save_CPPFLAGS" 15316 LDFLAGS="$save_LDFLAGS" 15317 LIBS="$save_LIBS" 15318 ;; 15319 esac 15320 15321 case $lt_cv_dlopen_self in 15322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15323 *) enable_dlopen_self=unknown ;; 15324 esac 15325 15326 case $lt_cv_dlopen_self_static in 15327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15328 *) enable_dlopen_self_static=unknown ;; 15329 esac 15330fi 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348striplib= 15349old_striplib= 15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15351$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15352if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15354 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15356$as_echo "yes" >&6; } 15357else 15358# FIXME - insert some real tests, host_os isn't really good enough 15359 case $host_os in 15360 darwin*) 15361 if test -n "$STRIP" ; then 15362 striplib="$STRIP -x" 15363 old_striplib="$STRIP -S" 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15365$as_echo "yes" >&6; } 15366 else 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15368$as_echo "no" >&6; } 15369 fi 15370 ;; 15371 *) 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15373$as_echo "no" >&6; } 15374 ;; 15375 esac 15376fi 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 # Report which library types will actually be built 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15391$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15393$as_echo "$can_build_shared" >&6; } 15394 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15396$as_echo_n "checking whether to build shared libraries... " >&6; } 15397 test "$can_build_shared" = "no" && enable_shared=no 15398 15399 # On AIX, shared libraries and static libraries use the same namespace, and 15400 # are all built from PIC. 15401 case $host_os in 15402 aix3*) 15403 test "$enable_shared" = yes && enable_static=no 15404 if test -n "$RANLIB"; then 15405 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15406 postinstall_cmds='$RANLIB $lib' 15407 fi 15408 ;; 15409 15410 aix[4-9]*) 15411 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15412 test "$enable_shared" = yes && enable_static=no 15413 fi 15414 ;; 15415 esac 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15417$as_echo "$enable_shared" >&6; } 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15420$as_echo_n "checking whether to build static libraries... " >&6; } 15421 # Make sure either enable_shared or enable_static is yes. 15422 test "$enable_shared" = yes || enable_static=yes 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15424$as_echo "$enable_static" >&6; } 15425 15426 15427 15428 15429fi 15430ac_ext=c 15431ac_cpp='$CPP $CPPFLAGS' 15432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15434ac_compiler_gnu=$ac_cv_c_compiler_gnu 15435 15436CC="$lt_save_CC" 15437 15438 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 15439 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 15440 (test "X$CXX" != "Xg++"))) ; then 15441 ac_ext=cpp 15442ac_cpp='$CXXCPP $CPPFLAGS' 15443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15447$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15448if test -z "$CXXCPP"; then 15449 if ${ac_cv_prog_CXXCPP+:} false; then : 15450 $as_echo_n "(cached) " >&6 15451else 15452 # Double quotes because CXXCPP needs to be expanded 15453 for CXXCPP in "$CXX -E" "/lib/cpp" 15454 do 15455 ac_preproc_ok=false 15456for ac_cxx_preproc_warn_flag in '' yes 15457do 15458 # Use a header file that comes with gcc, so configuring glibc 15459 # with a fresh cross-compiler works. 15460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15461 # <limits.h> exists even on freestanding compilers. 15462 # On the NeXT, cc -E runs the code through the compiler's parser, 15463 # not just through cpp. "Syntax error" is here to catch this case. 15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15465/* end confdefs.h. */ 15466#ifdef __STDC__ 15467# include <limits.h> 15468#else 15469# include <assert.h> 15470#endif 15471 Syntax error 15472_ACEOF 15473if ac_fn_cxx_try_cpp "$LINENO"; then : 15474 15475else 15476 # Broken: fails on valid input. 15477continue 15478fi 15479rm -f conftest.err conftest.i conftest.$ac_ext 15480 15481 # OK, works on sane cases. Now check whether nonexistent headers 15482 # can be detected and how. 15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15484/* end confdefs.h. */ 15485#include <ac_nonexistent.h> 15486_ACEOF 15487if ac_fn_cxx_try_cpp "$LINENO"; then : 15488 # Broken: success on invalid input. 15489continue 15490else 15491 # Passes both tests. 15492ac_preproc_ok=: 15493break 15494fi 15495rm -f conftest.err conftest.i conftest.$ac_ext 15496 15497done 15498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15499rm -f conftest.i conftest.err conftest.$ac_ext 15500if $ac_preproc_ok; then : 15501 break 15502fi 15503 15504 done 15505 ac_cv_prog_CXXCPP=$CXXCPP 15506 15507fi 15508 CXXCPP=$ac_cv_prog_CXXCPP 15509else 15510 ac_cv_prog_CXXCPP=$CXXCPP 15511fi 15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15513$as_echo "$CXXCPP" >&6; } 15514ac_preproc_ok=false 15515for ac_cxx_preproc_warn_flag in '' yes 15516do 15517 # Use a header file that comes with gcc, so configuring glibc 15518 # with a fresh cross-compiler works. 15519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15520 # <limits.h> exists even on freestanding compilers. 15521 # On the NeXT, cc -E runs the code through the compiler's parser, 15522 # not just through cpp. "Syntax error" is here to catch this case. 15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15524/* end confdefs.h. */ 15525#ifdef __STDC__ 15526# include <limits.h> 15527#else 15528# include <assert.h> 15529#endif 15530 Syntax error 15531_ACEOF 15532if ac_fn_cxx_try_cpp "$LINENO"; then : 15533 15534else 15535 # Broken: fails on valid input. 15536continue 15537fi 15538rm -f conftest.err conftest.i conftest.$ac_ext 15539 15540 # OK, works on sane cases. Now check whether nonexistent headers 15541 # can be detected and how. 15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15543/* end confdefs.h. */ 15544#include <ac_nonexistent.h> 15545_ACEOF 15546if ac_fn_cxx_try_cpp "$LINENO"; then : 15547 # Broken: success on invalid input. 15548continue 15549else 15550 # Passes both tests. 15551ac_preproc_ok=: 15552break 15553fi 15554rm -f conftest.err conftest.i conftest.$ac_ext 15555 15556done 15557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15558rm -f conftest.i conftest.err conftest.$ac_ext 15559if $ac_preproc_ok; then : 15560 15561else 15562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15564as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15565See \`config.log' for more details" "$LINENO" 5; } 15566fi 15567 15568ac_ext=c 15569ac_cpp='$CPP $CPPFLAGS' 15570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15572ac_compiler_gnu=$ac_cv_c_compiler_gnu 15573 15574else 15575 _lt_caught_CXX_error=yes 15576fi 15577 15578ac_ext=cpp 15579ac_cpp='$CXXCPP $CPPFLAGS' 15580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15583 15584archive_cmds_need_lc_CXX=no 15585allow_undefined_flag_CXX= 15586always_export_symbols_CXX=no 15587archive_expsym_cmds_CXX= 15588compiler_needs_object_CXX=no 15589export_dynamic_flag_spec_CXX= 15590hardcode_direct_CXX=no 15591hardcode_direct_absolute_CXX=no 15592hardcode_libdir_flag_spec_CXX= 15593hardcode_libdir_flag_spec_ld_CXX= 15594hardcode_libdir_separator_CXX= 15595hardcode_minus_L_CXX=no 15596hardcode_shlibpath_var_CXX=unsupported 15597hardcode_automatic_CXX=no 15598inherit_rpath_CXX=no 15599module_cmds_CXX= 15600module_expsym_cmds_CXX= 15601link_all_deplibs_CXX=unknown 15602old_archive_cmds_CXX=$old_archive_cmds 15603reload_flag_CXX=$reload_flag 15604reload_cmds_CXX=$reload_cmds 15605no_undefined_flag_CXX= 15606whole_archive_flag_spec_CXX= 15607enable_shared_with_static_runtimes_CXX=no 15608 15609# Source file extension for C++ test sources. 15610ac_ext=cpp 15611 15612# Object file extension for compiled C++ test sources. 15613objext=o 15614objext_CXX=$objext 15615 15616# No sense in running all these tests if we already determined that 15617# the CXX compiler isn't working. Some variables (like enable_shared) 15618# are currently assumed to apply to all compilers on this platform, 15619# and will be corrupted by setting them based on a non-working compiler. 15620if test "$_lt_caught_CXX_error" != yes; then 15621 # Code to be used in simple compile tests 15622 lt_simple_compile_test_code="int some_variable = 0;" 15623 15624 # Code to be used in simple link tests 15625 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15626 15627 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15628 15629 15630 15631 15632 15633 15634# If no C compiler was specified, use CC. 15635LTCC=${LTCC-"$CC"} 15636 15637# If no C compiler flags were specified, use CFLAGS. 15638LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15639 15640# Allow CC to be a program name with arguments. 15641compiler=$CC 15642 15643 15644 # save warnings/boilerplate of simple test code 15645 ac_outfile=conftest.$ac_objext 15646echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15648_lt_compiler_boilerplate=`cat conftest.err` 15649$RM conftest* 15650 15651 ac_outfile=conftest.$ac_objext 15652echo "$lt_simple_link_test_code" >conftest.$ac_ext 15653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15654_lt_linker_boilerplate=`cat conftest.err` 15655$RM -r conftest* 15656 15657 15658 # Allow CC to be a program name with arguments. 15659 lt_save_CC=$CC 15660 lt_save_CFLAGS=$CFLAGS 15661 lt_save_LD=$LD 15662 lt_save_GCC=$GCC 15663 GCC=$GXX 15664 lt_save_with_gnu_ld=$with_gnu_ld 15665 lt_save_path_LD=$lt_cv_path_LD 15666 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15667 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15668 else 15669 $as_unset lt_cv_prog_gnu_ld 15670 fi 15671 if test -n "${lt_cv_path_LDCXX+set}"; then 15672 lt_cv_path_LD=$lt_cv_path_LDCXX 15673 else 15674 $as_unset lt_cv_path_LD 15675 fi 15676 test -z "${LDCXX+set}" || LD=$LDCXX 15677 CC=${CXX-"c++"} 15678 CFLAGS=$CXXFLAGS 15679 compiler=$CC 15680 compiler_CXX=$CC 15681 for cc_temp in $compiler""; do 15682 case $cc_temp in 15683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15685 \-*) ;; 15686 *) break;; 15687 esac 15688done 15689cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15690 15691 15692 if test -n "$compiler"; then 15693 # We don't want -fno-exception when compiling C++ code, so set the 15694 # no_builtin_flag separately 15695 if test "$GXX" = yes; then 15696 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15697 else 15698 lt_prog_compiler_no_builtin_flag_CXX= 15699 fi 15700 15701 if test "$GXX" = yes; then 15702 # Set up default GNU C++ configuration 15703 15704 15705 15706# Check whether --with-gnu-ld was given. 15707if test "${with_gnu_ld+set}" = set; then : 15708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15709else 15710 with_gnu_ld=no 15711fi 15712 15713ac_prog=ld 15714if test "$GCC" = yes; then 15715 # Check if gcc -print-prog-name=ld gives a path. 15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15717$as_echo_n "checking for ld used by $CC... " >&6; } 15718 case $host in 15719 *-*-mingw*) 15720 # gcc leaves a trailing carriage return which upsets mingw 15721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15722 *) 15723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15724 esac 15725 case $ac_prog in 15726 # Accept absolute paths. 15727 [\\/]* | ?:[\\/]*) 15728 re_direlt='/[^/][^/]*/\.\./' 15729 # Canonicalize the pathname of ld 15730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15733 done 15734 test -z "$LD" && LD="$ac_prog" 15735 ;; 15736 "") 15737 # If it fails, then pretend we aren't using GCC. 15738 ac_prog=ld 15739 ;; 15740 *) 15741 # If it is relative, then search for the first ld in PATH. 15742 with_gnu_ld=unknown 15743 ;; 15744 esac 15745elif test "$with_gnu_ld" = yes; then 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15747$as_echo_n "checking for GNU ld... " >&6; } 15748else 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15750$as_echo_n "checking for non-GNU ld... " >&6; } 15751fi 15752if ${lt_cv_path_LD+:} false; then : 15753 $as_echo_n "(cached) " >&6 15754else 15755 if test -z "$LD"; then 15756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15757 for ac_dir in $PATH; do 15758 IFS="$lt_save_ifs" 15759 test -z "$ac_dir" && ac_dir=. 15760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15761 lt_cv_path_LD="$ac_dir/$ac_prog" 15762 # Check to see if the program is GNU ld. I'd rather use --version, 15763 # but apparently some variants of GNU ld only accept -v. 15764 # Break only if it was the GNU/non-GNU ld that we prefer. 15765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15766 *GNU* | *'with BFD'*) 15767 test "$with_gnu_ld" != no && break 15768 ;; 15769 *) 15770 test "$with_gnu_ld" != yes && break 15771 ;; 15772 esac 15773 fi 15774 done 15775 IFS="$lt_save_ifs" 15776else 15777 lt_cv_path_LD="$LD" # Let the user override the test with a path. 15778fi 15779fi 15780 15781LD="$lt_cv_path_LD" 15782if test -n "$LD"; then 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15784$as_echo "$LD" >&6; } 15785else 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15787$as_echo "no" >&6; } 15788fi 15789test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15791$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15792if ${lt_cv_prog_gnu_ld+:} false; then : 15793 $as_echo_n "(cached) " >&6 15794else 15795 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15796case `$LD -v 2>&1 </dev/null` in 15797*GNU* | *'with BFD'*) 15798 lt_cv_prog_gnu_ld=yes 15799 ;; 15800*) 15801 lt_cv_prog_gnu_ld=no 15802 ;; 15803esac 15804fi 15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15806$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15807with_gnu_ld=$lt_cv_prog_gnu_ld 15808 15809 15810 15811 15812 15813 15814 15815 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15816 # archiving commands below assume that GNU ld is being used. 15817 if test "$with_gnu_ld" = yes; then 15818 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15819 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15820 15821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15823 15824 # If archive_cmds runs LD, not CC, wlarc should be empty 15825 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15826 # investigate it a little bit more. (MM) 15827 wlarc='${wl}' 15828 15829 # ancient GNU ld didn't support --whole-archive et. al. 15830 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15831 $GREP 'no-whole-archive' > /dev/null; then 15832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15833 else 15834 whole_archive_flag_spec_CXX= 15835 fi 15836 else 15837 with_gnu_ld=no 15838 wlarc= 15839 15840 # A generic and very simple default shared library creation 15841 # command for GNU C++ for the case where it uses the native 15842 # linker, instead of GNU ld. If possible, this setting should 15843 # overridden to take advantage of the native linker features on 15844 # the platform it is being used on. 15845 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15846 fi 15847 15848 # Commands to make compiler produce verbose output that lists 15849 # what "hidden" libraries, object files and flags are used when 15850 # linking a shared library. 15851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15852 15853 else 15854 GXX=no 15855 with_gnu_ld=no 15856 wlarc= 15857 fi 15858 15859 # PORTME: fill in a description of your system's C++ link characteristics 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15861$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15862 ld_shlibs_CXX=yes 15863 case $host_os in 15864 aix3*) 15865 # FIXME: insert proper C++ library support 15866 ld_shlibs_CXX=no 15867 ;; 15868 aix[4-9]*) 15869 if test "$host_cpu" = ia64; then 15870 # On IA64, the linker does run time linking by default, so we don't 15871 # have to do anything special. 15872 aix_use_runtimelinking=no 15873 exp_sym_flag='-Bexport' 15874 no_entry_flag="" 15875 else 15876 aix_use_runtimelinking=no 15877 15878 # Test if we are trying to use run time linking or normal 15879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15880 # need to do runtime linking. 15881 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15882 for ld_flag in $LDFLAGS; do 15883 case $ld_flag in 15884 *-brtl*) 15885 aix_use_runtimelinking=yes 15886 break 15887 ;; 15888 esac 15889 done 15890 ;; 15891 esac 15892 15893 exp_sym_flag='-bexport' 15894 no_entry_flag='-bnoentry' 15895 fi 15896 15897 # When large executables or shared objects are built, AIX ld can 15898 # have problems creating the table of contents. If linking a library 15899 # or program results in "error TOC overflow" add -mminimal-toc to 15900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15902 15903 archive_cmds_CXX='' 15904 hardcode_direct_CXX=yes 15905 hardcode_direct_absolute_CXX=yes 15906 hardcode_libdir_separator_CXX=':' 15907 link_all_deplibs_CXX=yes 15908 file_list_spec_CXX='${wl}-f,' 15909 15910 if test "$GXX" = yes; then 15911 case $host_os in aix4.[012]|aix4.[012].*) 15912 # We only want to do this on AIX 4.2 and lower, the check 15913 # below for broken collect2 doesn't work under 4.3+ 15914 collect2name=`${CC} -print-prog-name=collect2` 15915 if test -f "$collect2name" && 15916 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15917 then 15918 # We have reworked collect2 15919 : 15920 else 15921 # We have old collect2 15922 hardcode_direct_CXX=unsupported 15923 # It fails to find uninstalled libraries when the uninstalled 15924 # path is not listed in the libpath. Setting hardcode_minus_L 15925 # to unsupported forces relinking 15926 hardcode_minus_L_CXX=yes 15927 hardcode_libdir_flag_spec_CXX='-L$libdir' 15928 hardcode_libdir_separator_CXX= 15929 fi 15930 esac 15931 shared_flag='-shared' 15932 if test "$aix_use_runtimelinking" = yes; then 15933 shared_flag="$shared_flag "'${wl}-G' 15934 fi 15935 else 15936 # not using gcc 15937 if test "$host_cpu" = ia64; then 15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15939 # chokes on -Wl,-G. The following line is correct: 15940 shared_flag='-G' 15941 else 15942 if test "$aix_use_runtimelinking" = yes; then 15943 shared_flag='${wl}-G' 15944 else 15945 shared_flag='${wl}-bM:SRE' 15946 fi 15947 fi 15948 fi 15949 15950 export_dynamic_flag_spec_CXX='${wl}-bexpall' 15951 # It seems that -bexpall does not export symbols beginning with 15952 # underscore (_), so it is better to generate a list of symbols to 15953 # export. 15954 always_export_symbols_CXX=yes 15955 if test "$aix_use_runtimelinking" = yes; then 15956 # Warning - without using the other runtime loading flags (-brtl), 15957 # -berok will link without error, but may produce a broken library. 15958 allow_undefined_flag_CXX='-berok' 15959 # Determine the default libpath from the value encoded in an empty 15960 # executable. 15961 if test "${lt_cv_aix_libpath+set}" = set; then 15962 aix_libpath=$lt_cv_aix_libpath 15963else 15964 if ${lt_cv_aix_libpath__CXX+:} false; then : 15965 $as_echo_n "(cached) " >&6 15966else 15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969 15970int 15971main () 15972{ 15973 15974 ; 15975 return 0; 15976} 15977_ACEOF 15978if ac_fn_cxx_try_link "$LINENO"; then : 15979 15980 lt_aix_libpath_sed=' 15981 /Import File Strings/,/^$/ { 15982 /^0/ { 15983 s/^0 *\([^ ]*\) *$/\1/ 15984 p 15985 } 15986 }' 15987 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15988 # Check for a 64-bit object if we didn't find anything. 15989 if test -z "$lt_cv_aix_libpath__CXX"; then 15990 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15991 fi 15992fi 15993rm -f core conftest.err conftest.$ac_objext \ 15994 conftest$ac_exeext conftest.$ac_ext 15995 if test -z "$lt_cv_aix_libpath__CXX"; then 15996 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15997 fi 15998 15999fi 16000 16001 aix_libpath=$lt_cv_aix_libpath__CXX 16002fi 16003 16004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 16005 16006 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16007 else 16008 if test "$host_cpu" = ia64; then 16009 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 16010 allow_undefined_flag_CXX="-z nodefs" 16011 archive_expsym_cmds_CXX="\$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" 16012 else 16013 # Determine the default libpath from the value encoded in an 16014 # empty executable. 16015 if test "${lt_cv_aix_libpath+set}" = set; then 16016 aix_libpath=$lt_cv_aix_libpath 16017else 16018 if ${lt_cv_aix_libpath__CXX+:} false; then : 16019 $as_echo_n "(cached) " >&6 16020else 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022/* end confdefs.h. */ 16023 16024int 16025main () 16026{ 16027 16028 ; 16029 return 0; 16030} 16031_ACEOF 16032if ac_fn_cxx_try_link "$LINENO"; then : 16033 16034 lt_aix_libpath_sed=' 16035 /Import File Strings/,/^$/ { 16036 /^0/ { 16037 s/^0 *\([^ ]*\) *$/\1/ 16038 p 16039 } 16040 }' 16041 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16042 # Check for a 64-bit object if we didn't find anything. 16043 if test -z "$lt_cv_aix_libpath__CXX"; then 16044 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16045 fi 16046fi 16047rm -f core conftest.err conftest.$ac_objext \ 16048 conftest$ac_exeext conftest.$ac_ext 16049 if test -z "$lt_cv_aix_libpath__CXX"; then 16050 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 16051 fi 16052 16053fi 16054 16055 aix_libpath=$lt_cv_aix_libpath__CXX 16056fi 16057 16058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 16059 # Warning - without using the other run time loading flags, 16060 # -berok will link without error, but may produce a broken library. 16061 no_undefined_flag_CXX=' ${wl}-bernotok' 16062 allow_undefined_flag_CXX=' ${wl}-berok' 16063 if test "$with_gnu_ld" = yes; then 16064 # We only use this code for GNU lds that support --whole-archive. 16065 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16066 else 16067 # Exported symbols can be pulled into shared objects from archives 16068 whole_archive_flag_spec_CXX='$convenience' 16069 fi 16070 archive_cmds_need_lc_CXX=yes 16071 # This is similar to how AIX traditionally builds its shared 16072 # libraries. 16073 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16074 fi 16075 fi 16076 ;; 16077 16078 beos*) 16079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16080 allow_undefined_flag_CXX=unsupported 16081 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16082 # support --undefined. This deserves some investigation. FIXME 16083 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16084 else 16085 ld_shlibs_CXX=no 16086 fi 16087 ;; 16088 16089 chorus*) 16090 case $cc_basename in 16091 *) 16092 # FIXME: insert proper C++ library support 16093 ld_shlibs_CXX=no 16094 ;; 16095 esac 16096 ;; 16097 16098 cygwin* | mingw* | pw32* | cegcc*) 16099 case $GXX,$cc_basename in 16100 ,cl* | no,cl*) 16101 # Native MSVC 16102 # hardcode_libdir_flag_spec is actually meaningless, as there is 16103 # no search path for DLLs. 16104 hardcode_libdir_flag_spec_CXX=' ' 16105 allow_undefined_flag_CXX=unsupported 16106 always_export_symbols_CXX=yes 16107 file_list_spec_CXX='@' 16108 # Tell ltmain to make .lib files, not .a files. 16109 libext=lib 16110 # Tell ltmain to make .dll files, not .so files. 16111 shrext_cmds=".dll" 16112 # FIXME: Setting linknames here is a bad hack. 16113 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16114 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16115 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16116 else 16117 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16118 fi~ 16119 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16120 linknames=' 16121 # The linker will not automatically build a static lib if we build a DLL. 16122 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16123 enable_shared_with_static_runtimes_CXX=yes 16124 # Don't use ranlib 16125 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16126 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16127 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16128 case $lt_outputfile in 16129 *.exe|*.EXE) ;; 16130 *) 16131 lt_outputfile="$lt_outputfile.exe" 16132 lt_tool_outputfile="$lt_tool_outputfile.exe" 16133 ;; 16134 esac~ 16135 func_to_tool_file "$lt_outputfile"~ 16136 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 16137 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16138 $RM "$lt_outputfile.manifest"; 16139 fi' 16140 ;; 16141 *) 16142 # g++ 16143 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16144 # as there is no search path for DLLs. 16145 hardcode_libdir_flag_spec_CXX='-L$libdir' 16146 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 16147 allow_undefined_flag_CXX=unsupported 16148 always_export_symbols_CXX=no 16149 enable_shared_with_static_runtimes_CXX=yes 16150 16151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16153 # If the export-symbols file already is a .def file (1st line 16154 # is EXPORTS), use it as is; otherwise, prepend... 16155 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16156 cp $export_symbols $output_objdir/$soname.def; 16157 else 16158 echo EXPORTS > $output_objdir/$soname.def; 16159 cat $export_symbols >> $output_objdir/$soname.def; 16160 fi~ 16161 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16162 else 16163 ld_shlibs_CXX=no 16164 fi 16165 ;; 16166 esac 16167 ;; 16168 darwin* | rhapsody*) 16169 16170 16171 archive_cmds_need_lc_CXX=no 16172 hardcode_direct_CXX=no 16173 hardcode_automatic_CXX=yes 16174 hardcode_shlibpath_var_CXX=unsupported 16175 if test "$lt_cv_ld_force_load" = "yes"; then 16176 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 16177 else 16178 whole_archive_flag_spec_CXX='' 16179 fi 16180 link_all_deplibs_CXX=yes 16181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 16182 case $cc_basename in 16183 ifort*) _lt_dar_can_shared=yes ;; 16184 *) _lt_dar_can_shared=$GCC ;; 16185 esac 16186 if test "$_lt_dar_can_shared" = "yes"; then 16187 output_verbose_link_cmd=func_echo_all 16188 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16190 archive_expsym_cmds_CXX="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}" 16191 module_expsym_cmds_CXX="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}" 16192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 16193 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 16194 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 16195 fi 16196 16197 else 16198 ld_shlibs_CXX=no 16199 fi 16200 16201 ;; 16202 16203 dgux*) 16204 case $cc_basename in 16205 ec++*) 16206 # FIXME: insert proper C++ library support 16207 ld_shlibs_CXX=no 16208 ;; 16209 ghcx*) 16210 # Green Hills C++ Compiler 16211 # FIXME: insert proper C++ library support 16212 ld_shlibs_CXX=no 16213 ;; 16214 *) 16215 # FIXME: insert proper C++ library support 16216 ld_shlibs_CXX=no 16217 ;; 16218 esac 16219 ;; 16220 16221 freebsd[12]*) 16222 # C++ shared libraries reported to be fairly broken before 16223 # switch to ELF 16224 ld_shlibs_CXX=no 16225 ;; 16226 16227 freebsd-elf*) 16228 archive_cmds_need_lc_CXX=no 16229 ;; 16230 16231 freebsd* | dragonfly*) 16232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16233 # conventions 16234 ld_shlibs_CXX=yes 16235 ;; 16236 16237 gnu*) 16238 ;; 16239 16240 haiku*) 16241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16242 link_all_deplibs_CXX=yes 16243 ;; 16244 16245 hpux9*) 16246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 16247 hardcode_libdir_separator_CXX=: 16248 export_dynamic_flag_spec_CXX='${wl}-E' 16249 hardcode_direct_CXX=yes 16250 hardcode_minus_L_CXX=yes # Not in the search PATH, 16251 # but as the default 16252 # location of the library. 16253 16254 case $cc_basename in 16255 CC*) 16256 # FIXME: insert proper C++ library support 16257 ld_shlibs_CXX=no 16258 ;; 16259 aCC*) 16260 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16261 # Commands to make compiler produce verbose output that lists 16262 # what "hidden" libraries, object files and flags are used when 16263 # linking a shared library. 16264 # 16265 # There doesn't appear to be a way to prevent this compiler from 16266 # explicitly linking system object files so we need to strip them 16267 # from the output so that they don't get included in the library 16268 # dependencies. 16269 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16270 ;; 16271 *) 16272 if test "$GXX" = yes; then 16273 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16274 else 16275 # FIXME: insert proper C++ library support 16276 ld_shlibs_CXX=no 16277 fi 16278 ;; 16279 esac 16280 ;; 16281 16282 hpux10*|hpux11*) 16283 if test $with_gnu_ld = no; then 16284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 16285 hardcode_libdir_separator_CXX=: 16286 16287 case $host_cpu in 16288 hppa*64*|ia64*) 16289 ;; 16290 *) 16291 export_dynamic_flag_spec_CXX='${wl}-E' 16292 ;; 16293 esac 16294 fi 16295 case $host_cpu in 16296 hppa*64*|ia64*) 16297 hardcode_direct_CXX=no 16298 hardcode_shlibpath_var_CXX=no 16299 ;; 16300 *) 16301 hardcode_direct_CXX=yes 16302 hardcode_direct_absolute_CXX=yes 16303 hardcode_minus_L_CXX=yes # Not in the search PATH, 16304 # but as the default 16305 # location of the library. 16306 ;; 16307 esac 16308 16309 case $cc_basename in 16310 CC*) 16311 # FIXME: insert proper C++ library support 16312 ld_shlibs_CXX=no 16313 ;; 16314 aCC*) 16315 case $host_cpu in 16316 hppa*64*) 16317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16318 ;; 16319 ia64*) 16320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16321 ;; 16322 *) 16323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16324 ;; 16325 esac 16326 # Commands to make compiler produce verbose output that lists 16327 # what "hidden" libraries, object files and flags are used when 16328 # linking a shared library. 16329 # 16330 # There doesn't appear to be a way to prevent this compiler from 16331 # explicitly linking system object files so we need to strip them 16332 # from the output so that they don't get included in the library 16333 # dependencies. 16334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16335 ;; 16336 *) 16337 if test "$GXX" = yes; then 16338 if test $with_gnu_ld = no; then 16339 case $host_cpu in 16340 hppa*64*) 16341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16342 ;; 16343 ia64*) 16344 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16345 ;; 16346 *) 16347 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16348 ;; 16349 esac 16350 fi 16351 else 16352 # FIXME: insert proper C++ library support 16353 ld_shlibs_CXX=no 16354 fi 16355 ;; 16356 esac 16357 ;; 16358 16359 interix[3-9]*) 16360 hardcode_direct_CXX=no 16361 hardcode_shlibpath_var_CXX=no 16362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16363 export_dynamic_flag_spec_CXX='${wl}-E' 16364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16365 # Instead, shared libraries are loaded at an image base (0x10000000 by 16366 # default) and relocated if they conflict, which is a slow very memory 16367 # consuming and fragmenting process. To avoid this, we pick a random, 16368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16369 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16370 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16371 archive_expsym_cmds_CXX='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' 16372 ;; 16373 irix5* | irix6*) 16374 case $cc_basename in 16375 CC*) 16376 # SGI C++ 16377 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16378 16379 # Archives containing C++ object files must be created using 16380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16381 # necessary to make sure instantiated templates are included 16382 # in the archive. 16383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16384 ;; 16385 *) 16386 if test "$GXX" = yes; then 16387 if test "$with_gnu_ld" = no; then 16388 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 16389 else 16390 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 16391 fi 16392 fi 16393 link_all_deplibs_CXX=yes 16394 ;; 16395 esac 16396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16397 hardcode_libdir_separator_CXX=: 16398 inherit_rpath_CXX=yes 16399 ;; 16400 16401 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16402 case $cc_basename in 16403 KCC*) 16404 # Kuck and Associates, Inc. (KAI) C++ Compiler 16405 16406 # KCC will only create a shared library if the output file 16407 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16408 # to its proper name (with version) after linking. 16409 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 16410 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 16411 # Commands to make compiler produce verbose output that lists 16412 # what "hidden" libraries, object files and flags are used when 16413 # linking a shared library. 16414 # 16415 # There doesn't appear to be a way to prevent this compiler from 16416 # explicitly linking system object files so we need to strip them 16417 # from the output so that they don't get included in the library 16418 # dependencies. 16419 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16420 16421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16423 16424 # Archives containing C++ object files must be created using 16425 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16427 ;; 16428 icpc* | ecpc* ) 16429 # Intel C++ 16430 with_gnu_ld=yes 16431 # version 8.0 and above of icpc choke on multiply defined symbols 16432 # if we add $predep_objects and $postdep_objects, however 7.1 and 16433 # earlier do not add the objects themselves. 16434 case `$CC -V 2>&1` in 16435 *"Version 7."*) 16436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 16437 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16438 ;; 16439 *) # Version 8.0 or newer 16440 tmp_idyn= 16441 case $host_cpu in 16442 ia64*) tmp_idyn=' -i_dynamic';; 16443 esac 16444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16445 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16446 ;; 16447 esac 16448 archive_cmds_need_lc_CXX=no 16449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16452 ;; 16453 pgCC* | pgcpp*) 16454 # Portland Group C++ compiler 16455 case `$CC -V` in 16456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16457 prelink_cmds_CXX='tpldir=Template.dir~ 16458 rm -rf $tpldir~ 16459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16460 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16461 old_archive_cmds_CXX='tpldir=Template.dir~ 16462 rm -rf $tpldir~ 16463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16465 $RANLIB $oldlib' 16466 archive_cmds_CXX='tpldir=Template.dir~ 16467 rm -rf $tpldir~ 16468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 16470 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16471 rm -rf $tpldir~ 16472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 16474 ;; 16475 *) # Version 6 and above use weak symbols 16476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 16477 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 16478 ;; 16479 esac 16480 16481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 16482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16483 whole_archive_flag_spec_CXX='${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' 16484 ;; 16485 cxx*) 16486 # Compaq C++ 16487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 16488 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 16489 16490 runpath_var=LD_RUN_PATH 16491 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16492 hardcode_libdir_separator_CXX=: 16493 16494 # Commands to make compiler produce verbose output that lists 16495 # what "hidden" libraries, object files and flags are used when 16496 # linking a shared library. 16497 # 16498 # There doesn't appear to be a way to prevent this compiler from 16499 # explicitly linking system object files so we need to strip them 16500 # from the output so that they don't get included in the library 16501 # dependencies. 16502 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 16503 ;; 16504 xl* | mpixl* | bgxl*) 16505 # IBM XL 8.0 on PPC, with GNU ld 16506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16509 if test "x$supports_anon_versioning" = xyes; then 16510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16512 echo "local: *; };" >> $output_objdir/$libname.ver~ 16513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16514 fi 16515 ;; 16516 *) 16517 case `$CC -V 2>&1 | sed 5q` in 16518 *Sun\ C*) 16519 # Sun C++ 5.9 16520 no_undefined_flag_CXX=' -zdefs' 16521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16522 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 16523 hardcode_libdir_flag_spec_CXX='-R$libdir' 16524 whole_archive_flag_spec_CXX='${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' 16525 compiler_needs_object_CXX=yes 16526 16527 # Not sure whether something based on 16528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16529 # would be better. 16530 output_verbose_link_cmd='func_echo_all' 16531 16532 # Archives containing C++ object files must be created using 16533 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16534 # necessary to make sure instantiated templates are included 16535 # in the archive. 16536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16537 ;; 16538 esac 16539 ;; 16540 esac 16541 ;; 16542 16543 lynxos*) 16544 # FIXME: insert proper C++ library support 16545 ld_shlibs_CXX=no 16546 ;; 16547 16548 m88k*) 16549 # FIXME: insert proper C++ library support 16550 ld_shlibs_CXX=no 16551 ;; 16552 16553 mvs*) 16554 case $cc_basename in 16555 cxx*) 16556 # FIXME: insert proper C++ library support 16557 ld_shlibs_CXX=no 16558 ;; 16559 *) 16560 # FIXME: insert proper C++ library support 16561 ld_shlibs_CXX=no 16562 ;; 16563 esac 16564 ;; 16565 16566 netbsd*) 16567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16569 wlarc= 16570 hardcode_libdir_flag_spec_CXX='-R$libdir' 16571 hardcode_direct_CXX=yes 16572 hardcode_shlibpath_var_CXX=no 16573 fi 16574 # Workaround some broken pre-1.5 toolchains 16575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16576 ;; 16577 16578 *nto* | *qnx*) 16579 ld_shlibs_CXX=yes 16580 ;; 16581 16582 openbsd2*) 16583 # C++ shared libraries are fairly broken 16584 ld_shlibs_CXX=no 16585 ;; 16586 16587 openbsd*) 16588 if test -f /usr/libexec/ld.so; then 16589 hardcode_direct_CXX=yes 16590 hardcode_shlibpath_var_CXX=no 16591 hardcode_direct_absolute_CXX=yes 16592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 16596 export_dynamic_flag_spec_CXX='${wl}-E' 16597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16598 fi 16599 output_verbose_link_cmd=func_echo_all 16600 else 16601 ld_shlibs_CXX=no 16602 fi 16603 ;; 16604 16605 osf3* | osf4* | osf5*) 16606 case $cc_basename in 16607 KCC*) 16608 # Kuck and Associates, Inc. (KAI) C++ Compiler 16609 16610 # KCC will only create a shared library if the output file 16611 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16612 # to its proper name (with version) after linking. 16613 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 16614 16615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16616 hardcode_libdir_separator_CXX=: 16617 16618 # Archives containing C++ object files must be created using 16619 # the KAI C++ compiler. 16620 case $host in 16621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16623 esac 16624 ;; 16625 RCC*) 16626 # Rational C++ 2.4.1 16627 # FIXME: insert proper C++ library support 16628 ld_shlibs_CXX=no 16629 ;; 16630 cxx*) 16631 case $host in 16632 osf3*) 16633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16634 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16636 ;; 16637 *) 16638 allow_undefined_flag_CXX=' -expect_unresolved \*' 16639 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16641 echo "-hidden">> $lib.exp~ 16642 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 16643 $RM $lib.exp' 16644 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16645 ;; 16646 esac 16647 16648 hardcode_libdir_separator_CXX=: 16649 16650 # Commands to make compiler produce verbose output that lists 16651 # what "hidden" libraries, object files and flags are used when 16652 # linking a shared library. 16653 # 16654 # There doesn't appear to be a way to prevent this compiler from 16655 # explicitly linking system object files so we need to strip them 16656 # from the output so that they don't get included in the library 16657 # dependencies. 16658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16659 ;; 16660 *) 16661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16663 case $host in 16664 osf3*) 16665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 16666 ;; 16667 *) 16668 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 16669 ;; 16670 esac 16671 16672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16673 hardcode_libdir_separator_CXX=: 16674 16675 # Commands to make compiler produce verbose output that lists 16676 # what "hidden" libraries, object files and flags are used when 16677 # linking a shared library. 16678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16679 16680 else 16681 # FIXME: insert proper C++ library support 16682 ld_shlibs_CXX=no 16683 fi 16684 ;; 16685 esac 16686 ;; 16687 16688 psos*) 16689 # FIXME: insert proper C++ library support 16690 ld_shlibs_CXX=no 16691 ;; 16692 16693 sunos4*) 16694 case $cc_basename in 16695 CC*) 16696 # Sun C++ 4.x 16697 # FIXME: insert proper C++ library support 16698 ld_shlibs_CXX=no 16699 ;; 16700 lcc*) 16701 # Lucid 16702 # FIXME: insert proper C++ library support 16703 ld_shlibs_CXX=no 16704 ;; 16705 *) 16706 # FIXME: insert proper C++ library support 16707 ld_shlibs_CXX=no 16708 ;; 16709 esac 16710 ;; 16711 16712 solaris*) 16713 case $cc_basename in 16714 CC* | sunCC*) 16715 # Sun C++ 4.2, 5.x and Centerline C++ 16716 archive_cmds_need_lc_CXX=yes 16717 no_undefined_flag_CXX=' -zdefs' 16718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16720 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16721 16722 hardcode_libdir_flag_spec_CXX='-R$libdir' 16723 hardcode_shlibpath_var_CXX=no 16724 case $host_os in 16725 solaris2.[0-5] | solaris2.[0-5].*) ;; 16726 *) 16727 # The compiler driver will combine and reorder linker options, 16728 # but understands `-z linker_flag'. 16729 # Supported since Solaris 2.6 (maybe 2.5.1?) 16730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16731 ;; 16732 esac 16733 link_all_deplibs_CXX=yes 16734 16735 output_verbose_link_cmd='func_echo_all' 16736 16737 # Archives containing C++ object files must be created using 16738 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16739 # necessary to make sure instantiated templates are included 16740 # in the archive. 16741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16742 ;; 16743 gcx*) 16744 # Green Hills C++ Compiler 16745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16746 16747 # The C++ compiler must be used to create the archive. 16748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16749 ;; 16750 *) 16751 # GNU C++ compiler with Solaris linker 16752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 16754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16755 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16757 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16758 16759 # Commands to make compiler produce verbose output that lists 16760 # what "hidden" libraries, object files and flags are used when 16761 # linking a shared library. 16762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16763 else 16764 # g++ 2.7 appears to require `-G' NOT `-shared' on this 16765 # platform. 16766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16769 16770 # Commands to make compiler produce verbose output that lists 16771 # what "hidden" libraries, object files and flags are used when 16772 # linking a shared library. 16773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16774 fi 16775 16776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 16777 case $host_os in 16778 solaris2.[0-5] | solaris2.[0-5].*) ;; 16779 *) 16780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16781 ;; 16782 esac 16783 fi 16784 ;; 16785 esac 16786 ;; 16787 16788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16789 no_undefined_flag_CXX='${wl}-z,text' 16790 archive_cmds_need_lc_CXX=no 16791 hardcode_shlibpath_var_CXX=no 16792 runpath_var='LD_RUN_PATH' 16793 16794 case $cc_basename in 16795 CC*) 16796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16798 ;; 16799 *) 16800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16802 ;; 16803 esac 16804 ;; 16805 16806 sysv5* | sco3.2v5* | sco5v6*) 16807 # Note: We can NOT use -z defs as we might desire, because we do not 16808 # link with -lc, and that would cause any symbols used from libc to 16809 # always be unresolved, which means just about no library would 16810 # ever link correctly. If we're not using GNU ld we use -z text 16811 # though, which does catch some bad symbols but isn't as heavy-handed 16812 # as -z defs. 16813 no_undefined_flag_CXX='${wl}-z,text' 16814 allow_undefined_flag_CXX='${wl}-z,nodefs' 16815 archive_cmds_need_lc_CXX=no 16816 hardcode_shlibpath_var_CXX=no 16817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 16818 hardcode_libdir_separator_CXX=':' 16819 link_all_deplibs_CXX=yes 16820 export_dynamic_flag_spec_CXX='${wl}-Bexport' 16821 runpath_var='LD_RUN_PATH' 16822 16823 case $cc_basename in 16824 CC*) 16825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16828 '"$old_archive_cmds_CXX" 16829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16830 '"$reload_cmds_CXX" 16831 ;; 16832 *) 16833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16835 ;; 16836 esac 16837 ;; 16838 16839 tandem*) 16840 case $cc_basename in 16841 NCC*) 16842 # NonStop-UX NCC 3.20 16843 # FIXME: insert proper C++ library support 16844 ld_shlibs_CXX=no 16845 ;; 16846 *) 16847 # FIXME: insert proper C++ library support 16848 ld_shlibs_CXX=no 16849 ;; 16850 esac 16851 ;; 16852 16853 vxworks*) 16854 # FIXME: insert proper C++ library support 16855 ld_shlibs_CXX=no 16856 ;; 16857 16858 *) 16859 # FIXME: insert proper C++ library support 16860 ld_shlibs_CXX=no 16861 ;; 16862 esac 16863 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16865$as_echo "$ld_shlibs_CXX" >&6; } 16866 test "$ld_shlibs_CXX" = no && can_build_shared=no 16867 16868 GCC_CXX="$GXX" 16869 LD_CXX="$LD" 16870 16871 ## CAVEAT EMPTOR: 16872 ## There is no encapsulation within the following macros, do not change 16873 ## the running order or otherwise move them around unless you know exactly 16874 ## what you are doing... 16875 # Dependencies to place before and after the object being linked: 16876predep_objects_CXX= 16877postdep_objects_CXX= 16878predeps_CXX= 16879postdeps_CXX= 16880compiler_lib_search_path_CXX= 16881 16882cat > conftest.$ac_ext <<_LT_EOF 16883class Foo 16884{ 16885public: 16886 Foo (void) { a = 0; } 16887private: 16888 int a; 16889}; 16890_LT_EOF 16891 16892 16893_lt_libdeps_save_CFLAGS=$CFLAGS 16894case "$CC $CFLAGS " in #( 16895*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16896*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16897esac 16898 16899if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16900 (eval $ac_compile) 2>&5 16901 ac_status=$? 16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16903 test $ac_status = 0; }; then 16904 # Parse the compiler output and extract the necessary 16905 # objects, libraries and library flags. 16906 16907 # Sentinel used to keep track of whether or not we are before 16908 # the conftest object file. 16909 pre_test_object_deps_done=no 16910 16911 for p in `eval "$output_verbose_link_cmd"`; do 16912 case ${prev}${p} in 16913 16914 -L* | -R* | -l*) 16915 # Some compilers place space between "-{L,R}" and the path. 16916 # Remove the space. 16917 if test $p = "-L" || 16918 test $p = "-R"; then 16919 prev=$p 16920 continue 16921 fi 16922 16923 # Expand the sysroot to ease extracting the directories later. 16924 if test -z "$prev"; then 16925 case $p in 16926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16929 esac 16930 fi 16931 case $p in 16932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16933 esac 16934 if test "$pre_test_object_deps_done" = no; then 16935 case ${prev} in 16936 -L | -R) 16937 # Internal compiler library paths should come after those 16938 # provided the user. The postdeps already come after the 16939 # user supplied libs so there is no need to process them. 16940 if test -z "$compiler_lib_search_path_CXX"; then 16941 compiler_lib_search_path_CXX="${prev}${p}" 16942 else 16943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 16944 fi 16945 ;; 16946 # The "-l" case would never come before the object being 16947 # linked, so don't bother handling this case. 16948 esac 16949 else 16950 if test -z "$postdeps_CXX"; then 16951 postdeps_CXX="${prev}${p}" 16952 else 16953 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 16954 fi 16955 fi 16956 prev= 16957 ;; 16958 16959 *.lto.$objext) ;; # Ignore GCC LTO objects 16960 *.$objext) 16961 # This assumes that the test object file only shows up 16962 # once in the compiler output. 16963 if test "$p" = "conftest.$objext"; then 16964 pre_test_object_deps_done=yes 16965 continue 16966 fi 16967 16968 if test "$pre_test_object_deps_done" = no; then 16969 if test -z "$predep_objects_CXX"; then 16970 predep_objects_CXX="$p" 16971 else 16972 predep_objects_CXX="$predep_objects_CXX $p" 16973 fi 16974 else 16975 if test -z "$postdep_objects_CXX"; then 16976 postdep_objects_CXX="$p" 16977 else 16978 postdep_objects_CXX="$postdep_objects_CXX $p" 16979 fi 16980 fi 16981 ;; 16982 16983 *) ;; # Ignore the rest. 16984 16985 esac 16986 done 16987 16988 # Clean up. 16989 rm -f a.out a.exe 16990else 16991 echo "libtool.m4: error: problem compiling CXX test program" 16992fi 16993 16994$RM -f confest.$objext 16995CFLAGS=$_lt_libdeps_save_CFLAGS 16996 16997# PORTME: override above test on systems where it is broken 16998case $host_os in 16999interix[3-9]*) 17000 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17001 # hack all around it, let's just trust "g++" to DTRT. 17002 predep_objects_CXX= 17003 postdep_objects_CXX= 17004 postdeps_CXX= 17005 ;; 17006 17007linux*) 17008 case `$CC -V 2>&1 | sed 5q` in 17009 *Sun\ C*) 17010 # Sun C++ 5.9 17011 17012 # The more standards-conforming stlport4 library is 17013 # incompatible with the Cstd library. Avoid specifying 17014 # it if it's in CXXFLAGS. Ignore libCrun as 17015 # -library=stlport4 depends on it. 17016 case " $CXX $CXXFLAGS " in 17017 *" -library=stlport4 "*) 17018 solaris_use_stlport4=yes 17019 ;; 17020 esac 17021 17022 if test "$solaris_use_stlport4" != yes; then 17023 postdeps_CXX='-library=Cstd -library=Crun' 17024 fi 17025 ;; 17026 esac 17027 ;; 17028 17029solaris*) 17030 case $cc_basename in 17031 CC* | sunCC*) 17032 # The more standards-conforming stlport4 library is 17033 # incompatible with the Cstd library. Avoid specifying 17034 # it if it's in CXXFLAGS. Ignore libCrun as 17035 # -library=stlport4 depends on it. 17036 case " $CXX $CXXFLAGS " in 17037 *" -library=stlport4 "*) 17038 solaris_use_stlport4=yes 17039 ;; 17040 esac 17041 17042 # Adding this requires a known-good setup of shared libraries for 17043 # Sun compiler versions before 5.6, else PIC objects from an old 17044 # archive will be linked into the output, leading to subtle bugs. 17045 if test "$solaris_use_stlport4" != yes; then 17046 postdeps_CXX='-library=Cstd -library=Crun' 17047 fi 17048 ;; 17049 esac 17050 ;; 17051esac 17052 17053 17054case " $postdeps_CXX " in 17055*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17056esac 17057 compiler_lib_search_dirs_CXX= 17058if test -n "${compiler_lib_search_path_CXX}"; then 17059 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 17060fi 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 lt_prog_compiler_wl_CXX= 17093lt_prog_compiler_pic_CXX= 17094lt_prog_compiler_static_CXX= 17095 17096 17097 # C++ specific cases for pic, static, wl, etc. 17098 if test "$GXX" = yes; then 17099 lt_prog_compiler_wl_CXX='-Wl,' 17100 lt_prog_compiler_static_CXX='-static' 17101 17102 case $host_os in 17103 aix*) 17104 # All AIX code is PIC. 17105 if test "$host_cpu" = ia64; then 17106 # AIX 5 now supports IA64 processor 17107 lt_prog_compiler_static_CXX='-Bstatic' 17108 fi 17109 ;; 17110 17111 amigaos*) 17112 case $host_cpu in 17113 powerpc) 17114 # see comment about AmigaOS4 .so support 17115 lt_prog_compiler_pic_CXX='-fPIC' 17116 ;; 17117 m68k) 17118 # FIXME: we need at least 68020 code to build shared libraries, but 17119 # adding the `-m68020' flag to GCC prevents building anything better, 17120 # like `-m68040'. 17121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17122 ;; 17123 esac 17124 ;; 17125 17126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17127 # PIC is the default for these OSes. 17128 ;; 17129 mingw* | cygwin* | os2* | pw32* | cegcc*) 17130 # This hack is so that the source file can tell whether it is being 17131 # built for inclusion in a dll (and should export symbols for example). 17132 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17133 # (--disable-auto-import) libraries 17134 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17135 ;; 17136 darwin* | rhapsody*) 17137 # PIC is the default on this platform 17138 # Common symbols not allowed in MH_DYLIB files 17139 lt_prog_compiler_pic_CXX='-fno-common' 17140 ;; 17141 *djgpp*) 17142 # DJGPP does not support shared libraries at all 17143 lt_prog_compiler_pic_CXX= 17144 ;; 17145 haiku*) 17146 # PIC is the default for Haiku. 17147 # The "-static" flag exists, but is broken. 17148 lt_prog_compiler_static_CXX= 17149 ;; 17150 interix[3-9]*) 17151 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17152 # Instead, we relocate shared libraries at runtime. 17153 ;; 17154 sysv4*MP*) 17155 if test -d /usr/nec; then 17156 lt_prog_compiler_pic_CXX=-Kconform_pic 17157 fi 17158 ;; 17159 hpux*) 17160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17162 # sets the default TLS model and affects inlining. 17163 case $host_cpu in 17164 hppa*64*) 17165 ;; 17166 *) 17167 lt_prog_compiler_pic_CXX='-fPIC' 17168 ;; 17169 esac 17170 ;; 17171 *qnx* | *nto*) 17172 # QNX uses GNU C++, but need to define -shared option too, otherwise 17173 # it will coredump. 17174 lt_prog_compiler_pic_CXX='-fPIC -shared' 17175 ;; 17176 *) 17177 lt_prog_compiler_pic_CXX='-fPIC' 17178 ;; 17179 esac 17180 else 17181 case $host_os in 17182 aix[4-9]*) 17183 # All AIX code is PIC. 17184 if test "$host_cpu" = ia64; then 17185 # AIX 5 now supports IA64 processor 17186 lt_prog_compiler_static_CXX='-Bstatic' 17187 else 17188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17189 fi 17190 ;; 17191 chorus*) 17192 case $cc_basename in 17193 cxch68*) 17194 # Green Hills C++ Compiler 17195 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 17196 ;; 17197 esac 17198 ;; 17199 mingw* | cygwin* | os2* | pw32* | cegcc*) 17200 # This hack is so that the source file can tell whether it is being 17201 # built for inclusion in a dll (and should export symbols for example). 17202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17203 ;; 17204 dgux*) 17205 case $cc_basename in 17206 ec++*) 17207 lt_prog_compiler_pic_CXX='-KPIC' 17208 ;; 17209 ghcx*) 17210 # Green Hills C++ Compiler 17211 lt_prog_compiler_pic_CXX='-pic' 17212 ;; 17213 *) 17214 ;; 17215 esac 17216 ;; 17217 freebsd* | dragonfly*) 17218 # FreeBSD uses GNU C++ 17219 ;; 17220 hpux9* | hpux10* | hpux11*) 17221 case $cc_basename in 17222 CC*) 17223 lt_prog_compiler_wl_CXX='-Wl,' 17224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 17225 if test "$host_cpu" != ia64; then 17226 lt_prog_compiler_pic_CXX='+Z' 17227 fi 17228 ;; 17229 aCC*) 17230 lt_prog_compiler_wl_CXX='-Wl,' 17231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 17232 case $host_cpu in 17233 hppa*64*|ia64*) 17234 # +Z the default 17235 ;; 17236 *) 17237 lt_prog_compiler_pic_CXX='+Z' 17238 ;; 17239 esac 17240 ;; 17241 *) 17242 ;; 17243 esac 17244 ;; 17245 interix*) 17246 # This is c89, which is MS Visual C++ (no shared libs) 17247 # Anyone wants to do a port? 17248 ;; 17249 irix5* | irix6* | nonstopux*) 17250 case $cc_basename in 17251 CC*) 17252 lt_prog_compiler_wl_CXX='-Wl,' 17253 lt_prog_compiler_static_CXX='-non_shared' 17254 # CC pic flag -KPIC is the default. 17255 ;; 17256 *) 17257 ;; 17258 esac 17259 ;; 17260 linux* | k*bsd*-gnu | kopensolaris*-gnu) 17261 case $cc_basename in 17262 KCC*) 17263 # KAI C++ Compiler 17264 lt_prog_compiler_wl_CXX='--backend -Wl,' 17265 lt_prog_compiler_pic_CXX='-fPIC' 17266 ;; 17267 ecpc* ) 17268 # old Intel C++ for x86_64 which still supported -KPIC. 17269 lt_prog_compiler_wl_CXX='-Wl,' 17270 lt_prog_compiler_pic_CXX='-KPIC' 17271 lt_prog_compiler_static_CXX='-static' 17272 ;; 17273 icpc* ) 17274 # Intel C++, used to be incompatible with GCC. 17275 # ICC 10 doesn't accept -KPIC any more. 17276 lt_prog_compiler_wl_CXX='-Wl,' 17277 lt_prog_compiler_pic_CXX='-fPIC' 17278 lt_prog_compiler_static_CXX='-static' 17279 ;; 17280 pgCC* | pgcpp*) 17281 # Portland Group C++ compiler 17282 lt_prog_compiler_wl_CXX='-Wl,' 17283 lt_prog_compiler_pic_CXX='-fpic' 17284 lt_prog_compiler_static_CXX='-Bstatic' 17285 ;; 17286 cxx*) 17287 # Compaq C++ 17288 # Make sure the PIC flag is empty. It appears that all Alpha 17289 # Linux and Compaq Tru64 Unix objects are PIC. 17290 lt_prog_compiler_pic_CXX= 17291 lt_prog_compiler_static_CXX='-non_shared' 17292 ;; 17293 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17294 # IBM XL 8.0, 9.0 on PPC and BlueGene 17295 lt_prog_compiler_wl_CXX='-Wl,' 17296 lt_prog_compiler_pic_CXX='-qpic' 17297 lt_prog_compiler_static_CXX='-qstaticlink' 17298 ;; 17299 *) 17300 case `$CC -V 2>&1 | sed 5q` in 17301 *Sun\ C*) 17302 # Sun C++ 5.9 17303 lt_prog_compiler_pic_CXX='-KPIC' 17304 lt_prog_compiler_static_CXX='-Bstatic' 17305 lt_prog_compiler_wl_CXX='-Qoption ld ' 17306 ;; 17307 esac 17308 ;; 17309 esac 17310 ;; 17311 lynxos*) 17312 ;; 17313 m88k*) 17314 ;; 17315 mvs*) 17316 case $cc_basename in 17317 cxx*) 17318 lt_prog_compiler_pic_CXX='-W c,exportall' 17319 ;; 17320 *) 17321 ;; 17322 esac 17323 ;; 17324 netbsd*) 17325 ;; 17326 *qnx* | *nto*) 17327 # QNX uses GNU C++, but need to define -shared option too, otherwise 17328 # it will coredump. 17329 lt_prog_compiler_pic_CXX='-fPIC -shared' 17330 ;; 17331 osf3* | osf4* | osf5*) 17332 case $cc_basename in 17333 KCC*) 17334 lt_prog_compiler_wl_CXX='--backend -Wl,' 17335 ;; 17336 RCC*) 17337 # Rational C++ 2.4.1 17338 lt_prog_compiler_pic_CXX='-pic' 17339 ;; 17340 cxx*) 17341 # Digital/Compaq C++ 17342 lt_prog_compiler_wl_CXX='-Wl,' 17343 # Make sure the PIC flag is empty. It appears that all Alpha 17344 # Linux and Compaq Tru64 Unix objects are PIC. 17345 lt_prog_compiler_pic_CXX= 17346 lt_prog_compiler_static_CXX='-non_shared' 17347 ;; 17348 *) 17349 ;; 17350 esac 17351 ;; 17352 psos*) 17353 ;; 17354 solaris*) 17355 case $cc_basename in 17356 CC* | sunCC*) 17357 # Sun C++ 4.2, 5.x and Centerline C++ 17358 lt_prog_compiler_pic_CXX='-KPIC' 17359 lt_prog_compiler_static_CXX='-Bstatic' 17360 lt_prog_compiler_wl_CXX='-Qoption ld ' 17361 ;; 17362 gcx*) 17363 # Green Hills C++ Compiler 17364 lt_prog_compiler_pic_CXX='-PIC' 17365 ;; 17366 *) 17367 ;; 17368 esac 17369 ;; 17370 sunos4*) 17371 case $cc_basename in 17372 CC*) 17373 # Sun C++ 4.x 17374 lt_prog_compiler_pic_CXX='-pic' 17375 lt_prog_compiler_static_CXX='-Bstatic' 17376 ;; 17377 lcc*) 17378 # Lucid 17379 lt_prog_compiler_pic_CXX='-pic' 17380 ;; 17381 *) 17382 ;; 17383 esac 17384 ;; 17385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17386 case $cc_basename in 17387 CC*) 17388 lt_prog_compiler_wl_CXX='-Wl,' 17389 lt_prog_compiler_pic_CXX='-KPIC' 17390 lt_prog_compiler_static_CXX='-Bstatic' 17391 ;; 17392 esac 17393 ;; 17394 tandem*) 17395 case $cc_basename in 17396 NCC*) 17397 # NonStop-UX NCC 3.20 17398 lt_prog_compiler_pic_CXX='-KPIC' 17399 ;; 17400 *) 17401 ;; 17402 esac 17403 ;; 17404 vxworks*) 17405 ;; 17406 *) 17407 lt_prog_compiler_can_build_shared_CXX=no 17408 ;; 17409 esac 17410 fi 17411 17412case $host_os in 17413 # For platforms which do not support PIC, -DPIC is meaningless: 17414 *djgpp*) 17415 lt_prog_compiler_pic_CXX= 17416 ;; 17417 *) 17418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17419 ;; 17420esac 17421 17422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17423$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17424if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17425 $as_echo_n "(cached) " >&6 17426else 17427 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17428fi 17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17430$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17431lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17432 17433# 17434# Check to make sure the PIC flag actually works. 17435# 17436if test -n "$lt_prog_compiler_pic_CXX"; then 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17438$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17439if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17440 $as_echo_n "(cached) " >&6 17441else 17442 lt_cv_prog_compiler_pic_works_CXX=no 17443 ac_outfile=conftest.$ac_objext 17444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 17446 # Insert the option either (1) after the last *FLAGS variable, or 17447 # (2) before a word containing "conftest.", or (3) at the end. 17448 # Note that $ac_compile itself does not contain backslashes and begins 17449 # with a dollar sign (not a hyphen), so the echo should work correctly. 17450 # The option is referenced via a variable to avoid confusing sed. 17451 lt_compile=`echo "$ac_compile" | $SED \ 17452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17454 -e 's:$: $lt_compiler_flag:'` 17455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17456 (eval "$lt_compile" 2>conftest.err) 17457 ac_status=$? 17458 cat conftest.err >&5 17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17460 if (exit $ac_status) && test -s "$ac_outfile"; then 17461 # The compiler can only warn and ignore the option if not recognized 17462 # So say no if there are warnings other than the usual output. 17463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17466 lt_cv_prog_compiler_pic_works_CXX=yes 17467 fi 17468 fi 17469 $RM conftest* 17470 17471fi 17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17473$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17474 17475if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 17476 case $lt_prog_compiler_pic_CXX in 17477 "" | " "*) ;; 17478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17479 esac 17480else 17481 lt_prog_compiler_pic_CXX= 17482 lt_prog_compiler_can_build_shared_CXX=no 17483fi 17484 17485fi 17486 17487 17488 17489 17490 17491# 17492# Check to make sure the static flag actually works. 17493# 17494wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17496$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17497if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17498 $as_echo_n "(cached) " >&6 17499else 17500 lt_cv_prog_compiler_static_works_CXX=no 17501 save_LDFLAGS="$LDFLAGS" 17502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17503 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17505 # The linker can only warn and ignore the option if not recognized 17506 # So say no if there are warnings 17507 if test -s conftest.err; then 17508 # Append any errors to the config.log. 17509 cat conftest.err 1>&5 17510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17512 if diff conftest.exp conftest.er2 >/dev/null; then 17513 lt_cv_prog_compiler_static_works_CXX=yes 17514 fi 17515 else 17516 lt_cv_prog_compiler_static_works_CXX=yes 17517 fi 17518 fi 17519 $RM -r conftest* 17520 LDFLAGS="$save_LDFLAGS" 17521 17522fi 17523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17524$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17525 17526if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 17527 : 17528else 17529 lt_prog_compiler_static_CXX= 17530fi 17531 17532 17533 17534 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17536$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17537if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17538 $as_echo_n "(cached) " >&6 17539else 17540 lt_cv_prog_compiler_c_o_CXX=no 17541 $RM -r conftest 2>/dev/null 17542 mkdir conftest 17543 cd conftest 17544 mkdir out 17545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17546 17547 lt_compiler_flag="-o out/conftest2.$ac_objext" 17548 # Insert the option either (1) after the last *FLAGS variable, or 17549 # (2) before a word containing "conftest.", or (3) at the end. 17550 # Note that $ac_compile itself does not contain backslashes and begins 17551 # with a dollar sign (not a hyphen), so the echo should work correctly. 17552 lt_compile=`echo "$ac_compile" | $SED \ 17553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17555 -e 's:$: $lt_compiler_flag:'` 17556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17557 (eval "$lt_compile" 2>out/conftest.err) 17558 ac_status=$? 17559 cat out/conftest.err >&5 17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17561 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17562 then 17563 # The compiler can only warn and ignore the option if not recognized 17564 # So say no if there are warnings 17565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17568 lt_cv_prog_compiler_c_o_CXX=yes 17569 fi 17570 fi 17571 chmod u+w . 2>&5 17572 $RM conftest* 17573 # SGI C++ compiler will create directory out/ii_files/ for 17574 # template instantiation 17575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17576 $RM out/* && rmdir out 17577 cd .. 17578 $RM -r conftest 17579 $RM conftest* 17580 17581fi 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17583$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17584 17585 17586 17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17589if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17590 $as_echo_n "(cached) " >&6 17591else 17592 lt_cv_prog_compiler_c_o_CXX=no 17593 $RM -r conftest 2>/dev/null 17594 mkdir conftest 17595 cd conftest 17596 mkdir out 17597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17598 17599 lt_compiler_flag="-o out/conftest2.$ac_objext" 17600 # Insert the option either (1) after the last *FLAGS variable, or 17601 # (2) before a word containing "conftest.", or (3) at the end. 17602 # Note that $ac_compile itself does not contain backslashes and begins 17603 # with a dollar sign (not a hyphen), so the echo should work correctly. 17604 lt_compile=`echo "$ac_compile" | $SED \ 17605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17607 -e 's:$: $lt_compiler_flag:'` 17608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17609 (eval "$lt_compile" 2>out/conftest.err) 17610 ac_status=$? 17611 cat out/conftest.err >&5 17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17613 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17614 then 17615 # The compiler can only warn and ignore the option if not recognized 17616 # So say no if there are warnings 17617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17620 lt_cv_prog_compiler_c_o_CXX=yes 17621 fi 17622 fi 17623 chmod u+w . 2>&5 17624 $RM conftest* 17625 # SGI C++ compiler will create directory out/ii_files/ for 17626 # template instantiation 17627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17628 $RM out/* && rmdir out 17629 cd .. 17630 $RM -r conftest 17631 $RM conftest* 17632 17633fi 17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17635$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17636 17637 17638 17639 17640hard_links="nottested" 17641if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 17642 # do not overwrite the value of need_locks provided by the user 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17644$as_echo_n "checking if we can lock with hard links... " >&6; } 17645 hard_links=yes 17646 $RM conftest* 17647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17648 touch conftest.a 17649 ln conftest.a conftest.b 2>&5 || hard_links=no 17650 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17652$as_echo "$hard_links" >&6; } 17653 if test "$hard_links" = no; then 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17655$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17656 need_locks=warn 17657 fi 17658else 17659 need_locks=no 17660fi 17661 17662 17663 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17665$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17666 17667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17669 case $host_os in 17670 aix[4-9]*) 17671 # If we're using GNU nm, then we don't want the "-C" option. 17672 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17673 # Also, AIX nm treats weak defined symbols like other global defined 17674 # symbols, whereas GNU nm marks them as "W". 17675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17676 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17677 else 17678 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17679 fi 17680 ;; 17681 pw32*) 17682 export_symbols_cmds_CXX="$ltdll_cmds" 17683 ;; 17684 cygwin* | mingw* | cegcc*) 17685 case $cc_basename in 17686 cl*) ;; 17687 *) 17688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17689 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17690 ;; 17691 esac 17692 ;; 17693 *) 17694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17695 ;; 17696 esac 17697 17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17699$as_echo "$ld_shlibs_CXX" >&6; } 17700test "$ld_shlibs_CXX" = no && can_build_shared=no 17701 17702with_gnu_ld_CXX=$with_gnu_ld 17703 17704 17705 17706 17707 17708 17709# 17710# Do we need to explicitly link libc? 17711# 17712case "x$archive_cmds_need_lc_CXX" in 17713x|xyes) 17714 # Assume -lc should be added 17715 archive_cmds_need_lc_CXX=yes 17716 17717 if test "$enable_shared" = yes && test "$GCC" = yes; then 17718 case $archive_cmds_CXX in 17719 *'~'*) 17720 # FIXME: we may have to deal with multi-command sequences. 17721 ;; 17722 '$CC '*) 17723 # Test whether the compiler implicitly links with -lc since on some 17724 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17725 # to ld, don't add -lc before -lgcc. 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17727$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17728if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17729 $as_echo_n "(cached) " >&6 17730else 17731 $RM conftest* 17732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17733 17734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17735 (eval $ac_compile) 2>&5 17736 ac_status=$? 17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17738 test $ac_status = 0; } 2>conftest.err; then 17739 soname=conftest 17740 lib=conftest 17741 libobjs=conftest.$ac_objext 17742 deplibs= 17743 wl=$lt_prog_compiler_wl_CXX 17744 pic_flag=$lt_prog_compiler_pic_CXX 17745 compiler_flags=-v 17746 linker_flags=-v 17747 verstring= 17748 output_objdir=. 17749 libname=conftest 17750 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17751 allow_undefined_flag_CXX= 17752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17753 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17754 ac_status=$? 17755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17756 test $ac_status = 0; } 17757 then 17758 lt_cv_archive_cmds_need_lc_CXX=no 17759 else 17760 lt_cv_archive_cmds_need_lc_CXX=yes 17761 fi 17762 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17763 else 17764 cat conftest.err 1>&5 17765 fi 17766 $RM conftest* 17767 17768fi 17769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17770$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17771 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17772 ;; 17773 esac 17774 fi 17775 ;; 17776esac 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17842$as_echo_n "checking dynamic linker characteristics... " >&6; } 17843 17844library_names_spec= 17845libname_spec='lib$name' 17846soname_spec= 17847shrext_cmds=".so" 17848postinstall_cmds= 17849postuninstall_cmds= 17850finish_cmds= 17851finish_eval= 17852shlibpath_var= 17853shlibpath_overrides_runpath=unknown 17854version_type=none 17855dynamic_linker="$host_os ld.so" 17856sys_lib_dlsearch_path_spec="/lib /usr/lib" 17857need_lib_prefix=unknown 17858hardcode_into_libs=no 17859 17860# when you set need_version to no, make sure it does not cause -set_version 17861# flags to be left without arguments 17862need_version=unknown 17863 17864case $host_os in 17865aix3*) 17866 version_type=linux 17867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17868 shlibpath_var=LIBPATH 17869 17870 # AIX 3 has no versioning support, so we append a major version to the name. 17871 soname_spec='${libname}${release}${shared_ext}$major' 17872 ;; 17873 17874aix[4-9]*) 17875 version_type=linux 17876 need_lib_prefix=no 17877 need_version=no 17878 hardcode_into_libs=yes 17879 if test "$host_cpu" = ia64; then 17880 # AIX 5 supports IA64 17881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17882 shlibpath_var=LD_LIBRARY_PATH 17883 else 17884 # With GCC up to 2.95.x, collect2 would create an import file 17885 # for dependence libraries. The import file would start with 17886 # the line `#! .'. This would cause the generated library to 17887 # depend on `.', always an invalid library. This was fixed in 17888 # development snapshots of GCC prior to 3.0. 17889 case $host_os in 17890 aix4 | aix4.[01] | aix4.[01].*) 17891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17892 echo ' yes ' 17893 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17894 : 17895 else 17896 can_build_shared=no 17897 fi 17898 ;; 17899 esac 17900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17901 # soname into executable. Probably we can add versioning support to 17902 # collect2, so additional links can be useful in future. 17903 if test "$aix_use_runtimelinking" = yes; then 17904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17905 # instead of lib<name>.a to let people know that these are not 17906 # typical AIX shared libraries. 17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17908 else 17909 # We preserve .a as extension for shared libraries through AIX4.2 17910 # and later when we are not doing run time linking. 17911 library_names_spec='${libname}${release}.a $libname.a' 17912 soname_spec='${libname}${release}${shared_ext}$major' 17913 fi 17914 shlibpath_var=LIBPATH 17915 fi 17916 ;; 17917 17918amigaos*) 17919 case $host_cpu in 17920 powerpc) 17921 # Since July 2007 AmigaOS4 officially supports .so libraries. 17922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17924 ;; 17925 m68k) 17926 library_names_spec='$libname.ixlibrary $libname.a' 17927 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17928 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17929 ;; 17930 esac 17931 ;; 17932 17933beos*) 17934 library_names_spec='${libname}${shared_ext}' 17935 dynamic_linker="$host_os ld.so" 17936 shlibpath_var=LIBRARY_PATH 17937 ;; 17938 17939bsdi[45]*) 17940 version_type=linux 17941 need_version=no 17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17943 soname_spec='${libname}${release}${shared_ext}$major' 17944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17945 shlibpath_var=LD_LIBRARY_PATH 17946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17948 # the default ld.so.conf also contains /usr/contrib/lib and 17949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17950 # libtool to hard-code these into programs 17951 ;; 17952 17953cygwin* | mingw* | pw32* | cegcc*) 17954 version_type=windows 17955 shrext_cmds=".dll" 17956 need_version=no 17957 need_lib_prefix=no 17958 17959 case $GCC,$cc_basename in 17960 yes,*) 17961 # gcc 17962 library_names_spec='$libname.dll.a' 17963 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17964 postinstall_cmds='base_file=`basename \${file}`~ 17965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17966 dldir=$destdir/`dirname \$dlpath`~ 17967 test -d \$dldir || mkdir -p \$dldir~ 17968 $install_prog $dir/$dlname \$dldir/$dlname~ 17969 chmod a+x \$dldir/$dlname~ 17970 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17971 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17972 fi' 17973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17974 dlpath=$dir/\$dldll~ 17975 $RM \$dlpath' 17976 shlibpath_overrides_runpath=yes 17977 17978 case $host_os in 17979 cygwin*) 17980 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17982 17983 ;; 17984 mingw* | cegcc*) 17985 # MinGW DLLs use traditional 'lib' prefix 17986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17987 ;; 17988 pw32*) 17989 # pw32 DLLs use 'pw' prefix rather than 'lib' 17990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17991 ;; 17992 esac 17993 dynamic_linker='Win32 ld.exe' 17994 ;; 17995 17996 *,cl*) 17997 # Native MSVC 17998 libname_spec='$name' 17999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18000 library_names_spec='${libname}.dll.lib' 18001 18002 case $build_os in 18003 mingw*) 18004 sys_lib_search_path_spec= 18005 lt_save_ifs=$IFS 18006 IFS=';' 18007 for lt_path in $LIB 18008 do 18009 IFS=$lt_save_ifs 18010 # Let DOS variable expansion print the short 8.3 style file name. 18011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18013 done 18014 IFS=$lt_save_ifs 18015 # Convert to MSYS style. 18016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18017 ;; 18018 cygwin*) 18019 # Convert to unix form, then to dos form, then back to unix form 18020 # but this time dos style (no spaces!) so that the unix form looks 18021 # like /cygdrive/c/PROGRA~1:/cygdr... 18022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18025 ;; 18026 *) 18027 sys_lib_search_path_spec="$LIB" 18028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18029 # It is most probably a Windows format PATH. 18030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18031 else 18032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18033 fi 18034 # FIXME: find the short name or the path components, as spaces are 18035 # common. (e.g. "Program Files" -> "PROGRA~1") 18036 ;; 18037 esac 18038 18039 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18040 postinstall_cmds='base_file=`basename \${file}`~ 18041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18042 dldir=$destdir/`dirname \$dlpath`~ 18043 test -d \$dldir || mkdir -p \$dldir~ 18044 $install_prog $dir/$dlname \$dldir/$dlname' 18045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18046 dlpath=$dir/\$dldll~ 18047 $RM \$dlpath' 18048 shlibpath_overrides_runpath=yes 18049 dynamic_linker='Win32 link.exe' 18050 ;; 18051 18052 *) 18053 # Assume MSVC wrapper 18054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18055 dynamic_linker='Win32 ld.exe' 18056 ;; 18057 esac 18058 # FIXME: first we should search . and the directory the executable is in 18059 shlibpath_var=PATH 18060 ;; 18061 18062darwin* | rhapsody*) 18063 dynamic_linker="$host_os dyld" 18064 version_type=darwin 18065 need_lib_prefix=no 18066 need_version=no 18067 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18068 soname_spec='${libname}${release}${major}$shared_ext' 18069 shlibpath_overrides_runpath=yes 18070 shlibpath_var=DYLD_LIBRARY_PATH 18071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18072 18073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18074 ;; 18075 18076dgux*) 18077 version_type=linux 18078 need_lib_prefix=no 18079 need_version=no 18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18081 soname_spec='${libname}${release}${shared_ext}$major' 18082 shlibpath_var=LD_LIBRARY_PATH 18083 ;; 18084 18085freebsd1*) 18086 dynamic_linker=no 18087 ;; 18088 18089freebsd* | dragonfly*) 18090 # DragonFly does not have aout. When/if they implement a new 18091 # versioning mechanism, adjust this. 18092 if test -x /usr/bin/objformat; then 18093 objformat=`/usr/bin/objformat` 18094 else 18095 case $host_os in 18096 freebsd[123]*) objformat=aout ;; 18097 *) objformat=elf ;; 18098 esac 18099 fi 18100 version_type=freebsd-$objformat 18101 case $version_type in 18102 freebsd-elf*) 18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18104 need_version=no 18105 need_lib_prefix=no 18106 ;; 18107 freebsd-*) 18108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18109 need_version=yes 18110 ;; 18111 esac 18112 shlibpath_var=LD_LIBRARY_PATH 18113 case $host_os in 18114 freebsd2*) 18115 shlibpath_overrides_runpath=yes 18116 ;; 18117 freebsd3.[01]* | freebsdelf3.[01]*) 18118 shlibpath_overrides_runpath=yes 18119 hardcode_into_libs=yes 18120 ;; 18121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18123 shlibpath_overrides_runpath=no 18124 hardcode_into_libs=yes 18125 ;; 18126 *) # from 4.6 on, and DragonFly 18127 shlibpath_overrides_runpath=yes 18128 hardcode_into_libs=yes 18129 ;; 18130 esac 18131 ;; 18132 18133gnu*) 18134 version_type=linux 18135 need_lib_prefix=no 18136 need_version=no 18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18138 soname_spec='${libname}${release}${shared_ext}$major' 18139 shlibpath_var=LD_LIBRARY_PATH 18140 hardcode_into_libs=yes 18141 ;; 18142 18143haiku*) 18144 version_type=linux 18145 need_lib_prefix=no 18146 need_version=no 18147 dynamic_linker="$host_os runtime_loader" 18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18149 soname_spec='${libname}${release}${shared_ext}$major' 18150 shlibpath_var=LIBRARY_PATH 18151 shlibpath_overrides_runpath=yes 18152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18153 hardcode_into_libs=yes 18154 ;; 18155 18156hpux9* | hpux10* | hpux11*) 18157 # Give a soname corresponding to the major version so that dld.sl refuses to 18158 # link against other versions. 18159 version_type=sunos 18160 need_lib_prefix=no 18161 need_version=no 18162 case $host_cpu in 18163 ia64*) 18164 shrext_cmds='.so' 18165 hardcode_into_libs=yes 18166 dynamic_linker="$host_os dld.so" 18167 shlibpath_var=LD_LIBRARY_PATH 18168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18170 soname_spec='${libname}${release}${shared_ext}$major' 18171 if test "X$HPUX_IA64_MODE" = X32; then 18172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18173 else 18174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18175 fi 18176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18177 ;; 18178 hppa*64*) 18179 shrext_cmds='.sl' 18180 hardcode_into_libs=yes 18181 dynamic_linker="$host_os dld.sl" 18182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18185 soname_spec='${libname}${release}${shared_ext}$major' 18186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18188 ;; 18189 *) 18190 shrext_cmds='.sl' 18191 dynamic_linker="$host_os dld.sl" 18192 shlibpath_var=SHLIB_PATH 18193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18195 soname_spec='${libname}${release}${shared_ext}$major' 18196 ;; 18197 esac 18198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18199 postinstall_cmds='chmod 555 $lib' 18200 # or fails outright, so override atomically: 18201 install_override_mode=555 18202 ;; 18203 18204interix[3-9]*) 18205 version_type=linux 18206 need_lib_prefix=no 18207 need_version=no 18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18209 soname_spec='${libname}${release}${shared_ext}$major' 18210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18211 shlibpath_var=LD_LIBRARY_PATH 18212 shlibpath_overrides_runpath=no 18213 hardcode_into_libs=yes 18214 ;; 18215 18216irix5* | irix6* | nonstopux*) 18217 case $host_os in 18218 nonstopux*) version_type=nonstopux ;; 18219 *) 18220 if test "$lt_cv_prog_gnu_ld" = yes; then 18221 version_type=linux 18222 else 18223 version_type=irix 18224 fi ;; 18225 esac 18226 need_lib_prefix=no 18227 need_version=no 18228 soname_spec='${libname}${release}${shared_ext}$major' 18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18230 case $host_os in 18231 irix5* | nonstopux*) 18232 libsuff= shlibsuff= 18233 ;; 18234 *) 18235 case $LD in # libtool.m4 will add one of these switches to LD 18236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18237 libsuff= shlibsuff= libmagic=32-bit;; 18238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18239 libsuff=32 shlibsuff=N32 libmagic=N32;; 18240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18241 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18242 *) libsuff= shlibsuff= libmagic=never-match;; 18243 esac 18244 ;; 18245 esac 18246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18247 shlibpath_overrides_runpath=no 18248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18250 hardcode_into_libs=yes 18251 ;; 18252 18253# No shared lib support for Linux oldld, aout, or coff. 18254linux*oldld* | linux*aout* | linux*coff*) 18255 dynamic_linker=no 18256 ;; 18257 18258# This must be Linux ELF. 18259linux* | k*bsd*-gnu | kopensolaris*-gnu) 18260 version_type=linux 18261 need_lib_prefix=no 18262 need_version=no 18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18264 soname_spec='${libname}${release}${shared_ext}$major' 18265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18266 shlibpath_var=LD_LIBRARY_PATH 18267 shlibpath_overrides_runpath=no 18268 18269 # Some binutils ld are patched to set DT_RUNPATH 18270 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18271 $as_echo_n "(cached) " >&6 18272else 18273 lt_cv_shlibpath_overrides_runpath=no 18274 save_LDFLAGS=$LDFLAGS 18275 save_libdir=$libdir 18276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280 18281int 18282main () 18283{ 18284 18285 ; 18286 return 0; 18287} 18288_ACEOF 18289if ac_fn_cxx_try_link "$LINENO"; then : 18290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18291 lt_cv_shlibpath_overrides_runpath=yes 18292fi 18293fi 18294rm -f core conftest.err conftest.$ac_objext \ 18295 conftest$ac_exeext conftest.$ac_ext 18296 LDFLAGS=$save_LDFLAGS 18297 libdir=$save_libdir 18298 18299fi 18300 18301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18302 18303 # This implies no fast_install, which is unacceptable. 18304 # Some rework will be needed to allow for fast_install 18305 # before this can be enabled. 18306 hardcode_into_libs=yes 18307 18308 # Append ld.so.conf contents to the search path 18309 if test -f /etc/ld.so.conf; then 18310 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' ' '` 18311 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18312 fi 18313 18314 # We used to test for /lib/ld.so.1 and disable shared libraries on 18315 # powerpc, because MkLinux only supported shared libraries with the 18316 # GNU dynamic linker. Since this was broken with cross compilers, 18317 # most powerpc-linux boxes support dynamic linking these days and 18318 # people can always --disable-shared, the test was removed, and we 18319 # assume the GNU/Linux dynamic linker is in use. 18320 dynamic_linker='GNU/Linux ld.so' 18321 ;; 18322 18323netbsd*) 18324 version_type=sunos 18325 need_lib_prefix=no 18326 need_version=no 18327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18330 dynamic_linker='NetBSD (a.out) ld.so' 18331 else 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18333 soname_spec='${libname}${release}${shared_ext}$major' 18334 dynamic_linker='NetBSD ld.elf_so' 18335 fi 18336 shlibpath_var=LD_LIBRARY_PATH 18337 shlibpath_overrides_runpath=yes 18338 hardcode_into_libs=yes 18339 ;; 18340 18341newsos6) 18342 version_type=linux 18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18344 shlibpath_var=LD_LIBRARY_PATH 18345 shlibpath_overrides_runpath=yes 18346 ;; 18347 18348*nto* | *qnx*) 18349 version_type=qnx 18350 need_lib_prefix=no 18351 need_version=no 18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18353 soname_spec='${libname}${release}${shared_ext}$major' 18354 shlibpath_var=LD_LIBRARY_PATH 18355 shlibpath_overrides_runpath=no 18356 hardcode_into_libs=yes 18357 dynamic_linker='ldqnx.so' 18358 ;; 18359 18360openbsd*) 18361 version_type=sunos 18362 sys_lib_dlsearch_path_spec="/usr/lib" 18363 need_lib_prefix=no 18364 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18365 case $host_os in 18366 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18367 *) need_version=no ;; 18368 esac 18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18371 shlibpath_var=LD_LIBRARY_PATH 18372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18373 case $host_os in 18374 openbsd2.[89] | openbsd2.[89].*) 18375 shlibpath_overrides_runpath=no 18376 ;; 18377 *) 18378 shlibpath_overrides_runpath=yes 18379 ;; 18380 esac 18381 else 18382 shlibpath_overrides_runpath=yes 18383 fi 18384 ;; 18385 18386os2*) 18387 libname_spec='$name' 18388 shrext_cmds=".dll" 18389 need_lib_prefix=no 18390 library_names_spec='$libname${shared_ext} $libname.a' 18391 dynamic_linker='OS/2 ld.exe' 18392 shlibpath_var=LIBPATH 18393 ;; 18394 18395osf3* | osf4* | osf5*) 18396 version_type=osf 18397 need_lib_prefix=no 18398 need_version=no 18399 soname_spec='${libname}${release}${shared_ext}$major' 18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18401 shlibpath_var=LD_LIBRARY_PATH 18402 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18403 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18404 ;; 18405 18406rdos*) 18407 dynamic_linker=no 18408 ;; 18409 18410solaris*) 18411 version_type=linux 18412 need_lib_prefix=no 18413 need_version=no 18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18415 soname_spec='${libname}${release}${shared_ext}$major' 18416 shlibpath_var=LD_LIBRARY_PATH 18417 shlibpath_overrides_runpath=yes 18418 hardcode_into_libs=yes 18419 # ldd complains unless libraries are executable 18420 postinstall_cmds='chmod +x $lib' 18421 ;; 18422 18423sunos4*) 18424 version_type=sunos 18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18426 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18427 shlibpath_var=LD_LIBRARY_PATH 18428 shlibpath_overrides_runpath=yes 18429 if test "$with_gnu_ld" = yes; then 18430 need_lib_prefix=no 18431 fi 18432 need_version=yes 18433 ;; 18434 18435sysv4 | sysv4.3*) 18436 version_type=linux 18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18438 soname_spec='${libname}${release}${shared_ext}$major' 18439 shlibpath_var=LD_LIBRARY_PATH 18440 case $host_vendor in 18441 sni) 18442 shlibpath_overrides_runpath=no 18443 need_lib_prefix=no 18444 runpath_var=LD_RUN_PATH 18445 ;; 18446 siemens) 18447 need_lib_prefix=no 18448 ;; 18449 motorola) 18450 need_lib_prefix=no 18451 need_version=no 18452 shlibpath_overrides_runpath=no 18453 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18454 ;; 18455 esac 18456 ;; 18457 18458sysv4*MP*) 18459 if test -d /usr/nec ;then 18460 version_type=linux 18461 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18462 soname_spec='$libname${shared_ext}.$major' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 fi 18465 ;; 18466 18467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18468 version_type=freebsd-elf 18469 need_lib_prefix=no 18470 need_version=no 18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18472 soname_spec='${libname}${release}${shared_ext}$major' 18473 shlibpath_var=LD_LIBRARY_PATH 18474 shlibpath_overrides_runpath=yes 18475 hardcode_into_libs=yes 18476 if test "$with_gnu_ld" = yes; then 18477 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18478 else 18479 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18480 case $host_os in 18481 sco3.2v5*) 18482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18483 ;; 18484 esac 18485 fi 18486 sys_lib_dlsearch_path_spec='/usr/lib' 18487 ;; 18488 18489tpf*) 18490 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18491 version_type=linux 18492 need_lib_prefix=no 18493 need_version=no 18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18495 shlibpath_var=LD_LIBRARY_PATH 18496 shlibpath_overrides_runpath=no 18497 hardcode_into_libs=yes 18498 ;; 18499 18500uts4*) 18501 version_type=linux 18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18503 soname_spec='${libname}${release}${shared_ext}$major' 18504 shlibpath_var=LD_LIBRARY_PATH 18505 ;; 18506 18507*) 18508 dynamic_linker=no 18509 ;; 18510esac 18511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18512$as_echo "$dynamic_linker" >&6; } 18513test "$dynamic_linker" = no && can_build_shared=no 18514 18515variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18516if test "$GCC" = yes; then 18517 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18518fi 18519 18520if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18521 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18522fi 18523if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18524 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18525fi 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18565$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18566hardcode_action_CXX= 18567if test -n "$hardcode_libdir_flag_spec_CXX" || 18568 test -n "$runpath_var_CXX" || 18569 test "X$hardcode_automatic_CXX" = "Xyes" ; then 18570 18571 # We can hardcode non-existent directories. 18572 if test "$hardcode_direct_CXX" != no && 18573 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18574 # have to relink, otherwise we might link with an installed library 18575 # when we should be linking with a yet-to-be-installed one 18576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 18577 test "$hardcode_minus_L_CXX" != no; then 18578 # Linking always hardcodes the temporary library directory. 18579 hardcode_action_CXX=relink 18580 else 18581 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18582 hardcode_action_CXX=immediate 18583 fi 18584else 18585 # We cannot hardcode anything, or else we can only hardcode existing 18586 # directories. 18587 hardcode_action_CXX=unsupported 18588fi 18589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18590$as_echo "$hardcode_action_CXX" >&6; } 18591 18592if test "$hardcode_action_CXX" = relink || 18593 test "$inherit_rpath_CXX" = yes; then 18594 # Fast installation is not supported 18595 enable_fast_install=no 18596elif test "$shlibpath_overrides_runpath" = yes || 18597 test "$enable_shared" = no; then 18598 # Fast installation is not necessary 18599 enable_fast_install=needless 18600fi 18601 18602 18603 18604 18605 18606 18607 18608 fi # test -n "$compiler" 18609 18610 CC=$lt_save_CC 18611 CFLAGS=$lt_save_CFLAGS 18612 LDCXX=$LD 18613 LD=$lt_save_LD 18614 GCC=$lt_save_GCC 18615 with_gnu_ld=$lt_save_with_gnu_ld 18616 lt_cv_path_LDCXX=$lt_cv_path_LD 18617 lt_cv_path_LD=$lt_save_path_LD 18618 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18619 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18620fi # test "$_lt_caught_CXX_error" != yes 18621 18622ac_ext=c 18623ac_cpp='$CPP $CPPFLAGS' 18624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18626ac_compiler_gnu=$ac_cv_c_compiler_gnu 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 ac_config_commands="$ac_config_commands libtool" 18641 18642 18643 18644 18645# Only expand once: 18646 18647 18648 18649 18650# NTP has (so far) been relying on leading-edge autogen, which 18651# means we need the appropriate corresponding libopts as well. 18652# Therefore, by default: 18653# - use the version of libopts we ship with 18654# - do not install it 18655# - build a static copy (AC_DISABLE_SHARED - done earlier) 18656case "${enable_local_libopts+set}" in 18657 set) ;; 18658 *) enable_local_libopts=yes ;; 18659esac 18660case "${enable_libopts_install+set}" in 18661 set) ;; 18662 *) enable_libopts_install=no ;; 18663esac 18664enable_nls=no 18665ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 18666if test "x$ac_cv_type_pid_t" = xyes; then : 18667 18668else 18669 18670cat >>confdefs.h <<_ACEOF 18671#define pid_t int 18672_ACEOF 18673 18674fi 18675 18676 18677 18678 ac_header_dirent=no 18679for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18680 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18682$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18683if eval \${$as_ac_Header+:} false; then : 18684 $as_echo_n "(cached) " >&6 18685else 18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18687/* end confdefs.h. */ 18688#include <sys/types.h> 18689#include <$ac_hdr> 18690 18691int 18692main () 18693{ 18694if ((DIR *) 0) 18695return 0; 18696 ; 18697 return 0; 18698} 18699_ACEOF 18700if ac_fn_c_try_compile "$LINENO"; then : 18701 eval "$as_ac_Header=yes" 18702else 18703 eval "$as_ac_Header=no" 18704fi 18705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18706fi 18707eval ac_res=\$$as_ac_Header 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18709$as_echo "$ac_res" >&6; } 18710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18711 cat >>confdefs.h <<_ACEOF 18712#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18713_ACEOF 18714 18715ac_header_dirent=$ac_hdr; break 18716fi 18717 18718done 18719# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18720if test $ac_header_dirent = dirent.h; then 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18722$as_echo_n "checking for library containing opendir... " >&6; } 18723if ${ac_cv_search_opendir+:} false; then : 18724 $as_echo_n "(cached) " >&6 18725else 18726 ac_func_search_save_LIBS=$LIBS 18727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18728/* end confdefs.h. */ 18729 18730/* Override any GCC internal prototype to avoid an error. 18731 Use char because int might match the return type of a GCC 18732 builtin and then its argument prototype would still apply. */ 18733#ifdef __cplusplus 18734extern "C" 18735#endif 18736char opendir (); 18737int 18738main () 18739{ 18740return opendir (); 18741 ; 18742 return 0; 18743} 18744_ACEOF 18745for ac_lib in '' dir; do 18746 if test -z "$ac_lib"; then 18747 ac_res="none required" 18748 else 18749 ac_res=-l$ac_lib 18750 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18751 fi 18752 if ac_fn_c_try_link "$LINENO"; then : 18753 ac_cv_search_opendir=$ac_res 18754fi 18755rm -f core conftest.err conftest.$ac_objext \ 18756 conftest$ac_exeext 18757 if ${ac_cv_search_opendir+:} false; then : 18758 break 18759fi 18760done 18761if ${ac_cv_search_opendir+:} false; then : 18762 18763else 18764 ac_cv_search_opendir=no 18765fi 18766rm conftest.$ac_ext 18767LIBS=$ac_func_search_save_LIBS 18768fi 18769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18770$as_echo "$ac_cv_search_opendir" >&6; } 18771ac_res=$ac_cv_search_opendir 18772if test "$ac_res" != no; then : 18773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18774 18775fi 18776 18777else 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18779$as_echo_n "checking for library containing opendir... " >&6; } 18780if ${ac_cv_search_opendir+:} false; then : 18781 $as_echo_n "(cached) " >&6 18782else 18783 ac_func_search_save_LIBS=$LIBS 18784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18785/* end confdefs.h. */ 18786 18787/* Override any GCC internal prototype to avoid an error. 18788 Use char because int might match the return type of a GCC 18789 builtin and then its argument prototype would still apply. */ 18790#ifdef __cplusplus 18791extern "C" 18792#endif 18793char opendir (); 18794int 18795main () 18796{ 18797return opendir (); 18798 ; 18799 return 0; 18800} 18801_ACEOF 18802for ac_lib in '' x; do 18803 if test -z "$ac_lib"; then 18804 ac_res="none required" 18805 else 18806 ac_res=-l$ac_lib 18807 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18808 fi 18809 if ac_fn_c_try_link "$LINENO"; then : 18810 ac_cv_search_opendir=$ac_res 18811fi 18812rm -f core conftest.err conftest.$ac_objext \ 18813 conftest$ac_exeext 18814 if ${ac_cv_search_opendir+:} false; then : 18815 break 18816fi 18817done 18818if ${ac_cv_search_opendir+:} false; then : 18819 18820else 18821 ac_cv_search_opendir=no 18822fi 18823rm conftest.$ac_ext 18824LIBS=$ac_func_search_save_LIBS 18825fi 18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18827$as_echo "$ac_cv_search_opendir" >&6; } 18828ac_res=$ac_cv_search_opendir 18829if test "$ac_res" != no; then : 18830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18831 18832fi 18833 18834fi 18835 18836 18837 # ================= 18838 # AC_CHECK_HEADERS 18839 # ================= 18840 for ac_header in \ 18841 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 18842 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 18843 sys/un.h sys/wait.h dlfcn.h errno.h \ 18844 fcntl.h libgen.h libintl.h memory.h \ 18845 netinet/in.h setjmp.h stdbool.h sysexits.h \ 18846 unistd.h utime.h 18847do : 18848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18849ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18851 cat >>confdefs.h <<_ACEOF 18852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18853_ACEOF 18854 18855fi 18856 18857done 18858 18859 18860 for ac_header in stdarg.h varargs.h 18861do : 18862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18863ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18865 cat >>confdefs.h <<_ACEOF 18866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18867_ACEOF 18868 lo_have_arg_hdr=true;break 18869else 18870 lo_have_arg_hdr=false 18871fi 18872 18873done 18874 18875 18876 for ac_header in string.h strings.h 18877do : 18878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18881 cat >>confdefs.h <<_ACEOF 18882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18883_ACEOF 18884 lo_have_str_hdr=true;break 18885else 18886 lo_have_str_hdr=false 18887fi 18888 18889done 18890 18891 18892 for ac_header in limits.h sys/limits.h values.h 18893do : 18894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18897 cat >>confdefs.h <<_ACEOF 18898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18899_ACEOF 18900 lo_have_lim_hdr=true;break 18901else 18902 lo_have_lim_hdr=false 18903fi 18904 18905done 18906 18907 18908 for ac_header in inttypes.h stdint.h 18909do : 18910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18911ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18912if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18913 cat >>confdefs.h <<_ACEOF 18914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18915_ACEOF 18916 lo_have_typ_hdr=true;break 18917else 18918 lo_have_typ_hdr=false 18919fi 18920 18921done 18922 18923 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 18925$as_echo_n "checking for working stdnoreturn.h... " >&6; } 18926if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 18927 $as_echo_n "(cached) " >&6 18928else 18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18930/* end confdefs.h. */ 18931#include <stdlib.h> 18932 #include <stdnoreturn.h> 18933 /* Do not check for 'noreturn' after the return type. 18934 C11 allows it, but it's rarely done that way 18935 and circa-2012 bleeding-edge GCC rejects it when given 18936 -Werror=old-style-declaration. */ 18937 noreturn void foo1 (void) { exit (0); } 18938 _Noreturn void foo2 (void) { exit (0); } 18939 int testit (int argc, char **argv) { 18940 if (argc & 1) 18941 return 0; 18942 (argv[0][0] ? foo1 : foo2) (); 18943 } 18944 18945int 18946main () 18947{ 18948 18949 ; 18950 return 0; 18951} 18952_ACEOF 18953if ac_fn_c_try_compile "$LINENO"; then : 18954 gl_cv_header_working_stdnoreturn_h=yes 18955else 18956 gl_cv_header_working_stdnoreturn_h=no 18957fi 18958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18959fi 18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 18961$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 18962 18963 if test $gl_cv_header_working_stdnoreturn_h = yes; then 18964 STDNORETURN_H='' 18965 else 18966 STDNORETURN_H='stdnoreturn.h' 18967 fi 18968 18969 18970 if test -n "$STDNORETURN_H"; then 18971 GL_GENERATE_STDNORETURN_H_TRUE= 18972 GL_GENERATE_STDNORETURN_H_FALSE='#' 18973else 18974 GL_GENERATE_STDNORETURN_H_TRUE='#' 18975 GL_GENERATE_STDNORETURN_H_FALSE= 18976fi 18977 18978 18979 18980 # ---------------------------------------------------------------------- 18981 # check for various programs used during the build. 18982 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 18983 # ---------------------------------------------------------------------- 18984 for ac_header in runetype.h wchar.h 18985do : 18986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18987ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18988 $ac_includes_default 18989 #if HAVE_RUNETYPE_H 18990 # include <runetype.h> 18991 #endif 18992 18993" 18994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18995 cat >>confdefs.h <<_ACEOF 18996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18997_ACEOF 18998 18999fi 19000 19001done 19002 19003 19004 # Check whether --enable-nls was given. 19005if test "${enable_nls+set}" = set; then : 19006 enableval=$enable_nls; 19007fi 19008 19009 if test "x$enable_nls" != "xno" && \ 19010 test "X${ac_cv_header_libintl_h}" = Xyes; then : 19011 19012 19013$as_echo "#define ENABLE_NLS 1" >>confdefs.h 19014 19015fi 19016 19017 # -------------------------------------------- 19018 # Verify certain entries from AC_CHECK_HEADERS 19019 # -------------------------------------------- 19020 ${lo_have_arg_hdr} || \ 19021 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 19022 19023 ${lo_have_str_hdr} || \ 19024 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 19025 19026 ${lo_have_lim_hdr} || \ 19027 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 19028 19029 ${lo_have_typ_hdr} || \ 19030 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 19031 19032 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 19033 do eval as_ac_var=\${ac_cv_header_${f}_h} 19034 test "X${as_ac_var}" = Xyes || { 19035 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 19036 } 19037 done 19038 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 19039 echo '#include <stdint.h>' > inttypes.h 19040 19041 # ---------------------------------------------------------------------- 19042 # Checks for typedefs 19043 # ---------------------------------------------------------------------- 19044 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 19045if test "x$ac_cv_type_wchar_t" = xyes; then : 19046 19047cat >>confdefs.h <<_ACEOF 19048#define HAVE_WCHAR_T 1 19049_ACEOF 19050 19051 19052fi 19053 19054 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 19055 $ac_includes_default 19056 #if HAVE_RUNETYPE_H 19057 # include <runetype.h> 19058 #endif 19059 #if HAVE_WCHAR_H 19060 # include <wchar.h> 19061 #endif 19062 19063" 19064if test "x$ac_cv_type_wint_t" = xyes; then : 19065 19066cat >>confdefs.h <<_ACEOF 19067#define HAVE_WINT_T 1 19068_ACEOF 19069 19070 19071fi 19072 19073 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 19074if test "x$ac_cv_type_int8_t" = xyes; then : 19075 19076cat >>confdefs.h <<_ACEOF 19077#define HAVE_INT8_T 1 19078_ACEOF 19079 19080 19081fi 19082ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 19083if test "x$ac_cv_type_uint8_t" = xyes; then : 19084 19085cat >>confdefs.h <<_ACEOF 19086#define HAVE_UINT8_T 1 19087_ACEOF 19088 19089 19090fi 19091ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 19092if test "x$ac_cv_type_int16_t" = xyes; then : 19093 19094cat >>confdefs.h <<_ACEOF 19095#define HAVE_INT16_T 1 19096_ACEOF 19097 19098 19099fi 19100ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 19101if test "x$ac_cv_type_uint16_t" = xyes; then : 19102 19103cat >>confdefs.h <<_ACEOF 19104#define HAVE_UINT16_T 1 19105_ACEOF 19106 19107 19108fi 19109ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 19110if test "x$ac_cv_type_int32_t" = xyes; then : 19111 19112cat >>confdefs.h <<_ACEOF 19113#define HAVE_INT32_T 1 19114_ACEOF 19115 19116 19117fi 19118ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 19119if test "x$ac_cv_type_uint32_t" = xyes; then : 19120 19121cat >>confdefs.h <<_ACEOF 19122#define HAVE_UINT32_T 1 19123_ACEOF 19124 19125 19126fi 19127ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 19128if test "x$ac_cv_type_intptr_t" = xyes; then : 19129 19130cat >>confdefs.h <<_ACEOF 19131#define HAVE_INTPTR_T 1 19132_ACEOF 19133 19134 19135fi 19136ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19137if test "x$ac_cv_type_uintptr_t" = xyes; then : 19138 19139cat >>confdefs.h <<_ACEOF 19140#define HAVE_UINTPTR_T 1 19141_ACEOF 19142 19143 19144fi 19145ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 19146if test "x$ac_cv_type_uint_t" = xyes; then : 19147 19148cat >>confdefs.h <<_ACEOF 19149#define HAVE_UINT_T 1 19150_ACEOF 19151 19152 19153fi 19154ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19155if test "x$ac_cv_type_pid_t" = xyes; then : 19156 19157cat >>confdefs.h <<_ACEOF 19158#define HAVE_PID_T 1 19159_ACEOF 19160 19161 19162fi 19163ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19164if test "x$ac_cv_type_size_t" = xyes; then : 19165 19166cat >>confdefs.h <<_ACEOF 19167#define HAVE_SIZE_T 1 19168_ACEOF 19169 19170 19171fi 19172ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 19173if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 19174 19175cat >>confdefs.h <<_ACEOF 19176#define HAVE_PTRDIFF_T 1 19177_ACEOF 19178 19179 19180fi 19181 19182 # The cast to long int works around a bug in the HP C Compiler 19183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19185# This bug is HP SR number 8606223364. 19186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 19187$as_echo_n "checking size of char *... " >&6; } 19188if ${ac_cv_sizeof_char_p+:} false; then : 19189 $as_echo_n "(cached) " >&6 19190else 19191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 19192 19193else 19194 if test "$ac_cv_type_char_p" = yes; then 19195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19197as_fn_error 77 "cannot compute sizeof (char *) 19198See \`config.log' for more details" "$LINENO" 5; } 19199 else 19200 ac_cv_sizeof_char_p=0 19201 fi 19202fi 19203 19204fi 19205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 19206$as_echo "$ac_cv_sizeof_char_p" >&6; } 19207 19208 19209 19210cat >>confdefs.h <<_ACEOF 19211#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 19212_ACEOF 19213 19214 19215 # The cast to long int works around a bug in the HP C Compiler 19216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19218# This bug is HP SR number 8606223364. 19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 19220$as_echo_n "checking size of int... " >&6; } 19221if ${ac_cv_sizeof_int+:} false; then : 19222 $as_echo_n "(cached) " >&6 19223else 19224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 19225 19226else 19227 if test "$ac_cv_type_int" = yes; then 19228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19230as_fn_error 77 "cannot compute sizeof (int) 19231See \`config.log' for more details" "$LINENO" 5; } 19232 else 19233 ac_cv_sizeof_int=0 19234 fi 19235fi 19236 19237fi 19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 19239$as_echo "$ac_cv_sizeof_int" >&6; } 19240 19241 19242 19243cat >>confdefs.h <<_ACEOF 19244#define SIZEOF_INT $ac_cv_sizeof_int 19245_ACEOF 19246 19247 19248 # The cast to long int works around a bug in the HP C Compiler 19249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19251# This bug is HP SR number 8606223364. 19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 19253$as_echo_n "checking size of long... " >&6; } 19254if ${ac_cv_sizeof_long+:} false; then : 19255 $as_echo_n "(cached) " >&6 19256else 19257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 19258 19259else 19260 if test "$ac_cv_type_long" = yes; then 19261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19263as_fn_error 77 "cannot compute sizeof (long) 19264See \`config.log' for more details" "$LINENO" 5; } 19265 else 19266 ac_cv_sizeof_long=0 19267 fi 19268fi 19269 19270fi 19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 19272$as_echo "$ac_cv_sizeof_long" >&6; } 19273 19274 19275 19276cat >>confdefs.h <<_ACEOF 19277#define SIZEOF_LONG $ac_cv_sizeof_long 19278_ACEOF 19279 19280 19281 # The cast to long int works around a bug in the HP C Compiler 19282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19284# This bug is HP SR number 8606223364. 19285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 19286$as_echo_n "checking size of short... " >&6; } 19287if ${ac_cv_sizeof_short+:} false; then : 19288 $as_echo_n "(cached) " >&6 19289else 19290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 19291 19292else 19293 if test "$ac_cv_type_short" = yes; then 19294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19296as_fn_error 77 "cannot compute sizeof (short) 19297See \`config.log' for more details" "$LINENO" 5; } 19298 else 19299 ac_cv_sizeof_short=0 19300 fi 19301fi 19302 19303fi 19304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 19305$as_echo "$ac_cv_sizeof_short" >&6; } 19306 19307 19308 19309cat >>confdefs.h <<_ACEOF 19310#define SIZEOF_SHORT $ac_cv_sizeof_short 19311_ACEOF 19312 19313 19314 19315 # ------------ 19316 # AC_CHECK_LIB 19317 # ------------ 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 19319$as_echo_n "checking for pathfind in -lgen... " >&6; } 19320if ${ac_cv_lib_gen_pathfind+:} false; then : 19321 $as_echo_n "(cached) " >&6 19322else 19323 ac_check_lib_save_LIBS=$LIBS 19324LIBS="-lgen $LIBS" 19325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19326/* end confdefs.h. */ 19327 19328/* Override any GCC internal prototype to avoid an error. 19329 Use char because int might match the return type of a GCC 19330 builtin and then its argument prototype would still apply. */ 19331#ifdef __cplusplus 19332extern "C" 19333#endif 19334char pathfind (); 19335int 19336main () 19337{ 19338return pathfind (); 19339 ; 19340 return 0; 19341} 19342_ACEOF 19343if ac_fn_c_try_link "$LINENO"; then : 19344 ac_cv_lib_gen_pathfind=yes 19345else 19346 ac_cv_lib_gen_pathfind=no 19347fi 19348rm -f core conftest.err conftest.$ac_objext \ 19349 conftest$ac_exeext conftest.$ac_ext 19350LIBS=$ac_check_lib_save_LIBS 19351fi 19352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 19353$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 19354if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 19355 cat >>confdefs.h <<_ACEOF 19356#define HAVE_LIBGEN 1 19357_ACEOF 19358 19359 LIBS="-lgen $LIBS" 19360 19361fi 19362 19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 19364$as_echo_n "checking for gettext in -lintl... " >&6; } 19365if ${ac_cv_lib_intl_gettext+:} false; then : 19366 $as_echo_n "(cached) " >&6 19367else 19368 ac_check_lib_save_LIBS=$LIBS 19369LIBS="-lintl $LIBS" 19370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19371/* end confdefs.h. */ 19372 19373/* Override any GCC internal prototype to avoid an error. 19374 Use char because int might match the return type of a GCC 19375 builtin and then its argument prototype would still apply. */ 19376#ifdef __cplusplus 19377extern "C" 19378#endif 19379char gettext (); 19380int 19381main () 19382{ 19383return gettext (); 19384 ; 19385 return 0; 19386} 19387_ACEOF 19388if ac_fn_c_try_link "$LINENO"; then : 19389 ac_cv_lib_intl_gettext=yes 19390else 19391 ac_cv_lib_intl_gettext=no 19392fi 19393rm -f core conftest.err conftest.$ac_objext \ 19394 conftest$ac_exeext conftest.$ac_ext 19395LIBS=$ac_check_lib_save_LIBS 19396fi 19397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 19398$as_echo "$ac_cv_lib_intl_gettext" >&6; } 19399if test "x$ac_cv_lib_intl_gettext" = xyes; then : 19400 cat >>confdefs.h <<_ACEOF 19401#define HAVE_LIBINTL 1 19402_ACEOF 19403 19404 LIBS="-lintl $LIBS" 19405 19406fi 19407 19408 for ac_func in vprintf 19409do : 19410 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 19411if test "x$ac_cv_func_vprintf" = xyes; then : 19412 cat >>confdefs.h <<_ACEOF 19413#define HAVE_VPRINTF 1 19414_ACEOF 19415 19416ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 19417if test "x$ac_cv_func__doprnt" = xyes; then : 19418 19419$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 19420 19421fi 19422 19423fi 19424done 19425 19426 19427 for ac_header in vfork.h 19428do : 19429 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 19430if test "x$ac_cv_header_vfork_h" = xyes; then : 19431 cat >>confdefs.h <<_ACEOF 19432#define HAVE_VFORK_H 1 19433_ACEOF 19434 19435fi 19436 19437done 19438 19439for ac_func in fork vfork 19440do : 19441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19443if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19444 cat >>confdefs.h <<_ACEOF 19445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19446_ACEOF 19447 19448fi 19449done 19450 19451if test "x$ac_cv_func_fork" = xyes; then 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19453$as_echo_n "checking for working fork... " >&6; } 19454if ${ac_cv_func_fork_works+:} false; then : 19455 $as_echo_n "(cached) " >&6 19456else 19457 if test "$cross_compiling" = yes; then : 19458 ac_cv_func_fork_works=cross 19459else 19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19461/* end confdefs.h. */ 19462$ac_includes_default 19463int 19464main () 19465{ 19466 19467 /* By Ruediger Kuhlmann. */ 19468 return fork () < 0; 19469 19470 ; 19471 return 0; 19472} 19473_ACEOF 19474if ac_fn_c_try_run "$LINENO"; then : 19475 ac_cv_func_fork_works=yes 19476else 19477 ac_cv_func_fork_works=no 19478fi 19479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19480 conftest.$ac_objext conftest.beam conftest.$ac_ext 19481fi 19482 19483fi 19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19485$as_echo "$ac_cv_func_fork_works" >&6; } 19486 19487else 19488 ac_cv_func_fork_works=$ac_cv_func_fork 19489fi 19490if test "x$ac_cv_func_fork_works" = xcross; then 19491 case $host in 19492 *-*-amigaos* | *-*-msdosdjgpp*) 19493 # Override, as these systems have only a dummy fork() stub 19494 ac_cv_func_fork_works=no 19495 ;; 19496 *) 19497 ac_cv_func_fork_works=yes 19498 ;; 19499 esac 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19501$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19502fi 19503ac_cv_func_vfork_works=$ac_cv_func_vfork 19504if test "x$ac_cv_func_vfork" = xyes; then 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19506$as_echo_n "checking for working vfork... " >&6; } 19507if ${ac_cv_func_vfork_works+:} false; then : 19508 $as_echo_n "(cached) " >&6 19509else 19510 if test "$cross_compiling" = yes; then : 19511 ac_cv_func_vfork_works=cross 19512else 19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19514/* end confdefs.h. */ 19515/* Thanks to Paul Eggert for this test. */ 19516$ac_includes_default 19517#include <sys/wait.h> 19518#ifdef HAVE_VFORK_H 19519# include <vfork.h> 19520#endif 19521/* On some sparc systems, changes by the child to local and incoming 19522 argument registers are propagated back to the parent. The compiler 19523 is told about this with #include <vfork.h>, but some compilers 19524 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19525 static variable whose address is put into a register that is 19526 clobbered by the vfork. */ 19527static void 19528#ifdef __cplusplus 19529sparc_address_test (int arg) 19530# else 19531sparc_address_test (arg) int arg; 19532#endif 19533{ 19534 static pid_t child; 19535 if (!child) { 19536 child = vfork (); 19537 if (child < 0) { 19538 perror ("vfork"); 19539 _exit(2); 19540 } 19541 if (!child) { 19542 arg = getpid(); 19543 write(-1, "", 0); 19544 _exit (arg); 19545 } 19546 } 19547} 19548 19549int 19550main () 19551{ 19552 pid_t parent = getpid (); 19553 pid_t child; 19554 19555 sparc_address_test (0); 19556 19557 child = vfork (); 19558 19559 if (child == 0) { 19560 /* Here is another test for sparc vfork register problems. This 19561 test uses lots of local variables, at least as many local 19562 variables as main has allocated so far including compiler 19563 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19564 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19565 reuse the register of parent for one of the local variables, 19566 since it will think that parent can't possibly be used any more 19567 in this routine. Assigning to the local variable will thus 19568 munge parent in the parent process. */ 19569 pid_t 19570 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19571 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19572 /* Convince the compiler that p..p7 are live; otherwise, it might 19573 use the same hardware register for all 8 local variables. */ 19574 if (p != p1 || p != p2 || p != p3 || p != p4 19575 || p != p5 || p != p6 || p != p7) 19576 _exit(1); 19577 19578 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19579 from child file descriptors. If the child closes a descriptor 19580 before it execs or exits, this munges the parent's descriptor 19581 as well. Test for this by closing stdout in the child. */ 19582 _exit(close(fileno(stdout)) != 0); 19583 } else { 19584 int status; 19585 struct stat st; 19586 19587 while (wait(&status) != child) 19588 ; 19589 return ( 19590 /* Was there some problem with vforking? */ 19591 child < 0 19592 19593 /* Did the child fail? (This shouldn't happen.) */ 19594 || status 19595 19596 /* Did the vfork/compiler bug occur? */ 19597 || parent != getpid() 19598 19599 /* Did the file descriptor bug occur? */ 19600 || fstat(fileno(stdout), &st) != 0 19601 ); 19602 } 19603} 19604_ACEOF 19605if ac_fn_c_try_run "$LINENO"; then : 19606 ac_cv_func_vfork_works=yes 19607else 19608 ac_cv_func_vfork_works=no 19609fi 19610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19611 conftest.$ac_objext conftest.beam conftest.$ac_ext 19612fi 19613 19614fi 19615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19616$as_echo "$ac_cv_func_vfork_works" >&6; } 19617 19618fi; 19619if test "x$ac_cv_func_fork_works" = xcross; then 19620 ac_cv_func_vfork_works=$ac_cv_func_vfork 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19622$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19623fi 19624 19625if test "x$ac_cv_func_vfork_works" = xyes; then 19626 19627$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19628 19629else 19630 19631$as_echo "#define vfork fork" >>confdefs.h 19632 19633fi 19634if test "x$ac_cv_func_fork_works" = xyes; then 19635 19636$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 19637 19638fi 19639 19640 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 19641 strrchr strsignal fchmod fstat chmod 19642do : 19643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19644ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19645if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19646 cat >>confdefs.h <<_ACEOF 19647#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19648_ACEOF 19649 19650fi 19651done 19652 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 19654$as_echo_n "checking for a sed that does not truncate output... " >&6; } 19655if ${ac_cv_path_SED+:} false; then : 19656 $as_echo_n "(cached) " >&6 19657else 19658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 19659 for ac_i in 1 2 3 4 5 6 7; do 19660 ac_script="$ac_script$as_nl$ac_script" 19661 done 19662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 19663 { ac_script=; unset ac_script;} 19664 if test -z "$SED"; then 19665 ac_path_SED_found=false 19666 # Loop through the user's path and test for each of PROGNAME-LIST 19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19668for as_dir in $PATH 19669do 19670 IFS=$as_save_IFS 19671 test -z "$as_dir" && as_dir=. 19672 for ac_prog in sed gsed; do 19673 for ac_exec_ext in '' $ac_executable_extensions; do 19674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 19675 as_fn_executable_p "$ac_path_SED" || continue 19676# Check for GNU ac_path_SED and select it if it is found. 19677 # Check for GNU $ac_path_SED 19678case `"$ac_path_SED" --version 2>&1` in 19679*GNU*) 19680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 19681*) 19682 ac_count=0 19683 $as_echo_n 0123456789 >"conftest.in" 19684 while : 19685 do 19686 cat "conftest.in" "conftest.in" >"conftest.tmp" 19687 mv "conftest.tmp" "conftest.in" 19688 cp "conftest.in" "conftest.nl" 19689 $as_echo '' >> "conftest.nl" 19690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 19691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 19692 as_fn_arith $ac_count + 1 && ac_count=$as_val 19693 if test $ac_count -gt ${ac_path_SED_max-0}; then 19694 # Best one so far, save it but keep looking for a better one 19695 ac_cv_path_SED="$ac_path_SED" 19696 ac_path_SED_max=$ac_count 19697 fi 19698 # 10*(2^10) chars as input seems more than enough 19699 test $ac_count -gt 10 && break 19700 done 19701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 19702esac 19703 19704 $ac_path_SED_found && break 3 19705 done 19706 done 19707 done 19708IFS=$as_save_IFS 19709 if test -z "$ac_cv_path_SED"; then 19710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 19711 fi 19712else 19713 ac_cv_path_SED=$SED 19714fi 19715 19716fi 19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 19718$as_echo "$ac_cv_path_SED" >&6; } 19719 SED="$ac_cv_path_SED" 19720 rm -f conftest.sed 19721 19722 while : 19723 do 19724 POSIX_SHELL=`which bash` 19725 test -x "$POSIX_SHELL" && break 19726 POSIX_SHELL=`which dash` 19727 test -x "$POSIX_SHELL" && break 19728 POSIX_SHELL=/usr/xpg4/bin/sh 19729 test -x "$POSIX_SHELL" && break 19730 POSIX_SHELL=`/bin/sh -c ' 19731 exec 2>/dev/null 19732 if ! true ; then exit 1 ; fi 19733 echo /bin/sh'` 19734 test -x "$POSIX_SHELL" && break 19735 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 19736 done 19737 19738cat >>confdefs.h <<_ACEOF 19739#define POSIX_SHELL "${POSIX_SHELL}" 19740_ACEOF 19741 19742 19743 19744 19745 19746 LIBOPTS_BUILD_BLOCKED=true 19747 19748 19749 NEED_LIBOPTS_DIR='' 19750 19751 # Check whether --enable-local-libopts was given. 19752if test "${enable_local_libopts+set}" = set; then : 19753 enableval=$enable_local_libopts; 19754 if test x$enableval = xyes ; then 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 19756$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 19757 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 19758 NEED_LIBOPTS_DIR=true 19759 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 19760 fi 19761fi 19762 19763 19764 # Check whether --enable-libopts-install was given. 19765if test "${enable_libopts_install+set}" = set; then : 19766 enableval=$enable_libopts_install; 19767fi 19768 19769 if test "X${enable_libopts_install}" = Xyes; then 19770 INSTALL_LIBOPTS_TRUE= 19771 INSTALL_LIBOPTS_FALSE='#' 19772else 19773 INSTALL_LIBOPTS_TRUE='#' 19774 INSTALL_LIBOPTS_FALSE= 19775fi 19776 19777 19778 if test -z "${NEED_LIBOPTS_DIR}" ; then 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 19780$as_echo_n "checking whether autoopts-config can be found... " >&6; } 19781 19782# Check whether --with-autoopts-config was given. 19783if test "${with_autoopts_config+set}" = set; then : 19784 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 19785else 19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 19787$as_echo_n "checking whether autoopts-config is specified... " >&6; } 19788if ${lo_cv_with_autoopts_config+:} false; then : 19789 $as_echo_n "(cached) " >&6 19790else 19791 if autoopts-config --help 2>/dev/null 1>&2 19792 then lo_cv_with_autoopts_config=autoopts-config 19793 elif libopts-config --help 2>/dev/null 1>&2 19794 then lo_cv_with_autoopts_config=libopts-config 19795 else lo_cv_with_autoopts_config=no ; fi 19796fi 19797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 19798$as_echo "$lo_cv_with_autoopts_config" >&6; } 19799 19800fi 19801 # end of AC_ARG_WITH 19802 19803 if ${lo_cv_test_autoopts+:} false; then : 19804 $as_echo_n "(cached) " >&6 19805else 19806 19807 if test -z "${lo_cv_with_autoopts_config}" \ 19808 -o X"${lo_cv_with_autoopts_config}" = Xno 19809 then 19810 if autoopts-config --help 2>/dev/null 1>&2 19811 then lo_cv_with_autoopts_config=autoopts-config 19812 elif libopts-config --help 2>/dev/null 1>&2 19813 then lo_cv_with_autoopts_config=libopts-config 19814 else lo_cv_with_autoopts_config=false ; fi 19815 fi 19816 lo_cv_test_autoopts=` 19817 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 19818 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 19819 then lo_cv_test_autoopts=no ; fi 19820 19821fi 19822 # end of CACHE_VAL 19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 19824$as_echo "${lo_cv_test_autoopts}" >&6; } 19825 19826 if test "X${lo_cv_test_autoopts}" != Xno 19827 then 19828 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 19829 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 19830 else 19831 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 19832 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 19833 NEED_LIBOPTS_DIR=true 19834 fi 19835 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 19836 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 19837 NEED_LIBOPTS_DIR='' 19838 fi 19839 if test -n "${NEED_LIBOPTS_DIR}"; then 19840 NEED_LIBOPTS_TRUE= 19841 NEED_LIBOPTS_FALSE='#' 19842else 19843 NEED_LIBOPTS_TRUE='#' 19844 NEED_LIBOPTS_FALSE= 19845fi 19846 19847 19848 19849 LIBOPTS_DIR=sntp/libopts 19850 19851 19852# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 19853 19854 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD 19855 19856 19857 19858 19859ntp_pkgconfig_min_version='0.15.0' 19860if test -n "$ac_tool_prefix"; then 19861 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19862set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19864$as_echo_n "checking for $ac_word... " >&6; } 19865if ${ac_cv_path_PKG_CONFIG+:} false; then : 19866 $as_echo_n "(cached) " >&6 19867else 19868 case $PKG_CONFIG in 19869 [\\/]* | ?:[\\/]*) 19870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19871 ;; 19872 *) 19873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19874for as_dir in $PATH 19875do 19876 IFS=$as_save_IFS 19877 test -z "$as_dir" && as_dir=. 19878 for ac_exec_ext in '' $ac_executable_extensions; do 19879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19882 break 2 19883 fi 19884done 19885 done 19886IFS=$as_save_IFS 19887 19888 ;; 19889esac 19890fi 19891PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19892if test -n "$PKG_CONFIG"; then 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19894$as_echo "$PKG_CONFIG" >&6; } 19895else 19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19897$as_echo "no" >&6; } 19898fi 19899 19900 19901fi 19902if test -z "$ac_cv_path_PKG_CONFIG"; then 19903 ac_pt_PKG_CONFIG=$PKG_CONFIG 19904 # Extract the first word of "pkg-config", so it can be a program name with args. 19905set dummy pkg-config; ac_word=$2 19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19907$as_echo_n "checking for $ac_word... " >&6; } 19908if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19909 $as_echo_n "(cached) " >&6 19910else 19911 case $ac_pt_PKG_CONFIG in 19912 [\\/]* | ?:[\\/]*) 19913 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19914 ;; 19915 *) 19916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19917for as_dir in $PATH 19918do 19919 IFS=$as_save_IFS 19920 test -z "$as_dir" && as_dir=. 19921 for ac_exec_ext in '' $ac_executable_extensions; do 19922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19923 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19925 break 2 19926 fi 19927done 19928 done 19929IFS=$as_save_IFS 19930 19931 ;; 19932esac 19933fi 19934ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19935if test -n "$ac_pt_PKG_CONFIG"; then 19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19937$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19938else 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19940$as_echo "no" >&6; } 19941fi 19942 19943 if test "x$ac_pt_PKG_CONFIG" = x; then 19944 PKG_CONFIG="" 19945 else 19946 case $cross_compiling:$ac_tool_warned in 19947yes:) 19948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19950ac_tool_warned=yes ;; 19951esac 19952 PKG_CONFIG=$ac_pt_PKG_CONFIG 19953 fi 19954else 19955 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19956fi 19957 19958{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 19959{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 19960 19961case "$PKG_CONFIG" in 19962 /*) 19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 19964$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 19965 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19967$as_echo "yes" >&6; } 19968 else 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19970$as_echo "no" >&6; } 19971 PKG_CONFIG="" 19972 fi 19973 ;; 19974esac 19975 19976 19977 19978 19979# Check whether --enable-local-libevent was given. 19980if test "${enable_local_libevent+set}" = set; then : 19981 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 19982else 19983 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 19984 19985fi 19986 19987 19988 19989 19990 19991ntp_libevent_min_version=2 19992ntp_libevent_tearoff=sntp/libevent 19993 19994 19995 19996 19997 19998case "$ntp_use_local_libevent" in 19999 yes) 20000 ;; 20001 *) # If we have (a good enough) pkg-config, see if it can find libevent 20002 case "$PKG_CONFIG" in 20003 /*) 20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 20005$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 20006 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 20007 then 20008 ntp_use_local_libevent=no 20009 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 20010$as_echo "$as_me: Using the installed libevent" >&6;} 20011 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 20012 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 20013 # HMS: I hope the following is accurate. 20014 # We don't need -levent, we only need -levent_core. 20015 # While we could grab only the -L stuff, there *might* be 20016 # other flags there we want. Originally we just removed -levent 20017 # but then somebody decided to install -levent-2.0 20018 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 20019 # So now we dance... 20020 LDADD_LIBEVENT= 20021 for i in `$PKG_CONFIG --libs libevent` 20022 do 20023 case "$i" in 20024 -levent*) ;; 20025 *) case "$LDADD_LIBEVENT" in 20026 '') LDADD_LIBEVENT="$i" ;; 20027 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 20028 esac 20029 ;; 20030 esac 20031 done 20032 case "$LIBISC_PTHREADS_NOTHREADS" in 20033 pthreads) 20034 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 20035 esac 20036 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20038$as_echo "yes" >&6; } 20039 else 20040 ntp_use_local_libevent=yes 20041 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 20042 # is "pthreads"? 20043 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20045$as_echo "no" >&6; } 20046 fi 20047 ;; 20048 *) 20049 ntp_use_local_libevent=yes 20050 ;; 20051 esac 20052 ;; 20053esac 20054 20055case "$ntp_use_local_libevent" in 20056 yes) 20057 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 20058$as_echo "$as_me: Using libevent tearoff" >&6;} 20059 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 20060 case "$LIBISC_PTHREADS_NOTHREADS" in 20061 pthreads) 20062 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 20063 ;; 20064 *) 20065 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 20066 esac 20067esac 20068 20069 20070 if test "x$ntp_use_local_libevent" = "xyes"; then 20071 BUILD_LIBEVENT_TRUE= 20072 BUILD_LIBEVENT_FALSE='#' 20073else 20074 BUILD_LIBEVENT_TRUE='#' 20075 BUILD_LIBEVENT_FALSE= 20076fi 20077 20078 20079 20080 20081 20082 20083# Expose a cross-compilation indicator to makefiles 20084 if test $build != $host; then 20085 NTP_CROSSCOMPILE_TRUE= 20086 NTP_CROSSCOMPILE_FALSE='#' 20087else 20088 NTP_CROSSCOMPILE_TRUE='#' 20089 NTP_CROSSCOMPILE_FALSE= 20090fi 20091 20092 20093 20094ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20095if test "x$ac_cv_type_size_t" = xyes; then : 20096 20097else 20098 20099cat >>confdefs.h <<_ACEOF 20100#define size_t unsigned int 20101_ACEOF 20102 20103fi 20104 20105 20106 # Check whether --enable-c99-snprintf was given. 20107if test "${enable_c99_snprintf+set}" = set; then : 20108 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 20109else 20110 force_c99_snprintf=no 20111 20112fi 20113 20114 case "$force_c99_snprintf" in 20115 yes) 20116 hw_force_rpl_snprintf=yes 20117 hw_force_rpl_vsnprintf=yes 20118 esac 20119 20120 20121 20122 20123 20124 20125 for ac_header in $ac_header_list 20126do : 20127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20129" 20130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20131 cat >>confdefs.h <<_ACEOF 20132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20133_ACEOF 20134 20135fi 20136 20137done 20138 20139 20140 20141 20142 20143 20144 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20146$as_echo_n "checking for unsigned long long int... " >&6; } 20147if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20148 $as_echo_n "(cached) " >&6 20149else 20150 ac_cv_type_unsigned_long_long_int=yes 20151 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20153/* end confdefs.h. */ 20154 20155 /* For now, do not test the preprocessor; as of 2007 there are too many 20156 implementations with broken preprocessors. Perhaps this can 20157 be revisited in 2012. In the meantime, code should not expect 20158 #if to work with literals wider than 32 bits. */ 20159 /* Test literals. */ 20160 long long int ll = 9223372036854775807ll; 20161 long long int nll = -9223372036854775807LL; 20162 unsigned long long int ull = 18446744073709551615ULL; 20163 /* Test constant expressions. */ 20164 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20165 ? 1 : -1)]; 20166 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20167 ? 1 : -1)]; 20168 int i = 63; 20169int 20170main () 20171{ 20172/* Test availability of runtime routines for shift and division. */ 20173 long long int llmax = 9223372036854775807ll; 20174 unsigned long long int ullmax = 18446744073709551615ull; 20175 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20176 | (llmax / ll) | (llmax % ll) 20177 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20178 | (ullmax / ull) | (ullmax % ull)); 20179 ; 20180 return 0; 20181} 20182 20183_ACEOF 20184if ac_fn_c_try_link "$LINENO"; then : 20185 20186else 20187 ac_cv_type_unsigned_long_long_int=no 20188fi 20189rm -f core conftest.err conftest.$ac_objext \ 20190 conftest$ac_exeext conftest.$ac_ext 20191 fi 20192fi 20193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20194$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20195 if test $ac_cv_type_unsigned_long_long_int = yes; then 20196 20197$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20198 20199 fi 20200 20201 20202 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 20203if test "x$ac_cv_func_vsnprintf" = xyes; then : 20204 hw_cv_func_vsnprintf=yes 20205else 20206 hw_cv_func_vsnprintf=no 20207fi 20208 20209 if test "$hw_cv_func_vsnprintf" = yes; then : 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 20211$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 20212if ${hw_cv_func_vsnprintf_c99+:} false; then : 20213 $as_echo_n "(cached) " >&6 20214else 20215 if test "$cross_compiling" = yes; then : 20216 hw_cv_func_vsnprintf_c99=no 20217else 20218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20219/* end confdefs.h. */ 20220#if HAVE_STDARG_H 20221 #include <stdarg.h> 20222 #endif 20223 #include <stdio.h> 20224 static int testprintf(char *buf, size_t size, const char *format, ...) 20225 { 20226 int result; 20227 va_list ap; 20228 va_start(ap, format); 20229 result = vsnprintf(buf, size, format, ap); 20230 va_end(ap); 20231 return result; 20232 } 20233int 20234main () 20235{ 20236char buf[43]; 20237 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20238 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20239 buf[0] != 'T' || buf[3] != '\0') 20240 return 1; 20241 ; 20242 return 0; 20243} 20244_ACEOF 20245if ac_fn_c_try_run "$LINENO"; then : 20246 hw_cv_func_vsnprintf_c99=yes 20247else 20248 hw_cv_func_vsnprintf_c99=no 20249fi 20250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20251 conftest.$ac_objext conftest.beam conftest.$ac_ext 20252fi 20253 20254fi 20255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 20256$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 20257else 20258 hw_cv_func_vsnprintf_c99=no 20259fi 20260 20261$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 20262 20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 20264$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 20265 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 20266 hw_use_rpl_vsnprintf=yes 20267else 20268 hw_use_rpl_vsnprintf=no 20269fi 20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 20271$as_echo "$hw_use_rpl_vsnprintf" >&6; } 20272 if test "$hw_use_rpl_vsnprintf" = yes; then : 20273 20274$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 20275 20276 if test ${hw_nodef_vsnprintf=no} = no; then : 20277 20278$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 20279 20280fi 20281 for ac_header in inttypes.h locale.h stddef.h stdint.h 20282do : 20283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20286 cat >>confdefs.h <<_ACEOF 20287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20288_ACEOF 20289 20290fi 20291 20292done 20293 20294 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 20295" 20296if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 20297 20298cat >>confdefs.h <<_ACEOF 20299#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 20300_ACEOF 20301 20302 20303fi 20304ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 20305" 20306if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 20307 20308cat >>confdefs.h <<_ACEOF 20309#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 20310_ACEOF 20311 20312 20313fi 20314 20315 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 20317$as_echo_n "checking for long double... " >&6; } 20318if ${ac_cv_type_long_double+:} false; then : 20319 $as_echo_n "(cached) " >&6 20320else 20321 if test "$GCC" = yes; then 20322 ac_cv_type_long_double=yes 20323 else 20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20325/* end confdefs.h. */ 20326/* The Stardent Vistra knows sizeof (long double), but does 20327 not support it. */ 20328 long double foo = 0.0L; 20329int 20330main () 20331{ 20332static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 20333 sizeof (double) <= sizeof (long double))]; 20334test_array [0] = 0; 20335return test_array [0]; 20336 20337 ; 20338 return 0; 20339} 20340_ACEOF 20341if ac_fn_c_try_compile "$LINENO"; then : 20342 ac_cv_type_long_double=yes 20343else 20344 ac_cv_type_long_double=no 20345fi 20346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20347 fi 20348fi 20349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 20350$as_echo "$ac_cv_type_long_double" >&6; } 20351 if test $ac_cv_type_long_double = yes; then 20352 20353$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 20354 20355 fi 20356 20357 20358 20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 20360$as_echo_n "checking for long long int... " >&6; } 20361if ${ac_cv_type_long_long_int+:} false; then : 20362 $as_echo_n "(cached) " >&6 20363else 20364 ac_cv_type_long_long_int=yes 20365 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20366 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 20367 if test $ac_cv_type_long_long_int = yes; then 20368 if test "$cross_compiling" = yes; then : 20369 : 20370else 20371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20372/* end confdefs.h. */ 20373#include <limits.h> 20374 #ifndef LLONG_MAX 20375 # define HALF \ 20376 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 20377 # define LLONG_MAX (HALF - 1 + HALF) 20378 #endif 20379int 20380main () 20381{ 20382long long int n = 1; 20383 int i; 20384 for (i = 0; ; i++) 20385 { 20386 long long int m = n << i; 20387 if (m >> i != n) 20388 return 1; 20389 if (LLONG_MAX / 2 < m) 20390 break; 20391 } 20392 return 0; 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397if ac_fn_c_try_run "$LINENO"; then : 20398 20399else 20400 ac_cv_type_long_long_int=no 20401fi 20402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20403 conftest.$ac_objext conftest.beam conftest.$ac_ext 20404fi 20405 20406 fi 20407 fi 20408fi 20409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 20410$as_echo "$ac_cv_type_long_long_int" >&6; } 20411 if test $ac_cv_type_long_long_int = yes; then 20412 20413$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 20414 20415 fi 20416 20417 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20419$as_echo_n "checking for unsigned long long int... " >&6; } 20420if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20421 $as_echo_n "(cached) " >&6 20422else 20423 ac_cv_type_unsigned_long_long_int=yes 20424 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20426/* end confdefs.h. */ 20427 20428 /* For now, do not test the preprocessor; as of 2007 there are too many 20429 implementations with broken preprocessors. Perhaps this can 20430 be revisited in 2012. In the meantime, code should not expect 20431 #if to work with literals wider than 32 bits. */ 20432 /* Test literals. */ 20433 long long int ll = 9223372036854775807ll; 20434 long long int nll = -9223372036854775807LL; 20435 unsigned long long int ull = 18446744073709551615ULL; 20436 /* Test constant expressions. */ 20437 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20438 ? 1 : -1)]; 20439 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20440 ? 1 : -1)]; 20441 int i = 63; 20442int 20443main () 20444{ 20445/* Test availability of runtime routines for shift and division. */ 20446 long long int llmax = 9223372036854775807ll; 20447 unsigned long long int ullmax = 18446744073709551615ull; 20448 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20449 | (llmax / ll) | (llmax % ll) 20450 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20451 | (ullmax / ull) | (ullmax % ull)); 20452 ; 20453 return 0; 20454} 20455 20456_ACEOF 20457if ac_fn_c_try_link "$LINENO"; then : 20458 20459else 20460 ac_cv_type_unsigned_long_long_int=no 20461fi 20462rm -f core conftest.err conftest.$ac_objext \ 20463 conftest$ac_exeext conftest.$ac_ext 20464 fi 20465fi 20466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20467$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20468 if test $ac_cv_type_unsigned_long_long_int = yes; then 20469 20470$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20471 20472 fi 20473 20474 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20475if test "x$ac_cv_type_size_t" = xyes; then : 20476 20477else 20478 20479cat >>confdefs.h <<_ACEOF 20480#define size_t unsigned int 20481_ACEOF 20482 20483fi 20484 20485 20486 20487 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 20488if test "x$ac_cv_type_intmax_t" = xyes; then : 20489 20490$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 20491 20492else 20493 test $ac_cv_type_long_long_int = yes \ 20494 && ac_type='long long int' \ 20495 || ac_type='long int' 20496 20497cat >>confdefs.h <<_ACEOF 20498#define intmax_t $ac_type 20499_ACEOF 20500 20501fi 20502 20503 20504 20505 20506 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 20507if test "x$ac_cv_type_uintmax_t" = xyes; then : 20508 20509$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 20510 20511else 20512 test $ac_cv_type_unsigned_long_long_int = yes \ 20513 && ac_type='unsigned long long int' \ 20514 || ac_type='unsigned long int' 20515 20516cat >>confdefs.h <<_ACEOF 20517#define uintmax_t $ac_type 20518_ACEOF 20519 20520fi 20521 20522 20523 20524 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20525if test "x$ac_cv_type_uintptr_t" = xyes; then : 20526 20527$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 20528 20529else 20530 for ac_type in 'unsigned int' 'unsigned long int' \ 20531 'unsigned long long int'; do 20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20533/* end confdefs.h. */ 20534$ac_includes_default 20535int 20536main () 20537{ 20538static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 20539test_array [0] = 0; 20540return test_array [0]; 20541 20542 ; 20543 return 0; 20544} 20545_ACEOF 20546if ac_fn_c_try_compile "$LINENO"; then : 20547 20548cat >>confdefs.h <<_ACEOF 20549#define uintptr_t $ac_type 20550_ACEOF 20551 20552 ac_type= 20553fi 20554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20555 test -z "$ac_type" && break 20556 done 20557fi 20558 20559 20560 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 20561if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 20562 20563cat >>confdefs.h <<_ACEOF 20564#define HAVE_PTRDIFF_T 1 20565_ACEOF 20566 20567 20568fi 20569 20570 for ac_func in localeconv 20571do : 20572 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 20573if test "x$ac_cv_func_localeconv" = xyes; then : 20574 cat >>confdefs.h <<_ACEOF 20575#define HAVE_LOCALECONV 1 20576_ACEOF 20577 20578fi 20579done 20580 20581 20582 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20584$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20585if ${ac_cv_c_const+:} false; then : 20586 $as_echo_n "(cached) " >&6 20587else 20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20589/* end confdefs.h. */ 20590 20591int 20592main () 20593{ 20594 20595#ifndef __cplusplus 20596 /* Ultrix mips cc rejects this sort of thing. */ 20597 typedef int charset[2]; 20598 const charset cs = { 0, 0 }; 20599 /* SunOS 4.1.1 cc rejects this. */ 20600 char const *const *pcpcc; 20601 char **ppc; 20602 /* NEC SVR4.0.2 mips cc rejects this. */ 20603 struct point {int x, y;}; 20604 static struct point const zero = {0,0}; 20605 /* AIX XL C 1.02.0.0 rejects this. 20606 It does not let you subtract one const X* pointer from another in 20607 an arm of an if-expression whose if-part is not a constant 20608 expression */ 20609 const char *g = "string"; 20610 pcpcc = &g + (g ? g-g : 0); 20611 /* HPUX 7.0 cc rejects these. */ 20612 ++pcpcc; 20613 ppc = (char**) pcpcc; 20614 pcpcc = (char const *const *) ppc; 20615 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20616 char tx; 20617 char *t = &tx; 20618 char const *s = 0 ? (char *) 0 : (char const *) 0; 20619 20620 *t++ = 0; 20621 if (s) return 0; 20622 } 20623 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20624 int x[] = {25, 17}; 20625 const int *foo = &x[0]; 20626 ++foo; 20627 } 20628 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20629 typedef const int *iptr; 20630 iptr p = 0; 20631 ++p; 20632 } 20633 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20634 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20635 struct s { int j; const int *ap[3]; } bx; 20636 struct s *b = &bx; b->j = 5; 20637 } 20638 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20639 const int foo = 10; 20640 if (!foo) return 0; 20641 } 20642 return !cs[0] && !zero.x; 20643#endif 20644 20645 ; 20646 return 0; 20647} 20648_ACEOF 20649if ac_fn_c_try_compile "$LINENO"; then : 20650 ac_cv_c_const=yes 20651else 20652 ac_cv_c_const=no 20653fi 20654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20655fi 20656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20657$as_echo "$ac_cv_c_const" >&6; } 20658if test $ac_cv_c_const = no; then 20659 20660$as_echo "#define const /**/" >>confdefs.h 20661 20662fi 20663 20664 20665 20666 20667 case " $LIBOBJS " in 20668 *" snprintf.$ac_objext "* ) ;; 20669 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20670 ;; 20671esac 20672 20673 _hw_cv_func_xprintf_replace_done=yes 20674fi 20675 20676fi 20677 20678 20679 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20680if test "x$ac_cv_func_snprintf" = xyes; then : 20681 hw_cv_func_snprintf=yes 20682else 20683 hw_cv_func_snprintf=no 20684fi 20685 20686 if test "$hw_cv_func_snprintf" = yes; then : 20687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 20688$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 20689if ${hw_cv_func_snprintf_c99+:} false; then : 20690 $as_echo_n "(cached) " >&6 20691else 20692 if test "$cross_compiling" = yes; then : 20693 hw_cv_func_snprintf_c99=no 20694else 20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20696/* end confdefs.h. */ 20697#include <stdio.h> 20698int 20699main () 20700{ 20701char buf[43]; 20702 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20703 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20704 buf[0] != 'T' || buf[3] != '\0') 20705 return 1; 20706 ; 20707 return 0; 20708} 20709_ACEOF 20710if ac_fn_c_try_run "$LINENO"; then : 20711 hw_cv_func_snprintf_c99=yes 20712else 20713 hw_cv_func_snprintf_c99=no 20714fi 20715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20716 conftest.$ac_objext conftest.beam conftest.$ac_ext 20717fi 20718 20719fi 20720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 20721$as_echo "$hw_cv_func_snprintf_c99" >&6; } 20722else 20723 hw_cv_func_snprintf_c99=no 20724fi 20725 20726$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20727 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 20729$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 20730 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 20731 hw_use_rpl_snprintf=yes 20732else 20733 hw_use_rpl_snprintf=no 20734fi 20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 20736$as_echo "$hw_use_rpl_snprintf" >&6; } 20737 if test "$hw_use_rpl_snprintf" = yes; then : 20738 20739$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 20740 20741 if test ${hw_nodef_snprintf=no} = no; then : 20742 20743$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 20744 20745fi 20746 20747 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20749$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20750if ${ac_cv_c_const+:} false; then : 20751 $as_echo_n "(cached) " >&6 20752else 20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20754/* end confdefs.h. */ 20755 20756int 20757main () 20758{ 20759 20760#ifndef __cplusplus 20761 /* Ultrix mips cc rejects this sort of thing. */ 20762 typedef int charset[2]; 20763 const charset cs = { 0, 0 }; 20764 /* SunOS 4.1.1 cc rejects this. */ 20765 char const *const *pcpcc; 20766 char **ppc; 20767 /* NEC SVR4.0.2 mips cc rejects this. */ 20768 struct point {int x, y;}; 20769 static struct point const zero = {0,0}; 20770 /* AIX XL C 1.02.0.0 rejects this. 20771 It does not let you subtract one const X* pointer from another in 20772 an arm of an if-expression whose if-part is not a constant 20773 expression */ 20774 const char *g = "string"; 20775 pcpcc = &g + (g ? g-g : 0); 20776 /* HPUX 7.0 cc rejects these. */ 20777 ++pcpcc; 20778 ppc = (char**) pcpcc; 20779 pcpcc = (char const *const *) ppc; 20780 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20781 char tx; 20782 char *t = &tx; 20783 char const *s = 0 ? (char *) 0 : (char const *) 0; 20784 20785 *t++ = 0; 20786 if (s) return 0; 20787 } 20788 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20789 int x[] = {25, 17}; 20790 const int *foo = &x[0]; 20791 ++foo; 20792 } 20793 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20794 typedef const int *iptr; 20795 iptr p = 0; 20796 ++p; 20797 } 20798 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20799 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20800 struct s { int j; const int *ap[3]; } bx; 20801 struct s *b = &bx; b->j = 5; 20802 } 20803 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20804 const int foo = 10; 20805 if (!foo) return 0; 20806 } 20807 return !cs[0] && !zero.x; 20808#endif 20809 20810 ; 20811 return 0; 20812} 20813_ACEOF 20814if ac_fn_c_try_compile "$LINENO"; then : 20815 ac_cv_c_const=yes 20816else 20817 ac_cv_c_const=no 20818fi 20819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20820fi 20821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20822$as_echo "$ac_cv_c_const" >&6; } 20823if test $ac_cv_c_const = no; then 20824 20825$as_echo "#define const /**/" >>confdefs.h 20826 20827fi 20828 20829 20830 20831 20832 case " $LIBOBJS " in 20833 *" snprintf.$ac_objext "* ) ;; 20834 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20835 ;; 20836esac 20837 20838 _hw_cv_func_xprintf_replace_done=yes 20839fi 20840 20841fi 20842 20843 20844 20845 20846 20847# HMS: Save $LIBS and empty it. 20848# any LIBS we add here should go in to LDADD_LIBNTP 20849 20850__LIBS=$LIBS 20851LIBS= 20852 20853 20854 20855# [Bug 2332] because we need to know if we are using GNU ld... 20856 20857 20858# Check whether --with-gnu-ld was given. 20859if test "${with_gnu_ld+set}" = set; then : 20860 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 20861else 20862 with_gnu_ld=no 20863fi 20864 20865ac_prog=ld 20866if test "$GCC" = yes; then 20867 # Check if gcc -print-prog-name=ld gives a path. 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20869$as_echo_n "checking for ld used by $CC... " >&6; } 20870 case $host in 20871 *-*-mingw*) 20872 # gcc leaves a trailing carriage return which upsets mingw 20873 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20874 *) 20875 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20876 esac 20877 case $ac_prog in 20878 # Accept absolute paths. 20879 [\\/]* | ?:[\\/]*) 20880 re_direlt='/[^/][^/]*/\.\./' 20881 # Canonicalize the pathname of ld 20882 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20883 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20884 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20885 done 20886 test -z "$LD" && LD="$ac_prog" 20887 ;; 20888 "") 20889 # If it fails, then pretend we aren't using GCC. 20890 ac_prog=ld 20891 ;; 20892 *) 20893 # If it is relative, then search for the first ld in PATH. 20894 with_gnu_ld=unknown 20895 ;; 20896 esac 20897elif test "$with_gnu_ld" = yes; then 20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20899$as_echo_n "checking for GNU ld... " >&6; } 20900else 20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20902$as_echo_n "checking for non-GNU ld... " >&6; } 20903fi 20904if ${lt_cv_path_LD+:} false; then : 20905 $as_echo_n "(cached) " >&6 20906else 20907 if test -z "$LD"; then 20908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20909 for ac_dir in $PATH; do 20910 IFS="$lt_save_ifs" 20911 test -z "$ac_dir" && ac_dir=. 20912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20913 lt_cv_path_LD="$ac_dir/$ac_prog" 20914 # Check to see if the program is GNU ld. I'd rather use --version, 20915 # but apparently some variants of GNU ld only accept -v. 20916 # Break only if it was the GNU/non-GNU ld that we prefer. 20917 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20918 *GNU* | *'with BFD'*) 20919 test "$with_gnu_ld" != no && break 20920 ;; 20921 *) 20922 test "$with_gnu_ld" != yes && break 20923 ;; 20924 esac 20925 fi 20926 done 20927 IFS="$lt_save_ifs" 20928else 20929 lt_cv_path_LD="$LD" # Let the user override the test with a path. 20930fi 20931fi 20932 20933LD="$lt_cv_path_LD" 20934if test -n "$LD"; then 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20936$as_echo "$LD" >&6; } 20937else 20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20939$as_echo "no" >&6; } 20940fi 20941test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20943$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20944if ${lt_cv_prog_gnu_ld+:} false; then : 20945 $as_echo_n "(cached) " >&6 20946else 20947 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20948case `$LD -v 2>&1 </dev/null` in 20949*GNU* | *'with BFD'*) 20950 lt_cv_prog_gnu_ld=yes 20951 ;; 20952*) 20953 lt_cv_prog_gnu_ld=no 20954 ;; 20955esac 20956fi 20957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20958$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20959with_gnu_ld=$lt_cv_prog_gnu_ld 20960 20961 20962 20963 20964 20965 20966 20967 20968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 20969$as_echo_n "checking for directory path separator... " >&6; } 20970if ${ntp_cv_dir_sep+:} false; then : 20971 $as_echo_n "(cached) " >&6 20972else 20973 20974 case "$ntp_cv_dir_sep" in 20975 '') 20976 case "$host_os" in 20977 *djgpp | *mingw32* | *emx*) 20978 ntp_cv_dir_sep="'\\'" 20979 ;; 20980 *) 20981 ntp_cv_dir_sep="'/'" 20982 ;; 20983 esac 20984 esac 20985 20986 20987fi 20988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 20989$as_echo "$ntp_cv_dir_sep" >&6; } 20990 20991cat >>confdefs.h <<_ACEOF 20992#define DIR_SEP $ntp_cv_dir_sep 20993_ACEOF 20994 20995 20996 20997 NTP_ORIG_LIBS="$LIBS" 20998 20999# Check whether --with-lineeditlibs was given. 21000if test "${with_lineeditlibs+set}" = set; then : 21001 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 21002else 21003 use_lineeditlibs="edit,editline" 21004 21005fi 21006 21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 21008$as_echo_n "checking line editing libraries... " >&6; } 21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 21010$as_echo "$use_lineeditlibs" >&6; } 21011 case "$use_lineeditlibs" in 21012 no) 21013 ntp_lib_lineedit=no 21014 ;; 21015 *) 21016 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 21017 for term_lib in "" termcap curses ncurses; do 21018 case "$term_lib" in 21019 '') 21020 TRY_LIB="-l$lineedit_lib" 21021 ;; 21022 *) 21023 TRY_LIB="-l$lineedit_lib -l$term_lib" 21024 ;; 21025 esac 21026 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 21028$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21030/* end confdefs.h. */ 21031 21032/* Override any GCC internal prototype to avoid an error. 21033 Use char because int might match the return type of a GCC 21034 builtin and then its argument prototype would still apply. */ 21035#ifdef __cplusplus 21036extern "C" 21037#endif 21038char readline (); 21039int 21040main () 21041{ 21042return readline (); 21043 ; 21044 return 0; 21045} 21046_ACEOF 21047if ac_fn_c_try_link "$LINENO"; then : 21048 ntp_lib_lineedit="$TRY_LIB" 21049fi 21050rm -f core conftest.err conftest.$ac_objext \ 21051 conftest$ac_exeext conftest.$ac_ext 21052 case "$ntp_lib_lineedit" in 21053 '') 21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21055$as_echo "no" >&6; } 21056 ;; 21057 *) 21058 # Use readline() 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21060$as_echo "yes" >&6; } 21061 break 21062 esac 21063 case "$term_lib" in 21064 '') 21065 # do not try el_gets without a terminal library 21066 ;; 21067 *) 21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 21069$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 21070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21071/* end confdefs.h. */ 21072 21073/* Override any GCC internal prototype to avoid an error. 21074 Use char because int might match the return type of a GCC 21075 builtin and then its argument prototype would still apply. */ 21076#ifdef __cplusplus 21077extern "C" 21078#endif 21079char el_gets (); 21080int 21081main () 21082{ 21083return el_gets (); 21084 ; 21085 return 0; 21086} 21087_ACEOF 21088if ac_fn_c_try_link "$LINENO"; then : 21089 ntp_lib_lineedit="$TRY_LIB" 21090fi 21091rm -f core conftest.err conftest.$ac_objext \ 21092 conftest$ac_exeext conftest.$ac_ext 21093 case "$ntp_lib_lineedit" in 21094 '') 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21096$as_echo "no" >&6; } 21097 ;; 21098 *) # Use el_gets() 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21100$as_echo "yes" >&6; } 21101 break 21102 ;; 21103 esac # $ntp_lib_lineedit 21104 esac # $term_lib 21105 done 21106 case "$ntp_lib_lineedit" in 21107 '') 21108 ;; 21109 *) 21110 break 21111 ;; 21112 esac 21113 done 21114 LIBS="$NTP_ORIG_LIBS" 21115 ;; 21116 esac # $use_lineeditlibs 21117 21118 case "$ntp_lib_lineedit" in 21119 '') 21120 ntp_lib_lineedit="no" 21121 ;; 21122 no) 21123 ;; 21124 *) 21125 EDITLINE_LIBS="$ntp_lib_lineedit" 21126 21127 ;; 21128 esac # $ntp_lib_lineedit 21129 21130 case "$ntp_lib_lineedit" in 21131 no) 21132 ;; 21133 *) 21134 for ac_header in readline.h readline/readline.h histedit.h 21135do : 21136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21137ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21138if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21139 cat >>confdefs.h <<_ACEOF 21140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21141_ACEOF 21142 21143fi 21144 21145done 21146 21147 for ac_header in history.h readline/history.h 21148do : 21149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21152 cat >>confdefs.h <<_ACEOF 21153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21154_ACEOF 21155 21156fi 21157 21158done 21159 21160 21161 case "$ac_cv_header_histedit_h" in 21162 yes) 21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 21164$as_echo_n "checking number of arguments to el_init()... " >&6; } 21165if ${ntp_cv_el_init_args+:} false; then : 21166 $as_echo_n "(cached) " >&6 21167else 21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21169/* end confdefs.h. */ 21170 21171 #include <stdio.h> 21172 #include <histedit.h> 21173 21174int 21175main () 21176{ 21177 21178 el_init("conftest", stdin, stdout, stderr); 21179 21180 21181 ; 21182 return 0; 21183} 21184_ACEOF 21185if ac_fn_c_try_compile "$LINENO"; then : 21186 ntp_cv_el_init_args=4 21187else 21188 ntp_cv_el_init_args=3 21189 21190fi 21191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21192 21193fi 21194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 21195$as_echo "$ntp_cv_el_init_args" >&6; } 21196 21197cat >>confdefs.h <<_ACEOF 21198#define EL_INIT_ARGS $ntp_cv_el_init_args 21199_ACEOF 21200 21201 esac 21202 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 21204$as_echo_n "checking whether readline supports history... " >&6; } 21205 21206 ntp_lib_lineedit_history="no" 21207 ORIG_LIBS="$LIBS" 21208 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21210/* end confdefs.h. */ 21211 21212/* Override any GCC internal prototype to avoid an error. 21213 Use char because int might match the return type of a GCC 21214 builtin and then its argument prototype would still apply. */ 21215#ifdef __cplusplus 21216extern "C" 21217#endif 21218char add_history (); 21219int 21220main () 21221{ 21222return add_history (); 21223 ; 21224 return 0; 21225} 21226_ACEOF 21227if ac_fn_c_try_link "$LINENO"; then : 21228 ntp_lib_lineedit_history="yes" 21229fi 21230rm -f core conftest.err conftest.$ac_objext \ 21231 conftest$ac_exeext conftest.$ac_ext 21232 LIBS="$ORIG_LIBS" 21233 21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 21235$as_echo "$ntp_lib_lineedit_history" >&6; } 21236 21237 case "$ntp_lib_lineedit_history" in 21238 yes) 21239 21240$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 21241 21242 esac 21243 esac # $ntp_lib_lineedit 21244 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 21245 { ORIG_LIBS=; unset ORIG_LIBS;} 21246 { TRY_LIB=; unset TRY_LIB;} 21247 { use_lineeditlibs=; unset use_lineeditlibs;} 21248 21249 21250LIBM= 21251case "$host" in 21252 *-*-darwin*) 21253 ;; 21254 *) 21255 _libs=$LIBS 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 21257$as_echo_n "checking for library containing cos... " >&6; } 21258if ${ac_cv_search_cos+:} false; then : 21259 $as_echo_n "(cached) " >&6 21260else 21261 ac_func_search_save_LIBS=$LIBS 21262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21263/* end confdefs.h. */ 21264 21265/* Override any GCC internal prototype to avoid an error. 21266 Use char because int might match the return type of a GCC 21267 builtin and then its argument prototype would still apply. */ 21268#ifdef __cplusplus 21269extern "C" 21270#endif 21271char cos (); 21272int 21273main () 21274{ 21275return cos (); 21276 ; 21277 return 0; 21278} 21279_ACEOF 21280for ac_lib in '' m; do 21281 if test -z "$ac_lib"; then 21282 ac_res="none required" 21283 else 21284 ac_res=-l$ac_lib 21285 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21286 fi 21287 if ac_fn_c_try_link "$LINENO"; then : 21288 ac_cv_search_cos=$ac_res 21289fi 21290rm -f core conftest.err conftest.$ac_objext \ 21291 conftest$ac_exeext 21292 if ${ac_cv_search_cos+:} false; then : 21293 break 21294fi 21295done 21296if ${ac_cv_search_cos+:} false; then : 21297 21298else 21299 ac_cv_search_cos=no 21300fi 21301rm conftest.$ac_ext 21302LIBS=$ac_func_search_save_LIBS 21303fi 21304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 21305$as_echo "$ac_cv_search_cos" >&6; } 21306ac_res=$ac_cv_search_cos 21307if test "$ac_res" != no; then : 21308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21309 LIBM="-lm" 21310fi 21311 21312 LIBS=$_libs 21313 ;; 21314esac 21315 21316{ _libs=; unset _libs;} 21317 21318 21319for ac_header in vfork.h 21320do : 21321 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 21322if test "x$ac_cv_header_vfork_h" = xyes; then : 21323 cat >>confdefs.h <<_ACEOF 21324#define HAVE_VFORK_H 1 21325_ACEOF 21326 21327fi 21328 21329done 21330 21331for ac_func in fork vfork 21332do : 21333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21335if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21336 cat >>confdefs.h <<_ACEOF 21337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21338_ACEOF 21339 21340fi 21341done 21342 21343if test "x$ac_cv_func_fork" = xyes; then 21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 21345$as_echo_n "checking for working fork... " >&6; } 21346if ${ac_cv_func_fork_works+:} false; then : 21347 $as_echo_n "(cached) " >&6 21348else 21349 if test "$cross_compiling" = yes; then : 21350 ac_cv_func_fork_works=cross 21351else 21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21353/* end confdefs.h. */ 21354$ac_includes_default 21355int 21356main () 21357{ 21358 21359 /* By Ruediger Kuhlmann. */ 21360 return fork () < 0; 21361 21362 ; 21363 return 0; 21364} 21365_ACEOF 21366if ac_fn_c_try_run "$LINENO"; then : 21367 ac_cv_func_fork_works=yes 21368else 21369 ac_cv_func_fork_works=no 21370fi 21371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21372 conftest.$ac_objext conftest.beam conftest.$ac_ext 21373fi 21374 21375fi 21376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 21377$as_echo "$ac_cv_func_fork_works" >&6; } 21378 21379else 21380 ac_cv_func_fork_works=$ac_cv_func_fork 21381fi 21382if test "x$ac_cv_func_fork_works" = xcross; then 21383 case $host in 21384 *-*-amigaos* | *-*-msdosdjgpp*) 21385 # Override, as these systems have only a dummy fork() stub 21386 ac_cv_func_fork_works=no 21387 ;; 21388 *) 21389 ac_cv_func_fork_works=yes 21390 ;; 21391 esac 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 21393$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 21394fi 21395ac_cv_func_vfork_works=$ac_cv_func_vfork 21396if test "x$ac_cv_func_vfork" = xyes; then 21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 21398$as_echo_n "checking for working vfork... " >&6; } 21399if ${ac_cv_func_vfork_works+:} false; then : 21400 $as_echo_n "(cached) " >&6 21401else 21402 if test "$cross_compiling" = yes; then : 21403 ac_cv_func_vfork_works=cross 21404else 21405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21406/* end confdefs.h. */ 21407/* Thanks to Paul Eggert for this test. */ 21408$ac_includes_default 21409#include <sys/wait.h> 21410#ifdef HAVE_VFORK_H 21411# include <vfork.h> 21412#endif 21413/* On some sparc systems, changes by the child to local and incoming 21414 argument registers are propagated back to the parent. The compiler 21415 is told about this with #include <vfork.h>, but some compilers 21416 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 21417 static variable whose address is put into a register that is 21418 clobbered by the vfork. */ 21419static void 21420#ifdef __cplusplus 21421sparc_address_test (int arg) 21422# else 21423sparc_address_test (arg) int arg; 21424#endif 21425{ 21426 static pid_t child; 21427 if (!child) { 21428 child = vfork (); 21429 if (child < 0) { 21430 perror ("vfork"); 21431 _exit(2); 21432 } 21433 if (!child) { 21434 arg = getpid(); 21435 write(-1, "", 0); 21436 _exit (arg); 21437 } 21438 } 21439} 21440 21441int 21442main () 21443{ 21444 pid_t parent = getpid (); 21445 pid_t child; 21446 21447 sparc_address_test (0); 21448 21449 child = vfork (); 21450 21451 if (child == 0) { 21452 /* Here is another test for sparc vfork register problems. This 21453 test uses lots of local variables, at least as many local 21454 variables as main has allocated so far including compiler 21455 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 21456 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 21457 reuse the register of parent for one of the local variables, 21458 since it will think that parent can't possibly be used any more 21459 in this routine. Assigning to the local variable will thus 21460 munge parent in the parent process. */ 21461 pid_t 21462 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 21463 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 21464 /* Convince the compiler that p..p7 are live; otherwise, it might 21465 use the same hardware register for all 8 local variables. */ 21466 if (p != p1 || p != p2 || p != p3 || p != p4 21467 || p != p5 || p != p6 || p != p7) 21468 _exit(1); 21469 21470 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 21471 from child file descriptors. If the child closes a descriptor 21472 before it execs or exits, this munges the parent's descriptor 21473 as well. Test for this by closing stdout in the child. */ 21474 _exit(close(fileno(stdout)) != 0); 21475 } else { 21476 int status; 21477 struct stat st; 21478 21479 while (wait(&status) != child) 21480 ; 21481 return ( 21482 /* Was there some problem with vforking? */ 21483 child < 0 21484 21485 /* Did the child fail? (This shouldn't happen.) */ 21486 || status 21487 21488 /* Did the vfork/compiler bug occur? */ 21489 || parent != getpid() 21490 21491 /* Did the file descriptor bug occur? */ 21492 || fstat(fileno(stdout), &st) != 0 21493 ); 21494 } 21495} 21496_ACEOF 21497if ac_fn_c_try_run "$LINENO"; then : 21498 ac_cv_func_vfork_works=yes 21499else 21500 ac_cv_func_vfork_works=no 21501fi 21502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21503 conftest.$ac_objext conftest.beam conftest.$ac_ext 21504fi 21505 21506fi 21507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 21508$as_echo "$ac_cv_func_vfork_works" >&6; } 21509 21510fi; 21511if test "x$ac_cv_func_fork_works" = xcross; then 21512 ac_cv_func_vfork_works=$ac_cv_func_vfork 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 21514$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 21515fi 21516 21517if test "x$ac_cv_func_vfork_works" = xyes; then 21518 21519$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 21520 21521else 21522 21523$as_echo "#define vfork fork" >>confdefs.h 21524 21525fi 21526if test "x$ac_cv_func_fork_works" = xyes; then 21527 21528$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 21529 21530fi 21531 21532# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21533# for constant arguments. Useless! 21534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 21535$as_echo_n "checking for working alloca.h... " >&6; } 21536if ${ac_cv_working_alloca_h+:} false; then : 21537 $as_echo_n "(cached) " >&6 21538else 21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21540/* end confdefs.h. */ 21541#include <alloca.h> 21542int 21543main () 21544{ 21545char *p = (char *) alloca (2 * sizeof (int)); 21546 if (p) return 0; 21547 ; 21548 return 0; 21549} 21550_ACEOF 21551if ac_fn_c_try_link "$LINENO"; then : 21552 ac_cv_working_alloca_h=yes 21553else 21554 ac_cv_working_alloca_h=no 21555fi 21556rm -f core conftest.err conftest.$ac_objext \ 21557 conftest$ac_exeext conftest.$ac_ext 21558fi 21559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 21560$as_echo "$ac_cv_working_alloca_h" >&6; } 21561if test $ac_cv_working_alloca_h = yes; then 21562 21563$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 21564 21565fi 21566 21567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 21568$as_echo_n "checking for alloca... " >&6; } 21569if ${ac_cv_func_alloca_works+:} false; then : 21570 $as_echo_n "(cached) " >&6 21571else 21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21573/* end confdefs.h. */ 21574#ifdef __GNUC__ 21575# define alloca __builtin_alloca 21576#else 21577# ifdef _MSC_VER 21578# include <malloc.h> 21579# define alloca _alloca 21580# else 21581# ifdef HAVE_ALLOCA_H 21582# include <alloca.h> 21583# else 21584# ifdef _AIX 21585 #pragma alloca 21586# else 21587# ifndef alloca /* predefined by HP cc +Olibcalls */ 21588void *alloca (size_t); 21589# endif 21590# endif 21591# endif 21592# endif 21593#endif 21594 21595int 21596main () 21597{ 21598char *p = (char *) alloca (1); 21599 if (p) return 0; 21600 ; 21601 return 0; 21602} 21603_ACEOF 21604if ac_fn_c_try_link "$LINENO"; then : 21605 ac_cv_func_alloca_works=yes 21606else 21607 ac_cv_func_alloca_works=no 21608fi 21609rm -f core conftest.err conftest.$ac_objext \ 21610 conftest$ac_exeext conftest.$ac_ext 21611fi 21612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 21613$as_echo "$ac_cv_func_alloca_works" >&6; } 21614 21615if test $ac_cv_func_alloca_works = yes; then 21616 21617$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 21618 21619else 21620 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21621# that cause trouble. Some versions do not even contain alloca or 21622# contain a buggy version. If you still want to use their alloca, 21623# use ar to extract alloca.o from them instead of compiling alloca.c. 21624 21625ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 21626 21627$as_echo "#define C_ALLOCA 1" >>confdefs.h 21628 21629 21630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 21631$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 21632if ${ac_cv_os_cray+:} false; then : 21633 $as_echo_n "(cached) " >&6 21634else 21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21636/* end confdefs.h. */ 21637#if defined CRAY && ! defined CRAY2 21638webecray 21639#else 21640wenotbecray 21641#endif 21642 21643_ACEOF 21644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21645 $EGREP "webecray" >/dev/null 2>&1; then : 21646 ac_cv_os_cray=yes 21647else 21648 ac_cv_os_cray=no 21649fi 21650rm -f conftest* 21651 21652fi 21653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 21654$as_echo "$ac_cv_os_cray" >&6; } 21655if test $ac_cv_os_cray = yes; then 21656 for ac_func in _getb67 GETB67 getb67; do 21657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21659if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21660 21661cat >>confdefs.h <<_ACEOF 21662#define CRAY_STACKSEG_END $ac_func 21663_ACEOF 21664 21665 break 21666fi 21667 21668 done 21669fi 21670 21671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 21672$as_echo_n "checking stack direction for C alloca... " >&6; } 21673if ${ac_cv_c_stack_direction+:} false; then : 21674 $as_echo_n "(cached) " >&6 21675else 21676 if test "$cross_compiling" = yes; then : 21677 ac_cv_c_stack_direction=0 21678else 21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21680/* end confdefs.h. */ 21681$ac_includes_default 21682int 21683find_stack_direction (int *addr, int depth) 21684{ 21685 int dir, dummy = 0; 21686 if (! addr) 21687 addr = &dummy; 21688 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 21689 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 21690 return dir + dummy; 21691} 21692 21693int 21694main (int argc, char **argv) 21695{ 21696 return find_stack_direction (0, argc + !argv + 20) < 0; 21697} 21698_ACEOF 21699if ac_fn_c_try_run "$LINENO"; then : 21700 ac_cv_c_stack_direction=1 21701else 21702 ac_cv_c_stack_direction=-1 21703fi 21704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21705 conftest.$ac_objext conftest.beam conftest.$ac_ext 21706fi 21707 21708fi 21709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 21710$as_echo "$ac_cv_c_stack_direction" >&6; } 21711cat >>confdefs.h <<_ACEOF 21712#define STACK_DIRECTION $ac_cv_c_stack_direction 21713_ACEOF 21714 21715 21716fi 21717 21718ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 21719if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 21720 ac_have_decl=1 21721else 21722 ac_have_decl=0 21723fi 21724 21725cat >>confdefs.h <<_ACEOF 21726#define HAVE_DECL_STRERROR_R $ac_have_decl 21727_ACEOF 21728 21729for ac_func in strerror_r 21730do : 21731 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 21732if test "x$ac_cv_func_strerror_r" = xyes; then : 21733 cat >>confdefs.h <<_ACEOF 21734#define HAVE_STRERROR_R 1 21735_ACEOF 21736 21737fi 21738done 21739 21740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 21741$as_echo_n "checking whether strerror_r returns char *... " >&6; } 21742if ${ac_cv_func_strerror_r_char_p+:} false; then : 21743 $as_echo_n "(cached) " >&6 21744else 21745 21746 ac_cv_func_strerror_r_char_p=no 21747 if test $ac_cv_have_decl_strerror_r = yes; then 21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21749/* end confdefs.h. */ 21750$ac_includes_default 21751int 21752main () 21753{ 21754 21755 char buf[100]; 21756 char x = *strerror_r (0, buf, sizeof buf); 21757 char *p = strerror_r (0, buf, sizeof buf); 21758 return !p || x; 21759 21760 ; 21761 return 0; 21762} 21763_ACEOF 21764if ac_fn_c_try_compile "$LINENO"; then : 21765 ac_cv_func_strerror_r_char_p=yes 21766fi 21767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21768 else 21769 # strerror_r is not declared. Choose between 21770 # systems that have relatively inaccessible declarations for the 21771 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 21772 # former has a strerror_r that returns char*, while the latter 21773 # has a strerror_r that returns `int'. 21774 # This test should segfault on the DEC system. 21775 if test "$cross_compiling" = yes; then : 21776 : 21777else 21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21779/* end confdefs.h. */ 21780$ac_includes_default 21781 extern char *strerror_r (); 21782int 21783main () 21784{ 21785char buf[100]; 21786 char x = *strerror_r (0, buf, sizeof buf); 21787 return ! isalpha (x); 21788 ; 21789 return 0; 21790} 21791_ACEOF 21792if ac_fn_c_try_run "$LINENO"; then : 21793 ac_cv_func_strerror_r_char_p=yes 21794fi 21795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21796 conftest.$ac_objext conftest.beam conftest.$ac_ext 21797fi 21798 21799 fi 21800 21801fi 21802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 21803$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 21804if test $ac_cv_func_strerror_r_char_p = yes; then 21805 21806$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 21807 21808fi 21809 21810 21811ac_busted_vpath_in_make=no 21812case "$build" in 21813 *-*-irix6.1*) # 64 bit only 21814 # busted vpath? 21815 ;; 21816 *-*-irix6*) # 6.2 (and later?) 21817 ac_busted_vpath_in_make=yes 21818 ;; 21819 *-*-solaris2.5.1) 21820 ac_busted_vpath_in_make=yes 21821 ;; 21822 *-*-unicosmp*) 21823 ac_busted_vpath_in_make=yes 21824 ;; 21825esac 21826 21827case "$ac_busted_vpath_in_make$srcdir" in 21828 yes.|no*) 21829 ;; 21830 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 21831 '') 21832 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 21833 esac 21834 ;; 21835esac 21836 21837case "$host" in 21838 *-*-aix4*) 21839 # Bug 2516: 21840 # Was *-*-aix[[4-9]]* 21841 # XXX only verified thru AIX6. But... 21842 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 21843 # that this support would be in 5.3, removed in 6, and added back. 21844 # 21845 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 21846 # (returning ENOSYS). I didn't check 4.2. If, in the future, 21847 # IBM pulls its thumbs out long enough to implement clock_settime, 21848 # this conditional will need to change. Maybe use AC_TRY_RUN 21849 # instead to try to set the time to itself and check errno. 21850 ;; 21851 *) 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21853$as_echo_n "checking for library containing clock_gettime... " >&6; } 21854if ${ac_cv_search_clock_gettime+:} false; then : 21855 $as_echo_n "(cached) " >&6 21856else 21857 ac_func_search_save_LIBS=$LIBS 21858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21859/* end confdefs.h. */ 21860 21861/* Override any GCC internal prototype to avoid an error. 21862 Use char because int might match the return type of a GCC 21863 builtin and then its argument prototype would still apply. */ 21864#ifdef __cplusplus 21865extern "C" 21866#endif 21867char clock_gettime (); 21868int 21869main () 21870{ 21871return clock_gettime (); 21872 ; 21873 return 0; 21874} 21875_ACEOF 21876for ac_lib in '' rt; do 21877 if test -z "$ac_lib"; then 21878 ac_res="none required" 21879 else 21880 ac_res=-l$ac_lib 21881 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21882 fi 21883 if ac_fn_c_try_link "$LINENO"; then : 21884 ac_cv_search_clock_gettime=$ac_res 21885fi 21886rm -f core conftest.err conftest.$ac_objext \ 21887 conftest$ac_exeext 21888 if ${ac_cv_search_clock_gettime+:} false; then : 21889 break 21890fi 21891done 21892if ${ac_cv_search_clock_gettime+:} false; then : 21893 21894else 21895 ac_cv_search_clock_gettime=no 21896fi 21897rm conftest.$ac_ext 21898LIBS=$ac_func_search_save_LIBS 21899fi 21900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21901$as_echo "$ac_cv_search_clock_gettime" >&6; } 21902ac_res=$ac_cv_search_clock_gettime 21903if test "$ac_res" != no; then : 21904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21905 case "$ac_cv_search_clock_gettime" in 21906 'none required') ;; 21907 no) ;; 21908 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 21909 esac 21910 21911fi 21912 21913 for ac_func in clock_getres clock_gettime clock_settime 21914do : 21915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21917if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21918 cat >>confdefs.h <<_ACEOF 21919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21920_ACEOF 21921 21922fi 21923done 21924 21925 ;; 21926esac 21927 21928for ac_func in getclock stime timegm strlcpy strlcat 21929do : 21930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21931ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21932if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21933 cat >>confdefs.h <<_ACEOF 21934#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21935_ACEOF 21936 21937fi 21938done 21939 21940 21941# Bug 2713 21942LDADD_LIBUTIL= 21943 21944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 21945$as_echo_n "checking for library containing snprintb... " >&6; } 21946if ${ac_cv_search_snprintb+:} false; then : 21947 $as_echo_n "(cached) " >&6 21948else 21949 ac_func_search_save_LIBS=$LIBS 21950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21951/* end confdefs.h. */ 21952 21953/* Override any GCC internal prototype to avoid an error. 21954 Use char because int might match the return type of a GCC 21955 builtin and then its argument prototype would still apply. */ 21956#ifdef __cplusplus 21957extern "C" 21958#endif 21959char snprintb (); 21960int 21961main () 21962{ 21963return snprintb (); 21964 ; 21965 return 0; 21966} 21967_ACEOF 21968for ac_lib in '' util; do 21969 if test -z "$ac_lib"; then 21970 ac_res="none required" 21971 else 21972 ac_res=-l$ac_lib 21973 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21974 fi 21975 if ac_fn_c_try_link "$LINENO"; then : 21976 ac_cv_search_snprintb=$ac_res 21977fi 21978rm -f core conftest.err conftest.$ac_objext \ 21979 conftest$ac_exeext 21980 if ${ac_cv_search_snprintb+:} false; then : 21981 break 21982fi 21983done 21984if ${ac_cv_search_snprintb+:} false; then : 21985 21986else 21987 ac_cv_search_snprintb=no 21988fi 21989rm conftest.$ac_ext 21990LIBS=$ac_func_search_save_LIBS 21991fi 21992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 21993$as_echo "$ac_cv_search_snprintb" >&6; } 21994ac_res=$ac_cv_search_snprintb 21995if test "$ac_res" != no; then : 21996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21997 case "$ac_cv_search_snprintb" in 21998 'none required') ;; 21999 no) ;; 22000 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 22001 esac 22002 22003$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 22004 22005fi 22006 22007 22008# 22009for ac_header in errno.h sys/socket.h sys/types.h time.h 22010do : 22011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22012ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22014 cat >>confdefs.h <<_ACEOF 22015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22016_ACEOF 22017 22018fi 22019 22020done 22021 22022for ac_header in net/if.h 22023do : 22024 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 22025 #ifdef HAVE_SYS_SOCKET_H 22026 # include <sys/socket.h> 22027 #endif 22028 22029" 22030if test "x$ac_cv_header_net_if_h" = xyes; then : 22031 cat >>confdefs.h <<_ACEOF 22032#define HAVE_NET_IF_H 1 22033_ACEOF 22034 22035fi 22036 22037done 22038 22039case "$host" in 22040 *-hp-hpux*) 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 22042$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 22043if ${ntp_cv_predecl_mpinfou+:} false; then : 22044 $as_echo_n "(cached) " >&6 22045else 22046 22047 np_cv_predecl_mpinfou=no 22048 case "$ac_cv_header_net_if_h" in 22049 no) 22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22051/* end confdefs.h. */ 22052 22053 typedef union mpinfou { 22054 struct pdk_mpinfo *pdkptr; 22055 struct mpinfo *pikptr; 22056 } mpinfou_t; 22057 #ifdef HAVE_SYS_SOCKET_H 22058 # include <sys/socket.h> 22059 #endif 22060 #include <net/if.h> 22061 22062int 22063main () 22064{ 22065 22066 22067 22068 ; 22069 return 0; 22070} 22071_ACEOF 22072if ac_fn_c_try_compile "$LINENO"; then : 22073 22074 ntp_cv_predecl_mpinfou=yes 22075 ac_cv_header_net_if_h=yes 22076 22077 22078fi 22079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22080 esac 22081 22082 22083fi 22084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 22085$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 22086 case "$ntp_cv_predecl_mpinfou" in 22087 yes) 22088 cat >>confdefs.h <<_ACEOF 22089#ifndef MPINFOU_PREDECLARED 22090# define MPINFOU_PREDECLARED 22091typedef union mpinfou { 22092 struct pdk_mpinfo *pdkptr; 22093 struct mpinfo *pikptr; 22094} mpinfou_t; 22095#endif 22096_ACEOF 22097 22098 esac 22099esac 22100 22101case "$host" in 22102 *-linux*) 22103 for ac_header in linux/if_addr.h 22104do : 22105 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 22106 #ifdef HAVE_SYS_SOCKET_H 22107 # include <sys/socket.h> 22108 #endif 22109 22110" 22111if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 22112 cat >>confdefs.h <<_ACEOF 22113#define HAVE_LINUX_IF_ADDR_H 1 22114_ACEOF 22115 22116fi 22117 22118done 22119 22120esac 22121 22122for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 22123do : 22124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22125ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22127 cat >>confdefs.h <<_ACEOF 22128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22129_ACEOF 22130 22131fi 22132 22133done 22134 22135# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 22136for ac_header in sys/sysctl.h 22137do : 22138 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 22139 #if defined HAVE_SYS_PARAM_H 22140 # include <sys/param.h> 22141 #endif 22142 22143" 22144if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 22145 cat >>confdefs.h <<_ACEOF 22146#define HAVE_SYS_SYSCTL_H 1 22147_ACEOF 22148 22149fi 22150 22151done 22152 22153for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 22154do : 22155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22156ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22158 cat >>confdefs.h <<_ACEOF 22159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22160_ACEOF 22161 22162fi 22163 22164done 22165 22166 22167for ac_header in resolv.h 22168do : 22169 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 22170 #ifdef HAVE_SYS_TYPES_H 22171 # include <sys/types.h> 22172 #endif 22173 #ifdef HAVE_NETINET_IN_H 22174 # include <netinet/in.h> 22175 #endif 22176 #ifdef HAVE_ARPA_NAMESER_H 22177 # include <arpa/nameser.h> 22178 #endif 22179 22180" 22181if test "x$ac_cv_header_resolv_h" = xyes; then : 22182 cat >>confdefs.h <<_ACEOF 22183#define HAVE_RESOLV_H 1 22184_ACEOF 22185 22186fi 22187 22188done 22189 22190 22191for ac_header in net/if_var.h 22192do : 22193 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 22194 #if HAVE_SYS_TYPES_H 22195 # include <sys/types.h> 22196 #endif 22197 #ifdef HAVE_SYS_SOCKET_H 22198 # include <sys/socket.h> 22199 #endif 22200 #ifdef HAVE_NETINET_IN_H 22201 # include <netinet/in.h> 22202 #endif 22203 #ifdef HAVE_NET_IF_H 22204 # include <net/if.h> 22205 #endif 22206 22207" 22208if test "x$ac_cv_header_net_if_var_h" = xyes; then : 22209 cat >>confdefs.h <<_ACEOF 22210#define HAVE_NET_IF_VAR_H 1 22211_ACEOF 22212 22213fi 22214 22215done 22216 22217 22218for ac_header in netinet/ip.h netinet/in_var.h 22219do : 22220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22221ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 22222 #ifdef HAVE_SYS_TYPES_H 22223 # include <sys/types.h> 22224 #endif 22225 #ifdef HAVE_SYS_SOCKET_H 22226 # include <sys/socket.h> 22227 #endif 22228 #ifdef HAVE_NET_IF_H 22229 # include <net/if.h> 22230 #endif 22231 #ifdef HAVE_NETINET_IN_H 22232 # include <netinet/in.h> 22233 #endif 22234 #ifdef HAVE_NET_IF_VAR_H 22235 # include <net/if_var.h> 22236 #endif 22237 #ifdef HAVE_NETINET_IN_SYSTM_H 22238 # include <netinet/in_systm.h> 22239 #endif 22240 22241" 22242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22243 cat >>confdefs.h <<_ACEOF 22244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22245_ACEOF 22246 22247fi 22248 22249done 22250 22251 22252# HMS: Do we need to check for -lsocket before or after these tests? 22253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 22254$as_echo_n "checking for library containing inet_pton... " >&6; } 22255if ${ac_cv_search_inet_pton+:} false; then : 22256 $as_echo_n "(cached) " >&6 22257else 22258 ac_func_search_save_LIBS=$LIBS 22259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22260/* end confdefs.h. */ 22261 22262/* Override any GCC internal prototype to avoid an error. 22263 Use char because int might match the return type of a GCC 22264 builtin and then its argument prototype would still apply. */ 22265#ifdef __cplusplus 22266extern "C" 22267#endif 22268char inet_pton (); 22269int 22270main () 22271{ 22272return inet_pton (); 22273 ; 22274 return 0; 22275} 22276_ACEOF 22277for ac_lib in '' nsl; do 22278 if test -z "$ac_lib"; then 22279 ac_res="none required" 22280 else 22281 ac_res=-l$ac_lib 22282 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22283 fi 22284 if ac_fn_c_try_link "$LINENO"; then : 22285 ac_cv_search_inet_pton=$ac_res 22286fi 22287rm -f core conftest.err conftest.$ac_objext \ 22288 conftest$ac_exeext 22289 if ${ac_cv_search_inet_pton+:} false; then : 22290 break 22291fi 22292done 22293if ${ac_cv_search_inet_pton+:} false; then : 22294 22295else 22296 ac_cv_search_inet_pton=no 22297fi 22298rm conftest.$ac_ext 22299LIBS=$ac_func_search_save_LIBS 22300fi 22301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 22302$as_echo "$ac_cv_search_inet_pton" >&6; } 22303ac_res=$ac_cv_search_inet_pton 22304if test "$ac_res" != no; then : 22305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22306 case "$ac_cv_search_inet_pton" in 22307 'none required') ;; 22308 no) ;; 22309 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 22310 esac 22311 22312fi 22313 22314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 22315$as_echo_n "checking for library containing inet_ntop... " >&6; } 22316if ${ac_cv_search_inet_ntop+:} false; then : 22317 $as_echo_n "(cached) " >&6 22318else 22319 ac_func_search_save_LIBS=$LIBS 22320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22321/* end confdefs.h. */ 22322 22323/* Override any GCC internal prototype to avoid an error. 22324 Use char because int might match the return type of a GCC 22325 builtin and then its argument prototype would still apply. */ 22326#ifdef __cplusplus 22327extern "C" 22328#endif 22329char inet_ntop (); 22330int 22331main () 22332{ 22333return inet_ntop (); 22334 ; 22335 return 0; 22336} 22337_ACEOF 22338for ac_lib in '' resolv; do 22339 if test -z "$ac_lib"; then 22340 ac_res="none required" 22341 else 22342 ac_res=-l$ac_lib 22343 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 22344 fi 22345 if ac_fn_c_try_link "$LINENO"; then : 22346 ac_cv_search_inet_ntop=$ac_res 22347fi 22348rm -f core conftest.err conftest.$ac_objext \ 22349 conftest$ac_exeext 22350 if ${ac_cv_search_inet_ntop+:} false; then : 22351 break 22352fi 22353done 22354if ${ac_cv_search_inet_ntop+:} false; then : 22355 22356else 22357 ac_cv_search_inet_ntop=no 22358fi 22359rm conftest.$ac_ext 22360LIBS=$ac_func_search_save_LIBS 22361fi 22362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 22363$as_echo "$ac_cv_search_inet_ntop" >&6; } 22364ac_res=$ac_cv_search_inet_ntop 22365if test "$ac_res" != no; then : 22366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22367 case "$ac_cv_search_inet_ntop" in 22368 'none required') ;; 22369 no) ;; 22370 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 22371 esac 22372 22373fi 22374 22375 22376# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 22377# avoid keying on the OS name: If we find socket functions in 22378# libsocket, next try for them in libxnet without libsocket, if found, 22379# list both. If we simply tested libxnet first, we would find the 22380# functions there and never add libsocket. See also [Bug 660] 22381# http://bugs.ntp.org/show_bug.cgi?id=660#c9 22382saved_LIBS=$LIBS 22383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 22384$as_echo_n "checking for library containing setsockopt... " >&6; } 22385if ${ac_cv_search_setsockopt+:} false; then : 22386 $as_echo_n "(cached) " >&6 22387else 22388 ac_func_search_save_LIBS=$LIBS 22389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22390/* end confdefs.h. */ 22391 22392/* Override any GCC internal prototype to avoid an error. 22393 Use char because int might match the return type of a GCC 22394 builtin and then its argument prototype would still apply. */ 22395#ifdef __cplusplus 22396extern "C" 22397#endif 22398char setsockopt (); 22399int 22400main () 22401{ 22402return setsockopt (); 22403 ; 22404 return 0; 22405} 22406_ACEOF 22407for ac_lib in '' socket; do 22408 if test -z "$ac_lib"; then 22409 ac_res="none required" 22410 else 22411 ac_res=-l$ac_lib 22412 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22413 fi 22414 if ac_fn_c_try_link "$LINENO"; then : 22415 ac_cv_search_setsockopt=$ac_res 22416fi 22417rm -f core conftest.err conftest.$ac_objext \ 22418 conftest$ac_exeext 22419 if ${ac_cv_search_setsockopt+:} false; then : 22420 break 22421fi 22422done 22423if ${ac_cv_search_setsockopt+:} false; then : 22424 22425else 22426 ac_cv_search_setsockopt=no 22427fi 22428rm conftest.$ac_ext 22429LIBS=$ac_func_search_save_LIBS 22430fi 22431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 22432$as_echo "$ac_cv_search_setsockopt" >&6; } 22433ac_res=$ac_cv_search_setsockopt 22434if test "$ac_res" != no; then : 22435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22436 case "$ac_cv_search_setsockopt" in 22437 'none required') ;; 22438 no) ;; 22439 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 22440 esac 22441 22442fi 22443 22444case "$ac_cv_search_setsockopt" in 22445 -lsocket) 22446 LIBS="$saved_LIBS" 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 22448$as_echo_n "checking for library containing getsockopt... " >&6; } 22449if ${ac_cv_search_getsockopt+:} false; then : 22450 $as_echo_n "(cached) " >&6 22451else 22452 ac_func_search_save_LIBS=$LIBS 22453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22454/* end confdefs.h. */ 22455 22456/* Override any GCC internal prototype to avoid an error. 22457 Use char because int might match the return type of a GCC 22458 builtin and then its argument prototype would still apply. */ 22459#ifdef __cplusplus 22460extern "C" 22461#endif 22462char getsockopt (); 22463int 22464main () 22465{ 22466return getsockopt (); 22467 ; 22468 return 0; 22469} 22470_ACEOF 22471for ac_lib in '' xnet; do 22472 if test -z "$ac_lib"; then 22473 ac_res="none required" 22474 else 22475 ac_res=-l$ac_lib 22476 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22477 fi 22478 if ac_fn_c_try_link "$LINENO"; then : 22479 ac_cv_search_getsockopt=$ac_res 22480fi 22481rm -f core conftest.err conftest.$ac_objext \ 22482 conftest$ac_exeext 22483 if ${ac_cv_search_getsockopt+:} false; then : 22484 break 22485fi 22486done 22487if ${ac_cv_search_getsockopt+:} false; then : 22488 22489else 22490 ac_cv_search_getsockopt=no 22491fi 22492rm conftest.$ac_ext 22493LIBS=$ac_func_search_save_LIBS 22494fi 22495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 22496$as_echo "$ac_cv_search_getsockopt" >&6; } 22497ac_res=$ac_cv_search_getsockopt 22498if test "$ac_res" != no; then : 22499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22500 case "$ac_cv_search_getsockopt" in 22501 'none required') ;; 22502 no) ;; 22503 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 22504 esac 22505 22506fi 22507 22508 # XXX Possible trouble here - reading the comments above and looking at the 22509 # code below I wonder if we'll add -lxnet when we don't need it. 22510 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 22511 # there when it is not needed? 22512 case "$ac_cv_search_getsockopt" in 22513 -lxnet) 22514 LIBS="-lxnet -lsocket $saved_LIBS" 22515 ;; 22516 *) LIBS="-lsocket $saved_LIBS" 22517 ;; 22518 esac 22519 ;; 22520esac 22521{ saved_LIBS=; unset saved_LIBS;} 22522 22523# Bug 2427 - look for recvmsg here. 22524for ac_func in recvmsg 22525do : 22526 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 22527if test "x$ac_cv_func_recvmsg" = xyes; then : 22528 cat >>confdefs.h <<_ACEOF 22529#define HAVE_RECVMSG 1 22530_ACEOF 22531 22532fi 22533done 22534 22535 22536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 22537$as_echo_n "checking for inline... " >&6; } 22538if ${ac_cv_c_inline+:} false; then : 22539 $as_echo_n "(cached) " >&6 22540else 22541 ac_cv_c_inline=no 22542for ac_kw in inline __inline__ __inline; do 22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22544/* end confdefs.h. */ 22545#ifndef __cplusplus 22546typedef int foo_t; 22547static $ac_kw foo_t static_foo () {return 0; } 22548$ac_kw foo_t foo () {return 0; } 22549#endif 22550 22551_ACEOF 22552if ac_fn_c_try_compile "$LINENO"; then : 22553 ac_cv_c_inline=$ac_kw 22554fi 22555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22556 test "$ac_cv_c_inline" != no && break 22557done 22558 22559fi 22560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 22561$as_echo "$ac_cv_c_inline" >&6; } 22562 22563case $ac_cv_c_inline in 22564 inline | yes) ;; 22565 *) 22566 case $ac_cv_c_inline in 22567 no) ac_val=;; 22568 *) ac_val=$ac_cv_c_inline;; 22569 esac 22570 cat >>confdefs.h <<_ACEOF 22571#ifndef __cplusplus 22572#define inline $ac_val 22573#endif 22574_ACEOF 22575 ;; 22576esac 22577 22578 22579case "$ac_cv_c_inline" in 22580 '') 22581 ;; 22582 *) 22583 22584$as_echo "#define HAVE_INLINE 1" >>confdefs.h 22585 22586 22587esac 22588 22589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 22590$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 22591if ${ac_cv_header_time+:} false; then : 22592 $as_echo_n "(cached) " >&6 22593else 22594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22595/* end confdefs.h. */ 22596#include <sys/types.h> 22597#include <sys/time.h> 22598#include <time.h> 22599 22600int 22601main () 22602{ 22603if ((struct tm *) 0) 22604return 0; 22605 ; 22606 return 0; 22607} 22608_ACEOF 22609if ac_fn_c_try_compile "$LINENO"; then : 22610 ac_cv_header_time=yes 22611else 22612 ac_cv_header_time=no 22613fi 22614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22615fi 22616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 22617$as_echo "$ac_cv_header_time" >&6; } 22618if test $ac_cv_header_time = yes; then 22619 22620$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 22621 22622fi 22623 22624# The cast to long int works around a bug in the HP C Compiler 22625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22627# This bug is HP SR number 8606223364. 22628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 22629$as_echo_n "checking size of time_t... " >&6; } 22630if ${ac_cv_sizeof_time_t+:} false; then : 22631 $as_echo_n "(cached) " >&6 22632else 22633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 22634 22635else 22636 if test "$ac_cv_type_time_t" = yes; then 22637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22639as_fn_error 77 "cannot compute sizeof (time_t) 22640See \`config.log' for more details" "$LINENO" 5; } 22641 else 22642 ac_cv_sizeof_time_t=0 22643 fi 22644fi 22645 22646fi 22647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 22648$as_echo "$ac_cv_sizeof_time_t" >&6; } 22649 22650 22651 22652cat >>confdefs.h <<_ACEOF 22653#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 22654_ACEOF 22655 22656 22657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 22658$as_echo_n "checking whether char is unsigned... " >&6; } 22659if ${ac_cv_c_char_unsigned+:} false; then : 22660 $as_echo_n "(cached) " >&6 22661else 22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22663/* end confdefs.h. */ 22664$ac_includes_default 22665int 22666main () 22667{ 22668static int test_array [1 - 2 * !(((char) -1) < 0)]; 22669test_array [0] = 0; 22670return test_array [0]; 22671 22672 ; 22673 return 0; 22674} 22675_ACEOF 22676if ac_fn_c_try_compile "$LINENO"; then : 22677 ac_cv_c_char_unsigned=no 22678else 22679 ac_cv_c_char_unsigned=yes 22680fi 22681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22682fi 22683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 22684$as_echo "$ac_cv_c_char_unsigned" >&6; } 22685if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 22686 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 22687 22688fi 22689 # The cast to long int works around a bug in the HP C Compiler 22690# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22691# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22692# This bug is HP SR number 8606223364. 22693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 22694$as_echo_n "checking size of signed char... " >&6; } 22695if ${ac_cv_sizeof_signed_char+:} false; then : 22696 $as_echo_n "(cached) " >&6 22697else 22698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 22699 22700else 22701 if test "$ac_cv_type_signed_char" = yes; then 22702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22704as_fn_error 77 "cannot compute sizeof (signed char) 22705See \`config.log' for more details" "$LINENO" 5; } 22706 else 22707 ac_cv_sizeof_signed_char=0 22708 fi 22709fi 22710 22711fi 22712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 22713$as_echo "$ac_cv_sizeof_signed_char" >&6; } 22714 22715 22716 22717cat >>confdefs.h <<_ACEOF 22718#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 22719_ACEOF 22720 22721 22722ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 22723if test "x$ac_cv_type_s_char" = xyes; then : 22724 22725cat >>confdefs.h <<_ACEOF 22726#define HAVE_S_CHAR 1 22727_ACEOF 22728 22729 22730fi 22731ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 22732if test "x$ac_cv_type_long_long" = xyes; then : 22733 22734cat >>confdefs.h <<_ACEOF 22735#define HAVE_LONG_LONG 1 22736_ACEOF 22737 22738 22739fi 22740 22741# The cast to long int works around a bug in the HP C Compiler 22742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22744# This bug is HP SR number 8606223364. 22745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 22746$as_echo_n "checking size of short... " >&6; } 22747if ${ac_cv_sizeof_short+:} false; then : 22748 $as_echo_n "(cached) " >&6 22749else 22750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 22751 22752else 22753 if test "$ac_cv_type_short" = yes; then 22754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22756as_fn_error 77 "cannot compute sizeof (short) 22757See \`config.log' for more details" "$LINENO" 5; } 22758 else 22759 ac_cv_sizeof_short=0 22760 fi 22761fi 22762 22763fi 22764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 22765$as_echo "$ac_cv_sizeof_short" >&6; } 22766 22767 22768 22769cat >>confdefs.h <<_ACEOF 22770#define SIZEOF_SHORT $ac_cv_sizeof_short 22771_ACEOF 22772 22773 22774# The cast to long int works around a bug in the HP C Compiler 22775# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22776# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22777# This bug is HP SR number 8606223364. 22778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 22779$as_echo_n "checking size of int... " >&6; } 22780if ${ac_cv_sizeof_int+:} false; then : 22781 $as_echo_n "(cached) " >&6 22782else 22783 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 22784 22785else 22786 if test "$ac_cv_type_int" = yes; then 22787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22789as_fn_error 77 "cannot compute sizeof (int) 22790See \`config.log' for more details" "$LINENO" 5; } 22791 else 22792 ac_cv_sizeof_int=0 22793 fi 22794fi 22795 22796fi 22797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 22798$as_echo "$ac_cv_sizeof_int" >&6; } 22799 22800 22801 22802cat >>confdefs.h <<_ACEOF 22803#define SIZEOF_INT $ac_cv_sizeof_int 22804_ACEOF 22805 22806 22807# The cast to long int works around a bug in the HP C Compiler 22808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22810# This bug is HP SR number 8606223364. 22811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 22812$as_echo_n "checking size of long... " >&6; } 22813if ${ac_cv_sizeof_long+:} false; then : 22814 $as_echo_n "(cached) " >&6 22815else 22816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 22817 22818else 22819 if test "$ac_cv_type_long" = yes; then 22820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22822as_fn_error 77 "cannot compute sizeof (long) 22823See \`config.log' for more details" "$LINENO" 5; } 22824 else 22825 ac_cv_sizeof_long=0 22826 fi 22827fi 22828 22829fi 22830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 22831$as_echo "$ac_cv_sizeof_long" >&6; } 22832 22833 22834 22835cat >>confdefs.h <<_ACEOF 22836#define SIZEOF_LONG $ac_cv_sizeof_long 22837_ACEOF 22838 22839 22840 22841case "$ac_cv_type_long_long" in 22842 no) 22843 ;; 22844 *) 22845 # The cast to long int works around a bug in the HP C Compiler 22846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22848# This bug is HP SR number 8606223364. 22849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 22850$as_echo_n "checking size of long long... " >&6; } 22851if ${ac_cv_sizeof_long_long+:} false; then : 22852 $as_echo_n "(cached) " >&6 22853else 22854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 22855 22856else 22857 if test "$ac_cv_type_long_long" = yes; then 22858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22860as_fn_error 77 "cannot compute sizeof (long long) 22861See \`config.log' for more details" "$LINENO" 5; } 22862 else 22863 ac_cv_sizeof_long_long=0 22864 fi 22865fi 22866 22867fi 22868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 22869$as_echo "$ac_cv_sizeof_long_long" >&6; } 22870 22871 22872 22873cat >>confdefs.h <<_ACEOF 22874#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 22875_ACEOF 22876 22877 22878 ;; 22879esac 22880 22881case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 22882 *yes) 22883 # We have a typedef for s_char. Might as well believe it... 22884 ;; 22885 no0no) 22886 # We have signed chars, can't say 'signed char', no s_char typedef. 22887 22888$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22889 22890 ;; 22891 no1no) 22892 # We have signed chars, can say 'signed char', no s_char typedef. 22893 22894$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22895 22896 ;; 22897 yes0no) 22898 # We have unsigned chars, can't say 'signed char', no s_char typedef. 22899 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 22900 ;; 22901 yes1no) 22902 # We have unsigned chars, can say 'signed char', no s_char typedef. 22903 22904$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22905 22906 ;; 22907esac 22908 22909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 22910$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 22911if ${ac_cv_type_uid_t+:} false; then : 22912 $as_echo_n "(cached) " >&6 22913else 22914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22915/* end confdefs.h. */ 22916#include <sys/types.h> 22917 22918_ACEOF 22919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22920 $EGREP "uid_t" >/dev/null 2>&1; then : 22921 ac_cv_type_uid_t=yes 22922else 22923 ac_cv_type_uid_t=no 22924fi 22925rm -f conftest* 22926 22927fi 22928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 22929$as_echo "$ac_cv_type_uid_t" >&6; } 22930if test $ac_cv_type_uid_t = no; then 22931 22932$as_echo "#define uid_t int" >>confdefs.h 22933 22934 22935$as_echo "#define gid_t int" >>confdefs.h 22936 22937fi 22938 22939 22940 22941 22942 22943 22944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 22945$as_echo_n "checking if we're including debugging code... " >&6; } 22946# Check whether --enable-debugging was given. 22947if test "${enable_debugging+set}" = set; then : 22948 enableval=$enable_debugging; ntp_ok=$enableval 22949else 22950 ntp_ok=yes 22951 22952fi 22953 22954case "$ntp_ok" in 22955 yes) 22956 22957$as_echo "#define DEBUG 1" >>confdefs.h 22958 22959esac 22960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22961$as_echo "$ntp_ok" >&6; } 22962 22963 22964 22965# check if we can compile with pthreads 22966for ac_header in semaphore.h 22967do : 22968 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 22969if test "x$ac_cv_header_semaphore_h" = xyes; then : 22970 cat >>confdefs.h <<_ACEOF 22971#define HAVE_SEMAPHORE_H 1 22972_ACEOF 22973 22974fi 22975 22976done 22977 22978for ac_func in socketpair 22979do : 22980 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 22981if test "x$ac_cv_func_socketpair" = xyes; then : 22982 cat >>confdefs.h <<_ACEOF 22983#define HAVE_SOCKETPAIR 1 22984_ACEOF 22985 22986fi 22987done 22988 22989# Check whether --enable-thread-support was given. 22990if test "${enable_thread_support+set}" = set; then : 22991 enableval=$enable_thread_support; 22992else 22993 enable_thread_support=yes 22994 22995fi 22996 22997have_pthreads=no 22998case "$enable_thread_support" in 22999 no) ;; 23000 *) 23001 ol_found_pthreads=no 23002 23003 23004 23005ac_ext=c 23006ac_cpp='$CPP $CPPFLAGS' 23007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23009ac_compiler_gnu=$ac_cv_c_compiler_gnu 23010 23011# OpenLDAP --with-threads 23012 23013# Check whether --with-threads was given. 23014if test "${with_threads+set}" = set; then : 23015 withval=$with_threads; 23016 ol_arg=invalid 23017 for ol_val in auto nt posix mach pth lwp yes no manual ; do 23018 if test "$withval" = "$ol_val" ; then 23019 ol_arg="$ol_val" 23020 fi 23021 done 23022 if test "$ol_arg" = "invalid" ; then 23023 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 23024 fi 23025 ol_with_threads="$ol_arg" 23026 23027else 23028 ol_with_threads="auto" 23029fi 23030# end --with-threads 23031 23032 23033case "$ol_with_threads$host" in 23034 auto*-*-solaris2.[0-6]) 23035 ol_with_threads=no 23036 ;; 23037esac 23038 23039 23040ol_aix_threads=no 23041case "$host" in 23042*-*-aix*) if test -z "$CC" ; then 23043 case "$ol_with_threads" in 23044 auto | yes | posix) ol_aix_threads=yes ;; 23045 esac 23046 fi 23047;; 23048esac 23049 23050if test $ol_aix_threads = yes ; then 23051 if test -z "${CC}" ; then 23052 for ac_prog in cc_r xlc_r cc 23053do 23054 # Extract the first word of "$ac_prog", so it can be a program name with args. 23055set dummy $ac_prog; ac_word=$2 23056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23057$as_echo_n "checking for $ac_word... " >&6; } 23058if ${ac_cv_prog_CC+:} false; then : 23059 $as_echo_n "(cached) " >&6 23060else 23061 if test -n "$CC"; then 23062 ac_cv_prog_CC="$CC" # Let the user override the test. 23063else 23064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23065for as_dir in $PATH 23066do 23067 IFS=$as_save_IFS 23068 test -z "$as_dir" && as_dir=. 23069 for ac_exec_ext in '' $ac_executable_extensions; do 23070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23071 ac_cv_prog_CC="$ac_prog" 23072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23073 break 2 23074 fi 23075done 23076 done 23077IFS=$as_save_IFS 23078 23079fi 23080fi 23081CC=$ac_cv_prog_CC 23082if test -n "$CC"; then 23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 23084$as_echo "$CC" >&6; } 23085else 23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23087$as_echo "no" >&6; } 23088fi 23089 23090 23091 test -n "$CC" && break 23092done 23093 23094 23095 if test "$CC" = cc ; then 23096 if test $ol_with_threads != auto ; then 23097 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 23098 else 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 23100$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 23101 fi 23102 ol_with_threads=no 23103 fi 23104 fi 23105 23106 case ${CC} in cc_r | xlc_r) 23107 ol_with_threads=posix 23108 ol_cv_pthread_create=yes 23109 ;; 23110 esac 23111fi 23112 23113ol_link_threads=no 23114# OpenLDAP --with-yielding_select 23115 23116# Check whether --with-yielding_select was given. 23117if test "${with_yielding_select+set}" = set; then : 23118 withval=$with_yielding_select; 23119 ol_arg=invalid 23120 for ol_val in auto yes no manual ; do 23121 if test "$withval" = "$ol_val" ; then 23122 ol_arg="$ol_val" 23123 fi 23124 done 23125 if test "$ol_arg" = "invalid" ; then 23126 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 23127 fi 23128 ol_with_yielding_select="$ol_arg" 23129 23130else 23131 ol_with_yielding_select="auto" 23132fi 23133# end --with-yielding_select 23134 23135 23136case $ol_with_threads in auto | yes | nt) 23137 23138 23139 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 23140if test "x$ac_cv_func__beginthread" = xyes; then : 23141 23142fi 23143 23144 23145 if test $ac_cv_func__beginthread = yes ; then 23146 23147$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 23148 23149 ol_cv_nt_threads=yes 23150 fi 23151 23152 23153 if test "$ol_cv_nt_threads" = yes ; then 23154 ol_link_threads=nt 23155 ol_with_threads=found 23156 ol_with_yielding_select=yes 23157 23158 23159$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 23160 23161 23162$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 23163 23164 fi 23165 23166 if test $ol_with_threads = nt ; then 23167 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 23168 fi 23169 ;; 23170esac 23171 23172case $ol_with_threads in auto | yes | posix) 23173 23174 for ac_header in pthread.h 23175do : 23176 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 23177if test "x$ac_cv_header_pthread_h" = xyes; then : 23178 cat >>confdefs.h <<_ACEOF 23179#define HAVE_PTHREAD_H 1 23180_ACEOF 23181 23182fi 23183 23184done 23185 23186 23187 if test $ac_cv_header_pthread_h = yes ; then 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 23189$as_echo_n "checking POSIX thread version... " >&6; } 23190if ${ol_cv_pthread_version+:} false; then : 23191 $as_echo_n "(cached) " >&6 23192else 23193 23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23195/* end confdefs.h. */ 23196 23197# include <pthread.h> 23198 23199int 23200main () 23201{ 23202 23203 int i = PTHREAD_CREATE_JOINABLE; 23204 23205 ; 23206 return 0; 23207} 23208_ACEOF 23209if ac_fn_c_try_compile "$LINENO"; then : 23210 23211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23212/* end confdefs.h. */ 23213#include <pthread.h> 23214 23215_ACEOF 23216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23217 $EGREP "pthread_detach" >/dev/null 2>&1; then : 23218 ol_cv_pthread_version=10 23219else 23220 ol_cv_pthread_version=8 23221fi 23222rm -f conftest* 23223 23224else 23225 23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23227/* end confdefs.h. */ 23228 23229# include <pthread.h> 23230# ifdef PTHREAD_CREATE_UNDETACHED 23231 draft7 23232# endif 23233 23234_ACEOF 23235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23236 $EGREP "draft7" >/dev/null 2>&1; then : 23237 ol_cv_pthread_version=7 23238else 23239 23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23241/* end confdefs.h. */ 23242#include <pthread.h> 23243 23244_ACEOF 23245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23246 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 23247 ol_cv_pthread_version=6 23248else 23249 23250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23251/* end confdefs.h. */ 23252 23253# include <pthread.h> 23254#ifdef PTHREAD_MUTEX_INITIALIZER 23255 draft5 23256#endif 23257 23258_ACEOF 23259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23260 $EGREP "draft5" >/dev/null 2>&1; then : 23261 ol_cv_pthread_version=5 23262else 23263 ol_cv_pthread_version=4 23264fi 23265rm -f conftest* 23266 23267fi 23268rm -f conftest* 23269 23270fi 23271rm -f conftest* 23272 23273fi 23274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23275 23276fi 23277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 23278$as_echo "$ol_cv_pthread_version" >&6; } 23279 23280 23281 if test $ol_cv_pthread_version != 0 ; then 23282 23283cat >>confdefs.h <<_ACEOF 23284#define HAVE_PTHREADS $ol_cv_pthread_version 23285_ACEOF 23286 23287 else 23288 as_fn_error $? "unknown pthread version" "$LINENO" 5 23289 fi 23290 23291 # consider threads found 23292 ol_with_threads=found 23293 23294 23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 23296$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 23297if ${ol_cv_header_linux_threads+:} false; then : 23298 $as_echo_n "(cached) " >&6 23299else 23300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23301/* end confdefs.h. */ 23302#include <pthread.h> 23303_ACEOF 23304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23305 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 23306 ol_cv_header_linux_threads=yes 23307else 23308 ol_cv_header_linux_threads=no 23309fi 23310rm -f conftest* 23311 23312 23313fi 23314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 23315$as_echo "$ol_cv_header_linux_threads" >&6; } 23316 if test $ol_cv_header_linux_threads = yes; then 23317 23318$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 23319 23320 fi 23321 23322 23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 23324$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 23325if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 23326 $as_echo_n "(cached) " >&6 23327else 23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23329/* end confdefs.h. */ 23330#include <pthread.h> 23331#ifdef _POSIX_THREAD_IS_GNU_PTH 23332 __gnu_pth__; 23333#endif 23334 23335_ACEOF 23336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23337 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 23338 ol_cv_header_gnu_pth_pthread_h=yes 23339else 23340 ol_cv_header_gnu_pth_pthread_h=no 23341fi 23342rm -f conftest* 23343 23344 23345fi 23346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 23347$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 23348 23349 23350 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 23351 for ac_header in sched.h 23352do : 23353 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 23354if test "x$ac_cv_header_sched_h" = xyes; then : 23355 cat >>confdefs.h <<_ACEOF 23356#define HAVE_SCHED_H 1 23357_ACEOF 23358 23359fi 23360 23361done 23362 23363 fi 23364 23365 23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 23367$as_echo_n "checking for pthread_create in default libraries... " >&6; } 23368if ${ol_cv_pthread_create+:} false; then : 23369 $as_echo_n "(cached) " >&6 23370else 23371 23372 if test "$cross_compiling" = yes; then : 23373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23374/* end confdefs.h. */ 23375 23376/* pthread test headers */ 23377#include <pthread.h> 23378#if HAVE_PTHREADS < 7 23379#include <errno.h> 23380#endif 23381#ifndef NULL 23382#define NULL (void*)0 23383#endif 23384 23385static void *task(p) 23386 void *p; 23387{ 23388 return (void *) (p == NULL); 23389} 23390 23391int 23392main () 23393{ 23394 23395 /* pthread test function */ 23396#ifndef PTHREAD_CREATE_DETACHED 23397#define PTHREAD_CREATE_DETACHED 1 23398#endif 23399 pthread_t t; 23400 int status; 23401 int detach = PTHREAD_CREATE_DETACHED; 23402 23403#if HAVE_PTHREADS > 4 23404 /* Final pthreads */ 23405 pthread_attr_t attr; 23406 23407 status = pthread_attr_init(&attr); 23408 if( status ) return status; 23409 23410#if HAVE_PTHREADS < 7 23411 status = pthread_attr_setdetachstate(&attr, &detach); 23412 if( status < 0 ) status = errno; 23413#else 23414 status = pthread_attr_setdetachstate(&attr, detach); 23415#endif 23416 if( status ) return status; 23417 status = pthread_create( &t, &attr, task, NULL ); 23418#if HAVE_PTHREADS < 7 23419 if( status < 0 ) status = errno; 23420#endif 23421 if( status ) return status; 23422#else 23423 /* Draft 4 pthreads */ 23424 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23425 if( status ) return errno; 23426 23427 /* give thread a chance to complete */ 23428 /* it should remain joinable and hence detachable */ 23429 sleep( 1 ); 23430 23431 status = pthread_detach( &t ); 23432 if( status ) return errno; 23433#endif 23434 23435#ifdef HAVE_LINUX_THREADS 23436 pthread_kill_other_threads_np(); 23437#endif 23438 23439 return 0; 23440 23441 ; 23442 return 0; 23443} 23444_ACEOF 23445if ac_fn_c_try_link "$LINENO"; then : 23446 ol_cv_pthread_create=yes 23447else 23448 ol_cv_pthread_create=no 23449fi 23450rm -f core conftest.err conftest.$ac_objext \ 23451 conftest$ac_exeext conftest.$ac_ext 23452else 23453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23454/* end confdefs.h. */ 23455 23456 23457/* pthread test headers */ 23458#include <pthread.h> 23459#if HAVE_PTHREADS < 7 23460#include <errno.h> 23461#endif 23462#ifndef NULL 23463#define NULL (void*)0 23464#endif 23465 23466static void *task(p) 23467 void *p; 23468{ 23469 return (void *) (p == NULL); 23470} 23471 23472 23473int main(argc, argv) 23474 int argc; 23475 char **argv; 23476{ 23477 23478 /* pthread test function */ 23479#ifndef PTHREAD_CREATE_DETACHED 23480#define PTHREAD_CREATE_DETACHED 1 23481#endif 23482 pthread_t t; 23483 int status; 23484 int detach = PTHREAD_CREATE_DETACHED; 23485 23486#if HAVE_PTHREADS > 4 23487 /* Final pthreads */ 23488 pthread_attr_t attr; 23489 23490 status = pthread_attr_init(&attr); 23491 if( status ) return status; 23492 23493#if HAVE_PTHREADS < 7 23494 status = pthread_attr_setdetachstate(&attr, &detach); 23495 if( status < 0 ) status = errno; 23496#else 23497 status = pthread_attr_setdetachstate(&attr, detach); 23498#endif 23499 if( status ) return status; 23500 status = pthread_create( &t, &attr, task, NULL ); 23501#if HAVE_PTHREADS < 7 23502 if( status < 0 ) status = errno; 23503#endif 23504 if( status ) return status; 23505#else 23506 /* Draft 4 pthreads */ 23507 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23508 if( status ) return errno; 23509 23510 /* give thread a chance to complete */ 23511 /* it should remain joinable and hence detachable */ 23512 sleep( 1 ); 23513 23514 status = pthread_detach( &t ); 23515 if( status ) return errno; 23516#endif 23517 23518#ifdef HAVE_LINUX_THREADS 23519 pthread_kill_other_threads_np(); 23520#endif 23521 23522 return 0; 23523 23524} 23525 23526_ACEOF 23527if ac_fn_c_try_run "$LINENO"; then : 23528 ol_cv_pthread_create=yes 23529else 23530 ol_cv_pthread_create=no 23531fi 23532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23533 conftest.$ac_objext conftest.beam conftest.$ac_ext 23534fi 23535 23536fi 23537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 23538$as_echo "$ol_cv_pthread_create" >&6; } 23539 23540 if test $ol_cv_pthread_create != no ; then 23541 ol_link_threads=posix 23542 ol_link_pthreads="" 23543 fi 23544 23545 # Pthread try link: -kthread (ol_cv_pthread_kthread) 23546if test "$ol_link_threads" = no ; then 23547 # try -kthread 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 23549$as_echo_n "checking for pthread link with -kthread... " >&6; } 23550if ${ol_cv_pthread_kthread+:} false; then : 23551 $as_echo_n "(cached) " >&6 23552else 23553 23554 # save the flags 23555 ol_LIBS="$LIBS" 23556 LIBS="-kthread $LIBS" 23557 23558 if test "$cross_compiling" = yes; then : 23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23560/* end confdefs.h. */ 23561 23562/* pthread test headers */ 23563#include <pthread.h> 23564#if HAVE_PTHREADS < 7 23565#include <errno.h> 23566#endif 23567#ifndef NULL 23568#define NULL (void*)0 23569#endif 23570 23571static void *task(p) 23572 void *p; 23573{ 23574 return (void *) (p == NULL); 23575} 23576 23577int 23578main () 23579{ 23580 23581 /* pthread test function */ 23582#ifndef PTHREAD_CREATE_DETACHED 23583#define PTHREAD_CREATE_DETACHED 1 23584#endif 23585 pthread_t t; 23586 int status; 23587 int detach = PTHREAD_CREATE_DETACHED; 23588 23589#if HAVE_PTHREADS > 4 23590 /* Final pthreads */ 23591 pthread_attr_t attr; 23592 23593 status = pthread_attr_init(&attr); 23594 if( status ) return status; 23595 23596#if HAVE_PTHREADS < 7 23597 status = pthread_attr_setdetachstate(&attr, &detach); 23598 if( status < 0 ) status = errno; 23599#else 23600 status = pthread_attr_setdetachstate(&attr, detach); 23601#endif 23602 if( status ) return status; 23603 status = pthread_create( &t, &attr, task, NULL ); 23604#if HAVE_PTHREADS < 7 23605 if( status < 0 ) status = errno; 23606#endif 23607 if( status ) return status; 23608#else 23609 /* Draft 4 pthreads */ 23610 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23611 if( status ) return errno; 23612 23613 /* give thread a chance to complete */ 23614 /* it should remain joinable and hence detachable */ 23615 sleep( 1 ); 23616 23617 status = pthread_detach( &t ); 23618 if( status ) return errno; 23619#endif 23620 23621#ifdef HAVE_LINUX_THREADS 23622 pthread_kill_other_threads_np(); 23623#endif 23624 23625 return 0; 23626 23627 ; 23628 return 0; 23629} 23630_ACEOF 23631if ac_fn_c_try_link "$LINENO"; then : 23632 ol_cv_pthread_kthread=yes 23633else 23634 ol_cv_pthread_kthread=no 23635fi 23636rm -f core conftest.err conftest.$ac_objext \ 23637 conftest$ac_exeext conftest.$ac_ext 23638else 23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23640/* end confdefs.h. */ 23641 23642 23643/* pthread test headers */ 23644#include <pthread.h> 23645#if HAVE_PTHREADS < 7 23646#include <errno.h> 23647#endif 23648#ifndef NULL 23649#define NULL (void*)0 23650#endif 23651 23652static void *task(p) 23653 void *p; 23654{ 23655 return (void *) (p == NULL); 23656} 23657 23658 23659int main(argc, argv) 23660 int argc; 23661 char **argv; 23662{ 23663 23664 /* pthread test function */ 23665#ifndef PTHREAD_CREATE_DETACHED 23666#define PTHREAD_CREATE_DETACHED 1 23667#endif 23668 pthread_t t; 23669 int status; 23670 int detach = PTHREAD_CREATE_DETACHED; 23671 23672#if HAVE_PTHREADS > 4 23673 /* Final pthreads */ 23674 pthread_attr_t attr; 23675 23676 status = pthread_attr_init(&attr); 23677 if( status ) return status; 23678 23679#if HAVE_PTHREADS < 7 23680 status = pthread_attr_setdetachstate(&attr, &detach); 23681 if( status < 0 ) status = errno; 23682#else 23683 status = pthread_attr_setdetachstate(&attr, detach); 23684#endif 23685 if( status ) return status; 23686 status = pthread_create( &t, &attr, task, NULL ); 23687#if HAVE_PTHREADS < 7 23688 if( status < 0 ) status = errno; 23689#endif 23690 if( status ) return status; 23691#else 23692 /* Draft 4 pthreads */ 23693 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23694 if( status ) return errno; 23695 23696 /* give thread a chance to complete */ 23697 /* it should remain joinable and hence detachable */ 23698 sleep( 1 ); 23699 23700 status = pthread_detach( &t ); 23701 if( status ) return errno; 23702#endif 23703 23704#ifdef HAVE_LINUX_THREADS 23705 pthread_kill_other_threads_np(); 23706#endif 23707 23708 return 0; 23709 23710} 23711 23712_ACEOF 23713if ac_fn_c_try_run "$LINENO"; then : 23714 ol_cv_pthread_kthread=yes 23715else 23716 ol_cv_pthread_kthread=no 23717fi 23718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23719 conftest.$ac_objext conftest.beam conftest.$ac_ext 23720fi 23721 23722 23723 # restore the LIBS 23724 LIBS="$ol_LIBS" 23725 23726fi 23727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 23728$as_echo "$ol_cv_pthread_kthread" >&6; } 23729 23730 if test $ol_cv_pthread_kthread = yes ; then 23731 ol_link_pthreads="-kthread" 23732 ol_link_threads=posix 23733 fi 23734fi 23735 23736 # Pthread try link: -pthread (ol_cv_pthread_pthread) 23737if test "$ol_link_threads" = no ; then 23738 # try -pthread 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 23740$as_echo_n "checking for pthread link with -pthread... " >&6; } 23741if ${ol_cv_pthread_pthread+:} false; then : 23742 $as_echo_n "(cached) " >&6 23743else 23744 23745 # save the flags 23746 ol_LIBS="$LIBS" 23747 LIBS="-pthread $LIBS" 23748 23749 if test "$cross_compiling" = yes; then : 23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23751/* end confdefs.h. */ 23752 23753/* pthread test headers */ 23754#include <pthread.h> 23755#if HAVE_PTHREADS < 7 23756#include <errno.h> 23757#endif 23758#ifndef NULL 23759#define NULL (void*)0 23760#endif 23761 23762static void *task(p) 23763 void *p; 23764{ 23765 return (void *) (p == NULL); 23766} 23767 23768int 23769main () 23770{ 23771 23772 /* pthread test function */ 23773#ifndef PTHREAD_CREATE_DETACHED 23774#define PTHREAD_CREATE_DETACHED 1 23775#endif 23776 pthread_t t; 23777 int status; 23778 int detach = PTHREAD_CREATE_DETACHED; 23779 23780#if HAVE_PTHREADS > 4 23781 /* Final pthreads */ 23782 pthread_attr_t attr; 23783 23784 status = pthread_attr_init(&attr); 23785 if( status ) return status; 23786 23787#if HAVE_PTHREADS < 7 23788 status = pthread_attr_setdetachstate(&attr, &detach); 23789 if( status < 0 ) status = errno; 23790#else 23791 status = pthread_attr_setdetachstate(&attr, detach); 23792#endif 23793 if( status ) return status; 23794 status = pthread_create( &t, &attr, task, NULL ); 23795#if HAVE_PTHREADS < 7 23796 if( status < 0 ) status = errno; 23797#endif 23798 if( status ) return status; 23799#else 23800 /* Draft 4 pthreads */ 23801 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23802 if( status ) return errno; 23803 23804 /* give thread a chance to complete */ 23805 /* it should remain joinable and hence detachable */ 23806 sleep( 1 ); 23807 23808 status = pthread_detach( &t ); 23809 if( status ) return errno; 23810#endif 23811 23812#ifdef HAVE_LINUX_THREADS 23813 pthread_kill_other_threads_np(); 23814#endif 23815 23816 return 0; 23817 23818 ; 23819 return 0; 23820} 23821_ACEOF 23822if ac_fn_c_try_link "$LINENO"; then : 23823 ol_cv_pthread_pthread=yes 23824else 23825 ol_cv_pthread_pthread=no 23826fi 23827rm -f core conftest.err conftest.$ac_objext \ 23828 conftest$ac_exeext conftest.$ac_ext 23829else 23830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23831/* end confdefs.h. */ 23832 23833 23834/* pthread test headers */ 23835#include <pthread.h> 23836#if HAVE_PTHREADS < 7 23837#include <errno.h> 23838#endif 23839#ifndef NULL 23840#define NULL (void*)0 23841#endif 23842 23843static void *task(p) 23844 void *p; 23845{ 23846 return (void *) (p == NULL); 23847} 23848 23849 23850int main(argc, argv) 23851 int argc; 23852 char **argv; 23853{ 23854 23855 /* pthread test function */ 23856#ifndef PTHREAD_CREATE_DETACHED 23857#define PTHREAD_CREATE_DETACHED 1 23858#endif 23859 pthread_t t; 23860 int status; 23861 int detach = PTHREAD_CREATE_DETACHED; 23862 23863#if HAVE_PTHREADS > 4 23864 /* Final pthreads */ 23865 pthread_attr_t attr; 23866 23867 status = pthread_attr_init(&attr); 23868 if( status ) return status; 23869 23870#if HAVE_PTHREADS < 7 23871 status = pthread_attr_setdetachstate(&attr, &detach); 23872 if( status < 0 ) status = errno; 23873#else 23874 status = pthread_attr_setdetachstate(&attr, detach); 23875#endif 23876 if( status ) return status; 23877 status = pthread_create( &t, &attr, task, NULL ); 23878#if HAVE_PTHREADS < 7 23879 if( status < 0 ) status = errno; 23880#endif 23881 if( status ) return status; 23882#else 23883 /* Draft 4 pthreads */ 23884 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23885 if( status ) return errno; 23886 23887 /* give thread a chance to complete */ 23888 /* it should remain joinable and hence detachable */ 23889 sleep( 1 ); 23890 23891 status = pthread_detach( &t ); 23892 if( status ) return errno; 23893#endif 23894 23895#ifdef HAVE_LINUX_THREADS 23896 pthread_kill_other_threads_np(); 23897#endif 23898 23899 return 0; 23900 23901} 23902 23903_ACEOF 23904if ac_fn_c_try_run "$LINENO"; then : 23905 ol_cv_pthread_pthread=yes 23906else 23907 ol_cv_pthread_pthread=no 23908fi 23909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23910 conftest.$ac_objext conftest.beam conftest.$ac_ext 23911fi 23912 23913 23914 # restore the LIBS 23915 LIBS="$ol_LIBS" 23916 23917fi 23918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 23919$as_echo "$ol_cv_pthread_pthread" >&6; } 23920 23921 if test $ol_cv_pthread_pthread = yes ; then 23922 ol_link_pthreads="-pthread" 23923 ol_link_threads=posix 23924 fi 23925fi 23926 23927 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 23928if test "$ol_link_threads" = no ; then 23929 # try -pthreads 23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 23931$as_echo_n "checking for pthread link with -pthreads... " >&6; } 23932if ${ol_cv_pthread_pthreads+:} false; then : 23933 $as_echo_n "(cached) " >&6 23934else 23935 23936 # save the flags 23937 ol_LIBS="$LIBS" 23938 LIBS="-pthreads $LIBS" 23939 23940 if test "$cross_compiling" = yes; then : 23941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23942/* end confdefs.h. */ 23943 23944/* pthread test headers */ 23945#include <pthread.h> 23946#if HAVE_PTHREADS < 7 23947#include <errno.h> 23948#endif 23949#ifndef NULL 23950#define NULL (void*)0 23951#endif 23952 23953static void *task(p) 23954 void *p; 23955{ 23956 return (void *) (p == NULL); 23957} 23958 23959int 23960main () 23961{ 23962 23963 /* pthread test function */ 23964#ifndef PTHREAD_CREATE_DETACHED 23965#define PTHREAD_CREATE_DETACHED 1 23966#endif 23967 pthread_t t; 23968 int status; 23969 int detach = PTHREAD_CREATE_DETACHED; 23970 23971#if HAVE_PTHREADS > 4 23972 /* Final pthreads */ 23973 pthread_attr_t attr; 23974 23975 status = pthread_attr_init(&attr); 23976 if( status ) return status; 23977 23978#if HAVE_PTHREADS < 7 23979 status = pthread_attr_setdetachstate(&attr, &detach); 23980 if( status < 0 ) status = errno; 23981#else 23982 status = pthread_attr_setdetachstate(&attr, detach); 23983#endif 23984 if( status ) return status; 23985 status = pthread_create( &t, &attr, task, NULL ); 23986#if HAVE_PTHREADS < 7 23987 if( status < 0 ) status = errno; 23988#endif 23989 if( status ) return status; 23990#else 23991 /* Draft 4 pthreads */ 23992 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23993 if( status ) return errno; 23994 23995 /* give thread a chance to complete */ 23996 /* it should remain joinable and hence detachable */ 23997 sleep( 1 ); 23998 23999 status = pthread_detach( &t ); 24000 if( status ) return errno; 24001#endif 24002 24003#ifdef HAVE_LINUX_THREADS 24004 pthread_kill_other_threads_np(); 24005#endif 24006 24007 return 0; 24008 24009 ; 24010 return 0; 24011} 24012_ACEOF 24013if ac_fn_c_try_link "$LINENO"; then : 24014 ol_cv_pthread_pthreads=yes 24015else 24016 ol_cv_pthread_pthreads=no 24017fi 24018rm -f core conftest.err conftest.$ac_objext \ 24019 conftest$ac_exeext conftest.$ac_ext 24020else 24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24022/* end confdefs.h. */ 24023 24024 24025/* pthread test headers */ 24026#include <pthread.h> 24027#if HAVE_PTHREADS < 7 24028#include <errno.h> 24029#endif 24030#ifndef NULL 24031#define NULL (void*)0 24032#endif 24033 24034static void *task(p) 24035 void *p; 24036{ 24037 return (void *) (p == NULL); 24038} 24039 24040 24041int main(argc, argv) 24042 int argc; 24043 char **argv; 24044{ 24045 24046 /* pthread test function */ 24047#ifndef PTHREAD_CREATE_DETACHED 24048#define PTHREAD_CREATE_DETACHED 1 24049#endif 24050 pthread_t t; 24051 int status; 24052 int detach = PTHREAD_CREATE_DETACHED; 24053 24054#if HAVE_PTHREADS > 4 24055 /* Final pthreads */ 24056 pthread_attr_t attr; 24057 24058 status = pthread_attr_init(&attr); 24059 if( status ) return status; 24060 24061#if HAVE_PTHREADS < 7 24062 status = pthread_attr_setdetachstate(&attr, &detach); 24063 if( status < 0 ) status = errno; 24064#else 24065 status = pthread_attr_setdetachstate(&attr, detach); 24066#endif 24067 if( status ) return status; 24068 status = pthread_create( &t, &attr, task, NULL ); 24069#if HAVE_PTHREADS < 7 24070 if( status < 0 ) status = errno; 24071#endif 24072 if( status ) return status; 24073#else 24074 /* Draft 4 pthreads */ 24075 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24076 if( status ) return errno; 24077 24078 /* give thread a chance to complete */ 24079 /* it should remain joinable and hence detachable */ 24080 sleep( 1 ); 24081 24082 status = pthread_detach( &t ); 24083 if( status ) return errno; 24084#endif 24085 24086#ifdef HAVE_LINUX_THREADS 24087 pthread_kill_other_threads_np(); 24088#endif 24089 24090 return 0; 24091 24092} 24093 24094_ACEOF 24095if ac_fn_c_try_run "$LINENO"; then : 24096 ol_cv_pthread_pthreads=yes 24097else 24098 ol_cv_pthread_pthreads=no 24099fi 24100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24101 conftest.$ac_objext conftest.beam conftest.$ac_ext 24102fi 24103 24104 24105 # restore the LIBS 24106 LIBS="$ol_LIBS" 24107 24108fi 24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 24110$as_echo "$ol_cv_pthread_pthreads" >&6; } 24111 24112 if test $ol_cv_pthread_pthreads = yes ; then 24113 ol_link_pthreads="-pthreads" 24114 ol_link_threads=posix 24115 fi 24116fi 24117 24118 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 24119if test "$ol_link_threads" = no ; then 24120 # try -mthreads 24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 24122$as_echo_n "checking for pthread link with -mthreads... " >&6; } 24123if ${ol_cv_pthread_mthreads+:} false; then : 24124 $as_echo_n "(cached) " >&6 24125else 24126 24127 # save the flags 24128 ol_LIBS="$LIBS" 24129 LIBS="-mthreads $LIBS" 24130 24131 if test "$cross_compiling" = yes; then : 24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24133/* end confdefs.h. */ 24134 24135/* pthread test headers */ 24136#include <pthread.h> 24137#if HAVE_PTHREADS < 7 24138#include <errno.h> 24139#endif 24140#ifndef NULL 24141#define NULL (void*)0 24142#endif 24143 24144static void *task(p) 24145 void *p; 24146{ 24147 return (void *) (p == NULL); 24148} 24149 24150int 24151main () 24152{ 24153 24154 /* pthread test function */ 24155#ifndef PTHREAD_CREATE_DETACHED 24156#define PTHREAD_CREATE_DETACHED 1 24157#endif 24158 pthread_t t; 24159 int status; 24160 int detach = PTHREAD_CREATE_DETACHED; 24161 24162#if HAVE_PTHREADS > 4 24163 /* Final pthreads */ 24164 pthread_attr_t attr; 24165 24166 status = pthread_attr_init(&attr); 24167 if( status ) return status; 24168 24169#if HAVE_PTHREADS < 7 24170 status = pthread_attr_setdetachstate(&attr, &detach); 24171 if( status < 0 ) status = errno; 24172#else 24173 status = pthread_attr_setdetachstate(&attr, detach); 24174#endif 24175 if( status ) return status; 24176 status = pthread_create( &t, &attr, task, NULL ); 24177#if HAVE_PTHREADS < 7 24178 if( status < 0 ) status = errno; 24179#endif 24180 if( status ) return status; 24181#else 24182 /* Draft 4 pthreads */ 24183 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24184 if( status ) return errno; 24185 24186 /* give thread a chance to complete */ 24187 /* it should remain joinable and hence detachable */ 24188 sleep( 1 ); 24189 24190 status = pthread_detach( &t ); 24191 if( status ) return errno; 24192#endif 24193 24194#ifdef HAVE_LINUX_THREADS 24195 pthread_kill_other_threads_np(); 24196#endif 24197 24198 return 0; 24199 24200 ; 24201 return 0; 24202} 24203_ACEOF 24204if ac_fn_c_try_link "$LINENO"; then : 24205 ol_cv_pthread_mthreads=yes 24206else 24207 ol_cv_pthread_mthreads=no 24208fi 24209rm -f core conftest.err conftest.$ac_objext \ 24210 conftest$ac_exeext conftest.$ac_ext 24211else 24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24213/* end confdefs.h. */ 24214 24215 24216/* pthread test headers */ 24217#include <pthread.h> 24218#if HAVE_PTHREADS < 7 24219#include <errno.h> 24220#endif 24221#ifndef NULL 24222#define NULL (void*)0 24223#endif 24224 24225static void *task(p) 24226 void *p; 24227{ 24228 return (void *) (p == NULL); 24229} 24230 24231 24232int main(argc, argv) 24233 int argc; 24234 char **argv; 24235{ 24236 24237 /* pthread test function */ 24238#ifndef PTHREAD_CREATE_DETACHED 24239#define PTHREAD_CREATE_DETACHED 1 24240#endif 24241 pthread_t t; 24242 int status; 24243 int detach = PTHREAD_CREATE_DETACHED; 24244 24245#if HAVE_PTHREADS > 4 24246 /* Final pthreads */ 24247 pthread_attr_t attr; 24248 24249 status = pthread_attr_init(&attr); 24250 if( status ) return status; 24251 24252#if HAVE_PTHREADS < 7 24253 status = pthread_attr_setdetachstate(&attr, &detach); 24254 if( status < 0 ) status = errno; 24255#else 24256 status = pthread_attr_setdetachstate(&attr, detach); 24257#endif 24258 if( status ) return status; 24259 status = pthread_create( &t, &attr, task, NULL ); 24260#if HAVE_PTHREADS < 7 24261 if( status < 0 ) status = errno; 24262#endif 24263 if( status ) return status; 24264#else 24265 /* Draft 4 pthreads */ 24266 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24267 if( status ) return errno; 24268 24269 /* give thread a chance to complete */ 24270 /* it should remain joinable and hence detachable */ 24271 sleep( 1 ); 24272 24273 status = pthread_detach( &t ); 24274 if( status ) return errno; 24275#endif 24276 24277#ifdef HAVE_LINUX_THREADS 24278 pthread_kill_other_threads_np(); 24279#endif 24280 24281 return 0; 24282 24283} 24284 24285_ACEOF 24286if ac_fn_c_try_run "$LINENO"; then : 24287 ol_cv_pthread_mthreads=yes 24288else 24289 ol_cv_pthread_mthreads=no 24290fi 24291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24292 conftest.$ac_objext conftest.beam conftest.$ac_ext 24293fi 24294 24295 24296 # restore the LIBS 24297 LIBS="$ol_LIBS" 24298 24299fi 24300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 24301$as_echo "$ol_cv_pthread_mthreads" >&6; } 24302 24303 if test $ol_cv_pthread_mthreads = yes ; then 24304 ol_link_pthreads="-mthreads" 24305 ol_link_threads=posix 24306 fi 24307fi 24308 24309 # Pthread try link: -thread (ol_cv_pthread_thread) 24310if test "$ol_link_threads" = no ; then 24311 # try -thread 24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 24313$as_echo_n "checking for pthread link with -thread... " >&6; } 24314if ${ol_cv_pthread_thread+:} false; then : 24315 $as_echo_n "(cached) " >&6 24316else 24317 24318 # save the flags 24319 ol_LIBS="$LIBS" 24320 LIBS="-thread $LIBS" 24321 24322 if test "$cross_compiling" = yes; then : 24323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24324/* end confdefs.h. */ 24325 24326/* pthread test headers */ 24327#include <pthread.h> 24328#if HAVE_PTHREADS < 7 24329#include <errno.h> 24330#endif 24331#ifndef NULL 24332#define NULL (void*)0 24333#endif 24334 24335static void *task(p) 24336 void *p; 24337{ 24338 return (void *) (p == NULL); 24339} 24340 24341int 24342main () 24343{ 24344 24345 /* pthread test function */ 24346#ifndef PTHREAD_CREATE_DETACHED 24347#define PTHREAD_CREATE_DETACHED 1 24348#endif 24349 pthread_t t; 24350 int status; 24351 int detach = PTHREAD_CREATE_DETACHED; 24352 24353#if HAVE_PTHREADS > 4 24354 /* Final pthreads */ 24355 pthread_attr_t attr; 24356 24357 status = pthread_attr_init(&attr); 24358 if( status ) return status; 24359 24360#if HAVE_PTHREADS < 7 24361 status = pthread_attr_setdetachstate(&attr, &detach); 24362 if( status < 0 ) status = errno; 24363#else 24364 status = pthread_attr_setdetachstate(&attr, detach); 24365#endif 24366 if( status ) return status; 24367 status = pthread_create( &t, &attr, task, NULL ); 24368#if HAVE_PTHREADS < 7 24369 if( status < 0 ) status = errno; 24370#endif 24371 if( status ) return status; 24372#else 24373 /* Draft 4 pthreads */ 24374 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24375 if( status ) return errno; 24376 24377 /* give thread a chance to complete */ 24378 /* it should remain joinable and hence detachable */ 24379 sleep( 1 ); 24380 24381 status = pthread_detach( &t ); 24382 if( status ) return errno; 24383#endif 24384 24385#ifdef HAVE_LINUX_THREADS 24386 pthread_kill_other_threads_np(); 24387#endif 24388 24389 return 0; 24390 24391 ; 24392 return 0; 24393} 24394_ACEOF 24395if ac_fn_c_try_link "$LINENO"; then : 24396 ol_cv_pthread_thread=yes 24397else 24398 ol_cv_pthread_thread=no 24399fi 24400rm -f core conftest.err conftest.$ac_objext \ 24401 conftest$ac_exeext conftest.$ac_ext 24402else 24403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24404/* end confdefs.h. */ 24405 24406 24407/* pthread test headers */ 24408#include <pthread.h> 24409#if HAVE_PTHREADS < 7 24410#include <errno.h> 24411#endif 24412#ifndef NULL 24413#define NULL (void*)0 24414#endif 24415 24416static void *task(p) 24417 void *p; 24418{ 24419 return (void *) (p == NULL); 24420} 24421 24422 24423int main(argc, argv) 24424 int argc; 24425 char **argv; 24426{ 24427 24428 /* pthread test function */ 24429#ifndef PTHREAD_CREATE_DETACHED 24430#define PTHREAD_CREATE_DETACHED 1 24431#endif 24432 pthread_t t; 24433 int status; 24434 int detach = PTHREAD_CREATE_DETACHED; 24435 24436#if HAVE_PTHREADS > 4 24437 /* Final pthreads */ 24438 pthread_attr_t attr; 24439 24440 status = pthread_attr_init(&attr); 24441 if( status ) return status; 24442 24443#if HAVE_PTHREADS < 7 24444 status = pthread_attr_setdetachstate(&attr, &detach); 24445 if( status < 0 ) status = errno; 24446#else 24447 status = pthread_attr_setdetachstate(&attr, detach); 24448#endif 24449 if( status ) return status; 24450 status = pthread_create( &t, &attr, task, NULL ); 24451#if HAVE_PTHREADS < 7 24452 if( status < 0 ) status = errno; 24453#endif 24454 if( status ) return status; 24455#else 24456 /* Draft 4 pthreads */ 24457 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24458 if( status ) return errno; 24459 24460 /* give thread a chance to complete */ 24461 /* it should remain joinable and hence detachable */ 24462 sleep( 1 ); 24463 24464 status = pthread_detach( &t ); 24465 if( status ) return errno; 24466#endif 24467 24468#ifdef HAVE_LINUX_THREADS 24469 pthread_kill_other_threads_np(); 24470#endif 24471 24472 return 0; 24473 24474} 24475 24476_ACEOF 24477if ac_fn_c_try_run "$LINENO"; then : 24478 ol_cv_pthread_thread=yes 24479else 24480 ol_cv_pthread_thread=no 24481fi 24482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24483 conftest.$ac_objext conftest.beam conftest.$ac_ext 24484fi 24485 24486 24487 # restore the LIBS 24488 LIBS="$ol_LIBS" 24489 24490fi 24491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 24492$as_echo "$ol_cv_pthread_thread" >&6; } 24493 24494 if test $ol_cv_pthread_thread = yes ; then 24495 ol_link_pthreads="-thread" 24496 ol_link_threads=posix 24497 fi 24498fi 24499 24500 24501 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 24502if test "$ol_link_threads" = no ; then 24503 # try -lpthread -lmach -lexc -lc_r 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 24505$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 24506if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 24507 $as_echo_n "(cached) " >&6 24508else 24509 24510 # save the flags 24511 ol_LIBS="$LIBS" 24512 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 24513 24514 if test "$cross_compiling" = yes; then : 24515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24516/* end confdefs.h. */ 24517 24518/* pthread test headers */ 24519#include <pthread.h> 24520#if HAVE_PTHREADS < 7 24521#include <errno.h> 24522#endif 24523#ifndef NULL 24524#define NULL (void*)0 24525#endif 24526 24527static void *task(p) 24528 void *p; 24529{ 24530 return (void *) (p == NULL); 24531} 24532 24533int 24534main () 24535{ 24536 24537 /* pthread test function */ 24538#ifndef PTHREAD_CREATE_DETACHED 24539#define PTHREAD_CREATE_DETACHED 1 24540#endif 24541 pthread_t t; 24542 int status; 24543 int detach = PTHREAD_CREATE_DETACHED; 24544 24545#if HAVE_PTHREADS > 4 24546 /* Final pthreads */ 24547 pthread_attr_t attr; 24548 24549 status = pthread_attr_init(&attr); 24550 if( status ) return status; 24551 24552#if HAVE_PTHREADS < 7 24553 status = pthread_attr_setdetachstate(&attr, &detach); 24554 if( status < 0 ) status = errno; 24555#else 24556 status = pthread_attr_setdetachstate(&attr, detach); 24557#endif 24558 if( status ) return status; 24559 status = pthread_create( &t, &attr, task, NULL ); 24560#if HAVE_PTHREADS < 7 24561 if( status < 0 ) status = errno; 24562#endif 24563 if( status ) return status; 24564#else 24565 /* Draft 4 pthreads */ 24566 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24567 if( status ) return errno; 24568 24569 /* give thread a chance to complete */ 24570 /* it should remain joinable and hence detachable */ 24571 sleep( 1 ); 24572 24573 status = pthread_detach( &t ); 24574 if( status ) return errno; 24575#endif 24576 24577#ifdef HAVE_LINUX_THREADS 24578 pthread_kill_other_threads_np(); 24579#endif 24580 24581 return 0; 24582 24583 ; 24584 return 0; 24585} 24586_ACEOF 24587if ac_fn_c_try_link "$LINENO"; then : 24588 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 24589else 24590 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 24591fi 24592rm -f core conftest.err conftest.$ac_objext \ 24593 conftest$ac_exeext conftest.$ac_ext 24594else 24595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24596/* end confdefs.h. */ 24597 24598 24599/* pthread test headers */ 24600#include <pthread.h> 24601#if HAVE_PTHREADS < 7 24602#include <errno.h> 24603#endif 24604#ifndef NULL 24605#define NULL (void*)0 24606#endif 24607 24608static void *task(p) 24609 void *p; 24610{ 24611 return (void *) (p == NULL); 24612} 24613 24614 24615int main(argc, argv) 24616 int argc; 24617 char **argv; 24618{ 24619 24620 /* pthread test function */ 24621#ifndef PTHREAD_CREATE_DETACHED 24622#define PTHREAD_CREATE_DETACHED 1 24623#endif 24624 pthread_t t; 24625 int status; 24626 int detach = PTHREAD_CREATE_DETACHED; 24627 24628#if HAVE_PTHREADS > 4 24629 /* Final pthreads */ 24630 pthread_attr_t attr; 24631 24632 status = pthread_attr_init(&attr); 24633 if( status ) return status; 24634 24635#if HAVE_PTHREADS < 7 24636 status = pthread_attr_setdetachstate(&attr, &detach); 24637 if( status < 0 ) status = errno; 24638#else 24639 status = pthread_attr_setdetachstate(&attr, detach); 24640#endif 24641 if( status ) return status; 24642 status = pthread_create( &t, &attr, task, NULL ); 24643#if HAVE_PTHREADS < 7 24644 if( status < 0 ) status = errno; 24645#endif 24646 if( status ) return status; 24647#else 24648 /* Draft 4 pthreads */ 24649 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24650 if( status ) return errno; 24651 24652 /* give thread a chance to complete */ 24653 /* it should remain joinable and hence detachable */ 24654 sleep( 1 ); 24655 24656 status = pthread_detach( &t ); 24657 if( status ) return errno; 24658#endif 24659 24660#ifdef HAVE_LINUX_THREADS 24661 pthread_kill_other_threads_np(); 24662#endif 24663 24664 return 0; 24665 24666} 24667 24668_ACEOF 24669if ac_fn_c_try_run "$LINENO"; then : 24670 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 24671else 24672 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 24673fi 24674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24675 conftest.$ac_objext conftest.beam conftest.$ac_ext 24676fi 24677 24678 24679 # restore the LIBS 24680 LIBS="$ol_LIBS" 24681 24682fi 24683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 24684$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 24685 24686 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 24687 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 24688 ol_link_threads=posix 24689 fi 24690fi 24691 24692 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 24693if test "$ol_link_threads" = no ; then 24694 # try -lpthread -lmach -lexc 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 24696$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 24697if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 24698 $as_echo_n "(cached) " >&6 24699else 24700 24701 # save the flags 24702 ol_LIBS="$LIBS" 24703 LIBS="-lpthread -lmach -lexc $LIBS" 24704 24705 if test "$cross_compiling" = yes; then : 24706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24707/* end confdefs.h. */ 24708 24709/* pthread test headers */ 24710#include <pthread.h> 24711#if HAVE_PTHREADS < 7 24712#include <errno.h> 24713#endif 24714#ifndef NULL 24715#define NULL (void*)0 24716#endif 24717 24718static void *task(p) 24719 void *p; 24720{ 24721 return (void *) (p == NULL); 24722} 24723 24724int 24725main () 24726{ 24727 24728 /* pthread test function */ 24729#ifndef PTHREAD_CREATE_DETACHED 24730#define PTHREAD_CREATE_DETACHED 1 24731#endif 24732 pthread_t t; 24733 int status; 24734 int detach = PTHREAD_CREATE_DETACHED; 24735 24736#if HAVE_PTHREADS > 4 24737 /* Final pthreads */ 24738 pthread_attr_t attr; 24739 24740 status = pthread_attr_init(&attr); 24741 if( status ) return status; 24742 24743#if HAVE_PTHREADS < 7 24744 status = pthread_attr_setdetachstate(&attr, &detach); 24745 if( status < 0 ) status = errno; 24746#else 24747 status = pthread_attr_setdetachstate(&attr, detach); 24748#endif 24749 if( status ) return status; 24750 status = pthread_create( &t, &attr, task, NULL ); 24751#if HAVE_PTHREADS < 7 24752 if( status < 0 ) status = errno; 24753#endif 24754 if( status ) return status; 24755#else 24756 /* Draft 4 pthreads */ 24757 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24758 if( status ) return errno; 24759 24760 /* give thread a chance to complete */ 24761 /* it should remain joinable and hence detachable */ 24762 sleep( 1 ); 24763 24764 status = pthread_detach( &t ); 24765 if( status ) return errno; 24766#endif 24767 24768#ifdef HAVE_LINUX_THREADS 24769 pthread_kill_other_threads_np(); 24770#endif 24771 24772 return 0; 24773 24774 ; 24775 return 0; 24776} 24777_ACEOF 24778if ac_fn_c_try_link "$LINENO"; then : 24779 ol_cv_pthread_lpthread_lmach_lexc=yes 24780else 24781 ol_cv_pthread_lpthread_lmach_lexc=no 24782fi 24783rm -f core conftest.err conftest.$ac_objext \ 24784 conftest$ac_exeext conftest.$ac_ext 24785else 24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24787/* end confdefs.h. */ 24788 24789 24790/* pthread test headers */ 24791#include <pthread.h> 24792#if HAVE_PTHREADS < 7 24793#include <errno.h> 24794#endif 24795#ifndef NULL 24796#define NULL (void*)0 24797#endif 24798 24799static void *task(p) 24800 void *p; 24801{ 24802 return (void *) (p == NULL); 24803} 24804 24805 24806int main(argc, argv) 24807 int argc; 24808 char **argv; 24809{ 24810 24811 /* pthread test function */ 24812#ifndef PTHREAD_CREATE_DETACHED 24813#define PTHREAD_CREATE_DETACHED 1 24814#endif 24815 pthread_t t; 24816 int status; 24817 int detach = PTHREAD_CREATE_DETACHED; 24818 24819#if HAVE_PTHREADS > 4 24820 /* Final pthreads */ 24821 pthread_attr_t attr; 24822 24823 status = pthread_attr_init(&attr); 24824 if( status ) return status; 24825 24826#if HAVE_PTHREADS < 7 24827 status = pthread_attr_setdetachstate(&attr, &detach); 24828 if( status < 0 ) status = errno; 24829#else 24830 status = pthread_attr_setdetachstate(&attr, detach); 24831#endif 24832 if( status ) return status; 24833 status = pthread_create( &t, &attr, task, NULL ); 24834#if HAVE_PTHREADS < 7 24835 if( status < 0 ) status = errno; 24836#endif 24837 if( status ) return status; 24838#else 24839 /* Draft 4 pthreads */ 24840 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24841 if( status ) return errno; 24842 24843 /* give thread a chance to complete */ 24844 /* it should remain joinable and hence detachable */ 24845 sleep( 1 ); 24846 24847 status = pthread_detach( &t ); 24848 if( status ) return errno; 24849#endif 24850 24851#ifdef HAVE_LINUX_THREADS 24852 pthread_kill_other_threads_np(); 24853#endif 24854 24855 return 0; 24856 24857} 24858 24859_ACEOF 24860if ac_fn_c_try_run "$LINENO"; then : 24861 ol_cv_pthread_lpthread_lmach_lexc=yes 24862else 24863 ol_cv_pthread_lpthread_lmach_lexc=no 24864fi 24865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24866 conftest.$ac_objext conftest.beam conftest.$ac_ext 24867fi 24868 24869 24870 # restore the LIBS 24871 LIBS="$ol_LIBS" 24872 24873fi 24874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 24875$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 24876 24877 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 24878 ol_link_pthreads="-lpthread -lmach -lexc" 24879 ol_link_threads=posix 24880 fi 24881fi 24882 24883 24884 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 24885if test "$ol_link_threads" = no ; then 24886 # try -lpthread -Wl,-woff,85 24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 24888$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 24889if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 24890 $as_echo_n "(cached) " >&6 24891else 24892 24893 # save the flags 24894 ol_LIBS="$LIBS" 24895 LIBS="-lpthread -Wl,-woff,85 $LIBS" 24896 24897 if test "$cross_compiling" = yes; then : 24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24899/* end confdefs.h. */ 24900 24901/* pthread test headers */ 24902#include <pthread.h> 24903#if HAVE_PTHREADS < 7 24904#include <errno.h> 24905#endif 24906#ifndef NULL 24907#define NULL (void*)0 24908#endif 24909 24910static void *task(p) 24911 void *p; 24912{ 24913 return (void *) (p == NULL); 24914} 24915 24916int 24917main () 24918{ 24919 24920 /* pthread test function */ 24921#ifndef PTHREAD_CREATE_DETACHED 24922#define PTHREAD_CREATE_DETACHED 1 24923#endif 24924 pthread_t t; 24925 int status; 24926 int detach = PTHREAD_CREATE_DETACHED; 24927 24928#if HAVE_PTHREADS > 4 24929 /* Final pthreads */ 24930 pthread_attr_t attr; 24931 24932 status = pthread_attr_init(&attr); 24933 if( status ) return status; 24934 24935#if HAVE_PTHREADS < 7 24936 status = pthread_attr_setdetachstate(&attr, &detach); 24937 if( status < 0 ) status = errno; 24938#else 24939 status = pthread_attr_setdetachstate(&attr, detach); 24940#endif 24941 if( status ) return status; 24942 status = pthread_create( &t, &attr, task, NULL ); 24943#if HAVE_PTHREADS < 7 24944 if( status < 0 ) status = errno; 24945#endif 24946 if( status ) return status; 24947#else 24948 /* Draft 4 pthreads */ 24949 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24950 if( status ) return errno; 24951 24952 /* give thread a chance to complete */ 24953 /* it should remain joinable and hence detachable */ 24954 sleep( 1 ); 24955 24956 status = pthread_detach( &t ); 24957 if( status ) return errno; 24958#endif 24959 24960#ifdef HAVE_LINUX_THREADS 24961 pthread_kill_other_threads_np(); 24962#endif 24963 24964 return 0; 24965 24966 ; 24967 return 0; 24968} 24969_ACEOF 24970if ac_fn_c_try_link "$LINENO"; then : 24971 ol_cv_pthread_lib_lpthread_woff=yes 24972else 24973 ol_cv_pthread_lib_lpthread_woff=no 24974fi 24975rm -f core conftest.err conftest.$ac_objext \ 24976 conftest$ac_exeext conftest.$ac_ext 24977else 24978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24979/* end confdefs.h. */ 24980 24981 24982/* pthread test headers */ 24983#include <pthread.h> 24984#if HAVE_PTHREADS < 7 24985#include <errno.h> 24986#endif 24987#ifndef NULL 24988#define NULL (void*)0 24989#endif 24990 24991static void *task(p) 24992 void *p; 24993{ 24994 return (void *) (p == NULL); 24995} 24996 24997 24998int main(argc, argv) 24999 int argc; 25000 char **argv; 25001{ 25002 25003 /* pthread test function */ 25004#ifndef PTHREAD_CREATE_DETACHED 25005#define PTHREAD_CREATE_DETACHED 1 25006#endif 25007 pthread_t t; 25008 int status; 25009 int detach = PTHREAD_CREATE_DETACHED; 25010 25011#if HAVE_PTHREADS > 4 25012 /* Final pthreads */ 25013 pthread_attr_t attr; 25014 25015 status = pthread_attr_init(&attr); 25016 if( status ) return status; 25017 25018#if HAVE_PTHREADS < 7 25019 status = pthread_attr_setdetachstate(&attr, &detach); 25020 if( status < 0 ) status = errno; 25021#else 25022 status = pthread_attr_setdetachstate(&attr, detach); 25023#endif 25024 if( status ) return status; 25025 status = pthread_create( &t, &attr, task, NULL ); 25026#if HAVE_PTHREADS < 7 25027 if( status < 0 ) status = errno; 25028#endif 25029 if( status ) return status; 25030#else 25031 /* Draft 4 pthreads */ 25032 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25033 if( status ) return errno; 25034 25035 /* give thread a chance to complete */ 25036 /* it should remain joinable and hence detachable */ 25037 sleep( 1 ); 25038 25039 status = pthread_detach( &t ); 25040 if( status ) return errno; 25041#endif 25042 25043#ifdef HAVE_LINUX_THREADS 25044 pthread_kill_other_threads_np(); 25045#endif 25046 25047 return 0; 25048 25049} 25050 25051_ACEOF 25052if ac_fn_c_try_run "$LINENO"; then : 25053 ol_cv_pthread_lib_lpthread_woff=yes 25054else 25055 ol_cv_pthread_lib_lpthread_woff=no 25056fi 25057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25058 conftest.$ac_objext conftest.beam conftest.$ac_ext 25059fi 25060 25061 25062 # restore the LIBS 25063 LIBS="$ol_LIBS" 25064 25065fi 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 25067$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 25068 25069 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 25070 ol_link_pthreads="-lpthread -Wl,-woff,85" 25071 ol_link_threads=posix 25072 fi 25073fi 25074 25075 25076 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 25077if test "$ol_link_threads" = no ; then 25078 # try -lpthread 25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 25080$as_echo_n "checking for pthread link with -lpthread... " >&6; } 25081if ${ol_cv_pthread_lpthread+:} false; then : 25082 $as_echo_n "(cached) " >&6 25083else 25084 25085 # save the flags 25086 ol_LIBS="$LIBS" 25087 LIBS="-lpthread $LIBS" 25088 25089 if test "$cross_compiling" = yes; then : 25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091/* end confdefs.h. */ 25092 25093/* pthread test headers */ 25094#include <pthread.h> 25095#if HAVE_PTHREADS < 7 25096#include <errno.h> 25097#endif 25098#ifndef NULL 25099#define NULL (void*)0 25100#endif 25101 25102static void *task(p) 25103 void *p; 25104{ 25105 return (void *) (p == NULL); 25106} 25107 25108int 25109main () 25110{ 25111 25112 /* pthread test function */ 25113#ifndef PTHREAD_CREATE_DETACHED 25114#define PTHREAD_CREATE_DETACHED 1 25115#endif 25116 pthread_t t; 25117 int status; 25118 int detach = PTHREAD_CREATE_DETACHED; 25119 25120#if HAVE_PTHREADS > 4 25121 /* Final pthreads */ 25122 pthread_attr_t attr; 25123 25124 status = pthread_attr_init(&attr); 25125 if( status ) return status; 25126 25127#if HAVE_PTHREADS < 7 25128 status = pthread_attr_setdetachstate(&attr, &detach); 25129 if( status < 0 ) status = errno; 25130#else 25131 status = pthread_attr_setdetachstate(&attr, detach); 25132#endif 25133 if( status ) return status; 25134 status = pthread_create( &t, &attr, task, NULL ); 25135#if HAVE_PTHREADS < 7 25136 if( status < 0 ) status = errno; 25137#endif 25138 if( status ) return status; 25139#else 25140 /* Draft 4 pthreads */ 25141 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25142 if( status ) return errno; 25143 25144 /* give thread a chance to complete */ 25145 /* it should remain joinable and hence detachable */ 25146 sleep( 1 ); 25147 25148 status = pthread_detach( &t ); 25149 if( status ) return errno; 25150#endif 25151 25152#ifdef HAVE_LINUX_THREADS 25153 pthread_kill_other_threads_np(); 25154#endif 25155 25156 return 0; 25157 25158 ; 25159 return 0; 25160} 25161_ACEOF 25162if ac_fn_c_try_link "$LINENO"; then : 25163 ol_cv_pthread_lpthread=yes 25164else 25165 ol_cv_pthread_lpthread=no 25166fi 25167rm -f core conftest.err conftest.$ac_objext \ 25168 conftest$ac_exeext conftest.$ac_ext 25169else 25170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25171/* end confdefs.h. */ 25172 25173 25174/* pthread test headers */ 25175#include <pthread.h> 25176#if HAVE_PTHREADS < 7 25177#include <errno.h> 25178#endif 25179#ifndef NULL 25180#define NULL (void*)0 25181#endif 25182 25183static void *task(p) 25184 void *p; 25185{ 25186 return (void *) (p == NULL); 25187} 25188 25189 25190int main(argc, argv) 25191 int argc; 25192 char **argv; 25193{ 25194 25195 /* pthread test function */ 25196#ifndef PTHREAD_CREATE_DETACHED 25197#define PTHREAD_CREATE_DETACHED 1 25198#endif 25199 pthread_t t; 25200 int status; 25201 int detach = PTHREAD_CREATE_DETACHED; 25202 25203#if HAVE_PTHREADS > 4 25204 /* Final pthreads */ 25205 pthread_attr_t attr; 25206 25207 status = pthread_attr_init(&attr); 25208 if( status ) return status; 25209 25210#if HAVE_PTHREADS < 7 25211 status = pthread_attr_setdetachstate(&attr, &detach); 25212 if( status < 0 ) status = errno; 25213#else 25214 status = pthread_attr_setdetachstate(&attr, detach); 25215#endif 25216 if( status ) return status; 25217 status = pthread_create( &t, &attr, task, NULL ); 25218#if HAVE_PTHREADS < 7 25219 if( status < 0 ) status = errno; 25220#endif 25221 if( status ) return status; 25222#else 25223 /* Draft 4 pthreads */ 25224 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25225 if( status ) return errno; 25226 25227 /* give thread a chance to complete */ 25228 /* it should remain joinable and hence detachable */ 25229 sleep( 1 ); 25230 25231 status = pthread_detach( &t ); 25232 if( status ) return errno; 25233#endif 25234 25235#ifdef HAVE_LINUX_THREADS 25236 pthread_kill_other_threads_np(); 25237#endif 25238 25239 return 0; 25240 25241} 25242 25243_ACEOF 25244if ac_fn_c_try_run "$LINENO"; then : 25245 ol_cv_pthread_lpthread=yes 25246else 25247 ol_cv_pthread_lpthread=no 25248fi 25249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25250 conftest.$ac_objext conftest.beam conftest.$ac_ext 25251fi 25252 25253 25254 # restore the LIBS 25255 LIBS="$ol_LIBS" 25256 25257fi 25258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 25259$as_echo "$ol_cv_pthread_lpthread" >&6; } 25260 25261 if test $ol_cv_pthread_lpthread = yes ; then 25262 ol_link_pthreads="-lpthread" 25263 ol_link_threads=posix 25264 fi 25265fi 25266 25267 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 25268if test "$ol_link_threads" = no ; then 25269 # try -lc_r 25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 25271$as_echo_n "checking for pthread link with -lc_r... " >&6; } 25272if ${ol_cv_pthread_lc_r+:} false; then : 25273 $as_echo_n "(cached) " >&6 25274else 25275 25276 # save the flags 25277 ol_LIBS="$LIBS" 25278 LIBS="-lc_r $LIBS" 25279 25280 if test "$cross_compiling" = yes; then : 25281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25282/* end confdefs.h. */ 25283 25284/* pthread test headers */ 25285#include <pthread.h> 25286#if HAVE_PTHREADS < 7 25287#include <errno.h> 25288#endif 25289#ifndef NULL 25290#define NULL (void*)0 25291#endif 25292 25293static void *task(p) 25294 void *p; 25295{ 25296 return (void *) (p == NULL); 25297} 25298 25299int 25300main () 25301{ 25302 25303 /* pthread test function */ 25304#ifndef PTHREAD_CREATE_DETACHED 25305#define PTHREAD_CREATE_DETACHED 1 25306#endif 25307 pthread_t t; 25308 int status; 25309 int detach = PTHREAD_CREATE_DETACHED; 25310 25311#if HAVE_PTHREADS > 4 25312 /* Final pthreads */ 25313 pthread_attr_t attr; 25314 25315 status = pthread_attr_init(&attr); 25316 if( status ) return status; 25317 25318#if HAVE_PTHREADS < 7 25319 status = pthread_attr_setdetachstate(&attr, &detach); 25320 if( status < 0 ) status = errno; 25321#else 25322 status = pthread_attr_setdetachstate(&attr, detach); 25323#endif 25324 if( status ) return status; 25325 status = pthread_create( &t, &attr, task, NULL ); 25326#if HAVE_PTHREADS < 7 25327 if( status < 0 ) status = errno; 25328#endif 25329 if( status ) return status; 25330#else 25331 /* Draft 4 pthreads */ 25332 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25333 if( status ) return errno; 25334 25335 /* give thread a chance to complete */ 25336 /* it should remain joinable and hence detachable */ 25337 sleep( 1 ); 25338 25339 status = pthread_detach( &t ); 25340 if( status ) return errno; 25341#endif 25342 25343#ifdef HAVE_LINUX_THREADS 25344 pthread_kill_other_threads_np(); 25345#endif 25346 25347 return 0; 25348 25349 ; 25350 return 0; 25351} 25352_ACEOF 25353if ac_fn_c_try_link "$LINENO"; then : 25354 ol_cv_pthread_lc_r=yes 25355else 25356 ol_cv_pthread_lc_r=no 25357fi 25358rm -f core conftest.err conftest.$ac_objext \ 25359 conftest$ac_exeext conftest.$ac_ext 25360else 25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25362/* end confdefs.h. */ 25363 25364 25365/* pthread test headers */ 25366#include <pthread.h> 25367#if HAVE_PTHREADS < 7 25368#include <errno.h> 25369#endif 25370#ifndef NULL 25371#define NULL (void*)0 25372#endif 25373 25374static void *task(p) 25375 void *p; 25376{ 25377 return (void *) (p == NULL); 25378} 25379 25380 25381int main(argc, argv) 25382 int argc; 25383 char **argv; 25384{ 25385 25386 /* pthread test function */ 25387#ifndef PTHREAD_CREATE_DETACHED 25388#define PTHREAD_CREATE_DETACHED 1 25389#endif 25390 pthread_t t; 25391 int status; 25392 int detach = PTHREAD_CREATE_DETACHED; 25393 25394#if HAVE_PTHREADS > 4 25395 /* Final pthreads */ 25396 pthread_attr_t attr; 25397 25398 status = pthread_attr_init(&attr); 25399 if( status ) return status; 25400 25401#if HAVE_PTHREADS < 7 25402 status = pthread_attr_setdetachstate(&attr, &detach); 25403 if( status < 0 ) status = errno; 25404#else 25405 status = pthread_attr_setdetachstate(&attr, detach); 25406#endif 25407 if( status ) return status; 25408 status = pthread_create( &t, &attr, task, NULL ); 25409#if HAVE_PTHREADS < 7 25410 if( status < 0 ) status = errno; 25411#endif 25412 if( status ) return status; 25413#else 25414 /* Draft 4 pthreads */ 25415 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25416 if( status ) return errno; 25417 25418 /* give thread a chance to complete */ 25419 /* it should remain joinable and hence detachable */ 25420 sleep( 1 ); 25421 25422 status = pthread_detach( &t ); 25423 if( status ) return errno; 25424#endif 25425 25426#ifdef HAVE_LINUX_THREADS 25427 pthread_kill_other_threads_np(); 25428#endif 25429 25430 return 0; 25431 25432} 25433 25434_ACEOF 25435if ac_fn_c_try_run "$LINENO"; then : 25436 ol_cv_pthread_lc_r=yes 25437else 25438 ol_cv_pthread_lc_r=no 25439fi 25440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25441 conftest.$ac_objext conftest.beam conftest.$ac_ext 25442fi 25443 25444 25445 # restore the LIBS 25446 LIBS="$ol_LIBS" 25447 25448fi 25449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 25450$as_echo "$ol_cv_pthread_lc_r" >&6; } 25451 25452 if test $ol_cv_pthread_lc_r = yes ; then 25453 ol_link_pthreads="-lc_r" 25454 ol_link_threads=posix 25455 fi 25456fi 25457 25458 25459 # Pthread try link: -threads (ol_cv_pthread_threads) 25460if test "$ol_link_threads" = no ; then 25461 # try -threads 25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 25463$as_echo_n "checking for pthread link with -threads... " >&6; } 25464if ${ol_cv_pthread_threads+:} false; then : 25465 $as_echo_n "(cached) " >&6 25466else 25467 25468 # save the flags 25469 ol_LIBS="$LIBS" 25470 LIBS="-threads $LIBS" 25471 25472 if test "$cross_compiling" = yes; then : 25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25474/* end confdefs.h. */ 25475 25476/* pthread test headers */ 25477#include <pthread.h> 25478#if HAVE_PTHREADS < 7 25479#include <errno.h> 25480#endif 25481#ifndef NULL 25482#define NULL (void*)0 25483#endif 25484 25485static void *task(p) 25486 void *p; 25487{ 25488 return (void *) (p == NULL); 25489} 25490 25491int 25492main () 25493{ 25494 25495 /* pthread test function */ 25496#ifndef PTHREAD_CREATE_DETACHED 25497#define PTHREAD_CREATE_DETACHED 1 25498#endif 25499 pthread_t t; 25500 int status; 25501 int detach = PTHREAD_CREATE_DETACHED; 25502 25503#if HAVE_PTHREADS > 4 25504 /* Final pthreads */ 25505 pthread_attr_t attr; 25506 25507 status = pthread_attr_init(&attr); 25508 if( status ) return status; 25509 25510#if HAVE_PTHREADS < 7 25511 status = pthread_attr_setdetachstate(&attr, &detach); 25512 if( status < 0 ) status = errno; 25513#else 25514 status = pthread_attr_setdetachstate(&attr, detach); 25515#endif 25516 if( status ) return status; 25517 status = pthread_create( &t, &attr, task, NULL ); 25518#if HAVE_PTHREADS < 7 25519 if( status < 0 ) status = errno; 25520#endif 25521 if( status ) return status; 25522#else 25523 /* Draft 4 pthreads */ 25524 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25525 if( status ) return errno; 25526 25527 /* give thread a chance to complete */ 25528 /* it should remain joinable and hence detachable */ 25529 sleep( 1 ); 25530 25531 status = pthread_detach( &t ); 25532 if( status ) return errno; 25533#endif 25534 25535#ifdef HAVE_LINUX_THREADS 25536 pthread_kill_other_threads_np(); 25537#endif 25538 25539 return 0; 25540 25541 ; 25542 return 0; 25543} 25544_ACEOF 25545if ac_fn_c_try_link "$LINENO"; then : 25546 ol_cv_pthread_threads=yes 25547else 25548 ol_cv_pthread_threads=no 25549fi 25550rm -f core conftest.err conftest.$ac_objext \ 25551 conftest$ac_exeext conftest.$ac_ext 25552else 25553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25554/* end confdefs.h. */ 25555 25556 25557/* pthread test headers */ 25558#include <pthread.h> 25559#if HAVE_PTHREADS < 7 25560#include <errno.h> 25561#endif 25562#ifndef NULL 25563#define NULL (void*)0 25564#endif 25565 25566static void *task(p) 25567 void *p; 25568{ 25569 return (void *) (p == NULL); 25570} 25571 25572 25573int main(argc, argv) 25574 int argc; 25575 char **argv; 25576{ 25577 25578 /* pthread test function */ 25579#ifndef PTHREAD_CREATE_DETACHED 25580#define PTHREAD_CREATE_DETACHED 1 25581#endif 25582 pthread_t t; 25583 int status; 25584 int detach = PTHREAD_CREATE_DETACHED; 25585 25586#if HAVE_PTHREADS > 4 25587 /* Final pthreads */ 25588 pthread_attr_t attr; 25589 25590 status = pthread_attr_init(&attr); 25591 if( status ) return status; 25592 25593#if HAVE_PTHREADS < 7 25594 status = pthread_attr_setdetachstate(&attr, &detach); 25595 if( status < 0 ) status = errno; 25596#else 25597 status = pthread_attr_setdetachstate(&attr, detach); 25598#endif 25599 if( status ) return status; 25600 status = pthread_create( &t, &attr, task, NULL ); 25601#if HAVE_PTHREADS < 7 25602 if( status < 0 ) status = errno; 25603#endif 25604 if( status ) return status; 25605#else 25606 /* Draft 4 pthreads */ 25607 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25608 if( status ) return errno; 25609 25610 /* give thread a chance to complete */ 25611 /* it should remain joinable and hence detachable */ 25612 sleep( 1 ); 25613 25614 status = pthread_detach( &t ); 25615 if( status ) return errno; 25616#endif 25617 25618#ifdef HAVE_LINUX_THREADS 25619 pthread_kill_other_threads_np(); 25620#endif 25621 25622 return 0; 25623 25624} 25625 25626_ACEOF 25627if ac_fn_c_try_run "$LINENO"; then : 25628 ol_cv_pthread_threads=yes 25629else 25630 ol_cv_pthread_threads=no 25631fi 25632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25633 conftest.$ac_objext conftest.beam conftest.$ac_ext 25634fi 25635 25636 25637 # restore the LIBS 25638 LIBS="$ol_LIBS" 25639 25640fi 25641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 25642$as_echo "$ol_cv_pthread_threads" >&6; } 25643 25644 if test $ol_cv_pthread_threads = yes ; then 25645 ol_link_pthreads="-threads" 25646 ol_link_threads=posix 25647 fi 25648fi 25649 25650 25651 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 25652if test "$ol_link_threads" = no ; then 25653 # try -lpthreads -lmach -lexc -lc_r 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 25655$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 25656if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 25657 $as_echo_n "(cached) " >&6 25658else 25659 25660 # save the flags 25661 ol_LIBS="$LIBS" 25662 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 25663 25664 if test "$cross_compiling" = yes; then : 25665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25666/* end confdefs.h. */ 25667 25668/* pthread test headers */ 25669#include <pthread.h> 25670#if HAVE_PTHREADS < 7 25671#include <errno.h> 25672#endif 25673#ifndef NULL 25674#define NULL (void*)0 25675#endif 25676 25677static void *task(p) 25678 void *p; 25679{ 25680 return (void *) (p == NULL); 25681} 25682 25683int 25684main () 25685{ 25686 25687 /* pthread test function */ 25688#ifndef PTHREAD_CREATE_DETACHED 25689#define PTHREAD_CREATE_DETACHED 1 25690#endif 25691 pthread_t t; 25692 int status; 25693 int detach = PTHREAD_CREATE_DETACHED; 25694 25695#if HAVE_PTHREADS > 4 25696 /* Final pthreads */ 25697 pthread_attr_t attr; 25698 25699 status = pthread_attr_init(&attr); 25700 if( status ) return status; 25701 25702#if HAVE_PTHREADS < 7 25703 status = pthread_attr_setdetachstate(&attr, &detach); 25704 if( status < 0 ) status = errno; 25705#else 25706 status = pthread_attr_setdetachstate(&attr, detach); 25707#endif 25708 if( status ) return status; 25709 status = pthread_create( &t, &attr, task, NULL ); 25710#if HAVE_PTHREADS < 7 25711 if( status < 0 ) status = errno; 25712#endif 25713 if( status ) return status; 25714#else 25715 /* Draft 4 pthreads */ 25716 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25717 if( status ) return errno; 25718 25719 /* give thread a chance to complete */ 25720 /* it should remain joinable and hence detachable */ 25721 sleep( 1 ); 25722 25723 status = pthread_detach( &t ); 25724 if( status ) return errno; 25725#endif 25726 25727#ifdef HAVE_LINUX_THREADS 25728 pthread_kill_other_threads_np(); 25729#endif 25730 25731 return 0; 25732 25733 ; 25734 return 0; 25735} 25736_ACEOF 25737if ac_fn_c_try_link "$LINENO"; then : 25738 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 25739else 25740 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 25741fi 25742rm -f core conftest.err conftest.$ac_objext \ 25743 conftest$ac_exeext conftest.$ac_ext 25744else 25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25746/* end confdefs.h. */ 25747 25748 25749/* pthread test headers */ 25750#include <pthread.h> 25751#if HAVE_PTHREADS < 7 25752#include <errno.h> 25753#endif 25754#ifndef NULL 25755#define NULL (void*)0 25756#endif 25757 25758static void *task(p) 25759 void *p; 25760{ 25761 return (void *) (p == NULL); 25762} 25763 25764 25765int main(argc, argv) 25766 int argc; 25767 char **argv; 25768{ 25769 25770 /* pthread test function */ 25771#ifndef PTHREAD_CREATE_DETACHED 25772#define PTHREAD_CREATE_DETACHED 1 25773#endif 25774 pthread_t t; 25775 int status; 25776 int detach = PTHREAD_CREATE_DETACHED; 25777 25778#if HAVE_PTHREADS > 4 25779 /* Final pthreads */ 25780 pthread_attr_t attr; 25781 25782 status = pthread_attr_init(&attr); 25783 if( status ) return status; 25784 25785#if HAVE_PTHREADS < 7 25786 status = pthread_attr_setdetachstate(&attr, &detach); 25787 if( status < 0 ) status = errno; 25788#else 25789 status = pthread_attr_setdetachstate(&attr, detach); 25790#endif 25791 if( status ) return status; 25792 status = pthread_create( &t, &attr, task, NULL ); 25793#if HAVE_PTHREADS < 7 25794 if( status < 0 ) status = errno; 25795#endif 25796 if( status ) return status; 25797#else 25798 /* Draft 4 pthreads */ 25799 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25800 if( status ) return errno; 25801 25802 /* give thread a chance to complete */ 25803 /* it should remain joinable and hence detachable */ 25804 sleep( 1 ); 25805 25806 status = pthread_detach( &t ); 25807 if( status ) return errno; 25808#endif 25809 25810#ifdef HAVE_LINUX_THREADS 25811 pthread_kill_other_threads_np(); 25812#endif 25813 25814 return 0; 25815 25816} 25817 25818_ACEOF 25819if ac_fn_c_try_run "$LINENO"; then : 25820 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 25821else 25822 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 25823fi 25824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25825 conftest.$ac_objext conftest.beam conftest.$ac_ext 25826fi 25827 25828 25829 # restore the LIBS 25830 LIBS="$ol_LIBS" 25831 25832fi 25833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 25834$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 25835 25836 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 25837 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 25838 ol_link_threads=posix 25839 fi 25840fi 25841 25842 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 25843if test "$ol_link_threads" = no ; then 25844 # try -lpthreads -lmach -lexc 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 25846$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 25847if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 25848 $as_echo_n "(cached) " >&6 25849else 25850 25851 # save the flags 25852 ol_LIBS="$LIBS" 25853 LIBS="-lpthreads -lmach -lexc $LIBS" 25854 25855 if test "$cross_compiling" = yes; then : 25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25857/* end confdefs.h. */ 25858 25859/* pthread test headers */ 25860#include <pthread.h> 25861#if HAVE_PTHREADS < 7 25862#include <errno.h> 25863#endif 25864#ifndef NULL 25865#define NULL (void*)0 25866#endif 25867 25868static void *task(p) 25869 void *p; 25870{ 25871 return (void *) (p == NULL); 25872} 25873 25874int 25875main () 25876{ 25877 25878 /* pthread test function */ 25879#ifndef PTHREAD_CREATE_DETACHED 25880#define PTHREAD_CREATE_DETACHED 1 25881#endif 25882 pthread_t t; 25883 int status; 25884 int detach = PTHREAD_CREATE_DETACHED; 25885 25886#if HAVE_PTHREADS > 4 25887 /* Final pthreads */ 25888 pthread_attr_t attr; 25889 25890 status = pthread_attr_init(&attr); 25891 if( status ) return status; 25892 25893#if HAVE_PTHREADS < 7 25894 status = pthread_attr_setdetachstate(&attr, &detach); 25895 if( status < 0 ) status = errno; 25896#else 25897 status = pthread_attr_setdetachstate(&attr, detach); 25898#endif 25899 if( status ) return status; 25900 status = pthread_create( &t, &attr, task, NULL ); 25901#if HAVE_PTHREADS < 7 25902 if( status < 0 ) status = errno; 25903#endif 25904 if( status ) return status; 25905#else 25906 /* Draft 4 pthreads */ 25907 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25908 if( status ) return errno; 25909 25910 /* give thread a chance to complete */ 25911 /* it should remain joinable and hence detachable */ 25912 sleep( 1 ); 25913 25914 status = pthread_detach( &t ); 25915 if( status ) return errno; 25916#endif 25917 25918#ifdef HAVE_LINUX_THREADS 25919 pthread_kill_other_threads_np(); 25920#endif 25921 25922 return 0; 25923 25924 ; 25925 return 0; 25926} 25927_ACEOF 25928if ac_fn_c_try_link "$LINENO"; then : 25929 ol_cv_pthread_lpthreads_lmach_lexc=yes 25930else 25931 ol_cv_pthread_lpthreads_lmach_lexc=no 25932fi 25933rm -f core conftest.err conftest.$ac_objext \ 25934 conftest$ac_exeext conftest.$ac_ext 25935else 25936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25937/* end confdefs.h. */ 25938 25939 25940/* pthread test headers */ 25941#include <pthread.h> 25942#if HAVE_PTHREADS < 7 25943#include <errno.h> 25944#endif 25945#ifndef NULL 25946#define NULL (void*)0 25947#endif 25948 25949static void *task(p) 25950 void *p; 25951{ 25952 return (void *) (p == NULL); 25953} 25954 25955 25956int main(argc, argv) 25957 int argc; 25958 char **argv; 25959{ 25960 25961 /* pthread test function */ 25962#ifndef PTHREAD_CREATE_DETACHED 25963#define PTHREAD_CREATE_DETACHED 1 25964#endif 25965 pthread_t t; 25966 int status; 25967 int detach = PTHREAD_CREATE_DETACHED; 25968 25969#if HAVE_PTHREADS > 4 25970 /* Final pthreads */ 25971 pthread_attr_t attr; 25972 25973 status = pthread_attr_init(&attr); 25974 if( status ) return status; 25975 25976#if HAVE_PTHREADS < 7 25977 status = pthread_attr_setdetachstate(&attr, &detach); 25978 if( status < 0 ) status = errno; 25979#else 25980 status = pthread_attr_setdetachstate(&attr, detach); 25981#endif 25982 if( status ) return status; 25983 status = pthread_create( &t, &attr, task, NULL ); 25984#if HAVE_PTHREADS < 7 25985 if( status < 0 ) status = errno; 25986#endif 25987 if( status ) return status; 25988#else 25989 /* Draft 4 pthreads */ 25990 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25991 if( status ) return errno; 25992 25993 /* give thread a chance to complete */ 25994 /* it should remain joinable and hence detachable */ 25995 sleep( 1 ); 25996 25997 status = pthread_detach( &t ); 25998 if( status ) return errno; 25999#endif 26000 26001#ifdef HAVE_LINUX_THREADS 26002 pthread_kill_other_threads_np(); 26003#endif 26004 26005 return 0; 26006 26007} 26008 26009_ACEOF 26010if ac_fn_c_try_run "$LINENO"; then : 26011 ol_cv_pthread_lpthreads_lmach_lexc=yes 26012else 26013 ol_cv_pthread_lpthreads_lmach_lexc=no 26014fi 26015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26016 conftest.$ac_objext conftest.beam conftest.$ac_ext 26017fi 26018 26019 26020 # restore the LIBS 26021 LIBS="$ol_LIBS" 26022 26023fi 26024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 26025$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 26026 26027 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 26028 ol_link_pthreads="-lpthreads -lmach -lexc" 26029 ol_link_threads=posix 26030 fi 26031fi 26032 26033 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 26034if test "$ol_link_threads" = no ; then 26035 # try -lpthreads -lexc 26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 26037$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 26038if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 26039 $as_echo_n "(cached) " >&6 26040else 26041 26042 # save the flags 26043 ol_LIBS="$LIBS" 26044 LIBS="-lpthreads -lexc $LIBS" 26045 26046 if test "$cross_compiling" = yes; then : 26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26048/* end confdefs.h. */ 26049 26050/* pthread test headers */ 26051#include <pthread.h> 26052#if HAVE_PTHREADS < 7 26053#include <errno.h> 26054#endif 26055#ifndef NULL 26056#define NULL (void*)0 26057#endif 26058 26059static void *task(p) 26060 void *p; 26061{ 26062 return (void *) (p == NULL); 26063} 26064 26065int 26066main () 26067{ 26068 26069 /* pthread test function */ 26070#ifndef PTHREAD_CREATE_DETACHED 26071#define PTHREAD_CREATE_DETACHED 1 26072#endif 26073 pthread_t t; 26074 int status; 26075 int detach = PTHREAD_CREATE_DETACHED; 26076 26077#if HAVE_PTHREADS > 4 26078 /* Final pthreads */ 26079 pthread_attr_t attr; 26080 26081 status = pthread_attr_init(&attr); 26082 if( status ) return status; 26083 26084#if HAVE_PTHREADS < 7 26085 status = pthread_attr_setdetachstate(&attr, &detach); 26086 if( status < 0 ) status = errno; 26087#else 26088 status = pthread_attr_setdetachstate(&attr, detach); 26089#endif 26090 if( status ) return status; 26091 status = pthread_create( &t, &attr, task, NULL ); 26092#if HAVE_PTHREADS < 7 26093 if( status < 0 ) status = errno; 26094#endif 26095 if( status ) return status; 26096#else 26097 /* Draft 4 pthreads */ 26098 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26099 if( status ) return errno; 26100 26101 /* give thread a chance to complete */ 26102 /* it should remain joinable and hence detachable */ 26103 sleep( 1 ); 26104 26105 status = pthread_detach( &t ); 26106 if( status ) return errno; 26107#endif 26108 26109#ifdef HAVE_LINUX_THREADS 26110 pthread_kill_other_threads_np(); 26111#endif 26112 26113 return 0; 26114 26115 ; 26116 return 0; 26117} 26118_ACEOF 26119if ac_fn_c_try_link "$LINENO"; then : 26120 ol_cv_pthread_lpthreads_lexc=yes 26121else 26122 ol_cv_pthread_lpthreads_lexc=no 26123fi 26124rm -f core conftest.err conftest.$ac_objext \ 26125 conftest$ac_exeext conftest.$ac_ext 26126else 26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26128/* end confdefs.h. */ 26129 26130 26131/* pthread test headers */ 26132#include <pthread.h> 26133#if HAVE_PTHREADS < 7 26134#include <errno.h> 26135#endif 26136#ifndef NULL 26137#define NULL (void*)0 26138#endif 26139 26140static void *task(p) 26141 void *p; 26142{ 26143 return (void *) (p == NULL); 26144} 26145 26146 26147int main(argc, argv) 26148 int argc; 26149 char **argv; 26150{ 26151 26152 /* pthread test function */ 26153#ifndef PTHREAD_CREATE_DETACHED 26154#define PTHREAD_CREATE_DETACHED 1 26155#endif 26156 pthread_t t; 26157 int status; 26158 int detach = PTHREAD_CREATE_DETACHED; 26159 26160#if HAVE_PTHREADS > 4 26161 /* Final pthreads */ 26162 pthread_attr_t attr; 26163 26164 status = pthread_attr_init(&attr); 26165 if( status ) return status; 26166 26167#if HAVE_PTHREADS < 7 26168 status = pthread_attr_setdetachstate(&attr, &detach); 26169 if( status < 0 ) status = errno; 26170#else 26171 status = pthread_attr_setdetachstate(&attr, detach); 26172#endif 26173 if( status ) return status; 26174 status = pthread_create( &t, &attr, task, NULL ); 26175#if HAVE_PTHREADS < 7 26176 if( status < 0 ) status = errno; 26177#endif 26178 if( status ) return status; 26179#else 26180 /* Draft 4 pthreads */ 26181 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26182 if( status ) return errno; 26183 26184 /* give thread a chance to complete */ 26185 /* it should remain joinable and hence detachable */ 26186 sleep( 1 ); 26187 26188 status = pthread_detach( &t ); 26189 if( status ) return errno; 26190#endif 26191 26192#ifdef HAVE_LINUX_THREADS 26193 pthread_kill_other_threads_np(); 26194#endif 26195 26196 return 0; 26197 26198} 26199 26200_ACEOF 26201if ac_fn_c_try_run "$LINENO"; then : 26202 ol_cv_pthread_lpthreads_lexc=yes 26203else 26204 ol_cv_pthread_lpthreads_lexc=no 26205fi 26206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26207 conftest.$ac_objext conftest.beam conftest.$ac_ext 26208fi 26209 26210 26211 # restore the LIBS 26212 LIBS="$ol_LIBS" 26213 26214fi 26215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 26216$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 26217 26218 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 26219 ol_link_pthreads="-lpthreads -lexc" 26220 ol_link_threads=posix 26221 fi 26222fi 26223 26224 26225 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 26226if test "$ol_link_threads" = no ; then 26227 # try -lpthreads 26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 26229$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 26230if ${ol_cv_pthread_lib_lpthreads+:} false; then : 26231 $as_echo_n "(cached) " >&6 26232else 26233 26234 # save the flags 26235 ol_LIBS="$LIBS" 26236 LIBS="-lpthreads $LIBS" 26237 26238 if test "$cross_compiling" = yes; then : 26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26240/* end confdefs.h. */ 26241 26242/* pthread test headers */ 26243#include <pthread.h> 26244#if HAVE_PTHREADS < 7 26245#include <errno.h> 26246#endif 26247#ifndef NULL 26248#define NULL (void*)0 26249#endif 26250 26251static void *task(p) 26252 void *p; 26253{ 26254 return (void *) (p == NULL); 26255} 26256 26257int 26258main () 26259{ 26260 26261 /* pthread test function */ 26262#ifndef PTHREAD_CREATE_DETACHED 26263#define PTHREAD_CREATE_DETACHED 1 26264#endif 26265 pthread_t t; 26266 int status; 26267 int detach = PTHREAD_CREATE_DETACHED; 26268 26269#if HAVE_PTHREADS > 4 26270 /* Final pthreads */ 26271 pthread_attr_t attr; 26272 26273 status = pthread_attr_init(&attr); 26274 if( status ) return status; 26275 26276#if HAVE_PTHREADS < 7 26277 status = pthread_attr_setdetachstate(&attr, &detach); 26278 if( status < 0 ) status = errno; 26279#else 26280 status = pthread_attr_setdetachstate(&attr, detach); 26281#endif 26282 if( status ) return status; 26283 status = pthread_create( &t, &attr, task, NULL ); 26284#if HAVE_PTHREADS < 7 26285 if( status < 0 ) status = errno; 26286#endif 26287 if( status ) return status; 26288#else 26289 /* Draft 4 pthreads */ 26290 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26291 if( status ) return errno; 26292 26293 /* give thread a chance to complete */ 26294 /* it should remain joinable and hence detachable */ 26295 sleep( 1 ); 26296 26297 status = pthread_detach( &t ); 26298 if( status ) return errno; 26299#endif 26300 26301#ifdef HAVE_LINUX_THREADS 26302 pthread_kill_other_threads_np(); 26303#endif 26304 26305 return 0; 26306 26307 ; 26308 return 0; 26309} 26310_ACEOF 26311if ac_fn_c_try_link "$LINENO"; then : 26312 ol_cv_pthread_lib_lpthreads=yes 26313else 26314 ol_cv_pthread_lib_lpthreads=no 26315fi 26316rm -f core conftest.err conftest.$ac_objext \ 26317 conftest$ac_exeext conftest.$ac_ext 26318else 26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26320/* end confdefs.h. */ 26321 26322 26323/* pthread test headers */ 26324#include <pthread.h> 26325#if HAVE_PTHREADS < 7 26326#include <errno.h> 26327#endif 26328#ifndef NULL 26329#define NULL (void*)0 26330#endif 26331 26332static void *task(p) 26333 void *p; 26334{ 26335 return (void *) (p == NULL); 26336} 26337 26338 26339int main(argc, argv) 26340 int argc; 26341 char **argv; 26342{ 26343 26344 /* pthread test function */ 26345#ifndef PTHREAD_CREATE_DETACHED 26346#define PTHREAD_CREATE_DETACHED 1 26347#endif 26348 pthread_t t; 26349 int status; 26350 int detach = PTHREAD_CREATE_DETACHED; 26351 26352#if HAVE_PTHREADS > 4 26353 /* Final pthreads */ 26354 pthread_attr_t attr; 26355 26356 status = pthread_attr_init(&attr); 26357 if( status ) return status; 26358 26359#if HAVE_PTHREADS < 7 26360 status = pthread_attr_setdetachstate(&attr, &detach); 26361 if( status < 0 ) status = errno; 26362#else 26363 status = pthread_attr_setdetachstate(&attr, detach); 26364#endif 26365 if( status ) return status; 26366 status = pthread_create( &t, &attr, task, NULL ); 26367#if HAVE_PTHREADS < 7 26368 if( status < 0 ) status = errno; 26369#endif 26370 if( status ) return status; 26371#else 26372 /* Draft 4 pthreads */ 26373 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26374 if( status ) return errno; 26375 26376 /* give thread a chance to complete */ 26377 /* it should remain joinable and hence detachable */ 26378 sleep( 1 ); 26379 26380 status = pthread_detach( &t ); 26381 if( status ) return errno; 26382#endif 26383 26384#ifdef HAVE_LINUX_THREADS 26385 pthread_kill_other_threads_np(); 26386#endif 26387 26388 return 0; 26389 26390} 26391 26392_ACEOF 26393if ac_fn_c_try_run "$LINENO"; then : 26394 ol_cv_pthread_lib_lpthreads=yes 26395else 26396 ol_cv_pthread_lib_lpthreads=no 26397fi 26398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26399 conftest.$ac_objext conftest.beam conftest.$ac_ext 26400fi 26401 26402 26403 # restore the LIBS 26404 LIBS="$ol_LIBS" 26405 26406fi 26407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 26408$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 26409 26410 if test $ol_cv_pthread_lib_lpthreads = yes ; then 26411 ol_link_pthreads="-lpthreads" 26412 ol_link_threads=posix 26413 fi 26414fi 26415 26416 26417{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 26418$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 26419 26420 if test $ol_link_threads != no ; then 26421 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 26422 26423 save_CPPFLAGS="$CPPFLAGS" 26424 save_LIBS="$LIBS" 26425 LIBS="$LTHREAD_LIBS $LIBS" 26426 26427 for ac_func in sched_yield pthread_yield thr_yield 26428do : 26429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26430ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26431if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26432 cat >>confdefs.h <<_ACEOF 26433#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26434_ACEOF 26435 26436fi 26437done 26438 26439 26440 if test $ac_cv_func_sched_yield = no && 26441 test $ac_cv_func_pthread_yield = no && 26442 test $ac_cv_func_thr_yield = no ; then 26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 26444$as_echo_n "checking for sched_yield in -lrt... " >&6; } 26445if ${ac_cv_lib_rt_sched_yield+:} false; then : 26446 $as_echo_n "(cached) " >&6 26447else 26448 ac_check_lib_save_LIBS=$LIBS 26449LIBS="-lrt $LIBS" 26450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26451/* end confdefs.h. */ 26452 26453/* Override any GCC internal prototype to avoid an error. 26454 Use char because int might match the return type of a GCC 26455 builtin and then its argument prototype would still apply. */ 26456#ifdef __cplusplus 26457extern "C" 26458#endif 26459char sched_yield (); 26460int 26461main () 26462{ 26463return sched_yield (); 26464 ; 26465 return 0; 26466} 26467_ACEOF 26468if ac_fn_c_try_link "$LINENO"; then : 26469 ac_cv_lib_rt_sched_yield=yes 26470else 26471 ac_cv_lib_rt_sched_yield=no 26472fi 26473rm -f core conftest.err conftest.$ac_objext \ 26474 conftest$ac_exeext conftest.$ac_ext 26475LIBS=$ac_check_lib_save_LIBS 26476fi 26477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 26478$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 26479if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 26480 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 26481 26482$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 26483 26484 ac_cv_func_sched_yield=yes 26485else 26486 ac_cv_func_sched_yield=no 26487fi 26488 26489 fi 26490 if test $ac_cv_func_sched_yield = no && 26491 test $ac_cv_func_pthread_yield = no && 26492 test "$ac_cv_func_thr_yield" = no ; then 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 26494$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 26495 fi 26496 26497 for ac_func in pthread_kill 26498do : 26499 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 26500if test "x$ac_cv_func_pthread_kill" = xyes; then : 26501 cat >>confdefs.h <<_ACEOF 26502#define HAVE_PTHREAD_KILL 1 26503_ACEOF 26504 26505fi 26506done 26507 26508 26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 26510$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 26511if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 26512 $as_echo_n "(cached) " >&6 26513else 26514 26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26516/* end confdefs.h. */ 26517 26518#include <pthread.h> 26519pthread_rwlock_t rwlock; 26520 26521int 26522main () 26523{ 26524pthread_rwlock_destroy(&rwlock); 26525 ; 26526 return 0; 26527} 26528_ACEOF 26529if ac_fn_c_try_link "$LINENO"; then : 26530 ol_cv_func_pthread_rwlock_destroy=yes 26531else 26532 ol_cv_func_pthread_rwlock_destroy=no 26533fi 26534rm -f core conftest.err conftest.$ac_objext \ 26535 conftest$ac_exeext conftest.$ac_ext 26536 26537fi 26538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 26539$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 26540 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 26541 26542$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 26543 26544 fi 26545 26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 26547$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 26548if ${ol_cv_func_pthread_detach+:} false; then : 26549 $as_echo_n "(cached) " >&6 26550else 26551 26552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26553/* end confdefs.h. */ 26554 26555#include <pthread.h> 26556#ifndef NULL 26557#define NULL (void*)0 26558#endif 26559 26560int 26561main () 26562{ 26563pthread_detach(NULL); 26564 ; 26565 return 0; 26566} 26567_ACEOF 26568if ac_fn_c_try_link "$LINENO"; then : 26569 ol_cv_func_pthread_detach=yes 26570else 26571 ol_cv_func_pthread_detach=no 26572fi 26573rm -f core conftest.err conftest.$ac_objext \ 26574 conftest$ac_exeext conftest.$ac_ext 26575 26576fi 26577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 26578$as_echo "$ol_cv_func_pthread_detach" >&6; } 26579 26580 if test $ol_cv_func_pthread_detach = no ; then 26581 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 26582 fi 26583 26584 26585$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 26586 26587 26588 for ac_func in \ 26589 pthread_setconcurrency \ 26590 pthread_getconcurrency \ 26591 thr_setconcurrency \ 26592 thr_getconcurrency \ 26593 26594do : 26595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26597if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26598 cat >>confdefs.h <<_ACEOF 26599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26600_ACEOF 26601 26602fi 26603done 26604 26605 26606 26607 for ac_func in pthread_kill_other_threads_np 26608do : 26609 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 26610if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 26611 cat >>confdefs.h <<_ACEOF 26612#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 26613_ACEOF 26614 26615fi 26616done 26617 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 26619$as_echo_n "checking for LinuxThreads implementation... " >&6; } 26620if ${ol_cv_sys_linux_threads+:} false; then : 26621 $as_echo_n "(cached) " >&6 26622else 26623 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 26624fi 26625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 26626$as_echo "$ol_cv_sys_linux_threads" >&6; } 26627 26628 26629 26630 26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 26632$as_echo_n "checking for LinuxThreads consistency... " >&6; } 26633if ${ol_cv_linux_threads+:} false; then : 26634 $as_echo_n "(cached) " >&6 26635else 26636 26637 if test $ol_cv_header_linux_threads = yes && 26638 test $ol_cv_sys_linux_threads = yes; then 26639 ol_cv_linux_threads=yes 26640 elif test $ol_cv_header_linux_threads = no && 26641 test $ol_cv_sys_linux_threads = no; then 26642 ol_cv_linux_threads=no 26643 else 26644 ol_cv_linux_threads=error 26645 fi 26646 26647fi 26648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 26649$as_echo "$ol_cv_linux_threads" >&6; } 26650 26651 26652 if test $ol_cv_linux_threads = error; then 26653 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 26654 fi 26655 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 26657$as_echo_n "checking if pthread_create() works... " >&6; } 26658if ${ol_cv_pthread_create_works+:} false; then : 26659 $as_echo_n "(cached) " >&6 26660else 26661 26662 if test "$cross_compiling" = yes; then : 26663 ol_cv_pthread_create_works=yes 26664else 26665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26666/* end confdefs.h. */ 26667 26668 26669/* pthread test headers */ 26670#include <pthread.h> 26671#if HAVE_PTHREADS < 7 26672#include <errno.h> 26673#endif 26674#ifndef NULL 26675#define NULL (void*)0 26676#endif 26677 26678static void *task(p) 26679 void *p; 26680{ 26681 return (void *) (p == NULL); 26682} 26683 26684 26685int main(argc, argv) 26686 int argc; 26687 char **argv; 26688{ 26689 26690 /* pthread test function */ 26691#ifndef PTHREAD_CREATE_DETACHED 26692#define PTHREAD_CREATE_DETACHED 1 26693#endif 26694 pthread_t t; 26695 int status; 26696 int detach = PTHREAD_CREATE_DETACHED; 26697 26698#if HAVE_PTHREADS > 4 26699 /* Final pthreads */ 26700 pthread_attr_t attr; 26701 26702 status = pthread_attr_init(&attr); 26703 if( status ) return status; 26704 26705#if HAVE_PTHREADS < 7 26706 status = pthread_attr_setdetachstate(&attr, &detach); 26707 if( status < 0 ) status = errno; 26708#else 26709 status = pthread_attr_setdetachstate(&attr, detach); 26710#endif 26711 if( status ) return status; 26712 status = pthread_create( &t, &attr, task, NULL ); 26713#if HAVE_PTHREADS < 7 26714 if( status < 0 ) status = errno; 26715#endif 26716 if( status ) return status; 26717#else 26718 /* Draft 4 pthreads */ 26719 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26720 if( status ) return errno; 26721 26722 /* give thread a chance to complete */ 26723 /* it should remain joinable and hence detachable */ 26724 sleep( 1 ); 26725 26726 status = pthread_detach( &t ); 26727 if( status ) return errno; 26728#endif 26729 26730#ifdef HAVE_LINUX_THREADS 26731 pthread_kill_other_threads_np(); 26732#endif 26733 26734 return 0; 26735 26736} 26737 26738_ACEOF 26739if ac_fn_c_try_run "$LINENO"; then : 26740 ol_cv_pthread_create_works=yes 26741else 26742 ol_cv_pthread_create_works=no 26743fi 26744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26745 conftest.$ac_objext conftest.beam conftest.$ac_ext 26746fi 26747 26748fi 26749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 26750$as_echo "$ol_cv_pthread_create_works" >&6; } 26751 26752 if test $ol_cv_pthread_create_works = no ; then 26753 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 26754 fi 26755 26756 ol_replace_broken_yield=no 26757 26758 if test $ol_replace_broken_yield = yes ; then 26759 26760$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 26761 26762 fi 26763 26764 if test x$ol_with_yielding_select = xauto ; then 26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 26766$as_echo_n "checking if select yields when using pthreads... " >&6; } 26767if ${ol_cv_pthread_select_yields+:} false; then : 26768 $as_echo_n "(cached) " >&6 26769else 26770 26771 if test "$cross_compiling" = yes; then : 26772 ol_cv_pthread_select_yields=cross 26773else 26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26775/* end confdefs.h. */ 26776 26777#include <sys/types.h> 26778#include <sys/time.h> 26779#include <unistd.h> 26780#include <pthread.h> 26781#ifndef NULL 26782#define NULL (void*) 0 26783#endif 26784 26785static int fildes[2]; 26786 26787static void *task(p) 26788 void *p; 26789{ 26790 int i; 26791 struct timeval tv; 26792 26793 fd_set rfds; 26794 26795 tv.tv_sec=10; 26796 tv.tv_usec=0; 26797 26798 FD_ZERO(&rfds); 26799 FD_SET(fildes[0], &rfds); 26800 26801 /* we're not interested in any fds */ 26802 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 26803 26804 if(i < 0) { 26805 perror("select"); 26806 exit(10); 26807 } 26808 26809 exit(0); /* if we exit here, the select blocked the whole process */ 26810} 26811 26812int main(argc, argv) 26813 int argc; 26814 char **argv; 26815{ 26816 pthread_t t; 26817 26818 /* create a pipe to select */ 26819 if(pipe(&fildes[0])) { 26820 perror("select"); 26821 exit(1); 26822 } 26823 26824#ifdef HAVE_PTHREAD_SETCONCURRENCY 26825 (void) pthread_setconcurrency(2); 26826#else 26827#ifdef HAVE_THR_SETCONCURRENCY 26828 /* Set Solaris LWP concurrency to 2 */ 26829 thr_setconcurrency(2); 26830#endif 26831#endif 26832 26833#if HAVE_PTHREADS < 6 26834 pthread_create(&t, pthread_attr_default, task, NULL); 26835#else 26836 pthread_create(&t, NULL, task, NULL); 26837#endif 26838 26839 /* make sure task runs first */ 26840#ifdef HAVE_THR_YIELD 26841 thr_yield(); 26842#elif defined( HAVE_SCHED_YIELD ) 26843 sched_yield(); 26844#elif defined( HAVE_PTHREAD_YIELD ) 26845 pthread_yield(); 26846#endif 26847 26848 exit(2); 26849} 26850_ACEOF 26851if ac_fn_c_try_run "$LINENO"; then : 26852 ol_cv_pthread_select_yields=no 26853else 26854 ol_cv_pthread_select_yields=yes 26855fi 26856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26857 conftest.$ac_objext conftest.beam conftest.$ac_ext 26858fi 26859 26860fi 26861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 26862$as_echo "$ol_cv_pthread_select_yields" >&6; } 26863 26864 if test $ol_cv_pthread_select_yields = cross ; then 26865 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 26866 fi 26867 26868 if test $ol_cv_pthread_select_yields = yes ; then 26869 ol_with_yielding_select=yes 26870 fi 26871 fi 26872 26873 CPPFLAGS="$save_CPPFLAGS" 26874 LIBS="$save_LIBS" 26875 else 26876 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 26877 fi 26878 fi 26879 26880 if test $ol_with_threads = posix ; then 26881 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 26882 fi 26883 ;; 26884esac 26885 26886case $ol_with_threads in auto | yes | mach) 26887 26888 for ac_header in mach/cthreads.h cthreads.h 26889do : 26890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26893 cat >>confdefs.h <<_ACEOF 26894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26895_ACEOF 26896 26897fi 26898 26899done 26900 26901 if test $ac_cv_header_mach_cthreads_h = yes ; then 26902 ol_with_threads=found 26903 26904 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 26905if test "x$ac_cv_func_cthread_fork" = xyes; then : 26906 ol_link_threads=yes 26907fi 26908 26909 26910 if test $ol_link_threads = no ; then 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 26912$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 26913if ${ol_cv_cthread_all_load+:} false; then : 26914 $as_echo_n "(cached) " >&6 26915else 26916 26917 save_LIBS="$LIBS" 26918 LIBS="-all_load $LIBS" 26919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26920/* end confdefs.h. */ 26921#include <mach/cthreads.h> 26922int 26923main () 26924{ 26925 26926 cthread_fork((void *)0, (void *)0); 26927 26928 ; 26929 return 0; 26930} 26931_ACEOF 26932if ac_fn_c_try_link "$LINENO"; then : 26933 ol_cv_cthread_all_load=yes 26934else 26935 ol_cv_cthread_all_load=no 26936fi 26937rm -f core conftest.err conftest.$ac_objext \ 26938 conftest$ac_exeext conftest.$ac_ext 26939 LIBS="$save_LIBS" 26940 26941fi 26942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 26943$as_echo "$ol_cv_cthread_all_load" >&6; } 26944 26945 if test $ol_cv_cthread_all_load = yes ; then 26946 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 26947 ol_link_threads=mach 26948 ol_with_threads=found 26949 fi 26950 fi 26951 26952 elif test $ac_cv_header_cthreads_h = yes ; then 26953 26954 ol_with_threads=found 26955 26956 save_LIBS="$LIBS" 26957 LIBS="$LIBS -lthreads" 26958 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 26959if test "x$ac_cv_func_cthread_fork" = xyes; then : 26960 ol_link_threads=yes 26961fi 26962 26963 LIBS="$save_LIBS" 26964 26965 if test $ol_link_threads = yes ; then 26966 LTHREAD_LIBS="-lthreads" 26967 ol_link_threads=mach 26968 ol_with_threads=found 26969 else 26970 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 26971 fi 26972 26973 elif test $ol_with_threads = mach ; then 26974 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 26975 fi 26976 26977 if test $ol_link_threads = mach ; then 26978 26979$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 26980 26981 elif test $ol_with_threads = found ; then 26982 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 26983 fi 26984 ;; 26985esac 26986 26987case $ol_with_threads in auto | yes | pth) 26988 26989 for ac_header in pth.h 26990do : 26991 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 26992if test "x$ac_cv_header_pth_h" = xyes; then : 26993 cat >>confdefs.h <<_ACEOF 26994#define HAVE_PTH_H 1 26995_ACEOF 26996 26997fi 26998 26999done 27000 27001 27002 if test $ac_cv_header_pth_h = yes ; then 27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 27004$as_echo_n "checking for pth_version in -lpth... " >&6; } 27005if ${ac_cv_lib_pth_pth_version+:} false; then : 27006 $as_echo_n "(cached) " >&6 27007else 27008 ac_check_lib_save_LIBS=$LIBS 27009LIBS="-lpth $LIBS" 27010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27011/* end confdefs.h. */ 27012 27013/* Override any GCC internal prototype to avoid an error. 27014 Use char because int might match the return type of a GCC 27015 builtin and then its argument prototype would still apply. */ 27016#ifdef __cplusplus 27017extern "C" 27018#endif 27019char pth_version (); 27020int 27021main () 27022{ 27023return pth_version (); 27024 ; 27025 return 0; 27026} 27027_ACEOF 27028if ac_fn_c_try_link "$LINENO"; then : 27029 ac_cv_lib_pth_pth_version=yes 27030else 27031 ac_cv_lib_pth_pth_version=no 27032fi 27033rm -f core conftest.err conftest.$ac_objext \ 27034 conftest$ac_exeext conftest.$ac_ext 27035LIBS=$ac_check_lib_save_LIBS 27036fi 27037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 27038$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 27039if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 27040 have_pth=yes 27041else 27042 have_pth=no 27043fi 27044 27045 27046 if test $have_pth = yes ; then 27047 27048$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 27049 27050 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 27051 ol_link_threads=pth 27052 ol_with_threads=found 27053 27054 if test x$ol_with_yielding_select = xauto ; then 27055 ol_with_yielding_select=yes 27056 fi 27057 fi 27058 fi 27059 ;; 27060esac 27061 27062case $ol_with_threads in auto | yes | lwp) 27063 27064 for ac_header in thread.h synch.h 27065do : 27066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27069 cat >>confdefs.h <<_ACEOF 27070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27071_ACEOF 27072 27073fi 27074 27075done 27076 27077 if test $ac_cv_header_thread_h = yes && 27078 test $ac_cv_header_synch_h = yes ; then 27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 27080$as_echo_n "checking for thr_create in -lthread... " >&6; } 27081if ${ac_cv_lib_thread_thr_create+:} false; then : 27082 $as_echo_n "(cached) " >&6 27083else 27084 ac_check_lib_save_LIBS=$LIBS 27085LIBS="-lthread $LIBS" 27086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27087/* end confdefs.h. */ 27088 27089/* Override any GCC internal prototype to avoid an error. 27090 Use char because int might match the return type of a GCC 27091 builtin and then its argument prototype would still apply. */ 27092#ifdef __cplusplus 27093extern "C" 27094#endif 27095char thr_create (); 27096int 27097main () 27098{ 27099return thr_create (); 27100 ; 27101 return 0; 27102} 27103_ACEOF 27104if ac_fn_c_try_link "$LINENO"; then : 27105 ac_cv_lib_thread_thr_create=yes 27106else 27107 ac_cv_lib_thread_thr_create=no 27108fi 27109rm -f core conftest.err conftest.$ac_objext \ 27110 conftest$ac_exeext conftest.$ac_ext 27111LIBS=$ac_check_lib_save_LIBS 27112fi 27113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 27114$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 27115if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 27116 have_thr=yes 27117else 27118 have_thr=no 27119fi 27120 27121 27122 if test $have_thr = yes ; then 27123 27124$as_echo "#define HAVE_THR 1" >>confdefs.h 27125 27126 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 27127 ol_link_threads=thr 27128 27129 if test x$ol_with_yielding_select = xauto ; then 27130 ol_with_yielding_select=yes 27131 fi 27132 27133 for ac_func in \ 27134 thr_setconcurrency \ 27135 thr_getconcurrency \ 27136 27137do : 27138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27140if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27141 cat >>confdefs.h <<_ACEOF 27142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27143_ACEOF 27144 27145fi 27146done 27147 27148 fi 27149 fi 27150 27151 for ac_header in lwp/lwp.h 27152do : 27153 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 27154if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 27155 cat >>confdefs.h <<_ACEOF 27156#define HAVE_LWP_LWP_H 1 27157_ACEOF 27158 27159fi 27160 27161done 27162 27163 if test $ac_cv_header_lwp_lwp_h = yes ; then 27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 27165$as_echo_n "checking for lwp_create in -llwp... " >&6; } 27166if ${ac_cv_lib_lwp_lwp_create+:} false; then : 27167 $as_echo_n "(cached) " >&6 27168else 27169 ac_check_lib_save_LIBS=$LIBS 27170LIBS="-llwp $LIBS" 27171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27172/* end confdefs.h. */ 27173 27174/* Override any GCC internal prototype to avoid an error. 27175 Use char because int might match the return type of a GCC 27176 builtin and then its argument prototype would still apply. */ 27177#ifdef __cplusplus 27178extern "C" 27179#endif 27180char lwp_create (); 27181int 27182main () 27183{ 27184return lwp_create (); 27185 ; 27186 return 0; 27187} 27188_ACEOF 27189if ac_fn_c_try_link "$LINENO"; then : 27190 ac_cv_lib_lwp_lwp_create=yes 27191else 27192 ac_cv_lib_lwp_lwp_create=no 27193fi 27194rm -f core conftest.err conftest.$ac_objext \ 27195 conftest$ac_exeext conftest.$ac_ext 27196LIBS=$ac_check_lib_save_LIBS 27197fi 27198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 27199$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 27200if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 27201 have_lwp=yes 27202else 27203 have_lwp=no 27204fi 27205 27206 27207 if test $have_lwp = yes ; then 27208 27209$as_echo "#define HAVE_LWP 1" >>confdefs.h 27210 27211 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 27212 ol_link_threads=lwp 27213 27214 if test x$ol_with_yielding_select = xauto ; then 27215 ol_with_yielding_select=no 27216 fi 27217 fi 27218 fi 27219 ;; 27220esac 27221 27222if test $ol_with_yielding_select = yes ; then 27223 27224$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 27225 27226fi 27227 27228if test $ol_with_threads = manual ; then 27229 ol_link_threads=yes 27230 27231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 27232$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 27233 27234 for ac_header in pthread.h sched.h 27235do : 27236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27239 cat >>confdefs.h <<_ACEOF 27240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27241_ACEOF 27242 27243fi 27244 27245done 27246 27247 for ac_func in sched_yield pthread_yield 27248do : 27249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27250ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27251if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27252 cat >>confdefs.h <<_ACEOF 27253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27254_ACEOF 27255 27256fi 27257done 27258 27259 27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 27261$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 27262if ${ol_cv_header_linux_threads+:} false; then : 27263 $as_echo_n "(cached) " >&6 27264else 27265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27266/* end confdefs.h. */ 27267#include <pthread.h> 27268_ACEOF 27269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27270 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 27271 ol_cv_header_linux_threads=yes 27272else 27273 ol_cv_header_linux_threads=no 27274fi 27275rm -f conftest* 27276 27277 27278fi 27279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 27280$as_echo "$ol_cv_header_linux_threads" >&6; } 27281 if test $ol_cv_header_linux_threads = yes; then 27282 27283$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 27284 27285 fi 27286 27287 27288 for ac_header in mach/cthreads.h 27289do : 27290 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 27291if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 27292 cat >>confdefs.h <<_ACEOF 27293#define HAVE_MACH_CTHREADS_H 1 27294_ACEOF 27295 27296fi 27297 27298done 27299 27300 for ac_header in lwp/lwp.h 27301do : 27302 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 27303if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 27304 cat >>confdefs.h <<_ACEOF 27305#define HAVE_LWP_LWP_H 1 27306_ACEOF 27307 27308fi 27309 27310done 27311 27312 for ac_header in thread.h synch.h 27313do : 27314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27315ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27317 cat >>confdefs.h <<_ACEOF 27318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27319_ACEOF 27320 27321fi 27322 27323done 27324 27325fi 27326 27327if test $ol_link_threads != no && test $ol_link_threads != nt ; then 27328 27329$as_echo "#define REENTRANT 1" >>confdefs.h 27330 27331 27332$as_echo "#define _REENTRANT 1" >>confdefs.h 27333 27334 27335$as_echo "#define THREAD_SAFE 1" >>confdefs.h 27336 27337 27338$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 27339 27340 27341$as_echo "#define THREADSAFE 1" >>confdefs.h 27342 27343 27344$as_echo "#define _THREADSAFE 1" >>confdefs.h 27345 27346 27347$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 27348 27349 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 27351$as_echo_n "checking for thread specific errno... " >&6; } 27352if ${ol_cv_errno_thread_specific+:} false; then : 27353 $as_echo_n "(cached) " >&6 27354else 27355 27356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27357/* end confdefs.h. */ 27358#include <errno.h> 27359int 27360main () 27361{ 27362errno = 0; 27363 ; 27364 return 0; 27365} 27366_ACEOF 27367if ac_fn_c_try_link "$LINENO"; then : 27368 ol_cv_errno_thread_specific=yes 27369else 27370 ol_cv_errno_thread_specific=no 27371fi 27372rm -f core conftest.err conftest.$ac_objext \ 27373 conftest$ac_exeext conftest.$ac_ext 27374 27375fi 27376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 27377$as_echo "$ol_cv_errno_thread_specific" >&6; } 27378 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 27380$as_echo_n "checking for thread specific h_errno... " >&6; } 27381if ${ol_cv_h_errno_thread_specific+:} false; then : 27382 $as_echo_n "(cached) " >&6 27383else 27384 27385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27386/* end confdefs.h. */ 27387#include <netdb.h> 27388int 27389main () 27390{ 27391h_errno = 0; 27392 ; 27393 return 0; 27394} 27395_ACEOF 27396if ac_fn_c_try_link "$LINENO"; then : 27397 ol_cv_h_errno_thread_specific=yes 27398else 27399 ol_cv_h_errno_thread_specific=no 27400fi 27401rm -f core conftest.err conftest.$ac_objext \ 27402 conftest$ac_exeext conftest.$ac_ext 27403 27404fi 27405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 27406$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 27407 27408 if test $ol_cv_errno_thread_specific != yes || 27409 test $ol_cv_h_errno_thread_specific != yes ; then 27410 LIBS="$LTHREAD_LIBS $LIBS" 27411 LTHREAD_LIBS="" 27412 fi 27413 27414fi 27415 27416if test $ol_link_threads = no ; then 27417 if test $ol_with_threads = yes ; then 27418 as_fn_error $? "no suitable thread support" "$LINENO" 5 27419 fi 27420 27421 if test $ol_with_threads = auto ; then 27422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 27423$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 27424 ol_with_threads=no 27425 fi 27426 27427 27428$as_echo "#define NO_THREADS 1" >>confdefs.h 27429 27430 LTHREAD_LIBS="" 27431 BUILD_THREAD=no 27432else 27433 BUILD_THREAD=yes 27434fi 27435 27436if test $ol_link_threads != no ; then 27437 27438$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 27439 27440fi 27441 27442# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 27443case "$ol_with_threads" in 27444 no) 27445 ol_pthread_ok=no 27446 27447 ;; 27448 *) 27449 ol_found_pthreads=yes 27450 ;; 27451esac 27452 27453ac_ext=c 27454ac_cpp='$CPP $CPPFLAGS' 27455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27457ac_compiler_gnu=$ac_cv_c_compiler_gnu 27458 27459 27460 27461 27462 27463 27464 case "$ol_found_pthreads" in 27465 yes) 27466 saved_LIBS="$LIBS" 27467 LIBS="$LTHREAD_LIBS $LIBS" 27468 saved_CFLAGS="$CFLAGS" 27469 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 27470 for ac_func in sem_timedwait 27471do : 27472 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 27473if test "x$ac_cv_func_sem_timedwait" = xyes; then : 27474 cat >>confdefs.h <<_ACEOF 27475#define HAVE_SEM_TIMEDWAIT 1 27476_ACEOF 27477 27478fi 27479done 27480 27481 LIBS="$saved_LIBS" 27482 { saved_LIBS=; unset saved_LIBS;} 27483 CFLAGS="$saved_CFLAGS" 27484 { saved_CFLAGS=; unset saved_CFLAGS;} 27485 case "$ac_cv_func_sem_timedwait" in 27486 yes) 27487 PTHREAD_LIBS="$LTHREAD_LIBS" 27488 have_pthreads=yes 27489 esac 27490 esac 27491esac 27492 27493case "$have_pthreads" in 27494 yes) 27495 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 27496 saved_LIBS="$LIBS" 27497 LIBS="$LTHREAD_LIBS $LIBS" 27498 saved_CFLAGS="$CFLAGS" 27499 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 27500 # The cast to long int works around a bug in the HP C Compiler 27501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27503# This bug is HP SR number 8606223364. 27504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 27505$as_echo_n "checking size of pthread_t... " >&6; } 27506if ${ac_cv_sizeof_pthread_t+:} false; then : 27507 $as_echo_n "(cached) " >&6 27508else 27509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 27510 $ac_includes_default 27511 #include <pthread.h> 27512 27513 27514"; then : 27515 27516else 27517 if test "$ac_cv_type_pthread_t" = yes; then 27518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27520as_fn_error 77 "cannot compute sizeof (pthread_t) 27521See \`config.log' for more details" "$LINENO" 5; } 27522 else 27523 ac_cv_sizeof_pthread_t=0 27524 fi 27525fi 27526 27527fi 27528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 27529$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 27530 27531 27532 27533cat >>confdefs.h <<_ACEOF 27534#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 27535_ACEOF 27536 27537 27538 LIBISC_PTHREADS_NOTHREADS=pthreads 27539 27540$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 27541 27542 # 27543 # We'd like to use sigwait() too 27544 # 27545 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 27546if test "x$ac_cv_func_sigwait" = xyes; then : 27547 have_sigwait=yes 27548else 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 27550$as_echo_n "checking for sigwait in -lc... " >&6; } 27551if ${ac_cv_lib_c_sigwait+:} false; then : 27552 $as_echo_n "(cached) " >&6 27553else 27554 ac_check_lib_save_LIBS=$LIBS 27555LIBS="-lc $LIBS" 27556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27557/* end confdefs.h. */ 27558 27559/* Override any GCC internal prototype to avoid an error. 27560 Use char because int might match the return type of a GCC 27561 builtin and then its argument prototype would still apply. */ 27562#ifdef __cplusplus 27563extern "C" 27564#endif 27565char sigwait (); 27566int 27567main () 27568{ 27569return sigwait (); 27570 ; 27571 return 0; 27572} 27573_ACEOF 27574if ac_fn_c_try_link "$LINENO"; then : 27575 ac_cv_lib_c_sigwait=yes 27576else 27577 ac_cv_lib_c_sigwait=no 27578fi 27579rm -f core conftest.err conftest.$ac_objext \ 27580 conftest$ac_exeext conftest.$ac_ext 27581LIBS=$ac_check_lib_save_LIBS 27582fi 27583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 27584$as_echo "$ac_cv_lib_c_sigwait" >&6; } 27585if test "x$ac_cv_lib_c_sigwait" = xyes; then : 27586 have_sigwait=yes 27587else 27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 27589$as_echo_n "checking for sigwait in -lpthread... " >&6; } 27590if ${ac_cv_lib_pthread_sigwait+:} false; then : 27591 $as_echo_n "(cached) " >&6 27592else 27593 ac_check_lib_save_LIBS=$LIBS 27594LIBS="-lpthread $LIBS" 27595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27596/* end confdefs.h. */ 27597 27598/* Override any GCC internal prototype to avoid an error. 27599 Use char because int might match the return type of a GCC 27600 builtin and then its argument prototype would still apply. */ 27601#ifdef __cplusplus 27602extern "C" 27603#endif 27604char sigwait (); 27605int 27606main () 27607{ 27608return sigwait (); 27609 ; 27610 return 0; 27611} 27612_ACEOF 27613if ac_fn_c_try_link "$LINENO"; then : 27614 ac_cv_lib_pthread_sigwait=yes 27615else 27616 ac_cv_lib_pthread_sigwait=no 27617fi 27618rm -f core conftest.err conftest.$ac_objext \ 27619 conftest$ac_exeext conftest.$ac_ext 27620LIBS=$ac_check_lib_save_LIBS 27621fi 27622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 27623$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 27624if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 27625 have_sigwait=yes 27626else 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 27628$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 27629if ${ac_cv_lib_pthread__Psigwait+:} false; then : 27630 $as_echo_n "(cached) " >&6 27631else 27632 ac_check_lib_save_LIBS=$LIBS 27633LIBS="-lpthread $LIBS" 27634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27635/* end confdefs.h. */ 27636 27637/* Override any GCC internal prototype to avoid an error. 27638 Use char because int might match the return type of a GCC 27639 builtin and then its argument prototype would still apply. */ 27640#ifdef __cplusplus 27641extern "C" 27642#endif 27643char _Psigwait (); 27644int 27645main () 27646{ 27647return _Psigwait (); 27648 ; 27649 return 0; 27650} 27651_ACEOF 27652if ac_fn_c_try_link "$LINENO"; then : 27653 ac_cv_lib_pthread__Psigwait=yes 27654else 27655 ac_cv_lib_pthread__Psigwait=no 27656fi 27657rm -f core conftest.err conftest.$ac_objext \ 27658 conftest$ac_exeext conftest.$ac_ext 27659LIBS=$ac_check_lib_save_LIBS 27660fi 27661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 27662$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 27663if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 27664 have_sigwait=yes 27665else 27666 have_sigwait=no 27667 27668fi 27669 27670 27671fi 27672 27673 27674fi 27675 27676 27677fi 27678 27679 case "$host:$have_sigwait" in 27680 *-freebsd*:no) 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 27682$as_echo_n "checking for sigwait in -lc_r... " >&6; } 27683if ${ac_cv_lib_c_r_sigwait+:} false; then : 27684 $as_echo_n "(cached) " >&6 27685else 27686 ac_check_lib_save_LIBS=$LIBS 27687LIBS="-lc_r $LIBS" 27688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27689/* end confdefs.h. */ 27690 27691/* Override any GCC internal prototype to avoid an error. 27692 Use char because int might match the return type of a GCC 27693 builtin and then its argument prototype would still apply. */ 27694#ifdef __cplusplus 27695extern "C" 27696#endif 27697char sigwait (); 27698int 27699main () 27700{ 27701return sigwait (); 27702 ; 27703 return 0; 27704} 27705_ACEOF 27706if ac_fn_c_try_link "$LINENO"; then : 27707 ac_cv_lib_c_r_sigwait=yes 27708else 27709 ac_cv_lib_c_r_sigwait=no 27710fi 27711rm -f core conftest.err conftest.$ac_objext \ 27712 conftest$ac_exeext conftest.$ac_ext 27713LIBS=$ac_check_lib_save_LIBS 27714fi 27715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 27716$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 27717if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 27718 have_sigwait=yes 27719 27720fi 27721 27722 esac 27723 case "$have_sigwait" in 27724 yes) 27725 ac_cv_func_sigwait=yes 27726 27727$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 27728 27729 esac 27730 27731 for ac_func in pthread_attr_getstacksize 27732do : 27733 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 27734if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 27735 cat >>confdefs.h <<_ACEOF 27736#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 27737_ACEOF 27738 27739fi 27740done 27741 27742 for ac_func in pthread_attr_setstacksize sysconf 27743do : 27744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27745ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27746if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27747 cat >>confdefs.h <<_ACEOF 27748#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27749_ACEOF 27750 27751fi 27752done 27753 27754 27755 case "$host" in 27756 *-freebsd5.[012]|*-freebsd5.[012].*) 27757 ;; 27758 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 27759 27760$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 27761 27762 ;; 27763 *-bsdi3.*|*-bsdi4.0*) 27764 27765$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 27766 27767 ;; 27768 *-linux*) 27769 27770$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 27771 27772 ;; 27773 *-solaris*) 27774 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 27775 27776 for ac_func in pthread_setconcurrency 27777do : 27778 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 27779if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 27780 cat >>confdefs.h <<_ACEOF 27781#define HAVE_PTHREAD_SETCONCURRENCY 1 27782_ACEOF 27783 27784fi 27785done 27786 27787 case "$ac_cv_func_pthread_setconcurrency" in 27788 yes) 27789 27790$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 27791 27792 esac 27793 ;; 27794 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 27795 27796$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 27797 27798 ;; 27799 esac 27800 hack_shutup_pthreadonceinit=no 27801 case "$host" in 27802 *-aix5.[123].*) 27803 hack_shutup_pthreadonceinit=yes 27804 ;; 27805 *-solaris2.[89]) 27806 hack_shutup_pthreadonceinit=yes 27807 ;; 27808 *-solaris2.1[0-9]) 27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 27810$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 27811if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 27812 $as_echo_n "(cached) " >&6 27813else 27814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27815/* end confdefs.h. */ 27816 27817 #include <pthread.h> 27818 27819int 27820main () 27821{ 27822 27823 static pthread_once_t once_test = 27824 PTHREAD_ONCE_INIT; 27825 27826 27827 ; 27828 return 0; 27829} 27830_ACEOF 27831if ac_fn_c_try_compile "$LINENO"; then : 27832 ntp_cv_braces_around_pthread_once_init=no 27833else 27834 ntp_cv_braces_around_pthread_once_init=yes 27835 27836fi 27837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27838 27839fi 27840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 27841$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 27842 case "$ntp_cv_braces_around_pthread_once_init" in 27843 yes) 27844 hack_shutup_pthreadonceinit=yes 27845 esac 27846 ;; 27847 esac 27848 case "$hack_shutup_pthreadonceinit" in 27849 yes) 27850 27851$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 27852 27853 esac 27854 LIBS="$saved_LIBS" 27855 { saved_LIBS=; unset saved_LIBS;} 27856 CFLAGS="$saved_CFLAGS" 27857 { saved_CFLAGS=; unset saved_CFLAGS;} 27858 ;; 27859 *) 27860 LIBISC_PTHREADS_NOTHREADS=nothreads 27861 ;; 27862esac 27863 27864 if test "$have_pthreads" != "no"; then 27865 PTHREADS_TRUE= 27866 PTHREADS_FALSE='#' 27867else 27868 PTHREADS_TRUE='#' 27869 PTHREADS_FALSE= 27870fi 27871 27872 27873 27874 27875 27876 27877 27878case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 27879 no:yes) 27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 27881$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 27882if ${ntp_cv_vsnprintf_percent_m+:} false; then : 27883 $as_echo_n "(cached) " >&6 27884else 27885 if test "$cross_compiling" = yes; then : 27886 ntp_cv_vsnprintf_percent_m=no 27887 27888else 27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27890/* end confdefs.h. */ 27891 27892 #include <stdarg.h> 27893 #include <errno.h> 27894 #include <stdio.h> 27895 #include <string.h> 27896 27897 int call_vsnprintf( 27898 char * dst, 27899 size_t sz, 27900 const char *fmt, 27901 ... 27902 ); 27903 27904 int call_vsnprintf( 27905 char * dst, 27906 size_t sz, 27907 const char *fmt, 27908 ... 27909 ) 27910 { 27911 va_list ap; 27912 int rc; 27913 27914 va_start(ap, fmt); 27915 rc = vsnprintf(dst, sz, fmt, ap); 27916 va_end(ap); 27917 27918 return rc; 27919 } 27920 27921int 27922main () 27923{ 27924 27925 char sbuf[512]; 27926 char pbuf[512]; 27927 int slen; 27928 27929 strcpy(sbuf, strerror(ENOENT)); 27930 errno = ENOENT; 27931 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 27932 "wrong"); 27933 return strcmp(sbuf, pbuf); 27934 27935 27936 ; 27937 return 0; 27938} 27939_ACEOF 27940if ac_fn_c_try_run "$LINENO"; then : 27941 ntp_cv_vsnprintf_percent_m=yes 27942else 27943 ntp_cv_vsnprintf_percent_m=no 27944fi 27945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27946 conftest.$ac_objext conftest.beam conftest.$ac_ext 27947fi 27948 27949 27950fi 27951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 27952$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 27953 case "$ntp_cv_vsnprintf_percent_m" in 27954 yes) 27955 27956$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 27957 27958 esac 27959esac 27960 27961for ac_header in sys/clockctl.h 27962do : 27963 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 27964if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 27965 cat >>confdefs.h <<_ACEOF 27966#define HAVE_SYS_CLOCKCTL_H 1 27967_ACEOF 27968 27969fi 27970 27971done 27972 27973 27974# Check whether --enable-clockctl was given. 27975if test "${enable_clockctl+set}" = set; then : 27976 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 27977else 27978 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 27979 27980fi 27981 27982 27983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 27984$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 27985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 27986$as_echo "$ntp_use_dev_clockctl" >&6; } 27987 27988 27989for ac_header in sys/capability.h sys/prctl.h 27990do : 27991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27994 cat >>confdefs.h <<_ACEOF 27995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27996_ACEOF 27997 27998fi 27999 28000done 28001 28002 28003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 28004$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 28005 28006case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 28007 yesyes) 28008 case "$host" in 28009 mips-sgi-irix*) 28010 ntp_have_linuxcaps=no 28011 ;; 28012 *) ntp_have_linuxcaps=yes 28013 ;; 28014 esac 28015 ;; 28016 *) 28017 ntp_have_linuxcaps=no 28018 ;; 28019esac 28020 28021# Check whether --enable-linuxcaps was given. 28022if test "${enable_linuxcaps+set}" = set; then : 28023 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 28024 28025fi 28026 28027 28028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 28029$as_echo "$ntp_have_linuxcaps" >&6; } 28030 28031case "$ntp_have_linuxcaps" in 28032 yes) 28033 28034$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 28035 28036 LIBS="$LIBS -lcap" 28037 ;; 28038esac 28039 28040 28041for ac_header in priv.h 28042do : 28043 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 28044if test "x$ac_cv_header_priv_h" = xyes; then : 28045 cat >>confdefs.h <<_ACEOF 28046#define HAVE_PRIV_H 1 28047_ACEOF 28048 28049fi 28050 28051done 28052 28053 28054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 28055$as_echo_n "checking if we have solaris privileges... " >&6; } 28056 28057case "$ac_cv_header_priv_h" in 28058 yes) 28059 case "$host" in 28060 *-solaris*) 28061 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 28062if test "x$ac_cv_func_setppriv" = xyes; then : 28063 ntp_have_solarisprivs=yes 28064else 28065 ntp_have_solarisprivs=no 28066 28067fi 28068 28069 ;; 28070 esac 28071esac 28072 28073# Check whether --enable-solarisprivs was given. 28074if test "${enable_solarisprivs+set}" = set; then : 28075 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 28076 28077fi 28078 28079 28080 28081case "$ntp_have_solarisprivs" in 28082 yes) 28083 28084$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 28085 28086esac 28087 28088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 28089$as_echo "$ntp_have_solarisprivs" >&6; } 28090 28091case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 28092 *yes*) 28093 28094$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 28095 28096esac 28097 28098case "$host" in 28099 *-*-darwin*) 28100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 28101$as_echo_n "checking for library containing res_9_init... " >&6; } 28102if ${ac_cv_search_res_9_init+:} false; then : 28103 $as_echo_n "(cached) " >&6 28104else 28105 ac_func_search_save_LIBS=$LIBS 28106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28107/* end confdefs.h. */ 28108 28109/* Override any GCC internal prototype to avoid an error. 28110 Use char because int might match the return type of a GCC 28111 builtin and then its argument prototype would still apply. */ 28112#ifdef __cplusplus 28113extern "C" 28114#endif 28115char res_9_init (); 28116int 28117main () 28118{ 28119return res_9_init (); 28120 ; 28121 return 0; 28122} 28123_ACEOF 28124for ac_lib in '' resolv; do 28125 if test -z "$ac_lib"; then 28126 ac_res="none required" 28127 else 28128 ac_res=-l$ac_lib 28129 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28130 fi 28131 if ac_fn_c_try_link "$LINENO"; then : 28132 ac_cv_search_res_9_init=$ac_res 28133fi 28134rm -f core conftest.err conftest.$ac_objext \ 28135 conftest$ac_exeext 28136 if ${ac_cv_search_res_9_init+:} false; then : 28137 break 28138fi 28139done 28140if ${ac_cv_search_res_9_init+:} false; then : 28141 28142else 28143 ac_cv_search_res_9_init=no 28144fi 28145rm conftest.$ac_ext 28146LIBS=$ac_func_search_save_LIBS 28147fi 28148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 28149$as_echo "$ac_cv_search_res_9_init" >&6; } 28150ac_res=$ac_cv_search_res_9_init 28151if test "$ac_res" != no; then : 28152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28153 28154fi 28155 28156 ;; 28157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 28158$as_echo_n "checking for library containing res_init... " >&6; } 28159if ${ac_cv_search_res_init+:} false; then : 28160 $as_echo_n "(cached) " >&6 28161else 28162 ac_func_search_save_LIBS=$LIBS 28163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28164/* end confdefs.h. */ 28165 28166/* Override any GCC internal prototype to avoid an error. 28167 Use char because int might match the return type of a GCC 28168 builtin and then its argument prototype would still apply. */ 28169#ifdef __cplusplus 28170extern "C" 28171#endif 28172char res_init (); 28173int 28174main () 28175{ 28176return res_init (); 28177 ; 28178 return 0; 28179} 28180_ACEOF 28181for ac_lib in '' resolv; do 28182 if test -z "$ac_lib"; then 28183 ac_res="none required" 28184 else 28185 ac_res=-l$ac_lib 28186 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28187 fi 28188 if ac_fn_c_try_link "$LINENO"; then : 28189 ac_cv_search_res_init=$ac_res 28190fi 28191rm -f core conftest.err conftest.$ac_objext \ 28192 conftest$ac_exeext 28193 if ${ac_cv_search_res_init+:} false; then : 28194 break 28195fi 28196done 28197if ${ac_cv_search_res_init+:} false; then : 28198 28199else 28200 ac_cv_search_res_init=no 28201fi 28202rm conftest.$ac_ext 28203LIBS=$ac_func_search_save_LIBS 28204fi 28205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 28206$as_echo "$ac_cv_search_res_init" >&6; } 28207ac_res=$ac_cv_search_res_init 28208if test "$ac_res" != no; then : 28209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28210 28211fi 28212 28213 ;; 28214esac 28215for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 28216do : 28217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28218ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 28219# include <sys/types.h> 28220#endif 28221#ifdef HAVE_NETINET_IN_H 28222# include <netinet/in.h> /* inet_ functions / structs */ 28223#endif 28224#ifdef HAVE_ARPA_NAMESER_H 28225# include <arpa/nameser.h> /* DNS HEADER struct */ 28226#endif 28227#ifdef HAVE_NETDB_H 28228# include <netdb.h> 28229#endif 28230" 28231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28232 cat >>confdefs.h <<_ACEOF 28233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28234_ACEOF 28235 28236fi 28237 28238done 28239 28240 28241#HMS: Why do we do this check so "early"? 28242for ac_func in res_init 28243do : 28244 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 28245if test "x$ac_cv_func_res_init" = xyes; then : 28246 cat >>confdefs.h <<_ACEOF 28247#define HAVE_RES_INIT 1 28248_ACEOF 28249 28250else 28251 for ac_func in __res_init 28252do : 28253 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 28254if test "x$ac_cv_func___res_init" = xyes; then : 28255 cat >>confdefs.h <<_ACEOF 28256#define HAVE___RES_INIT 1 28257_ACEOF 28258 28259fi 28260done 28261 28262fi 28263done 28264 28265 28266# We also need -lsocket, but we have tested for that already. 28267ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 28268if test "x$ac_cv_func_inet_ntop" = xyes; then : 28269 28270else 28271 28272$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 28273 28274fi 28275 28276ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 28277if test "x$ac_cv_func_inet_pton" = xyes; then : 28278 28279else 28280 28281$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 28282 28283fi 28284 28285 28286ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 28287if test "x$ac_cv_type_uintptr_t" = xyes; then : 28288 28289cat >>confdefs.h <<_ACEOF 28290#define HAVE_UINTPTR_T 1 28291_ACEOF 28292 28293 28294fi 28295ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 28296if test "x$ac_cv_type_int32" = xyes; then : 28297 28298cat >>confdefs.h <<_ACEOF 28299#define HAVE_INT32 1 28300_ACEOF 28301 28302 28303fi 28304ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 28305if test "x$ac_cv_type_u_int32" = xyes; then : 28306 28307cat >>confdefs.h <<_ACEOF 28308#define HAVE_U_INT32 1 28309_ACEOF 28310 28311 28312fi 28313 28314 28315 28316 28317case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 28318 no::yes) 28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 28320$as_echo_n "checking for int32 with DNS headers included... " >&6; } 28321if ${ntp_cv_type_int32_with_dns+:} false; then : 28322 $as_echo_n "(cached) " >&6 28323else 28324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28325/* end confdefs.h. */ 28326 28327 #ifdef HAVE_ARPA_NAMESER_H 28328 # include <arpa/nameser.h> 28329 #endif 28330 #include <resolv.h> 28331 28332int 28333main () 28334{ 28335 28336 size_t cb = sizeof(int32); 28337 28338 28339 ; 28340 return 0; 28341} 28342_ACEOF 28343if ac_fn_c_try_compile "$LINENO"; then : 28344 ntp_cv_type_int32_with_dns=yes 28345else 28346 ntp_cv_type_int32_with_dns=no 28347 28348fi 28349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28350 28351fi 28352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 28353$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 28354 case "$ntp_cv_type_int32_with_dns" in 28355 yes) 28356 28357$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 28358 28359 esac 28360esac 28361 28362case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 28363 no::yes) 28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 28365$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 28366if ${ntp_cv_type_u_int32_with_dns+:} false; then : 28367 $as_echo_n "(cached) " >&6 28368else 28369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28370/* end confdefs.h. */ 28371 28372 #ifdef HAVE_ARPA_NAMESER_H 28373 # include <arpa/nameser.h> 28374 #endif 28375 #include <resolv.h> 28376 28377int 28378main () 28379{ 28380 28381 size_t cb = sizeof(u_int32); 28382 28383 28384 ; 28385 return 0; 28386} 28387_ACEOF 28388if ac_fn_c_try_compile "$LINENO"; then : 28389 ntp_cv_type_u_int32_with_dns=yes 28390else 28391 ntp_cv_type_u_int32_with_dns=no 28392 28393fi 28394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28395 28396fi 28397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 28398$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 28399 case "$ntp_cv_type_u_int32_with_dns" in 28400 yes) 28401 28402$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 28403 28404 esac 28405esac 28406 28407for ac_header in sys/timepps.h 28408do : 28409 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 28410 #ifdef HAVE_SYS_TIME_H 28411 # include <sys/time.h> 28412 #endif 28413 #ifdef HAVE_ERRNO_H 28414 # include <errno.h> 28415 #endif 28416 28417 28418" 28419if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 28420 cat >>confdefs.h <<_ACEOF 28421#define HAVE_SYS_TIMEPPS_H 1 28422_ACEOF 28423 28424fi 28425 28426done 28427 28428 28429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 28430$as_echo_n "checking for struct timespec... " >&6; } 28431if ${ntp_cv_struct_timespec+:} false; then : 28432 $as_echo_n "(cached) " >&6 28433else 28434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28435/* end confdefs.h. */ 28436 28437 #include <sys/time.h> 28438 /* Under SunOS, timespec is in sys/timepps.h, 28439 which needs errno.h and FRAC */ 28440 #ifdef HAVE_ERRNO_H 28441 # include <errno.h> 28442 #endif 28443 #ifdef HAVE_SYS_TIMEPPS_H 28444 # define FRAC 4294967296 28445 # include <sys/timepps.h> 28446 #endif 28447 28448int 28449main () 28450{ 28451 28452 struct timespec n; 28453 28454 28455 ; 28456 return 0; 28457} 28458_ACEOF 28459if ac_fn_c_try_compile "$LINENO"; then : 28460 ntp_cv_struct_timespec=yes 28461else 28462 ntp_cv_struct_timespec=no 28463 28464fi 28465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28466 28467fi 28468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 28469$as_echo "$ntp_cv_struct_timespec" >&6; } 28470case "$ntp_cv_struct_timespec" in 28471 yes) 28472 28473$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 28474 28475esac 28476 28477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 28478$as_echo_n "checking for struct ntptimeval... " >&6; } 28479if ${ntp_cv_struct_ntptimeval+:} false; then : 28480 $as_echo_n "(cached) " >&6 28481else 28482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28483/* end confdefs.h. */ 28484 28485 #include <sys/time.h> 28486 #include <sys/timex.h> 28487 28488int 28489main () 28490{ 28491 28492 struct ntptimeval n; 28493 28494 28495 ; 28496 return 0; 28497} 28498_ACEOF 28499if ac_fn_c_try_compile "$LINENO"; then : 28500 ntp_cv_struct_ntptimeval=yes 28501else 28502 ntp_cv_struct_ntptimeval=no 28503 28504fi 28505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28506 28507fi 28508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 28509$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 28510case "$ntp_cv_struct_ntptimeval" in 28511 yes) 28512 28513$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 28514 28515esac 28516 28517for ac_header in md5.h 28518do : 28519 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 28520 #ifdef HAVE_SYS_TYPES_H 28521 # include <sys/types.h> 28522 #endif 28523 28524 28525" 28526if test "x$ac_cv_header_md5_h" = xyes; then : 28527 cat >>confdefs.h <<_ACEOF 28528#define HAVE_MD5_H 1 28529_ACEOF 28530 28531fi 28532 28533done 28534 28535 28536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 28537$as_echo_n "checking for library containing MD5Init... " >&6; } 28538if ${ac_cv_search_MD5Init+:} false; then : 28539 $as_echo_n "(cached) " >&6 28540else 28541 ac_func_search_save_LIBS=$LIBS 28542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28543/* end confdefs.h. */ 28544 28545/* Override any GCC internal prototype to avoid an error. 28546 Use char because int might match the return type of a GCC 28547 builtin and then its argument prototype would still apply. */ 28548#ifdef __cplusplus 28549extern "C" 28550#endif 28551char MD5Init (); 28552int 28553main () 28554{ 28555return MD5Init (); 28556 ; 28557 return 0; 28558} 28559_ACEOF 28560for ac_lib in '' md5 md; do 28561 if test -z "$ac_lib"; then 28562 ac_res="none required" 28563 else 28564 ac_res=-l$ac_lib 28565 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28566 fi 28567 if ac_fn_c_try_link "$LINENO"; then : 28568 ac_cv_search_MD5Init=$ac_res 28569fi 28570rm -f core conftest.err conftest.$ac_objext \ 28571 conftest$ac_exeext 28572 if ${ac_cv_search_MD5Init+:} false; then : 28573 break 28574fi 28575done 28576if ${ac_cv_search_MD5Init+:} false; then : 28577 28578else 28579 ac_cv_search_MD5Init=no 28580fi 28581rm conftest.$ac_ext 28582LIBS=$ac_func_search_save_LIBS 28583fi 28584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 28585$as_echo "$ac_cv_search_MD5Init" >&6; } 28586ac_res=$ac_cv_search_MD5Init 28587if test "$ac_res" != no; then : 28588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28589 28590fi 28591 28592for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 28593do : 28594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28596if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28597 cat >>confdefs.h <<_ACEOF 28598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28599_ACEOF 28600 28601fi 28602done 28603 28604 28605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 28606$as_echo_n "checking for SIGIO... " >&6; } 28607if ${ntp_cv_hdr_def_sigio+:} false; then : 28608 $as_echo_n "(cached) " >&6 28609else 28610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28611/* end confdefs.h. */ 28612 28613 #include <signal.h> 28614 28615 #ifndef SIGIO 28616 # error 28617 #endif 28618 28619_ACEOF 28620if ac_fn_c_try_cpp "$LINENO"; then : 28621 ntp_cv_hdr_def_sigio=yes 28622else 28623 ntp_cv_hdr_def_sigio=no 28624 28625fi 28626rm -f conftest.err conftest.i conftest.$ac_ext 28627 28628fi 28629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 28630$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 28631 28632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 28633$as_echo_n "checking if we want to use SIGIO... " >&6; } 28634ans=no 28635case "$ntp_cv_hdr_def_sigio" in 28636 yes) 28637 ans=yes 28638 case "$host" in 28639 alpha*-dec-osf4*|alpha*-dec-osf5*) 28640 ans=no 28641 ;; 28642 *-convex-*) 28643 ans=no 28644 ;; 28645 *-dec-*) 28646 ans=no 28647 ;; 28648 *-pc-cygwin*) 28649 ans=no 28650 ;; 28651 *-sni-sysv*) 28652 ans=no 28653 ;; 28654 *-stratus-vos) 28655 ans=no 28656 ;; 28657 *-univel-sysv*) 28658 ans=no 28659 ;; 28660 *-*-irix6*) 28661 ans=no 28662 ;; 28663 *-*-freebsd*) 28664 ans=no 28665 ;; 28666 *-*-*linux*) 28667 ans=no 28668 ;; 28669 *-*-unicosmp*) 28670 ans=no 28671 ;; 28672 *-*-kfreebsd*) 28673 ans=no 28674 ;; 28675 m68k-*-mint*) 28676 ans=no 28677 ;; 28678 esac 28679 ;; 28680esac 28681case "$ans" in 28682 yes) 28683 28684$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 28685 28686esac 28687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28688$as_echo "$ans" >&6; } 28689 28690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 28691$as_echo_n "checking for SIGPOLL... " >&6; } 28692if ${ntp_cv_hdr_def_sigpoll+:} false; then : 28693 $as_echo_n "(cached) " >&6 28694else 28695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28696/* end confdefs.h. */ 28697 28698 #include <signal.h> 28699 28700 #ifndef SIGPOLL 28701 # error 28702 #endif 28703 28704_ACEOF 28705if ac_fn_c_try_cpp "$LINENO"; then : 28706 ntp_cv_hdr_def_sigpoll=yes 28707else 28708 ntp_cv_hdr_def_sigpoll=no 28709 28710fi 28711rm -f conftest.err conftest.i conftest.$ac_ext 28712 28713fi 28714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 28715$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 28716 28717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 28718$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 28719ans=no 28720case "$ntp_cv_hdr_def_sigpoll" in 28721 yes) 28722 case "$host" in 28723 mips-sgi-irix*) 28724 ans=no 28725 ;; 28726 vax-dec-bsd) 28727 ans=no 28728 ;; 28729 *-pc-cygwin*) 28730 ans=no 28731 ;; 28732 *-sni-sysv*) 28733 ans=no 28734 ;; 28735 *-stratus-vos) 28736 ans=no 28737 ;; 28738 *-*-aix[4-9]*) 28739 # XXX Only verified thru AIX6 28740 ans=no 28741 ;; 28742 *-*-hpux*) 28743 ans=no 28744 ;; 28745 *-*-*linux*) 28746 ans=no 28747 ;; 28748 *-*-osf*) 28749 ans=no 28750 ;; 28751 *-*-qnx*) 28752 ans=no 28753 ;; 28754 *-*-sunos*) 28755 ans=no 28756 ;; 28757 *-*-solaris*) 28758 ans=no 28759 ;; 28760 *-*-ultrix*) 28761 ans=no 28762 ;; 28763 *-*-unicosmp*) 28764 ans=no 28765 ;; 28766 *-*-kfreebsd*) 28767 ans=no 28768 ;; 28769 *) ans=yes 28770 ;; 28771 esac 28772 ;; 28773esac 28774case "$ans" in 28775 yes) 28776 28777$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 28778 28779esac 28780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28781$as_echo "$ans" >&6; } 28782 28783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 28784$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 28785ans=no 28786case "$ntp_cv_hdr_def_sigpoll" in 28787 yes) 28788 case "$host" in 28789 mips-sgi-irix*) 28790 ans=no 28791 ;; 28792 vax-dec-bsd) 28793 ans=no 28794 ;; 28795 *-pc-cygwin*) 28796 ans=no 28797 ;; 28798 *-sni-sysv*) 28799 ans=no 28800 ;; 28801 *-stratus-vos) 28802 ans=no 28803 ;; 28804 *-*-aix[4-9]*) 28805 # XXX Only verified thru AIX6 28806 ans=no 28807 ;; 28808 *-*-hpux*) 28809 ans=no 28810 ;; 28811 *-*-*linux*) 28812 ans=no 28813 ;; 28814 *-*-osf*) 28815 ans=no 28816 ;; 28817 *-*-sunos*) 28818 ans=no 28819 ;; 28820 *-*-ultrix*) 28821 ans=no 28822 ;; 28823 *-*-qnx*) 28824 ans=no 28825 ;; 28826 *-*-unicosmp*) 28827 ans=no 28828 ;; 28829 *-*-kfreebsd*) 28830 ans=no 28831 ;; 28832 *) ans=yes 28833 ;; 28834 esac 28835 ;; 28836esac 28837case "$ans" in 28838 yes) 28839 28840$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 28841 28842esac 28843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28844$as_echo "$ans" >&6; } 28845 28846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 28847$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 28848if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 28849 $as_echo_n "(cached) " >&6 28850else 28851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28852/* end confdefs.h. */ 28853 28854 #include <sys/time.h> 28855 28856int 28857main () 28858{ 28859 28860 gettimeofday(0, 0); 28861 settimeofday(0, 0); 28862 28863 28864 ; 28865 return 0; 28866} 28867_ACEOF 28868if ac_fn_c_try_compile "$LINENO"; then : 28869 ntp_cv_func_Xettimeofday_nargs=2 28870else 28871 ntp_cv_func_Xettimeofday_nargs=1 28872 28873fi 28874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28875 28876fi 28877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 28878$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 28879case "$ntp_cv_func_Xettimeofday_nargs" in 28880 1) 28881 28882$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 28883 28884esac 28885 28886for ac_func in settimeofday 28887do : 28888 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 28889if test "x$ac_cv_func_settimeofday" = xyes; then : 28890 cat >>confdefs.h <<_ACEOF 28891#define HAVE_SETTIMEOFDAY 1 28892_ACEOF 28893 28894else 28895 28896 case "$host" in 28897 *-*-mpeix*) ac_cv_func_settimeofday=yes 28898 esac 28899 28900fi 28901done 28902 28903 28904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 28905$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 28906ntp_warning='GRONK' 28907ans=none 28908case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 28909 yes*) 28910 ntp_warning='' 28911 ans='clock_settime()' 28912 ;; 28913 noyes*) 28914 ntp_warning='But clock_settime() would be better (if we had it)' 28915 ans='settimeofday()' 28916 ;; 28917 nonoyes) 28918 ntp_warning='Which is the worst of the three' 28919 ans='stime()' 28920 ;; 28921 *) 28922 case "$build" in 28923 $host) 28924 ntp_warning='Which leaves us with nothing to use!' 28925 esac 28926esac 28927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28928$as_echo "$ans" >&6; } 28929case "$ntp_warning" in 28930 '') 28931 ;; 28932 *) 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 28934$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 28935 ;; 28936esac 28937 28938 28939LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 28940LIBS=$__LIBS 28941{ __LIBS=; unset __LIBS;} 28942 28943 28944 28945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5 28946$as_echo_n "checking for deprecated --with-arlib... " >&6; } 28947 28948# Check whether --with-arlib was given. 28949if test "${with_arlib+set}" = set; then : 28950 withval=$with_arlib; ans=$withval 28951else 28952 ans=no 28953fi 28954 28955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28956$as_echo "$ans" >&6; } 28957 28958case "$ans" in 28959 yes) 28960 { $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 28961$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;} 28962 ;; 28963esac 28964 28965for ac_prog in gawk mawk nawk awk 28966do 28967 # Extract the first word of "$ac_prog", so it can be a program name with args. 28968set dummy $ac_prog; ac_word=$2 28969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28970$as_echo_n "checking for $ac_word... " >&6; } 28971if ${ac_cv_prog_AWK+:} false; then : 28972 $as_echo_n "(cached) " >&6 28973else 28974 if test -n "$AWK"; then 28975 ac_cv_prog_AWK="$AWK" # Let the user override the test. 28976else 28977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28978for as_dir in $PATH 28979do 28980 IFS=$as_save_IFS 28981 test -z "$as_dir" && as_dir=. 28982 for ac_exec_ext in '' $ac_executable_extensions; do 28983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28984 ac_cv_prog_AWK="$ac_prog" 28985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28986 break 2 28987 fi 28988done 28989 done 28990IFS=$as_save_IFS 28991 28992fi 28993fi 28994AWK=$ac_cv_prog_AWK 28995if test -n "$AWK"; then 28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 28997$as_echo "$AWK" >&6; } 28998else 28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29000$as_echo "no" >&6; } 29001fi 29002 29003 29004 test -n "$AWK" && break 29005done 29006 29007{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;} 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 29009$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 29010set x ${MAKE-make} 29011ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 29012if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 29013 $as_echo_n "(cached) " >&6 29014else 29015 cat >conftest.make <<\_ACEOF 29016SHELL = /bin/sh 29017all: 29018 @echo '@@@%%%=$(MAKE)=@@@%%%' 29019_ACEOF 29020# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29021case `${MAKE-make} -f conftest.make 2>/dev/null` in 29022 *@@@%%%=?*=@@@%%%*) 29023 eval ac_cv_prog_make_${ac_make}_set=yes;; 29024 *) 29025 eval ac_cv_prog_make_${ac_make}_set=no;; 29026esac 29027rm -f conftest.make 29028fi 29029if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 29030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29031$as_echo "yes" >&6; } 29032 SET_MAKE= 29033else 29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29035$as_echo "no" >&6; } 29036 SET_MAKE="MAKE=${MAKE-make}" 29037fi 29038 29039 29040 29041 29042 29043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 29044$as_echo_n "checking whether ln -s works... " >&6; } 29045LN_S=$as_ln_s 29046if test "$LN_S" = "ln -s"; then 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29048$as_echo "yes" >&6; } 29049else 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 29051$as_echo "no, using $LN_S" >&6; } 29052fi 29053 29054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 29055$as_echo_n "checking for library containing strerror... " >&6; } 29056if ${ac_cv_search_strerror+:} false; then : 29057 $as_echo_n "(cached) " >&6 29058else 29059 ac_func_search_save_LIBS=$LIBS 29060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29061/* end confdefs.h. */ 29062 29063/* Override any GCC internal prototype to avoid an error. 29064 Use char because int might match the return type of a GCC 29065 builtin and then its argument prototype would still apply. */ 29066#ifdef __cplusplus 29067extern "C" 29068#endif 29069char strerror (); 29070int 29071main () 29072{ 29073return strerror (); 29074 ; 29075 return 0; 29076} 29077_ACEOF 29078for ac_lib in '' cposix; do 29079 if test -z "$ac_lib"; then 29080 ac_res="none required" 29081 else 29082 ac_res=-l$ac_lib 29083 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29084 fi 29085 if ac_fn_c_try_link "$LINENO"; then : 29086 ac_cv_search_strerror=$ac_res 29087fi 29088rm -f core conftest.err conftest.$ac_objext \ 29089 conftest$ac_exeext 29090 if ${ac_cv_search_strerror+:} false; then : 29091 break 29092fi 29093done 29094if ${ac_cv_search_strerror+:} false; then : 29095 29096else 29097 ac_cv_search_strerror=no 29098fi 29099rm conftest.$ac_ext 29100LIBS=$ac_func_search_save_LIBS 29101fi 29102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 29103$as_echo "$ac_cv_search_strerror" >&6; } 29104ac_res=$ac_cv_search_strerror 29105if test "$ac_res" != no; then : 29106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29107 29108fi 29109 29110 29111 29112# Extract the first word of "perl", so it can be a program name with args. 29113set dummy perl; ac_word=$2 29114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29115$as_echo_n "checking for $ac_word... " >&6; } 29116if ${ac_cv_path_PATH_PERL+:} false; then : 29117 $as_echo_n "(cached) " >&6 29118else 29119 case $PATH_PERL in 29120 [\\/]* | ?:[\\/]*) 29121 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 29122 ;; 29123 *) 29124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29125for as_dir in $PATH 29126do 29127 IFS=$as_save_IFS 29128 test -z "$as_dir" && as_dir=. 29129 for ac_exec_ext in '' $ac_executable_extensions; do 29130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29131 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 29132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29133 break 2 29134 fi 29135done 29136 done 29137IFS=$as_save_IFS 29138 29139 ;; 29140esac 29141fi 29142PATH_PERL=$ac_cv_path_PATH_PERL 29143if test -n "$PATH_PERL"; then 29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 29145$as_echo "$PATH_PERL" >&6; } 29146else 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29148$as_echo "no" >&6; } 29149fi 29150 29151 29152{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;} 29153# Extract the first word of "test", so it can be a program name with args. 29154set dummy test; ac_word=$2 29155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29156$as_echo_n "checking for $ac_word... " >&6; } 29157if ${ac_cv_path_PATH_TEST+:} false; then : 29158 $as_echo_n "(cached) " >&6 29159else 29160 case $PATH_TEST in 29161 [\\/]* | ?:[\\/]*) 29162 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path. 29163 ;; 29164 *) 29165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29166for as_dir in $PATH 29167do 29168 IFS=$as_save_IFS 29169 test -z "$as_dir" && as_dir=. 29170 for ac_exec_ext in '' $ac_executable_extensions; do 29171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29172 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext" 29173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29174 break 2 29175 fi 29176done 29177 done 29178IFS=$as_save_IFS 29179 29180 ;; 29181esac 29182fi 29183PATH_TEST=$ac_cv_path_PATH_TEST 29184if test -n "$PATH_TEST"; then 29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5 29186$as_echo "$PATH_TEST" >&6; } 29187else 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29189$as_echo "no" >&6; } 29190fi 29191 29192 29193{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;} 29194test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh 29195 29196 29197# Check whether --with-net-snmp-config was given. 29198if test "${with_net_snmp_config+set}" = set; then : 29199 withval=$with_net_snmp_config; ans=$withval 29200else 29201 ans=yes 29202 29203fi 29204 29205case "$ans" in 29206 no) 29207 ;; 29208 yes) 29209 ans=net-snmp-config 29210 ;; 29211 /*) 29212 ;; 29213 */*) 29214 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5 29215 ;; 29216 *) 29217 ;; 29218esac 29219PROG_NET_SNMP_CONFIG=$ans 29220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5 29221$as_echo_n "checking for net-snmp-config path... " >&6; } 29222case "$PROG_NET_SNMP_CONFIG" in 29223 no) ;; 29224 /*) 29225 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG 29226 ;; 29227 *) 29228 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args. 29229set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2 29230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29231$as_echo_n "checking for $ac_word... " >&6; } 29232if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then : 29233 $as_echo_n "(cached) " >&6 29234else 29235 case $PATH_NET_SNMP_CONFIG in 29236 [\\/]* | ?:[\\/]*) 29237 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path. 29238 ;; 29239 *) 29240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29241for as_dir in $PATH 29242do 29243 IFS=$as_save_IFS 29244 test -z "$as_dir" && as_dir=. 29245 for ac_exec_ext in '' $ac_executable_extensions; do 29246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29247 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29249 break 2 29250 fi 29251done 29252 done 29253IFS=$as_save_IFS 29254 29255 ;; 29256esac 29257fi 29258PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG 29259if test -n "$PATH_NET_SNMP_CONFIG"; then 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 29261$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 29262else 29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29264$as_echo "no" >&6; } 29265fi 29266 29267 29268 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;} 29269;; 29270esac 29271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 29272$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 29273 29274case "$PATH_NET_SNMP_CONFIG" in 29275 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5 29276$as_echo_n "checking for net-snmp version... " >&6; } 29277if ${ntp_cv_net_snmp_version+:} false; then : 29278 $as_echo_n "(cached) " >&6 29279else 29280 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version` 29281 29282fi 29283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5 29284$as_echo "$ntp_cv_net_snmp_version" >&6; } 29285 ;; 29286esac 29287 29288case "$host" in 29289 *-*-vxworks*) 29290 ac_link="$ac_link $VX_KERNEL" 29291 ;; 29292esac 29293 29294# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP 29295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 29296$as_echo_n "checking for library containing openlog... " >&6; } 29297if ${ac_cv_search_openlog+:} false; then : 29298 $as_echo_n "(cached) " >&6 29299else 29300 ac_func_search_save_LIBS=$LIBS 29301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29302/* end confdefs.h. */ 29303 29304/* Override any GCC internal prototype to avoid an error. 29305 Use char because int might match the return type of a GCC 29306 builtin and then its argument prototype would still apply. */ 29307#ifdef __cplusplus 29308extern "C" 29309#endif 29310char openlog (); 29311int 29312main () 29313{ 29314return openlog (); 29315 ; 29316 return 0; 29317} 29318_ACEOF 29319for ac_lib in '' gen syslog; do 29320 if test -z "$ac_lib"; then 29321 ac_res="none required" 29322 else 29323 ac_res=-l$ac_lib 29324 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29325 fi 29326 if ac_fn_c_try_link "$LINENO"; then : 29327 ac_cv_search_openlog=$ac_res 29328fi 29329rm -f core conftest.err conftest.$ac_objext \ 29330 conftest$ac_exeext 29331 if ${ac_cv_search_openlog+:} false; then : 29332 break 29333fi 29334done 29335if ${ac_cv_search_openlog+:} false; then : 29336 29337else 29338 ac_cv_search_openlog=no 29339fi 29340rm conftest.$ac_ext 29341LIBS=$ac_func_search_save_LIBS 29342fi 29343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 29344$as_echo "$ac_cv_search_openlog" >&6; } 29345ac_res=$ac_cv_search_openlog 29346if test "$ac_res" != no; then : 29347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29348 29349fi 29350 29351# XXX library list will be in ac_cv_search_openlog 29352 29353# LIBSECCOMP is off by default -- needs testing with all the features 29354# Please send bug reports to loganaden@gmail.com 29355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5 29356$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; } 29357# Check whether --enable-libseccomp was given. 29358if test "${enable_libseccomp+set}" = set; then : 29359 enableval=$enable_libseccomp; ntp_ok=$enableval 29360else 29361 ntp_ok=no 29362 29363fi 29364 29365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 29366$as_echo "$ntp_ok" >&6; } 29367case "$ntp_ok" in 29368 yes) 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 29370$as_echo_n "checking for library containing seccomp_init... " >&6; } 29371if ${ac_cv_search_seccomp_init+:} false; then : 29372 $as_echo_n "(cached) " >&6 29373else 29374 ac_func_search_save_LIBS=$LIBS 29375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29376/* end confdefs.h. */ 29377 29378/* Override any GCC internal prototype to avoid an error. 29379 Use char because int might match the return type of a GCC 29380 builtin and then its argument prototype would still apply. */ 29381#ifdef __cplusplus 29382extern "C" 29383#endif 29384char seccomp_init (); 29385int 29386main () 29387{ 29388return seccomp_init (); 29389 ; 29390 return 0; 29391} 29392_ACEOF 29393for ac_lib in '' seccomp; do 29394 if test -z "$ac_lib"; then 29395 ac_res="none required" 29396 else 29397 ac_res=-l$ac_lib 29398 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29399 fi 29400 if ac_fn_c_try_link "$LINENO"; then : 29401 ac_cv_search_seccomp_init=$ac_res 29402fi 29403rm -f core conftest.err conftest.$ac_objext \ 29404 conftest$ac_exeext 29405 if ${ac_cv_search_seccomp_init+:} false; then : 29406 break 29407fi 29408done 29409if ${ac_cv_search_seccomp_init+:} false; then : 29410 29411else 29412 ac_cv_search_seccomp_init=no 29413fi 29414rm conftest.$ac_ext 29415LIBS=$ac_func_search_save_LIBS 29416fi 29417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 29418$as_echo "$ac_cv_search_seccomp_init" >&6; } 29419ac_res=$ac_cv_search_seccomp_init 29420if test "$ac_res" != no; then : 29421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29422 29423$as_echo "#define LIBSECCOMP 1" >>confdefs.h 29424 29425 29426fi 29427 29428 if test "$cross_compiling" = yes; then : 29429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29431as_fn_error $? "cannot run test program while cross compiling 29432See \`config.log' for more details" "$LINENO" 5; } 29433else 29434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29435/* end confdefs.h. */ 29436 29437 #include <stdio.h> 29438 #include <stdlib.h> 29439 #include <errno.h> 29440 #include <sys/prctl.h> 29441 #include <linux/seccomp.h> 29442 29443 int main(void) 29444 { 29445 int ret; 29446 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 29447 if (ret < 0) { 29448 switch (errno) { 29449 case ENOSYS: 29450 return 1; 29451 case EINVAL: 29452 return 1; 29453 default: 29454 return 1; 29455 } 29456 } 29457 ret = 29458 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 29459 if (ret < 0) { 29460 switch (errno) { 29461 case EINVAL: 29462 return 1; 29463 case EFAULT: 29464 return 0; 29465 default: 29466 return 1; 29467 } 29468 } 29469return 1; 29470} 29471 29472 29473_ACEOF 29474if ac_fn_c_try_run "$LINENO"; then : 29475 29476$as_echo "#define KERN_SECCOMP 1" >>confdefs.h 29477 29478 29479fi 29480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29481 conftest.$ac_objext conftest.beam conftest.$ac_ext 29482fi 29483 29484 ;; 29485esac 29486 29487 29488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 29489$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 29490if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 29491 $as_echo_n "(cached) " >&6 29492else 29493 29494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29495/* end confdefs.h. */ 29496 29497#define SYSLOG_NAMES 29498#include <stdlib.h> 29499#include <syslog.h> 29500 29501int 29502main () 29503{ 29504 void *fnames; fnames = facilitynames; 29505 ; 29506 return 0; 29507} 29508_ACEOF 29509if ac_fn_c_try_compile "$LINENO"; then : 29510 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 29511else 29512 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 29513fi 29514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29515fi 29516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 29517$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 29518case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 29519 yes) 29520 29521$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 29522 29523 ;; 29524 no) 29525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 29526$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 29527 ;; 29528 cross) 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 29530$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 29531 ;; 29532esac 29533 29534 29535 29536case "$host" in 29537 *-*-*linux*) ;; 29538 *-*-osf4*) ;; 29539 *-*-osf5*) ;; 29540 *) 29541 # HMS: Make sure we check for -lrt for clock_* before this... 29542 case "$ac_cv_search_clock_gettime" in 29543 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;; 29544 esac 29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5 29546$as_echo_n "checking for library containing sched_setscheduler... " >&6; } 29547if ${ac_cv_search_sched_setscheduler+:} false; then : 29548 $as_echo_n "(cached) " >&6 29549else 29550 ac_func_search_save_LIBS=$LIBS 29551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29552/* end confdefs.h. */ 29553 29554/* Override any GCC internal prototype to avoid an error. 29555 Use char because int might match the return type of a GCC 29556 builtin and then its argument prototype would still apply. */ 29557#ifdef __cplusplus 29558extern "C" 29559#endif 29560char sched_setscheduler (); 29561int 29562main () 29563{ 29564return sched_setscheduler (); 29565 ; 29566 return 0; 29567} 29568_ACEOF 29569for ac_lib in '' rt posix4; do 29570 if test -z "$ac_lib"; then 29571 ac_res="none required" 29572 else 29573 ac_res=-l$ac_lib 29574 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29575 fi 29576 if ac_fn_c_try_link "$LINENO"; then : 29577 ac_cv_search_sched_setscheduler=$ac_res 29578fi 29579rm -f core conftest.err conftest.$ac_objext \ 29580 conftest$ac_exeext 29581 if ${ac_cv_search_sched_setscheduler+:} false; then : 29582 break 29583fi 29584done 29585if ${ac_cv_search_sched_setscheduler+:} false; then : 29586 29587else 29588 ac_cv_search_sched_setscheduler=no 29589fi 29590rm conftest.$ac_ext 29591LIBS=$ac_func_search_save_LIBS 29592fi 29593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5 29594$as_echo "$ac_cv_search_sched_setscheduler" >&6; } 29595ac_res=$ac_cv_search_sched_setscheduler 29596if test "$ac_res" != no; then : 29597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29598 29599fi 29600 29601 ;; 29602esac 29603 29604for ac_header in bstring.h 29605do : 29606 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 29607if test "x$ac_cv_header_bstring_h" = xyes; then : 29608 cat >>confdefs.h <<_ACEOF 29609#define HAVE_BSTRING_H 1 29610_ACEOF 29611 29612fi 29613 29614done 29615 29616ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 29617if test "x$ac_cv_header_dns_sd_h" = xyes; then : 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5 29619$as_echo_n "checking for library containing DNSServiceRegister... " >&6; } 29620if ${ac_cv_search_DNSServiceRegister+:} false; then : 29621 $as_echo_n "(cached) " >&6 29622else 29623 ac_func_search_save_LIBS=$LIBS 29624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29625/* end confdefs.h. */ 29626 29627/* Override any GCC internal prototype to avoid an error. 29628 Use char because int might match the return type of a GCC 29629 builtin and then its argument prototype would still apply. */ 29630#ifdef __cplusplus 29631extern "C" 29632#endif 29633char DNSServiceRegister (); 29634int 29635main () 29636{ 29637return DNSServiceRegister (); 29638 ; 29639 return 0; 29640} 29641_ACEOF 29642for ac_lib in '' dns_sd; do 29643 if test -z "$ac_lib"; then 29644 ac_res="none required" 29645 else 29646 ac_res=-l$ac_lib 29647 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29648 fi 29649 if ac_fn_c_try_link "$LINENO"; then : 29650 ac_cv_search_DNSServiceRegister=$ac_res 29651fi 29652rm -f core conftest.err conftest.$ac_objext \ 29653 conftest$ac_exeext 29654 if ${ac_cv_search_DNSServiceRegister+:} false; then : 29655 break 29656fi 29657done 29658if ${ac_cv_search_DNSServiceRegister+:} false; then : 29659 29660else 29661 ac_cv_search_DNSServiceRegister=no 29662fi 29663rm conftest.$ac_ext 29664LIBS=$ac_func_search_save_LIBS 29665fi 29666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5 29667$as_echo "$ac_cv_search_DNSServiceRegister" >&6; } 29668ac_res=$ac_cv_search_DNSServiceRegister 29669if test "$ac_res" != no; then : 29670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29671 29672$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 29673 29674 29675fi 29676 29677 29678fi 29679 29680 29681for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h 29682do : 29683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29684ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29686 cat >>confdefs.h <<_ACEOF 29687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29688_ACEOF 29689 29690fi 29691 29692done 29693 29694 29695for ac_header in memory.h netdb.h poll.h 29696do : 29697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29700 cat >>confdefs.h <<_ACEOF 29701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29702_ACEOF 29703 29704fi 29705 29706done 29707 29708for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h 29709do : 29710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29713 cat >>confdefs.h <<_ACEOF 29714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29715_ACEOF 29716 29717fi 29718 29719done 29720 29721for ac_header in termios.h timepps.h timex.h unistd.h 29722do : 29723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29724ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29726 cat >>confdefs.h <<_ACEOF 29727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29728_ACEOF 29729 29730fi 29731 29732done 29733 29734 29735case "$host" in 29736 *-*-aix*) 29737 for ac_header in utmpx.h 29738do : 29739 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 29740if test "x$ac_cv_header_utmpx_h" = xyes; then : 29741 cat >>confdefs.h <<_ACEOF 29742#define HAVE_UTMPX_H 1 29743_ACEOF 29744 29745fi 29746 29747done 29748 29749 case "$ac_cv_header_utmpx_h" in 29750 yes) 29751 ;; 29752 *) 29753 for ac_header in utmp.h 29754do : 29755 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 29756if test "x$ac_cv_header_utmp_h" = xyes; then : 29757 cat >>confdefs.h <<_ACEOF 29758#define HAVE_UTMP_H 1 29759_ACEOF 29760 29761fi 29762 29763done 29764 29765 ;; 29766 esac 29767 ;; 29768 *) 29769 for ac_header in utmp.h utmpx.h 29770do : 29771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29772ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29774 cat >>confdefs.h <<_ACEOF 29775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29776_ACEOF 29777 29778fi 29779 29780done 29781 29782 ;; 29783esac 29784 29785# 29786# On Suns only (so far) getpass() truncates the typed password to 8 29787# characters, but getpassphrase() allows up to 257. Most systems' 29788# getpass() does not truncate, at least not so as to affect ntpq and 29789# ntpdc password prompts. 29790# 29791# So check for getpassphrase(), but only on Sun operating systems. 29792# 29793case "$host" in 29794 *-*-sunos*|*-*-solaris*) 29795 for ac_func in getpassphrase 29796do : 29797 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 29798if test "x$ac_cv_func_getpassphrase" = xyes; then : 29799 cat >>confdefs.h <<_ACEOF 29800#define HAVE_GETPASSPHRASE 1 29801_ACEOF 29802 29803fi 29804done 29805 29806esac 29807 29808 29809for ac_header in net/if6.h 29810do : 29811 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 29812if test "x$ac_cv_header_net_if6_h" = xyes; then : 29813 cat >>confdefs.h <<_ACEOF 29814#define HAVE_NET_IF6_H 1 29815_ACEOF 29816 29817fi 29818 29819done 29820 29821for ac_header in net/route.h 29822do : 29823 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 29824 #include <sys/types.h> 29825 #include <sys/socket.h> 29826 #include <net/if.h> 29827 29828" 29829if test "x$ac_cv_header_net_route_h" = xyes; then : 29830 cat >>confdefs.h <<_ACEOF 29831#define HAVE_NET_ROUTE_H 1 29832_ACEOF 29833 29834fi 29835 29836done 29837 29838 29839for ac_header in netinfo/ni.h 29840do : 29841 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 29842if test "x$ac_cv_header_netinfo_ni_h" = xyes; then : 29843 cat >>confdefs.h <<_ACEOF 29844#define HAVE_NETINFO_NI_H 1 29845_ACEOF 29846 29847fi 29848 29849done 29850 29851case "$ac_cv_header_netinfo_ni_h" in 29852 yes) 29853 29854$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 29855 29856esac 29857for ac_header in sun/audioio.h sys/audioio.h sys/file.h 29858do : 29859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29860ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29861if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29862 cat >>confdefs.h <<_ACEOF 29863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29864_ACEOF 29865 29866fi 29867 29868done 29869 29870case "$host" in 29871 *-*-sunos4*) 29872 ;; 29873 *) 29874 for ac_header in sys/ioctl.h 29875do : 29876 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 29877if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 29878 cat >>confdefs.h <<_ACEOF 29879#define HAVE_SYS_IOCTL_H 1 29880_ACEOF 29881 29882fi 29883 29884done 29885 29886 ;; 29887esac 29888for ac_header in sys/ipc.h sys/lock.h sys/mman.h 29889do : 29890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29893 cat >>confdefs.h <<_ACEOF 29894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29895_ACEOF 29896 29897fi 29898 29899done 29900 29901# HMS: Check sys/proc.h and sys/resource.h after some others 29902for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h 29903do : 29904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29905ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29907 cat >>confdefs.h <<_ACEOF 29908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29909_ACEOF 29910 29911fi 29912 29913done 29914 29915case "$ac_cv_header_sched_h" in 29916 yes) 29917 ;; 29918 *) 29919 for ac_header in sys/sched.h 29920do : 29921 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 29922if test "x$ac_cv_header_sys_sched_h" = xyes; then : 29923 cat >>confdefs.h <<_ACEOF 29924#define HAVE_SYS_SCHED_H 1 29925_ACEOF 29926 29927fi 29928 29929done 29930 29931 ;; 29932esac 29933# HMS: Check sys/shm.h after some others 29934for ac_header in sys/select.h sys/signal.h sys/sockio.h 29935do : 29936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29937ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29938if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29939 cat >>confdefs.h <<_ACEOF 29940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29941_ACEOF 29942 29943fi 29944 29945done 29946 29947# HMS: Checked sys/socket.h earlier 29948case "$host" in 29949 *-*-netbsd*) 29950 ;; 29951 *) 29952 for ac_header in machine/soundcard.h sys/soundcard.h 29953do : 29954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29955ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29956if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29957 cat >>confdefs.h <<_ACEOF 29958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29959_ACEOF 29960 29961fi 29962 29963done 29964 29965 ;; 29966esac 29967for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h 29968do : 29969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29970ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29972 cat >>confdefs.h <<_ACEOF 29973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29974_ACEOF 29975 29976fi 29977 29978done 29979 29980for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h 29981do : 29982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29985 cat >>confdefs.h <<_ACEOF 29986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29987_ACEOF 29988 29989fi 29990 29991done 29992 29993case "$host" in 29994*-convex-*) 29995 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 29996do : 29997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30000 cat >>confdefs.h <<_ACEOF 30001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30002_ACEOF 30003 30004fi 30005 30006done 30007 30008 ;; 30009*-*-bsdi*) 30010 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 30011do : 30012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30015 cat >>confdefs.h <<_ACEOF 30016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30017_ACEOF 30018 30019fi 30020 30021done 30022 30023 ;; 30024esac 30025 30026case "$ac_cv_header_stdatomic_h" in 30027 yes) 30028 for ac_func in atomic_thread_fence 30029do : 30030 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence" 30031if test "x$ac_cv_func_atomic_thread_fence" = xyes; then : 30032 cat >>confdefs.h <<_ACEOF 30033#define HAVE_ATOMIC_THREAD_FENCE 1 30034_ACEOF 30035 30036fi 30037done 30038 30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5 30040$as_echo_n "checking for atomic_thread_fence()... " >&6; } 30041if ${ntp_cv_func_atomic_thread_fence+:} false; then : 30042 $as_echo_n "(cached) " >&6 30043else 30044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30045/* end confdefs.h. */ 30046 30047 #include <stdatomic.h> 30048 30049int 30050main () 30051{ 30052 30053 atomic_thread_fence(memory_order_seq_cst); 30054 30055 30056 ; 30057 return 0; 30058} 30059 ntp_cv_func_atomic_thread_fence=yes 30060_ACEOF 30061if ac_fn_c_try_compile "$LINENO"; then : 30062 ntp_cv_func_atomic_thread_fence=no 30063 30064fi 30065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30066 30067fi 30068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5 30069$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; } 30070 ;; 30071esac 30072 30073case "$host" in 30074 *-*-solaris2.6) 30075 # Broken... 30076 ;; 30077 *) 30078 for ac_func in ntp_adjtime ntp_gettime 30079do : 30080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30081ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30082if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30083 cat >>confdefs.h <<_ACEOF 30084#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30085_ACEOF 30086 30087fi 30088done 30089 30090 ;; 30091esac 30092 30093case "$host" in 30094 *-*-*linux*) 30095 case "$ac_cv_func_ntp_gettime" in 30096 yes) 30097 ;; 30098 *) 30099 for ac_func in __ntp_gettime 30100do : 30101 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime" 30102if test "x$ac_cv_func___ntp_gettime" = xyes; then : 30103 cat >>confdefs.h <<_ACEOF 30104#define HAVE___NTP_GETTIME 1 30105_ACEOF 30106 30107fi 30108done 30109 30110 case "$ac_cv_func___ntp_gettime" in 30111 yes) 30112 30113$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h 30114 30115 30116$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h 30117 30118 esac 30119 ;; 30120 esac 30121 for ac_func in adjtimex 30122do : 30123 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex" 30124if test "x$ac_cv_func_adjtimex" = xyes; then : 30125 cat >>confdefs.h <<_ACEOF 30126#define HAVE_ADJTIMEX 1 30127_ACEOF 30128 30129fi 30130done 30131 30132 case "$ac_cv_func_adjtimex" in 30133 yes) 30134 30135$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h 30136 30137 30138$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 30139 30140 have_adjtimex=1 30141 ;; 30142 *) 30143 for ac_func in __adjtimex 30144do : 30145 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex" 30146if test "x$ac_cv_func___adjtimex" = xyes; then : 30147 cat >>confdefs.h <<_ACEOF 30148#define HAVE___ADJTIMEX 1 30149_ACEOF 30150 30151fi 30152done 30153 30154 case "$ac_cv_func___adjtimex" in 30155 yes) 30156 30157$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h 30158 30159 30160$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 30161 30162 30163$as_echo "#define adjtimex __adjtimex" >>confdefs.h 30164 30165 30166$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h 30167 30168 have_adjtimex=1 30169 esac 30170 ;; 30171 esac 30172esac 30173case "$have_adjtimex" in 30174 '') 30175 # nlist stuff is only needed for tickadj. 30176 saved_LIBS="$LIBS" 30177 LIBS= 30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5 30179$as_echo_n "checking for library containing nlist... " >&6; } 30180if ${ac_cv_search_nlist+:} false; then : 30181 $as_echo_n "(cached) " >&6 30182else 30183 ac_func_search_save_LIBS=$LIBS 30184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30185/* end confdefs.h. */ 30186 30187/* Override any GCC internal prototype to avoid an error. 30188 Use char because int might match the return type of a GCC 30189 builtin and then its argument prototype would still apply. */ 30190#ifdef __cplusplus 30191extern "C" 30192#endif 30193char nlist (); 30194int 30195main () 30196{ 30197return nlist (); 30198 ; 30199 return 0; 30200} 30201_ACEOF 30202for ac_lib in '' elf ld mld; do 30203 if test -z "$ac_lib"; then 30204 ac_res="none required" 30205 else 30206 ac_res=-l$ac_lib 30207 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30208 fi 30209 if ac_fn_c_try_link "$LINENO"; then : 30210 ac_cv_search_nlist=$ac_res 30211fi 30212rm -f core conftest.err conftest.$ac_objext \ 30213 conftest$ac_exeext 30214 if ${ac_cv_search_nlist+:} false; then : 30215 break 30216fi 30217done 30218if ${ac_cv_search_nlist+:} false; then : 30219 30220else 30221 ac_cv_search_nlist=no 30222fi 30223rm conftest.$ac_ext 30224LIBS=$ac_func_search_save_LIBS 30225fi 30226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5 30227$as_echo "$ac_cv_search_nlist" >&6; } 30228ac_res=$ac_cv_search_nlist 30229if test "$ac_res" != no; then : 30230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30231 30232fi 30233 30234 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...' 30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5 30236$as_echo_n "checking for library containing kvm_open... " >&6; } 30237if ${ac_cv_search_kvm_open+:} false; then : 30238 $as_echo_n "(cached) " >&6 30239else 30240 ac_func_search_save_LIBS=$LIBS 30241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30242/* end confdefs.h. */ 30243 30244/* Override any GCC internal prototype to avoid an error. 30245 Use char because int might match the return type of a GCC 30246 builtin and then its argument prototype would still apply. */ 30247#ifdef __cplusplus 30248extern "C" 30249#endif 30250char kvm_open (); 30251int 30252main () 30253{ 30254return kvm_open (); 30255 ; 30256 return 0; 30257} 30258_ACEOF 30259for ac_lib in '' kvm; do 30260 if test -z "$ac_lib"; then 30261 ac_res="none required" 30262 else 30263 ac_res=-l$ac_lib 30264 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30265 fi 30266 if ac_fn_c_try_link "$LINENO"; then : 30267 ac_cv_search_kvm_open=$ac_res 30268fi 30269rm -f core conftest.err conftest.$ac_objext \ 30270 conftest$ac_exeext 30271 if ${ac_cv_search_kvm_open+:} false; then : 30272 break 30273fi 30274done 30275if ${ac_cv_search_kvm_open+:} false; then : 30276 30277else 30278 ac_cv_search_kvm_open=no 30279fi 30280rm conftest.$ac_ext 30281LIBS=$ac_func_search_save_LIBS 30282fi 30283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5 30284$as_echo "$ac_cv_search_kvm_open" >&6; } 30285ac_res=$ac_cv_search_kvm_open 30286if test "$ac_res" != no; then : 30287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30288 30289fi 30290 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...' 30291 for ac_header in nlist.h sys/var.h 30292do : 30293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30296 cat >>confdefs.h <<_ACEOF 30297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30298_ACEOF 30299 30300fi 30301 30302done 30303 30304 case "$ac_cv_header_nlist_h" in 30305 yes) 30306 30307$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 30308 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 30310$as_echo_n "checking for n_un in struct nlist... " >&6; } 30311if ${ntp_cv_struct_nlist_n_un+:} false; then : 30312 $as_echo_n "(cached) " >&6 30313else 30314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30315/* end confdefs.h. */ 30316 30317 #include <nlist.h> 30318 30319int 30320main () 30321{ 30322 30323 struct nlist n; 30324 n.n_un.n_name = 0; 30325 30326 30327 ; 30328 return 0; 30329} 30330 ntp_cv_struct_nlist_n_un=yes 30331_ACEOF 30332if ac_fn_c_try_compile "$LINENO"; then : 30333 ntp_cv_struct_nlist_n_un=no 30334 30335fi 30336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30337 30338fi 30339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5 30340$as_echo "$ntp_cv_struct_nlist_n_un" >&6; } 30341 case "$ntp_cv_struct_nlist_n_un" in 30342 yes) 30343 30344$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 30345 30346 esac 30347 esac 30348 30349 LDADD_NLIST="$LIBS" 30350 LIBS="$saved_LIBS" 30351 { saved_LIBS=; unset saved_LIBS;} 30352esac 30353 30354for ac_header in sys/proc.h 30355do : 30356 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" " 30357 #ifdef HAVE_SYS_TYPES_H 30358 # include <sys/types.h> 30359 #endif 30360 #ifdef HAVE_SYS_TIME_H 30361 # include <sys/time.h> 30362 #endif 30363 30364" 30365if test "x$ac_cv_header_sys_proc_h" = xyes; then : 30366 cat >>confdefs.h <<_ACEOF 30367#define HAVE_SYS_PROC_H 1 30368_ACEOF 30369 30370fi 30371 30372done 30373 30374 30375for ac_header in sys/resource.h 30376do : 30377 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 30378 #ifdef HAVE_SYS_TIME_H 30379 # include <sys/time.h> 30380 #endif 30381 30382" 30383if test "x$ac_cv_header_sys_resource_h" = xyes; then : 30384 cat >>confdefs.h <<_ACEOF 30385#define HAVE_SYS_RESOURCE_H 1 30386_ACEOF 30387 30388fi 30389 30390done 30391 30392 30393for ac_header in sys/shm.h 30394do : 30395 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" " 30396 #ifdef HAVE_SYS_TYPES_H 30397 # include <sys/types.h> 30398 #endif 30399 #ifdef HAVE_SYS_IPC_H 30400 # include <sys/ipc.h> 30401 #endif 30402 30403" 30404if test "x$ac_cv_header_sys_shm_h" = xyes; then : 30405 cat >>confdefs.h <<_ACEOF 30406#define HAVE_SYS_SHM_H 1 30407_ACEOF 30408 30409fi 30410 30411done 30412 30413 30414for ac_header in sys/timex.h 30415do : 30416 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" " 30417 #ifdef HAVE_SYS_TIME_H 30418 # include <sys/time.h> 30419 #endif 30420 30421" 30422if test "x$ac_cv_header_sys_timex_h" = xyes; then : 30423 cat >>confdefs.h <<_ACEOF 30424#define HAVE_SYS_TIMEX_H 1 30425_ACEOF 30426 30427fi 30428 30429done 30430 30431 30432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 30433$as_echo_n "checking return type of signal handlers... " >&6; } 30434if ${ac_cv_type_signal+:} false; then : 30435 $as_echo_n "(cached) " >&6 30436else 30437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30438/* end confdefs.h. */ 30439#include <sys/types.h> 30440#include <signal.h> 30441 30442int 30443main () 30444{ 30445return *(signal (0, 0)) (0) == 1; 30446 ; 30447 return 0; 30448} 30449_ACEOF 30450if ac_fn_c_try_compile "$LINENO"; then : 30451 ac_cv_type_signal=int 30452else 30453 ac_cv_type_signal=void 30454fi 30455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30456fi 30457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 30458$as_echo "$ac_cv_type_signal" >&6; } 30459 30460cat >>confdefs.h <<_ACEOF 30461#define RETSIGTYPE $ac_cv_type_signal 30462_ACEOF 30463 30464 30465ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 30466if test "x$ac_cv_type_off_t" = xyes; then : 30467 30468else 30469 30470cat >>confdefs.h <<_ACEOF 30471#define off_t long int 30472_ACEOF 30473 30474fi 30475 30476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 30477$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 30478if ${ac_cv_struct_tm+:} false; then : 30479 $as_echo_n "(cached) " >&6 30480else 30481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30482/* end confdefs.h. */ 30483#include <sys/types.h> 30484#include <time.h> 30485 30486int 30487main () 30488{ 30489struct tm tm; 30490 int *p = &tm.tm_sec; 30491 return !p; 30492 ; 30493 return 0; 30494} 30495_ACEOF 30496if ac_fn_c_try_compile "$LINENO"; then : 30497 ac_cv_struct_tm=time.h 30498else 30499 ac_cv_struct_tm=sys/time.h 30500fi 30501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30502fi 30503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 30504$as_echo "$ac_cv_struct_tm" >&6; } 30505if test $ac_cv_struct_tm = sys/time.h; then 30506 30507$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 30508 30509fi 30510 30511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 30512$as_echo_n "checking for a fallback value for HZ... " >&6; } 30513if ${ntp_cv_default_hz+:} false; then : 30514 $as_echo_n "(cached) " >&6 30515else 30516 30517 ntp_cv_default_hz=100 30518 case "$host" in 30519 alpha*-dec-osf4*|alpha*-dec-osf5*) 30520 ntp_cv_default_hz=1024 30521 ;; 30522 mips-dec-ultrix4*) 30523 ntp_cv_default_hz=256 30524 ;; 30525 esac 30526 30527 30528fi 30529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5 30530$as_echo "$ntp_cv_default_hz" >&6; } 30531 30532cat >>confdefs.h <<_ACEOF 30533#define DEFAULT_HZ $ntp_cv_default_hz 30534_ACEOF 30535 30536 30537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 30538$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 30539if ${ntp_cv_override_hz+:} false; then : 30540 $as_echo_n "(cached) " >&6 30541else 30542 30543 ntp_cv_override_hz=no 30544 case "$host" in 30545 alpha*-dec-osf4*|alpha*-dec-osf5*) 30546 ntp_cv_override_hz=yes 30547 ;; 30548 mips-dec-ultrix4*) 30549 ntp_cv_override_hz=yes 30550 ;; 30551 *-*-freebsd*) 30552 ntp_cv_override_hz=yes 30553 ;; 30554 *-*-sunos4*) 30555 ntp_cv_override_hz=yes 30556 ;; 30557 *-*-kfreebsd*) 30558 ntp_cv_override_hz=yes 30559 ;; 30560 esac 30561 30562 30563fi 30564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5 30565$as_echo "$ntp_cv_override_hz" >&6; } 30566case "$ntp_cv_override_hz" in 30567 yes) 30568 30569$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 30570 30571esac 30572 30573 30574 30575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 30576$as_echo_n "checking for struct rt_msghdr... " >&6; } 30577if ${ntp_cv_struct_rt_msghdr+:} false; then : 30578 $as_echo_n "(cached) " >&6 30579else 30580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30581/* end confdefs.h. */ 30582 30583 #include <sys/types.h> 30584 #include <sys/socket.h> 30585 #include <net/if.h> 30586 #include <net/route.h> 30587 30588int 30589main () 30590{ 30591 30592 struct rt_msghdr p; 30593 30594 30595 ; 30596 return 0; 30597} 30598_ACEOF 30599if ac_fn_c_try_compile "$LINENO"; then : 30600 ntp_cv_struct_rt_msghdr=yes 30601else 30602 ntp_cv_struct_rt_msghdr=no 30603 30604fi 30605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30606 30607fi 30608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 30609$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 30610 30611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 30612$as_echo_n "checking for struct rtattr... " >&6; } 30613if ${ntp_cv_rtattr+:} false; then : 30614 $as_echo_n "(cached) " >&6 30615else 30616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30617/* end confdefs.h. */ 30618 30619 #include <stddef.h> 30620 #include <sys/socket.h> 30621 #include <linux/rtnetlink.h> 30622 30623int 30624main () 30625{ 30626 30627 struct rtattr p; 30628 30629 30630 ; 30631 return 0; 30632} 30633_ACEOF 30634if ac_fn_c_try_compile "$LINENO"; then : 30635 ntp_cv_rtattr=yes 30636else 30637 ntp_cv_rtattr=no 30638 30639fi 30640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30641 30642fi 30643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5 30644$as_echo "$ntp_cv_rtattr" >&6; } 30645 30646case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 30647 *yes*) 30648 30649$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 30650 30651 case "$ntp_cv_rtattr" in 30652 yes) 30653 30654$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 30655 30656 esac 30657esac 30658 30659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 30660$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 30661if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then : 30662 $as_echo_n "(cached) " >&6 30663else 30664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30665/* end confdefs.h. */ 30666 30667 #include <signal.h> 30668 30669int 30670main () 30671{ 30672 30673 struct sigaction act; 30674 act.sa_sigaction = 0; 30675 30676 30677 ; 30678 return 0; 30679} 30680_ACEOF 30681if ac_fn_c_try_compile "$LINENO"; then : 30682 ntp_cv_struct_sigaction_has_sa_sigaction=yes 30683else 30684 ntp_cv_struct_sigaction_has_sa_sigaction=no 30685 30686fi 30687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30688 30689fi 30690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5 30691$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; } 30692case "$ntp_cv_struct_sigaction_has_sa_sigaction" in 30693 yes) 30694 30695$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 30696 30697esac 30698 30699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 30700$as_echo_n "checking for struct ppsclockev... " >&6; } 30701if ${ntp_cv_struct_ppsclockev+:} false; then : 30702 $as_echo_n "(cached) " >&6 30703else 30704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30705/* end confdefs.h. */ 30706 30707 #ifdef HAVE_SYS_TYPES_H 30708 # include <sys/types.h> 30709 #endif 30710 #ifdef HAVE_SYS_TERMIOS_H 30711 # include <sys/termios.h> 30712 #endif 30713 #ifdef HAVE_SYS_TIME_H 30714 # include <sys/time.h> 30715 #endif 30716 #ifdef HAVE_SYS_PPSCLOCK_H 30717 # include <sys/ppsclock.h> 30718 #endif 30719 30720int 30721main () 30722{ 30723 30724 extern struct ppsclockev *pce; 30725 return pce->serial; 30726 30727 30728 ; 30729 return 0; 30730} 30731_ACEOF 30732if ac_fn_c_try_compile "$LINENO"; then : 30733 ntp_cv_struct_ppsclockev=yes 30734else 30735 ntp_cv_struct_ppsclockev=no 30736 30737fi 30738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30739 30740fi 30741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5 30742$as_echo "$ntp_cv_struct_ppsclockev" >&6; } 30743case "$ntp_cv_struct_ppsclockev" in 30744 yes) 30745 30746$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 30747 30748esac 30749 30750case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 30751 *yes*) 30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 30753$as_echo_n "checking for struct snd_size... " >&6; } 30754if ${ntp_cv_struct_snd_size+:} false; then : 30755 $as_echo_n "(cached) " >&6 30756else 30757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30758/* end confdefs.h. */ 30759 30760 #ifdef HAVE_MACHINE_SOUNDCARD_H 30761 # include <machine/soundcard.h> 30762 #endif 30763 #ifdef HAVE_SYS_SOUNDCARD_H 30764 # include <sys/soundcard.h> 30765 #endif 30766 30767int 30768main () 30769{ 30770 30771 extern struct snd_size *ss; 30772 return ss->rec_size; 30773 30774 30775 ; 30776 return 0; 30777} 30778_ACEOF 30779if ac_fn_c_try_compile "$LINENO"; then : 30780 ntp_cv_struct_snd_size=yes 30781else 30782 ntp_cv_struct_snd_size=no 30783 30784fi 30785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30786 30787fi 30788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5 30789$as_echo "$ntp_cv_struct_snd_size" >&6; } 30790 case "$ntp_cv_struct_snd_size" in 30791 yes) 30792 30793$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 30794 30795 esac 30796esac 30797 30798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 30799$as_echo_n "checking struct clockinfo for hz... " >&6; } 30800if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 30801 $as_echo_n "(cached) " >&6 30802else 30803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30804/* end confdefs.h. */ 30805 30806 #include <sys/time.h> 30807 30808int 30809main () 30810{ 30811 30812 extern struct clockinfo *pc; 30813 return pc->hz; 30814 30815 30816 ; 30817 return 0; 30818} 30819_ACEOF 30820if ac_fn_c_try_compile "$LINENO"; then : 30821 ntp_cv_struct_clockinfo_has_hz=yes 30822else 30823 ntp_cv_struct_clockinfo_has_hz=no 30824 30825fi 30826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30827 30828fi 30829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 30830$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 30831case "$ntp_cv_struct_clockinfo_has_hz" in 30832 yes) 30833 30834$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 30835 30836esac 30837 30838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 30839$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 30840if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 30841 $as_echo_n "(cached) " >&6 30842else 30843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30844/* end confdefs.h. */ 30845 30846 #include <sys/time.h> 30847 30848int 30849main () 30850{ 30851 30852 extern struct clockinfo *pc; 30853 return pc->tickadj; 30854 30855 30856 ; 30857 return 0; 30858} 30859_ACEOF 30860if ac_fn_c_try_compile "$LINENO"; then : 30861 ntp_cv_struct_clockinfo_has_hz=yes 30862else 30863 ntp_cv_struct_clockinfo_has_hz=no 30864 30865fi 30866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30867 30868fi 30869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 30870$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 30871case "$ntp_cv_struct_clockinfo_has_hz" in 30872 yes) 30873 30874$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 30875 30876esac 30877 30878case "$ntp_cv_struct_ntptimeval" in 30879 yes) 30880 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" " 30881 #ifdef HAVE_SYS_TIME_H 30882 # include <sys/time.h> 30883 #else 30884 # ifdef HAVE_TIME_H 30885 # include <time.h> 30886 # endif 30887 #endif 30888 #ifdef HAVE_SYS_TIMEX_H 30889 # include <sys/timex.h> 30890 #else 30891 # ifdef HAVE_TIMEX_H 30892 # include <timex.h> 30893 # endif 30894 #endif 30895 30896 30897" 30898if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then : 30899 30900cat >>confdefs.h <<_ACEOF 30901#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 30902_ACEOF 30903 30904 30905fi 30906 30907esac 30908 30909#### 30910 30911for ac_func in arc4random_buf 30912do : 30913 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 30914if test "x$ac_cv_func_arc4random_buf" = xyes; then : 30915 cat >>confdefs.h <<_ACEOF 30916#define HAVE_ARC4RANDOM_BUF 1 30917_ACEOF 30918 30919fi 30920done 30921 30922 30923#### 30924 30925saved_LIBS="$LIBS" 30926LIBS="$LIBS $LDADD_LIBNTP" 30927for ac_func in daemon 30928do : 30929 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 30930if test "x$ac_cv_func_daemon" = xyes; then : 30931 cat >>confdefs.h <<_ACEOF 30932#define HAVE_DAEMON 1 30933_ACEOF 30934 30935fi 30936done 30937 30938# XXX if we keep everything in LIBS and also keep separate lists, this simplifies. 30939LIBS="$saved_LIBS" 30940{ saved_LIBS=; unset saved_LIBS;} 30941 30942for ac_func in finite 30943do : 30944 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 30945if test "x$ac_cv_func_finite" = xyes; then : 30946 cat >>confdefs.h <<_ACEOF 30947#define HAVE_FINITE 1 30948_ACEOF 30949 30950else 30951 for ac_func in isfinite 30952do : 30953 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 30954if test "x$ac_cv_func_isfinite" = xyes; then : 30955 cat >>confdefs.h <<_ACEOF 30956#define HAVE_ISFINITE 1 30957_ACEOF 30958 30959else 30960 30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 30962$as_echo_n "checking for isfinite with <math.h>... " >&6; } 30963 _libs=$LIBS 30964 # XXX 30965 LIBS="$LIBS -lm" 30966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30967/* end confdefs.h. */ 30968 30969 #include <math.h> 30970 30971int 30972main () 30973{ 30974 30975 float f = 0.0; 30976 isfinite(f); 30977 30978 30979 ; 30980 return 0; 30981} 30982_ACEOF 30983if ac_fn_c_try_link "$LINENO"; then : 30984 ans=yes 30985else 30986 ans=no 30987 30988fi 30989rm -f core conftest.err conftest.$ac_objext \ 30990 conftest$ac_exeext conftest.$ac_ext 30991 LIBS=$_libs 30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30993$as_echo "$ans" >&6; } 30994 case "$ans" in 30995 yes) 30996 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 30997 30998 esac 30999 31000 31001fi 31002done 31003 31004 31005fi 31006done 31007 31008 31009for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal 31010do : 31011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31013if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31014 cat >>confdefs.h <<_ACEOF 31015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31016_ACEOF 31017 31018fi 31019done 31020 31021 31022# kvm_open() is only used by tickadj. Also see above. 31023case "$ac_cv_header_kvm_h" in 31024 yes) 31025 for ac_func in kvm_open 31026do : 31027 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 31028if test "x$ac_cv_func_kvm_open" = xyes; then : 31029 cat >>confdefs.h <<_ACEOF 31030#define HAVE_KVM_OPEN 1 31031_ACEOF 31032 31033fi 31034done 31035 31036 ;; 31037esac 31038 31039case "$host" in 31040 *-*-sco3.2v5.0.*) 31041 # Just stubs. Sigh. 31042 ;; 31043 *) for ac_func in mkstemp 31044do : 31045 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 31046if test "x$ac_cv_func_mkstemp" = xyes; then : 31047 cat >>confdefs.h <<_ACEOF 31048#define HAVE_MKSTEMP 1 31049_ACEOF 31050 31051fi 31052done 31053 31054 ;; 31055esac 31056for ac_func in mktime 31057do : 31058 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 31059if test "x$ac_cv_func_mktime" = xyes; then : 31060 cat >>confdefs.h <<_ACEOF 31061#define HAVE_MKTIME 1 31062_ACEOF 31063 31064fi 31065done 31066 31067case "$host" in 31068 *-*-aix[4-9]*) 31069 # XXX only verified thru AIX6. 31070 # Just a stub. Sigh. 31071 ;; 31072 *-*-irix[45]*) 31073 # Just a stub in "old" Irix. Sigh. 31074 ;; 31075# In the belief that the fix for bug 1223 fixes mlockall() under linux... 31076# *-*-*linux*) 31077# # there, but more trouble than it is worth for now (resolver problems) 31078# ;; 31079 *-*-qnx*) 31080 # Apparently there but not working in QNX. Sigh? 31081 ;; 31082 *-*-sco3.2v5.0.*) 31083 # Just a stub. Sigh. 31084 ;; 31085 alpha*-dec-osf4*|alpha*-dec-osf5*) 31086 # mlockall is there, as a #define calling memlk via <sys/mman.h> 31087 # Not easy to test for - cheat. 31088 for ac_func in memlk 31089do : 31090 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 31091if test "x$ac_cv_func_memlk" = xyes; then : 31092 cat >>confdefs.h <<_ACEOF 31093#define HAVE_MEMLK 1 31094_ACEOF 31095 ac_cv_func_mlockall=yes 31096fi 31097done 31098 31099 for ac_func in mlockall 31100do : 31101 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 31102if test "x$ac_cv_func_mlockall" = xyes; then : 31103 cat >>confdefs.h <<_ACEOF 31104#define HAVE_MLOCKALL 1 31105_ACEOF 31106 31107fi 31108done 31109 31110 ;; 31111 *) for ac_func in mlockall 31112do : 31113 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 31114if test "x$ac_cv_func_mlockall" = xyes; then : 31115 cat >>confdefs.h <<_ACEOF 31116#define HAVE_MLOCKALL 1 31117_ACEOF 31118 31119fi 31120done 31121 31122 ;; 31123esac 31124for ac_func in nice plock pututline pututxline readlink rtprio 31125do : 31126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31128if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31129 cat >>confdefs.h <<_ACEOF 31130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31131_ACEOF 31132 31133fi 31134done 31135 31136case "$host" in 31137 *-*-aix[4-9]*) 31138 # XXX only verified thru AIX6. 31139 # Just a stub in AIX 4. Sigh. 31140 ;; 31141 *-*-solaris2.5*) 31142 # Just stubs in solaris2.5. Sigh. 31143 ;; 31144 *) for ac_func in sched_setscheduler 31145do : 31146 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 31147if test "x$ac_cv_func_sched_setscheduler" = xyes; then : 31148 cat >>confdefs.h <<_ACEOF 31149#define HAVE_SCHED_SETSCHEDULER 1 31150_ACEOF 31151 31152fi 31153done 31154 31155 ;; 31156esac 31157for ac_func in setlinebuf setpgid setpriority setsid setvbuf 31158do : 31159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31160ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31161if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31162 cat >>confdefs.h <<_ACEOF 31163#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31164_ACEOF 31165 31166fi 31167done 31168 31169for ac_func in strdup strerror setrlimit strchr 31170do : 31171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31173if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31174 cat >>confdefs.h <<_ACEOF 31175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31176_ACEOF 31177 31178fi 31179done 31180 31181case "$host" in 31182 *-*-aix[4-9]*) 31183 # XXX only verified thru AIX6. 31184 # Just stubs. Sigh. 31185 ;; 31186 *-*-netbsd1*) 31187 # Just stubs. Sigh. 31188 ;; 31189 *-*-netbsdelf1*) 31190 # Just stubs. Sigh. 31191 ;; 31192 *-*-openbsd*) 31193 # Just stubs. Sigh. 31194 ;; 31195 *) 31196 for ac_func in timer_create 31197do : 31198 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" 31199if test "x$ac_cv_func_timer_create" = xyes; then : 31200 cat >>confdefs.h <<_ACEOF 31201#define HAVE_TIMER_CREATE 1 31202_ACEOF 31203 31204fi 31205done 31206 31207 ;; 31208esac 31209 31210 31211 31212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5 31213$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; } 31214if ${ntp_cv_rlimit_memlock+:} false; then : 31215 $as_echo_n "(cached) " >&6 31216else 31217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31218/* end confdefs.h. */ 31219 31220 #ifdef HAVE_SYS_TYPES_H 31221 # include <sys/types.h> 31222 #endif 31223 #ifdef HAVE_SYS_TIME_H 31224 # include <sys/time.h> 31225 #endif 31226 #ifdef HAVE_SYS_RESOURCE_H 31227 # include <sys/resource.h> 31228 #endif 31229 31230int 31231main () 31232{ 31233 31234 getrlimit(RLIMIT_MEMLOCK, 0); 31235 31236 31237 ; 31238 return 0; 31239} 31240_ACEOF 31241if ac_fn_c_try_compile "$LINENO"; then : 31242 ntp_cv_rlimit_memlock=yes 31243else 31244 ntp_cv_rlimit_memlock=no 31245 31246fi 31247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31248 31249fi 31250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5 31251$as_echo "$ntp_cv_rlimit_memlock" >&6; } 31252case "$host" in 31253 *-*-*linux*) 31254 ntp_dflt_rlimit_memlock="-1" ;; 31255 *) ntp_dflt_rlimit_memlock="32" ;; 31256esac 31257case "$ntp_cv_rlimit_memlock" in 31258 yes) 31259 31260 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;; 31261esac 31262 31263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5 31264$as_echo_n "checking for RLIMIT_STACK... " >&6; } 31265if ${ntp_cv_rlimit_stack+:} false; then : 31266 $as_echo_n "(cached) " >&6 31267else 31268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31269/* end confdefs.h. */ 31270 31271 #ifdef HAVE_SYS_TYPES_H 31272 # include <sys/types.h> 31273 #endif 31274 #ifdef HAVE_SYS_TIME_H 31275 # include <sys/time.h> 31276 #endif 31277 #ifdef HAVE_SYS_RESOURCE_H 31278 # include <sys/resource.h> 31279 #endif 31280 31281int 31282main () 31283{ 31284 31285 getrlimit(RLIMIT_STACK, 0); 31286 31287 31288 ; 31289 return 0; 31290} 31291_ACEOF 31292if ac_fn_c_try_compile "$LINENO"; then : 31293 ntp_cv_rlimit_stack=yes 31294else 31295 ntp_cv_rlimit_stack=no 31296 31297fi 31298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31299 31300fi 31301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5 31302$as_echo "$ntp_cv_rlimit_stack" >&6; } 31303case "$ntp_cv_rlimit_stack" in 31304 yes) 31305 31306 HAVE_RLIMIT_STACK=" stacksize 50" 31307esac 31308 31309# HMS: Only if we are doing the MLOCKALL stuff... 31310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5 31311$as_echo_n "checking for the default number of 4k stack pages... " >&6; } 31312 31313# Check whether --with-stack-limit was given. 31314if test "${with_stack_limit+set}" = set; then : 31315 withval=$with_stack_limit; ans=$withval 31316else 31317 ans=yes 31318 31319fi 31320 31321case "$ans" in 31322 yes | no) 31323 case "$host" in 31324 *-*-openbsd*) 31325 ans=200 31326 ;; 31327 *) ans=50 31328 ;; 31329 esac 31330 ;; 31331 [1-9][0-9]*) 31332 ;; 31333 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5 31334 ;; 31335esac 31336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31337$as_echo "$ans" >&6; } 31338 31339cat >>confdefs.h <<_ACEOF 31340#define DFLT_RLIMIT_STACK $ans 31341_ACEOF 31342 31343 31344# HMS: only if we have RLIMIT_MEMLOCK 31345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5 31346$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; } 31347 31348# Check whether --with-memlock was given. 31349if test "${with_memlock+set}" = set; then : 31350 withval=$with_memlock; ans=$withval 31351else 31352 ans=yes 31353 31354fi 31355 31356case "$ans" in 31357 yes | no) 31358 ans=$ntp_dflt_rlimit_memlock 31359 ;; 31360 [1-9][0-9]*) ;; 31361 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5 31362 ;; 31363esac 31364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31365$as_echo "$ans" >&6; } 31366 31367cat >>confdefs.h <<_ACEOF 31368#define DFLT_RLIMIT_MEMLOCK $ans 31369_ACEOF 31370 31371 31372 31373 31374# some OSes prefer _exit() in forked children to exit() 31375for ac_func in _exit 31376do : 31377 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit" 31378if test "x$ac_cv_func__exit" = xyes; then : 31379 cat >>confdefs.h <<_ACEOF 31380#define HAVE__EXIT 1 31381_ACEOF 31382 31383fi 31384done 31385 31386ntp_worker_child_exit=exit 31387case "$ac_cv_func__exit::$host_os" in 31388 yes::netbsd*) 31389 ntp_worker_child_exit=_exit 31390 ;; 31391 yes::openbsd*) 31392 ntp_worker_child_exit=_exit 31393 ;; 31394esac 31395 31396cat >>confdefs.h <<_ACEOF 31397#define WORKER_CHILD_EXIT $ntp_worker_child_exit 31398_ACEOF 31399 31400 31401for ac_func in umask uname updwtmp updwtmpx 31402do : 31403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31405if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31406 cat >>confdefs.h <<_ACEOF 31407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31408_ACEOF 31409 31410fi 31411done 31412 31413 31414### 31415 31416# http://bugs.ntp.org/737 31417case "$ac_cv_func_recvmsg" in 31418 yes) 31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 31420$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 31421if ${ntp_cv_struct_iovec_help+:} false; then : 31422 $as_echo_n "(cached) " >&6 31423else 31424 31425 compiled=no 31426 for ntp_cv_struct_iovec_help in '0' '1'; do 31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31428/* end confdefs.h. */ 31429 31430 #ifdef HAVE_SYS_TYPES_H 31431 # include <sys/types.h> 31432 #endif 31433 #ifdef HAVE_SYS_SOCKET_H 31434 # include <sys/socket.h> 31435 #endif 31436 #if $ntp_cv_struct_iovec_help 31437 # include <sys/uio.h> 31438 #endif 31439 31440int 31441main () 31442{ 31443 31444 void foo(void) { 31445 ssize_t x; 31446 int s = 0; 31447 struct iovec iov; 31448 struct msghdr mh; 31449 int flags = 0; 31450 31451 mh.msg_iov = &iov; 31452 x = recvmsg(s, &mh, flags); 31453 } 31454 31455 31456 ; 31457 return 0; 31458} 31459_ACEOF 31460if ac_fn_c_try_compile "$LINENO"; then : 31461 compiled=yes ; break 1 31462fi 31463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31464 done 31465 case "$compiled" in 31466 no) 31467 ntp_cv_struct_iovec_help=0 31468 esac 31469 { compiled=; unset compiled;} 31470 31471 31472fi 31473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5 31474$as_echo "$ntp_cv_struct_iovec_help" >&6; } 31475 case "$ntp_cv_struct_iovec_help" in 31476 1) 31477 31478$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 31479 31480 esac 31481esac 31482 31483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 31484$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 31485if ${ntp_cv_func_setpgrp_nargs+:} false; then : 31486 $as_echo_n "(cached) " >&6 31487else 31488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31489/* end confdefs.h. */ 31490 31491 #ifdef HAVE_SYS_TYPES_H 31492 # include <sys/types.h> 31493 #endif 31494 #ifdef HAVE_UNISTD_H 31495 # include <unistd.h> 31496 #endif 31497 31498int 31499main () 31500{ 31501 31502 setpgrp(0, 0); 31503 31504 31505 ; 31506 return 0; 31507} 31508_ACEOF 31509if ac_fn_c_try_compile "$LINENO"; then : 31510 ntp_cv_func_setpgrp_nargs=2 31511else 31512 ntp_cv_func_setpgrp_nargs=0 31513 31514fi 31515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31516 31517fi 31518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5 31519$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; } 31520case "$ntp_cv_func_setpgrp_nargs" in 31521 0) 31522 31523$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 31524 31525esac 31526 31527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 31528$as_echo_n "checking if we need to declare 'errno'... " >&6; } 31529if ${ntp_cv_decl_errno+:} false; then : 31530 $as_echo_n "(cached) " >&6 31531else 31532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31533/* end confdefs.h. */ 31534 31535 #ifdef HAVE_ERRNO_H 31536 # include <errno.h> 31537 #endif 31538 31539int 31540main () 31541{ 31542 31543 errno = 0; 31544 31545 31546 ; 31547 return 0; 31548} 31549_ACEOF 31550if ac_fn_c_try_compile "$LINENO"; then : 31551 ntp_cv_decl_errno=no 31552else 31553 ntp_cv_decl_errno=yes 31554 31555fi 31556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31557 31558fi 31559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5 31560$as_echo "$ntp_cv_decl_errno" >&6; } 31561case "$ntp_cv_decl_errno" in 31562 yes) 31563 31564$as_echo "#define DECL_ERRNO 1" >>confdefs.h 31565 31566esac 31567 31568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 31569$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 31570if ${ntp_cv_decl_h_errno+:} false; then : 31571 $as_echo_n "(cached) " >&6 31572else 31573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31574/* end confdefs.h. */ 31575 31576 #include <sys/types.h> 31577 #ifdef HAVE_NETINET_IN_H 31578 # include <netinet/in.h> 31579 #endif 31580 #ifdef HAVE_ARPA_NAMESER_H 31581 # include <arpa/nameser.h> 31582 #endif 31583 #ifdef HAVE_NETDB_H 31584 # include <netdb.h> 31585 #endif 31586 #ifdef HAVE_RESOLV_H 31587 # include <resolv.h> 31588 #endif 31589 31590int 31591main () 31592{ 31593 31594 extern int h_errno; 31595 31596 31597 ; 31598 return 0; 31599} 31600_ACEOF 31601if ac_fn_c_try_compile "$LINENO"; then : 31602 ntp_cv_decl_h_errno=yes 31603else 31604 ntp_cv_decl_h_errno=no 31605 31606fi 31607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31608 31609fi 31610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5 31611$as_echo "$ntp_cv_decl_h_errno" >&6; } 31612case "$ntp_cv_decl_h_errno" in 31613 yes) 31614 31615$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 31616 31617esac 31618 31619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 31620$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 31621if ${ntp_cv_decl_syscall+:} false; then : 31622 $as_echo_n "(cached) " >&6 31623else 31624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31625/* end confdefs.h. */ 31626 31627 #ifdef HAVE_SYS_TYPES_H 31628 # include <sys/types.h> 31629 #endif 31630 #ifdef HAVE_UNISTD_H 31631 # include <unistd.h> 31632 #endif 31633 31634int 31635main () 31636{ 31637 31638 extern int syscall (int, ...); 31639 31640 31641 ; 31642 return 0; 31643} 31644 ntp_cv_decl_syscall=yes 31645_ACEOF 31646if ac_fn_c_try_compile "$LINENO"; then : 31647 ntp_cv_decl_syscall=no 31648 31649fi 31650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31651 31652fi 31653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5 31654$as_echo "$ntp_cv_decl_syscall" >&6; } 31655case "$ntp_cv_decl_syscall" in 31656 yes) 31657 31658$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 31659 31660esac 31661 31662case "$host" in 31663 *-*-aix4.3.*) 31664 31665$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 31666 # Needed for XLC under AIX 4.3.2 31667 ;; 31668 *-*-mpeix*) 31669 31670$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31671 31672 31673$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 31674 31675 31676$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31677 31678 31679$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31680 31681 31682$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31683 31684 31685$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31686 31687 31688$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31689 31690 ;; 31691 *-*-osf[45]*) 31692 31693$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 31694 31695 31696$as_echo "#define DECL_STIME_1 1" >>confdefs.h 31697 31698 ;; 31699 *-*-qnx*) 31700 31701$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31702 31703 ;; 31704 *-*-riscos4*) 31705 31706$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31707 31708 31709$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31710 31711 31712$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31713 31714 31715$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31716 31717 31718$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 31719 31720 31721$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31722 31723 31724$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 31725 31726 31727$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31728 31729 31730$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31731 31732 31733$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31734 31735 31736$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 31737 31738 31739$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 31740 31741 31742$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31743 31744 31745$as_echo "#define DECL_TIME_0 1" >>confdefs.h 31746 31747 31748$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31749 31750 31751$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 31752 31753 ;; 31754 *-*-solaris2*) 31755 31756$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 31757 31758 31759$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 31760 31761 case "$host" in 31762 *-*-solaris2.4) 31763 31764$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31765 31766 ;; 31767 esac 31768 ;; 31769 *-*-sunos4*) 31770 31771$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31772 31773 31774$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 31775 31776 31777$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31778 31779 31780$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31781 31782 31783$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31784 31785 31786$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 31787 31788 31789$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31790 31791 31792$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 31793 31794 31795$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 31796 31797 31798$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31799 31800 31801$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31802 31803 31804$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31805 31806 31807$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 31808 31809 case "`basename $ac_cv_prog_CC`" in 31810 acc*) ;; 31811 *) 31812$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 31813 31814 ;; 31815 esac 31816 31817$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 31818 31819 31820$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31821 31822 31823$as_echo "#define DECL_TIME_0 1" >>confdefs.h 31824 31825 31826$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31827 31828 31829$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 31830 31831 31832$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 31833 31834 31835$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 31836 31837 ;; 31838 *-*-ultrix4*) 31839 31840$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31841 31842 31843$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31844 31845 31846$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 31847 31848 31849$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31850 31851 31852$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31853 31854 31855$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31856 31857 31858$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 31859 31860 31861$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 31862 31863 31864$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31865 31866 31867$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31868 31869 31870$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31871 31872 31873$as_echo "#define DECL_STIME_0 1" >>confdefs.h 31874 31875 31876$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31877 31878 31879$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31880 31881 ;; 31882esac 31883 31884case "$host" in 31885 *-*-sco3.2*) 31886 31887$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 31888 31889 ;; 31890esac 31891 31892case "$host" in 31893 *-*-hpux[567]*) 31894 31895$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 31896 31897esac 31898 31899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 31900$as_echo_n "checking if we will open the broadcast socket... " >&6; } 31901if ${ntp_cv_var_open_bcast_socket+:} false; then : 31902 $as_echo_n "(cached) " >&6 31903else 31904 31905 ans=yes 31906 case "$host" in 31907 *-*-domainos) 31908 ans=no 31909 esac 31910 ntp_cv_var_open_bcast_socket=$ans 31911 31912 31913fi 31914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5 31915$as_echo "$ntp_cv_var_open_bcast_socket" >&6; } 31916case "$ntp_cv_var_open_bcast_socket" in 31917 yes) 31918 31919$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 31920 31921esac 31922 31923case "$host" in 31924 *-*-hpux*) 31925 31926$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 31927 31928esac 31929 31930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 31931$as_echo_n "checking if process groups are set with -pid... " >&6; } 31932if ${ntp_cv_arg_setpgrp_negpid+:} false; then : 31933 $as_echo_n "(cached) " >&6 31934else 31935 31936 case "$host" in 31937 *-*-hpux[567]*) 31938 ans=no 31939 ;; 31940 *-*-hpux*) 31941 ans=yes 31942 ;; 31943 *-*-*linux*) 31944 ans=yes 31945 ;; 31946 *-*-sunos3*) 31947 ans=yes 31948 ;; 31949 *-*-ultrix2*) 31950 ans=yes 31951 ;; 31952 *) 31953 ans=no 31954 ;; 31955 esac 31956 ntp_cv_arg_setpgrp_negpid=$ans 31957 31958 31959fi 31960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5 31961$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; } 31962case "$ntp_cv_arg_setpgrp_negpid" in 31963 yes) 31964 31965$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 31966 31967esac 31968 31969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 31970$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 31971if ${ntp_cv_func_ctty_for_f_setown+:} false; then : 31972 $as_echo_n "(cached) " >&6 31973else 31974 31975 case "$host" in 31976 *-*-bsdi[23]*) 31977 ans=yes 31978 ;; 31979 *-*-freebsd*) 31980 ans=yes 31981 ;; 31982 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 31983 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 31984 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 31985 # in $host may be followed by "aout", "ecoff", or "elf". 31986 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7]) 31987 ans=yes 31988 ;; 31989 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7]) 31990 ans=yes 31991 ;; 31992 *-*-openbsd*) 31993 ans=yes 31994 ;; 31995 *-*-osf*) 31996 ans=yes 31997 ;; 31998 *-*-darwin*) 31999 ans=yes 32000 ;; 32001 *) 32002 ans=no 32003 ;; 32004 esac 32005 ntp_cv_func_ctty_for_f_setown=$ans 32006 32007 32008fi 32009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 32010$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 32011case "$ntp_cv_func_ctty_for_f_setown" in 32012 yes) 32013 32014$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 32015 32016esac 32017 32018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5 32019$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; } 32020if ${ntp_cv_os_routeupdates+:} false; then : 32021 $as_echo_n "(cached) " >&6 32022else 32023 32024 case "$host" in 32025 *-*-netbsd*) 32026 ans=yes 32027 ;; 32028 *) 32029 ans=no 32030 ;; 32031 esac 32032 ntp_cv_os_routeupdates=$ans 32033 32034 32035fi 32036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5 32037$as_echo "$ntp_cv_os_routeupdates" >&6; } 32038case "$ntp_cv_os_routeupdates" in 32039 yes) 32040 32041$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 32042 32043esac 32044 32045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5 32046$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; } 32047if ${ntp_cv_os_wildcardreuse+:} false; then : 32048 $as_echo_n "(cached) " >&6 32049else 32050 32051 case "$host" in 32052 *-*-*linux*) 32053 ans=yes 32054 ;; 32055 *) ans=no 32056 ;; 32057 esac 32058 ntp_cv_os_wildcardreuse=$ans 32059 32060 32061fi 32062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5 32063$as_echo "$ntp_cv_os_wildcardreuse" >&6; } 32064case "$ntp_cv_os_wildcardreuse" in 32065 yes) 32066 32067$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 32068 32069esac 32070 32071case "$host" in 32072 *-*-aix*) 32073 32074$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 32075 32076esac 32077 32078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 32079$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 32080if ${ntp_cv_var_min_rec_tickadj+:} false; then : 32081 $as_echo_n "(cached) " >&6 32082else 32083 32084 ans=no 32085 case "$host" in 32086 *-*-aix*) 32087 ans=40 32088 ;; 32089 esac 32090 ntp_cv_var_min_rec_tickadj=$ans 32091 32092 32093fi 32094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5 32095$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; } 32096case "$ntp_cv_var_min_rec_tickadj" in 32097 ''|no) 32098 ;; 32099 *) 32100 32101cat >>confdefs.h <<_ACEOF 32102#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj 32103_ACEOF 32104 32105esac 32106 32107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 32108$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 32109if ${ntp_cv_no_parenb_ignpar+:} false; then : 32110 $as_echo_n "(cached) " >&6 32111else 32112 32113 ans=no 32114 case "$host" in 32115 i?86-*-*linux*) 32116 ans=yes 32117 ;; 32118 mips-sgi-irix*) 32119 ans=yes 32120 ;; 32121 i?86-*-freebsd[123].*) 32122 ;; 32123 i?86-*-freebsd*) 32124 ans=yes 32125 ;; 32126 *-*-unicosmp*) 32127 ans=yes 32128 ;; 32129 esac 32130 ntp_cv_no_parenb_ignpar=$ans 32131 32132 32133fi 32134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5 32135$as_echo "$ntp_cv_no_parenb_ignpar" >&6; } 32136case "$ntp_cv_no_parenb_ignpar" in 32137 yes) 32138 32139$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 32140 32141esac 32142 32143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5 32144$as_echo_n "checking if we're including processing time debugging code... " >&6; } 32145# Check whether --enable-debug-timing was given. 32146if test "${enable_debug_timing+set}" = set; then : 32147 enableval=$enable_debug_timing; ntp_ok=$enableval 32148else 32149 ntp_ok=no 32150 32151fi 32152 32153case "$ntp_ok" in 32154 yes) 32155 32156$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 32157 32158esac 32159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32160$as_echo "$ntp_ok" >&6; } 32161 32162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 32163$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 32164# Check whether --enable-dst-minutes was given. 32165if test "${enable_dst_minutes+set}" = set; then : 32166 enableval=$enable_dst_minutes; ans=$enableval 32167else 32168 ans=60 32169 32170fi 32171 32172 32173cat >>confdefs.h <<_ACEOF 32174#define DSTMINUTES $ans 32175_ACEOF 32176 32177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32178$as_echo "$ans" >&6; } 32179 32180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 32181$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 32182# Check whether --enable-ignore-dns-errors was given. 32183if test "${enable_ignore_dns_errors+set}" = set; then : 32184 enableval=$enable_ignore_dns_errors; ans=$enableval 32185else 32186 ans=no 32187 32188fi 32189 32190case "$ans" in 32191 yes) 32192 32193$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 32194 32195esac 32196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32197$as_echo "$ans" >&6; } 32198 32199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 32200$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 32201if ${ntp_cv_var_ntp_syscalls+:} false; then : 32202 $as_echo_n "(cached) " >&6 32203else 32204 32205 ntp_cv_var_ntp_syscalls=no 32206 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 32207 yesyes*) 32208 ntp_cv_var_ntp_syscalls=libc 32209 ;; 32210 *yes) 32211 ntp_cv_var_ntp_syscalls=inline 32212 ;; 32213 *) 32214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32215/* end confdefs.h. */ 32216 32217 #include <sys/syscall.h> 32218 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime) 32219 # error 32220 #endif 32221 32222_ACEOF 32223if ac_fn_c_try_cpp "$LINENO"; then : 32224 ntp_cv_var_ntp_syscalls=kernel 32225 32226fi 32227rm -f conftest.err conftest.i conftest.$ac_ext 32228 ;; 32229 esac 32230 32231 32232fi 32233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5 32234$as_echo "$ntp_cv_var_ntp_syscalls" >&6; } 32235case "$ntp_cv_var_ntp_syscalls" in 32236 libc) 32237 32238$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 32239 32240 ;; 32241 kernel) 32242 32243$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 32244 32245 ;; 32246esac 32247 32248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 32249$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 32250if ${ntp_cv_var_sta_fll+:} false; then : 32251 $as_echo_n "(cached) " >&6 32252else 32253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32254/* end confdefs.h. */ 32255 32256 #include <sys/timex.h> 32257 #ifndef STA_FLL 32258 # error 32259 #endif 32260 32261_ACEOF 32262if ac_fn_c_try_cpp "$LINENO"; then : 32263 ntp_cv_var_sta_fll=yes 32264else 32265 ntp_cv_var_sta_fll=no 32266 32267fi 32268rm -f conftest.err conftest.i conftest.$ac_ext 32269 32270fi 32271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5 32272$as_echo "$ntp_cv_var_sta_fll" >&6; } 32273 32274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 32275$as_echo_n "checking if we have kernel PLL support... " >&6; } 32276if ${ntp_cv_var_kernel_pll+:} false; then : 32277 $as_echo_n "(cached) " >&6 32278else 32279 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in 32280 *no*) 32281 ntp_cv_var_kernel_pll=no 32282 ;; 32283 *) ntp_cv_var_kernel_pll=yes 32284 ;; 32285 esac 32286 32287 32288fi 32289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5 32290$as_echo "$ntp_cv_var_kernel_pll" >&6; } 32291case "$ntp_cv_var_kernel_pll" in 32292 yes) 32293 32294$as_echo "#define KERNEL_PLL 1" >>confdefs.h 32295 32296esac 32297 32298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 32299$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 32300if ${ntp_cv_size_returned_in_buffer+:} false; then : 32301 $as_echo_n "(cached) " >&6 32302else 32303 32304 ans=no 32305 case "$host" in 32306 *-fujitsu-uxp*) 32307 ans=yes 32308 ;; 32309 *-ncr-sysv4*) 32310 ans=yes 32311 ;; 32312 *-univel-sysv*) 32313 ans=yes 32314 ;; 32315 esac 32316 ntp_cv_size_returned_in_buffer=$ans 32317 32318 32319fi 32320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5 32321$as_echo "$ntp_cv_size_returned_in_buffer" >&6; } 32322case "$ntp_cv_size_returned_in_buffer" in 32323 yes) 32324 32325$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 32326 32327esac 32328 32329# Check for ioctls TIOCGPPSEV 32330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5 32331$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; } 32332case "$ac_cv_header_termios_h" in 32333 yes) 32334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32335/* end confdefs.h. */ 32336 32337 #include <termios.h> 32338 #ifndef TIOCGPPSEV 32339 # error 32340 #endif 32341 32342_ACEOF 32343if ac_fn_c_try_cpp "$LINENO"; then : 32344 ntp_ok=yes 32345else 32346 ntp_ok=no 32347 32348fi 32349rm -f conftest.err conftest.i conftest.$ac_ext 32350 ;; 32351 *) 32352 ntp_ok=no 32353 ;; 32354esac 32355case "$ntp_ok" in 32356 yes) 32357 32358$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 32359 32360esac 32361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32362$as_echo "$ntp_ok" >&6; } 32363 32364# Check for ioctls TIOCSPPS 32365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5 32366$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; } 32367case "$ac_cv_header_termios_h" in 32368 yes) 32369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32370/* end confdefs.h. */ 32371 32372 #include <termios.h> 32373 #ifndef TIOCSPPS 32374 # error 32375 #endif 32376 32377_ACEOF 32378if ac_fn_c_try_cpp "$LINENO"; then : 32379 ntp_ok=yes 32380else 32381 ntp_ok=no 32382 32383fi 32384rm -f conftest.err conftest.i conftest.$ac_ext 32385 ;; 32386 *) 32387 ntp_ok=no 32388 ;; 32389esac 32390case "$ntp_ok" in 32391 yes) 32392 32393$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 32394 32395esac 32396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32397$as_echo "$ntp_ok" >&6; } 32398 32399# Check for ioctls CIOGETEV 32400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5 32401$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; } 32402case "$ac_cv_header_sys_ppsclock_h" in 32403 yes) 32404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32405/* end confdefs.h. */ 32406 32407 #include <sys/ppsclock.h> 32408 #ifndef CIOGETEV 32409 # error 32410 #endif 32411 32412_ACEOF 32413if ac_fn_c_try_cpp "$LINENO"; then : 32414 ntp_ok=yes 32415else 32416 ntp_ok=no 32417 32418fi 32419rm -f conftest.err conftest.i conftest.$ac_ext 32420 ;; 32421 *) 32422 ntp_ok=no 32423 ;; 32424esac 32425case "$ntp_ok" in 32426 yes) 32427 32428$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 32429 32430esac 32431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32432$as_echo "$ntp_ok" >&6; } 32433 32434# ATOM/PPSAPI stuff. 32435 32436ntp_atom_ok=yes 32437 32438# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 32439 32440# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 32441# The PPSAPI needs struct timespec. 32442# The PPSAPI also needs a timepps header. 32443 32444case "$ac_cv_c_inline$ntp_cv_struct_timespec" in 32445 inlineyes) 32446 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 32447 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 32448 32449$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 32450 32451 ntp_jupiter_ok=yes 32452 ntp_oncore_ok=yes 32453 ntp_parse_ok=yes 32454 ntp_ripe_ncc_ok=yes 32455 ;; 32456 esac 32457 ;; 32458esac 32459 32460# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 32461ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 32462if test "x$ac_cv_header_linux_serial_h" = xyes; then : 32463 32464fi 32465 32466 32467case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 32468 yesyes) 32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 32470$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 32471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32472/* end confdefs.h. */ 32473 32474 #include <sys/time.h> 32475 typedef int u_int; 32476 #include <sys/ppsclock.h> 32477 #include <linux/serial.h> 32478 32479 #ifndef TIOCGSERIAL 32480 # error 32481 #endif 32482 #ifndef TIOCSSERIAL 32483 # error 32484 #endif 32485 #ifndef ASYNC_PPS_CD_POS 32486 # error 32487 #endif 32488 #ifndef ASYNC_PPS_CD_NEG 32489 # error 32490 #endif 32491 #ifndef CIOGETEV 32492 # error 32493 #endif 32494 32495_ACEOF 32496if ac_fn_c_try_cpp "$LINENO"; then : 32497 ntp_ok=yes 32498else 32499 ntp_ok=no 32500 32501fi 32502rm -f conftest.err conftest.i conftest.$ac_ext 32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32504$as_echo "$ntp_ok" >&6; } 32505 ;; 32506 *) 32507 ntp_ok=no 32508 ;; 32509esac 32510case "$ntp_ok" in 32511 yes) 32512 32513$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 32514 32515esac 32516 32517# Check for SHMEM_STATUS support 32518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 32519$as_echo_n "checking SHMEM_STATUS support... " >&6; } 32520case "$ac_cv_header_sys_mman_h" in 32521 yes) 32522 ntp_ok=yes 32523 ;; 32524 *) 32525 ntp_ok=no 32526 ;; 32527esac 32528case "$ntp_ok" in 32529 yes) 32530 32531$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 32532 32533esac 32534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32535$as_echo "$ntp_ok" >&6; } 32536 32537ntp_refclock=no 32538 32539# HPUX only, and by explicit request 32540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 32541$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 32542# Check whether --enable-BANCOMM was given. 32543if test "${enable_BANCOMM+set}" = set; then : 32544 enableval=$enable_BANCOMM; ntp_ok=$enableval 32545else 32546 ntp_ok=no 32547 32548fi 32549 32550case "$ntp_ok" in 32551 yes) 32552 ntp_refclock=yes 32553 32554$as_echo "#define CLOCK_BANC 1" >>confdefs.h 32555 32556 ;; 32557esac 32558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32559$as_echo "$ntp_ok" >&6; } 32560case "$ntp_ok$host" in 32561 yes*-*-hpux*) ;; 32562 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32563$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 32564esac 32565 32566#HPUX only, and only by explicit request 32567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 32568$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 32569# Check whether --enable-GPSVME was given. 32570if test "${enable_GPSVME+set}" = set; then : 32571 enableval=$enable_GPSVME; ntp_ok=$enableval 32572else 32573 ntp_ok=no 32574 32575fi 32576 32577case "$ntp_ok" in 32578 yes) 32579 ntp_refclock=yes 32580 32581$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 32582 32583 ;; 32584esac 32585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32586$as_echo "$ntp_ok" >&6; } 32587case "$ntp_ok$host" in 32588 yes*-*-hpux*) ;; 32589 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32590$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 32591esac 32592 32593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 32594$as_echo_n "checking for PCL720 clock support... " >&6; } 32595case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 32596 yesyesyes) 32597 32598$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 32599 32600 ans=yes 32601 ;; 32602 *) 32603 ans=no 32604 ;; 32605esac 32606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32607$as_echo "$ans" >&6; } 32608 32609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 32610$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 32611# Check whether --enable-all-clocks was given. 32612if test "${enable_all_clocks+set}" = set; then : 32613 enableval=$enable_all_clocks; ntp_eac=$enableval 32614else 32615 ntp_eac=yes 32616 32617fi 32618 32619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 32620$as_echo "$ntp_eac" >&6; } 32621 32622# HMS: Should we also require ntp_parse_ok? 32623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 32624$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 32625case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 32626 yes*yes*) 32627 ntp_canparse=yes 32628 ;; 32629 *) ntp_canparse=no 32630 ;; 32631esac 32632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 32633$as_echo "$ntp_canparse" >&6; } 32634 32635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 32636$as_echo_n "checking if we have support for audio clocks... " >&6; } 32637case "$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 32638 *yes*) 32639 ntp_canaudio=yes 32640 32641$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 32642 32643 ;; 32644 *) ntp_canaudio=no ;; 32645esac 32646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 32647$as_echo "$ntp_canaudio" >&6; } 32648 32649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 32650$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 32651case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 32652 yesyes) 32653 ntp_canshm=yes 32654 ;; 32655 *) ntp_canshm=no ;; 32656esac 32657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 32658$as_echo "$ntp_canshm" >&6; } 32659 32660# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade) 32661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5 32662$as_echo_n "checking for termios modem control... " >&6; } 32663if ${ntp_cv_modem_control+:} false; then : 32664 $as_echo_n "(cached) " >&6 32665else 32666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32667/* end confdefs.h. */ 32668 32669 #ifdef HAVE_UNISTD_H 32670 # include <unistd.h> 32671 #endif 32672 #ifdef HAVE_TERMIOS_H 32673 # include <termios.h> 32674 #endif 32675 #ifdef HAVE_SYS_IOCTL_H 32676 # include <sys/ioctl.h> 32677 #endif 32678 32679int 32680main () 32681{ 32682 32683 int dtr = TIOCM_DTR; 32684 32685 ioctl(1, TIOCMBIS, (char *)&dtr); 32686 32687 32688 ; 32689 return 0; 32690} 32691_ACEOF 32692if ac_fn_c_try_compile "$LINENO"; then : 32693 ntp_cv_modem_control=yes 32694else 32695 ntp_cv_modem_control=no 32696 32697fi 32698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32699 32700fi 32701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5 32702$as_echo "$ntp_cv_modem_control" >&6; } 32703case "$ntp_eac::$ntp_cv_modem_control" in 32704 yes::yes) 32705 ntp_enable_all_modem_control_clocks=yes 32706 ;; 32707 *) 32708 ntp_enable_all_modem_control_clocks=no 32709 ;; 32710esac 32711 32712# Requires modem control 32713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 32714$as_echo_n "checking ACTS modem service... " >&6; } 32715# Check whether --enable-ACTS was given. 32716if test "${enable_ACTS+set}" = set; then : 32717 enableval=$enable_ACTS; ntp_ok=$enableval 32718else 32719 ntp_ok=$ntp_enable_all_modem_control_clocks 32720 32721fi 32722 32723case "$ntp_ok" in 32724 yes) 32725 ntp_refclock=yes 32726 32727$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 32728 32729 ;; 32730esac 32731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32732$as_echo "$ntp_ok" >&6; } 32733 32734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 32735$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 32736# Check whether --enable-ARBITER was given. 32737if test "${enable_ARBITER+set}" = set; then : 32738 enableval=$enable_ARBITER; ntp_ok=$enableval 32739else 32740 ntp_ok=$ntp_eac 32741 32742fi 32743 32744case "$ntp_ok" in 32745 yes) 32746 ntp_refclock=yes 32747 32748$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 32749 32750 ;; 32751esac 32752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32753$as_echo "$ntp_ok" >&6; } 32754 32755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 32756$as_echo_n "checking Arcron MSF receiver... " >&6; } 32757# Check whether --enable-ARCRON_MSF was given. 32758if test "${enable_ARCRON_MSF+set}" = set; then : 32759 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 32760else 32761 ntp_ok=$ntp_eac 32762 32763fi 32764 32765case "$ntp_ok" in 32766 yes) 32767 ntp_refclock=yes 32768 32769$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 32770 32771 ;; 32772esac 32773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32774$as_echo "$ntp_ok" >&6; } 32775 32776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 32777$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 32778# Check whether --enable-AS2201 was given. 32779if test "${enable_AS2201+set}" = set; then : 32780 enableval=$enable_AS2201; ntp_ok=$enableval 32781else 32782 ntp_ok=$ntp_eac 32783 32784fi 32785 32786case "$ntp_ok" in 32787 yes) 32788 ntp_refclock=yes 32789 32790$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 32791 32792 ;; 32793esac 32794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32795$as_echo "$ntp_ok" >&6; } 32796 32797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 32798$as_echo_n "checking ATOM PPS interface... " >&6; } 32799# Check whether --enable-ATOM was given. 32800if test "${enable_ATOM+set}" = set; then : 32801 enableval=$enable_ATOM; ntp_ok=$enableval 32802else 32803 ntp_ok=$ntp_eac 32804 32805fi 32806 32807case "$ntp_atom_ok" in 32808 no) ntp_ok=no ;; 32809esac 32810case "$ntp_ok" in 32811 yes) 32812 ntp_refclock=yes 32813 32814$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 32815 32816 ;; 32817esac 32818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32819$as_echo "$ntp_ok" >&6; } 32820 32821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 32822$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 32823# Check whether --enable-CHRONOLOG was given. 32824if test "${enable_CHRONOLOG+set}" = set; then : 32825 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 32826else 32827 ntp_ok=$ntp_eac 32828 32829fi 32830 32831case "$ntp_ok" in 32832 yes) 32833 ntp_refclock=yes 32834 32835$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 32836 32837 ;; 32838esac 32839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32840$as_echo "$ntp_ok" >&6; } 32841 32842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 32843$as_echo_n "checking CHU modem/decoder... " >&6; } 32844# Check whether --enable-CHU was given. 32845if test "${enable_CHU+set}" = set; then : 32846 enableval=$enable_CHU; ntp_ok=$enableval 32847else 32848 ntp_ok=$ntp_eac 32849 32850fi 32851 32852case "$ntp_ok" in 32853 yes) 32854 ntp_refclock=yes 32855 32856$as_echo "#define CLOCK_CHU 1" >>confdefs.h 32857 32858 ;; 32859esac 32860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32861$as_echo "$ntp_ok" >&6; } 32862ntp_refclock_chu=$ntp_ok 32863 32864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 32865$as_echo_n "checking CHU audio/decoder... " >&6; } 32866# Check whether --enable-AUDIO-CHU was given. 32867if test "${enable_AUDIO_CHU+set}" = set; then : 32868 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 32869else 32870 32871 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in 32872 *no*) ntp_ok=no ;; 32873 *) ntp_ok=yes ;; 32874 esac 32875 32876 32877fi 32878 32879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32880$as_echo "$ntp_ok" >&6; } 32881# We used to check for sunos/solaris target... 32882case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in 32883 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 32884$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} 32885esac 32886 32887# Not under HP-UX 32888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 32889$as_echo_n "checking Datum Programmable Time System... " >&6; } 32890# Check whether --enable-DATUM was given. 32891if test "${enable_DATUM+set}" = set; then : 32892 enableval=$enable_DATUM; ntp_ok=$enableval 32893else 32894 32895 case "$ac_cv_header_termios_h" in 32896 yes) 32897 ntp_ok=$ntp_eac 32898 ;; 32899 *) ntp_ok=no 32900 ;; 32901 esac 32902 32903 32904fi 32905 32906case "$ntp_ok" in 32907 yes) 32908 ntp_refclock=yes 32909 32910$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 32911 32912 ;; 32913esac 32914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32915$as_echo "$ntp_ok" >&6; } 32916 32917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 32918$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 32919# Check whether --enable-DUMBCLOCK was given. 32920if test "${enable_DUMBCLOCK+set}" = set; then : 32921 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 32922else 32923 ntp_ok=$ntp_eac 32924 32925fi 32926 32927case "$ntp_ok" in 32928 yes) 32929 ntp_refclock=yes 32930 32931$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 32932 32933 ;; 32934esac 32935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32936$as_echo "$ntp_ok" >&6; } 32937 32938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 32939$as_echo_n "checking Forum Graphic GPS... " >&6; } 32940# Check whether --enable-FG was given. 32941if test "${enable_FG+set}" = set; then : 32942 enableval=$enable_FG; ntp_ok=$enableval 32943else 32944 ntp_ok=$ntp_eac 32945 32946fi 32947 32948case "$ntp_ok" in 32949 yes) 32950 ntp_refclock=yes 32951 32952$as_echo "#define CLOCK_FG 1" >>confdefs.h 32953 32954 ;; 32955esac 32956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32957$as_echo "$ntp_ok" >&6; } 32958 32959# Requires modem control 32960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 32961$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 32962# Check whether --enable-HEATH was given. 32963if test "${enable_HEATH+set}" = set; then : 32964 enableval=$enable_HEATH; ntp_ok=$enableval 32965else 32966 ntp_ok=$ntp_enable_all_modem_control_clocks 32967 32968fi 32969 32970case "$ntp_ok" in 32971 yes) 32972 ntp_refclock=yes 32973 32974$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 32975 32976 ;; 32977esac 32978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32979$as_echo "$ntp_ok" >&6; } 32980 32981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 32982$as_echo_n "checking for hopf serial clock device... " >&6; } 32983# Check whether --enable-HOPFSERIAL was given. 32984if test "${enable_HOPFSERIAL+set}" = set; then : 32985 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 32986else 32987 ntp_ok=$ntp_eac 32988 32989fi 32990 32991case "$ntp_ok" in 32992 yes) 32993 ntp_refclock=yes 32994 32995$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 32996 32997 ;; 32998esac 32999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33000$as_echo "$ntp_ok" >&6; } 33001 33002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 33003$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 33004# Check whether --enable-HOPFPCI was given. 33005if test "${enable_HOPFPCI+set}" = set; then : 33006 enableval=$enable_HOPFPCI; ntp_ok=$enableval 33007else 33008 ntp_ok=$ntp_eac 33009 33010fi 33011 33012case "$ntp_ok" in 33013 yes) 33014 ntp_refclock=yes 33015 33016$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 33017 33018 ;; 33019esac 33020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33021$as_echo "$ntp_ok" >&6; } 33022 33023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 33024$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 33025# Check whether --enable-HPGPS was given. 33026if test "${enable_HPGPS+set}" = set; then : 33027 enableval=$enable_HPGPS; ntp_ok=$enableval 33028else 33029 ntp_ok=$ntp_eac 33030 33031fi 33032 33033case "$ntp_ok" in 33034 yes) 33035 ntp_refclock=yes 33036 33037$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 33038 33039 ;; 33040esac 33041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33042$as_echo "$ntp_ok" >&6; } 33043 33044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 33045$as_echo_n "checking IRIG audio decoder... " >&6; } 33046# Check whether --enable-IRIG was given. 33047if test "${enable_IRIG+set}" = set; then : 33048 enableval=$enable_IRIG; ntp_ok=$enableval 33049else 33050 33051 case "$ntp_eac$ntp_canaudio" in 33052 *no*) ntp_ok=no ;; 33053 *) ntp_ok=yes ;; 33054 esac 33055 33056 33057fi 33058 33059case "$ntp_ok" in 33060 yes) 33061 ntp_refclock=yes 33062 33063$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 33064 33065 ;; 33066esac 33067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33068$as_echo "$ntp_ok" >&6; } 33069case "$ntp_ok$ntp_canaudio" in 33070 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33071$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33072esac 33073 33074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 33075$as_echo_n "checking for JJY receiver... " >&6; } 33076# Check whether --enable-JJY was given. 33077if test "${enable_JJY+set}" = set; then : 33078 enableval=$enable_JJY; ntp_ok=$enableval 33079else 33080 ntp_ok=$ntp_eac 33081 33082fi 33083 33084case "$ntp_ok" in 33085 yes) 33086 ntp_refclock=yes 33087 33088$as_echo "#define CLOCK_JJY 1" >>confdefs.h 33089 33090 ;; 33091esac 33092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33093$as_echo "$ntp_ok" >&6; } 33094 33095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 33096$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 33097# Check whether --enable-JUPITER was given. 33098if test "${enable_JUPITER+set}" = set; then : 33099 enableval=$enable_JUPITER; ntp_ok=$enableval 33100else 33101 ntp_ok=$ntp_eac 33102fi 33103 33104case "$ntp_jupiter_ok" in 33105 no) ntp_ok=no ;; 33106esac 33107case "$ntp_ok" in 33108 yes) 33109 ntp_refclock=yes 33110 33111$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 33112 33113 ;; 33114esac 33115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33116$as_echo "$ntp_ok" >&6; } 33117 33118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 33119$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 33120# Check whether --enable-LEITCH was given. 33121if test "${enable_LEITCH+set}" = set; then : 33122 enableval=$enable_LEITCH; ntp_ok=$enableval 33123else 33124 ntp_ok=$ntp_eac 33125 33126fi 33127 33128case "$ntp_ok" in 33129 yes) 33130 ntp_refclock=yes 33131 33132$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 33133 33134 ;; 33135esac 33136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33137$as_echo "$ntp_ok" >&6; } 33138 33139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 33140$as_echo_n "checking local clock reference... " >&6; } 33141# Check whether --enable-LOCAL-CLOCK was given. 33142if test "${enable_LOCAL_CLOCK+set}" = set; then : 33143 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 33144else 33145 ntp_ok=$ntp_eac 33146 33147fi 33148 33149case "$ntp_ok" in 33150 yes) 33151 ntp_refclock=yes 33152 33153$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 33154 33155 ;; 33156esac 33157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33158$as_echo "$ntp_ok" >&6; } 33159 33160 33161# Not Ultrix 33162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 33163$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 33164# Check whether --enable-MX4200 was given. 33165if test "${enable_MX4200+set}" = set; then : 33166 enableval=$enable_MX4200; ntp_ok=$enableval 33167else 33168 33169 case "$ac_cv_var_ppsclock" in 33170 yes) 33171 ntp_ok=$ntp_eac 33172 ;; 33173 *) 33174 ntp_ok=no 33175 ;; 33176 esac 33177 33178 33179fi 33180 33181case "$ntp_ok" in 33182 yes) 33183 ntp_refclock=yes 33184 33185$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 33186 33187 ;; 33188esac 33189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33190$as_echo "$ntp_ok" >&6; } 33191case "$ntp_ok$host" in 33192 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33193$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33194esac 33195 33196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 33197$as_echo_n "checking for NeoClock4X receiver... " >&6; } 33198# Check whether --enable-NEOCLOCK4X was given. 33199if test "${enable_NEOCLOCK4X+set}" = set; then : 33200 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 33201else 33202 ntp_ok=$ntp_eac 33203 33204fi 33205 33206case "$ntp_ok" in 33207 yes) 33208 ntp_refclock=yes 33209 33210$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 33211 33212 ;; 33213esac 33214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33215$as_echo "$ntp_ok" >&6; } 33216 33217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 33218$as_echo_n "checking NMEA GPS receiver... " >&6; } 33219# Check whether --enable-NMEA was given. 33220if test "${enable_NMEA+set}" = set; then : 33221 enableval=$enable_NMEA; ntp_ok=$enableval 33222else 33223 ntp_ok=$ntp_eac 33224 33225fi 33226 33227case "$ntp_ok" in 33228 yes) 33229 ntp_refclock=yes 33230 33231$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 33232 33233 ;; 33234esac 33235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33236$as_echo "$ntp_ok" >&6; } 33237 33238for ac_func in strtoll 33239do : 33240 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 33241if test "x$ac_cv_func_strtoll" = xyes; then : 33242 cat >>confdefs.h <<_ACEOF 33243#define HAVE_STRTOLL 1 33244_ACEOF 33245 33246fi 33247done 33248 33249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5 33250$as_echo_n "checking for GPSD JSON receiver... " >&6; } 33251# Check whether --enable-GPSD was given. 33252if test "${enable_GPSD+set}" = set; then : 33253 enableval=$enable_GPSD; ntp_ok=$enableval 33254else 33255 case "$ac_cv_func_strtoll" in 33256 yes) ntp_ok=$ntp_eac ;; 33257 *) ntp_ok="no" ;; 33258 esac 33259 33260fi 33261 33262case "$ntp_ok" in 33263 yes) 33264 ntp_refclock=yes 33265 33266$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h 33267 33268 ;; 33269esac 33270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33271$as_echo "$ntp_ok" >&6; } 33272 33273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 33274$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 33275# Check whether --enable-ONCORE was given. 33276if test "${enable_ONCORE+set}" = set; then : 33277 enableval=$enable_ONCORE; ntp_ok=$enableval 33278else 33279 ntp_ok=$ntp_eac 33280 33281fi 33282 33283case "$ntp_oncore_ok" in 33284 no) ntp_ok=no ;; 33285esac 33286case "$ntp_ok" in 33287 yes) 33288 ntp_refclock=yes 33289 33290$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 33291 33292 ;; 33293esac 33294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33295$as_echo "$ntp_ok" >&6; } 33296 33297# Requires modem control 33298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 33299$as_echo_n "checking for Palisade clock... " >&6; } 33300# Check whether --enable-PALISADE was given. 33301if test "${enable_PALISADE+set}" = set; then : 33302 enableval=$enable_PALISADE; ntp_ok=$enableval 33303else 33304 ntp_ok=$ntp_enable_all_modem_control_clocks 33305 33306fi 33307 33308case "$ntp_ok" in 33309 yes) 33310 ntp_refclock=yes 33311 33312$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 33313 33314 ;; 33315esac 33316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33317$as_echo "$ntp_ok" >&6; } 33318 33319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 33320$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 33321# Check whether --enable-PCF was given. 33322if test "${enable_PCF+set}" = set; then : 33323 enableval=$enable_PCF; ntp_ok=$enableval 33324else 33325 ntp_ok=$ntp_eac 33326 33327fi 33328 33329case "$ntp_ok" in 33330 yes) 33331 ntp_refclock=yes 33332 33333$as_echo "#define CLOCK_PCF 1" >>confdefs.h 33334 33335 ;; 33336esac 33337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33338$as_echo "$ntp_ok" >&6; } 33339 33340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 33341$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 33342# Check whether --enable-PST was given. 33343if test "${enable_PST+set}" = set; then : 33344 enableval=$enable_PST; ntp_ok=$enableval 33345else 33346 ntp_ok=$ntp_eac 33347 33348fi 33349 33350case "$ntp_ok" in 33351 yes) 33352 ntp_refclock=yes 33353 33354$as_echo "#define CLOCK_PST 1" >>confdefs.h 33355 33356 ;; 33357esac 33358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33359$as_echo "$ntp_ok" >&6; } 33360 33361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 33362$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 33363# Check whether --enable-RIPENCC was given. 33364if test "${enable_RIPENCC+set}" = set; then : 33365 enableval=$enable_RIPENCC; ntp_ok=$enableval 33366else 33367 ntp_ok=no 33368 33369fi 33370 33371# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 33372case "$ntp_ripe_ncc_ok" in 33373 no) ntp_ok=no ;; 33374esac 33375case "$ntp_ok" in 33376 yes) 33377 ntp_refclock=yes 33378 33379$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 33380 33381 ;; 33382esac 33383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33384$as_echo "$ntp_ok" >&6; } 33385 33386# Danny Meyer says SHM compiles (with a few warnings) under Win32. 33387# For *IX, we need sys/ipc.h and sys/shm.h. 33388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 33389$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 33390# Check whether --enable-SHM was given. 33391if test "${enable_SHM+set}" = set; then : 33392 enableval=$enable_SHM; ntp_ok=$enableval 33393else 33394 33395 case "$ntp_eac$ntp_canshm" in 33396 *no*) ntp_ok=no ;; 33397 *) ntp_ok=yes ;; 33398 esac 33399 33400 33401fi 33402 33403case "$ntp_ok" in 33404 yes) 33405 ntp_refclock=yes 33406 33407$as_echo "#define CLOCK_SHM 1" >>confdefs.h 33408 33409 ;; 33410esac 33411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33412$as_echo "$ntp_ok" >&6; } 33413 33414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 33415$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 33416# Check whether --enable-SPECTRACOM was given. 33417if test "${enable_SPECTRACOM+set}" = set; then : 33418 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 33419else 33420 ntp_ok=$ntp_eac 33421 33422fi 33423 33424case "$ntp_ok" in 33425 yes) 33426 ntp_refclock=yes 33427 33428$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 33429 33430 ;; 33431esac 33432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33433$as_echo "$ntp_ok" >&6; } 33434 33435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 33436$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 33437# Check whether --enable-TPRO was given. 33438if test "${enable_TPRO+set}" = set; then : 33439 enableval=$enable_TPRO; ntp_ok=$enableval 33440else 33441 33442 case "$ac_cv_header_sys_tpro_h" in 33443 yes) 33444 ntp_ok=$ntp_eac 33445 ;; 33446 *) 33447 ntp_ok=no 33448 ;; 33449 esac 33450 33451 33452fi 33453 33454case "$ntp_ok" in 33455 yes) 33456 ntp_refclock=yes 33457 33458$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 33459 33460 ;; 33461esac 33462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33463$as_echo "$ntp_ok" >&6; } 33464case "$ntp_ok$ac_cv_header_sys_tpro" in 33465 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33466$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33467esac 33468 33469# Not on a vax-dec-bsd 33470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 33471$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 33472# Check whether --enable-TRUETIME was given. 33473if test "${enable_TRUETIME+set}" = set; then : 33474 enableval=$enable_TRUETIME; ntp_ok=$enableval 33475else 33476 33477 case "$host" in 33478 vax-dec-bsd) 33479 ntp_ok=no 33480 ;; 33481 *) 33482 ntp_ok=$ntp_eac 33483 ;; 33484 esac 33485 33486 33487fi 33488 33489case "$ntp_ok" in 33490 yes) 33491 ntp_refclock=yes 33492 33493$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 33494 33495 ;; 33496esac 33497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33498$as_echo "$ntp_ok" >&6; } 33499case "$ntp_ok$host" in 33500 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33501$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33502esac 33503 33504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 33505$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 33506# Check whether --enable-TT560 was given. 33507if test "${enable_TT560+set}" = set; then : 33508 enableval=$enable_TT560; ntp_ok=$enableval 33509else 33510 ntp_ok=no 33511 33512fi 33513 33514case "$ntp_ok" in 33515 yes) 33516 ntp_refclock=yes 33517 33518$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 33519 33520 ;; 33521esac 33522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33523$as_echo "$ntp_ok" >&6; } 33524 33525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 33526$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 33527# Check whether --enable-ULINK was given. 33528if test "${enable_ULINK+set}" = set; then : 33529 enableval=$enable_ULINK; ntp_ok=$enableval 33530else 33531 ntp_ok=$ntp_eac 33532 33533fi 33534 33535case "$ntp_ok" in 33536 yes) 33537 ntp_refclock=yes 33538 33539$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 33540 33541 ;; 33542esac 33543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33544$as_echo "$ntp_ok" >&6; } 33545 33546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5 33547$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; } 33548# Check whether --enable-TSYNCPCI was given. 33549if test "${enable_TSYNCPCI+set}" = set; then : 33550 enableval=$enable_TSYNCPCI; ntp_ok=$enableval 33551else 33552 33553 case "$host" in 33554 *-*-*linux*) 33555 ntp_ok=$ntp_eac 33556 ;; 33557 *) 33558 ntp_ok=no 33559 esac 33560 33561 33562fi 33563 33564case "$ntp_ok" in 33565 yes) 33566 ntp_refclock=yes 33567 33568$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h 33569 33570 ;; 33571esac 33572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33573$as_echo "$ntp_ok" >&6; } 33574 33575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 33576$as_echo_n "checking WWV receiver... " >&6; } 33577# Check whether --enable-WWV was given. 33578if test "${enable_WWV+set}" = set; then : 33579 enableval=$enable_WWV; ntp_ok=$enableval 33580else 33581 33582 case "$ntp_eac$ntp_canaudio" in 33583 *no*) ntp_ok=no ;; 33584 *) ntp_ok=yes ;; 33585 esac 33586 33587 33588fi 33589 33590case "$ntp_ok" in 33591 yes) 33592 ntp_refclock=yes 33593 33594$as_echo "#define CLOCK_WWV 1" >>confdefs.h 33595 33596 ;; 33597esac 33598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33599$as_echo "$ntp_ok" >&6; } 33600case "$ntp_ok$ntp_canaudio" in 33601 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33602$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33603esac 33604 33605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 33606$as_echo_n "checking for Zyfer receiver... " >&6; } 33607# Check whether --enable-ZYFER was given. 33608if test "${enable_ZYFER+set}" = set; then : 33609 enableval=$enable_ZYFER; ntp_ok=$enableval 33610else 33611 ntp_ok=$ntp_eac 33612 33613fi 33614 33615case "$ntp_ok" in 33616 yes) 33617 ntp_refclock=yes 33618 33619$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 33620 33621 ;; 33622esac 33623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33624$as_echo "$ntp_ok" >&6; } 33625 33626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 33627$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 33628# Check whether --enable-parse-clocks was given. 33629if test "${enable_parse_clocks+set}" = set; then : 33630 enableval=$enable_parse_clocks; ntp_eapc=$enableval 33631else 33632 33633 case "$ntp_eac" in 33634 yes) ntp_eapc=$ntp_canparse ;; 33635 *) ntp_eapc=no ;; 33636 esac 33637 # Delete the next line one of these days 33638 ntp_eapc=no 33639 33640 33641fi 33642 33643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 33644$as_echo "$ntp_eapc" >&6; } 33645 33646case "$ntp_eac$ntp_eapc$ntp_canparse" in 33647 noyes*) 33648 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 33649 ;; 33650 yesyesno) 33651 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 33652 ;; 33653esac 33654 33655ntp_libparse=no 33656ntp_parseutil=no 33657ntp_rawdcf=no 33658 33659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 33660$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 33661# Check whether --enable-COMPUTIME was given. 33662if test "${enable_COMPUTIME+set}" = set; then : 33663 enableval=$enable_COMPUTIME; ntp_ok=$enableval 33664else 33665 ntp_ok=$ntp_eapc 33666 33667fi 33668 33669case "$ntp_ok" in 33670 yes) 33671 ntp_libparse=yes 33672 ntp_refclock=yes 33673 33674$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 33675 33676 ;; 33677esac 33678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33679$as_echo "$ntp_ok" >&6; } 33680case "$ntp_ok$ntp_canparse" in 33681 yesno) 33682 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33683esac 33684 33685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 33686$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 33687# Check whether --enable-DCF7000 was given. 33688if test "${enable_DCF7000+set}" = set; then : 33689 enableval=$enable_DCF7000; ntp_ok=$enableval 33690else 33691 ntp_ok=$ntp_eapc 33692 33693fi 33694 33695case "$ntp_ok" in 33696 yes) 33697 ntp_libparse=yes 33698 ntp_refclock=yes 33699 33700$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 33701 33702 ;; 33703esac 33704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33705$as_echo "$ntp_ok" >&6; } 33706case "$ntp_ok$ntp_canparse" in 33707 yesno) 33708 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33709esac 33710 33711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 33712$as_echo_n "checking HOPF 6021 clock... " >&6; } 33713# Check whether --enable-HOPF6021 was given. 33714if test "${enable_HOPF6021+set}" = set; then : 33715 enableval=$enable_HOPF6021; ntp_ok=$enableval 33716else 33717 ntp_ok=$ntp_eapc 33718 33719fi 33720 33721case "$ntp_ok" in 33722 yes) 33723 ntp_libparse=yes 33724 ntp_refclock=yes 33725 33726$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 33727 33728 ;; 33729esac 33730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33731$as_echo "$ntp_ok" >&6; } 33732case "$ntp_ok$ntp_canparse" in 33733 yesno) 33734 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33735esac 33736 33737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 33738$as_echo_n "checking Meinberg clocks... " >&6; } 33739# Check whether --enable-MEINBERG was given. 33740if test "${enable_MEINBERG+set}" = set; then : 33741 enableval=$enable_MEINBERG; ntp_ok=$enableval 33742else 33743 ntp_ok=$ntp_eapc 33744 33745fi 33746 33747case "$ntp_ok" in 33748 yes) 33749 ntp_libparse=yes 33750 ntp_refclock=yes 33751 33752$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 33753 33754 ;; 33755esac 33756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33757$as_echo "$ntp_ok" >&6; } 33758case "$ntp_ok$ntp_canparse" in 33759 yesno) 33760 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33761esac 33762 33763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 33764$as_echo_n "checking DCF77 raw time code... " >&6; } 33765# Check whether --enable-RAWDCF was given. 33766if test "${enable_RAWDCF+set}" = set; then : 33767 enableval=$enable_RAWDCF; ntp_ok=$enableval 33768else 33769 ntp_ok=$ntp_eapc 33770 33771fi 33772 33773case "$ntp_ok" in 33774 yes) 33775 ntp_libparse=yes 33776 ntp_parseutil=yes 33777 ntp_refclock=yes 33778 ntp_rawdcf=yes 33779 33780$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 33781 33782 ;; 33783esac 33784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33785$as_echo "$ntp_ok" >&6; } 33786case "$ntp_ok$ntp_canparse" in 33787 yesno) 33788 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33789esac 33790 33791case "$ntp_rawdcf" in 33792 yes) 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 33794$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 33795if ${ntp_cv_rawdcf_parity+:} false; then : 33796 $as_echo_n "(cached) " >&6 33797else 33798 33799 ans=no 33800 case "$host" in 33801 *-*-*linux*) 33802 ans=yes 33803 ;; 33804 esac 33805 ntp_cv_rawdcf_parity=$ans 33806 33807 33808fi 33809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5 33810$as_echo "$ntp_cv_rawdcf_parity" >&6; } 33811 case "$ntp_cv_rawdcf_parity" in 33812 yes) 33813 33814$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 33815 ;; 33816 esac 33817esac 33818 33819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 33820$as_echo_n "checking RCC 8000 clock... " >&6; } 33821# Check whether --enable-RCC8000 was given. 33822if test "${enable_RCC8000+set}" = set; then : 33823 enableval=$enable_RCC8000; ntp_ok=$enableval 33824else 33825 ntp_ok=$ntp_eapc 33826 33827fi 33828 33829case "$ntp_ok" in 33830 yes) 33831 ntp_libparse=yes 33832 ntp_refclock=yes 33833 33834$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 33835 33836 ;; 33837esac 33838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33839$as_echo "$ntp_ok" >&6; } 33840case "$ntp_ok$ntp_canparse" in 33841 yesno) 33842 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33843esac 33844 33845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 33846$as_echo_n "checking Schmid DCF77 clock... " >&6; } 33847# Check whether --enable-SCHMID was given. 33848if test "${enable_SCHMID+set}" = set; then : 33849 enableval=$enable_SCHMID; ntp_ok=$enableval 33850else 33851 ntp_ok=$ntp_eapc 33852 33853fi 33854 33855case "$ntp_ok" in 33856 yes) 33857 ntp_libparse=yes 33858 ntp_refclock=yes 33859 33860$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 33861 33862 ;; 33863esac 33864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33865$as_echo "$ntp_ok" >&6; } 33866case "$ntp_ok$ntp_canparse" in 33867 yesno) 33868 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33869esac 33870 33871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 33872$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 33873# Check whether --enable-TRIMTAIP was given. 33874if test "${enable_TRIMTAIP+set}" = set; then : 33875 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 33876else 33877 ntp_ok=$ntp_eapc 33878 33879fi 33880 33881case "$ntp_ok" in 33882 yes) 33883 ntp_libparse=yes 33884 ntp_refclock=yes 33885 33886$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 33887 33888 ;; 33889esac 33890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33891$as_echo "$ntp_ok" >&6; } 33892case "$ntp_ok$ntp_canparse" in 33893 yesno) 33894 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33895esac 33896 33897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 33898$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 33899# Check whether --enable-TRIMTSIP was given. 33900if test "${enable_TRIMTSIP+set}" = set; then : 33901 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 33902else 33903 ntp_ok=$ntp_eapc 33904 33905fi 33906 33907case "$ntp_ok" in 33908 yes) 33909 ntp_libparse=yes 33910 ntp_refclock=yes 33911 33912$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 33913 33914 ;; 33915esac 33916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33917$as_echo "$ntp_ok" >&6; } 33918case "$ntp_ok$ntp_canparse" in 33919 yesno) 33920 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33921esac 33922 33923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 33924$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 33925# Check whether --enable-WHARTON was given. 33926if test "${enable_WHARTON+set}" = set; then : 33927 enableval=$enable_WHARTON; ntp_ok=$enableval 33928else 33929 ntp_ok=$ntp_eapc 33930 33931fi 33932 33933case "$ntp_ok" in 33934 yes) 33935 ntp_libparse=yes 33936 ntp_refclock=yes 33937 33938$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 33939 33940 ;; 33941esac 33942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33943$as_echo "$ntp_ok" >&6; } 33944case "$ntp_ok$ntp_canparse" in 33945 yesno) 33946 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33947esac 33948 33949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 33950$as_echo_n "checking VARITEXT clock... " >&6; } 33951# Check whether --enable-VARITEXT was given. 33952if test "${enable_VARITEXT+set}" = set; then : 33953 enableval=$enable_VARITEXT; ntp_ok=$enableval 33954else 33955 ntp_ok=$ntp_eapc 33956 33957fi 33958 33959case "$ntp_ok" in 33960 yes) 33961 ntp_libparse=yes 33962 ntp_refclock=yes 33963 33964$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 33965 33966 ;; 33967esac 33968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33969$as_echo "$ntp_ok" >&6; } 33970case "$ntp_ok$ntp_canparse" in 33971 yesno) 33972 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33973esac 33974 33975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5 33976$as_echo_n "checking SEL240X clock... " >&6; } 33977# Check whether --enable-SEL240X was given. 33978if test "${enable_SEL240X+set}" = set; then : 33979 enableval=$enable_SEL240X; ntp_ok=$enableval 33980else 33981 ntp_ok=$ntp_eapc 33982fi 33983 33984if test "$ntp_ok" = "yes"; then 33985 ntp_libparse=yes 33986 ntp_refclock=yes 33987 33988$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h 33989 33990fi 33991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33992$as_echo "$ntp_ok" >&6; } 33993case "$ntp_ok$ntp_canparse" in 33994 yesno) 33995 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33996 ;; 33997esac 33998 33999 34000 34001 34002 34003 34004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 34005$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 34006ans=no 34007case "$ntp_libparse" in 34008 yes) 34009 ans=yes 34010 34011$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 34012 34013 LIBPARSE=../libparse/libparse.a 34014 MAKE_LIBPARSE=libparse.a 34015 # HMS: check_y2k trips the 34 year problem now... 34016 false && MAKE_CHECK_Y2K=check_y2k 34017esac 34018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34019$as_echo "$ans" >&6; } 34020 34021 34022 34023 34024VER_SUFFIX= 34025 34026 34027 34028 34029# Check whether --with-crypto was given. 34030if test "${with_crypto+set}" = set; then : 34031 withval=$with_crypto; 34032fi 34033 34034 34035# Check whether --with-openssl-libdir was given. 34036if test "${with_openssl_libdir+set}" = set; then : 34037 withval=$with_openssl_libdir; 34038fi 34039 34040 34041# Check whether --with-openssl-incdir was given. 34042if test "${with_openssl_incdir+set}" = set; then : 34043 withval=$with_openssl_incdir; 34044fi 34045 34046 34047# Check whether --with-rpath was given. 34048if test "${with_rpath+set}" = set; then : 34049 withval=$with_rpath; 34050fi 34051 34052ntp_openssl=no 34053ntp_openssl_from_pkg_config=no 34054with_crypto=${with_crypto:-openssl,libcrypto} 34055case "$with_crypto" in 34056 yes) 34057 with_crypto=openssl,libcrypto 34058esac 34059case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 34060 no:*) ;; 34061 *:notempty:notgiven:notgiven) 34062 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 34064$as_echo_n "checking pkg-config for $pkg... " >&6; } 34065 if $PKG_CONFIG --exists $pkg ; then 34066 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 34067 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 34068 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 34069 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 34070 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 34071 VER_SUFFIX=o 34072 ntp_openssl=yes 34073 ntp_openssl_from_pkg_config=yes 34074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34075$as_echo "yes" >&6; } 34076 34077 break 34078 fi 34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34080$as_echo "no" >&6; } 34081 done 34082esac 34083case "$with_crypto:$ntp_openssl" in 34084 no:*) ;; 34085 *:no) 34086 need_dash_r= 34087 need_dash_Wlrpath= 34088 case "${with_rpath-notgiven}" in 34089 yes) 34090 # Lame - what to do if we need -Wl... but not -R? 34091 need_dash_r=1 34092 ;; 34093 notgiven) 34094 case "$host" in 34095 *-*-linux*) 34096 # This may really only be true for gcc 34097 need_dash_Wlrpath=1 34098 ;; 34099 *-*-netbsd*) 34100 need_dash_r=1 34101 ;; 34102 *-*-solaris*) 34103 need_dash_r=1 34104 ;; 34105 esac 34106 ;; 34107 esac 34108 34109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 34110$as_echo_n "checking for openssl library directory... " >&6; } 34111 with_openssl_libdir=${with_openssl_libdir-notgiven} 34112 case "$with_openssl_libdir" in 34113 notgiven) 34114 case "$build" in 34115 $host) 34116 with_openssl_libdir=default 34117 ;; 34118 *) 34119 with_openssl_libdir=no 34120 ;; 34121 esac 34122 esac 34123 case "$with_openssl_libdir" in 34124 default) 34125 # Look in: 34126 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 34127 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 34128 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 34129 esac 34130 case "$with_openssl_libdir" in 34131 no) 34132 ;; 34133 *) # Look for libcrypto.a and libssl.a: 34134 for i in $with_openssl_libdir no 34135 do 34136 case "$host" in 34137 *-*-darwin*) 34138 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 34139 ;; 34140 *) 34141 test -f $i/libcrypto.so -a -f $i/libssl.so && break 34142 test -f $i/libcrypto.a -a -f $i/libssl.a && break 34143 ;; 34144 esac 34145 done 34146 openssl_libdir=$i 34147 ;; 34148 esac 34149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 34150$as_echo "$openssl_libdir" >&6; } 34151 case "$openssl_libdir" in 34152 no) 34153 openssl_libdir= 34154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 34155$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 34156 esac 34157 34158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 34159$as_echo_n "checking for openssl include directory... " >&6; } 34160 with_openssl_incdir=${with_openssl_incdir-notgiven} 34161 case "$with_openssl_incdir" in 34162 notgiven) 34163 # Look in: 34164 with_openssl_incdir="/usr/include /usr/sfw/include" 34165 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 34166 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 34167 esac 34168 case "$with_openssl_incdir" in 34169 no) 34170 ;; 34171 *) # look for openssl/evp.h: 34172 for i in $with_openssl_incdir no 34173 do 34174 test -f $i/openssl/evp.h && break 34175 done 34176 openssl_incdir=$i 34177 ;; 34178 esac 34179 { i=; unset i;} 34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 34181$as_echo "$openssl_incdir" >&6; } 34182 case "$openssl_incdir" in 34183 no) 34184 openssl_incdir= 34185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 34186$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 34187 esac 34188 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 34189 then 34190 ntp_openssl=no 34191 else 34192 ntp_openssl=yes 34193 VER_SUFFIX=o 34194 fi 34195 case "$ntp_openssl" in 34196 yes) 34197 # We have OpenSSL inc/lib dirs - use them. 34198 case "$openssl_incdir" in 34199 /usr/include) 34200 ;; 34201 *) 34202 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 34203 ;; 34204 esac 34205 case "$openssl_libdir" in 34206 /usr/lib) 34207 ;; 34208 *) 34209 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 34210 case "$need_dash_r" in 34211 1) 34212 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 34213 esac 34214 case "$need_dash_Wlrpath" in 34215 1) 34216 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 34217 esac 34218 ;; 34219 esac 34220 LDADD_NTP="$LDADD_NTP -lcrypto" 34221 esac 34222esac 34223 34224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 34225$as_echo_n "checking if we will use crypto... " >&6; } 34226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 34227$as_echo "$ntp_openssl" >&6; } 34228 34229case "$ntp_openssl" in 34230 yes) 34231 34232$as_echo "#define OPENSSL /**/" >>confdefs.h 34233 34234 case "$VER_SUFFIX" in 34235 *o*) ;; 34236 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 34237 esac 34238 ;; 34239esac 34240 34241NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 34242CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 34243NTPO_SAVED_LIBS="$LIBS" 34244 34245# 34246# check for linking with -lcrypto failure, and try -lcrypto -lz. 34247# Helps m68k-atari-mint 34248# 34249case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 34250 yes:no) 34251 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 34252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 34253$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 34254if ${ntp_cv_bare_lcrypto+:} false; then : 34255 $as_echo_n "(cached) " >&6 34256else 34257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34258/* end confdefs.h. */ 34259 34260 #include "openssl/err.h" 34261 #include "openssl/evp.h" 34262 34263int 34264main () 34265{ 34266 34267 ERR_load_crypto_strings(); 34268 OpenSSL_add_all_algorithms(); 34269 34270 34271 ; 34272 return 0; 34273} 34274_ACEOF 34275if ac_fn_c_try_link "$LINENO"; then : 34276 ntp_cv_bare_lcrypto=yes 34277else 34278 ntp_cv_bare_lcrypto=no 34279 34280fi 34281rm -f core conftest.err conftest.$ac_objext \ 34282 conftest$ac_exeext conftest.$ac_ext 34283 34284fi 34285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 34286$as_echo "$ntp_cv_bare_lcrypto" >&6; } 34287 case "$ntp_cv_bare_lcrypto" in 34288 no) 34289 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 34290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 34291$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 34292if ${ntp_cv_lcrypto_lz+:} false; then : 34293 $as_echo_n "(cached) " >&6 34294else 34295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34296/* end confdefs.h. */ 34297 34298 #include "openssl/err.h" 34299 #include "openssl/evp.h" 34300 34301int 34302main () 34303{ 34304 34305 ERR_load_crypto_strings(); 34306 OpenSSL_add_all_algorithms(); 34307 34308 34309 ; 34310 return 0; 34311} 34312_ACEOF 34313if ac_fn_c_try_link "$LINENO"; then : 34314 ntp_cv_lcrypto_lz=yes 34315else 34316 ntp_cv_lcrypto_lz=no 34317 34318fi 34319rm -f core conftest.err conftest.$ac_objext \ 34320 conftest$ac_exeext conftest.$ac_ext 34321 34322fi 34323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 34324$as_echo "$ntp_cv_lcrypto_lz" >&6; } 34325 case "$ntp_cv_lcrypto_lz" in 34326 yes) 34327 LDADD_NTP="$LDADD_NTP -lz" 34328 esac 34329 esac 34330esac 34331 34332# 34333# Older OpenSSL headers have a number of callback prototypes inside 34334# other function prototypes which trigger copious warnings with gcc's 34335# -Wstrict-prototypes, which is included in -Wall. 34336# 34337# An example: 34338# 34339# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 34340# int (*cb)(), int sgckey); 34341# ^^^^^^^^^^^ 34342# 34343# 34344# 34345openssl_triggers_warnings=unknown 34346NTPO_SAVED_CFLAGS="$CFLAGS" 34347 34348case "$ntp_openssl:$GCC" in 34349 yes:yes) 34350 CFLAGS="$CFLAGS -Werror" 34351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34352/* end confdefs.h. */ 34353 34354 34355int 34356main () 34357{ 34358 34359 /* see if -Werror breaks gcc */ 34360 34361 34362 ; 34363 return 0; 34364} 34365_ACEOF 34366if ac_fn_c_try_compile "$LINENO"; then : 34367 gcc_handles_Werror=yes 34368else 34369 gcc_handles_Werror=no 34370 34371fi 34372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34373 case "$gcc_handles_Werror" in 34374 no) 34375 # if this gcc doesn't do -Werror go ahead and use 34376 # -Wstrict-prototypes. 34377 openssl_triggers_warnings=yes 34378 ;; 34379 yes) 34380 CFLAGS="$CFLAGS -Wstrict-prototypes" 34381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34382/* end confdefs.h. */ 34383 34384 #include "openssl/asn1_mac.h" 34385 #include "openssl/bn.h" 34386 #include "openssl/err.h" 34387 #include "openssl/evp.h" 34388 #include "openssl/pem.h" 34389 #include "openssl/rand.h" 34390 #include "openssl/x509v3.h" 34391 34392int 34393main () 34394{ 34395 34396 /* empty body */ 34397 34398 34399 ; 34400 return 0; 34401} 34402_ACEOF 34403if ac_fn_c_try_compile "$LINENO"; then : 34404 openssl_triggers_warnings=no 34405else 34406 openssl_triggers_warnings=yes 34407 34408fi 34409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34410 esac 34411 case "$openssl_triggers_warnings" in 34412 yes) 34413 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 34414 ;; 34415 *) 34416 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 34417 esac 34418 ;; 34419 no:yes) 34420 # gcc without OpenSSL 34421 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 34422esac 34423 34424# Because we don't want -Werror for the EVP_MD_do_all_sorted check 34425CFLAGS="$NTPO_SAVED_CFLAGS" 34426 34427case "$ntp_openssl" in 34428 yes) 34429 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 34430 for ac_func in EVP_MD_do_all_sorted 34431do : 34432 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 34433if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 34434 cat >>confdefs.h <<_ACEOF 34435#define HAVE_EVP_MD_DO_ALL_SORTED 1 34436_ACEOF 34437 34438fi 34439done 34440 34441 ;; 34442esac 34443 34444CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 34445LIBS="$NTPO_SAVED_LIBS" 34446{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 34447{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 34448{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 34449{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 34450{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 34451 34452 34453 34454 34455 34456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5 34457$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; } 34458# Check whether --enable-openssl-random was given. 34459if test "${enable_openssl_random+set}" = set; then : 34460 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval 34461else 34462 ntp_use_openssl_random=yes 34463 34464fi 34465 34466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5 34467$as_echo "$ntp_use_openssl_random" >&6; } 34468 34469# The following might need extra libraries 34470NTPO_SAVED_LIBS="$LIBS" 34471LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 34472for ac_func in RAND_bytes RAND_poll 34473do : 34474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 34475ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 34476if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 34477 cat >>confdefs.h <<_ACEOF 34478#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 34479_ACEOF 34480 34481fi 34482done 34483 34484LIBS="$NTPO_SAVED_LIBS" 34485case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in 34486 yesyesyes) 34487 34488$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h 34489 34490 ;; 34491 *) ntp_use_openssl_random=no ;; 34492esac 34493 34494 34495 34496# if we are using OpenSSL (--with-crypto), by default Autokey is enabled 34497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5 34498$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; } 34499# Check whether --enable-autokey was given. 34500if test "${enable_autokey+set}" = set; then : 34501 enableval=$enable_autokey; ntp_autokey=$enableval 34502else 34503 ntp_autokey=$ntp_openssl 34504 34505fi 34506 34507case "$ntp_autokey" in 34508 no) 34509 ;; 34510 *) 34511 case "$ntp_openssl" in 34512 no) 34513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5 34514$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;} 34515 ntp_autokey=no 34516 ;; 34517 *) 34518 34519$as_echo "#define AUTOKEY 1" >>confdefs.h 34520 34521 ntp_autokey=yes 34522 ;; 34523 esac 34524 ;; 34525esac 34526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5 34527$as_echo "$ntp_autokey" >&6; } 34528 34529 34530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 34531$as_echo_n "checking if we want to run check-layout... " >&6; } 34532case "$cross_compiling$PATH_PERL" in 34533 no/*) 34534 MAKE_CHECK_LAYOUT=check-layout 34535 ans=yes 34536 ;; 34537 *) 34538 ans=no 34539 ;; 34540esac 34541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34542$as_echo "$ans" >&6; } 34543 34544 34545 34546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 34547$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 34548ans=no 34549case "$ntp_parseutil" in 34550 yes) 34551 case "$host" in 34552 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 34553 ans="dcfd testdcf" 34554 DCFD=dcfd 34555 TESTDCF=testdcf 34556 esac 34557 ;; 34558esac 34559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34560$as_echo "$ans" >&6; } 34561 34562 34563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 34564$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 34565ans=no 34566case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 34567 yesyes) 34568 case "$host" in 34569 sparc-*-sunos4*) 34570 case "$ntp_cv_var_kernel_pll" in 34571 yes) 34572 34573$as_echo "#define PPS_SYNC 1" >>confdefs.h 34574 34575 ;; 34576 esac 34577 ans=parsestreams 34578 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 34579 ;; 34580 sparc-*-solaris2*) 34581 ans=parsesolaris 34582 MAKE_PARSEKMODULE=parse 34583 for ac_header in strings.h 34584do : 34585 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 34586if test "x$ac_cv_header_strings_h" = xyes; then : 34587 cat >>confdefs.h <<_ACEOF 34588#define HAVE_STRINGS_H 1 34589_ACEOF 34590 34591fi 34592 34593done 34594 34595 ;; 34596 esac 34597 ;; 34598esac 34599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34600$as_echo "$ans" >&6; } 34601 34602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 34603$as_echo_n "checking if we need basic refclock support... " >&6; } 34604case "$ntp_refclock" in 34605 yes) 34606 34607$as_echo "#define REFCLOCK 1" >>confdefs.h 34608 34609 ;; 34610esac 34611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 34612$as_echo "$ntp_refclock" >&6; } 34613 34614PROPDELAY=propdelay 34615 34616 34617 34618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 34619$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 34620case "$host" in 34621 *-*-hpux[56789]*) 34622 ans=yes 34623 ;; 34624 *) ans=no 34625 ;; 34626esac 34627case "$ans" in 34628 yes) 34629 MAKE_ADJTIMED=adjtimed 34630 34631$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 34632 34633 ;; 34634 *) ADJTIMED_DB= 34635 ADJTIMED_DL= 34636 ADJTIMED_DS= 34637 ADJTIMED_MS= 34638 ;; 34639esac 34640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34641$as_echo "$ans" >&6; } 34642 34643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 34644$as_echo_n "checking if we want QNX adjtime support... " >&6; } 34645case "$host" in 34646 *-*-qnx*) 34647 ans=yes 34648 ;; 34649 *) ans=no 34650 ;; 34651esac 34652case "$ans" in 34653 yes) 34654 34655$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 34656 34657 ;; 34658esac 34659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34660$as_echo "$ans" >&6; } 34661 34662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 34663$as_echo_n "checking if we can read kmem... " >&6; } 34664 34665# the default is to enable it if the system has the capability 34666 34667case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 34668 *yes*) 34669 ans=yes 34670 ;; 34671 *) ans=no 34672 ;; 34673esac 34674 34675case "$host" in 34676 *-*-domainos) # Won't be found... 34677 ans=no 34678 ;; 34679 *-*-hpux*) 34680 #ans=no 34681 ;; 34682 *-*-irix[456]*) 34683 ans=no 34684 ;; 34685 *-*-*linux*) 34686 ans=no 34687 ;; 34688 *-*-winnt3.5) 34689 ans=no 34690 ;; 34691 *-*-unicosmp*) 34692 ans=no 34693 ;; 34694esac 34695 34696# --enable-kmem / --disable-kmem controls if present 34697# Check whether --enable-kmem was given. 34698if test "${enable_kmem+set}" = set; then : 34699 enableval=$enable_kmem; ans=$enableval 34700 34701fi 34702 34703 34704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34705$as_echo "$ans" >&6; } 34706 34707case "$ans" in 34708 yes) 34709 can_kmem=yes 34710 ;; 34711 *) 34712 can_kmem=no 34713 34714$as_echo "#define NOKMEM 1" >>confdefs.h 34715 34716esac 34717 34718 34719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 34720$as_echo_n "checking if adjtime is accurate... " >&6; } 34721 34722# target-dependent defaults 34723 34724case "$host" in 34725 i386-sequent-ptx*) 34726 ans=no 34727 ;; 34728 i386-unknown-osf1*) 34729 ans=yes 34730 ;; 34731 mips-sgi-irix[456]*) 34732 ans=yes 34733 ;; 34734 *-fujitsu-uxp*) 34735 ans=yes 34736 ;; 34737 *-ibm-aix[4-9]*) 34738 # XXX only verified thru AIX6. 34739 ans=yes 34740 ;; 34741 *-*-*linux*) 34742 ans=yes 34743 ;; 34744 *-*-solaris2.[01]) 34745 ans=no 34746 ;; 34747 *-*-solaris2*) 34748 ans=yes 34749 ;; 34750 *-*-unicosmp*) 34751 ans=yes 34752 ;; 34753 *) ans=no 34754 ;; 34755esac 34756 34757# --enable-accurate-adjtime / --disable-accurate-adjtime 34758# override the default 34759# Check whether --enable-accurate-adjtime was given. 34760if test "${enable_accurate_adjtime+set}" = set; then : 34761 enableval=$enable_accurate_adjtime; ans=$enableval 34762 34763fi 34764 34765 34766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34767$as_echo "$ans" >&6; } 34768 34769case "$ans" in 34770 yes) 34771 34772$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 34773 34774 adjtime_is_accurate=yes 34775 ;; 34776 *) 34777 adjtime_is_accurate=no 34778 ;; 34779esac 34780 34781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 34782$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 34783if ${ntp_cv_nlist_tick+:} false; then : 34784 $as_echo_n "(cached) " >&6 34785else 34786 34787 ans=_tick 34788 case "$host" in 34789 m68*-hp-hpux*) # HP9000/300? 34790 ans=_old_tick 34791 ;; 34792 *-apple-aux[23]*) 34793 ans=tick 34794 ;; 34795 *-hp-hpux*) 34796 ans=old_tick 34797 ;; 34798 *-ibm-aix[3-9]*) 34799 # XXX only verified thru AIX6. 34800 ans=no 34801 ;; 34802 *-*-mpeix*) 34803 ans=no 34804 ;; 34805 *-*-ptx*) 34806 ans=tick 34807 ;; 34808 *-*-sco3.2v[45]*) 34809 ans=no 34810 ;; 34811 *-*-solaris2*) 34812 ans=nsec_per_tick 34813 ;; 34814 *-*-sysv4*) 34815 ans=tick 34816 ;; 34817 esac 34818 ntp_cv_nlist_tick=$ans 34819 34820 34821fi 34822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5 34823$as_echo "$ntp_cv_nlist_tick" >&6; } 34824case "$ntp_cv_nlist_tick" in 34825 ''|no) 34826 ;; # HMS: I think we can only get 'no' here... 34827 *) 34828 34829cat >>confdefs.h <<_ACEOF 34830#define K_TICK_NAME "$ntp_cv_nlist_tick" 34831_ACEOF 34832 34833esac 34834 34835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 34836$as_echo_n "checking for the units of 'tick'... " >&6; } 34837if ${ntp_cv_tick_nano+:} false; then : 34838 $as_echo_n "(cached) " >&6 34839else 34840 34841 ans=usec 34842 case "$host" in 34843 *-*-solaris2*) 34844 ans=nsec 34845 ;; 34846 esac 34847 ntp_cv_tick_nano=$ans 34848 34849 34850fi 34851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5 34852$as_echo "$ntp_cv_tick_nano" >&6; } 34853case "$ntp_cv_tick_nano" in 34854 nsec) 34855 34856$as_echo "#define TICK_NANO 1" >>confdefs.h 34857 34858esac 34859 34860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 34861$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 34862if ${ntp_cv_nlist_tickadj+:} false; then : 34863 $as_echo_n "(cached) " >&6 34864else 34865 34866 ans=_tickadj 34867 case "$host" in 34868 m68*-hp-hpux*) # HP9000/300? 34869 ans=_tickadj 34870 ;; 34871 *-apple-aux[23]*) 34872 ans=tickadj 34873 ;; 34874 *-hp-hpux10*) 34875 ans=no 34876 ;; 34877 *-hp-hpux9*) 34878 ans=no 34879 ;; 34880 *-hp-hpux*) 34881 ans=tickadj 34882 ;; 34883 *-*-aix*) 34884 ans=tickadj 34885 ;; 34886 *-*-mpeix*) 34887 ans=no 34888 ;; 34889 *-*-ptx*) 34890 ans=tickadj 34891 ;; 34892 *-*-sco3.2v4*) 34893 ans=no 34894 ;; 34895 *-*-sco3.2v5.0*) 34896 ans=clock_drift 34897 ;; 34898 *-*-solaris2*) 34899 ans=no # hrestime_adj 34900 ;; 34901 *-*-sysv4*) 34902 ans=tickadj 34903 ;; 34904 esac 34905 ntp_cv_nlist_tickadj=$ans 34906 34907 34908fi 34909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5 34910$as_echo "$ntp_cv_nlist_tickadj" >&6; } 34911case "$ntp_cv_nlist_tickadj" in 34912 ''|no) 34913 ;; # HMS: I think we can only get 'no' here... 34914 *) 34915 34916cat >>confdefs.h <<_ACEOF 34917#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj" 34918_ACEOF 34919 34920esac 34921 34922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 34923$as_echo_n "checking for the units of 'tickadj'... " >&6; } 34924if ${ntp_cv_tickadj_nano+:} false; then : 34925 $as_echo_n "(cached) " >&6 34926else 34927 34928 ans=usec 34929 case "$host" in 34930 *-*-solaris2*) 34931 ans=nsec 34932 ;; 34933 esac 34934 ntp_cv_tickadj_nano=$ans 34935 34936 34937fi 34938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5 34939$as_echo "$ntp_cv_tickadj_nano" >&6; } 34940case "$ntp_cv_tickadj_nano" in 34941 nsec) 34942 34943$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 34944 34945esac 34946 34947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 34948$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 34949if ${ntp_cv_nlist_dosynctodr+:} false; then : 34950 $as_echo_n "(cached) " >&6 34951else 34952 34953 case "$host" in 34954 *-apple-aux[23]*) 34955 ans=no 34956 ;; 34957 *-sni-sysv*) 34958 ans=dosynctodr 34959 ;; 34960 *-stratus-vos) 34961 ans=no 34962 ;; 34963 *-*-aix*) 34964 ans=dosynctodr 34965 ;; 34966 *-*-hpux*) 34967 ans=no 34968 ;; 34969 *-*-mpeix*) 34970 ans=no 34971 ;; 34972 *-*-nextstep*) 34973 ans=_dosynctodr 34974 ;; 34975 *-*-ptx*) 34976 ans=doresettodr 34977 ;; 34978 *-*-sco3.2v4*) 34979 ans=no 34980 ;; 34981 *-*-sco3.2v5*) 34982 ans=track_rtc 34983 ;; 34984 *-*-solaris2*) 34985 ans=dosynctodr 34986 ;; 34987 *-*-sysv4*) 34988 ans=doresettodr 34989 ;; 34990 *) 34991 ans=_dosynctodr 34992 ;; 34993 esac 34994 ntp_cv_nlist_dosynctodr=$ans 34995 34996 34997fi 34998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5 34999$as_echo "$ntp_cv_nlist_dosynctodr" >&6; } 35000case "$ntp_cv_nlist_dosynctodr" in 35001 no) 35002 ;; 35003 *) 35004 35005cat >>confdefs.h <<_ACEOF 35006#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr" 35007_ACEOF 35008 35009 ;; 35010esac 35011 35012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 35013$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 35014if ${ntp_cv_nlist_noprintf+:} false; then : 35015 $as_echo_n "(cached) " >&6 35016else 35017 35018 case "$host" in 35019 *-apple-aux[23]*) 35020 ans=no 35021 ;; 35022 *-sni-sysv*) 35023 ans=noprintf 35024 ;; 35025 *-stratus-vos) 35026 ans=no 35027 ;; 35028 *-*-aix*) 35029 ans=noprintf 35030 ;; 35031 *-*-hpux*) 35032 ans=no 35033 ;; 35034 *-*-mpeix*) 35035 ans=no 35036 ;; 35037 *-*-ptx*) 35038 ans=noprintf 35039 ;; 35040 *-*-nextstep*) 35041 ans=_noprintf 35042 ;; 35043 *-*-solaris2*) 35044 ans=noprintf 35045 ;; 35046 *-*-sysv4*) 35047 ans=noprintf 35048 ;; 35049 *) 35050 ans=_noprintf 35051 ;; 35052 esac 35053 ntp_cv_nlist_noprintf=$ans 35054 35055 35056fi 35057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5 35058$as_echo "$ntp_cv_nlist_noprintf" >&6; } 35059case "$ntp_cv_nlist_noprintf" in 35060 no) 35061 ;; 35062 *) 35063 35064cat >>confdefs.h <<_ACEOF 35065#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf" 35066_ACEOF 35067 35068 ;; 35069esac 35070 35071 35072 35073 35074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 35075$as_echo_n "checking for a default value for 'tick'... " >&6; } 35076 35077# target-dependent default for tick 35078 35079case "$host" in 35080 *-*-pc-cygwin*) 35081 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5 35082 ;; 35083 *-univel-sysv*) 35084 ans=10000 35085 ;; 35086 *-*-irix*) 35087 ans=10000 35088 ;; 35089 *-*-*linux*) 35090 ans=txc.tick 35091 ;; 35092 *-*-mpeix*) 35093 ans=no 35094 ;; 35095 *-*-winnt3.5) 35096 ans='(every / 10)' 35097 ;; 35098 *-*-unicosmp*) 35099 ans=10000 35100 ;; 35101 *) 35102 ans='1000000L/hz' 35103 ;; 35104esac 35105 35106# Check whether --enable-tick was given. 35107if test "${enable_tick+set}" = set; then : 35108 enableval=$enable_tick; ans=$enableval 35109 35110fi 35111 35112 35113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35114$as_echo "$ans" >&6; } 35115 35116case "$ans" in 35117 ''|no) 35118 ;; # HMS: I think we can only get 'no' here... 35119 *) 35120 35121cat >>confdefs.h <<_ACEOF 35122#define PRESET_TICK $ans 35123_ACEOF 35124 35125esac 35126 35127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 35128$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 35129 35130# target-specific default 35131ans='500/hz' 35132case "$host" in 35133 *-fujitsu-uxp*) 35134 case "$adjtime_is_accurate" in 35135 yes) 35136 ans='tick/16' 35137 esac 35138 ;; 35139 *-univel-sysv*) 35140 ans=80 35141 ;; 35142 *-*-aix*) 35143 case "$can_kmem" in 35144 no) 35145 ans=1000 35146 ;; 35147 esac 35148 ;; 35149 *-*-domainos) # Skippy: won't be found... 35150 case "$can_kmem" in 35151 no) 35152 ans=668 35153 ;; 35154 esac 35155 ;; 35156 *-*-hpux*) 35157 case "$adjtime_is_accurate" in 35158 yes) 35159 ans='tick/16' 35160 ;; 35161 esac 35162 ;; 35163 *-*-irix*) 35164 ans=150 35165 ;; 35166 *-*-mpeix*) 35167 ans=no 35168 ;; 35169 *-*-sco3.2v5.0*) 35170 ans=10000L/hz 35171 ;; 35172 *-*-winnt3.5) 35173 ans=50 35174 ;; 35175 *-*-unicosmp*) 35176 ans=150 35177 ;; 35178esac 35179 35180# Check whether --enable-tickadj was given. 35181if test "${enable_tickadj+set}" = set; then : 35182 enableval=$enable_tickadj; ans=$enableval 35183 35184fi 35185 35186 35187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35188$as_echo "$ans" >&6; } 35189 35190default_tickadj=$ans 35191 35192case "$default_tickadj" in 35193 ''|no) 35194 ;; # HMS: I think we can only get 'no' here... 35195 *) 35196 35197cat >>confdefs.h <<_ACEOF 35198#define PRESET_TICKADJ $default_tickadj 35199_ACEOF 35200 ;; 35201esac 35202 35203# Newer versions of ReliantUNIX round adjtime() values down to 35204# 1/100s (system tick). Sigh ... 35205# Unfortunately, there is no easy way to know if particular release 35206# has this "feature" or any obvious way to test for it. 35207case "$host" in 35208 mips-sni-sysv4*) 35209 35210$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 35211 35212esac 35213 35214case "$host" in 35215 *-*-sco3.2v5*) 35216 35217$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 35218 35219esac 35220 35221ntp_cv_make_tickadj=yes 35222case "$can_kmem$ac_cv_var_tick$default_tickadj" in 35223 nonono) # Don't read KMEM, no presets. Bogus. 35224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 35225$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 35226 ntp_cv_make_tickadj=no 35227 ;; 35228 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 35230$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 35231 ntp_cv_make_tickadj=no 35232 ;; 35233 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 35234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 35235$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 35236 ntp_cv_make_tickadj=no 35237 ;; 35238 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 35239 ;; 35240 yesnono) # Read KMEM, no presets. Cool. 35241 ;; 35242 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 35243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 35244$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 35245 ;; 35246 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 35247 ;; 35248 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 35249 ;; 35250 *) # Generally bogus. 35251 as_fn_error $? "This shouldn't happen." "$LINENO" 5 35252 ;; 35253esac 35254 35255 35256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 35257$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 35258if ${ac_cv_make_ntptime+:} false; then : 35259 $as_echo_n "(cached) " >&6 35260else 35261 case "$host" in 35262 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in 35263 yesyes) 35264 ans=yes 35265 ;; 35266 *) 35267 ans=no 35268 ;; 35269 esac 35270 ;; 35271esac 35272ac_cv_make_ntptime=$ans 35273fi 35274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 35275$as_echo "$ac_cv_make_ntptime" >&6; } 35276case "$ac_cv_make_ntptime" in 35277 yes) 35278 MAKE_NTPTIME=ntptime 35279 ;; 35280 *) 35281 NTPTIME_DB= 35282 NTPTIME_DL= 35283 NTPTIME_DS= 35284 NTPTIME_MS= 35285 ;; 35286esac 35287 35288 35289case "$host" in 35290 mips-sni-sysv4*) 35291 # tickadj is pretty useless on newer versions of ReliantUNIX 35292 # Do not bother 35293 ntp_cv_make_tickadj=no 35294 ;; 35295 *-*-irix*) 35296 ntp_cv_make_tickadj=no 35297 ;; 35298 *-*-solaris2*) 35299 # DLM says tickadj is a no-no starting with solaris2.5 35300 case "$host" in 35301 *-*-solaris2.1[0-9]*) 35302 ntp_cv_make_tickadj=no 35303 ;; 35304 *-*-solaris2.[0-4]*) ;; 35305 *) ntp_cv_make_tickadj=no ;; 35306 esac 35307 ;; 35308 *-*-unicosmp*) 35309 ntp_cv_make_tickadj=no 35310 ;; 35311esac 35312 35313# 35314# Despite all the above, we always make tickadj. Setting 35315# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false 35316# report that the configuration variable was cached. It may 35317# be better to simply remove the hunk above, I did not want 35318# to remove it if there is hope it will be used again. 35319# 35320{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;} 35321 35322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 35323$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 35324if ${ntp_cv_make_tickadj+:} false; then : 35325 $as_echo_n "(cached) " >&6 35326else 35327 ntp_cv_make_tickadj=yes 35328 35329fi 35330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5 35331$as_echo "$ntp_cv_make_tickadj" >&6; } 35332case "$ntp_cv_make_tickadj" in 35333 yes) 35334 MAKE_TICKADJ=tickadj 35335 ;; 35336 *) 35337 CALC_TICKADJ_DB= 35338 CALC_TICKADJ_DL= 35339 CALC_TICKADJ_DS= 35340 CALC_TICKADJ_MS= 35341 TICKADJ_DB= 35342 TICKADJ_DL= 35343 TICKADJ_DS= 35344 TICKADJ_MS= 35345 ;; 35346esac 35347 35348 35349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 35350$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 35351if ${ntp_cv_make_timetrim+:} false; then : 35352 $as_echo_n "(cached) " >&6 35353else 35354 35355 case "$host" in 35356 *-*-irix*) 35357 ntp_cv_make_timetrim=yes 35358 ;; 35359 *-*-unicosmp*) 35360 ntp_cv_make_timetrim=yes 35361 ;; 35362 *) 35363 ntp_cv_make_timetrim=no 35364 ;; 35365 esac 35366 35367 35368fi 35369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5 35370$as_echo "$ntp_cv_make_timetrim" >&6; } 35371case "$ntp_cv_make_timetrim" in 35372 yes) 35373 MAKE_TIMETRIM=timetrim 35374 ;; 35375 *) TIMETRIM_DB= 35376 TIMETRIM_DL= 35377 TIMETRIM_DS= 35378 TIMETRIM_MS= 35379 ;; 35380esac 35381 35382 35383 35384 35385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 35386$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 35387# Check whether --enable-simulator was given. 35388if test "${enable_simulator+set}" = set; then : 35389 enableval=$enable_simulator; ans=$enableval 35390else 35391 ans=no 35392 35393fi 35394 35395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35396$as_echo "$ans" >&6; } 35397case "$ans" in 35398 yes) 35399 MAKE_NTPDSIM=ntpdsim 35400 MAKE_LIBNTPSIM=libntpsim.a 35401 ;; 35402 *) 35403 NTPDSIM_DB= 35404 NTPDSIM_DL= 35405 NTPDSIM_DS= 35406 NTPDSIM_MS= 35407 ;; 35408esac 35409 35410case "$build" in 35411 $host) 35412 ;; 35413 *) case "$host" in 35414 *-*-vxworks*) 35415 LDFLAGS="$LDFLAGS -r" 35416 ;; 35417 esac 35418 ;; 35419esac 35420 35421 35422 35423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 35424$as_echo_n "checking if sntp will be built... " >&6; } 35425 35426# Check whether --with-sntp was given. 35427if test "${with_sntp+set}" = set; then : 35428 withval=$with_sntp; 35429else 35430 with_sntp="${withsntp=yes}" 35431 35432fi 35433 35434case "$with_sntp" in 35435 no) 35436 SNTP= 35437 ;; 35438 *) 35439 SNTP=sntp 35440 ;; 35441esac 35442 35443 if test -n "$SNTP"; then 35444 BUILD_SNTP_TRUE= 35445 BUILD_SNTP_FALSE='#' 35446else 35447 BUILD_SNTP_TRUE='#' 35448 BUILD_SNTP_FALSE= 35449fi 35450 35451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 35452$as_echo "$with_sntp" >&6; } 35453 35454 35455 35456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 35457$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 35458 35459# Check whether --with-ntpsnmpd was given. 35460if test "${with_ntpsnmpd+set}" = set; then : 35461 withval=$with_ntpsnmpd; ans=$withval 35462else 35463 35464 case "$PATH_NET_SNMP_CONFIG" in 35465 /*) ans=yes ;; 35466 *) ans=no ;; 35467 esac 35468 35469 35470fi 35471 35472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35473$as_echo "$ans" >&6; } 35474case "$ans" in 35475 yes) 35476 case "$PATH_NET_SNMP_CONFIG" in 35477 /*) 35478 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 35479 # Bug 2815. This is a bit of a hack, but it works... 35480 case "$ntp_cv_net_snmp_version" in 35481 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'` 35482 ;; 35483 esac 35484 35485 # HMS: we really want to separate CPPFLAGS and CFLAGS 35486 foo=`$PATH_NET_SNMP_CONFIG --cflags` 35487 SNMP_CPPFLAGS= 35488 SNMP_CFLAGS= 35489 for i in $foo; do 35490 case "$i" in 35491 -D*|-U*|-I*) 35492 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 35493 ;; 35494 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 35495 ;; 35496 esac 35497 done 35498 35499 35500 35501 save_CFLAGS=$CFLAGS 35502 save_CPPFLAGS=$CPPFLAGS 35503 save_LIBS=$LIBS 35504 CFLAGS=$SNMP_CFLAGS 35505 CPPFLAGS=$SNMP_CPPFLAGS 35506 35507 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" 35508if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 35509 MAKE_NTPSNMPD=ntpsnmpd 35510else 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 35512$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 35513 35514fi 35515 35516 35517 35518 # Do this last, as we're messing up LIBS. 35519 # check -lnetsnmp for netsnmp_daemonize 35520 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 35521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 35522$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 35523if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then : 35524 $as_echo_n "(cached) " >&6 35525else 35526 ac_check_lib_save_LIBS=$LIBS 35527LIBS="-lnetsnmp $LIBS" 35528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35529/* end confdefs.h. */ 35530 35531/* Override any GCC internal prototype to avoid an error. 35532 Use char because int might match the return type of a GCC 35533 builtin and then its argument prototype would still apply. */ 35534#ifdef __cplusplus 35535extern "C" 35536#endif 35537char netsnmp_daemonize (); 35538int 35539main () 35540{ 35541return netsnmp_daemonize (); 35542 ; 35543 return 0; 35544} 35545_ACEOF 35546if ac_fn_c_try_link "$LINENO"; then : 35547 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 35548else 35549 ac_cv_lib_netsnmp_netsnmp_daemonize=no 35550fi 35551rm -f core conftest.err conftest.$ac_objext \ 35552 conftest$ac_exeext conftest.$ac_ext 35553LIBS=$ac_check_lib_save_LIBS 35554fi 35555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 35556$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 35557if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then : 35558 ans=yes 35559else 35560 ans=no 35561 35562fi 35563 35564 case "$ans" in 35565 no) 35566 35567$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 35568 35569 esac 35570 35571 CFLAGS=$save_CFLAGS 35572 { save_CFLAGS=; unset save_CFLAGS;} 35573 CPPFLAGS=$save_CPPFLAGS 35574 { save_CPPFLAGS=; unset save_CPPFLAGS;} 35575 LIBS=$save_LIBS 35576 { save_LIBS=; unset save_LIBS;} 35577 ;; 35578 *) 35579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5 35580$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;} 35581 ;; 35582 esac 35583 ;; 35584esac 35585 35586 35587case "$MAKE_NTPSNMPD" in 35588 '') 35589 NTPSNMPD_DB= 35590 NTPSNMPD_DL= 35591 NTPSNMPD_DS= 35592 NTPSNMPD_MS= 35593 ;; 35594esac 35595 35596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 35597$as_echo_n "checking if we should always slew the time... " >&6; } 35598 35599# target-specific defaults 35600 35601case "$host" in 35602 *-apple-aux[23]*) 35603 ans=yes 35604 ;; 35605 *-*-bsdi[012]*) 35606 ans=no 35607 ;; 35608 *-*-bsdi*) 35609 ans=yes 35610 ;; 35611 *-*-openvms*) # HMS: won't be found 35612 ans=yes 35613 ;; 35614 *) ans=no 35615 ;; 35616esac 35617 35618# --enable-slew-always / --disable-slew-always overrides default 35619 35620# Check whether --enable-slew-always was given. 35621if test "${enable_slew_always+set}" = set; then : 35622 enableval=$enable_slew_always; ans=$enableval 35623 35624fi 35625 35626 35627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35628$as_echo "$ans" >&6; } 35629 35630case "$ans" in 35631 yes) 35632 35633$as_echo "#define SLEWALWAYS 1" >>confdefs.h 35634 35635esac 35636 35637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 35638$as_echo_n "checking if we should step and slew the time... " >&6; } 35639 35640case "$host" in 35641 *-sni-sysv*) 35642 ans=yes 35643 ;; 35644 *-stratus-vos) 35645 ans=no 35646 ;; 35647 *-univel-sysv*) 35648 ans=no 35649 ;; 35650 *-*-ptx*) 35651 ans=yes 35652 ;; 35653 *-*-solaris2.1[0-9]*) 35654 ans=no 35655 ;; 35656 *-*-solaris2.[012]*) 35657 ans=yes 35658 ;; 35659 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 35660 ans=yes 35661 ;; 35662 *) ans=no 35663 ;; 35664esac 35665 35666# Check whether --enable-step-slew was given. 35667if test "${enable_step_slew+set}" = set; then : 35668 enableval=$enable_step_slew; ans=$enableval 35669 35670fi 35671 35672 35673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35674$as_echo "$ans" >&6; } 35675 35676case "$ans" in 35677 yes) 35678 35679$as_echo "#define STEP_SLEW 1" >>confdefs.h 35680 35681esac 35682 35683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 35684$as_echo_n "checking if ntpdate should step the time... " >&6; } 35685 35686case "$host" in 35687 *-apple-aux[23]*) 35688 ans=yes 35689 ;; 35690 *) ans=no 35691 ;; 35692esac 35693 35694# Check whether --enable-ntpdate-step was given. 35695if test "${enable_ntpdate_step+set}" = set; then : 35696 enableval=$enable_ntpdate_step; ans=$enableval 35697 35698fi 35699 35700 35701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35702$as_echo "$ans" >&6; } 35703 35704case "$ans" in 35705 yes) 35706 35707$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 35708 35709esac 35710 35711 35712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 35713$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 35714 35715case "$host" in 35716 *-*-nextstep*) 35717 ans=yes 35718 ;; 35719 *-*-openvms*) # HMS: won't be found 35720 ans=yes 35721 ;; 35722 *) 35723 ans=no 35724 ;; 35725esac 35726 35727# Check whether --enable-hourly-todr-sync was given. 35728if test "${enable_hourly_todr_sync+set}" = set; then : 35729 enableval=$enable_hourly_todr_sync; ans=$enableval 35730 35731fi 35732 35733 35734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35735$as_echo "$ans" >&6; } 35736 35737case "$ac_cv_var_sync_todr" in 35738 yes) 35739 35740$as_echo "#define DOSYNCTODR 1" >>confdefs.h 35741 ;; 35742esac 35743 35744 35745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 35746$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 35747 35748case "$host" in 35749 *-*-solaris2.6) 35750 unamev=`uname -v` 35751 case "$unamev" in 35752 Generic_105181-*) 35753 old_IFS="$IFS" 35754 IFS="-" 35755 set $unamev 35756 IFS="$old_IFS" 35757 if test "$2" -ge 17 35758 then 35759 # Generic_105181-17 and higher 35760 ans=no 35761 else 35762 ans=yes 35763 fi 35764 ;; 35765 *) 35766 ans=yes 35767 ;; 35768 esac 35769 ;; 35770 *-*-solaris2.7) 35771 unamev=`uname -v` 35772 case "$unamev" in 35773 Generic_106541-*) 35774 old_IFS="$IFS" 35775 IFS="-" 35776 set $unamev 35777 IFS="$old_IFS" 35778 if test "$2" -ge 07 35779 then 35780 # Generic_106541-07 and higher 35781 ans=no 35782 else 35783 ans=yes 35784 fi 35785 ;; 35786 *) 35787 ans=yes 35788 ;; 35789 esac 35790 ;; 35791 *) 35792 ans=no 35793 ;; 35794esac 35795 35796# Check whether --enable-kernel-fll-bug was given. 35797if test "${enable_kernel_fll_bug+set}" = set; then : 35798 enableval=$enable_kernel_fll_bug; ans=$enableval 35799 35800fi 35801 35802 35803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35804$as_echo "$ans" >&6; } 35805 35806case "$ans" in 35807 yes) 35808 35809$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 35810 35811esac 35812 35813 35814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 35815$as_echo_n "checking if we want new session key behavior... " >&6; } 35816# Check whether --enable-bug1243-fix was given. 35817if test "${enable_bug1243_fix+set}" = set; then : 35818 enableval=$enable_bug1243_fix; ans=$enableval 35819else 35820 ans=yes 35821 35822fi 35823 35824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35825$as_echo "$ans" >&6; } 35826case "$ans" in 35827 no) 35828 35829$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 35830 35831esac 35832 35833 35834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 35835$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 35836 35837case "$host" in 35838 *-*-solaris2.[89]) 35839 ans=yes 35840 ;; 35841 *-*-solaris2.1[0-9]*) 35842 ans=yes 35843 ;; 35844 *) ans=no 35845 ;; 35846esac 35847 35848# Check whether --enable-irig-sawtooth was given. 35849if test "${enable_irig_sawtooth+set}" = set; then : 35850 enableval=$enable_irig_sawtooth; ans=$enableval 35851 35852fi 35853 35854 35855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35856$as_echo "$ans" >&6; } 35857 35858case "$ans" in 35859 yes) 35860 35861$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 35862 35863esac 35864 35865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 35866$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 35867# Check whether --enable-nist was given. 35868if test "${enable_nist+set}" = set; then : 35869 enableval=$enable_nist; ans=$enableval 35870else 35871 ans=no 35872 35873fi 35874 35875 35876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35877$as_echo "$ans" >&6; } 35878 35879case "$ans" in 35880 yes) 35881 35882$as_echo "#define LOCKCLOCK 1" >>confdefs.h 35883 ;; 35884esac 35885 35886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 35887$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 35888# Check whether --enable-ntp-signd was given. 35889if test "${enable_ntp_signd+set}" = set; then : 35890 enableval=$enable_ntp_signd; ans=$enableval 35891else 35892 ans=no 35893 35894fi 35895 35896 35897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35898$as_echo "$ans" >&6; } 35899 35900case "$ans" in 35901 no) 35902 ntp_signd_path= 35903 ;; 35904 yes) 35905 ntp_signd_path=/var/run/ntp_signd 35906 ;; 35907 *) 35908 ntp_signd_path="$ans" 35909esac 35910 35911case "$ntp_signd_path" in 35912 '') 35913 ;; 35914 *) 35915 35916$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h 35917 35918 35919cat >>confdefs.h <<_ACEOF 35920#define NTP_SIGND_PATH "$ntp_signd_path" 35921_ACEOF 35922 35923 ;; 35924esac 35925 35926for ac_header in libscf.h 35927do : 35928 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 35929if test "x$ac_cv_header_libscf_h" = xyes; then : 35930 cat >>confdefs.h <<_ACEOF 35931#define HAVE_LIBSCF_H 1 35932_ACEOF 35933 35934fi 35935 35936done 35937 35938LSCF= 35939case "$ac_cv_header_libscf_h" in 35940 yes) 35941 LSCF='-lscf' 35942esac 35943 35944 35945 35946 35947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 35948$as_echo_n "checking for struct sockaddr_storage... " >&6; } 35949if ${ntp_cv_sockaddr_storage+:} false; then : 35950 $as_echo_n "(cached) " >&6 35951else 35952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35953/* end confdefs.h. */ 35954 35955 #ifdef HAVE_SYS_TYPES_H 35956 # include <sys/types.h> 35957 #endif 35958 #ifdef HAVE_SYS_SOCKET_H 35959 # include <sys/socket.h> 35960 #endif 35961 #ifdef HAVE_NETINET_IN_H 35962 # include <netinet/in.h> 35963 #endif 35964 35965int 35966main () 35967{ 35968 35969 struct sockaddr_storage n; 35970 35971 35972 ; 35973 return 0; 35974} 35975_ACEOF 35976if ac_fn_c_try_compile "$LINENO"; then : 35977 ntp_cv_sockaddr_storage=yes 35978else 35979 ntp_cv_sockaddr_storage=no 35980 35981fi 35982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35983 35984fi 35985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 35986$as_echo "$ntp_cv_sockaddr_storage" >&6; } 35987case "$ntp_cv_sockaddr_storage" in 35988 yes) 35989 35990$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 35991 35992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 35993$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 35994if ${ntp_cv_have___ss_family+:} false; then : 35995 $as_echo_n "(cached) " >&6 35996else 35997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35998/* end confdefs.h. */ 35999 36000 #ifdef HAVE_SYS_TYPES_H 36001 # include <sys/types.h> 36002 #endif 36003 #ifdef HAVE_SYS_SOCKET_H 36004 # include <sys/socket.h> 36005 #endif 36006 #ifdef HAVE_NETINET_IN_H 36007 # include <netinet/in.h> 36008 #endif 36009 36010int 36011main () 36012{ 36013 36014 struct sockaddr_storage s; 36015 s.__ss_family = 1; 36016 36017 36018 ; 36019 return 0; 36020} 36021_ACEOF 36022if ac_fn_c_try_compile "$LINENO"; then : 36023 ntp_cv_have___ss_family=yes 36024else 36025 ntp_cv_have___ss_family=no 36026 36027fi 36028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36029 36030fi 36031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 36032$as_echo "$ntp_cv_have___ss_family" >&6; } 36033 case "$ntp_cv_have___ss_family" in 36034 yes) 36035 36036$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 36037 36038 esac 36039 36040esac 36041 36042 36043# 36044# Look for in_port_t. 36045# 36046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 36047$as_echo_n "checking for in_port_t... " >&6; } 36048if ${isc_cv_have_in_port_t+:} false; then : 36049 $as_echo_n "(cached) " >&6 36050else 36051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36052/* end confdefs.h. */ 36053 36054 #include <sys/types.h> 36055 #include <netinet/in.h> 36056 36057int 36058main () 36059{ 36060 36061 in_port_t port = 25; 36062 return (0); 36063 36064 36065 ; 36066 return 0; 36067} 36068_ACEOF 36069if ac_fn_c_try_compile "$LINENO"; then : 36070 isc_cv_have_in_port_t=yes 36071else 36072 isc_cv_have_in_port_t=no 36073 36074fi 36075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36076 36077fi 36078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 36079$as_echo "$isc_cv_have_in_port_t" >&6; } 36080case "$isc_cv_have_in_port_t" in 36081 no) 36082 36083$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 36084 36085esac 36086 36087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 36088$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 36089if ${ntp_cv_getsockname_socklen_type+:} false; then : 36090 $as_echo_n "(cached) " >&6 36091else 36092 36093 getsockname_socklen_type_found=no 36094 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 36095 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 36096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36097/* end confdefs.h. */ 36098 36099 #ifdef HAVE_SYS_TYPES_H 36100 # include <sys/types.h> 36101 #endif 36102 #ifdef HAVE_SYS_SOCKET_H 36103 # include <sys/socket.h> 36104 #endif 36105 36106int 36107main () 36108{ 36109 36110 extern 36111 getsockname(int, $getsockname_arg2, 36112 $ntp_cv_getsockname_socklen_type *); 36113 36114 36115 ; 36116 return 0; 36117} 36118_ACEOF 36119if ac_fn_c_try_compile "$LINENO"; then : 36120 getsockname_socklen_type_found=yes ; break 2 36121fi 36122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36123 done 36124 done 36125 case "$getsockname_socklen_type_found" in 36126 no) 36127 ntp_cv_getsockname_socklen_type='socklen_t' 36128 esac 36129 { getsockname_arg2=; unset getsockname_arg2;} 36130 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 36131 36132 36133fi 36134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 36135$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 36136 36137cat >>confdefs.h <<_ACEOF 36138#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 36139_ACEOF 36140 36141 36142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 36143$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 36144if ${isc_cv_platform_havesalen+:} false; then : 36145 $as_echo_n "(cached) " >&6 36146else 36147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36148/* end confdefs.h. */ 36149 36150 #include <sys/types.h> 36151 #include <sys/socket.h> 36152 36153int 36154main () 36155{ 36156 36157 extern struct sockaddr *ps; 36158 return ps->sa_len; 36159 36160 36161 ; 36162 return 0; 36163} 36164_ACEOF 36165if ac_fn_c_try_compile "$LINENO"; then : 36166 isc_cv_platform_havesalen=yes 36167else 36168 isc_cv_platform_havesalen=no 36169 36170fi 36171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36172 36173fi 36174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 36175$as_echo "$isc_cv_platform_havesalen" >&6; } 36176case "$isc_cv_platform_havesalen" in 36177 yes) 36178 36179$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 36180 36181esac 36182 36183# Check whether --enable-ipv6 was given. 36184if test "${enable_ipv6+set}" = set; then : 36185 enableval=$enable_ipv6; 36186fi 36187 36188 36189case "$enable_ipv6" in 36190 yes|''|autodetect) 36191 case "$host" in 36192 powerpc-ibm-aix4*) 36193 ;; 36194 *) 36195 36196$as_echo "#define WANT_IPV6 1" >>confdefs.h 36197 36198 ;; 36199 esac 36200 ;; 36201 no) 36202 ;; 36203esac 36204 36205 36206case "$host" in 36207 *-*-darwin*) 36208 36209$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 36210 36211esac 36212 36213 36214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 36215$as_echo_n "checking for IPv6 structures... " >&6; } 36216if ${isc_cv_found_ipv6+:} false; then : 36217 $as_echo_n "(cached) " >&6 36218else 36219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36220/* end confdefs.h. */ 36221 36222 #include <sys/types.h> 36223 #include <sys/socket.h> 36224 #include <netinet/in.h> 36225 36226int 36227main () 36228{ 36229 36230 struct sockaddr_in6 sin6; 36231 36232 36233 ; 36234 return 0; 36235} 36236_ACEOF 36237if ac_fn_c_try_compile "$LINENO"; then : 36238 isc_cv_found_ipv6=yes 36239else 36240 isc_cv_found_ipv6=no 36241 36242fi 36243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36244 36245fi 36246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 36247$as_echo "$isc_cv_found_ipv6" >&6; } 36248 36249# 36250# See whether IPv6 support is provided via a Kame add-on. 36251# This is done before other IPv6 linking tests so LIBS is properly set. 36252# 36253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 36254$as_echo_n "checking for Kame IPv6 support... " >&6; } 36255 36256# Check whether --with-kame was given. 36257if test "${with_kame+set}" = set; then : 36258 withval=$with_kame; use_kame="$withval" 36259else 36260 use_kame="no" 36261 36262fi 36263 36264case "$use_kame" in 36265 no) 36266 ;; 36267 yes) 36268 kame_path=/usr/local/v6 36269 ;; 36270 *) 36271 kame_path="$use_kame" 36272 ;; 36273esac 36274case "$use_kame" in 36275 no) 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36277$as_echo "no" >&6; } 36278 ;; 36279 *) 36280 if test -f $kame_path/lib/libinet6.a; then 36281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 36282$as_echo "$kame_path/lib/libinet6.a" >&6; } 36283 LIBS="-L$kame_path/lib -linet6 $LIBS" 36284 else 36285 as_fn_error $? "$kame_path/lib/libinet6.a not found. 36286 36287Please choose the proper path with the following command: 36288 36289 configure --with-kame=PATH 36290" "$LINENO" 5 36291 fi 36292 ;; 36293esac 36294 36295# 36296# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 36297# Including it on Kame-using platforms is very bad, though, because 36298# Kame uses #error against direct inclusion. So include it on only 36299# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 36300# This is done before the in6_pktinfo check because that's what 36301# netinet6/in6.h is needed for. 36302# 36303case "$host" in 36304 *-bsdi4.[01]*) 36305 36306$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 36307 36308 isc_netinet6in6_hack="#include <netinet6/in6.h>" 36309 ;; 36310 *) 36311 isc_netinet6in6_hack="" 36312 ;; 36313esac 36314 36315# 36316# This is similar to the netinet6/in6.h issue. 36317# 36318case "$host" in 36319 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 36320 36321$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 36322 36323 isc_netinetin6_hack="#include <netinet/in6.h>" 36324 ;; 36325 *) 36326 isc_netinetin6_hack="" 36327 ;; 36328esac 36329 36330 36331case "$isc_cv_found_ipv6" in 36332 yes) 36333 36334$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 36335 36336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 36337$as_echo_n "checking for in6_pktinfo... " >&6; } 36338if ${isc_cv_have_in6_pktinfo+:} false; then : 36339 $as_echo_n "(cached) " >&6 36340else 36341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36342/* end confdefs.h. */ 36343 36344 #include <sys/types.h> 36345 #include <sys/socket.h> 36346 #include <netinet/in.h> 36347 $isc_netinetin6_hack 36348 $isc_netinet6in6_hack 36349 36350int 36351main () 36352{ 36353 36354 struct in6_pktinfo xyzzy; 36355 36356 36357 ; 36358 return 0; 36359} 36360_ACEOF 36361if ac_fn_c_try_compile "$LINENO"; then : 36362 isc_cv_have_in6_pktinfo=yes 36363else 36364 isc_cv_have_in6_pktinfo=no 36365 36366fi 36367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36368 36369fi 36370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 36371$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 36372 case "$isc_cv_have_in6_pktinfo" in 36373 yes) 36374 36375$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 36376 36377 esac 36378 36379 36380 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 36381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 36382$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 36383if ${isc_cv_have_sin6_scope_id+:} false; then : 36384 $as_echo_n "(cached) " >&6 36385else 36386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36387/* end confdefs.h. */ 36388 36389 #include <sys/types.h> 36390 #include <sys/socket.h> 36391 #include <netinet/in.h> 36392 $isc_netinetin6_hack 36393 $isc_netinet6in6_hack 36394 36395int 36396main () 36397{ 36398 36399 struct sockaddr_in6 xyzzy; 36400 xyzzy.sin6_scope_id = 0; 36401 36402 36403 ; 36404 return 0; 36405} 36406_ACEOF 36407if ac_fn_c_try_compile "$LINENO"; then : 36408 isc_cv_have_sin6_scope_id=yes 36409else 36410 isc_cv_have_sin6_scope_id=no 36411 36412fi 36413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36414 36415fi 36416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 36417$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 36418 36419 case "$isc_cv_have_sin6_scope_id" in 36420 yes) 36421 36422$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 36423 36424 esac 36425esac 36426 36427 36428# We need this check run even without isc_cv_found_ipv6=yes 36429 36430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 36431$as_echo_n "checking for in6addr_any... " >&6; } 36432if ${isc_cv_in6addr_any_links+:} false; then : 36433 $as_echo_n "(cached) " >&6 36434else 36435 36436 SAVED_LIBS="$LIBS" 36437 LIBS="$LDADD_LIBNTP $LIBS" 36438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36439/* end confdefs.h. */ 36440$ac_includes_default 36441 #include <sys/socket.h> 36442 #include <netinet/in.h> 36443 $isc_netinetin6_hack 36444 $isc_netinet6in6_hack 36445 36446int 36447main () 36448{ 36449 36450 printf("%x", in6addr_any.s6_addr[15]); 36451 36452 36453 ; 36454 return 0; 36455} 36456_ACEOF 36457if ac_fn_c_try_link "$LINENO"; then : 36458 isc_cv_in6addr_any_links=yes 36459else 36460 isc_cv_in6addr_any_links=no 36461 36462fi 36463rm -f core conftest.err conftest.$ac_objext \ 36464 conftest$ac_exeext conftest.$ac_ext 36465 LIBS="$SAVED_LIBS" 36466 { SAVED_LIBS=; unset SAVED_LIBS;} 36467 36468 36469fi 36470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 36471$as_echo "$isc_cv_in6addr_any_links" >&6; } 36472 36473case "$isc_cv_in6addr_any_links" in 36474 no) 36475 36476$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 36477 36478esac 36479 36480 36481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 36482$as_echo_n "checking for struct if_laddrconf... " >&6; } 36483if ${isc_cv_struct_if_laddrconf+:} false; then : 36484 $as_echo_n "(cached) " >&6 36485else 36486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36487/* end confdefs.h. */ 36488 36489 #include <sys/types.h> 36490 #include <net/if6.h> 36491 36492int 36493main () 36494{ 36495 36496 struct if_laddrconf a; 36497 36498 36499 ; 36500 return 0; 36501} 36502_ACEOF 36503if ac_fn_c_try_compile "$LINENO"; then : 36504 isc_cv_struct_if_laddrconf=yes 36505else 36506 isc_cv_struct_if_laddrconf=no 36507 36508fi 36509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36510 36511fi 36512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 36513$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 36514 36515case "$isc_cv_struct_if_laddrconf" in 36516 yes) 36517 36518$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 36519 36520esac 36521 36522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 36523$as_echo_n "checking for struct if_laddrreq... " >&6; } 36524if ${isc_cv_struct_if_laddrreq+:} false; then : 36525 $as_echo_n "(cached) " >&6 36526else 36527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36528/* end confdefs.h. */ 36529 36530 #include <sys/types.h> 36531 #include <net/if6.h> 36532 36533int 36534main () 36535{ 36536 36537 struct if_laddrreq a; 36538 36539 36540 ; 36541 return 0; 36542} 36543_ACEOF 36544if ac_fn_c_try_compile "$LINENO"; then : 36545 isc_cv_struct_if_laddrreq=yes 36546else 36547 isc_cv_struct_if_laddrreq=no 36548 36549fi 36550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36551 36552fi 36553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 36554$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 36555 36556case "$isc_cv_struct_if_laddrreq" in 36557 yes) 36558 36559$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 36560 36561esac 36562 36563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 36564$as_echo_n "checking for multicast IP support... " >&6; } 36565if ${ntp_cv_multicast+:} false; then : 36566 $as_echo_n "(cached) " >&6 36567else 36568 36569 ntp_cv_multicast=no 36570 case "$host" in 36571 i386-sequent-sysv4) 36572 ;; 36573 *) 36574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36575/* end confdefs.h. */ 36576 36577 #ifdef HAVE_NETINET_IN_H 36578 # include <netinet/in.h> 36579 #endif 36580 36581int 36582main () 36583{ 36584 36585 struct ip_mreq ipmr; 36586 ipmr.imr_interface.s_addr = 0; 36587 36588 36589 ; 36590 return 0; 36591} 36592_ACEOF 36593if ac_fn_c_try_compile "$LINENO"; then : 36594 ntp_cv_multicast=yes 36595fi 36596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36597 ;; 36598 esac 36599 36600 36601fi 36602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 36603$as_echo "$ntp_cv_multicast" >&6; } 36604case "$ntp_cv_multicast" in 36605 yes) 36606 36607$as_echo "#define MCAST 1" >>confdefs.h 36608 36609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 36610$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 36611if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 36612 $as_echo_n "(cached) " >&6 36613else 36614 36615 case "$host" in 36616 *-*-netbsd*|*-*-*linux*) 36617 ntp_cv_typeof_ip_multicast_loop=u_int 36618 ;; 36619 *) 36620 ntp_cv_typeof_ip_multicast_loop=u_char 36621 ;; 36622 esac 36623 36624 36625fi 36626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 36627$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 36628 36629cat >>confdefs.h <<_ACEOF 36630#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 36631_ACEOF 36632 36633esac 36634 36635# Check whether --enable-getifaddrs was given. 36636if test "${enable_getifaddrs+set}" = set; then : 36637 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 36638else 36639 want_getifaddrs="yes" 36640 36641fi 36642 36643 36644case $want_getifaddrs in 36645 glibc) 36646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 36647$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 36648esac 36649case $want_getifaddrs in 36650 no) 36651 ;; 36652 *) 36653 SAVED_LIBS="$LIBS" 36654 LIBS="$LDADD_LIBNTP $LIBS" 36655 for ac_func in getifaddrs 36656do : 36657 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 36658if test "x$ac_cv_func_getifaddrs" = xyes; then : 36659 cat >>confdefs.h <<_ACEOF 36660#define HAVE_GETIFADDRS 1 36661_ACEOF 36662 36663fi 36664done 36665 36666 LIBS="$SAVED_LIBS" 36667 { SAVED_LIBS=; unset SAVED_LIBS;} 36668 ;; 36669esac 36670 36671# 36672# Check for if_nametoindex() for IPv6 scoped addresses support 36673# 36674case "$host" in 36675 *-hp-hpux*) 36676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 36677$as_echo_n "checking for library containing if_nametoindex... " >&6; } 36678if ${ac_cv_search_if_nametoindex+:} false; then : 36679 $as_echo_n "(cached) " >&6 36680else 36681 ac_func_search_save_LIBS=$LIBS 36682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36683/* end confdefs.h. */ 36684 36685/* Override any GCC internal prototype to avoid an error. 36686 Use char because int might match the return type of a GCC 36687 builtin and then its argument prototype would still apply. */ 36688#ifdef __cplusplus 36689extern "C" 36690#endif 36691char if_nametoindex (); 36692int 36693main () 36694{ 36695return if_nametoindex (); 36696 ; 36697 return 0; 36698} 36699_ACEOF 36700for ac_lib in '' ipv6; do 36701 if test -z "$ac_lib"; then 36702 ac_res="none required" 36703 else 36704 ac_res=-l$ac_lib 36705 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 36706 fi 36707 if ac_fn_c_try_link "$LINENO"; then : 36708 ac_cv_search_if_nametoindex=$ac_res 36709fi 36710rm -f core conftest.err conftest.$ac_objext \ 36711 conftest$ac_exeext 36712 if ${ac_cv_search_if_nametoindex+:} false; then : 36713 break 36714fi 36715done 36716if ${ac_cv_search_if_nametoindex+:} false; then : 36717 36718else 36719 ac_cv_search_if_nametoindex=no 36720fi 36721rm conftest.$ac_ext 36722LIBS=$ac_func_search_save_LIBS 36723fi 36724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 36725$as_echo "$ac_cv_search_if_nametoindex" >&6; } 36726ac_res=$ac_cv_search_if_nametoindex 36727if test "$ac_res" != no; then : 36728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 36729 36730fi 36731 36732esac 36733SAVED_LIBS="$LIBS" 36734LIBS="$LDADD_LIBNTP $LIBS" 36735for ac_func in if_nametoindex 36736do : 36737 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 36738if test "x$ac_cv_func_if_nametoindex" = xyes; then : 36739 cat >>confdefs.h <<_ACEOF 36740#define HAVE_IF_NAMETOINDEX 1 36741_ACEOF 36742 36743fi 36744done 36745 36746LIBS="$SAVED_LIBS" 36747{ SAVED_LIBS=; unset SAVED_LIBS;} 36748case "$ac_cv_func_if_nametoindex" in 36749 yes) 36750 36751$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 36752 36753esac 36754 36755 36756 36757 36758# 36759# Look for a sysctl call to get the list of network interfaces. 36760# 36761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 36762$as_echo_n "checking for interface list sysctl... " >&6; } 36763if ${ntp_cv_iflist_sysctl+:} false; then : 36764 $as_echo_n "(cached) " >&6 36765else 36766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36767/* end confdefs.h. */ 36768 36769 #include <sys/param.h> 36770 #include <sys/sysctl.h> 36771 #include <sys/socket.h> 36772 #ifndef NET_RT_IFLIST 36773 # error 36774 #endif 36775 36776_ACEOF 36777if ac_fn_c_try_cpp "$LINENO"; then : 36778 ntp_cv_iflist_sysctl=yes 36779else 36780 ntp_cv_iflist_sysctl=no 36781 36782fi 36783rm -f conftest.err conftest.i conftest.$ac_ext 36784 36785fi 36786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5 36787$as_echo "$ntp_cv_iflist_sysctl" >&6; } 36788case "$ntp_cv_iflist_sysctl" in 36789 yes) 36790 36791$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 36792 36793esac 36794 36795### 36796 36797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 36798$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 36799# Check whether --enable-saveconfig was given. 36800if test "${enable_saveconfig+set}" = set; then : 36801 enableval=$enable_saveconfig; ntp_ok=$enableval 36802else 36803 ntp_ok=yes 36804 36805fi 36806 36807ntp_saveconfig_enabled=0 36808case "$ntp_ok" in 36809 yes) 36810 ntp_saveconfig_enabled=1 36811 36812$as_echo "#define SAVECONFIG 1" >>confdefs.h 36813 36814 ;; 36815esac 36816 if test x$ntp_saveconfig_enabled = x1; then 36817 SAVECONFIG_ENABLED_TRUE= 36818 SAVECONFIG_ENABLED_FALSE='#' 36819else 36820 SAVECONFIG_ENABLED_TRUE='#' 36821 SAVECONFIG_ENABLED_FALSE= 36822fi 36823 36824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 36825$as_echo "$ntp_ok" >&6; } 36826 36827### 36828 36829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5 36830$as_echo_n "checking if we want the experimental leap smear code... " >&6; } 36831# Check whether --enable-leap-smear was given. 36832if test "${enable_leap_smear+set}" = set; then : 36833 enableval=$enable_leap_smear; ntp_ok=$enableval 36834else 36835 ntp_ok=no 36836 36837fi 36838 36839ntp_leap_smear_enabled=0 36840case "$ntp_ok" in 36841 yes) 36842 ntp_leap_smear_enabled=1 36843 36844$as_echo "#define LEAP_SMEAR 1" >>confdefs.h 36845 36846 36847 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0" 36848 ;; 36849esac 36850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 36851$as_echo "$ntp_ok" >&6; } 36852 36853 36854# We may not need have_unity 36855have_unity=false 36856# Extract the first word of "ruby", so it can be a program name with args. 36857set dummy ruby; ac_word=$2 36858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36859$as_echo_n "checking for $ac_word... " >&6; } 36860if ${ac_cv_path_PATH_RUBY+:} false; then : 36861 $as_echo_n "(cached) " >&6 36862else 36863 case $PATH_RUBY in 36864 [\\/]* | ?:[\\/]*) 36865 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 36866 ;; 36867 *) 36868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36869for as_dir in $PATH 36870do 36871 IFS=$as_save_IFS 36872 test -z "$as_dir" && as_dir=. 36873 for ac_exec_ext in '' $ac_executable_extensions; do 36874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36875 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 36876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36877 break 2 36878 fi 36879done 36880 done 36881IFS=$as_save_IFS 36882 36883 ;; 36884esac 36885fi 36886PATH_RUBY=$ac_cv_path_PATH_RUBY 36887if test -n "$PATH_RUBY"; then 36888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 36889$as_echo "$PATH_RUBY" >&6; } 36890else 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36892$as_echo "no" >&6; } 36893fi 36894 36895 36896case "$PATH_RUBY" in 36897 /*) 36898 have_unity=true 36899 ;; 36900 *) PATH_RUBY="false" 36901 ;; 36902esac 36903# We may not need UNITYBUILD_AVAILABLE 36904 if $have_unity; then 36905 UNITYBUILD_AVAILABLE_TRUE= 36906 UNITYBUILD_AVAILABLE_FALSE='#' 36907else 36908 UNITYBUILD_AVAILABLE_TRUE='#' 36909 UNITYBUILD_AVAILABLE_FALSE= 36910fi 36911 36912 36913 36914 36915 36916gta=false 36917 36918# Check whether --with-gtest was given. 36919if test "${with_gtest+set}" = set; then : 36920 withval=$with_gtest; try_gtest=$withval 36921else 36922 try_gtest=yes 36923 36924fi 36925 36926case "$try_gtest" in 36927 yes) 36928 # Extract the first word of "gtest-config", so it can be a program name with args. 36929set dummy gtest-config; ac_word=$2 36930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36931$as_echo_n "checking for $ac_word... " >&6; } 36932if ${ac_cv_path_GTEST_CONFIG+:} false; then : 36933 $as_echo_n "(cached) " >&6 36934else 36935 case $GTEST_CONFIG in 36936 [\\/]* | ?:[\\/]*) 36937 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 36938 ;; 36939 *) 36940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36941for as_dir in $PATH 36942do 36943 IFS=$as_save_IFS 36944 test -z "$as_dir" && as_dir=. 36945 for ac_exec_ext in '' $ac_executable_extensions; do 36946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36947 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 36948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36949 break 2 36950 fi 36951done 36952 done 36953IFS=$as_save_IFS 36954 36955 ;; 36956esac 36957fi 36958GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 36959if test -n "$GTEST_CONFIG"; then 36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 36961$as_echo "$GTEST_CONFIG" >&6; } 36962else 36963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36964$as_echo "no" >&6; } 36965fi 36966 36967 36968 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 36969 case x${GTEST_CONFIG} in 36970 x) ;; 36971 *) 36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 36973$as_echo_n "checking gtest version... " >&6; } 36974 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 36975 case "$gtest_version_test" in 36976 toolow*) 36977 ;; 36978 *) 36979 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 36980 GTEST_LIBS=`$GTEST_CONFIG --libs` 36981 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 36982 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 36983 36984 36985 36986 36987 gta=true 36988 ;; 36989 esac 36990 gtest_version=`$GTEST_CONFIG --version` 36991 case "$gta" in 36992 true) 36993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 36994$as_echo "($gtest_version) ok" >&6; } 36995 ;; 36996 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 36997$as_echo "($gtest_version) not ok" >&6; } 36998 ;; 36999 esac 37000 { gtest_version_test=; unset gtest_version_test;} 37001 { gtest_version=; unset gtest_version;} 37002 esac 37003esac 37004 if $gta; then 37005 GTEST_AVAILABLE_TRUE= 37006 GTEST_AVAILABLE_FALSE='#' 37007else 37008 GTEST_AVAILABLE_TRUE='#' 37009 GTEST_AVAILABLE_FALSE= 37010fi 37011 37012 37013 37014 37015 37016case "$build" in 37017 $host) cross=0 ;; 37018 *) cross=1 ;; 37019esac 37020 37021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 37022$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 37023# Check whether --enable-problem-tests was given. 37024if test "${enable_problem_tests+set}" = set; then : 37025 enableval=$enable_problem_tests; ntp_ept=$enableval 37026else 37027 ntp_ept=yes 37028 37029fi 37030 37031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5 37032$as_echo "$ntp_ept" >&6; } 37033 37034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5 37035$as_echo_n "checking if we can run test-ntp_restrict... " >&6; } 37036ntp_test_ntp_restrict="no" 37037case "$ntp_ept:$cross:$host" in 37038 no:0:*-*-solaris*) ;; 37039 no:0:*-*-hpux-11.23*) ;; 37040 *) ntp_test_ntp_restrict="yes" ;; 37041esac 37042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5 37043$as_echo "$ntp_test_ntp_restrict" >&6; } 37044 if test x$ntp_test_ntp_restrict = xyes; then 37045 BUILD_TEST_NTP_RESTRICT_TRUE= 37046 BUILD_TEST_NTP_RESTRICT_FALSE='#' 37047else 37048 BUILD_TEST_NTP_RESTRICT_TRUE='#' 37049 BUILD_TEST_NTP_RESTRICT_FALSE= 37050fi 37051 37052 37053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5 37054$as_echo_n "checking if we can run test-ntp_scanner... " >&6; } 37055ntp_test_ntp_scanner="no" 37056case "$ntp_ept:$cross:$host" in 37057 no:0:*-*-solaris*) ;; 37058 *) ntp_test_ntp_scanner="yes" ;; 37059esac 37060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5 37061$as_echo "$ntp_test_ntp_scanner" >&6; } 37062 if test x$ntp_test_ntp_scanner = xyes; then 37063 BUILD_TEST_NTP_SCANNER_TRUE= 37064 BUILD_TEST_NTP_SCANNER_FALSE='#' 37065else 37066 BUILD_TEST_NTP_SCANNER_TRUE='#' 37067 BUILD_TEST_NTP_SCANNER_FALSE= 37068fi 37069 37070 37071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5 37072$as_echo_n "checking if we can run test-ntp_signd... " >&6; } 37073ntp_test_ntp_signd="no" 37074case "$ntp_ept:$cross:$host" in 37075 no:0:*-*-solaris*) ;; 37076 *) ntp_test_ntp_signd="yes" ;; 37077esac 37078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5 37079$as_echo "$ntp_test_ntp_signd" >&6; } 37080 if test x$ntp_test_ntp_signd = xyes; then 37081 BUILD_TEST_NTP_SIGND_TRUE= 37082 BUILD_TEST_NTP_SIGND_FALSE='#' 37083else 37084 BUILD_TEST_NTP_SIGND_TRUE='#' 37085 BUILD_TEST_NTP_SIGND_FALSE= 37086fi 37087 37088 37089 37090### 37091 37092 37093 prefix_NONE= 37094 exec_prefix_NONE= 37095 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 37096 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 37097 eval ac_define_dir="\"$sysconfdir\"" 37098 eval ac_define_dir="\"$ac_define_dir\"" 37099 NTP_KEYSDIR="$ac_define_dir" 37100 37101 37102cat >>confdefs.h <<_ACEOF 37103#define NTP_KEYSDIR "$ac_define_dir" 37104_ACEOF 37105 37106 test "$prefix_NONE" && prefix=NONE 37107 test "$exec_prefix_NONE" && exec_prefix=NONE 37108 37109 37110ac_config_files="$ac_config_files Makefile" 37111 37112ac_config_files="$ac_config_files adjtimed/Makefile" 37113 37114ac_config_files="$ac_config_files clockstuff/Makefile" 37115 37116ac_config_files="$ac_config_files include/Makefile" 37117 37118ac_config_files="$ac_config_files include/isc/Makefile" 37119 37120ac_config_files="$ac_config_files kernel/Makefile" 37121 37122ac_config_files="$ac_config_files kernel/sys/Makefile" 37123 37124ac_config_files="$ac_config_files libntp/Makefile" 37125 37126ac_config_files="$ac_config_files libparse/Makefile" 37127 37128ac_config_files="$ac_config_files ntpd/Makefile" 37129 37130ac_config_files="$ac_config_files ntpd/complete.conf" 37131 37132ac_config_files="$ac_config_files ntpdate/Makefile" 37133 37134ac_config_files="$ac_config_files ntpdc/Makefile" 37135 37136ac_config_files="$ac_config_files ntpdc/nl.pl" 37137 37138ac_config_files="$ac_config_files ntpq/Makefile" 37139 37140ac_config_files="$ac_config_files ntpsnmpd/Makefile" 37141 37142ac_config_files="$ac_config_files parseutil/Makefile" 37143 37144ac_config_files="$ac_config_files scripts/Makefile" 37145 37146ac_config_files="$ac_config_files scripts/build/Makefile" 37147 37148ac_config_files="$ac_config_files scripts/build/mkver" 37149 37150ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile" 37151 37152ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj" 37153 37154ac_config_files="$ac_config_files scripts/lib/Makefile" 37155 37156ac_config_files="$ac_config_files scripts/ntp-wait/Makefile" 37157 37158ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait" 37159 37160ac_config_files="$ac_config_files scripts/ntpsweep/Makefile" 37161 37162ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep" 37163 37164ac_config_files="$ac_config_files scripts/ntptrace/Makefile" 37165 37166ac_config_files="$ac_config_files scripts/ntptrace/ntptrace" 37167 37168ac_config_files="$ac_config_files scripts/ntpver" 37169 37170ac_config_files="$ac_config_files scripts/plot_summary" 37171 37172ac_config_files="$ac_config_files scripts/summary" 37173 37174ac_config_files="$ac_config_files scripts/update-leap/Makefile" 37175 37176ac_config_files="$ac_config_files scripts/update-leap/update-leap" 37177 37178ac_config_files="$ac_config_files tests/Makefile" 37179 37180ac_config_files="$ac_config_files tests/bug-2803/Makefile" 37181 37182ac_config_files="$ac_config_files tests/libntp/Makefile" 37183 37184ac_config_files="$ac_config_files tests/ntpd/Makefile" 37185 37186ac_config_files="$ac_config_files tests/ntpq/Makefile" 37187 37188ac_config_files="$ac_config_files tests/sandbox/Makefile" 37189 37190ac_config_files="$ac_config_files tests/sec-2853/Makefile" 37191 37192ac_config_files="$ac_config_files util/Makefile" 37193 37194 37195perllibdir="${datadir}/ntp/lib" 37196 37197 prefix_NONE= 37198 exec_prefix_NONE= 37199 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 37200 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 37201 eval ac_define_dir="\"$perllibdir\"" 37202 eval ac_define_dir="\"$ac_define_dir\"" 37203 PERLLIBDIR="$ac_define_dir" 37204 37205 37206cat >>confdefs.h <<_ACEOF 37207#define PERLLIBDIR "$ac_define_dir" 37208_ACEOF 37209 37210 test "$prefix_NONE" && prefix=NONE 37211 test "$exec_prefix_NONE" && exec_prefix=NONE 37212 37213 37214calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts" 37215 37216ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts" 37217 37218ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts" 37219 37220ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts" 37221 37222summary_opts="$srcdir/scripts/summary-opts" 37223 37224plot_summary_opts="$srcdir/scripts/plot_summary-opts" 37225 37226 37227 37228 37229subdirs="$subdirs sntp" 37230 37231 37232cat >confcache <<\_ACEOF 37233# This file is a shell script that caches the results of configure 37234# tests run on this system so they can be shared between configure 37235# scripts and configure runs, see configure's option --config-cache. 37236# It is not useful on other systems. If it contains results you don't 37237# want to keep, you may remove or edit it. 37238# 37239# config.status only pays attention to the cache file if you give it 37240# the --recheck option to rerun configure. 37241# 37242# `ac_cv_env_foo' variables (set or unset) will be overridden when 37243# loading this file, other *unset* `ac_cv_foo' will be assigned the 37244# following values. 37245 37246_ACEOF 37247 37248# The following way of writing the cache mishandles newlines in values, 37249# but we know of no workaround that is simple, portable, and efficient. 37250# So, we kill variables containing newlines. 37251# Ultrix sh set writes to stderr and can't be redirected directly, 37252# and sets the high bit in the cache file unless we assign to the vars. 37253( 37254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37255 eval ac_val=\$$ac_var 37256 case $ac_val in #( 37257 *${as_nl}*) 37258 case $ac_var in #( 37259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37261 esac 37262 case $ac_var in #( 37263 _ | IFS | as_nl) ;; #( 37264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37265 *) { eval $ac_var=; unset $ac_var;} ;; 37266 esac ;; 37267 esac 37268 done 37269 37270 (set) 2>&1 | 37271 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37272 *${as_nl}ac_space=\ *) 37273 # `set' does not quote correctly, so add quotes: double-quote 37274 # substitution turns \\\\ into \\, and sed turns \\ into \. 37275 sed -n \ 37276 "s/'/'\\\\''/g; 37277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37278 ;; #( 37279 *) 37280 # `set' quotes correctly as required by POSIX, so do not add quotes. 37281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37282 ;; 37283 esac | 37284 sort 37285) | 37286 sed ' 37287 /^ac_cv_env_/b end 37288 t clear 37289 :clear 37290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37291 t end 37292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37293 :end' >>confcache 37294if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37295 if test -w "$cache_file"; then 37296 if test "x$cache_file" != "x/dev/null"; then 37297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37298$as_echo "$as_me: updating cache $cache_file" >&6;} 37299 if test ! -f "$cache_file" || test -h "$cache_file"; then 37300 cat confcache >"$cache_file" 37301 else 37302 case $cache_file in #( 37303 */* | ?:*) 37304 mv -f confcache "$cache_file"$$ && 37305 mv -f "$cache_file"$$ "$cache_file" ;; #( 37306 *) 37307 mv -f confcache "$cache_file" ;; 37308 esac 37309 fi 37310 fi 37311 else 37312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37314 fi 37315fi 37316rm -f confcache 37317 37318test "x$prefix" = xNONE && prefix=$ac_default_prefix 37319# Let make expand exec_prefix. 37320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37321 37322DEFS=-DHAVE_CONFIG_H 37323 37324ac_libobjs= 37325ac_ltlibobjs= 37326U= 37327for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37328 # 1. Remove the extension, and $U if already installed. 37329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37330 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37332 # will be set to the directory where LIBOBJS objects are built. 37333 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37334 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37335done 37336LIBOBJS=$ac_libobjs 37337 37338LTLIBOBJS=$ac_ltlibobjs 37339 37340 37341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37342$as_echo_n "checking that generated files are newer than configure... " >&6; } 37343 if test -n "$am_sleep_pid"; then 37344 # Hide warnings about reused PIDs. 37345 wait $am_sleep_pid 2>/dev/null 37346 fi 37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37348$as_echo "done" >&6; } 37349 if test -n "$EXEEXT"; then 37350 am__EXEEXT_TRUE= 37351 am__EXEEXT_FALSE='#' 37352else 37353 am__EXEEXT_TRUE='#' 37354 am__EXEEXT_FALSE= 37355fi 37356 37357if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37358 as_fn_error $? "conditional \"AMDEP\" was never defined. 37359Usually this means the macro was only invoked conditionally." "$LINENO" 5 37360fi 37361if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37362 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37363Usually this means the macro was only invoked conditionally." "$LINENO" 5 37364fi 37365if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37367Usually this means the macro was only invoked conditionally." "$LINENO" 5 37368fi 37369 37370if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37371 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37372Usually this means the macro was only invoked conditionally." "$LINENO" 5 37373fi 37374if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 37375 as_fn_error $? "conditional \"VPATH_HACK\" was never defined. 37376Usually this means the macro was only invoked conditionally." "$LINENO" 5 37377fi 37378if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 37379 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 37380Usually this means the macro was only invoked conditionally." "$LINENO" 5 37381fi 37382if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 37383 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 37384Usually this means the macro was only invoked conditionally." "$LINENO" 5 37385fi 37386if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 37387 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 37388Usually this means the macro was only invoked conditionally." "$LINENO" 5 37389fi 37390if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 37391 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 37392Usually this means the macro was only invoked conditionally." "$LINENO" 5 37393fi 37394if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 37395 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 37396Usually this means the macro was only invoked conditionally." "$LINENO" 5 37397fi 37398if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 37399 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 37400Usually this means the macro was only invoked conditionally." "$LINENO" 5 37401fi 37402if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 37403 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 37404Usually this means the macro was only invoked conditionally." "$LINENO" 5 37405fi 37406if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 37407 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 37408Usually this means the macro was only invoked conditionally." "$LINENO" 5 37409fi 37410if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 37411 as_fn_error $? "conditional \"PTHREADS\" was never defined. 37412Usually this means the macro was only invoked conditionally." "$LINENO" 5 37413fi 37414if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 37415 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 37416Usually this means the macro was only invoked conditionally." "$LINENO" 5 37417fi 37418if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 37419 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined. 37420Usually this means the macro was only invoked conditionally." "$LINENO" 5 37421fi 37422if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 37423 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 37424Usually this means the macro was only invoked conditionally." "$LINENO" 5 37425fi 37426if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 37427 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 37428Usually this means the macro was only invoked conditionally." "$LINENO" 5 37429fi 37430if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then 37431 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined. 37432Usually this means the macro was only invoked conditionally." "$LINENO" 5 37433fi 37434if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then 37435 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined. 37436Usually this means the macro was only invoked conditionally." "$LINENO" 5 37437fi 37438if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then 37439 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined. 37440Usually this means the macro was only invoked conditionally." "$LINENO" 5 37441fi 37442 37443: "${CONFIG_STATUS=./config.status}" 37444ac_write_fail=0 37445ac_clean_files_save=$ac_clean_files 37446ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37447{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37448$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37449as_write_fail=0 37450cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37451#! $SHELL 37452# Generated by $as_me. 37453# Run this file to recreate the current configuration. 37454# Compiler output produced by configure, useful for debugging 37455# configure, is in config.log if it exists. 37456 37457debug=false 37458ac_cs_recheck=false 37459ac_cs_silent=false 37460 37461SHELL=\${CONFIG_SHELL-$SHELL} 37462export SHELL 37463_ASEOF 37464cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37465## -------------------- ## 37466## M4sh Initialization. ## 37467## -------------------- ## 37468 37469# Be more Bourne compatible 37470DUALCASE=1; export DUALCASE # for MKS sh 37471if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37472 emulate sh 37473 NULLCMD=: 37474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37475 # is contrary to our usage. Disable this feature. 37476 alias -g '${1+"$@"}'='"$@"' 37477 setopt NO_GLOB_SUBST 37478else 37479 case `(set -o) 2>/dev/null` in #( 37480 *posix*) : 37481 set -o posix ;; #( 37482 *) : 37483 ;; 37484esac 37485fi 37486 37487 37488as_nl=' 37489' 37490export as_nl 37491# Printing a long string crashes Solaris 7 /usr/bin/printf. 37492as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37493as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37494as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37495# Prefer a ksh shell builtin over an external printf program on Solaris, 37496# but without wasting forks for bash or zsh. 37497if test -z "$BASH_VERSION$ZSH_VERSION" \ 37498 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37499 as_echo='print -r --' 37500 as_echo_n='print -rn --' 37501elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37502 as_echo='printf %s\n' 37503 as_echo_n='printf %s' 37504else 37505 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37506 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37507 as_echo_n='/usr/ucb/echo -n' 37508 else 37509 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37510 as_echo_n_body='eval 37511 arg=$1; 37512 case $arg in #( 37513 *"$as_nl"*) 37514 expr "X$arg" : "X\\(.*\\)$as_nl"; 37515 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37516 esac; 37517 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37518 ' 37519 export as_echo_n_body 37520 as_echo_n='sh -c $as_echo_n_body as_echo' 37521 fi 37522 export as_echo_body 37523 as_echo='sh -c $as_echo_body as_echo' 37524fi 37525 37526# The user is always right. 37527if test "${PATH_SEPARATOR+set}" != set; then 37528 PATH_SEPARATOR=: 37529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 37530 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 37531 PATH_SEPARATOR=';' 37532 } 37533fi 37534 37535 37536# IFS 37537# We need space, tab and new line, in precisely that order. Quoting is 37538# there to prevent editors from complaining about space-tab. 37539# (If _AS_PATH_WALK were called with IFS unset, it would disable word 37540# splitting by setting IFS to empty value.) 37541IFS=" "" $as_nl" 37542 37543# Find who we are. Look in the path if we contain no directory separator. 37544as_myself= 37545case $0 in #(( 37546 *[\\/]* ) as_myself=$0 ;; 37547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37548for as_dir in $PATH 37549do 37550 IFS=$as_save_IFS 37551 test -z "$as_dir" && as_dir=. 37552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37553 done 37554IFS=$as_save_IFS 37555 37556 ;; 37557esac 37558# We did not find ourselves, most probably we were run as `sh COMMAND' 37559# in which case we are not to be found in the path. 37560if test "x$as_myself" = x; then 37561 as_myself=$0 37562fi 37563if test ! -f "$as_myself"; then 37564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37565 exit 1 37566fi 37567 37568# Unset variables that we do not need and which cause bugs (e.g. in 37569# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37570# suppresses any "Segmentation fault" message there. '((' could 37571# trigger a bug in pdksh 5.2.14. 37572for as_var in BASH_ENV ENV MAIL MAILPATH 37573do eval test x\${$as_var+set} = xset \ 37574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37575done 37576PS1='$ ' 37577PS2='> ' 37578PS4='+ ' 37579 37580# NLS nuisances. 37581LC_ALL=C 37582export LC_ALL 37583LANGUAGE=C 37584export LANGUAGE 37585 37586# CDPATH. 37587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37588 37589 37590# as_fn_error STATUS ERROR [LINENO LOG_FD] 37591# ---------------------------------------- 37592# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37593# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37594# script with STATUS, using 1 if that was 0. 37595as_fn_error () 37596{ 37597 as_status=$1; test $as_status -eq 0 && as_status=1 37598 if test "$4"; then 37599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 37601 fi 37602 $as_echo "$as_me: error: $2" >&2 37603 as_fn_exit $as_status 37604} # as_fn_error 37605 37606 37607# as_fn_set_status STATUS 37608# ----------------------- 37609# Set $? to STATUS, without forking. 37610as_fn_set_status () 37611{ 37612 return $1 37613} # as_fn_set_status 37614 37615# as_fn_exit STATUS 37616# ----------------- 37617# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37618as_fn_exit () 37619{ 37620 set +e 37621 as_fn_set_status $1 37622 exit $1 37623} # as_fn_exit 37624 37625# as_fn_unset VAR 37626# --------------- 37627# Portably unset VAR. 37628as_fn_unset () 37629{ 37630 { eval $1=; unset $1;} 37631} 37632as_unset=as_fn_unset 37633# as_fn_append VAR VALUE 37634# ---------------------- 37635# Append the text in VALUE to the end of the definition contained in VAR. Take 37636# advantage of any shell optimizations that allow amortized linear growth over 37637# repeated appends, instead of the typical quadratic growth present in naive 37638# implementations. 37639if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37640 eval 'as_fn_append () 37641 { 37642 eval $1+=\$2 37643 }' 37644else 37645 as_fn_append () 37646 { 37647 eval $1=\$$1\$2 37648 } 37649fi # as_fn_append 37650 37651# as_fn_arith ARG... 37652# ------------------ 37653# Perform arithmetic evaluation on the ARGs, and store the result in the 37654# global $as_val. Take advantage of shells that can avoid forks. The arguments 37655# must be portable across $(()) and expr. 37656if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37657 eval 'as_fn_arith () 37658 { 37659 as_val=$(( $* )) 37660 }' 37661else 37662 as_fn_arith () 37663 { 37664 as_val=`expr "$@" || test $? -eq 1` 37665 } 37666fi # as_fn_arith 37667 37668 37669if expr a : '\(a\)' >/dev/null 2>&1 && 37670 test "X`expr 00001 : '.*\(...\)'`" = X001; then 37671 as_expr=expr 37672else 37673 as_expr=false 37674fi 37675 37676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37677 as_basename=basename 37678else 37679 as_basename=false 37680fi 37681 37682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 37683 as_dirname=dirname 37684else 37685 as_dirname=false 37686fi 37687 37688as_me=`$as_basename -- "$0" || 37689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 37690 X"$0" : 'X\(//\)$' \| \ 37691 X"$0" : 'X\(/\)' \| . 2>/dev/null || 37692$as_echo X/"$0" | 37693 sed '/^.*\/\([^/][^/]*\)\/*$/{ 37694 s//\1/ 37695 q 37696 } 37697 /^X\/\(\/\/\)$/{ 37698 s//\1/ 37699 q 37700 } 37701 /^X\/\(\/\).*/{ 37702 s//\1/ 37703 q 37704 } 37705 s/.*/./; q'` 37706 37707# Avoid depending upon Character Ranges. 37708as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37710as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37711as_cr_digits='0123456789' 37712as_cr_alnum=$as_cr_Letters$as_cr_digits 37713 37714ECHO_C= ECHO_N= ECHO_T= 37715case `echo -n x` in #((((( 37716-n*) 37717 case `echo 'xy\c'` in 37718 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 37719 xy) ECHO_C='\c';; 37720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 37721 ECHO_T=' ';; 37722 esac;; 37723*) 37724 ECHO_N='-n';; 37725esac 37726 37727rm -f conf$$ conf$$.exe conf$$.file 37728if test -d conf$$.dir; then 37729 rm -f conf$$.dir/conf$$.file 37730else 37731 rm -f conf$$.dir 37732 mkdir conf$$.dir 2>/dev/null 37733fi 37734if (echo >conf$$.file) 2>/dev/null; then 37735 if ln -s conf$$.file conf$$ 2>/dev/null; then 37736 as_ln_s='ln -s' 37737 # ... but there are two gotchas: 37738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 37739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 37740 # In both cases, we have to default to `cp -pR'. 37741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 37742 as_ln_s='cp -pR' 37743 elif ln conf$$.file conf$$ 2>/dev/null; then 37744 as_ln_s=ln 37745 else 37746 as_ln_s='cp -pR' 37747 fi 37748else 37749 as_ln_s='cp -pR' 37750fi 37751rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 37752rmdir conf$$.dir 2>/dev/null 37753 37754 37755# as_fn_mkdir_p 37756# ------------- 37757# Create "$as_dir" as a directory, including parents if necessary. 37758as_fn_mkdir_p () 37759{ 37760 37761 case $as_dir in #( 37762 -*) as_dir=./$as_dir;; 37763 esac 37764 test -d "$as_dir" || eval $as_mkdir_p || { 37765 as_dirs= 37766 while :; do 37767 case $as_dir in #( 37768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 37769 *) as_qdir=$as_dir;; 37770 esac 37771 as_dirs="'$as_qdir' $as_dirs" 37772 as_dir=`$as_dirname -- "$as_dir" || 37773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37774 X"$as_dir" : 'X\(//\)[^/]' \| \ 37775 X"$as_dir" : 'X\(//\)$' \| \ 37776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 37777$as_echo X"$as_dir" | 37778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37779 s//\1/ 37780 q 37781 } 37782 /^X\(\/\/\)[^/].*/{ 37783 s//\1/ 37784 q 37785 } 37786 /^X\(\/\/\)$/{ 37787 s//\1/ 37788 q 37789 } 37790 /^X\(\/\).*/{ 37791 s//\1/ 37792 q 37793 } 37794 s/.*/./; q'` 37795 test -d "$as_dir" && break 37796 done 37797 test -z "$as_dirs" || eval "mkdir $as_dirs" 37798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37799 37800 37801} # as_fn_mkdir_p 37802if mkdir -p . 2>/dev/null; then 37803 as_mkdir_p='mkdir -p "$as_dir"' 37804else 37805 test -d ./-p && rmdir ./-p 37806 as_mkdir_p=false 37807fi 37808 37809 37810# as_fn_executable_p FILE 37811# ----------------------- 37812# Test if FILE is an executable regular file. 37813as_fn_executable_p () 37814{ 37815 test -f "$1" && test -x "$1" 37816} # as_fn_executable_p 37817as_test_x='test -x' 37818as_executable_p=as_fn_executable_p 37819 37820# Sed expression to map a string onto a valid CPP name. 37821as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 37822 37823# Sed expression to map a string onto a valid variable name. 37824as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 37825 37826 37827exec 6>&1 37828## ----------------------------------- ## 37829## Main body of $CONFIG_STATUS script. ## 37830## ----------------------------------- ## 37831_ASEOF 37832test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 37833 37834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37835# Save the log message, to keep $0 and so on meaningful, and to 37836# report actual input values of CONFIG_FILES etc. instead of their 37837# values after options handling. 37838ac_log=" 37839This file was extended by ntp $as_me 4.2.8p4, which was 37840generated by GNU Autoconf 2.69. Invocation command line was 37841 37842 CONFIG_FILES = $CONFIG_FILES 37843 CONFIG_HEADERS = $CONFIG_HEADERS 37844 CONFIG_LINKS = $CONFIG_LINKS 37845 CONFIG_COMMANDS = $CONFIG_COMMANDS 37846 $ $0 $@ 37847 37848on `(hostname || uname -n) 2>/dev/null | sed 1q` 37849" 37850 37851_ACEOF 37852 37853case $ac_config_files in *" 37854"*) set x $ac_config_files; shift; ac_config_files=$*;; 37855esac 37856 37857case $ac_config_headers in *" 37858"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 37859esac 37860 37861 37862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37863# Files that config.status was made for. 37864config_files="$ac_config_files" 37865config_headers="$ac_config_headers" 37866config_commands="$ac_config_commands" 37867 37868_ACEOF 37869 37870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37871ac_cs_usage="\ 37872\`$as_me' instantiates files and other configuration actions 37873from templates according to the current configuration. Unless the files 37874and actions are specified as TAGs, all are instantiated by default. 37875 37876Usage: $0 [OPTION]... [TAG]... 37877 37878 -h, --help print this help, then exit 37879 -V, --version print version number and configuration settings, then exit 37880 --config print configuration, then exit 37881 -q, --quiet, --silent 37882 do not print progress messages 37883 -d, --debug don't remove temporary files 37884 --recheck update $as_me by reconfiguring in the same conditions 37885 --file=FILE[:TEMPLATE] 37886 instantiate the configuration file FILE 37887 --header=FILE[:TEMPLATE] 37888 instantiate the configuration header FILE 37889 37890Configuration files: 37891$config_files 37892 37893Configuration headers: 37894$config_headers 37895 37896Configuration commands: 37897$config_commands 37898 37899Report bugs to <http://bugs.ntp.org./>. 37900ntp home page: <http://www.ntp.org./>." 37901 37902_ACEOF 37903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37904ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 37905ac_cs_version="\\ 37906ntp config.status 4.2.8p4 37907configured by $0, generated by GNU Autoconf 2.69, 37908 with options \\"\$ac_cs_config\\" 37909 37910Copyright (C) 2012 Free Software Foundation, Inc. 37911This config.status script is free software; the Free Software Foundation 37912gives unlimited permission to copy, distribute and modify it." 37913 37914ac_pwd='$ac_pwd' 37915srcdir='$srcdir' 37916INSTALL='$INSTALL' 37917MKDIR_P='$MKDIR_P' 37918AWK='$AWK' 37919test -n "\$AWK" || AWK=awk 37920_ACEOF 37921 37922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37923# The default lists apply if the user does not specify any file. 37924ac_need_defaults=: 37925while test $# != 0 37926do 37927 case $1 in 37928 --*=?*) 37929 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 37931 ac_shift=: 37932 ;; 37933 --*=) 37934 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37935 ac_optarg= 37936 ac_shift=: 37937 ;; 37938 *) 37939 ac_option=$1 37940 ac_optarg=$2 37941 ac_shift=shift 37942 ;; 37943 esac 37944 37945 case $ac_option in 37946 # Handling of the options. 37947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 37948 ac_cs_recheck=: ;; 37949 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 37950 $as_echo "$ac_cs_version"; exit ;; 37951 --config | --confi | --conf | --con | --co | --c ) 37952 $as_echo "$ac_cs_config"; exit ;; 37953 --debug | --debu | --deb | --de | --d | -d ) 37954 debug=: ;; 37955 --file | --fil | --fi | --f ) 37956 $ac_shift 37957 case $ac_optarg in 37958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37959 '') as_fn_error $? "missing file argument" ;; 37960 esac 37961 as_fn_append CONFIG_FILES " '$ac_optarg'" 37962 ac_need_defaults=false;; 37963 --header | --heade | --head | --hea ) 37964 $ac_shift 37965 case $ac_optarg in 37966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37967 esac 37968 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 37969 ac_need_defaults=false;; 37970 --he | --h) 37971 # Conflict between --help and --header 37972 as_fn_error $? "ambiguous option: \`$1' 37973Try \`$0 --help' for more information.";; 37974 --help | --hel | -h ) 37975 $as_echo "$ac_cs_usage"; exit ;; 37976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 37977 | -silent | --silent | --silen | --sile | --sil | --si | --s) 37978 ac_cs_silent=: ;; 37979 37980 # This is an error. 37981 -*) as_fn_error $? "unrecognized option: \`$1' 37982Try \`$0 --help' for more information." ;; 37983 37984 *) as_fn_append ac_config_targets " $1" 37985 ac_need_defaults=false ;; 37986 37987 esac 37988 shift 37989done 37990 37991ac_configure_extra_args= 37992 37993if $ac_cs_silent; then 37994 exec 6>/dev/null 37995 ac_configure_extra_args="$ac_configure_extra_args --silent" 37996fi 37997 37998_ACEOF 37999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38000if \$ac_cs_recheck; then 38001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 38002 shift 38003 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 38004 CONFIG_SHELL='$SHELL' 38005 export CONFIG_SHELL 38006 exec "\$@" 38007fi 38008 38009_ACEOF 38010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38011exec 5>>config.log 38012{ 38013 echo 38014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 38015## Running $as_me. ## 38016_ASBOX 38017 $as_echo "$ac_log" 38018} >&5 38019 38020_ACEOF 38021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38022# 38023# INIT-COMMANDS 38024# 38025AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 38026 38027 38028# The HP-UX ksh and POSIX shell print the target directory to stdout 38029# if CDPATH is set. 38030(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38031 38032sed_quote_subst='$sed_quote_subst' 38033double_quote_subst='$double_quote_subst' 38034delay_variable_subst='$delay_variable_subst' 38035enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38036macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38037macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38038enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38039pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38040enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38041SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38042ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38043host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38044host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38045host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38046build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38047build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38048build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38049SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38050Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38051GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38052EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38053FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38054LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38055NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38056LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38057max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38058ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38059exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38060lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38061lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38062lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38063lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38064lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38065reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38066reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38067OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38068deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38069file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38070file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38071want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38072DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38073sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38074AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38075AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38076archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38077STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38078RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38079old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38080old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38081old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38082lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38083CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38084CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38085compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38086GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38087lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38088lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38089lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38090lt_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"`' 38091nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38092lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38093objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38094MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38095lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38096lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38097lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38098lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38099lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38100need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38101MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38102DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38103NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38104LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38105OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38106OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38107libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38108shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38109extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38110archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38111enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38112export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38113whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38114compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38115old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38116old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38117archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38118archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38119module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38120module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38121with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38122allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38123no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38124hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38125hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 38126hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38127hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38128hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38129hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38130hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38131hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38132inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38133link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38134always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38135export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38136exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38137include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38138prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38139postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38140file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38141variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38142need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38143need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38144version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38145runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38146shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38147shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38148libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38149library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38150soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38151install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38152postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38153postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38154finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38155finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38156hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38157sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38158sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 38159hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38160enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38161enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38162enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38163old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38164striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38165compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 38166predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 38167postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 38168predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 38169postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 38170compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 38171LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 38172reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 38173reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38174old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38175compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 38176GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 38177lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 38178lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 38179lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 38180lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 38181lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 38182archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 38183enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 38184export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38185whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38186compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 38187old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38188old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38189archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38190archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38191module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38192module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38193with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 38194allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38195no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38196hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38197hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 38198hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 38199hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 38200hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 38201hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 38202hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 38203hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 38204inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 38205link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 38206always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 38207export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38208exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38209include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38210prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38211postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38212file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 38213hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 38214compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 38215predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38216postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38217predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 38218postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 38219compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 38220 38221LTCC='$LTCC' 38222LTCFLAGS='$LTCFLAGS' 38223compiler='$compiler_DEFAULT' 38224 38225# A function that is used when there is no print builtin or printf. 38226func_fallback_echo () 38227{ 38228 eval 'cat <<_LTECHO_EOF 38229\$1 38230_LTECHO_EOF' 38231} 38232 38233# Quote evaled strings. 38234for var in SHELL \ 38235ECHO \ 38236SED \ 38237GREP \ 38238EGREP \ 38239FGREP \ 38240LD \ 38241NM \ 38242LN_S \ 38243lt_SP2NL \ 38244lt_NL2SP \ 38245reload_flag \ 38246OBJDUMP \ 38247deplibs_check_method \ 38248file_magic_cmd \ 38249file_magic_glob \ 38250want_nocaseglob \ 38251DLLTOOL \ 38252sharedlib_from_linklib_cmd \ 38253AR \ 38254AR_FLAGS \ 38255archiver_list_spec \ 38256STRIP \ 38257RANLIB \ 38258CC \ 38259CFLAGS \ 38260compiler \ 38261lt_cv_sys_global_symbol_pipe \ 38262lt_cv_sys_global_symbol_to_cdecl \ 38263lt_cv_sys_global_symbol_to_c_name_address \ 38264lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38265nm_file_list_spec \ 38266lt_prog_compiler_no_builtin_flag \ 38267lt_prog_compiler_pic \ 38268lt_prog_compiler_wl \ 38269lt_prog_compiler_static \ 38270lt_cv_prog_compiler_c_o \ 38271need_locks \ 38272MANIFEST_TOOL \ 38273DSYMUTIL \ 38274NMEDIT \ 38275LIPO \ 38276OTOOL \ 38277OTOOL64 \ 38278shrext_cmds \ 38279export_dynamic_flag_spec \ 38280whole_archive_flag_spec \ 38281compiler_needs_object \ 38282with_gnu_ld \ 38283allow_undefined_flag \ 38284no_undefined_flag \ 38285hardcode_libdir_flag_spec \ 38286hardcode_libdir_flag_spec_ld \ 38287hardcode_libdir_separator \ 38288exclude_expsyms \ 38289include_expsyms \ 38290file_list_spec \ 38291variables_saved_for_relink \ 38292libname_spec \ 38293library_names_spec \ 38294soname_spec \ 38295install_override_mode \ 38296finish_eval \ 38297old_striplib \ 38298striplib \ 38299compiler_lib_search_dirs \ 38300predep_objects \ 38301postdep_objects \ 38302predeps \ 38303postdeps \ 38304compiler_lib_search_path \ 38305LD_CXX \ 38306reload_flag_CXX \ 38307compiler_CXX \ 38308lt_prog_compiler_no_builtin_flag_CXX \ 38309lt_prog_compiler_pic_CXX \ 38310lt_prog_compiler_wl_CXX \ 38311lt_prog_compiler_static_CXX \ 38312lt_cv_prog_compiler_c_o_CXX \ 38313export_dynamic_flag_spec_CXX \ 38314whole_archive_flag_spec_CXX \ 38315compiler_needs_object_CXX \ 38316with_gnu_ld_CXX \ 38317allow_undefined_flag_CXX \ 38318no_undefined_flag_CXX \ 38319hardcode_libdir_flag_spec_CXX \ 38320hardcode_libdir_flag_spec_ld_CXX \ 38321hardcode_libdir_separator_CXX \ 38322exclude_expsyms_CXX \ 38323include_expsyms_CXX \ 38324file_list_spec_CXX \ 38325compiler_lib_search_dirs_CXX \ 38326predep_objects_CXX \ 38327postdep_objects_CXX \ 38328predeps_CXX \ 38329postdeps_CXX \ 38330compiler_lib_search_path_CXX; do 38331 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38332 *[\\\\\\\`\\"\\\$]*) 38333 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 38334 ;; 38335 *) 38336 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38337 ;; 38338 esac 38339done 38340 38341# Double-quote double-evaled strings. 38342for var in reload_cmds \ 38343old_postinstall_cmds \ 38344old_postuninstall_cmds \ 38345old_archive_cmds \ 38346extract_expsyms_cmds \ 38347old_archive_from_new_cmds \ 38348old_archive_from_expsyms_cmds \ 38349archive_cmds \ 38350archive_expsym_cmds \ 38351module_cmds \ 38352module_expsym_cmds \ 38353export_symbols_cmds \ 38354prelink_cmds \ 38355postlink_cmds \ 38356postinstall_cmds \ 38357postuninstall_cmds \ 38358finish_cmds \ 38359sys_lib_search_path_spec \ 38360sys_lib_dlsearch_path_spec \ 38361reload_cmds_CXX \ 38362old_archive_cmds_CXX \ 38363old_archive_from_new_cmds_CXX \ 38364old_archive_from_expsyms_cmds_CXX \ 38365archive_cmds_CXX \ 38366archive_expsym_cmds_CXX \ 38367module_cmds_CXX \ 38368module_expsym_cmds_CXX \ 38369export_symbols_cmds_CXX \ 38370prelink_cmds_CXX \ 38371postlink_cmds_CXX; do 38372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38373 *[\\\\\\\`\\"\\\$]*) 38374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 38375 ;; 38376 *) 38377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38378 ;; 38379 esac 38380done 38381 38382ac_aux_dir='$ac_aux_dir' 38383xsi_shell='$xsi_shell' 38384lt_shell_append='$lt_shell_append' 38385 38386# See if we are running on zsh, and set the options which allow our 38387# commands through without removal of \ escapes INIT. 38388if test -n "\${ZSH_VERSION+set}" ; then 38389 setopt NO_GLOB_SUBST 38390fi 38391 38392 38393 PACKAGE='$PACKAGE' 38394 VERSION='$VERSION' 38395 TIMESTAMP='$TIMESTAMP' 38396 RM='$RM' 38397 ofile='$ofile' 38398 38399 38400 38401 38402 38403 38404_ACEOF 38405 38406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38407 38408# Handling of arguments. 38409for ac_config_target in $ac_config_targets 38410do 38411 case $ac_config_target in 38412 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 38413 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38414 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38415 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38416 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 38417 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 38418 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 38419 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 38420 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 38421 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 38422 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 38423 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 38424 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 38425 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;; 38426 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 38427 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 38428 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 38429 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 38430 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 38431 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 38432 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 38433 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;; 38434 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;; 38435 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;; 38436 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;; 38437 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;; 38438 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;; 38439 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;; 38440 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;; 38441 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;; 38442 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;; 38443 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;; 38444 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 38445 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 38446 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 38447 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;; 38448 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;; 38449 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 38450 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;; 38451 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;; 38452 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;; 38453 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;; 38454 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;; 38455 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;; 38456 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 38457 38458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38459 esac 38460done 38461 38462 38463# If the user did not use the arguments to specify the items to instantiate, 38464# then the envvar interface is used. Set only those that are not. 38465# We use the long form for the default assignment because of an extremely 38466# bizarre bug on SunOS 4.1.3. 38467if $ac_need_defaults; then 38468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38471fi 38472 38473# Have a temporary directory for convenience. Make it in the build tree 38474# simply because there is no reason against having it here, and in addition, 38475# creating and moving files from /tmp can sometimes cause problems. 38476# Hook for its removal unless debugging. 38477# Note that there is a small window in which the directory will not be cleaned: 38478# after its creation but before its name has been assigned to `$tmp'. 38479$debug || 38480{ 38481 tmp= ac_tmp= 38482 trap 'exit_status=$? 38483 : "${ac_tmp:=$tmp}" 38484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 38485' 0 38486 trap 'as_fn_exit 1' 1 2 13 15 38487} 38488# Create a (secure) tmp directory for tmp files. 38489 38490{ 38491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38492 test -d "$tmp" 38493} || 38494{ 38495 tmp=./conf$$-$RANDOM 38496 (umask 077 && mkdir "$tmp") 38497} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 38498ac_tmp=$tmp 38499 38500# Set up the scripts for CONFIG_FILES section. 38501# No need to generate them if there are no CONFIG_FILES. 38502# This happens for instance with `./config.status config.h'. 38503if test -n "$CONFIG_FILES"; then 38504 38505if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 38506 ac_cs_awk_getline=: 38507 ac_cs_awk_pipe_init= 38508 ac_cs_awk_read_file=' 38509 while ((getline aline < (F[key])) > 0) 38510 print(aline) 38511 close(F[key])' 38512 ac_cs_awk_pipe_fini= 38513else 38514 ac_cs_awk_getline=false 38515 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 38516 ac_cs_awk_read_file=' 38517 print "|#_!!_#|" 38518 print "cat " F[key] " &&" 38519 '$ac_cs_awk_pipe_init 38520 # The final `:' finishes the AND list. 38521 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 38522fi 38523ac_cr=`echo X | tr X '\015'` 38524# On cygwin, bash can eat \r inside `` if the user requested igncr. 38525# But we know of no other shell where ac_cr would be empty at this 38526# point, so we can use a bashism as a fallback. 38527if test "x$ac_cr" = x; then 38528 eval ac_cr=\$\'\\r\' 38529fi 38530ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38531if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38532 ac_cs_awk_cr='\\r' 38533else 38534 ac_cs_awk_cr=$ac_cr 38535fi 38536 38537echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 38538_ACEOF 38539 38540# Create commands to substitute file output variables. 38541{ 38542 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 38543 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 38544 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 38545 echo "_ACAWK" && 38546 echo "_ACEOF" 38547} >conf$$files.sh && 38548. ./conf$$files.sh || 38549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38550rm -f conf$$files.sh 38551 38552{ 38553 echo "cat >conf$$subs.awk <<_ACEOF" && 38554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38555 echo "_ACEOF" 38556} >conf$$subs.sh || 38557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38558ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 38559ac_delim='%!_!# ' 38560for ac_last_try in false false false false false :; do 38561 . ./conf$$subs.sh || 38562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38563 38564 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38565 if test $ac_delim_n = $ac_delim_num; then 38566 break 38567 elif $ac_last_try; then 38568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38569 else 38570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38571 fi 38572done 38573rm -f conf$$subs.sh 38574 38575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38576cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 38577_ACEOF 38578sed -n ' 38579h 38580s/^/S["/; s/!.*/"]=/ 38581p 38582g 38583s/^[^!]*!// 38584:repl 38585t repl 38586s/'"$ac_delim"'$// 38587t delim 38588:nl 38589h 38590s/\(.\{148\}\)..*/\1/ 38591t more1 38592s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38593p 38594n 38595b repl 38596:more1 38597s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38598p 38599g 38600s/.\{148\}// 38601t nl 38602:delim 38603h 38604s/\(.\{148\}\)..*/\1/ 38605t more2 38606s/["\\]/\\&/g; s/^/"/; s/$/"/ 38607p 38608b 38609:more2 38610s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38611p 38612g 38613s/.\{148\}// 38614t delim 38615' <conf$$subs.awk | sed ' 38616/^[^""]/{ 38617 N 38618 s/\n// 38619} 38620' >>$CONFIG_STATUS || ac_write_fail=1 38621rm -f conf$$subs.awk 38622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38623_ACAWK 38624cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 38625 for (key in S) S_is_set[key] = 1 38626 FS = "" 38627 \$ac_cs_awk_pipe_init 38628} 38629{ 38630 line = $ 0 38631 nfields = split(line, field, "@") 38632 substed = 0 38633 len = length(field[1]) 38634 for (i = 2; i < nfields; i++) { 38635 key = field[i] 38636 keylen = length(key) 38637 if (S_is_set[key]) { 38638 value = S[key] 38639 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38640 len += length(value) + length(field[++i]) 38641 substed = 1 38642 } else 38643 len += 1 + keylen 38644 } 38645 if (nfields == 3 && !substed) { 38646 key = field[2] 38647 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 38648 \$ac_cs_awk_read_file 38649 next 38650 } 38651 } 38652 print line 38653} 38654\$ac_cs_awk_pipe_fini 38655_ACAWK 38656_ACEOF 38657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38660else 38661 cat 38662fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 38663 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 38664_ACEOF 38665 38666# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 38667# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 38668# trailing colons and then remove the whole line if VPATH becomes empty 38669# (actually we leave an empty line to preserve line numbers). 38670if test "x$srcdir" = x.; then 38671 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38672h 38673s/// 38674s/^/:/ 38675s/[ ]*$/:/ 38676s/:\$(srcdir):/:/g 38677s/:\${srcdir}:/:/g 38678s/:@srcdir@:/:/g 38679s/^:*// 38680s/:*$// 38681x 38682s/\(=[ ]*\).*/\1/ 38683G 38684s/\n// 38685s/^[^=]*=[ ]*$// 38686}' 38687fi 38688 38689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38690fi # test -n "$CONFIG_FILES" 38691 38692# Set up the scripts for CONFIG_HEADERS section. 38693# No need to generate them if there are no CONFIG_HEADERS. 38694# This happens for instance with `./config.status Makefile'. 38695if test -n "$CONFIG_HEADERS"; then 38696cat >"$ac_tmp/defines.awk" <<\_ACAWK || 38697BEGIN { 38698_ACEOF 38699 38700# Transform confdefs.h into an awk script `defines.awk', embedded as 38701# here-document in config.status, that substitutes the proper values into 38702# config.h.in to produce config.h. 38703 38704# Create a delimiter string that does not exist in confdefs.h, to ease 38705# handling of long lines. 38706ac_delim='%!_!# ' 38707for ac_last_try in false false :; do 38708 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 38709 if test -z "$ac_tt"; then 38710 break 38711 elif $ac_last_try; then 38712 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 38713 else 38714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38715 fi 38716done 38717 38718# For the awk script, D is an array of macro values keyed by name, 38719# likewise P contains macro parameters if any. Preserve backslash 38720# newline sequences. 38721 38722ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 38723sed -n ' 38724s/.\{148\}/&'"$ac_delim"'/g 38725t rset 38726:rset 38727s/^[ ]*#[ ]*define[ ][ ]*/ / 38728t def 38729d 38730:def 38731s/\\$// 38732t bsnl 38733s/["\\]/\\&/g 38734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38735D["\1"]=" \3"/p 38736s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 38737d 38738:bsnl 38739s/["\\]/\\&/g 38740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38741D["\1"]=" \3\\\\\\n"\\/p 38742t cont 38743s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 38744t cont 38745d 38746:cont 38747n 38748s/.\{148\}/&'"$ac_delim"'/g 38749t clear 38750:clear 38751s/\\$// 38752t bsnlc 38753s/["\\]/\\&/g; s/^/"/; s/$/"/p 38754d 38755:bsnlc 38756s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 38757b cont 38758' <confdefs.h | sed ' 38759s/'"$ac_delim"'/"\\\ 38760"/g' >>$CONFIG_STATUS || ac_write_fail=1 38761 38762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38763 for (key in D) D_is_set[key] = 1 38764 FS = "" 38765} 38766/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 38767 line = \$ 0 38768 split(line, arg, " ") 38769 if (arg[1] == "#") { 38770 defundef = arg[2] 38771 mac1 = arg[3] 38772 } else { 38773 defundef = substr(arg[1], 2) 38774 mac1 = arg[2] 38775 } 38776 split(mac1, mac2, "(") #) 38777 macro = mac2[1] 38778 prefix = substr(line, 1, index(line, defundef) - 1) 38779 if (D_is_set[macro]) { 38780 # Preserve the white space surrounding the "#". 38781 print prefix "define", macro P[macro] D[macro] 38782 next 38783 } else { 38784 # Replace #undef with comments. This is necessary, for example, 38785 # in the case of _POSIX_SOURCE, which is predefined and required 38786 # on some systems where configure will not decide to define it. 38787 if (defundef == "undef") { 38788 print "/*", prefix defundef, macro, "*/" 38789 next 38790 } 38791 } 38792} 38793{ print } 38794_ACAWK 38795_ACEOF 38796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38797 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 38798fi # test -n "$CONFIG_HEADERS" 38799 38800 38801eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 38802shift 38803for ac_tag 38804do 38805 case $ac_tag in 38806 :[FHLC]) ac_mode=$ac_tag; continue;; 38807 esac 38808 case $ac_mode$ac_tag in 38809 :[FHL]*:*);; 38810 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 38811 :[FH]-) ac_tag=-:-;; 38812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 38813 esac 38814 ac_save_IFS=$IFS 38815 IFS=: 38816 set x $ac_tag 38817 IFS=$ac_save_IFS 38818 shift 38819 ac_file=$1 38820 shift 38821 38822 case $ac_mode in 38823 :L) ac_source=$1;; 38824 :[FH]) 38825 ac_file_inputs= 38826 for ac_f 38827 do 38828 case $ac_f in 38829 -) ac_f="$ac_tmp/stdin";; 38830 *) # Look for the file first in the build tree, then in the source tree 38831 # (if the path is not absolute). The absolute path cannot be DOS-style, 38832 # because $ac_f cannot contain `:'. 38833 test -f "$ac_f" || 38834 case $ac_f in 38835 [\\/$]*) false;; 38836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 38837 esac || 38838 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 38839 esac 38840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 38841 as_fn_append ac_file_inputs " '$ac_f'" 38842 done 38843 38844 # Let's still pretend it is `configure' which instantiates (i.e., don't 38845 # use $as_me), people would be surprised to read: 38846 # /* config.h. Generated by config.status. */ 38847 configure_input='Generated from '` 38848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 38849 `' by configure.' 38850 if test x"$ac_file" != x-; then 38851 configure_input="$ac_file. $configure_input" 38852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 38853$as_echo "$as_me: creating $ac_file" >&6;} 38854 fi 38855 # Neutralize special characters interpreted by sed in replacement strings. 38856 case $configure_input in #( 38857 *\&* | *\|* | *\\* ) 38858 ac_sed_conf_input=`$as_echo "$configure_input" | 38859 sed 's/[\\\\&|]/\\\\&/g'`;; #( 38860 *) ac_sed_conf_input=$configure_input;; 38861 esac 38862 38863 case $ac_tag in 38864 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 38865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 38866 esac 38867 ;; 38868 esac 38869 38870 ac_dir=`$as_dirname -- "$ac_file" || 38871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38872 X"$ac_file" : 'X\(//\)[^/]' \| \ 38873 X"$ac_file" : 'X\(//\)$' \| \ 38874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38875$as_echo X"$ac_file" | 38876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38877 s//\1/ 38878 q 38879 } 38880 /^X\(\/\/\)[^/].*/{ 38881 s//\1/ 38882 q 38883 } 38884 /^X\(\/\/\)$/{ 38885 s//\1/ 38886 q 38887 } 38888 /^X\(\/\).*/{ 38889 s//\1/ 38890 q 38891 } 38892 s/.*/./; q'` 38893 as_dir="$ac_dir"; as_fn_mkdir_p 38894 ac_builddir=. 38895 38896case "$ac_dir" in 38897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 38898*) 38899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 38900 # A ".." for each directory in $ac_dir_suffix. 38901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 38902 case $ac_top_builddir_sub in 38903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 38904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 38905 esac ;; 38906esac 38907ac_abs_top_builddir=$ac_pwd 38908ac_abs_builddir=$ac_pwd$ac_dir_suffix 38909# for backward compatibility: 38910ac_top_builddir=$ac_top_build_prefix 38911 38912case $srcdir in 38913 .) # We are building in place. 38914 ac_srcdir=. 38915 ac_top_srcdir=$ac_top_builddir_sub 38916 ac_abs_top_srcdir=$ac_pwd ;; 38917 [\\/]* | ?:[\\/]* ) # Absolute name. 38918 ac_srcdir=$srcdir$ac_dir_suffix; 38919 ac_top_srcdir=$srcdir 38920 ac_abs_top_srcdir=$srcdir ;; 38921 *) # Relative name. 38922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 38923 ac_top_srcdir=$ac_top_build_prefix$srcdir 38924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 38925esac 38926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 38927 38928 38929 case $ac_mode in 38930 :F) 38931 # 38932 # CONFIG_FILE 38933 # 38934 38935 case $INSTALL in 38936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 38937 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 38938 esac 38939 ac_MKDIR_P=$MKDIR_P 38940 case $MKDIR_P in 38941 [\\/$]* | ?:[\\/]* ) ;; 38942 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 38943 esac 38944_ACEOF 38945 38946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38947# If the template does not know about datarootdir, expand it. 38948# FIXME: This hack should be removed a few years after 2.60. 38949ac_datarootdir_hack=; ac_datarootdir_seen= 38950ac_sed_dataroot=' 38951/datarootdir/ { 38952 p 38953 q 38954} 38955/@datadir@/p 38956/@docdir@/p 38957/@infodir@/p 38958/@localedir@/p 38959/@mandir@/p' 38960case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 38961*datarootdir*) ac_datarootdir_seen=yes;; 38962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 38963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 38964$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 38965_ACEOF 38966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38967 ac_datarootdir_hack=' 38968 s&@datadir@&$datadir&g 38969 s&@docdir@&$docdir&g 38970 s&@infodir@&$infodir&g 38971 s&@localedir@&$localedir&g 38972 s&@mandir@&$mandir&g 38973 s&\\\${datarootdir}&$datarootdir&g' ;; 38974esac 38975_ACEOF 38976 38977# Neutralize VPATH when `$srcdir' = `.'. 38978# Shell code in configure.ac might set extrasub. 38979# FIXME: do we really want to maintain this feature? 38980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38981ac_sed_extra="$ac_vpsub 38982$extrasub 38983_ACEOF 38984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38985:t 38986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 38987s|@configure_input@|$ac_sed_conf_input|;t t 38988s&@top_builddir@&$ac_top_builddir_sub&;t t 38989s&@top_build_prefix@&$ac_top_build_prefix&;t t 38990s&@srcdir@&$ac_srcdir&;t t 38991s&@abs_srcdir@&$ac_abs_srcdir&;t t 38992s&@top_srcdir@&$ac_top_srcdir&;t t 38993s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 38994s&@builddir@&$ac_builddir&;t t 38995s&@abs_builddir@&$ac_abs_builddir&;t t 38996s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 38997s&@INSTALL@&$ac_INSTALL&;t t 38998s&@MKDIR_P@&$ac_MKDIR_P&;t t 38999$ac_datarootdir_hack 39000" 39001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 39002if $ac_cs_awk_getline; then 39003 $AWK -f "$ac_tmp/subs.awk" 39004else 39005 $AWK -f "$ac_tmp/subs.awk" | $SHELL 39006fi \ 39007 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39008 39009test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 39010 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 39011 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 39012 "$ac_tmp/out"`; test -z "$ac_out"; } && 39013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39014which seems to be undefined. Please make sure it is defined" >&5 39015$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39016which seems to be undefined. Please make sure it is defined" >&2;} 39017 39018 rm -f "$ac_tmp/stdin" 39019 case $ac_file in 39020 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 39021 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 39022 esac \ 39023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39024 ;; 39025 :H) 39026 # 39027 # CONFIG_HEADER 39028 # 39029 if test x"$ac_file" != x-; then 39030 { 39031 $as_echo "/* $configure_input */" \ 39032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 39033 } >"$ac_tmp/config.h" \ 39034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39035 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 39036 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 39037$as_echo "$as_me: $ac_file is unchanged" >&6;} 39038 else 39039 rm -f "$ac_file" 39040 mv "$ac_tmp/config.h" "$ac_file" \ 39041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39042 fi 39043 else 39044 $as_echo "/* $configure_input */" \ 39045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 39046 || as_fn_error $? "could not create -" "$LINENO" 5 39047 fi 39048# Compute "$ac_file"'s index in $config_headers. 39049_am_arg="$ac_file" 39050_am_stamp_count=1 39051for _am_header in $config_headers :; do 39052 case $_am_header in 39053 $_am_arg | $_am_arg:* ) 39054 break ;; 39055 * ) 39056 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 39057 esac 39058done 39059echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 39060$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39061 X"$_am_arg" : 'X\(//\)[^/]' \| \ 39062 X"$_am_arg" : 'X\(//\)$' \| \ 39063 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 39064$as_echo X"$_am_arg" | 39065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39066 s//\1/ 39067 q 39068 } 39069 /^X\(\/\/\)[^/].*/{ 39070 s//\1/ 39071 q 39072 } 39073 /^X\(\/\/\)$/{ 39074 s//\1/ 39075 q 39076 } 39077 /^X\(\/\).*/{ 39078 s//\1/ 39079 q 39080 } 39081 s/.*/./; q'`/stamp-h$_am_stamp_count 39082 ;; 39083 39084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 39085$as_echo "$as_me: executing $ac_file commands" >&6;} 39086 ;; 39087 esac 39088 39089 39090 case $ac_file$ac_mode in 39091 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 39092 # Older Autoconf quotes --file arguments for eval, but not when files 39093 # are listed without --file. Let's play safe and only enable the eval 39094 # if we detect the quoting. 39095 case $CONFIG_FILES in 39096 *\'*) eval set x "$CONFIG_FILES" ;; 39097 *) set x $CONFIG_FILES ;; 39098 esac 39099 shift 39100 for mf 39101 do 39102 # Strip MF so we end up with the name of the file. 39103 mf=`echo "$mf" | sed -e 's/:.*$//'` 39104 # Check whether this is an Automake generated Makefile or not. 39105 # We used to match only the files named 'Makefile.in', but 39106 # some people rename them; so instead we look at the file content. 39107 # Grep'ing the first line is not enough: some people post-process 39108 # each Makefile.in and add a new line on top of each file to say so. 39109 # Grep'ing the whole file is not good either: AIX grep has a line 39110 # limit of 2048, but all sed's we know have understand at least 4000. 39111 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 39112 dirpart=`$as_dirname -- "$mf" || 39113$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39114 X"$mf" : 'X\(//\)[^/]' \| \ 39115 X"$mf" : 'X\(//\)$' \| \ 39116 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 39117$as_echo X"$mf" | 39118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39119 s//\1/ 39120 q 39121 } 39122 /^X\(\/\/\)[^/].*/{ 39123 s//\1/ 39124 q 39125 } 39126 /^X\(\/\/\)$/{ 39127 s//\1/ 39128 q 39129 } 39130 /^X\(\/\).*/{ 39131 s//\1/ 39132 q 39133 } 39134 s/.*/./; q'` 39135 else 39136 continue 39137 fi 39138 # Extract the definition of DEPDIR, am__include, and am__quote 39139 # from the Makefile without running 'make'. 39140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 39141 test -z "$DEPDIR" && continue 39142 am__include=`sed -n 's/^am__include = //p' < "$mf"` 39143 test -z "$am__include" && continue 39144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 39145 # Find all dependency output files, they are included files with 39146 # $(DEPDIR) in their names. We invoke sed twice because it is the 39147 # simplest approach to changing $(DEPDIR) to its actual value in the 39148 # expansion. 39149 for file in `sed -n " 39150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 39151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 39152 # Make sure the directory exists. 39153 test -f "$dirpart/$file" && continue 39154 fdir=`$as_dirname -- "$file" || 39155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39156 X"$file" : 'X\(//\)[^/]' \| \ 39157 X"$file" : 'X\(//\)$' \| \ 39158 X"$file" : 'X\(/\)' \| . 2>/dev/null || 39159$as_echo X"$file" | 39160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39161 s//\1/ 39162 q 39163 } 39164 /^X\(\/\/\)[^/].*/{ 39165 s//\1/ 39166 q 39167 } 39168 /^X\(\/\/\)$/{ 39169 s//\1/ 39170 q 39171 } 39172 /^X\(\/\).*/{ 39173 s//\1/ 39174 q 39175 } 39176 s/.*/./; q'` 39177 as_dir=$dirpart/$fdir; as_fn_mkdir_p 39178 # echo "creating $dirpart/$file" 39179 echo '# dummy' > "$dirpart/$file" 39180 done 39181 done 39182} 39183 ;; 39184 "libtool":C) 39185 39186 # See if we are running on zsh, and set the options which allow our 39187 # commands through without removal of \ escapes. 39188 if test -n "${ZSH_VERSION+set}" ; then 39189 setopt NO_GLOB_SUBST 39190 fi 39191 39192 cfgfile="${ofile}T" 39193 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 39194 $RM "$cfgfile" 39195 39196 cat <<_LT_EOF >> "$cfgfile" 39197#! $SHELL 39198 39199# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 39200# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 39201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39202# NOTE: Changes made to this file will be lost: look at ltmain.sh. 39203# 39204# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 39205# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 39206# Inc. 39207# Written by Gordon Matzigkeit, 1996 39208# 39209# This file is part of GNU Libtool. 39210# 39211# GNU Libtool is free software; you can redistribute it and/or 39212# modify it under the terms of the GNU General Public License as 39213# published by the Free Software Foundation; either version 2 of 39214# the License, or (at your option) any later version. 39215# 39216# As a special exception to the GNU General Public License, 39217# if you distribute this file as part of a program or library that 39218# is built using GNU Libtool, you may include this file under the 39219# same distribution terms that you use for the rest of that program. 39220# 39221# GNU Libtool is distributed in the hope that it will be useful, 39222# but WITHOUT ANY WARRANTY; without even the implied warranty of 39223# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39224# GNU General Public License for more details. 39225# 39226# You should have received a copy of the GNU General Public License 39227# along with GNU Libtool; see the file COPYING. If not, a copy 39228# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 39229# obtained by writing to the Free Software Foundation, Inc., 39230# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 39231 39232 39233# The names of the tagged configurations supported by this script. 39234available_tags="CXX " 39235 39236# ### BEGIN LIBTOOL CONFIG 39237 39238# Whether or not to build shared libraries. 39239build_libtool_libs=$enable_shared 39240 39241# Which release of libtool.m4 was used? 39242macro_version=$macro_version 39243macro_revision=$macro_revision 39244 39245# Whether or not to build static libraries. 39246build_old_libs=$enable_static 39247 39248# What type of objects to build. 39249pic_mode=$pic_mode 39250 39251# Whether or not to optimize for fast installation. 39252fast_install=$enable_fast_install 39253 39254# Shell to use when invoking shell scripts. 39255SHELL=$lt_SHELL 39256 39257# An echo program that protects backslashes. 39258ECHO=$lt_ECHO 39259 39260# The host system. 39261host_alias=$host_alias 39262host=$host 39263host_os=$host_os 39264 39265# The build system. 39266build_alias=$build_alias 39267build=$build 39268build_os=$build_os 39269 39270# A sed program that does not truncate output. 39271SED=$lt_SED 39272 39273# Sed that helps us avoid accidentally triggering echo(1) options like -n. 39274Xsed="\$SED -e 1s/^X//" 39275 39276# A grep program that handles long lines. 39277GREP=$lt_GREP 39278 39279# An ERE matcher. 39280EGREP=$lt_EGREP 39281 39282# A literal string matcher. 39283FGREP=$lt_FGREP 39284 39285# A BSD- or MS-compatible name lister. 39286NM=$lt_NM 39287 39288# Whether we need soft or hard links. 39289LN_S=$lt_LN_S 39290 39291# What is the maximum length of a command? 39292max_cmd_len=$max_cmd_len 39293 39294# Object file suffix (normally "o"). 39295objext=$ac_objext 39296 39297# Executable file suffix (normally ""). 39298exeext=$exeext 39299 39300# whether the shell understands "unset". 39301lt_unset=$lt_unset 39302 39303# turn spaces into newlines. 39304SP2NL=$lt_lt_SP2NL 39305 39306# turn newlines into spaces. 39307NL2SP=$lt_lt_NL2SP 39308 39309# convert \$build file names to \$host format. 39310to_host_file_cmd=$lt_cv_to_host_file_cmd 39311 39312# convert \$build files to toolchain format. 39313to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39314 39315# An object symbol dumper. 39316OBJDUMP=$lt_OBJDUMP 39317 39318# Method to check whether dependent libraries are shared objects. 39319deplibs_check_method=$lt_deplibs_check_method 39320 39321# Command to use when deplibs_check_method = "file_magic". 39322file_magic_cmd=$lt_file_magic_cmd 39323 39324# How to find potential files when deplibs_check_method = "file_magic". 39325file_magic_glob=$lt_file_magic_glob 39326 39327# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39328want_nocaseglob=$lt_want_nocaseglob 39329 39330# DLL creation program. 39331DLLTOOL=$lt_DLLTOOL 39332 39333# Command to associate shared and link libraries. 39334sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 39335 39336# The archiver. 39337AR=$lt_AR 39338 39339# Flags to create an archive. 39340AR_FLAGS=$lt_AR_FLAGS 39341 39342# How to feed a file listing to the archiver. 39343archiver_list_spec=$lt_archiver_list_spec 39344 39345# A symbol stripping program. 39346STRIP=$lt_STRIP 39347 39348# Commands used to install an old-style archive. 39349RANLIB=$lt_RANLIB 39350old_postinstall_cmds=$lt_old_postinstall_cmds 39351old_postuninstall_cmds=$lt_old_postuninstall_cmds 39352 39353# Whether to use a lock for old archive extraction. 39354lock_old_archive_extraction=$lock_old_archive_extraction 39355 39356# A C compiler. 39357LTCC=$lt_CC 39358 39359# LTCC compiler flags. 39360LTCFLAGS=$lt_CFLAGS 39361 39362# Take the output of nm and produce a listing of raw symbols and C names. 39363global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 39364 39365# Transform the output of nm in a proper C declaration. 39366global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 39367 39368# Transform the output of nm in a C name address pair. 39369global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 39370 39371# Transform the output of nm in a C name address pair when lib prefix is needed. 39372global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 39373 39374# Specify filename containing input files for \$NM. 39375nm_file_list_spec=$lt_nm_file_list_spec 39376 39377# The root where to search for dependent libraries,and in which our libraries should be installed. 39378lt_sysroot=$lt_sysroot 39379 39380# The name of the directory that contains temporary libtool files. 39381objdir=$objdir 39382 39383# Used to examine libraries when file_magic_cmd begins with "file". 39384MAGIC_CMD=$MAGIC_CMD 39385 39386# Must we lock files when doing compilation? 39387need_locks=$lt_need_locks 39388 39389# Manifest tool. 39390MANIFEST_TOOL=$lt_MANIFEST_TOOL 39391 39392# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 39393DSYMUTIL=$lt_DSYMUTIL 39394 39395# Tool to change global to local symbols on Mac OS X. 39396NMEDIT=$lt_NMEDIT 39397 39398# Tool to manipulate fat objects and archives on Mac OS X. 39399LIPO=$lt_LIPO 39400 39401# ldd/readelf like tool for Mach-O binaries on Mac OS X. 39402OTOOL=$lt_OTOOL 39403 39404# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 39405OTOOL64=$lt_OTOOL64 39406 39407# Old archive suffix (normally "a"). 39408libext=$libext 39409 39410# Shared library suffix (normally ".so"). 39411shrext_cmds=$lt_shrext_cmds 39412 39413# The commands to extract the exported symbol list from a shared archive. 39414extract_expsyms_cmds=$lt_extract_expsyms_cmds 39415 39416# Variables whose values should be saved in libtool wrapper scripts and 39417# restored at link time. 39418variables_saved_for_relink=$lt_variables_saved_for_relink 39419 39420# Do we need the "lib" prefix for modules? 39421need_lib_prefix=$need_lib_prefix 39422 39423# Do we need a version for libraries? 39424need_version=$need_version 39425 39426# Library versioning type. 39427version_type=$version_type 39428 39429# Shared library runtime path variable. 39430runpath_var=$runpath_var 39431 39432# Shared library path variable. 39433shlibpath_var=$shlibpath_var 39434 39435# Is shlibpath searched before the hard-coded library search path? 39436shlibpath_overrides_runpath=$shlibpath_overrides_runpath 39437 39438# Format of library name prefix. 39439libname_spec=$lt_libname_spec 39440 39441# List of archive names. First name is the real one, the rest are links. 39442# The last name is the one that the linker finds with -lNAME 39443library_names_spec=$lt_library_names_spec 39444 39445# The coded name of the library, if different from the real name. 39446soname_spec=$lt_soname_spec 39447 39448# Permission mode override for installation of shared libraries. 39449install_override_mode=$lt_install_override_mode 39450 39451# Command to use after installation of a shared archive. 39452postinstall_cmds=$lt_postinstall_cmds 39453 39454# Command to use after uninstallation of a shared archive. 39455postuninstall_cmds=$lt_postuninstall_cmds 39456 39457# Commands used to finish a libtool library installation in a directory. 39458finish_cmds=$lt_finish_cmds 39459 39460# As "finish_cmds", except a single script fragment to be evaled but 39461# not shown. 39462finish_eval=$lt_finish_eval 39463 39464# Whether we should hardcode library paths into libraries. 39465hardcode_into_libs=$hardcode_into_libs 39466 39467# Compile-time system search path for libraries. 39468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39469 39470# Run-time system search path for libraries. 39471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 39472 39473# Whether dlopen is supported. 39474dlopen_support=$enable_dlopen 39475 39476# Whether dlopen of programs is supported. 39477dlopen_self=$enable_dlopen_self 39478 39479# Whether dlopen of statically linked programs is supported. 39480dlopen_self_static=$enable_dlopen_self_static 39481 39482# Commands to strip libraries. 39483old_striplib=$lt_old_striplib 39484striplib=$lt_striplib 39485 39486 39487# The linker used to build libraries. 39488LD=$lt_LD 39489 39490# How to create reloadable object files. 39491reload_flag=$lt_reload_flag 39492reload_cmds=$lt_reload_cmds 39493 39494# Commands used to build an old-style archive. 39495old_archive_cmds=$lt_old_archive_cmds 39496 39497# A language specific compiler. 39498CC=$lt_compiler 39499 39500# Is the compiler the GNU compiler? 39501with_gcc=$GCC 39502 39503# Compiler flag to turn off builtin functions. 39504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39505 39506# Additional compiler flags for building library objects. 39507pic_flag=$lt_lt_prog_compiler_pic 39508 39509# How to pass a linker flag through the compiler. 39510wl=$lt_lt_prog_compiler_wl 39511 39512# Compiler flag to prevent dynamic linking. 39513link_static_flag=$lt_lt_prog_compiler_static 39514 39515# Does compiler simultaneously support -c and -o options? 39516compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39517 39518# Whether or not to add -lc for building shared libraries. 39519build_libtool_need_lc=$archive_cmds_need_lc 39520 39521# Whether or not to disallow shared libs when runtime libs are static. 39522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39523 39524# Compiler flag to allow reflexive dlopens. 39525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39526 39527# Compiler flag to generate shared objects directly from archives. 39528whole_archive_flag_spec=$lt_whole_archive_flag_spec 39529 39530# Whether the compiler copes with passing no objects directly. 39531compiler_needs_object=$lt_compiler_needs_object 39532 39533# Create an old-style archive from a shared archive. 39534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39535 39536# Create a temporary old-style archive to link instead of a shared archive. 39537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39538 39539# Commands used to build a shared archive. 39540archive_cmds=$lt_archive_cmds 39541archive_expsym_cmds=$lt_archive_expsym_cmds 39542 39543# Commands used to build a loadable module if different from building 39544# a shared archive. 39545module_cmds=$lt_module_cmds 39546module_expsym_cmds=$lt_module_expsym_cmds 39547 39548# Whether we are building with GNU ld or not. 39549with_gnu_ld=$lt_with_gnu_ld 39550 39551# Flag that allows shared libraries with undefined symbols to be built. 39552allow_undefined_flag=$lt_allow_undefined_flag 39553 39554# Flag that enforces no undefined symbols. 39555no_undefined_flag=$lt_no_undefined_flag 39556 39557# Flag to hardcode \$libdir into a binary during linking. 39558# This must work even if \$libdir does not exist 39559hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39560 39561# If ld is used when linking, flag to hardcode \$libdir into a binary 39562# during linking. This must work even if \$libdir does not exist. 39563hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 39564 39565# Whether we need a single "-rpath" flag with a separated argument. 39566hardcode_libdir_separator=$lt_hardcode_libdir_separator 39567 39568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39569# DIR into the resulting binary. 39570hardcode_direct=$hardcode_direct 39571 39572# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39573# DIR into the resulting binary and the resulting library dependency is 39574# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 39575# library is relocated. 39576hardcode_direct_absolute=$hardcode_direct_absolute 39577 39578# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39579# into the resulting binary. 39580hardcode_minus_L=$hardcode_minus_L 39581 39582# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39583# into the resulting binary. 39584hardcode_shlibpath_var=$hardcode_shlibpath_var 39585 39586# Set to "yes" if building a shared library automatically hardcodes DIR 39587# into the library and all subsequent libraries and executables linked 39588# against it. 39589hardcode_automatic=$hardcode_automatic 39590 39591# Set to yes if linker adds runtime paths of dependent libraries 39592# to runtime path list. 39593inherit_rpath=$inherit_rpath 39594 39595# Whether libtool must link a program against all its dependency libraries. 39596link_all_deplibs=$link_all_deplibs 39597 39598# Set to "yes" if exported symbols are required. 39599always_export_symbols=$always_export_symbols 39600 39601# The commands to list exported symbols. 39602export_symbols_cmds=$lt_export_symbols_cmds 39603 39604# Symbols that should not be listed in the preloaded symbols. 39605exclude_expsyms=$lt_exclude_expsyms 39606 39607# Symbols that must always be exported. 39608include_expsyms=$lt_include_expsyms 39609 39610# Commands necessary for linking programs (against libraries) with templates. 39611prelink_cmds=$lt_prelink_cmds 39612 39613# Commands necessary for finishing linking programs. 39614postlink_cmds=$lt_postlink_cmds 39615 39616# Specify filename containing input files. 39617file_list_spec=$lt_file_list_spec 39618 39619# How to hardcode a shared library path into an executable. 39620hardcode_action=$hardcode_action 39621 39622# The directories searched by this compiler when creating a shared library. 39623compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 39624 39625# Dependencies to place before and after the objects being linked to 39626# create a shared library. 39627predep_objects=$lt_predep_objects 39628postdep_objects=$lt_postdep_objects 39629predeps=$lt_predeps 39630postdeps=$lt_postdeps 39631 39632# The library search path used internally by the compiler when linking 39633# a shared library. 39634compiler_lib_search_path=$lt_compiler_lib_search_path 39635 39636# ### END LIBTOOL CONFIG 39637 39638_LT_EOF 39639 39640 case $host_os in 39641 aix3*) 39642 cat <<\_LT_EOF >> "$cfgfile" 39643# AIX sometimes has problems with the GCC collect2 program. For some 39644# reason, if we set the COLLECT_NAMES environment variable, the problems 39645# vanish in a puff of smoke. 39646if test "X${COLLECT_NAMES+set}" != Xset; then 39647 COLLECT_NAMES= 39648 export COLLECT_NAMES 39649fi 39650_LT_EOF 39651 ;; 39652 esac 39653 39654 39655ltmain="$ac_aux_dir/ltmain.sh" 39656 39657 39658 # We use sed instead of cat because bash on DJGPP gets confused if 39659 # if finds mixed CR/LF and LF-only lines. Since sed operates in 39660 # text mode, it properly converts lines to CR/LF. This bash problem 39661 # is reportedly fixed, but why not run on old versions too? 39662 sed '$q' "$ltmain" >> "$cfgfile" \ 39663 || (rm -f "$cfgfile"; exit 1) 39664 39665 if test x"$xsi_shell" = xyes; then 39666 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 39667func_dirname ()\ 39668{\ 39669\ case ${1} in\ 39670\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39671\ * ) func_dirname_result="${3}" ;;\ 39672\ esac\ 39673} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 39674 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39676test 0 -eq $? || _lt_function_replace_fail=: 39677 39678 39679 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 39680func_basename ()\ 39681{\ 39682\ func_basename_result="${1##*/}"\ 39683} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39684 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39686test 0 -eq $? || _lt_function_replace_fail=: 39687 39688 39689 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 39690func_dirname_and_basename ()\ 39691{\ 39692\ case ${1} in\ 39693\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39694\ * ) func_dirname_result="${3}" ;;\ 39695\ esac\ 39696\ func_basename_result="${1##*/}"\ 39697} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39698 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39700test 0 -eq $? || _lt_function_replace_fail=: 39701 39702 39703 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 39704func_stripname ()\ 39705{\ 39706\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 39707\ # positional parameters, so assign one to ordinary parameter first.\ 39708\ func_stripname_result=${3}\ 39709\ func_stripname_result=${func_stripname_result#"${1}"}\ 39710\ func_stripname_result=${func_stripname_result%"${2}"}\ 39711} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 39712 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39714test 0 -eq $? || _lt_function_replace_fail=: 39715 39716 39717 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 39718func_split_long_opt ()\ 39719{\ 39720\ func_split_long_opt_name=${1%%=*}\ 39721\ func_split_long_opt_arg=${1#*=}\ 39722} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39723 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39725test 0 -eq $? || _lt_function_replace_fail=: 39726 39727 39728 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 39729func_split_short_opt ()\ 39730{\ 39731\ func_split_short_opt_arg=${1#??}\ 39732\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 39733} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39734 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39736test 0 -eq $? || _lt_function_replace_fail=: 39737 39738 39739 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 39740func_lo2o ()\ 39741{\ 39742\ case ${1} in\ 39743\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 39744\ *) func_lo2o_result=${1} ;;\ 39745\ esac\ 39746} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 39747 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39749test 0 -eq $? || _lt_function_replace_fail=: 39750 39751 39752 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 39753func_xform ()\ 39754{\ 39755 func_xform_result=${1%.*}.lo\ 39756} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 39757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39759test 0 -eq $? || _lt_function_replace_fail=: 39760 39761 39762 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 39763func_arith ()\ 39764{\ 39765 func_arith_result=$(( $* ))\ 39766} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 39767 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39769test 0 -eq $? || _lt_function_replace_fail=: 39770 39771 39772 sed -e '/^func_len ()$/,/^} # func_len /c\ 39773func_len ()\ 39774{\ 39775 func_len_result=${#1}\ 39776} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 39777 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39779test 0 -eq $? || _lt_function_replace_fail=: 39780 39781fi 39782 39783if test x"$lt_shell_append" = xyes; then 39784 sed -e '/^func_append ()$/,/^} # func_append /c\ 39785func_append ()\ 39786{\ 39787 eval "${1}+=\\${2}"\ 39788} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 39789 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39791test 0 -eq $? || _lt_function_replace_fail=: 39792 39793 39794 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 39795func_append_quoted ()\ 39796{\ 39797\ func_quote_for_eval "${2}"\ 39798\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 39799} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 39800 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39802test 0 -eq $? || _lt_function_replace_fail=: 39803 39804 39805 # Save a `func_append' function call where possible by direct use of '+=' 39806 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 39807 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39809 test 0 -eq $? || _lt_function_replace_fail=: 39810else 39811 # Save a `func_append' function call even when '+=' is not available 39812 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 39813 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39815 test 0 -eq $? || _lt_function_replace_fail=: 39816fi 39817 39818if test x"$_lt_function_replace_fail" = x":"; then 39819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 39820$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 39821fi 39822 39823 39824 mv -f "$cfgfile" "$ofile" || 39825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 39826 chmod +x "$ofile" 39827 39828 39829 cat <<_LT_EOF >> "$ofile" 39830 39831# ### BEGIN LIBTOOL TAG CONFIG: CXX 39832 39833# The linker used to build libraries. 39834LD=$lt_LD_CXX 39835 39836# How to create reloadable object files. 39837reload_flag=$lt_reload_flag_CXX 39838reload_cmds=$lt_reload_cmds_CXX 39839 39840# Commands used to build an old-style archive. 39841old_archive_cmds=$lt_old_archive_cmds_CXX 39842 39843# A language specific compiler. 39844CC=$lt_compiler_CXX 39845 39846# Is the compiler the GNU compiler? 39847with_gcc=$GCC_CXX 39848 39849# Compiler flag to turn off builtin functions. 39850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 39851 39852# Additional compiler flags for building library objects. 39853pic_flag=$lt_lt_prog_compiler_pic_CXX 39854 39855# How to pass a linker flag through the compiler. 39856wl=$lt_lt_prog_compiler_wl_CXX 39857 39858# Compiler flag to prevent dynamic linking. 39859link_static_flag=$lt_lt_prog_compiler_static_CXX 39860 39861# Does compiler simultaneously support -c and -o options? 39862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 39863 39864# Whether or not to add -lc for building shared libraries. 39865build_libtool_need_lc=$archive_cmds_need_lc_CXX 39866 39867# Whether or not to disallow shared libs when runtime libs are static. 39868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 39869 39870# Compiler flag to allow reflexive dlopens. 39871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 39872 39873# Compiler flag to generate shared objects directly from archives. 39874whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 39875 39876# Whether the compiler copes with passing no objects directly. 39877compiler_needs_object=$lt_compiler_needs_object_CXX 39878 39879# Create an old-style archive from a shared archive. 39880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 39881 39882# Create a temporary old-style archive to link instead of a shared archive. 39883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 39884 39885# Commands used to build a shared archive. 39886archive_cmds=$lt_archive_cmds_CXX 39887archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 39888 39889# Commands used to build a loadable module if different from building 39890# a shared archive. 39891module_cmds=$lt_module_cmds_CXX 39892module_expsym_cmds=$lt_module_expsym_cmds_CXX 39893 39894# Whether we are building with GNU ld or not. 39895with_gnu_ld=$lt_with_gnu_ld_CXX 39896 39897# Flag that allows shared libraries with undefined symbols to be built. 39898allow_undefined_flag=$lt_allow_undefined_flag_CXX 39899 39900# Flag that enforces no undefined symbols. 39901no_undefined_flag=$lt_no_undefined_flag_CXX 39902 39903# Flag to hardcode \$libdir into a binary during linking. 39904# This must work even if \$libdir does not exist 39905hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 39906 39907# If ld is used when linking, flag to hardcode \$libdir into a binary 39908# during linking. This must work even if \$libdir does not exist. 39909hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 39910 39911# Whether we need a single "-rpath" flag with a separated argument. 39912hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 39913 39914# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39915# DIR into the resulting binary. 39916hardcode_direct=$hardcode_direct_CXX 39917 39918# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39919# DIR into the resulting binary and the resulting library dependency is 39920# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 39921# library is relocated. 39922hardcode_direct_absolute=$hardcode_direct_absolute_CXX 39923 39924# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39925# into the resulting binary. 39926hardcode_minus_L=$hardcode_minus_L_CXX 39927 39928# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39929# into the resulting binary. 39930hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 39931 39932# Set to "yes" if building a shared library automatically hardcodes DIR 39933# into the library and all subsequent libraries and executables linked 39934# against it. 39935hardcode_automatic=$hardcode_automatic_CXX 39936 39937# Set to yes if linker adds runtime paths of dependent libraries 39938# to runtime path list. 39939inherit_rpath=$inherit_rpath_CXX 39940 39941# Whether libtool must link a program against all its dependency libraries. 39942link_all_deplibs=$link_all_deplibs_CXX 39943 39944# Set to "yes" if exported symbols are required. 39945always_export_symbols=$always_export_symbols_CXX 39946 39947# The commands to list exported symbols. 39948export_symbols_cmds=$lt_export_symbols_cmds_CXX 39949 39950# Symbols that should not be listed in the preloaded symbols. 39951exclude_expsyms=$lt_exclude_expsyms_CXX 39952 39953# Symbols that must always be exported. 39954include_expsyms=$lt_include_expsyms_CXX 39955 39956# Commands necessary for linking programs (against libraries) with templates. 39957prelink_cmds=$lt_prelink_cmds_CXX 39958 39959# Commands necessary for finishing linking programs. 39960postlink_cmds=$lt_postlink_cmds_CXX 39961 39962# Specify filename containing input files. 39963file_list_spec=$lt_file_list_spec_CXX 39964 39965# How to hardcode a shared library path into an executable. 39966hardcode_action=$hardcode_action_CXX 39967 39968# The directories searched by this compiler when creating a shared library. 39969compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 39970 39971# Dependencies to place before and after the objects being linked to 39972# create a shared library. 39973predep_objects=$lt_predep_objects_CXX 39974postdep_objects=$lt_postdep_objects_CXX 39975predeps=$lt_predeps_CXX 39976postdeps=$lt_postdeps_CXX 39977 39978# The library search path used internally by the compiler when linking 39979# a shared library. 39980compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 39981 39982# ### END LIBTOOL TAG CONFIG: CXX 39983_LT_EOF 39984 39985 ;; 39986 "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 ;; 39987 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 39988 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;; 39989 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;; 39990 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;; 39991 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;; 39992 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;; 39993 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 39994 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 39995 "scripts/summary":F) chmod +x scripts/summary ;; 39996 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;; 39997 39998 esac 39999done # for ac_tag 40000 40001 40002as_fn_exit 0 40003_ACEOF 40004ac_clean_files=$ac_clean_files_save 40005 40006test $ac_write_fail = 0 || 40007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 40008 40009 40010# configure is writing to config.log, and then calls config.status. 40011# config.status does its own redirection, appending to config.log. 40012# Unfortunately, on DOS this fails, as config.log is still kept open 40013# by configure, so config.status won't be able to write to it; its 40014# output is simply discarded. So we exec the FD to /dev/null, 40015# effectively closing config.log, so it can be properly (re)opened and 40016# appended to by config.status. When coming back to configure, we 40017# need to make the FD available again. 40018if test "$no_create" != yes; then 40019 ac_cs_success=: 40020 ac_config_status_args= 40021 test "$silent" = yes && 40022 ac_config_status_args="$ac_config_status_args --quiet" 40023 exec 5>/dev/null 40024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 40025 exec 5>>config.log 40026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 40027 # would make configure fail if this is the last instruction. 40028 $ac_cs_success || as_fn_exit 1 40029fi 40030 40031# 40032# CONFIG_SUBDIRS section. 40033# 40034if test "$no_recursion" != yes; then 40035 40036 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 40037 # so they do not pile up. 40038 ac_sub_configure_args= 40039 ac_prev= 40040 eval "set x $ac_configure_args" 40041 shift 40042 for ac_arg 40043 do 40044 if test -n "$ac_prev"; then 40045 ac_prev= 40046 continue 40047 fi 40048 case $ac_arg in 40049 -cache-file | --cache-file | --cache-fil | --cache-fi \ 40050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 40051 ac_prev=cache_file ;; 40052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 40053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 40054 | --c=*) 40055 ;; 40056 --config-cache | -C) 40057 ;; 40058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 40059 ac_prev=srcdir ;; 40060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 40061 ;; 40062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 40063 ac_prev=prefix ;; 40064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 40065 ;; 40066 --disable-option-checking) 40067 ;; 40068 *) 40069 case $ac_arg in 40070 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40071 esac 40072 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 40073 esac 40074 done 40075 40076 # Always prepend --prefix to ensure using the same prefix 40077 # in subdir configurations. 40078 ac_arg="--prefix=$prefix" 40079 case $ac_arg in 40080 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40081 esac 40082 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 40083 40084 # Pass --silent 40085 if test "$silent" = yes; then 40086 ac_sub_configure_args="--silent $ac_sub_configure_args" 40087 fi 40088 40089 # Always prepend --disable-option-checking to silence warnings, since 40090 # different subdirs can have different --enable and --with options. 40091 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 40092 40093 ac_popdir=`pwd` 40094 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 40095 40096 # Do not complain, so a configure script can configure whichever 40097 # parts of a large source tree are present. 40098 test -d "$srcdir/$ac_dir" || continue 40099 40100 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 40101 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 40102 $as_echo "$ac_msg" >&6 40103 as_dir="$ac_dir"; as_fn_mkdir_p 40104 ac_builddir=. 40105 40106case "$ac_dir" in 40107.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 40108*) 40109 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 40110 # A ".." for each directory in $ac_dir_suffix. 40111 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 40112 case $ac_top_builddir_sub in 40113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 40114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 40115 esac ;; 40116esac 40117ac_abs_top_builddir=$ac_pwd 40118ac_abs_builddir=$ac_pwd$ac_dir_suffix 40119# for backward compatibility: 40120ac_top_builddir=$ac_top_build_prefix 40121 40122case $srcdir in 40123 .) # We are building in place. 40124 ac_srcdir=. 40125 ac_top_srcdir=$ac_top_builddir_sub 40126 ac_abs_top_srcdir=$ac_pwd ;; 40127 [\\/]* | ?:[\\/]* ) # Absolute name. 40128 ac_srcdir=$srcdir$ac_dir_suffix; 40129 ac_top_srcdir=$srcdir 40130 ac_abs_top_srcdir=$srcdir ;; 40131 *) # Relative name. 40132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 40133 ac_top_srcdir=$ac_top_build_prefix$srcdir 40134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 40135esac 40136ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 40137 40138 40139 cd "$ac_dir" 40140 40141 # Check for guested configure; otherwise get Cygnus style configure. 40142 if test -f "$ac_srcdir/configure.gnu"; then 40143 ac_sub_configure=$ac_srcdir/configure.gnu 40144 elif test -f "$ac_srcdir/configure"; then 40145 ac_sub_configure=$ac_srcdir/configure 40146 elif test -f "$ac_srcdir/configure.in"; then 40147 # This should be Cygnus configure. 40148 ac_sub_configure=$ac_aux_dir/configure 40149 else 40150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 40151$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 40152 ac_sub_configure= 40153 fi 40154 40155 # The recursion is here. 40156 if test -n "$ac_sub_configure"; then 40157 # Make the cache file name correct relative to the subdirectory. 40158 case $cache_file in 40159 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 40160 *) # Relative name. 40161 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 40162 esac 40163 40164 { $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 40165$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 40166 # The eval makes quoting arguments work. 40167 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 40168 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 40169 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 40170 fi 40171 40172 cd "$ac_popdir" 40173 done 40174fi 40175if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 40176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 40177$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 40178fi 40179 40180