2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p12.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $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
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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
201 test \$(( 1 + 1 )) = 2 || exit 1
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 :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
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 :
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
248 if test "x$CONFIG_SHELL" != x; then :
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.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $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
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."
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."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
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
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
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.
421 as_status=$1; test $as_status -eq 0 && as_status=1
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
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
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. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='ntp'
593 PACKAGE_VERSION='4.2.8p12'
594 PACKAGE_STRING='ntp 4.2.8p12'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
642 BUILD_TEST_NTP_SIGND_FALSE
643 BUILD_TEST_NTP_SIGND_TRUE
644 BUILD_TEST_NTP_SCANNER_FALSE
645 BUILD_TEST_NTP_SCANNER_TRUE
646 BUILD_TEST_NTP_RESTRICT_FALSE
647 BUILD_TEST_NTP_RESTRICT_TRUE
648 GTEST_AVAILABLE_FALSE
655 UNITYBUILD_AVAILABLE_FALSE
656 UNITYBUILD_AVAILABLE_TRUE
658 HAVE_LEAPSMEARINTERVAL
659 SAVECONFIG_ENABLED_FALSE
660 SAVECONFIG_ENABLED_TRUE
696 LIBISC_PTHREADS_NOTHREADS
706 NTP_CROSSCOMPILE_FALSE
707 NTP_CROSSCOMPILE_TRUE
719 INSTALL_LIBOPTS_FALSE
722 GL_GENERATE_STDNORETURN_H_FALSE
723 GL_GENERATE_STDNORETURN_H_TRUE
746 INSTALL_UPDATE_LEAP_FALSE
747 INSTALL_UPDATE_LEAP_TRUE
788 INSTALL_NTPSWEEP_FALSE
789 INSTALL_NTPSWEEP_TRUE
831 WANT_CALC_TICKADJ_MS_FALSE
832 WANT_CALC_TICKADJ_MS_TRUE
884 INSTALL_STRIP_PROGRAM
926 program_transform_name
937 ac_subst_files='calc_tickadj_opts
944 enable_option_checking
946 enable_dependency_tracking
959 enable_libopts_install
961 enable_local_libevent
964 enable_thread_support
971 enable_trustedbsd_mac
979 enable_ignore_dns_errors
1038 enable_openssl_random
1041 enable_accurate_adjtime
1050 enable_hourly_todr_sync
1051 enable_kernel_fll_bug
1054 enable_irig_sawtooth
1062 enable_dynamic_interleave
1064 enable_problem_tests
1066 ac_precious_vars='build_alias
1077 LT_SYS_LIBRARY_PATH'
1078 ac_subdirs_all='sntp'
1080 # Initialize some variables set by options.
1082 ac_init_version=false
1083 ac_unrecognized_opts=
1084 ac_unrecognized_sep=
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1094 program_transform_name=s,x,x,
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1119 infodir='${datarootdir}/info'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1132 # If the previous option needs an argument, assign it.
1133 if test -n "$ac_prev"; then
1134 eval $ac_prev=\$ac_option
1140 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1145 # Accept the important Cygnus configure options, so we can diagnose typos.
1147 case $ac_dashdash$ac_option in
1151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1154 bindir=$ac_optarg ;;
1156 -build | --build | --buil | --bui | --bu)
1157 ac_prev=build_alias ;;
1158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1159 build_alias=$ac_optarg ;;
1161 -cache-file | --cache-file | --cache-fil | --cache-fi \
1162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1163 ac_prev=cache_file ;;
1164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1166 cache_file=$ac_optarg ;;
1168 --config-cache | -C)
1169 cache_file=config.cache ;;
1171 -datadir | --datadir | --datadi | --datad)
1173 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1174 datadir=$ac_optarg ;;
1176 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1177 | --dataroo | --dataro | --datar)
1178 ac_prev=datarootdir ;;
1179 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1180 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1181 datarootdir=$ac_optarg ;;
1183 -disable-* | --disable-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid feature name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "enable_$ac_useropt"
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1197 eval enable_$ac_useropt=no ;;
1199 -docdir | --docdir | --docdi | --doc | --do)
1201 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1202 docdir=$ac_optarg ;;
1204 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1206 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1207 dvidir=$ac_optarg ;;
1209 -enable-* | --enable-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid feature name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1218 "enable_$ac_useropt"
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval enable_$ac_useropt=\$ac_optarg ;;
1225 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1226 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1227 | --exec | --exe | --ex)
1228 ac_prev=exec_prefix ;;
1229 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1230 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1231 | --exec=* | --exe=* | --ex=*)
1232 exec_prefix=$ac_optarg ;;
1234 -gas | --gas | --ga | --g)
1235 # Obsolete; use --with-gas.
1238 -help | --help | --hel | --he | -h)
1239 ac_init_help=long ;;
1240 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1241 ac_init_help=recursive ;;
1242 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1243 ac_init_help=short ;;
1245 -host | --host | --hos | --ho)
1246 ac_prev=host_alias ;;
1247 -host=* | --host=* | --hos=* | --ho=*)
1248 host_alias=$ac_optarg ;;
1250 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1252 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1254 htmldir=$ac_optarg ;;
1256 -includedir | --includedir | --includedi | --included | --include \
1257 | --includ | --inclu | --incl | --inc)
1258 ac_prev=includedir ;;
1259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1260 | --includ=* | --inclu=* | --incl=* | --inc=*)
1261 includedir=$ac_optarg ;;
1263 -infodir | --infodir | --infodi | --infod | --info | --inf)
1265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1266 infodir=$ac_optarg ;;
1268 -libdir | --libdir | --libdi | --libd)
1270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1271 libdir=$ac_optarg ;;
1273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1274 | --libexe | --libex | --libe)
1275 ac_prev=libexecdir ;;
1276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1277 | --libexe=* | --libex=* | --libe=*)
1278 libexecdir=$ac_optarg ;;
1280 -localedir | --localedir | --localedi | --localed | --locale)
1281 ac_prev=localedir ;;
1282 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1283 localedir=$ac_optarg ;;
1285 -localstatedir | --localstatedir | --localstatedi | --localstated \
1286 | --localstate | --localstat | --localsta | --localst | --locals)
1287 ac_prev=localstatedir ;;
1288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1289 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1290 localstatedir=$ac_optarg ;;
1292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1295 mandir=$ac_optarg ;;
1297 -nfp | --nfp | --nf)
1298 # Obsolete; use --without-fp.
1301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1302 | --no-cr | --no-c | -n)
1305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1311 | --oldin | --oldi | --old | --ol | --o)
1312 ac_prev=oldincludedir ;;
1313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1316 oldincludedir=$ac_optarg ;;
1318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1321 prefix=$ac_optarg ;;
1323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1324 | --program-pre | --program-pr | --program-p)
1325 ac_prev=program_prefix ;;
1326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1328 program_prefix=$ac_optarg ;;
1330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1331 | --program-suf | --program-su | --program-s)
1332 ac_prev=program_suffix ;;
1333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1335 program_suffix=$ac_optarg ;;
1337 -program-transform-name | --program-transform-name \
1338 | --program-transform-nam | --program-transform-na \
1339 | --program-transform-n | --program-transform- \
1340 | --program-transform | --program-transfor \
1341 | --program-transfo | --program-transf \
1342 | --program-trans | --program-tran \
1343 | --progr-tra | --program-tr | --program-t)
1344 ac_prev=program_transform_name ;;
1345 -program-transform-name=* | --program-transform-name=* \
1346 | --program-transform-nam=* | --program-transform-na=* \
1347 | --program-transform-n=* | --program-transform-=* \
1348 | --program-transform=* | --program-transfor=* \
1349 | --program-transfo=* | --program-transf=* \
1350 | --program-trans=* | --program-tran=* \
1351 | --progr-tra=* | --program-tr=* | --program-t=*)
1352 program_transform_name=$ac_optarg ;;
1354 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1356 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1357 pdfdir=$ac_optarg ;;
1359 -psdir | --psdir | --psdi | --psd | --ps)
1361 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1365 | -silent | --silent | --silen | --sile | --sil)
1368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1372 sbindir=$ac_optarg ;;
1374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1376 | --sharedst | --shareds | --shared | --share | --shar \
1378 ac_prev=sharedstatedir ;;
1379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1383 sharedstatedir=$ac_optarg ;;
1385 -site | --site | --sit)
1387 -site=* | --site=* | --sit=*)
1390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1393 srcdir=$ac_optarg ;;
1395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1396 | --syscon | --sysco | --sysc | --sys | --sy)
1397 ac_prev=sysconfdir ;;
1398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1400 sysconfdir=$ac_optarg ;;
1402 -target | --target | --targe | --targ | --tar | --ta | --t)
1403 ac_prev=target_alias ;;
1404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1405 target_alias=$ac_optarg ;;
1407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410 -version | --version | --versio | --versi | --vers | -V)
1411 ac_init_version=: ;;
1414 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1415 # Reject names that are not valid shell variable names.
1416 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417 as_fn_error $? "invalid package name: $ac_useropt"
1418 ac_useropt_orig=$ac_useropt
1419 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1420 case $ac_user_opts in
1424 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1425 ac_unrecognized_sep=', ';;
1427 eval with_$ac_useropt=\$ac_optarg ;;
1429 -without-* | --without-*)
1430 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1431 # Reject names that are not valid shell variable names.
1432 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1433 as_fn_error $? "invalid package name: $ac_useropt"
1434 ac_useropt_orig=$ac_useropt
1435 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1436 case $ac_user_opts in
1440 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1441 ac_unrecognized_sep=', ';;
1443 eval with_$ac_useropt=no ;;
1446 # Obsolete; use --with-x.
1449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1450 | --x-incl | --x-inc | --x-in | --x-i)
1451 ac_prev=x_includes ;;
1452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1454 x_includes=$ac_optarg ;;
1456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1458 ac_prev=x_libraries ;;
1459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1461 x_libraries=$ac_optarg ;;
1463 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1464 Try \`$0 --help' for more information"
1468 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1469 # Reject names that are not valid shell variable names.
1470 case $ac_envvar in #(
1471 '' | [0-9]* | *[!_$as_cr_alnum]* )
1472 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1474 eval $ac_envvar=\$ac_optarg
1475 export $ac_envvar ;;
1478 # FIXME: should be removed in autoconf 3.0.
1479 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1480 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1481 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1482 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1488 if test -n "$ac_prev"; then
1489 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1490 as_fn_error $? "missing argument to $ac_option"
1493 if test -n "$ac_unrecognized_opts"; then
1494 case $enable_option_checking in
1496 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1497 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501 # Check all directory arguments for consistency.
1502 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1503 datadir sysconfdir sharedstatedir localstatedir includedir \
1504 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1505 libdir localedir mandir
1507 eval ac_val=\$$ac_var
1508 # Remove trailing slashes.
1511 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1512 eval $ac_var=\$ac_val;;
1514 # Be sure to have absolute directory names.
1516 [\\/$]* | ?:[\\/]* ) continue;;
1517 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1519 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1522 # There might be people who depend on the old broken behavior: `$host'
1523 # used to hold the argument of --host etc.
1524 # FIXME: To remove some day.
1527 target=$target_alias
1529 # FIXME: To remove some day.
1530 if test "x$host_alias" != x; then
1531 if test "x$build_alias" = x; then
1532 cross_compiling=maybe
1533 elif test "x$build_alias" != "x$host_alias"; then
1539 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1541 test "$silent" = yes && exec 6>/dev/null
1544 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1545 ac_ls_di=`ls -di .` &&
1546 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1547 as_fn_error $? "working directory cannot be determined"
1548 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1549 as_fn_error $? "pwd does not report name of working directory"
1552 # Find the source files, if location was not specified.
1553 if test -z "$srcdir"; then
1554 ac_srcdir_defaulted=yes
1555 # Try the directory containing this script, then the parent directory.
1556 ac_confdir=`$as_dirname -- "$as_myself" ||
1557 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1558 X"$as_myself" : 'X\(//\)[^/]' \| \
1559 X"$as_myself" : 'X\(//\)$' \| \
1560 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1561 $as_echo X"$as_myself" |
1562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1580 if test ! -r "$srcdir/$ac_unique_file"; then
1584 ac_srcdir_defaulted=no
1586 if test ! -r "$srcdir/$ac_unique_file"; then
1587 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1588 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1590 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1592 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1594 # When building in place, set srcdir=.
1595 if test "$ac_abs_confdir" = "$ac_pwd"; then
1598 # Remove unnecessary trailing slashes from srcdir.
1599 # Double slashes in file names in object file debugging info
1600 # mess up M-x gdb in Emacs.
1602 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1604 for ac_var in $ac_precious_vars; do
1605 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1606 eval ac_env_${ac_var}_value=\$${ac_var}
1607 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1608 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 # Report the --help message.
1614 if test "$ac_init_help" = "long"; then
1615 # Omit some internal or obsolete options to make the list less imposing.
1616 # This message is too long to be a string in the A/UX 3.1 sh.
1618 \`configure' configures ntp 4.2.8p12 to adapt to many kinds of systems.
1620 Usage: $0 [OPTION]... [VAR=VALUE]...
1622 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1623 VAR=VALUE. See below for descriptions of some of the useful variables.
1625 Defaults for the options are specified in brackets.
1628 -h, --help display this help and exit
1629 --help=short display options specific to this package
1630 --help=recursive display the short help of all the included packages
1631 -V, --version display version information and exit
1632 -q, --quiet, --silent do not print \`checking ...' messages
1633 --cache-file=FILE cache test results in FILE [disabled]
1634 -C, --config-cache alias for \`--cache-file=config.cache'
1635 -n, --no-create do not create output files
1636 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1638 Installation directories:
1639 --prefix=PREFIX install architecture-independent files in PREFIX
1640 [$ac_default_prefix]
1641 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1644 By default, \`make install' will install all the files in
1645 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1646 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1647 for instance \`--prefix=\$HOME'.
1649 For better control, use the options below.
1651 Fine tuning of the installation directories:
1652 --bindir=DIR user executables [EPREFIX/bin]
1653 --sbindir=DIR system admin executables [EPREFIX/sbin]
1654 --libexecdir=DIR program executables [EPREFIX/libexec]
1655 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1656 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1657 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1658 --libdir=DIR object code libraries [EPREFIX/lib]
1659 --includedir=DIR C header files [PREFIX/include]
1660 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1661 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1662 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1663 --infodir=DIR info documentation [DATAROOTDIR/info]
1664 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1665 --mandir=DIR man documentation [DATAROOTDIR/man]
1666 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1667 --htmldir=DIR html documentation [DOCDIR]
1668 --dvidir=DIR dvi documentation [DOCDIR]
1669 --pdfdir=DIR pdf documentation [DOCDIR]
1670 --psdir=DIR ps documentation [DOCDIR]
1676 --program-prefix=PREFIX prepend PREFIX to installed program names
1677 --program-suffix=SUFFIX append SUFFIX to installed program names
1678 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1681 --build=BUILD configure for building on BUILD [guessed]
1682 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1686 if test -n "$ac_init_help"; then
1687 case $ac_init_help in
1688 short | recursive ) echo "Configuration of ntp 4.2.8p12:";;
1692 Optional Features and Packages:
1693 --disable-option-checking ignore unrecognized --enable/--with options
1694 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1695 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1698 --enable-silent-rules less verbose build output (undo: "make V=1")
1699 --disable-silent-rules verbose build output (undo: "make V=0")
1700 --enable-dependency-tracking
1701 do not reject slow dependency extractors
1702 --disable-dependency-tracking
1703 speeds up one-time build
1704 --with-hardenfile=XXX os-specific or "/dev/null"
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[=PKGS] try to use only PIC/non-PIC objects [default=use
1710 --enable-fast-install[=PKGS]
1711 optimize for fast installation [default=yes]
1712 --with-aix-soname=aix|svr4|both
1713 shared library versioning (aka "SONAME") variant to
1714 provide on AIX, [default=aix].
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1717 compiler's sysroot if not specified).
1718 --disable-libtool-lock avoid locking (might break parallel builds)
1719 --disable-nls disable nls support in libopts
1720 --enable-local-libopts Use the supplied libopts tearoff code
1721 --enable-libopts-install
1722 Install libopts with client installation
1723 --with-autoopts-config specify the config-info script
1724 --enable-local-libevent Force using the supplied libevent tearoff code
1725 --with-lineeditlibs edit,editline (readline may be specified if desired)
1726 defaults: + yes, - no, s system-specific
1727 --enable-debugging + include ntpd debugging code
1728 --enable-thread-support s use threads (+ if available)
1729 --with-threads with threads [auto]
1730 --with-yielding-select with yielding select [auto]
1731 --enable-c99-snprintf s force replacement
1732 --enable-clockctl s Use /dev/clockctl for non-root clock control
1733 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1734 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1735 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1737 --with-arlib - deprecated, arlib not distributed
1738 --with-net-snmp-config + =net-snmp-config
1739 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1740 sandboxing (default is no)
1741 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1742 --with-memlock ? =32 (-1 on linux) megabytes
1743 --enable-debug-timing - include processing time debugging code (costs
1745 --enable-dst-minutes =60 minutes per DST adjustment
1746 --enable-ignore-dns-errors
1747 - retry DNS queries on any error
1748 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1749 --enable-GPSVME - TrueTime GPS receiver/VME interface
1750 --enable-all-clocks + include all suitable non-PARSE clocks:
1751 --enable-ACTS s ACTS modem service
1752 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1753 --enable-ARCRON-MSF + Arcron MSF receiver
1754 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1755 --enable-ATOM s ATOM PPS interface
1756 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1757 --enable-CHU + CHU modem/decoder
1758 --enable-AUDIO-CHU s CHU audio/decoder
1759 --enable-DATUM s Datum Programmable Time System
1760 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1761 --enable-FG + Forum Graphic GPS
1762 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1763 --enable-HOPFSERIAL + hopf serial clock device
1764 --enable-HOPFPCI + hopf 6039 PCI board
1765 --enable-HPGPS + HP 58503A GPS receiver
1766 --enable-IRIG s IRIG audio decoder
1767 --enable-JJY + JJY receiver
1768 --enable-JUPITER s Rockwell Jupiter GPS receiver
1769 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1770 --enable-LOCAL-CLOCK + local clock reference
1771 --enable-MX4200 s Magnavox MX4200 GPS receiver
1772 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1773 --enable-NMEA + NMEA GPS receiver
1774 --enable-GPSD + GPSD JSON receiver
1775 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1776 --enable-PALISADE s Palisade clock
1777 --enable-PCF + Conrad parallel port radio clock
1778 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1779 --enable-RIPENCC - RIPENCC specific Trimble driver
1780 --enable-SHM s SHM clock attached thru shared memory
1781 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1782 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1783 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1784 --enable-TT560 - TrueTime 560 IRIG-B decoder
1785 --enable-ULINK + Ultralink WWVB receiver
1786 --enable-TSYNCPCI s Spectracom TSYNC timing board
1787 --enable-WWV s WWV Audio receiver
1788 --enable-ZYFER + Zyfer GPStarplus receiver
1789 --enable-parse-clocks - include all suitable PARSE clocks:
1790 --enable-COMPUTIME s Diem Computime Radio Clock
1791 --enable-DCF7000 s ELV/DCF7000 clock
1792 --enable-HOPF6021 s HOPF 6021 clock
1793 --enable-MEINBERG s Meinberg clocks
1794 --enable-RAWDCF s DCF77 raw time code
1795 --enable-RCC8000 s RCC 8000 clock
1796 --enable-SCHMID s Schmid DCF77 clock
1797 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1798 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1799 --enable-WHARTON s WHARTON 400A Series clock
1800 --enable-VARITEXT s VARITEXT clock
1801 --enable-SEL240X s SEL240X clock
1802 --with-crypto + =openssl,libcrypto
1804 --with-openssl-libdir + =/something/reasonable
1806 --with-openssl-incdir + =/something/reasonable
1808 --without-rpath s Disable auto-added -R linker paths
1810 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1811 available (default is yes)
1812 --enable-autokey + support NTP Autokey protocol
1813 --enable-kmem s read /dev/kmem for tick and/or tickadj
1814 --enable-accurate-adjtime
1815 s the adjtime() call is accurate
1816 --enable-tick=VALUE s force a value for 'tick'
1817 --enable-tickadj=VALUE s force a value for 'tickadj'
1818 --enable-simulator - build/install the NTPD simulator?
1819 --without-sntp - disable building sntp and sntp/tests
1820 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1821 --enable-slew-always s always slew the time
1822 --enable-step-slew s step and slew the time
1823 --enable-ntpdate-step s if ntpdate should step the time
1824 --enable-hourly-todr-sync
1825 s if we should sync TODR hourly
1826 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1827 --enable-bug1243-fix + use unmodified autokey session keys
1828 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter
1829 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1830 --enable-nist - if we should enable the NIST lockclock scheme
1831 --enable-ntp-signd - Provide support for Samba's signing daemon,
1833 --enable-ipv6 s use IPv6?
1835 --with-kame - =/usr/local/v6
1836 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1837 --enable-saveconfig + saveconfig mechanism
1838 --enable-leap-smear - experimental leap smear code
1839 --enable-dynamic-interleave
1840 - dynamic interleave support
1841 --with-gtest Use the gtest framework (Default: if it's available)
1842 --enable-problem-tests + enable tests with undiagnosed problems
1844 Some influential environment variables:
1845 CC C compiler command
1846 CFLAGS C compiler flags
1847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1848 nonstandard directory <lib dir>
1849 LIBS libraries to pass to the linker, e.g. -l<library>
1850 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1851 you have headers in a nonstandard directory <include dir>
1853 YACC The `Yet Another Compiler Compiler' implementation to use.
1854 Defaults to the first program found out of: `bison -y', `byacc',
1856 YFLAGS The list of arguments that will be passed by default to $YACC.
1857 This script will default YFLAGS to the empty string to avoid a
1858 default value of `-d' given by some make applications.
1860 User-defined run-time library search path.
1862 Use these variables to override the choices made by `configure' or to help
1863 it to find libraries and programs with nonstandard names/locations.
1865 Report bugs to <http://bugs.ntp.org./>.
1866 ntp home page: <http://www.ntp.org./>.
1871 if test "$ac_init_help" = "recursive"; then
1872 # If there are subdirs, report their specific --help.
1873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1874 test -d "$ac_dir" ||
1875 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1883 # A ".." for each directory in $ac_dir_suffix.
1884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1885 case $ac_top_builddir_sub in
1886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1890 ac_abs_top_builddir=$ac_pwd
1891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1892 # for backward compatibility:
1893 ac_top_builddir=$ac_top_build_prefix
1896 .) # We are building in place.
1898 ac_top_srcdir=$ac_top_builddir_sub
1899 ac_abs_top_srcdir=$ac_pwd ;;
1900 [\\/]* | ?:[\\/]* ) # Absolute name.
1901 ac_srcdir=$srcdir$ac_dir_suffix;
1902 ac_top_srcdir=$srcdir
1903 ac_abs_top_srcdir=$srcdir ;;
1905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1906 ac_top_srcdir=$ac_top_build_prefix$srcdir
1907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1911 cd "$ac_dir" || { ac_status=$?; continue; }
1912 # Check for guested configure.
1913 if test -f "$ac_srcdir/configure.gnu"; then
1915 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1916 elif test -f "$ac_srcdir/configure"; then
1918 $SHELL "$ac_srcdir/configure" --help=recursive
1920 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1922 cd "$ac_pwd" || { ac_status=$?; break; }
1926 test -n "$ac_init_help" && exit $ac_status
1927 if $ac_init_version; then
1929 ntp configure 4.2.8p12
1930 generated by GNU Autoconf 2.69
1932 Copyright (C) 2012 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1939 ## ------------------------ ##
1940 ## Autoconf initialization. ##
1941 ## ------------------------ ##
1943 # ac_fn_c_try_compile LINENO
1944 # --------------------------
1945 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.$ac_objext; then :
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_compile
1981 # ac_fn_c_try_cpp LINENO
1982 # ----------------------
1983 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { { ac_try="$ac_cpp conftest.$ac_ext"
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } > conftest.i && {
2003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2004 test ! -s conftest.err
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
2018 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2021 # the include files in INCLUDES and setting the cache variable VAR
2023 ac_fn_c_check_header_mongrel ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 if eval \${$3+:} false; then :
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 # Is the header compilable?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2038 $as_echo_n "checking $2 usability... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_header_compiler=yes
2047 ac_header_compiler=no
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2051 $as_echo "$ac_header_compiler" >&6; }
2053 # Is the header present?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2055 $as_echo_n "checking $2 presence... " >&6; }
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2060 if ac_fn_c_try_cpp "$LINENO"; then :
2061 ac_header_preproc=yes
2063 ac_header_preproc=no
2065 rm -f conftest.err conftest.i conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067 $as_echo "$ac_header_preproc" >&6; }
2069 # So? What about this header?
2070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2073 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2079 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2081 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2083 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2085 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088 ( $as_echo "## ------------------------------------ ##
2089 ## Report this to http://bugs.ntp.org./ ##
2090 ## ------------------------------------ ##"
2091 ) | sed "s/^/$as_me: WARNING: /" >&2
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval \${$3+:} false; then :
2097 $as_echo_n "(cached) " >&6
2099 eval "$3=\$ac_header_compiler"
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_header_mongrel
2109 # ac_fn_c_try_run LINENO
2110 # ----------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2112 # that executables *can* be run.
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { { ac_try="$ac_link"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_link") 2>&5
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2127 { { case "(($ac_try" in
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132 $as_echo "$ac_try_echo"; } >&5
2133 (eval "$ac_try") 2>&5
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136 test $ac_status = 0; }; }; then :
2139 $as_echo "$as_me: program exited with status $ac_status" >&5
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=$ac_status
2145 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 as_fn_set_status $ac_retval
2151 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2152 # -------------------------------------------------------
2153 # Tests whether HEADER exists and can be compiled using the include files in
2154 # INCLUDES, setting the cache variable VAR accordingly.
2155 ac_fn_c_check_header_compile ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_header_compile
2182 # ac_fn_c_try_link LINENO
2183 # -----------------------
2184 # Try to link conftest.$ac_ext, and return whether this succeeded.
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 rm -f conftest.$ac_objext conftest$ac_exeext
2189 if { { ac_try="$ac_link"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_link") 2>conftest.err
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } && {
2205 test -z "$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 } && test -s conftest$ac_exeext && {
2208 test "$cross_compiling" = yes ||
2209 test -x conftest$ac_exeext
2213 $as_echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2218 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2219 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2220 # interfere with the next link command; also delete a directory that is
2221 # left behind by Apple's compiler. We do this before executing the actions.
2222 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status $ac_retval
2226 } # ac_fn_c_try_link
2228 # ac_fn_c_check_func LINENO FUNC VAR
2229 # ----------------------------------
2230 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2231 ac_fn_c_check_func ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2243 #define $2 innocuous_$2
2245 /* System header to define __stub macros and hopefully few prototypes,
2246 which can conflict with char $2 (); below.
2247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2248 <limits.h> exists even on freestanding compilers. */
2251 # include <limits.h>
2253 # include <assert.h>
2258 /* Override any GCC internal prototype to avoid an error.
2259 Use char because int might match the return type of a GCC
2260 builtin and then its argument prototype would still apply. */
2265 /* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268 #if defined __stub_$2 || defined __stub___$2
2280 if ac_fn_c_try_link "$LINENO"; then :
2285 rm -f core conftest.err conftest.$ac_objext \
2286 conftest$ac_exeext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_func
2295 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2296 # -------------------------------------------
2297 # Tests whether TYPE exists after having included INCLUDES, setting cache
2298 # variable VAR accordingly.
2299 ac_fn_c_check_type ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2333 if ac_fn_c_try_compile "$LINENO"; then :
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 } # ac_fn_c_check_type
2349 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2350 # --------------------------------------------
2351 # Tries to find the compile-time value of EXPR in a program that includes
2352 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2354 ac_fn_c_compute_int ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 if test "$cross_compiling" = yes; then
2358 # Depending upon the size, compute the lo and hi bounds.
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2365 static int test_array [1 - 2 * !(($2) >= 0)];
2367 return test_array [0];
2373 if ac_fn_c_try_compile "$LINENO"; then :
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_hi=$ac_mid; break
2393 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2394 if test $ac_lo -le $ac_mid; then
2398 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2409 static int test_array [1 - 2 * !(($2) < 0)];
2411 return test_array [0];
2417 if ac_fn_c_try_compile "$LINENO"; then :
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2426 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2428 return test_array [0];
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_lo=$ac_mid; break
2437 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2438 if test $ac_mid -le $ac_hi; then
2442 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 # Binary search between lo and hi bounds.
2453 while test "x$ac_lo" != "x$ac_hi"; do
2454 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2461 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2463 return test_array [0];
2469 if ac_fn_c_try_compile "$LINENO"; then :
2472 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2484 static long int longval () { return $2; }
2485 static unsigned long int ulongval () { return $2; }
2492 FILE *f = fopen ("conftest.val", "w");
2497 long int i = longval ();
2500 fprintf (f, "%ld", i);
2504 unsigned long int i = ulongval ();
2507 fprintf (f, "%lu", i);
2509 /* Do not output a trailing newline, as this causes \r\n confusion
2510 on some platforms. */
2511 return ferror (f) || fclose (f) != 0;
2517 if ac_fn_c_try_run "$LINENO"; then :
2518 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2523 conftest.$ac_objext conftest.beam conftest.$ac_ext
2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528 as_fn_set_status $ac_retval
2530 } # ac_fn_c_compute_int
2532 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2533 # ---------------------------------------------
2534 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2536 ac_fn_c_check_decl ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 as_decl_name=`echo $2|sed 's/ *(.*//'`
2540 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2542 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2543 if eval \${$3+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2552 #ifndef $as_decl_name
2554 (void) $as_decl_use;
2556 (void) $as_decl_name;
2564 if ac_fn_c_try_compile "$LINENO"; then :
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 } # ac_fn_c_check_decl
2578 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2579 # ----------------------------------------------------
2580 # Tries to find if the field MEMBER exists in type AGGR, after including
2581 # INCLUDES, setting cache variable VAR accordingly.
2582 ac_fn_c_check_member ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2586 $as_echo_n "checking for $2.$3... " >&6; }
2587 if eval \${$4+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2603 if ac_fn_c_try_compile "$LINENO"; then :
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2613 if (sizeof ac_aggr.$3)
2619 if ac_fn_c_try_compile "$LINENO"; then :
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_c_check_member
2634 cat >config.log <<_ACEOF
2635 This file contains any messages produced by compilers while
2636 running configure, to aid debugging if configure makes a mistake.
2638 It was created by ntp $as_me 4.2.8p12, which was
2639 generated by GNU Autoconf 2.69. Invocation command line was
2651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 $as_echo "PATH: $as_dir"
2691 # Keep a trace of the command line.
2692 # Strip out --no-create and --no-recursion so they do not pile up.
2693 # Strip out --silent because we don't want to record it for future runs.
2694 # Also quote any args containing shell meta-characters.
2695 # Make two passes to allow for proper duplicate-argument suppression.
2699 ac_must_keep_next=false
2705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2707 | -silent | --silent | --silen | --sile | --sil)
2710 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2715 as_fn_append ac_configure_args1 " '$ac_arg'"
2716 if test $ac_must_keep_next = true; then
2717 ac_must_keep_next=false # Got value, back to normal.
2720 *=* | --config-cache | -C | -disable-* | --disable-* \
2721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2723 | -with-* | --with-* | -without-* | --without-* | --x)
2724 case "$ac_configure_args0 " in
2725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2728 -* ) ac_must_keep_next=true ;;
2731 as_fn_append ac_configure_args " '$ac_arg'"
2736 { ac_configure_args0=; unset ac_configure_args0;}
2737 { ac_configure_args1=; unset ac_configure_args1;}
2739 # When interrupted or exit'd, cleanup temporary files, and complete
2740 # config.log. We remove comments because anyway the quotes in there
2741 # would cause problems or look ugly.
2742 # WARNING: Use '\'' to represent an apostrophe within the trap.
2743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2744 trap 'exit_status=$?
2745 # Save into config.log some information that might help in debugging.
2749 $as_echo "## ---------------- ##
2750 ## Cache variables. ##
2751 ## ---------------- ##"
2753 # The following way of writing the cache mishandles newlines in values,
2755 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2756 eval ac_val=\$$ac_var
2760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2764 _ | IFS | as_nl) ;; #(
2765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2766 *) { eval $ac_var=; unset $ac_var;} ;;
2771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2772 *${as_nl}ac_space=\ *)
2774 "s/'\''/'\''\\\\'\'''\''/g;
2775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2785 $as_echo "## ----------------- ##
2786 ## Output variables. ##
2787 ## ----------------- ##"
2789 for ac_var in $ac_subst_vars
2791 eval ac_val=\$$ac_var
2793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 $as_echo "$ac_var='\''$ac_val'\''"
2799 if test -n "$ac_subst_files"; then
2800 $as_echo "## ------------------- ##
2801 ## File substitutions. ##
2802 ## ------------------- ##"
2804 for ac_var in $ac_subst_files
2806 eval ac_val=\$$ac_var
2808 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2810 $as_echo "$ac_var='\''$ac_val'\''"
2815 if test -s confdefs.h; then
2816 $as_echo "## ----------- ##
2823 test "$ac_signal" != 0 &&
2824 $as_echo "$as_me: caught signal $ac_signal"
2825 $as_echo "$as_me: exit $exit_status"
2827 rm -f core *.core core.conftest.* &&
2828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 for ac_signal in 1 2 13 15; do
2832 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2837 rm -f -r conftest* confdefs.h
2839 $as_echo "/* confdefs.h */" > confdefs.h
2841 # Predefined preprocessor variables.
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_NAME "$PACKAGE_NAME"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_STRING "$PACKAGE_STRING"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_URL "$PACKAGE_URL"
2868 # Let the site file select an alternate cache file if it wants to.
2869 # Prefer an explicitly selected file to automatically selected ones.
2872 if test -n "$CONFIG_SITE"; then
2873 # We do not want a PATH search for config.site.
2874 case $CONFIG_SITE in #((
2875 -*) ac_site_file1=./$CONFIG_SITE;;
2876 */*) ac_site_file1=$CONFIG_SITE;;
2877 *) ac_site_file1=./$CONFIG_SITE;;
2879 elif test "x$prefix" != xNONE; then
2880 ac_site_file1=$prefix/share/config.site
2881 ac_site_file2=$prefix/etc/config.site
2883 ac_site_file1=$ac_default_prefix/share/config.site
2884 ac_site_file2=$ac_default_prefix/etc/config.site
2886 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2888 test "x$ac_site_file" = xNONE && continue
2889 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2891 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2892 sed 's/^/| /' "$ac_site_file" >&5
2894 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "failed to load site script $ac_site_file
2897 See \`config.log' for more details" "$LINENO" 5; }
2901 if test -r "$cache_file"; then
2902 # Some versions of bash will fail to source /dev/null (special files
2903 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2904 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2906 $as_echo "$as_me: loading cache $cache_file" >&6;}
2908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2909 *) . "./$cache_file";;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2914 $as_echo "$as_me: creating cache $cache_file" >&6;}
2918 as_fn_append ac_header_list " stdarg.h"
2919 # Check that the precious variables saved in the cache have kept the same
2921 ac_cache_corrupted=false
2922 for ac_var in $ac_precious_vars; do
2923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2924 eval ac_new_set=\$ac_env_${ac_var}_set
2925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2926 eval ac_new_val=\$ac_env_${ac_var}_value
2927 case $ac_old_set,$ac_new_set in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2931 ac_cache_corrupted=: ;;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2935 ac_cache_corrupted=: ;;
2938 if test "x$ac_old_val" != "x$ac_new_val"; then
2939 # differences in whitespace do not lead to failure.
2940 ac_old_val_w=`echo x $ac_old_val`
2941 ac_new_val_w=`echo x $ac_new_val`
2942 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2945 ac_cache_corrupted=:
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2949 eval $ac_var=\$ac_old_val
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2952 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2954 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2957 # Pass precious variables to config.status.
2958 if test "$ac_new_set" = set; then
2960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2961 *) ac_arg=$ac_var=$ac_new_val ;;
2963 case " $ac_configure_args " in
2964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2965 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2969 if $ac_cache_corrupted; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2974 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2976 ## -------------------- ##
2977 ## Main body of script. ##
2978 ## -------------------- ##
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
2990 if test -f "$ac_dir/install-sh"; then
2992 ac_install_sh="$ac_aux_dir/install-sh -c"
2994 elif test -f "$ac_dir/install.sh"; then
2996 ac_install_sh="$ac_aux_dir/install.sh -c"
2998 elif test -f "$ac_dir/shtool"; then
3000 ac_install_sh="$ac_aux_dir/shtool install -c"
3004 if test -z "$ac_aux_dir"; then
3005 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3008 # These three variables are undocumented and unsupported,
3009 # and are intended to be withdrawn in a future Autoconf release.
3010 # They can cause serious problems if a builder's source tree is in a directory
3011 # whose full name contains unusual characters.
3012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 # Bump ntp_configure_cache_version for each change to configure.ac or
3029 # .m4 files which invalidates cached values from previous configure
3032 # If the change affects cache variables used only by the main NTP
3033 # configure.ac, then only its version number should be bumped, while
3034 # the subdir configure.ac version numbers should be unchanged. The
3035 # same is true for a test/variable that is used only by one subdir
3036 # being changed incompatibly; only that subdir's cache version needs
3039 # If a change affects variables shared by all NTP configure scripts,
3040 # please bump the version numbers of each. If you are not sure, the
3041 # safe choice is to bump all on any cache-invalidating change.
3043 # In order to avoid the risk of version stamp collision between -stable
3044 # and -dev branches, do not simply increment the version, instead use
3045 # the date YYYYMMDD optionally with -HHMM if there is more than one
3048 ntp_configure_cache_version=20120806
3050 # When the cache version of config.cache and configure do not
3051 # match, NTP_CACHEVERSION will flush the cache.
3057 case "$ntp_cv_main_cache_version" in
3058 $ntp_configure_cache_version)
3059 # same version, good
3063 # No cache, predates ntp_cv_main_cache_version, or is empty.
3064 case "$cache_file" in
3069 case "$NTP_CACHEVERSION_PARENT" in
3071 # Do not clear the cache immediately after it is created
3072 # empty as it is noisy. Differentiate a newly-created
3073 # config.cache from one predating the cache version
3074 # mechanism by looking for the first cached variable set
3076 case "$ac_cv_path_install" in
3078 # empty config.cache file
3083 # Parent configure just created cache from empty,
3084 # flushing would be counterproductive.
3091 # configure cache version mismatches config.cache version
3095 case "$ntp_cache_flush" in
3097 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3099 # Do we flush all variables or exclude others' version stamps?
3101 case "$NTP_CACHEVERSION_PARENT" in
3103 # Clear all *_cv_* variables including our child subdirs'
3104 # ntp_cv_*_cache_version variables. This prevents subdir
3105 # configure scripts from noticing a version mismatch just
3106 # after the top configure in the invocation cleared and
3107 # recreated the cache.
3109 c_varname_list=`set |
3110 sed -n -e 's/=.*$//' \
3115 # This is not the top configure this particular invocation.
3116 # Clear all *_cv_* variables sparing the version stamps
3117 # of other configure scripts, so we don't trigger
3118 # useless repeated clearings.
3120 c_varname_list=`set |
3121 sed -n -e 's/=.*$//' \
3122 -e '/ntp_cv_.*_cache_version/d' \
3127 for c_varname in $c_varname_list
3129 { eval $c_varname=; unset $c_varname; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3133 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3135 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3137 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3138 { c_varname=; unset c_varname;}
3139 { c_varname_list=; unset c_varname_list;}
3140 { c_version=; unset c_version;}
3143 { ntp_cache_flush=; unset ntp_cache_flush;}
3145 # save configure version in config.cache for next time
3146 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3148 # let any subdir configure.ac NTP_CACHEVERSION invocations
3149 # know they are not the top level.
3150 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3153 am__api_version='1.15'
3155 # Find a good install program. We prefer a C program (faster),
3156 # so one script is as good as another. But avoid the broken or
3157 # incompatible versions:
3158 # SysV /etc/install, /usr/sbin/install
3159 # SunOS /usr/etc/install
3160 # IRIX /sbin/install
3162 # AmigaOS /C/install, which installs bootblocks on floppy discs
3163 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3166 # OS/2's system install, which has a completely different semantic
3167 # ./install, which can be erroneously created by make from ./install.sh.
3168 # Reject install programs that cannot install multiple files.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3170 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3171 if test -z "$INSTALL"; then
3172 if ${ac_cv_path_install+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 # Account for people who put trailing slashes in PATH elements.
3181 case $as_dir/ in #((
3182 ./ | .// | /[cC]/* | \
3183 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3184 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3187 # OSF1 and SCO ODT 3.0 have their own names for install.
3188 # Don't use installbsd from OSF since it installs stuff as root
3190 for ac_prog in ginstall scoinst install; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3193 if test $ac_prog = install &&
3194 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3195 # AIX install. It has an incompatible calling convention.
3197 elif test $ac_prog = install &&
3198 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199 # program-specific install script used by HP pwplus--don't use.
3202 rm -rf conftest.one conftest.two conftest.dir
3203 echo one > conftest.one
3204 echo two > conftest.two
3206 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3207 test -s conftest.one && test -s conftest.two &&
3208 test -s conftest.dir/conftest.one &&
3209 test -s conftest.dir/conftest.two
3211 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3224 rm -rf conftest.one conftest.two conftest.dir
3227 if test "${ac_cv_path_install+set}" = set; then
3228 INSTALL=$ac_cv_path_install
3230 # As a last resort, use the slow shell script. Don't cache a
3231 # value for INSTALL within a source directory, because that will
3232 # break other packages using the cache if that directory is
3233 # removed, or if the value is a relative name.
3234 INSTALL=$ac_install_sh
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3238 $as_echo "$INSTALL" >&6; }
3240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3241 # It thinks the first close brace ends the variable substitution.
3242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3249 $as_echo_n "checking whether build environment is sane... " >&6; }
3250 # Reject unsafe characters in $srcdir or the absolute working directory
3251 # name. Accept space and tab only in the latter.
3255 *[\\\"\#\$\&\'\`$am_lf]*)
3256 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3259 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3260 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3263 # Do 'set' in a subshell so we don't clobber the current shell's
3264 # arguments. Must try -L first in case configure is actually a
3265 # symlink; some systems play weird games with the mod time of symlinks
3266 # (eg FreeBSD returns the mod time of the symlink's containing
3270 for am_try in 1 2; do
3271 echo "timestamp, slept: $am_has_slept" > conftest.file
3272 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3273 if test "$*" = "X"; then
3275 set X `ls -t "$srcdir/configure" conftest.file`
3277 if test "$*" != "X $srcdir/configure conftest.file" \
3278 && test "$*" != "X conftest.file $srcdir/configure"; then
3280 # If neither matched, then we have a broken ls. This can happen
3281 # if, for instance, CONFIG_SHELL is bash and it inherits a
3282 # broken ls alias from the environment. This has actually
3283 # happened. Such a system could not be considered "sane".
3284 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3285 alias in your environment" "$LINENO" 5
3287 if test "$2" = conftest.file || test $am_try -eq 2; then
3294 test "$2" = conftest.file
3300 as_fn_error $? "newly created file is older than distributed files!
3301 Check your system clock" "$LINENO" 5
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 # If we didn't sleep, we still need to ensure time stamps of config.status and
3306 # generated files are strictly newer.
3308 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3315 test "$program_prefix" != NONE &&
3316 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3317 # Use a double $ so make ignores it.
3318 test "$program_suffix" != NONE &&
3319 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3320 # Double any \ or $.
3321 # By default was `s,x,x', remove it if useless.
3322 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3323 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3325 # Expand $ac_aux_dir to an absolute path.
3326 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3328 if test x"${MISSING+set}" != xset; then
3331 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3333 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3336 # Use eval to expand $SHELL
3337 if eval "$MISSING --is-lightweight"; then
3338 am_missing_run="$MISSING "
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3342 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3345 if test x"${install_sh+set}" != xset; then
3348 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3350 install_sh="\${SHELL} $am_aux_dir/install-sh"
3354 # Installed binaries are usually stripped using 'strip' when the user
3355 # run "make install-strip". However 'strip' might not be the right
3356 # tool to use in cross-compilation environments, therefore Automake
3357 # will honor the 'STRIP' environment variable to overrule this program.
3358 if test "$cross_compiling" != no; then
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}strip; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_STRIP+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$STRIP"; then
3368 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 STRIP=$ac_cv_prog_STRIP
3388 if test -n "$STRIP"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3390 $as_echo "$STRIP" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3398 if test -z "$ac_cv_prog_STRIP"; then
3400 # Extract the first word of "strip", so it can be a program name with args.
3401 set dummy strip; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$ac_ct_STRIP"; then
3408 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_ac_ct_STRIP="strip"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3428 if test -n "$ac_ct_STRIP"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3430 $as_echo "$ac_ct_STRIP" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 if test "x$ac_ct_STRIP" = x; then
3439 case $cross_compiling:$ac_tool_warned in
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3448 STRIP="$ac_cv_prog_STRIP"
3452 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3455 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3456 if test -z "$MKDIR_P"; then
3457 if ${ac_cv_path_mkdir+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3464 test -z "$as_dir" && as_dir=.
3465 for ac_prog in mkdir gmkdir; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3468 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3469 'mkdir (GNU coreutils) '* | \
3470 'mkdir (coreutils) '* | \
3471 'mkdir (fileutils) '4.1*)
3472 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3482 test -d ./--version && rmdir ./--version
3483 if test "${ac_cv_path_mkdir+set}" = set; then
3484 MKDIR_P="$ac_cv_path_mkdir -p"
3486 # As a last resort, use the slow shell script. Don't cache a
3487 # value for MKDIR_P within a source directory, because that will
3488 # break other packages using the cache if that directory is
3489 # removed, or if the value is a relative name.
3490 MKDIR_P="$ac_install_sh -d"
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3494 $as_echo "$MKDIR_P" >&6; }
3496 for ac_prog in gawk mawk nawk awk
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_AWK+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$AWK"; then
3506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_AWK="$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$AWK"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3528 $as_echo "$AWK" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$AWK" && break
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3539 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3541 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3542 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3543 $as_echo_n "(cached) " >&6
3545 cat >conftest.make <<\_ACEOF
3548 @echo '@@@%%%=$(MAKE)=@@@%%%'
3550 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3551 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3553 eval ac_cv_prog_make_${ac_make}_set=yes;;
3555 eval ac_cv_prog_make_${ac_make}_set=no;;
3559 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 $as_echo "yes" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 SET_MAKE="MAKE=${MAKE-make}"
3569 rm -rf .tst 2>/dev/null
3570 mkdir .tst 2>/dev/null
3571 if test -d .tst; then
3576 rmdir .tst 2>/dev/null
3578 # Check whether --enable-silent-rules was given.
3579 if test "${enable_silent_rules+set}" = set; then :
3580 enableval=$enable_silent_rules;
3583 case $enable_silent_rules in # (((
3584 yes) AM_DEFAULT_VERBOSITY=0;;
3585 no) AM_DEFAULT_VERBOSITY=1;;
3586 *) AM_DEFAULT_VERBOSITY=1;;
3588 am_make=${MAKE-make}
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3590 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3591 if ${am_cv_make_support_nested_variables+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 if $as_echo 'TRUE=$(BAR$(V))
3600 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3601 am_cv_make_support_nested_variables=yes
3603 am_cv_make_support_nested_variables=no
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3607 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3608 if test $am_cv_make_support_nested_variables = yes; then
3610 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3612 AM_V=$AM_DEFAULT_VERBOSITY
3613 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3618 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3619 # is not polluted with repeated "-I."
3620 am__isrc=' -I$(srcdir)'
3621 # test to see if srcdir already configured
3622 if test -f $srcdir/config.status; then
3623 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3627 # test whether we have cygpath
3628 if test -z "$CYGPATH_W"; then
3629 if (cygpath --version) >/dev/null 2>/dev/null; then
3630 CYGPATH_W='cygpath -w'
3637 # Define the identity of the package.
3642 cat >>confdefs.h <<_ACEOF
3643 #define PACKAGE "$PACKAGE"
3647 cat >>confdefs.h <<_ACEOF
3648 #define VERSION "$VERSION"
3651 # Some tools Automake needs.
3653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3667 # For better backward compatibility. To be removed once Automake 1.9.x
3668 # dies out for good. For more background, see:
3669 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3670 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3671 mkdir_p='$(MKDIR_P)'
3673 # We need awk for the "check" target (and possibly the TAP driver). The
3674 # system "awk" is bad on some platforms.
3675 # Always define AMTAR for backward compatibility. Yes, it's still used
3676 # in the wild :-( We should find a proper way to deprecate it ...
3680 # We'll loop over all known methods to create a tar archive until one works.
3681 _am_tools='gnutar pax cpio none'
3683 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3690 # POSIX will say in a future version that running "rm -f" with no argument
3691 # is OK; and we want to be able to make that assumption in our Makefile
3692 # recipes. So use an aggressive probe to check that the usage we want is
3693 # actually supported "in the wild" to an acceptable degree.
3694 # See automake bug#10828.
3695 # To make any issue more visible, cause the running configure to be aborted
3696 # by default if the 'rm' program in use doesn't match our expectations; the
3697 # user can still override this though.
3698 if rm -f && rm -fr && rm -rf; then : OK; else
3702 Your 'rm' program seems unable to run without file operands specified
3703 on the command line, even when the '-f' option is present. This is contrary
3704 to the behaviour of most rm programs out there, and not conforming with
3705 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3707 Please tell bug-automake@gnu.org about your system, including the value
3708 of your $PATH and any error possibly output before this message. This
3709 can help us improve future automake versions.
3712 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3713 echo 'Configuration will proceed anyway, since you have set the' >&2
3714 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3718 Aborting the configuration process, to ensure you take notice of the issue.
3720 You can download and install GNU coreutils to get an 'rm' implementation
3721 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3723 If you want to complete the configuration process using your problematic
3724 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3725 to "yes", and re-run configure.
3728 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3733 # Check whether --enable-silent-rules was given.
3734 if test "${enable_silent_rules+set}" = set; then :
3735 enableval=$enable_silent_rules;
3738 case $enable_silent_rules in # (((
3739 yes) AM_DEFAULT_VERBOSITY=0;;
3740 no) AM_DEFAULT_VERBOSITY=1;;
3741 *) AM_DEFAULT_VERBOSITY=0;;
3743 am_make=${MAKE-make}
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3745 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3746 if ${am_cv_make_support_nested_variables+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if $as_echo 'TRUE=$(BAR$(V))
3755 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3756 am_cv_make_support_nested_variables=yes
3758 am_cv_make_support_nested_variables=no
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3762 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3763 if test $am_cv_make_support_nested_variables = yes; then
3765 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3767 AM_V=$AM_DEFAULT_VERBOSITY
3768 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3773 # Make sure we can run config.sub.
3774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3778 $as_echo_n "checking build system type... " >&6; }
3779 if ${ac_cv_build+:} false; then :
3780 $as_echo_n "(cached) " >&6
3782 ac_build_alias=$build_alias
3783 test "x$ac_build_alias" = x &&
3784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3785 test "x$ac_build_alias" = x &&
3786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3792 $as_echo "$ac_cv_build" >&6; }
3793 case $ac_cv_build in
3795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3798 ac_save_IFS=$IFS; IFS='-'
3804 # Remember, the first character of IFS is used to create $*,
3805 # except with old shells:
3808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3812 $as_echo_n "checking host system type... " >&6; }
3813 if ${ac_cv_host+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test "x$host_alias" = x; then
3817 ac_cv_host=$ac_cv_build
3819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3825 $as_echo "$ac_cv_host" >&6; }
3828 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3831 ac_save_IFS=$IFS; IFS='-'
3837 # Remember, the first character of IFS is used to create $*,
3838 # except with old shells:
3841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845 cat >>confdefs.h <<_ACEOF
3846 #define STR_SYSTEM "$host"
3849 ac_config_headers="$ac_config_headers config.h"
3852 ntp_atom_ok=${ntp_atom_ok=no}
3853 ntp_oncore_ok=${ntp_oncore_ok=no}
3854 ntp_parse_ok=${ntp_parse_ok=no}
3855 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3856 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3858 DEPDIR="${am__leading_dot}deps"
3860 ac_config_commands="$ac_config_commands depfiles"
3863 am_make=${MAKE-make}
3864 cat > confinc << 'END'
3866 @echo this is the am__doit target
3869 # If we don't find an include directive, just comment out the code.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3875 # First try GNU make style include.
3876 echo "include confinc" > confmf
3877 # Ignore all kinds of additional output from 'make'.
3878 case `$am_make -s -f confmf 2> /dev/null` in #(
3879 *the\ am__doit\ target*)
3885 # Now try BSD make style include.
3886 if test "$am__include" = "#"; then
3887 echo '.include "confinc"' > confmf
3888 case `$am_make -s -f confmf 2> /dev/null` in #(
3889 *the\ am__doit\ target*)
3890 am__include=.include
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3899 $as_echo "$_am_result" >&6; }
3900 rm -f confinc confmf
3902 # Check whether --enable-dependency-tracking was given.
3903 if test "${enable_dependency_tracking+set}" = set; then :
3904 enableval=$enable_dependency_tracking;
3907 if test "x$enable_dependency_tracking" != xno; then
3908 am_depcomp="$ac_aux_dir/depcomp"
3912 if test "x$enable_dependency_tracking" != xno; then
3932 #AC_USE_SYSTEM_EXTENSIONS
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 if test -n "$ac_tool_prefix"; then
3940 for ac_prog in $cclist
3942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_CC+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3979 test -n "$CC" && break
3982 if test -z "$CC"; then
3984 for ac_prog in $cclist
3986 # Extract the first word of "$ac_prog", so it can be a program name with args.
3987 set dummy $ac_prog; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -n "$ac_ct_CC"; then
3994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_CC="$ac_prog"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4014 if test -n "$ac_ct_CC"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4016 $as_echo "$ac_ct_CC" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4023 test -n "$ac_ct_CC" && break
4026 if test "x$ac_ct_CC" = x; then
4029 case $cross_compiling:$ac_tool_warned in
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033 ac_tool_warned=yes ;;
4040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error $? "no acceptable C compiler found in \$PATH
4043 See \`config.log' for more details" "$LINENO" 5; }
4045 # Provide some information about the compiler.
4046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4049 for ac_option in --version -v -V -qversion; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4059 if test -s conftest.err; then
4061 ... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
4065 rm -f conftest.er1 conftest.err
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4081 ac_clean_files_save=$ac_clean_files
4082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4083 # Try to create an executable without -o first, disregard a.out.
4084 # It will help us diagnose broken compilers, and finding out an intuition
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4087 $as_echo_n "checking whether the C compiler works... " >&6; }
4088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4090 # The possible output files:
4091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4094 for ac_file in $ac_files
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4103 if { { ac_try="$ac_link_default"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_link_default") 2>&5
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }; then :
4114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4117 # so that the user can short-circuit this test for compilers unknown to
4119 for ac_file in $ac_files ''
4121 test -f "$ac_file" || continue
4123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4126 # We found the default executable, but exeext='' is most
4130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4134 # We set ac_cv_exeext here because the later test for it is not
4135 # safe: cross compilers may not add the suffix if given an `-o'
4136 # argument, so we may need to know it at that point already.
4137 # Even if this section looks crufty: it has the advantage of
4144 test "$ac_cv_exeext" = no && ac_cv_exeext=
4149 if test -z "$ac_file"; then :
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error 77 "C compiler cannot create executables
4158 See \`config.log' for more details" "$LINENO" 5; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4161 $as_echo "yes" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4164 $as_echo_n "checking for C compiler default output file name... " >&6; }
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4166 $as_echo "$ac_file" >&6; }
4167 ac_exeext=$ac_cv_exeext
4169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4170 ac_clean_files=$ac_clean_files_save
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4172 $as_echo_n "checking for suffix of executables... " >&6; }
4173 if { { ac_try="$ac_link"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_link") 2>&5
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }; then :
4184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4186 # work properly (i.e., refer to `conftest.exe'), while it won't with
4188 for ac_file in conftest.exe conftest conftest.*; do
4189 test -f "$ac_file" || continue
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4201 See \`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest conftest$ac_cv_exeext
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4205 $as_echo "$ac_cv_exeext" >&6; }
4207 rm -f conftest.$ac_ext
4208 EXEEXT=$ac_cv_exeext
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4216 FILE *f = fopen ("conftest.out", "w");
4217 return ferror (f) || fclose (f) != 0;
4223 ac_clean_files="$ac_clean_files conftest.out"
4224 # Check that the compiler produces executables we can run. If not, either
4225 # the compiler is broken, or we cross compile.
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4227 $as_echo_n "checking whether we are cross compiling... " >&6; }
4228 if test "$cross_compiling" != yes; then
4229 { { ac_try="$ac_link"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link") 2>&5
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }
4240 if { ac_try='./conftest$ac_cv_exeext'
4241 { { case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_try") 2>&5
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; }; then
4253 if test "$cross_compiling" = maybe; then
4256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error $? "cannot run C compiled programs.
4259 If you meant to cross compile, use \`--host'.
4260 See \`config.log' for more details" "$LINENO" 5; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4265 $as_echo "$cross_compiling" >&6; }
4267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4268 ac_clean_files=$ac_clean_files_save
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4270 $as_echo_n "checking for suffix of object files... " >&6; }
4271 if ${ac_cv_objext+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 rm -f conftest.o conftest.obj
4286 if { { ac_try="$ac_compile"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_compile") 2>&5
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; then :
4297 for ac_file in conftest.o conftest.obj conftest.*; do
4298 test -f "$ac_file" || continue;
4300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4306 $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $? "cannot compute suffix of object files: cannot compile
4312 See \`config.log' for more details" "$LINENO" 5; }
4314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4317 $as_echo "$ac_cv_objext" >&6; }
4318 OBJEXT=$ac_cv_objext
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4322 if ${ac_cv_c_compiler_gnu+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4339 if ac_fn_c_try_compile "$LINENO"; then :
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4350 if test $ac_compiler_gnu = yes; then
4355 ac_test_CFLAGS=${CFLAGS+set}
4356 ac_save_CFLAGS=$CFLAGS
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4359 if ${ac_cv_prog_cc_g+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 ac_save_c_werror_flag=$ac_c_werror_flag
4363 ac_c_werror_flag=yes
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 if ac_fn_c_try_compile "$LINENO"; then :
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4392 if ac_fn_c_try_compile "$LINENO"; then :
4395 ac_c_werror_flag=$ac_save_c_werror_flag
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4408 if ac_fn_c_try_compile "$LINENO"; then :
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4419 $as_echo "$ac_cv_prog_cc_g" >&6; }
4420 if test "$ac_test_CFLAGS" = set; then
4421 CFLAGS=$ac_save_CFLAGS
4422 elif test $ac_cv_prog_cc_g = yes; then
4423 if test "$GCC" = yes; then
4429 if test "$GCC" = yes; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4437 if ${ac_cv_prog_cc_c89+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 ac_cv_prog_cc_c89=no
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4448 struct buf { int x; };
4449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4450 static char *e (p, i)
4456 static char *f (char * (*g) (char **, int), char **p, ...)
4461 s = g (p, va_arg (v,int));
4466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4467 function prototypes and stuff, but not '\xHH' hex character constants.
4468 These don't provoke an error unfortunately, instead are silently treated
4469 as 'x'. The following induces an error, until -std is added to get
4470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4471 array size at least. It's necessary to write '\x00'==0 to get something
4472 that's true only with -std. */
4473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4476 inside strings and character constants. */
4478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4480 int test (int i, double x);
4481 struct s1 {int (*f) (int a);};
4482 struct s2 {int (*f) (double a);};
4483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4497 CC="$ac_save_CC $ac_arg"
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_prog_cc_c89=$ac_arg
4501 rm -f core conftest.err conftest.$ac_objext
4502 test "x$ac_cv_prog_cc_c89" != "xno" && break
4504 rm -f conftest.$ac_ext
4509 case "x$ac_cv_prog_cc_c89" in
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4512 $as_echo "none needed" >&6; } ;;
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4515 $as_echo "unsupported" >&6; } ;;
4517 CC="$CC $ac_cv_prog_cc_c89"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4521 if test "x$ac_cv_prog_cc_c89" != xno; then :
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4537 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4538 if ${am_cv_prog_cc_c_o+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 # Make sure it works both with $CC and with simple cc.
4553 # Following AC_PROG_CC_C_O, we do the test twice because some
4554 # compilers refuse to overwrite an existing .o file with -o,
4555 # though they will create one.
4556 am_cv_prog_cc_c_o=yes
4558 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4559 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } \
4563 && test -f conftest2.$ac_objext; then
4566 am_cv_prog_cc_c_o=no
4570 rm -f core conftest*
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4574 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4575 if test "$am_cv_prog_cc_c_o" != yes; then
4576 # Losing compiler, so override with the script.
4577 # FIXME: It is wrong to rewrite CC.
4578 # But if we don't then we get into trouble of one sort or another.
4579 # A longer-term fix would be to have automake use am__CC in this case,
4580 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4581 CC="$am_aux_dir/compile $CC"
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 depcc="$CC" am_compiler_list=
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4593 $as_echo_n "checking dependency style of $depcc... " >&6; }
4594 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4598 # We make a subdir and do the tests there. Otherwise we can end up
4599 # making bogus files that we don't know about and never remove. For
4600 # instance it was reported that on HP-UX the gcc test will end up
4601 # making a dummy file named 'D' -- because '-MD' means "put the output
4605 # Copy depcomp to subdir because otherwise we won't find it if we're
4606 # using a relative directory.
4607 cp "$am_depcomp" conftest.dir
4609 # We will build objects and dependencies in a subdirectory because
4610 # it helps to detect inapplicable dependency modes. For instance
4611 # both Tru64's cc and ICC support -MD to output dependencies as a
4612 # side effect of compilation, but ICC will put the dependencies in
4613 # the current directory while Tru64 will put them in the object
4617 am_cv_CC_dependencies_compiler_type=none
4618 if test "$am_compiler_list" = ""; then
4619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4622 case " $depcc " in #(
4623 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4626 for depmode in $am_compiler_list; do
4627 # Setup a source with many dependencies, because some compilers
4628 # like to wrap large dependency lists on column 80 (with \), and
4629 # we should not choose a depcomp mode which is confused by this.
4631 # We need to recreate these files for each test, as the compiler may
4632 # overwrite some of them when testing with obscure command lines.
4633 # This happens at least with the AIX C compiler.
4635 for i in 1 2 3 4 5 6; do
4636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4637 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4638 # Solaris 10 /bin/sh.
4639 echo '/* dummy */' > sub/conftst$i.h
4641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4643 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4644 # mode. It turns out that the SunPro C++ compiler does not properly
4645 # handle '-M -o', and we need to detect this. Also, some Intel
4646 # versions had trouble with output in subdirs.
4647 am__obj=sub/conftest.${OBJEXT-o}
4648 am__minus_obj="-o $am__obj"
4651 # This depmode causes a compiler race in universal mode.
4652 test "$am__universal" = false || continue
4655 # After this tag, mechanisms are not by side-effect, so they'll
4656 # only be used when explicitly requested.
4657 if test "x$enable_dependency_tracking" = xyes; then
4663 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4664 # This compiler won't grok '-c -o', but also, the minuso test has
4665 # not run yet. These depmodes are late enough in the game, and
4666 # so weak that their functioning should not be impacted.
4667 am__obj=conftest.${OBJEXT-o}
4672 if depmode=$depmode \
4673 source=sub/conftest.c object=$am__obj \
4674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4675 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4676 >/dev/null 2>conftest.err &&
4677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4679 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4681 # icc doesn't choke on unknown options, it will just issue warnings
4682 # or remarks (even with -Werror). So we grep stderr for any message
4683 # that says an option was ignored or not supported.
4684 # When given -MP, icc 7.0 and 7.1 complain thusly:
4685 # icc: Command line warning: ignoring option '-M'; no argument required
4686 # The diagnosis changed in icc 8.0:
4687 # icc: Command line remark: option '-MP' not supported
4688 if (grep 'ignoring option' conftest.err ||
4689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4690 am_cv_CC_dependencies_compiler_type=$depmode
4699 am_cv_CC_dependencies_compiler_type=none
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4704 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4705 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4708 test "x$enable_dependency_tracking" != xno \
4709 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4711 am__fastdepCC_FALSE='#'
4713 am__fastdepCC_TRUE='#'
4714 am__fastdepCC_FALSE=
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4728 # On Suns, sometimes $CPP names a directory.
4729 if test -n "$CPP" && test -d "$CPP"; then
4732 if test -z "$CPP"; then
4733 if ${ac_cv_prog_CPP+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 # Double quotes because CPP needs to be expanded
4737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4740 for ac_c_preproc_warn_flag in '' yes
4742 # Use a header file that comes with gcc, so configuring glibc
4743 # with a fresh cross-compiler works.
4744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4745 # <limits.h> exists even on freestanding compilers.
4746 # On the NeXT, cc -E runs the code through the compiler's parser,
4747 # not just through cpp. "Syntax error" is here to catch this case.
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if ac_fn_c_try_cpp "$LINENO"; then :
4760 # Broken: fails on valid input.
4763 rm -f conftest.err conftest.i conftest.$ac_ext
4765 # OK, works on sane cases. Now check whether nonexistent headers
4766 # can be detected and how.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4771 if ac_fn_c_try_cpp "$LINENO"; then :
4772 # Broken: success on invalid input.
4775 # Passes both tests.
4779 rm -f conftest.err conftest.i conftest.$ac_ext
4782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783 rm -f conftest.i conftest.err conftest.$ac_ext
4784 if $ac_preproc_ok; then :
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4797 $as_echo "$CPP" >&6; }
4799 for ac_c_preproc_warn_flag in '' yes
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4810 # include <limits.h>
4812 # include <assert.h>
4816 if ac_fn_c_try_cpp "$LINENO"; then :
4819 # Broken: fails on valid input.
4822 rm -f conftest.err conftest.i conftest.$ac_ext
4824 # OK, works on sane cases. Now check whether nonexistent headers
4825 # can be detected and how.
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4830 if ac_fn_c_try_cpp "$LINENO"; then :
4831 # Broken: success on invalid input.
4834 # Passes both tests.
4838 rm -f conftest.err conftest.i conftest.$ac_ext
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.i conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then :
4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4848 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4849 See \`config.log' for more details" "$LINENO" 5; }
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4861 if ${ac_cv_path_GREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -z "$GREP"; then
4865 ac_path_GREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in grep ggrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_GREP" || continue
4876 # Check for GNU ac_path_GREP and select it if it is found.
4877 # Check for GNU $ac_path_GREP
4878 case `"$ac_path_GREP" --version 2>&1` in
4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4883 $as_echo_n 0123456789 >"conftest.in"
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'GREP' >> "conftest.nl"
4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_GREP="$ac_path_GREP"
4896 ac_path_GREP_max=$ac_count
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 $ac_path_GREP_found && break 3
4909 if test -z "$ac_cv_path_GREP"; then
4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913 ac_cv_path_GREP=$GREP
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4918 $as_echo "$ac_cv_path_GREP" >&6; }
4919 GREP="$ac_cv_path_GREP"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4923 $as_echo_n "checking for egrep... " >&6; }
4924 if ${ac_cv_path_EGREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928 then ac_cv_path_EGREP="$GREP -E"
4930 if test -z "$EGREP"; then
4931 ac_path_EGREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in egrep; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4941 as_fn_executable_p "$ac_path_EGREP" || continue
4942 # Check for GNU ac_path_EGREP and select it if it is found.
4943 # Check for GNU $ac_path_EGREP
4944 case `"$ac_path_EGREP" --version 2>&1` in
4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4949 $as_echo_n 0123456789 >"conftest.in"
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo 'EGREP' >> "conftest.nl"
4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_EGREP="$ac_path_EGREP"
4962 ac_path_EGREP_max=$ac_count
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 $ac_path_EGREP_found && break 3
4975 if test -z "$ac_cv_path_EGREP"; then
4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4979 ac_cv_path_EGREP=$EGREP
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4985 $as_echo "$ac_cv_path_EGREP" >&6; }
4986 EGREP="$ac_cv_path_EGREP"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4990 $as_echo_n "checking for ANSI C header files... " >&6; }
4991 if ${ac_cv_header_stdc+:} false; then :
4992 $as_echo_n "(cached) " >&6
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_header_stdc=yes
5012 ac_cv_header_stdc=no
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 if test $ac_cv_header_stdc = yes; then
5017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5024 $EGREP "memchr" >/dev/null 2>&1; then :
5027 ac_cv_header_stdc=no
5033 if test $ac_cv_header_stdc = yes; then
5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "free" >/dev/null 2>&1; then :
5044 ac_cv_header_stdc=no
5050 if test $ac_cv_header_stdc = yes; then
5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052 if test "$cross_compiling" = yes; then :
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5059 #if ((' ' & 0x0FF) == 0x020)
5060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5063 # define ISLOWER(c) \
5064 (('a' <= (c) && (c) <= 'i') \
5065 || ('j' <= (c) && (c) <= 'r') \
5066 || ('s' <= (c) && (c) <= 'z'))
5067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5075 for (i = 0; i < 256; i++)
5076 if (XOR (islower (i), ISLOWER (i))
5077 || toupper (i) != TOUPPER (i))
5082 if ac_fn_c_try_run "$LINENO"; then :
5085 ac_cv_header_stdc=no
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5088 conftest.$ac_objext conftest.beam conftest.$ac_ext
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5094 $as_echo "$ac_cv_header_stdc" >&6; }
5095 if test $ac_cv_header_stdc = yes; then
5097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5103 inttypes.h stdint.h unistd.h
5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5109 cat >>confdefs.h <<_ACEOF
5110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5121 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5129 if test "$MINIX" = yes; then
5131 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5134 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5137 $as_echo "#define _MINIX 1" >>confdefs.h
5144 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5151 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5152 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5158 # define __EXTENSIONS__ 1
5159 $ac_includes_default
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_safe_to_define___extensions__=yes
5171 ac_cv_safe_to_define___extensions__=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5176 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5177 test $ac_cv_safe_to_define___extensions__ = yes &&
5178 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5180 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5182 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5184 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5186 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5190 case $ac_cv_prog_cc_stdc in #(
5192 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5195 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5196 if ${ac_cv_prog_cc_c99+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 ac_cv_prog_cc_c99=no
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5204 #include <stdbool.h>
5209 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5210 #define debug(...) fprintf (stderr, __VA_ARGS__)
5211 #define showlist(...) puts (#__VA_ARGS__)
5212 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5214 test_varargs_macros (void)
5219 debug ("X = %d\n", x);
5220 showlist (The first, second, and third items.);
5221 report (x>y, "x is %d but y is %d", x, y);
5224 // Check long long types.
5225 #define BIG64 18446744073709551615ull
5226 #define BIG32 4294967295ul
5227 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5229 your preprocessor is broken;
5233 your preprocessor is broken;
5235 static long long int bignum = -9223372036854775807LL;
5236 static unsigned long long int ubignum = BIG64;
5238 struct incomplete_array
5246 const wchar_t *name;
5250 typedef const char *ccp;
5253 test_restrict (ccp restrict text)
5255 // See if C++-style comments work.
5256 // Iterate through items via the restricted pointer.
5257 // Also check for declarations in for loops.
5258 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5263 // Check varargs and va_copy.
5265 test_varargs (const char *format, ...)
5268 va_start (args, format);
5270 va_copy (args_copy, args);
5281 str = va_arg (args_copy, const char *);
5284 number = va_arg (args_copy, int);
5287 fnumber = va_arg (args_copy, double);
5302 _Bool success = false;
5305 if (test_restrict ("String literal") == 0)
5307 char *restrict newvar = "Another string";
5310 test_varargs ("s, d' f .", "string", 65, 34.234);
5311 test_varargs_macros ();
5313 // Check flexible array members.
5314 struct incomplete_array *ia =
5315 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5317 for (int i = 0; i < ia->datasize; ++i)
5318 ia->data[i] = i * 1.234;
5320 // Check named initializers.
5321 struct named_init ni = {
5323 .name = L"Test wide string",
5324 .average = 543.34343,
5329 int dynamic_array[ni.number];
5330 dynamic_array[ni.number - 1] = 543;
5332 // work around unused variable warnings
5333 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5334 || dynamic_array[ni.number - 1] != 543);
5340 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5342 CC="$ac_save_CC $ac_arg"
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_cv_prog_cc_c99=$ac_arg
5346 rm -f core conftest.err conftest.$ac_objext
5347 test "x$ac_cv_prog_cc_c99" != "xno" && break
5349 rm -f conftest.$ac_ext
5354 case "x$ac_cv_prog_cc_c99" in
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5357 $as_echo "none needed" >&6; } ;;
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5360 $as_echo "unsupported" >&6; } ;;
5362 CC="$CC $ac_cv_prog_cc_c99"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5364 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5366 if test "x$ac_cv_prog_cc_c99" != xno; then :
5367 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5371 if ${ac_cv_prog_cc_c89+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 ac_cv_prog_cc_c89=no
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5382 struct buf { int x; };
5383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5384 static char *e (p, i)
5390 static char *f (char * (*g) (char **, int), char **p, ...)
5395 s = g (p, va_arg (v,int));
5400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5401 function prototypes and stuff, but not '\xHH' hex character constants.
5402 These don't provoke an error unfortunately, instead are silently treated
5403 as 'x'. The following induces an error, until -std is added to get
5404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5405 array size at least. It's necessary to write '\x00'==0 to get something
5406 that's true only with -std. */
5407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5410 inside strings and character constants. */
5412 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5414 int test (int i, double x);
5415 struct s1 {int (*f) (int a);};
5416 struct s2 {int (*f) (double a);};
5417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5428 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5431 CC="$ac_save_CC $ac_arg"
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_prog_cc_c89=$ac_arg
5435 rm -f core conftest.err conftest.$ac_objext
5436 test "x$ac_cv_prog_cc_c89" != "xno" && break
5438 rm -f conftest.$ac_ext
5443 case "x$ac_cv_prog_cc_c89" in
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5446 $as_echo "none needed" >&6; } ;;
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5449 $as_echo "unsupported" >&6; } ;;
5451 CC="$CC $ac_cv_prog_cc_c89"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5453 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5455 if test "x$ac_cv_prog_cc_c89" != xno; then :
5456 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5458 ac_cv_prog_cc_stdc=no
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5465 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5466 if ${ac_cv_prog_cc_stdc+:} false; then :
5467 $as_echo_n "(cached) " >&6
5470 case $ac_cv_prog_cc_stdc in #(
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 $as_echo "unsupported" >&6; } ;; #(
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5476 $as_echo "none needed" >&6; } ;; #(
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5479 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5486 # Ralf Wildenhues: With per-target flags we need CC_C_O
5487 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5489 if test $ac_cv_c_compiler_gnu = yes; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5491 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5492 if ${ac_cv_prog_gcc_traditional+:} false; then :
5493 $as_echo_n "(cached) " >&6
5495 ac_pattern="Autoconf.*'x'"
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5503 ac_cv_prog_gcc_traditional=yes
5505 ac_cv_prog_gcc_traditional=no
5510 if test $ac_cv_prog_gcc_traditional = no; then
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5518 ac_cv_prog_gcc_traditional=yes
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5525 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5526 if test $ac_cv_prog_gcc_traditional = yes; then
5527 CC="$CC -traditional"
5542 case "$ac_cv_prog_cc_c89" in
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5545 version 4.2.5 and higher." >&5
5546 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5547 version 4.2.5 and higher." >&2;}
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5552 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5553 if ${ntp_cv_cpp_warning+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 ntp_cv_cpp_warning=yes
5570 ntp_cv_cpp_warning=no
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5577 $as_echo "$ntp_cv_cpp_warning" >&6; }
5578 case "$ntp_cv_cpp_warning" in
5581 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5586 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5587 if ${ntp_cv_cc_attribute+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5596 void foo(void) __attribute__((__noreturn__));
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 ntp_cv_cc_attribute=yes
5605 ntp_cv_cc_attribute=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5612 $as_echo "$ntp_cv_cc_attribute" >&6; }
5613 case "$ntp_cv_cc_attribute" in
5616 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5623 SAVED_CFLAGS="$CFLAGS"
5624 CFLAGS="$CFLAGS -Wstrict-overflow"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5626 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5627 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5628 $as_echo_n "(cached) " >&6
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ntp_cv_gcc_Wstrict_overflow=yes
5644 ntp_cv_gcc_Wstrict_overflow=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5651 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5653 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5656 CFLAGS="$SAVED_CFLAGS -Winit-self"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5658 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5659 if ${ntp_cv_gcc_Winit_self+:} false; then :
5660 $as_echo_n "(cached) " >&6
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 ntp_cv_gcc_Winit_self=yes
5677 ntp_cv_gcc_Winit_self=no
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5685 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5686 CFLAGS="$SAVED_CFLAGS"
5687 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5689 # $ntp_cv_gcc_Winit_self is tested later to add the
5690 # flag to CFLAGS_NTP.
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5693 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5694 if ${ntp_cv_gc_sections_runs+:} false; then :
5695 $as_echo_n "(cached) " >&6
5698 origCFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS -Wl,--gc-sections"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5713 int read_success_once;
5715 fpC = fopen("conftest.c", "r");
5719 cch = fread(buf, sizeof(buf), 1, fpC);
5720 read_success_once |= (0 != cch);
5722 if (!read_success_once)
5726 if (0 != fclose(fpC))
5736 if ac_fn_c_try_link "$LINENO"; then :
5738 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5739 ntp_cv_gc_sections_runs=no
5741 ntp_cv_gc_sections_runs=no
5742 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5746 ntp_cv_gc_sections_runs=no
5749 rm -f core conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 CFLAGS="$origCFLAGS"
5752 { origCFLAGS=; unset origCFLAGS;}
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5757 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5758 case "$ntp_cv_gc_sections_runs" in
5760 LDADD_LIBNTP="-Wl,--gc-sections"
5761 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5767 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5768 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5769 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5770 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5771 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5772 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5773 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5774 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5775 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5776 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5777 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5778 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5779 case "$ntp_cv_gcc_Winit_self" in
5781 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5783 case "$ntp_cv_gcc_Wstrict_overflow" in
5785 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5787 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5792 $as_echo_n "checking additional compiler flags... " >&6; }
5793 # allow ntp_os_cflags to be preset to skip this stuff
5794 case "${ntp_os_cflags+set}" in
5803 # turn on additional headers
5804 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5807 # avoid circular dependencies in yp headers, and more
5808 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5809 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5812 # XXX Only verified thru AIX6.
5813 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5814 # avoid circular dependencies in yp headers
5815 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5816 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5817 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5818 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5819 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5822 ntp_os_cflags="-DSYS_AMIGA"
5824 darwin*|macosx*|rhapsody*)
5825 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5827 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5832 # use Ansi compiler on HPUX, and some -Wp magic
5833 ntp_os_cflags="-Ae -Wp,-H18816"
5836 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5843 # use Ansi compiler on HPUX
5846 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5851 # do not use 64-bit compiler
5852 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5856 ntp_os_cflags="-posix"
5858 solaris1*|solaris2.[0-5]|solaris2.5.*)
5860 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5863 # turn on 64-bit file offset interface
5864 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5871 # Quick and dirty sanity check
5872 case "$VX_KERNEL" in
5874 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5876 ntp_os_cflags="-DSYS_VXWORKS"
5881 case "$ntp_os_cflags" in
5883 ntp_os_cflags_msg="none needed"
5886 ntp_os_cflags_msg="$ntp_os_cflags"
5888 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5890 $as_echo "$ntp_os_cflags_msg" >&6; }
5891 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5894 $as_echo_n "checking additional linker flags... " >&6; }
5895 # HMS: The following might still need tweaking
5896 # allow ntp_os_ldflags to be preset to skip this stuff
5897 case "${ntp_os_ldflags+set}" in
5906 ntp_os_ldflags="-Wl,+allowdups"
5913 case "$ntp_os_ldflags" in
5915 ntp_os_ldflags_msg="none needed"
5918 ntp_os_ldflags_msg="$ntp_os_ldflags"
5920 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5922 $as_echo "$ntp_os_ldflags_msg" >&6; }
5923 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5927 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5928 if ${ac_cv_c_bigendian+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 ac_cv_c_bigendian=unknown
5932 # See if we're dealing with a universal compiler.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #ifndef __APPLE_CC__
5936 not a universal capable compiler
5941 if ac_fn_c_try_compile "$LINENO"; then :
5943 # Check for potential -arch flags. It is not universal unless
5944 # there are at least two -arch flags with different values.
5947 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5948 if test -n "$ac_prev"; then
5950 i?86 | x86_64 | ppc | ppc64)
5951 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5954 ac_cv_c_bigendian=universal
5960 elif test "x$ac_word" = "x-arch"; then
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 if test $ac_cv_c_bigendian = unknown; then
5967 # See if sys/param.h defines the BYTE_ORDER macro.
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <sys/types.h>
5971 #include <sys/param.h>
5976 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5977 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 # It does; now see whether it defined to BIG_ENDIAN or not.
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #include <sys/types.h>
5991 #include <sys/param.h>
5996 #if BYTE_ORDER != BIG_ENDIAN
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 ac_cv_c_bigendian=yes
6007 ac_cv_c_bigendian=no
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 if test $ac_cv_c_bigendian = unknown; then
6014 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6022 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6030 if ac_fn_c_try_compile "$LINENO"; then :
6031 # It does; now see whether it defined to _BIG_ENDIAN or not.
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_c_bigendian=yes
6050 ac_cv_c_bigendian=no
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 if test $ac_cv_c_bigendian = unknown; then
6057 # Compile a test program.
6058 if test "$cross_compiling" = yes; then :
6059 # Try to guess by grepping values from an object file.
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 short int ascii_mm[] =
6063 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6064 short int ascii_ii[] =
6065 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6066 int use_ascii (int i) {
6067 return ascii_mm[i] + ascii_ii[i];
6069 short int ebcdic_ii[] =
6070 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6071 short int ebcdic_mm[] =
6072 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6073 int use_ebcdic (int i) {
6074 return ebcdic_mm[i] + ebcdic_ii[i];
6081 return use_ascii (foo) == use_ebcdic (foo);
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6088 ac_cv_c_bigendian=yes
6090 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6091 if test "$ac_cv_c_bigendian" = unknown; then
6092 ac_cv_c_bigendian=no
6094 # finding both strings is unlikely to happen, but who knows?
6095 ac_cv_c_bigendian=unknown
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 $ac_includes_default
6108 /* Are we little or big endian? From Harbison&Steele. */
6112 char c[sizeof (long int)];
6115 return u.c[sizeof (long int) - 1] == 1;
6121 if ac_fn_c_try_run "$LINENO"; then :
6122 ac_cv_c_bigendian=no
6124 ac_cv_c_bigendian=yes
6126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6127 conftest.$ac_objext conftest.beam conftest.$ac_ext
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6133 $as_echo "$ac_cv_c_bigendian" >&6; }
6134 case $ac_cv_c_bigendian in #(
6136 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6142 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6146 as_fn_error $? "unknown endianness
6147 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6151 $as_echo_n "checking for working volatile... " >&6; }
6152 if ${ac_cv_c_volatile+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6163 int * volatile y = (int *) 0;
6169 if ac_fn_c_try_compile "$LINENO"; then :
6170 ac_cv_c_volatile=yes
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6177 $as_echo "$ac_cv_c_volatile" >&6; }
6178 if test $ac_cv_c_volatile = no; then
6180 $as_echo "#define volatile /**/" >>confdefs.h
6185 ac_cpp='$CPP $CPPFLAGS'
6186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6190 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6191 # On Suns, sometimes $CPP names a directory.
6192 if test -n "$CPP" && test -d "$CPP"; then
6195 if test -z "$CPP"; then
6196 if ${ac_cv_prog_CPP+:} false; then :
6197 $as_echo_n "(cached) " >&6
6199 # Double quotes because CPP needs to be expanded
6200 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6203 for ac_c_preproc_warn_flag in '' yes
6205 # Use a header file that comes with gcc, so configuring glibc
6206 # with a fresh cross-compiler works.
6207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6208 # <limits.h> exists even on freestanding compilers.
6209 # On the NeXT, cc -E runs the code through the compiler's parser,
6210 # not just through cpp. "Syntax error" is here to catch this case.
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6214 # include <limits.h>
6216 # include <assert.h>
6220 if ac_fn_c_try_cpp "$LINENO"; then :
6223 # Broken: fails on valid input.
6226 rm -f conftest.err conftest.i conftest.$ac_ext
6228 # OK, works on sane cases. Now check whether nonexistent headers
6229 # can be detected and how.
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <ac_nonexistent.h>
6234 if ac_fn_c_try_cpp "$LINENO"; then :
6235 # Broken: success on invalid input.
6238 # Passes both tests.
6242 rm -f conftest.err conftest.i conftest.$ac_ext
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.i conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then :
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6260 $as_echo "$CPP" >&6; }
6262 for ac_c_preproc_warn_flag in '' yes
6264 # Use a header file that comes with gcc, so configuring glibc
6265 # with a fresh cross-compiler works.
6266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 # <limits.h> exists even on freestanding compilers.
6268 # On the NeXT, cc -E runs the code through the compiler's parser,
6269 # not just through cpp. "Syntax error" is here to catch this case.
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6273 # include <limits.h>
6275 # include <assert.h>
6279 if ac_fn_c_try_cpp "$LINENO"; then :
6282 # Broken: fails on valid input.
6285 rm -f conftest.err conftest.i conftest.$ac_ext
6287 # OK, works on sane cases. Now check whether nonexistent headers
6288 # can be detected and how.
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <ac_nonexistent.h>
6293 if ac_fn_c_try_cpp "$LINENO"; then :
6294 # Broken: success on invalid input.
6297 # Passes both tests.
6301 rm -f conftest.err conftest.i conftest.$ac_ext
6304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305 rm -f conftest.i conftest.err conftest.$ac_ext
6306 if $ac_preproc_ok; then :
6309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6311 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6312 See \`config.log' for more details" "$LINENO" 5; }
6316 ac_cpp='$CPP $CPPFLAGS'
6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 for ac_prog in 'bison -y' byacc
6326 # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_YACC+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 if test -n "$YACC"; then
6334 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_YACC="$ac_prog"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 YACC=$ac_cv_prog_YACC
6354 if test -n "$YACC"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6356 $as_echo "$YACC" >&6; }
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6363 test -n "$YACC" && break
6365 test -n "$YACC" || YACC="yacc"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6368 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6369 if ${ac_cv_prog_cc_c99+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 ac_cv_prog_cc_c99=no
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6377 #include <stdbool.h>
6382 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6383 #define debug(...) fprintf (stderr, __VA_ARGS__)
6384 #define showlist(...) puts (#__VA_ARGS__)
6385 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6387 test_varargs_macros (void)
6392 debug ("X = %d\n", x);
6393 showlist (The first, second, and third items.);
6394 report (x>y, "x is %d but y is %d", x, y);
6397 // Check long long types.
6398 #define BIG64 18446744073709551615ull
6399 #define BIG32 4294967295ul
6400 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6402 your preprocessor is broken;
6406 your preprocessor is broken;
6408 static long long int bignum = -9223372036854775807LL;
6409 static unsigned long long int ubignum = BIG64;
6411 struct incomplete_array
6419 const wchar_t *name;
6423 typedef const char *ccp;
6426 test_restrict (ccp restrict text)
6428 // See if C++-style comments work.
6429 // Iterate through items via the restricted pointer.
6430 // Also check for declarations in for loops.
6431 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6436 // Check varargs and va_copy.
6438 test_varargs (const char *format, ...)
6441 va_start (args, format);
6443 va_copy (args_copy, args);
6454 str = va_arg (args_copy, const char *);
6457 number = va_arg (args_copy, int);
6460 fnumber = va_arg (args_copy, double);
6475 _Bool success = false;
6478 if (test_restrict ("String literal") == 0)
6480 char *restrict newvar = "Another string";
6483 test_varargs ("s, d' f .", "string", 65, 34.234);
6484 test_varargs_macros ();
6486 // Check flexible array members.
6487 struct incomplete_array *ia =
6488 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6490 for (int i = 0; i < ia->datasize; ++i)
6491 ia->data[i] = i * 1.234;
6493 // Check named initializers.
6494 struct named_init ni = {
6496 .name = L"Test wide string",
6497 .average = 543.34343,
6502 int dynamic_array[ni.number];
6503 dynamic_array[ni.number - 1] = 543;
6505 // work around unused variable warnings
6506 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6507 || dynamic_array[ni.number - 1] != 543);
6513 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6515 CC="$ac_save_CC $ac_arg"
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 ac_cv_prog_cc_c99=$ac_arg
6519 rm -f core conftest.err conftest.$ac_objext
6520 test "x$ac_cv_prog_cc_c99" != "xno" && break
6522 rm -f conftest.$ac_ext
6527 case "x$ac_cv_prog_cc_c99" in
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6530 $as_echo "none needed" >&6; } ;;
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6533 $as_echo "unsupported" >&6; } ;;
6535 CC="$CC $ac_cv_prog_cc_c99"
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6537 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6539 if test "x$ac_cv_prog_cc_c99" != xno; then :
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6546 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 struct foo_s {int i1; int i2;};
6560 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6565 $as_echo "yes" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6570 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 ac_cpp='$CPP $CPPFLAGS'
6577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6586 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6589 # Check whether --with-hardenfile was given.
6590 if test "${with_hardenfile+set}" = set; then :
6591 withval=$with_hardenfile;
6599 SENTINEL_DIR="$PWD" && \
6600 cd $srcdir/sntp && \
6601 case "$with_hardenfile" in \
6603 scripts/genHardFlags -d "$SENTINEL_DIR" \
6606 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6609 ) > genHardFlags.i 2> genHardFlags.err
6612 case "$GENHARDFLAG" in
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6615 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6616 rm genHardFlags.err genHardFlags.i
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6620 $as_echo "failed." >&6; }
6621 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6633 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
6635 case "$srcdir::${force_ntp_vpath_hack-no}" in
6637 ;; # VPATH_HACK path is for VPATH builds only.
6639 ntp_vpath_hack="yes"
6642 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6644 ntp_vpath_hack="yes"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6648 $as_echo "$ntp_vpath_hack" >&6; }
6649 if test x$ntp_vpath_hack = xyes; then
6651 VPATH_HACK_FALSE='#'
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6661 $as_echo_n "checking for install dir and man conventions... " >&6; }
6664 # Check whether --with-locfile was given.
6665 if test "${with_locfile+set}" = set; then :
6666 withval=$with_locfile;
6674 SENTINEL_DIR="$PWD" && \
6675 cd $srcdir/sntp && \
6676 case "$with_locfile" in \
6678 scripts/genLocInfo -d "$SENTINEL_DIR" \
6681 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6684 ) > genLocInfo.i 2> genLocInfo.err
6687 case "$GENLOCINFO" in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6690 $as_echo "in file $GENLOCINFOFILE" >&6; }
6691 rm genLocInfo.err genLocInfo.i
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6695 $as_echo "failed." >&6; }
6696 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6700 if test "$CALC_TICKADJ_MS" ; then
6701 WANT_CALC_TICKADJ_MS_TRUE=
6702 WANT_CALC_TICKADJ_MS_FALSE='#'
6704 WANT_CALC_TICKADJ_MS_TRUE='#'
6705 WANT_CALC_TICKADJ_MS_FALSE=
6750 if test -z "$NTPSWEEP_NI" ; then
6751 INSTALL_NTPSWEEP_TRUE=
6752 INSTALL_NTPSWEEP_FALSE='#'
6754 INSTALL_NTPSWEEP_TRUE='#'
6755 INSTALL_NTPSWEEP_FALSE=
6798 if test -z "$UPDATE_LEAP_NI" ; then
6799 INSTALL_UPDATE_LEAP_TRUE=
6800 INSTALL_UPDATE_LEAP_FALSE='#'
6802 INSTALL_UPDATE_LEAP_TRUE='#'
6803 INSTALL_UPDATE_LEAP_FALSE=
6808 if test -n "$ac_tool_prefix"; then
6809 for ac_prog in ar lib "link -lib"
6811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_AR+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 if test -n "$AR"; then
6819 ac_cv_prog_AR="$AR" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 if test -n "$AR"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6841 $as_echo "$AR" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6848 test -n "$AR" && break
6851 if test -z "$AR"; then
6853 for ac_prog in ar lib "link -lib"
6855 # Extract the first word of "$ac_prog", so it can be a program name with args.
6856 set dummy $ac_prog; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$ac_ct_AR"; then
6863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_ac_ct_AR="$ac_prog"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6883 if test -n "$ac_ct_AR"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6885 $as_echo "$ac_ct_AR" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6892 test -n "$ac_ct_AR" && break
6895 if test "x$ac_ct_AR" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6911 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6912 if ${am_cv_ar_interface+:} false; then :
6913 $as_echo_n "(cached) " >&6
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 am_cv_ar_interface=ar
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 int some_variable = 0;
6926 if ac_fn_c_try_compile "$LINENO"; then :
6927 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6929 (eval $am_ar_try) 2>&5
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }
6933 if test "$ac_status" -eq 0; then
6934 am_cv_ar_interface=ar
6936 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6938 (eval $am_ar_try) 2>&5
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }
6942 if test "$ac_status" -eq 0; then
6943 am_cv_ar_interface=lib
6945 am_cv_ar_interface=unknown
6948 rm -f conftest.lib libconftest.a
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 ac_cpp='$CPP $CPPFLAGS'
6954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6960 $as_echo "$am_cv_ar_interface" >&6; }
6962 case $am_cv_ar_interface in
6966 # Microsoft lib, so override with the ar-lib wrapper script.
6967 # FIXME: It is wrong to rewrite AR.
6968 # But if we don't then we get into trouble of one sort or another.
6969 # A longer-term fix would be to have automake use am__AR in this case,
6970 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6972 AR="$am_aux_dir/ar-lib $AR"
6975 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6981 # So far, the only shared library we might use is libopts.
6982 # It's a small library - we might as well use a static version of it.
6983 # Check whether --enable-shared was given.
6984 if test "${enable_shared+set}" = set; then :
6985 enableval=$enable_shared; p=${PACKAGE-default}
6987 yes) enable_shared=yes ;;
6988 no) enable_shared=no ;;
6991 # Look at the argument we got. We use all the common list separators.
6992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6993 for pkg in $enableval; do
6995 if test "X$pkg" = "X$p"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7022 macro_version='2.4.6'
7023 macro_revision='2.4.6'
7037 ltmain=$ac_aux_dir/ltmain.sh
7039 # Backslashify metacharacters that are still active within
7040 # double-quoted strings.
7041 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7043 # Same as above, but do not quote variable references.
7044 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7046 # Sed substitution to delay expansion of an escaped shell variable in a
7047 # double_quote_subst'ed string.
7048 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7050 # Sed substitution to delay expansion of an escaped single quote.
7051 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7053 # Sed substitution to avoid accidental globbing in evaled expressions
7054 no_glob_subst='s/\*/\\\*/g'
7056 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7058 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7061 $as_echo_n "checking how to print strings... " >&6; }
7062 # Test print first, because it will be a builtin if present.
7063 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7064 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7066 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7069 # Use this function as a fallback that always works.
7070 func_fallback_echo ()
7072 eval 'cat <<_LTECHO_EOF
7076 ECHO='func_fallback_echo'
7079 # func_echo_all arg...
7080 # Invoke $ECHO with all args, space-separated.
7087 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7088 $as_echo "printf" >&6; } ;;
7089 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7090 $as_echo "print -r" >&6; } ;;
7091 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7092 $as_echo "cat" >&6; } ;;
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7109 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7110 if ${ac_cv_path_SED+:} false; then :
7111 $as_echo_n "(cached) " >&6
7113 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7114 for ac_i in 1 2 3 4 5 6 7; do
7115 ac_script="$ac_script$as_nl$ac_script"
7117 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7118 { ac_script=; unset ac_script;}
7119 if test -z "$SED"; then
7120 ac_path_SED_found=false
7121 # Loop through the user's path and test for each of PROGNAME-LIST
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_prog in sed gsed; do
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7130 as_fn_executable_p "$ac_path_SED" || continue
7131 # Check for GNU ac_path_SED and select it if it is found.
7132 # Check for GNU $ac_path_SED
7133 case `"$ac_path_SED" --version 2>&1` in
7135 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7138 $as_echo_n 0123456789 >"conftest.in"
7141 cat "conftest.in" "conftest.in" >"conftest.tmp"
7142 mv "conftest.tmp" "conftest.in"
7143 cp "conftest.in" "conftest.nl"
7144 $as_echo '' >> "conftest.nl"
7145 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7147 as_fn_arith $ac_count + 1 && ac_count=$as_val
7148 if test $ac_count -gt ${ac_path_SED_max-0}; then
7149 # Best one so far, save it but keep looking for a better one
7150 ac_cv_path_SED="$ac_path_SED"
7151 ac_path_SED_max=$ac_count
7153 # 10*(2^10) chars as input seems more than enough
7154 test $ac_count -gt 10 && break
7156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7159 $ac_path_SED_found && break 3
7164 if test -z "$ac_cv_path_SED"; then
7165 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7173 $as_echo "$ac_cv_path_SED" >&6; }
7174 SED="$ac_cv_path_SED"
7177 test -z "$SED" && SED=sed
7178 Xsed="$SED -e 1s/^X//"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7191 $as_echo_n "checking for fgrep... " >&6; }
7192 if ${ac_cv_path_FGREP+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7196 then ac_cv_path_FGREP="$GREP -F"
7198 if test -z "$FGREP"; then
7199 ac_path_FGREP_found=false
7200 # Loop through the user's path and test for each of PROGNAME-LIST
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7205 test -z "$as_dir" && as_dir=.
7206 for ac_prog in fgrep; do
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7209 as_fn_executable_p "$ac_path_FGREP" || continue
7210 # Check for GNU ac_path_FGREP and select it if it is found.
7211 # Check for GNU $ac_path_FGREP
7212 case `"$ac_path_FGREP" --version 2>&1` in
7214 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7217 $as_echo_n 0123456789 >"conftest.in"
7220 cat "conftest.in" "conftest.in" >"conftest.tmp"
7221 mv "conftest.tmp" "conftest.in"
7222 cp "conftest.in" "conftest.nl"
7223 $as_echo 'FGREP' >> "conftest.nl"
7224 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7226 as_fn_arith $ac_count + 1 && ac_count=$as_val
7227 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7228 # Best one so far, save it but keep looking for a better one
7229 ac_cv_path_FGREP="$ac_path_FGREP"
7230 ac_path_FGREP_max=$ac_count
7232 # 10*(2^10) chars as input seems more than enough
7233 test $ac_count -gt 10 && break
7235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7238 $ac_path_FGREP_found && break 3
7243 if test -z "$ac_cv_path_FGREP"; then
7244 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7247 ac_cv_path_FGREP=$FGREP
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7253 $as_echo "$ac_cv_path_FGREP" >&6; }
7254 FGREP="$ac_cv_path_FGREP"
7257 test -z "$GREP" && GREP=grep
7277 # Check whether --with-gnu-ld was given.
7278 if test "${with_gnu_ld+set}" = set; then :
7279 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7285 if test yes = "$GCC"; then
7286 # Check if gcc -print-prog-name=ld gives a path.
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7288 $as_echo_n "checking for ld used by $CC... " >&6; }
7291 # gcc leaves a trailing carriage return, which upsets mingw
7292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7297 # Accept absolute paths.
7299 re_direlt='/[^/][^/]*/\.\./'
7300 # Canonicalize the pathname of ld
7301 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7302 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7303 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7305 test -z "$LD" && LD=$ac_prog
7308 # If it fails, then pretend we aren't using GCC.
7312 # If it is relative, then search for the first ld in PATH.
7316 elif test yes = "$with_gnu_ld"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7318 $as_echo_n "checking for GNU ld... " >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7321 $as_echo_n "checking for non-GNU ld... " >&6; }
7323 if ${lt_cv_path_LD+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 if test -z "$LD"; then
7327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7328 for ac_dir in $PATH; do
7330 test -z "$ac_dir" && ac_dir=.
7331 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7332 lt_cv_path_LD=$ac_dir/$ac_prog
7333 # Check to see if the program is GNU ld. I'd rather use --version,
7334 # but apparently some variants of GNU ld only accept -v.
7335 # Break only if it was the GNU/non-GNU ld that we prefer.
7336 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7337 *GNU* | *'with BFD'*)
7338 test no != "$with_gnu_ld" && break
7341 test yes != "$with_gnu_ld" && break
7348 lt_cv_path_LD=$LD # Let the user override the test with a path.
7353 if test -n "$LD"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7355 $as_echo "$LD" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7360 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7362 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7363 if ${lt_cv_prog_gnu_ld+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7367 case `$LD -v 2>&1 </dev/null` in
7368 *GNU* | *'with BFD'*)
7369 lt_cv_prog_gnu_ld=yes
7372 lt_cv_prog_gnu_ld=no
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7377 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7378 with_gnu_ld=$lt_cv_prog_gnu_ld
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7389 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7390 if ${lt_cv_path_NM+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$NM"; then
7394 # Let the user override the test.
7397 lt_nm_to_check=${ac_tool_prefix}nm
7398 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7399 lt_nm_to_check="$lt_nm_to_check nm"
7401 for lt_tmp_nm in $lt_nm_to_check; do
7402 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7403 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7405 test -z "$ac_dir" && ac_dir=.
7406 tmp_nm=$ac_dir/$lt_tmp_nm
7407 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7408 # Check to see if the nm accepts a BSD-compat flag.
7409 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7410 # nm: unknown option "B" ignored
7411 # Tru64's nm complains that /dev/null is an invalid object file
7412 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7414 mingw*) lt_bad_file=conftest.nm/nofile ;;
7415 *) lt_bad_file=/dev/null ;;
7417 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7418 *$lt_bad_file* | *'Invalid file or object type'*)
7419 lt_cv_path_NM="$tmp_nm -B"
7423 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7425 lt_cv_path_NM="$tmp_nm -p"
7429 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7430 continue # so that we can try to find one that supports BSD flags
7439 : ${lt_cv_path_NM=no}
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7443 $as_echo "$lt_cv_path_NM" >&6; }
7444 if test no != "$lt_cv_path_NM"; then
7447 # Didn't find any BSD compatible name lister, look for dumpbin.
7448 if test -n "$DUMPBIN"; then :
7449 # Let the user override the test.
7451 if test -n "$ac_tool_prefix"; then
7452 for ac_prog in dumpbin "link -dump"
7454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_DUMPBIN+:} false; then :
7459 $as_echo_n "(cached) " >&6
7461 if test -n "$DUMPBIN"; then
7462 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 DUMPBIN=$ac_cv_prog_DUMPBIN
7482 if test -n "$DUMPBIN"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7484 $as_echo "$DUMPBIN" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7491 test -n "$DUMPBIN" && break
7494 if test -z "$DUMPBIN"; then
7495 ac_ct_DUMPBIN=$DUMPBIN
7496 for ac_prog in dumpbin "link -dump"
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$ac_ct_DUMPBIN"; then
7506 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7526 if test -n "$ac_ct_DUMPBIN"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7528 $as_echo "$ac_ct_DUMPBIN" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 test -n "$ac_ct_DUMPBIN" && break
7538 if test "x$ac_ct_DUMPBIN" = x; then
7541 case $cross_compiling:$ac_tool_warned in
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7547 DUMPBIN=$ac_ct_DUMPBIN
7551 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7553 DUMPBIN="$DUMPBIN -symbols -headers"
7561 if test : != "$DUMPBIN"; then
7565 test -z "$NM" && NM=nm
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7573 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7574 if ${lt_cv_nm_interface+:} false; then :
7575 $as_echo_n "(cached) " >&6
7577 lt_cv_nm_interface="BSD nm"
7578 echo "int some_variable = 0;" > conftest.$ac_ext
7579 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7580 (eval "$ac_compile" 2>conftest.err)
7581 cat conftest.err >&5
7582 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7583 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7584 cat conftest.err >&5
7585 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7586 cat conftest.out >&5
7587 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7588 lt_cv_nm_interface="MS dumpbin"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7593 $as_echo "$lt_cv_nm_interface" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7596 $as_echo_n "checking whether ln -s works... " >&6; }
7598 if test "$LN_S" = "ln -s"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 $as_echo "yes" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7603 $as_echo "no, using $LN_S" >&6; }
7606 # find the maximum length of command line arguments
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7608 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7609 if ${lt_cv_sys_max_cmd_len+:} false; then :
7610 $as_echo_n "(cached) " >&6
7617 # On DJGPP, this test can blow up pretty badly due to problems in libc
7618 # (any single argument exceeding 2000 bytes causes a buffer overrun
7619 # during glob expansion). Even if it were fixed, the result of this
7620 # check would be larger than it should be.
7621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7625 # Under GNU Hurd, this test is not required because there is
7626 # no limit to the length of command line arguments.
7627 # Libtool will interpret -1 as no limit whatsoever
7628 lt_cv_sys_max_cmd_len=-1;
7631 cygwin* | mingw* | cegcc*)
7632 # On Win9x/ME, this test blows up -- it succeeds, but takes
7633 # about 5 minutes as the teststring grows exponentially.
7634 # Worse, since 9x/ME are not pre-emptively multitasking,
7635 # you end up with a "frozen" computer, even though with patience
7636 # the test eventually succeeds (with a max line length of 256k).
7637 # Instead, let's just punt: use the minimum linelength reported by
7638 # all of the supported platforms: 8192 (on NT/2K/XP).
7639 lt_cv_sys_max_cmd_len=8192;
7643 # On MiNT this can take a long time and run out of memory.
7644 lt_cv_sys_max_cmd_len=8192;
7648 # On AmigaOS with pdksh, this test takes hours, literally.
7649 # So we just punt and use a minimum line length of 8192.
7650 lt_cv_sys_max_cmd_len=8192;
7653 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7654 # This has been around since 386BSD, at least. Likely further.
7655 if test -x /sbin/sysctl; then
7656 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7657 elif test -x /usr/sbin/sysctl; then
7658 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7660 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7662 # And add a safety zone
7663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7669 lt_cv_sys_max_cmd_len=196608
7673 # The test takes a long time on OS/2.
7674 lt_cv_sys_max_cmd_len=8192
7678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7680 # nice to cause kernel panics so lets avoid the loop below.
7681 # First set a reasonable default.
7682 lt_cv_sys_max_cmd_len=16384
7684 if test -x /sbin/sysconfig; then
7685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7691 lt_cv_sys_max_cmd_len=102400
7693 sysv5* | sco5v6* | sysv4.2uw2*)
7694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7695 if test -n "$kargmax"; then
7696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7698 lt_cv_sys_max_cmd_len=32768
7702 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7703 if test -n "$lt_cv_sys_max_cmd_len" && \
7704 test undefined != "$lt_cv_sys_max_cmd_len"; then
7705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7708 # Make teststring a little bigger before we do anything with it.
7709 # a 1K string should be a reasonable start.
7710 for i in 1 2 3 4 5 6 7 8; do
7711 teststring=$teststring$teststring
7713 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7714 # If test is not a shell built-in, we'll probably end up computing a
7715 # maximum length that is only half of the actual maximum length, but
7717 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7719 test 17 != "$i" # 1/2 MB should be enough
7722 teststring=$teststring$teststring
7724 # Only check the string length outside the loop.
7725 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7727 # Add a significant safety factor because C++ compilers can tack on
7728 # massive amounts of additional arguments before passing them to the
7729 # linker. It appears as though 1/2 is a usable value.
7730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7737 if test -n "$lt_cv_sys_max_cmd_len"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7739 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7742 $as_echo "none" >&6; }
7744 max_cmd_len=$lt_cv_sys_max_cmd_len
7755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7765 # test EBCDIC or ASCII
7766 case `echo X|tr X '\101'` in
7767 A) # ASCII based system
7768 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7769 lt_SP2NL='tr \040 \012'
7770 lt_NL2SP='tr \015\012 \040\040'
7772 *) # EBCDIC based system
7773 lt_SP2NL='tr \100 \n'
7774 lt_NL2SP='tr \r\n \100\100'
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7787 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7788 if ${lt_cv_to_host_file_cmd+:} false; then :
7789 $as_echo_n "(cached) " >&6
7794 *-*-mingw* ) # actually msys
7795 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7798 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7800 * ) # otherwise, assume *nix
7801 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7807 *-*-mingw* ) # actually msys
7808 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7811 lt_cv_to_host_file_cmd=func_convert_file_noop
7813 * ) # otherwise, assume *nix
7814 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7818 * ) # unhandled hosts (and "normal" native builds)
7819 lt_cv_to_host_file_cmd=func_convert_file_noop
7825 to_host_file_cmd=$lt_cv_to_host_file_cmd
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7827 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7834 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7835 if ${lt_cv_to_tool_file_cmd+:} false; then :
7836 $as_echo_n "(cached) " >&6
7838 #assume ordinary cross tools, or native build.
7839 lt_cv_to_tool_file_cmd=func_convert_file_noop
7843 *-*-mingw* ) # actually msys
7844 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7852 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7854 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7861 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7862 if ${lt_cv_ld_reload_flag+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 lt_cv_ld_reload_flag='-r'
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7869 reload_flag=$lt_cv_ld_reload_flag
7870 case $reload_flag in
7872 *) reload_flag=" $reload_flag" ;;
7874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7876 cygwin* | mingw* | pw32* | cegcc*)
7877 if test yes != "$GCC"; then
7882 if test yes = "$GCC"; then
7883 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_OBJDUMP+:} false; then :
7904 $as_echo_n "(cached) " >&6
7906 if test -n "$OBJDUMP"; then
7907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 OBJDUMP=$ac_cv_prog_OBJDUMP
7927 if test -n "$OBJDUMP"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7929 $as_echo "$OBJDUMP" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7937 if test -z "$ac_cv_prog_OBJDUMP"; then
7938 ac_ct_OBJDUMP=$OBJDUMP
7939 # Extract the first word of "objdump", so it can be a program name with args.
7940 set dummy objdump; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$ac_ct_OBJDUMP"; then
7947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7967 if test -n "$ac_ct_OBJDUMP"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7969 $as_echo "$ac_ct_OBJDUMP" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7975 if test "x$ac_ct_OBJDUMP" = x; then
7978 case $cross_compiling:$ac_tool_warned in
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7984 OBJDUMP=$ac_ct_OBJDUMP
7987 OBJDUMP="$ac_cv_prog_OBJDUMP"
7990 test -z "$OBJDUMP" && OBJDUMP=objdump
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8001 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8002 if ${lt_cv_deplibs_check_method+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 lt_cv_file_magic_cmd='$MAGIC_CMD'
8006 lt_cv_file_magic_test_file=
8007 lt_cv_deplibs_check_method='unknown'
8008 # Need to set the preceding variable on all platforms that support
8009 # interlibrary dependencies.
8010 # 'none' -- dependencies not supported.
8011 # 'unknown' -- same as none, but documents that we really don't know.
8012 # 'pass_all' -- all dependencies passed with no checks.
8013 # 'test_compile' -- check by making test program.
8014 # 'file_magic [[regex]]' -- check by looking for files in library path
8015 # that responds to the $file_magic_cmd with a given extended regex.
8016 # If you have 'file' or equivalent on your system and you're not sure
8017 # whether 'pass_all' will *always* work, you probably want this one.
8021 lt_cv_deplibs_check_method=pass_all
8025 lt_cv_deplibs_check_method=pass_all
8029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8030 lt_cv_file_magic_cmd='/usr/bin/file -L'
8031 lt_cv_file_magic_test_file=/shlib/libc.so
8035 # func_win32_libid is a shell function defined in ltmain.sh
8036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8037 lt_cv_file_magic_cmd='func_win32_libid'
8041 # Base MSYS/MinGW do not provide the 'file' command needed by
8042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8043 # unless we find 'file', for example because we are cross-compiling.
8044 if ( file / ) >/dev/null 2>&1; then
8045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8046 lt_cv_file_magic_cmd='func_win32_libid'
8048 # Keep this pattern in sync with the one in func_win32_libid.
8049 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8050 lt_cv_file_magic_cmd='$OBJDUMP -f'
8055 # use the weaker test based on 'objdump'. See mingw*.
8056 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8057 lt_cv_file_magic_cmd='$OBJDUMP -f'
8060 darwin* | rhapsody*)
8061 lt_cv_deplibs_check_method=pass_all
8064 freebsd* | dragonfly*)
8065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8068 # Not sure whether the presence of OpenBSD here was a mistake.
8069 # Let's accept both of them until this is cleared up.
8070 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8071 lt_cv_file_magic_cmd=/usr/bin/file
8072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8076 lt_cv_deplibs_check_method=pass_all
8081 lt_cv_deplibs_check_method=pass_all
8084 hpux10.20* | hpux11*)
8085 lt_cv_file_magic_cmd=/usr/bin/file
8088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8089 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8092 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]'
8093 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8097 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8103 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8107 irix5* | irix6* | nonstopux*)
8109 *-32|*"-32 ") libmagic=32-bit;;
8110 *-n32|*"-n32 ") libmagic=N32;;
8111 *-64|*"-64 ") libmagic=64-bit;;
8112 *) libmagic=never-match;;
8114 lt_cv_deplibs_check_method=pass_all
8117 # This must be glibc/ELF.
8118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8119 lt_cv_deplibs_check_method=pass_all
8123 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8132 lt_cv_file_magic_cmd=/usr/bin/file
8133 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8137 lt_cv_deplibs_check_method=pass_all
8141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8148 osf3* | osf4* | osf5*)
8149 lt_cv_deplibs_check_method=pass_all
8153 lt_cv_deplibs_check_method=pass_all
8157 lt_cv_deplibs_check_method=pass_all
8160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8161 lt_cv_deplibs_check_method=pass_all
8165 case $host_vendor in
8167 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]'
8168 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8171 lt_cv_deplibs_check_method=pass_all
8174 lt_cv_file_magic_cmd='/bin/file'
8175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8178 lt_cv_file_magic_cmd='/bin/file'
8179 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8180 lt_cv_file_magic_test_file=/lib/libc.so
8183 lt_cv_deplibs_check_method=pass_all
8186 lt_cv_deplibs_check_method=pass_all
8192 lt_cv_deplibs_check_method=pass_all
8195 lt_cv_deplibs_check_method=pass_all
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8205 if test "$build" = "$host"; then
8208 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8211 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8217 file_magic_cmd=$lt_cv_file_magic_cmd
8218 deplibs_check_method=$lt_cv_deplibs_check_method
8219 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8242 if test -n "$ac_tool_prefix"; then
8243 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8244 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_DLLTOOL+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 if test -n "$DLLTOOL"; then
8251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 DLLTOOL=$ac_cv_prog_DLLTOOL
8271 if test -n "$DLLTOOL"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8273 $as_echo "$DLLTOOL" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8281 if test -z "$ac_cv_prog_DLLTOOL"; then
8282 ac_ct_DLLTOOL=$DLLTOOL
8283 # Extract the first word of "dlltool", so it can be a program name with args.
8284 set dummy dlltool; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8288 $as_echo_n "(cached) " >&6
8290 if test -n "$ac_ct_DLLTOOL"; then
8291 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8311 if test -n "$ac_ct_DLLTOOL"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8313 $as_echo "$ac_ct_DLLTOOL" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8319 if test "x$ac_ct_DLLTOOL" = x; then
8322 case $cross_compiling:$ac_tool_warned in
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8328 DLLTOOL=$ac_ct_DLLTOOL
8331 DLLTOOL="$ac_cv_prog_DLLTOOL"
8334 test -z "$DLLTOOL" && DLLTOOL=dlltool
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8346 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8347 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 lt_cv_sharedlib_from_linklib_cmd='unknown'
8353 cygwin* | mingw* | pw32* | cegcc*)
8354 # two different shell functions defined in ltmain.sh;
8355 # decide which one to use based on capabilities of $DLLTOOL
8356 case `$DLLTOOL --help 2>&1` in
8357 *--identify-strict*)
8358 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8366 # fallback: assume linklib IS sharedlib
8367 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8373 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8374 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8375 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8383 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_AR+:} false; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$AR"; then
8394 ac_cv_prog_AR="$AR" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 if test -n "$AR"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8416 $as_echo "$AR" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8423 test -n "$AR" && break
8426 if test -z "$AR"; then
8430 # Extract the first word of "$ac_prog", so it can be a program name with args.
8431 set dummy $ac_prog; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 if test -n "$ac_ct_AR"; then
8438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_ac_ct_AR="$ac_prog"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8458 if test -n "$ac_ct_AR"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8460 $as_echo "$ac_ct_AR" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8467 test -n "$ac_ct_AR" && break
8470 if test "x$ac_ct_AR" = x; then
8473 case $cross_compiling:$ac_tool_warned in
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477 ac_tool_warned=yes ;;
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8497 $as_echo_n "checking for archiver @FILE support... " >&6; }
8498 if ${lt_cv_ar_at_file+:} false; then :
8499 $as_echo_n "(cached) " >&6
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8513 if ac_fn_c_try_compile "$LINENO"; then :
8514 echo conftest.$ac_objext > conftest.lst
8515 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8517 (eval $lt_ar_try) 2>&5
8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; }
8521 if test 0 -eq "$ac_status"; then
8522 # Ensure the archiver fails upon bogus file names.
8523 rm -f conftest.$ac_objext libconftest.a
8524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8525 (eval $lt_ar_try) 2>&5
8527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8528 test $ac_status = 0; }
8529 if test 0 -ne "$ac_status"; then
8533 rm -f conftest.* libconftest.a
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8540 $as_echo "$lt_cv_ar_at_file" >&6; }
8542 if test no = "$lt_cv_ar_at_file"; then
8545 archiver_list_spec=$lt_cv_ar_at_file
8554 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8556 set dummy ${ac_tool_prefix}strip; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_STRIP+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 if test -n "$STRIP"; then
8563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 STRIP=$ac_cv_prog_STRIP
8583 if test -n "$STRIP"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8585 $as_echo "$STRIP" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8593 if test -z "$ac_cv_prog_STRIP"; then
8595 # Extract the first word of "strip", so it can be a program name with args.
8596 set dummy strip; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8600 $as_echo_n "(cached) " >&6
8602 if test -n "$ac_ct_STRIP"; then
8603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_ac_ct_STRIP="strip"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8623 if test -n "$ac_ct_STRIP"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8625 $as_echo "$ac_ct_STRIP" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8631 if test "x$ac_ct_STRIP" = x; then
8634 case $cross_compiling:$ac_tool_warned in
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638 ac_tool_warned=yes ;;
8643 STRIP="$ac_cv_prog_STRIP"
8646 test -z "$STRIP" && STRIP=:
8653 if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_RANLIB+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 if test -n "$RANLIB"; then
8662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 RANLIB=$ac_cv_prog_RANLIB
8682 if test -n "$RANLIB"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8684 $as_echo "$RANLIB" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8692 if test -z "$ac_cv_prog_RANLIB"; then
8693 ac_ct_RANLIB=$RANLIB
8694 # Extract the first word of "ranlib", so it can be a program name with args.
8695 set dummy ranlib; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$ac_ct_RANLIB"; then
8702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_ac_ct_RANLIB="ranlib"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8722 if test -n "$ac_ct_RANLIB"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8724 $as_echo "$ac_ct_RANLIB" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8730 if test "x$ac_ct_RANLIB" = x; then
8733 case $cross_compiling:$ac_tool_warned in
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737 ac_tool_warned=yes ;;
8739 RANLIB=$ac_ct_RANLIB
8742 RANLIB="$ac_cv_prog_RANLIB"
8745 test -z "$RANLIB" && RANLIB=:
8752 # Determine commands to create old-style static archives.
8753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8754 old_postinstall_cmds='chmod 644 $oldlib'
8755 old_postuninstall_cmds=
8757 if test -n "$RANLIB"; then
8760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8771 lock_old_archive_extraction=yes ;;
8773 lock_old_archive_extraction=no ;;
8814 # If no C compiler was specified, use CC.
8817 # If no C compiler flags were specified, use CFLAGS.
8818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8820 # Allow CC to be a program name with arguments.
8824 # Check for command to grab the raw symbol name followed by C symbol from nm.
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8826 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8827 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8828 $as_echo_n "(cached) " >&6
8831 # These are sane defaults that work on at least a few old systems.
8832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8834 # Character class describing NM global symbol codes.
8835 symcode='[BCDEGRST]'
8837 # Regexp to match symbols that can be accessed directly from C.
8838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8840 # Define system-specific variables.
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 symcode='[ABCDGISTW]'
8849 if test ia64 = "$host_cpu"; then
8850 symcode='[ABCDEGRST]'
8854 symcode='[BCDEGRST]'
8857 symcode='[BCDEGQRST]'
8868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8876 # If we're using GNU nm, then use its standard symbol codes.
8877 case `$NM -V 2>&1` in
8878 *GNU* | *'with BFD'*)
8879 symcode='[ABCDGIRSTW]' ;;
8882 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8883 # Gets list of data symbols to import.
8884 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8885 # Adjust the below global symbol transforms to fixup imported variables.
8886 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8887 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8888 lt_c_name_lib_hook="\
8889 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8890 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8892 # Disable hooks by default.
8893 lt_cv_sys_global_symbol_to_import=
8899 # Transform an extracted symbol line into a proper C declaration.
8900 # Some systems (esp. on ia64) link data and code symbols differently,
8901 # so use this general approach.
8902 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8904 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8905 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8907 # Transform an extracted symbol line into symbol name and symbol address
8908 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8910 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8911 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8913 # Transform an extracted symbol line into symbol name with lib prefix and
8915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8916 $lt_c_name_lib_hook\
8917 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8918 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8919 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8921 # Handle CRLF in mingw tool chain
8925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8929 # Try without a prefix underscore, then with it.
8930 for ac_symprfx in "" "_"; do
8932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8933 symxfrm="\\1 $ac_symprfx\\2 \\2"
8935 # Write the raw and C identifiers.
8936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8937 # Fake it for dumpbin and say T for any non-static function,
8938 # D for any global variable and I for any imported variable.
8939 # Also find C++ and __fastcall symbols from MSVC++,
8940 # which start with @ or ?.
8941 lt_cv_sys_global_symbol_pipe="$AWK '"\
8942 " {last_section=section; section=\$ 3};"\
8943 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8944 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8945 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8946 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8947 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8948 " \$ 0!~/External *\|/{next};"\
8949 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8950 " {if(hide[section]) next};"\
8951 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8952 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8953 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8954 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8955 " ' prfx=^$ac_symprfx"
8957 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8959 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8961 # Check to see that the pipe works correctly.
8965 cat > conftest.$ac_ext <<_LT_EOF
8970 void nm_test_func(void);
8971 void nm_test_func(void){}
8975 int main(){nm_test_var='a';nm_test_func();return(0);}
8978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8979 (eval $ac_compile) 2>&5
8981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982 test $ac_status = 0; }; then
8983 # Now try to grab the symbols.
8985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8986 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8989 test $ac_status = 0; } && test -s "$nlist"; then
8990 # Try sorting and uniquifying the output.
8991 if sort "$nlist" | uniq > "$nlist"T; then
8992 mv -f "$nlist"T "$nlist"
8997 # Make sure that we snagged all the symbols we need.
8998 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8999 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9000 cat <<_LT_EOF > conftest.$ac_ext
9001 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9002 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9003 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9004 relocations are performed -- see ld's documentation on pseudo-relocs. */
9005 # define LT_DLSYM_CONST
9006 #elif defined __osf__
9007 /* This system does not cope well with relocations in const data. */
9008 # define LT_DLSYM_CONST
9010 # define LT_DLSYM_CONST const
9018 # Now generate the symbol file.
9019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9021 cat <<_LT_EOF >> conftest.$ac_ext
9023 /* The mapping between symbol names and symbols. */
9024 LT_DLSYM_CONST struct {
9028 lt__PROGRAM__LTX_preloaded_symbols[] =
9030 { "@PROGRAM@", (void *) 0 },
9032 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9033 cat <<\_LT_EOF >> conftest.$ac_ext
9037 /* This works around a problem in FreeBSD linker */
9038 #ifdef FREEBSD_WORKAROUND
9039 static const void *lt_preloaded_setup() {
9040 return lt__PROGRAM__LTX_preloaded_symbols;
9048 # Now try linking the two files.
9049 mv conftest.$ac_objext conftstm.$ac_objext
9050 lt_globsym_save_LIBS=$LIBS
9051 lt_globsym_save_CFLAGS=$CFLAGS
9052 LIBS=conftstm.$ac_objext
9053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9055 (eval $ac_link) 2>&5
9057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9058 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9061 LIBS=$lt_globsym_save_LIBS
9062 CFLAGS=$lt_globsym_save_CFLAGS
9064 echo "cannot find nm_test_func in $nlist" >&5
9067 echo "cannot find nm_test_var in $nlist" >&5
9070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9073 echo "$progname: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 rm -rf conftest* conftst*
9078 # Do not use the global_symbol_pipe unless it works.
9079 if test yes = "$pipe_works"; then
9082 lt_cv_sys_global_symbol_pipe=
9088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9089 lt_cv_sys_global_symbol_to_cdecl=
9091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9093 $as_echo "failed" >&6; }
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9096 $as_echo "ok" >&6; }
9099 # Response file support.
9100 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9101 nm_file_list_spec='@'
9102 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9103 nm_file_list_spec='@'
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9143 $as_echo_n "checking for sysroot... " >&6; }
9145 # Check whether --with-sysroot was given.
9146 if test "${with_sysroot+set}" = set; then :
9147 withval=$with_sysroot;
9154 case $with_sysroot in #(
9156 if test yes = "$GCC"; then
9157 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9161 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9167 $as_echo "$with_sysroot" >&6; }
9168 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9173 $as_echo "${lt_sysroot:-no}" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9180 $as_echo_n "checking for a working dd... " >&6; }
9181 if ${ac_cv_path_lt_DD+:} false; then :
9182 $as_echo_n "(cached) " >&6
9184 printf 0123456789abcdef0123456789abcdef >conftest.i
9185 cat conftest.i conftest.i >conftest2.i
9187 if test -z "$lt_DD"; then
9188 ac_path_lt_DD_found=false
9189 # Loop through the user's path and test for each of PROGNAME-LIST
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 test -z "$as_dir" && as_dir=.
9195 for ac_prog in dd; do
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9198 as_fn_executable_p "$ac_path_lt_DD" || continue
9199 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9200 cmp -s conftest.i conftest.out \
9201 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9203 $ac_path_lt_DD_found && break 3
9208 if test -z "$ac_cv_path_lt_DD"; then
9212 ac_cv_path_lt_DD=$lt_DD
9215 rm -f conftest.i conftest2.i conftest.out
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9218 $as_echo "$ac_cv_path_lt_DD" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9222 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9223 if ${lt_cv_truncate_bin+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 printf 0123456789abcdef0123456789abcdef >conftest.i
9227 cat conftest.i conftest.i >conftest2.i
9229 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9230 cmp -s conftest.i conftest.out \
9231 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9233 rm -f conftest.i conftest2.i conftest.out
9234 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9237 $as_echo "$lt_cv_truncate_bin" >&6; }
9245 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9248 for cc_temp in $*""; do
9250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9256 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9259 # Check whether --enable-libtool-lock was given.
9260 if test "${enable_libtool_lock+set}" = set; then :
9261 enableval=$enable_libtool_lock;
9264 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9266 # Some flags need to be propagated to the compiler or linker for good
9270 # Find out what ABI is being produced by ac_compile, and set mode
9271 # options accordingly.
9272 echo 'int i;' > conftest.$ac_ext
9273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9274 (eval $ac_compile) 2>&5
9276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9277 test $ac_status = 0; }; then
9278 case `/usr/bin/file conftest.$ac_objext` in
9290 # Find out what ABI is being produced by ac_compile, and set linker
9291 # options accordingly.
9292 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9294 (eval $ac_compile) 2>&5
9296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9297 test $ac_status = 0; }; then
9298 if test yes = "$lt_cv_prog_gnu_ld"; then
9299 case `/usr/bin/file conftest.$ac_objext` in
9301 LD="${LD-ld} -melf32bsmip"
9304 LD="${LD-ld} -melf32bmipn32"
9307 LD="${LD-ld} -melf64bmip"
9311 case `/usr/bin/file conftest.$ac_objext` in
9328 # Find out what ABI is being produced by ac_compile, and set linker
9329 # options accordingly.
9330 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9332 (eval $ac_compile) 2>&5
9334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9335 test $ac_status = 0; }; then
9337 case `/usr/bin/file conftest.$ac_objext` in
9345 case `/usr/bin/file conftest.$ac_objext` in
9347 emul="${emul}btsmip"
9350 emul="${emul}ltsmip"
9353 case `/usr/bin/file conftest.$ac_objext` in
9358 LD="${LD-ld} -m $emul"
9363 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9364 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9365 # Find out what ABI is being produced by ac_compile, and set linker
9366 # options accordingly. Note that the listed cases only cover the
9367 # situations where additional linker options are needed (such as when
9368 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9369 # vice versa); the common cases where no linker options are needed do
9370 # not appear in the list.
9371 echo 'int i;' > conftest.$ac_ext
9372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9373 (eval $ac_compile) 2>&5
9375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9376 test $ac_status = 0; }; then
9377 case `/usr/bin/file conftest.o` in
9380 x86_64-*kfreebsd*-gnu)
9381 LD="${LD-ld} -m elf_i386_fbsd"
9384 case `/usr/bin/file conftest.o` in
9386 LD="${LD-ld} -m elf32_x86_64"
9389 LD="${LD-ld} -m elf_i386"
9393 powerpc64le-*linux*)
9394 LD="${LD-ld} -m elf32lppclinux"
9397 LD="${LD-ld} -m elf32ppclinux"
9400 LD="${LD-ld} -m elf_s390"
9403 LD="${LD-ld} -m elf32_sparc"
9409 x86_64-*kfreebsd*-gnu)
9410 LD="${LD-ld} -m elf_x86_64_fbsd"
9413 LD="${LD-ld} -m elf_x86_64"
9416 LD="${LD-ld} -m elf64lppc"
9419 LD="${LD-ld} -m elf64ppc"
9421 s390*-*linux*|s390*-*tpf*)
9422 LD="${LD-ld} -m elf64_s390"
9425 LD="${LD-ld} -m elf64_sparc"
9435 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9437 CFLAGS="$CFLAGS -belf"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9439 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9440 if ${lt_cv_cc_needs_belf+:} false; then :
9441 $as_echo_n "(cached) " >&6
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 lt_cv_cc_needs_belf=yes
9463 lt_cv_cc_needs_belf=no
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9468 ac_cpp='$CPP $CPPFLAGS'
9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9475 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9476 if test yes != "$lt_cv_cc_needs_belf"; then
9477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9482 # Find out what ABI is being produced by ac_compile, and set linker
9483 # options accordingly.
9484 echo 'int i;' > conftest.$ac_ext
9485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9486 (eval $ac_compile) 2>&5
9488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489 test $ac_status = 0; }; then
9490 case `/usr/bin/file conftest.o` in
9492 case $lt_cv_prog_gnu_ld in
9495 i?86-*-solaris*|x86_64-*-solaris*)
9496 LD="${LD-ld} -m elf_x86_64"
9499 LD="${LD-ld} -m elf64_sparc"
9502 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9503 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9508 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9520 need_locks=$enable_libtool_lock
9522 if test -n "$ac_tool_prefix"; then
9523 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9524 set dummy ${ac_tool_prefix}mt; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9528 $as_echo_n "(cached) " >&6
9530 if test -n "$MANIFEST_TOOL"; then
9531 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9551 if test -n "$MANIFEST_TOOL"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9553 $as_echo "$MANIFEST_TOOL" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9562 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9563 # Extract the first word of "mt", so it can be a program name with args.
9564 set dummy mt; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9568 $as_echo_n "(cached) " >&6
9570 if test -n "$ac_ct_MANIFEST_TOOL"; then
9571 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9591 if test -n "$ac_ct_MANIFEST_TOOL"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9593 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9599 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9602 case $cross_compiling:$ac_tool_warned in
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9606 ac_tool_warned=yes ;;
9608 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9611 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9614 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9616 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9617 if ${lt_cv_path_mainfest_tool+:} false; then :
9618 $as_echo_n "(cached) " >&6
9620 lt_cv_path_mainfest_tool=no
9621 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9622 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9623 cat conftest.err >&5
9624 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9625 lt_cv_path_mainfest_tool=yes
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9630 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9631 if test yes != "$lt_cv_path_mainfest_tool"; then
9641 rhapsody* | darwin*)
9642 if test -n "$ac_tool_prefix"; then
9643 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9644 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9648 $as_echo_n "(cached) " >&6
9650 if test -n "$DSYMUTIL"; then
9651 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9671 if test -n "$DSYMUTIL"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9673 $as_echo "$DSYMUTIL" >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9681 if test -z "$ac_cv_prog_DSYMUTIL"; then
9682 ac_ct_DSYMUTIL=$DSYMUTIL
9683 # Extract the first word of "dsymutil", so it can be a program name with args.
9684 set dummy dsymutil; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 if test -n "$ac_ct_DSYMUTIL"; then
9691 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9711 if test -n "$ac_ct_DSYMUTIL"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9713 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9719 if test "x$ac_ct_DSYMUTIL" = x; then
9722 case $cross_compiling:$ac_tool_warned in
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726 ac_tool_warned=yes ;;
9728 DSYMUTIL=$ac_ct_DSYMUTIL
9731 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9734 if test -n "$ac_tool_prefix"; then
9735 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9736 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_NMEDIT+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 if test -n "$NMEDIT"; then
9743 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 NMEDIT=$ac_cv_prog_NMEDIT
9763 if test -n "$NMEDIT"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9765 $as_echo "$NMEDIT" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9773 if test -z "$ac_cv_prog_NMEDIT"; then
9774 ac_ct_NMEDIT=$NMEDIT
9775 # Extract the first word of "nmedit", so it can be a program name with args.
9776 set dummy nmedit; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9780 $as_echo_n "(cached) " >&6
9782 if test -n "$ac_ct_NMEDIT"; then
9783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9803 if test -n "$ac_ct_NMEDIT"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9805 $as_echo "$ac_ct_NMEDIT" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9811 if test "x$ac_ct_NMEDIT" = x; then
9814 case $cross_compiling:$ac_tool_warned in
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9818 ac_tool_warned=yes ;;
9820 NMEDIT=$ac_ct_NMEDIT
9823 NMEDIT="$ac_cv_prog_NMEDIT"
9826 if test -n "$ac_tool_prefix"; then
9827 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9828 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if ${ac_cv_prog_LIPO+:} false; then :
9832 $as_echo_n "(cached) " >&6
9834 if test -n "$LIPO"; then
9835 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 LIPO=$ac_cv_prog_LIPO
9855 if test -n "$LIPO"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9857 $as_echo "$LIPO" >&6; }
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9865 if test -z "$ac_cv_prog_LIPO"; then
9867 # Extract the first word of "lipo", so it can be a program name with args.
9868 set dummy lipo; ac_word=$2
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 $as_echo_n "checking for $ac_word... " >&6; }
9871 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9872 $as_echo_n "(cached) " >&6
9874 if test -n "$ac_ct_LIPO"; then
9875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_prog_ac_ct_LIPO="lipo"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9895 if test -n "$ac_ct_LIPO"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9897 $as_echo "$ac_ct_LIPO" >&6; }
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9903 if test "x$ac_ct_LIPO" = x; then
9906 case $cross_compiling:$ac_tool_warned in
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9910 ac_tool_warned=yes ;;
9915 LIPO="$ac_cv_prog_LIPO"
9918 if test -n "$ac_tool_prefix"; then
9919 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9920 set dummy ${ac_tool_prefix}otool; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if ${ac_cv_prog_OTOOL+:} false; then :
9924 $as_echo_n "(cached) " >&6
9926 if test -n "$OTOOL"; then
9927 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 OTOOL=$ac_cv_prog_OTOOL
9947 if test -n "$OTOOL"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9949 $as_echo "$OTOOL" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9957 if test -z "$ac_cv_prog_OTOOL"; then
9959 # Extract the first word of "otool", so it can be a program name with args.
9960 set dummy otool; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9964 $as_echo_n "(cached) " >&6
9966 if test -n "$ac_ct_OTOOL"; then
9967 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_ac_ct_OTOOL="otool"
9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9987 if test -n "$ac_ct_OTOOL"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9989 $as_echo "$ac_ct_OTOOL" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9995 if test "x$ac_ct_OTOOL" = x; then
9998 case $cross_compiling:$ac_tool_warned in
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002 ac_tool_warned=yes ;;
10007 OTOOL="$ac_cv_prog_OTOOL"
10010 if test -n "$ac_tool_prefix"; then
10011 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10012 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if ${ac_cv_prog_OTOOL64+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 if test -n "$OTOOL64"; then
10019 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 OTOOL64=$ac_cv_prog_OTOOL64
10039 if test -n "$OTOOL64"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10041 $as_echo "$OTOOL64" >&6; }
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10049 if test -z "$ac_cv_prog_OTOOL64"; then
10050 ac_ct_OTOOL64=$OTOOL64
10051 # Extract the first word of "otool64", so it can be a program name with args.
10052 set dummy otool64; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10056 $as_echo_n "(cached) " >&6
10058 if test -n "$ac_ct_OTOOL64"; then
10059 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068 ac_cv_prog_ac_ct_OTOOL64="otool64"
10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10079 if test -n "$ac_ct_OTOOL64"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10081 $as_echo "$ac_ct_OTOOL64" >&6; }
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10087 if test "x$ac_ct_OTOOL64" = x; then
10090 case $cross_compiling:$ac_tool_warned in
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094 ac_tool_warned=yes ;;
10096 OTOOL64=$ac_ct_OTOOL64
10099 OTOOL64="$ac_cv_prog_OTOOL64"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10129 $as_echo_n "checking for -single_module linker flag... " >&6; }
10130 if ${lt_cv_apple_cc_single_mod+:} false; then :
10131 $as_echo_n "(cached) " >&6
10133 lt_cv_apple_cc_single_mod=no
10134 if test -z "$LT_MULTI_MODULE"; then
10135 # By default we will add the -single_module flag. You can override
10136 # by either setting the environment variable LT_MULTI_MODULE
10137 # non-empty at configure time, or by adding -multi_module to the
10139 rm -rf libconftest.dylib*
10140 echo "int foo(void){return 1;}" > conftest.c
10141 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10142 -dynamiclib -Wl,-single_module conftest.c" >&5
10143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10144 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10146 # If there is a non-empty error log, and "single_module"
10147 # appears in it, assume the flag caused a linker warning
10148 if test -s conftest.err && $GREP single_module conftest.err; then
10149 cat conftest.err >&5
10150 # Otherwise, if the output was created with a 0 exit code from
10151 # the compiler, it worked.
10152 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10153 lt_cv_apple_cc_single_mod=yes
10155 cat conftest.err >&5
10157 rm -rf libconftest.dylib*
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10162 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10165 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10166 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10167 $as_echo_n "(cached) " >&6
10169 lt_cv_ld_exported_symbols_list=no
10170 save_LDFLAGS=$LDFLAGS
10171 echo "_main" > conftest.sym
10172 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10184 if ac_fn_c_try_link "$LINENO"; then :
10185 lt_cv_ld_exported_symbols_list=yes
10187 lt_cv_ld_exported_symbols_list=no
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 LDFLAGS=$save_LDFLAGS
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10195 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10198 $as_echo_n "checking for -force_load linker flag... " >&6; }
10199 if ${lt_cv_ld_force_load+:} false; then :
10200 $as_echo_n "(cached) " >&6
10202 lt_cv_ld_force_load=no
10203 cat > conftest.c << _LT_EOF
10204 int forced_loaded() { return 2;}
10206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10208 echo "$AR cru libconftest.a conftest.o" >&5
10209 $AR cru libconftest.a conftest.o 2>&5
10210 echo "$RANLIB libconftest.a" >&5
10211 $RANLIB libconftest.a 2>&5
10212 cat > conftest.c << _LT_EOF
10213 int main() { return 0;}
10215 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10216 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10218 if test -s conftest.err && $GREP force_load conftest.err; then
10219 cat conftest.err >&5
10220 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10221 lt_cv_ld_force_load=yes
10223 cat conftest.err >&5
10225 rm -f conftest.err libconftest.a conftest conftest.c
10226 rm -rf conftest.dSYM
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10230 $as_echo "$lt_cv_ld_force_load" >&6; }
10232 rhapsody* | darwin1.[012])
10233 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10235 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10236 darwin*) # darwin 5.x on
10237 # if running on 10.5 or later, the deployment target defaults
10238 # to the OS version, if on x86, and 10.4, the deployment
10239 # target defaults to 10.4. Don't you love it?
10240 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10241 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10242 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10244 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10246 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10250 if test yes = "$lt_cv_apple_cc_single_mod"; then
10251 _lt_dar_single_mod='$single_module'
10253 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10254 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10256 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10258 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10259 _lt_dsymutil='~$DSYMUTIL $lib || :'
10266 # func_munge_path_list VARIABLE PATH
10267 # -----------------------------------
10268 # VARIABLE is name of variable containing _space_ separated list of
10269 # directories to be munged by the contents of PATH, which is string
10272 # string "DIR[ DIR]" will be prepended to VARIABLE
10274 # string "DIR[ DIR]" will be appended to VARIABLE
10275 # "DIRP[:DIRP]::[DIRA:]DIRA"
10276 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10277 # "DIRA[ DIRA]" will be appended to VARIABLE
10279 # VARIABLE will be replaced by "DIR[ DIR]"
10280 func_munge_path_list ()
10286 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10289 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10292 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10293 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10296 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10301 for ac_header in dlfcn.h
10303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10305 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10306 cat >>confdefs.h <<_ACEOF
10307 #define HAVE_DLFCN_H 1
10325 enable_win32_dll=no
10329 # Check whether --enable-static was given.
10330 if test "${enable_static+set}" = set; then :
10331 enableval=$enable_static; p=${PACKAGE-default}
10333 yes) enable_static=yes ;;
10334 no) enable_static=no ;;
10337 # Look at the argument we got. We use all the common list separators.
10338 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10339 for pkg in $enableval; do
10341 if test "X$pkg" = "X$p"; then
10361 # Check whether --with-pic was given.
10362 if test "${with_pic+set}" = set; then :
10363 withval=$with_pic; lt_p=${PACKAGE-default}
10365 yes|no) pic_mode=$withval ;;
10368 # Look at the argument we got. We use all the common list separators.
10369 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10370 for lt_pkg in $withval; do
10372 if test "X$lt_pkg" = "X$lt_p"; then
10390 # Check whether --enable-fast-install was given.
10391 if test "${enable_fast_install+set}" = set; then :
10392 enableval=$enable_fast_install; p=${PACKAGE-default}
10394 yes) enable_fast_install=yes ;;
10395 no) enable_fast_install=no ;;
10397 enable_fast_install=no
10398 # Look at the argument we got. We use all the common list separators.
10399 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10400 for pkg in $enableval; do
10402 if test "X$pkg" = "X$p"; then
10403 enable_fast_install=yes
10410 enable_fast_install=yes
10420 shared_archive_member_spec=
10421 case $host,$enable_shared in
10422 power*-*-aix[5-9]*,yes)
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10424 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10426 # Check whether --with-aix-soname was given.
10427 if test "${with_aix_soname+set}" = set; then :
10428 withval=$with_aix_soname; case $withval in
10432 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10435 lt_cv_with_aix_soname=$with_aix_soname
10437 if ${lt_cv_with_aix_soname+:} false; then :
10438 $as_echo_n "(cached) " >&6
10440 lt_cv_with_aix_soname=aix
10443 with_aix_soname=$lt_cv_with_aix_soname
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10447 $as_echo "$with_aix_soname" >&6; }
10448 if test aix != "$with_aix_soname"; then
10449 # For the AIX way of multilib, we name the shared archive member
10450 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10451 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10452 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10453 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10454 if test 64 = "${OBJECT_MODE-32}"; then
10455 shared_archive_member_spec=shr_64
10457 shared_archive_member_spec=shr
10462 with_aix_soname=aix
10475 # This can be used to rebuild libtool when needed
10476 LIBTOOL_DEPS=$ltmain
10478 # Always use our own libtool.
10479 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10510 test -z "$LN_S" && LN_S="ln -s"
10525 if test -n "${ZSH_VERSION+set}"; then
10526 setopt NO_GLOB_SUBST
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10530 $as_echo_n "checking for objdir... " >&6; }
10531 if ${lt_cv_objdir+:} false; then :
10532 $as_echo_n "(cached) " >&6
10534 rm -f .libs 2>/dev/null
10535 mkdir .libs 2>/dev/null
10536 if test -d .libs; then
10539 # MS-DOS does not allow filenames that begin with a dot.
10542 rmdir .libs 2>/dev/null
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10545 $as_echo "$lt_cv_objdir" >&6; }
10546 objdir=$lt_cv_objdir
10552 cat >>confdefs.h <<_ACEOF
10553 #define LT_OBJDIR "$lt_cv_objdir/"
10561 # AIX sometimes has problems with the GCC collect2 program. For some
10562 # reason, if we set the COLLECT_NAMES environment variable, the problems
10563 # vanish in a puff of smoke.
10564 if test set != "${COLLECT_NAMES+set}"; then
10566 export COLLECT_NAMES
10571 # Global variables:
10573 can_build_shared=yes
10575 # All known linkers require a '.a' archive for static linking (except MSVC,
10576 # which needs '.lib').
10579 with_gnu_ld=$lt_cv_prog_gnu_ld
10584 # Set sane defaults for various variables
10585 test -z "$CC" && CC=cc
10586 test -z "$LTCC" && LTCC=$CC
10587 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10588 test -z "$LD" && LD=ld
10589 test -z "$ac_objext" && ac_objext=o
10591 func_cc_basename $compiler
10592 cc_basename=$func_cc_basename_result
10595 # Only perform the check for file, if the check method requires it
10596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10597 case $deplibs_check_method in
10599 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10601 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10602 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10603 $as_echo_n "(cached) " >&6
10607 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10610 lt_save_MAGIC_CMD=$MAGIC_CMD
10611 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10612 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10613 for ac_dir in $ac_dummy; do
10615 test -z "$ac_dir" && ac_dir=.
10616 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10617 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10618 if test -n "$file_magic_test_file"; then
10619 case $deplibs_check_method in
10621 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10622 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10623 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10624 $EGREP "$file_magic_regex" > /dev/null; then
10629 *** Warning: the command libtool uses to detect shared libraries,
10630 *** $file_magic_cmd, produces output that libtool cannot recognize.
10631 *** The result is that libtool may fail to recognize shared libraries
10632 *** as such. This will affect the creation of libtool libraries that
10633 *** depend on shared libraries, but programs linked with such libtool
10634 *** libraries will work regardless of this problem. Nevertheless, you
10635 *** may want to report the problem to your system manager and/or to
10636 *** bug-libtool@gnu.org
10646 MAGIC_CMD=$lt_save_MAGIC_CMD
10651 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10652 if test -n "$MAGIC_CMD"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10654 $as_echo "$MAGIC_CMD" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10664 if test -z "$lt_cv_path_MAGIC_CMD"; then
10665 if test -n "$ac_tool_prefix"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10667 $as_echo_n "checking for file... " >&6; }
10668 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10669 $as_echo_n "(cached) " >&6
10673 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10676 lt_save_MAGIC_CMD=$MAGIC_CMD
10677 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10678 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10679 for ac_dir in $ac_dummy; do
10681 test -z "$ac_dir" && ac_dir=.
10682 if test -f "$ac_dir/file"; then
10683 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10684 if test -n "$file_magic_test_file"; then
10685 case $deplibs_check_method in
10687 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10688 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10689 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10690 $EGREP "$file_magic_regex" > /dev/null; then
10695 *** Warning: the command libtool uses to detect shared libraries,
10696 *** $file_magic_cmd, produces output that libtool cannot recognize.
10697 *** The result is that libtool may fail to recognize shared libraries
10698 *** as such. This will affect the creation of libtool libraries that
10699 *** depend on shared libraries, but programs linked with such libtool
10700 *** libraries will work regardless of this problem. Nevertheless, you
10701 *** may want to report the problem to your system manager and/or to
10702 *** bug-libtool@gnu.org
10712 MAGIC_CMD=$lt_save_MAGIC_CMD
10717 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10718 if test -n "$MAGIC_CMD"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10720 $as_echo "$MAGIC_CMD" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10736 # Use C for the default configuration in the libtool script
10740 ac_cpp='$CPP $CPPFLAGS'
10741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10746 # Source file extension for C test sources.
10749 # Object file extension for compiled C test sources.
10753 # Code to be used in simple compile tests
10754 lt_simple_compile_test_code="int some_variable = 0;"
10756 # Code to be used in simple link tests
10757 lt_simple_link_test_code='int main(){return(0);}'
10765 # If no C compiler was specified, use CC.
10768 # If no C compiler flags were specified, use CFLAGS.
10769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10771 # Allow CC to be a program name with arguments.
10774 # Save the default compiler, since it gets overwritten when the other
10775 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10776 compiler_DEFAULT=$CC
10778 # save warnings/boilerplate of simple test code
10779 ac_outfile=conftest.$ac_objext
10780 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10781 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782 _lt_compiler_boilerplate=`cat conftest.err`
10785 ac_outfile=conftest.$ac_objext
10786 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10787 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10788 _lt_linker_boilerplate=`cat conftest.err`
10793 ## There is no encapsulation within the following macros, do not change
10794 ## the running order or otherwise move them around unless you know exactly
10795 ## what you are doing...
10796 if test -n "$compiler"; then
10798 lt_prog_compiler_no_builtin_flag=
10800 if test yes = "$GCC"; then
10801 case $cc_basename in
10803 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10805 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10809 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10810 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10811 $as_echo_n "(cached) " >&6
10813 lt_cv_prog_compiler_rtti_exceptions=no
10814 ac_outfile=conftest.$ac_objext
10815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10816 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10817 # Insert the option either (1) after the last *FLAGS variable, or
10818 # (2) before a word containing "conftest.", or (3) at the end.
10819 # Note that $ac_compile itself does not contain backslashes and begins
10820 # with a dollar sign (not a hyphen), so the echo should work correctly.
10821 # The option is referenced via a variable to avoid confusing sed.
10822 lt_compile=`echo "$ac_compile" | $SED \
10823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10825 -e 's:$: $lt_compiler_flag:'`
10826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10827 (eval "$lt_compile" 2>conftest.err)
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 if (exit $ac_status) && test -s "$ac_outfile"; then
10832 # The compiler can only warn and ignore the option if not recognized
10833 # So say no if there are warnings other than the usual output.
10834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10837 lt_cv_prog_compiler_rtti_exceptions=yes
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10844 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10846 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10847 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10859 lt_prog_compiler_wl=
10860 lt_prog_compiler_pic=
10861 lt_prog_compiler_static=
10864 if test yes = "$GCC"; then
10865 lt_prog_compiler_wl='-Wl,'
10866 lt_prog_compiler_static='-static'
10870 # All AIX code is PIC.
10871 if test ia64 = "$host_cpu"; then
10872 # AIX 5 now supports IA64 processor
10873 lt_prog_compiler_static='-Bstatic'
10875 lt_prog_compiler_pic='-fPIC'
10881 # see comment about AmigaOS4 .so support
10882 lt_prog_compiler_pic='-fPIC'
10885 # FIXME: we need at least 68020 code to build shared libraries, but
10886 # adding the '-m68020' flag to GCC prevents building anything better,
10888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10894 # PIC is the default for these OSes.
10897 mingw* | cygwin* | pw32* | os2* | cegcc*)
10898 # This hack is so that the source file can tell whether it is being
10899 # built for inclusion in a dll (and should export symbols for example).
10900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10901 # (--disable-auto-import) libraries
10902 lt_prog_compiler_pic='-DDLL_EXPORT'
10905 lt_prog_compiler_static='$wl-static'
10910 darwin* | rhapsody*)
10911 # PIC is the default on this platform
10912 # Common symbols not allowed in MH_DYLIB files
10913 lt_prog_compiler_pic='-fno-common'
10917 # PIC is the default for Haiku.
10918 # The "-static" flag exists, but is broken.
10919 lt_prog_compiler_static=
10923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10925 # sets the default TLS model and affects inlining.
10931 lt_prog_compiler_pic='-fPIC'
10937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10938 # Instead, we relocate shared libraries at runtime.
10942 # Just because we use GCC doesn't mean we suddenly get shared libraries
10943 # on systems that don't support them.
10944 lt_prog_compiler_can_build_shared=no
10949 # QNX uses GNU C++, but need to define -shared option too, otherwise
10950 # it will coredump.
10951 lt_prog_compiler_pic='-fPIC -shared'
10955 if test -d /usr/nec; then
10956 lt_prog_compiler_pic=-Kconform_pic
10961 lt_prog_compiler_pic='-fPIC'
10965 case $cc_basename in
10966 nvcc*) # Cuda Compiler Driver 2.2
10967 lt_prog_compiler_wl='-Xlinker '
10968 if test -n "$lt_prog_compiler_pic"; then
10969 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10974 # PORTME Check for flag to pass linker flags through the system compiler.
10977 lt_prog_compiler_wl='-Wl,'
10978 if test ia64 = "$host_cpu"; then
10979 # AIX 5 now supports IA64 processor
10980 lt_prog_compiler_static='-Bstatic'
10982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10986 darwin* | rhapsody*)
10987 # PIC is the default on this platform
10988 # Common symbols not allowed in MH_DYLIB files
10989 lt_prog_compiler_pic='-fno-common'
10990 case $cc_basename in
10992 # NAG Fortran compiler
10993 lt_prog_compiler_wl='-Wl,-Wl,,'
10994 lt_prog_compiler_pic='-PIC'
10995 lt_prog_compiler_static='-Bstatic'
11000 mingw* | cygwin* | pw32* | os2* | cegcc*)
11001 # This hack is so that the source file can tell whether it is being
11002 # built for inclusion in a dll (and should export symbols for example).
11003 lt_prog_compiler_pic='-DDLL_EXPORT'
11006 lt_prog_compiler_static='$wl-static'
11011 hpux9* | hpux10* | hpux11*)
11012 lt_prog_compiler_wl='-Wl,'
11013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11014 # not for PA HP-UX.
11020 lt_prog_compiler_pic='+Z'
11023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11024 lt_prog_compiler_static='$wl-a ${wl}archive'
11027 irix5* | irix6* | nonstopux*)
11028 lt_prog_compiler_wl='-Wl,'
11029 # PIC (with -KPIC) is the default.
11030 lt_prog_compiler_static='-non_shared'
11033 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11034 case $cc_basename in
11035 # old Intel for x86_64, which still supported -KPIC.
11037 lt_prog_compiler_wl='-Wl,'
11038 lt_prog_compiler_pic='-KPIC'
11039 lt_prog_compiler_static='-static'
11041 # icc used to be incompatible with GCC.
11042 # ICC 10 doesn't accept -KPIC any more.
11044 lt_prog_compiler_wl='-Wl,'
11045 lt_prog_compiler_pic='-fPIC'
11046 lt_prog_compiler_static='-static'
11048 # Lahey Fortran 8.1.
11050 lt_prog_compiler_wl='-Wl,'
11051 lt_prog_compiler_pic='--shared'
11052 lt_prog_compiler_static='--static'
11055 # NAG Fortran compiler
11056 lt_prog_compiler_wl='-Wl,-Wl,,'
11057 lt_prog_compiler_pic='-PIC'
11058 lt_prog_compiler_static='-Bstatic'
11061 # Fabrice Bellard et al's Tiny C Compiler
11062 lt_prog_compiler_wl='-Wl,'
11063 lt_prog_compiler_pic='-fPIC'
11064 lt_prog_compiler_static='-static'
11066 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11067 # Portland Group compilers (*not* the Pentium gcc compiler,
11068 # which looks to be a dead project)
11069 lt_prog_compiler_wl='-Wl,'
11070 lt_prog_compiler_pic='-fpic'
11071 lt_prog_compiler_static='-Bstatic'
11074 lt_prog_compiler_wl='-Wl,'
11075 # All Alpha code is PIC.
11076 lt_prog_compiler_static='-non_shared'
11078 xl* | bgxl* | bgf* | mpixl*)
11079 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11080 lt_prog_compiler_wl='-Wl,'
11081 lt_prog_compiler_pic='-qpic'
11082 lt_prog_compiler_static='-qstaticlink'
11085 case `$CC -V 2>&1 | sed 5q` in
11086 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11087 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11088 lt_prog_compiler_pic='-KPIC'
11089 lt_prog_compiler_static='-Bstatic'
11090 lt_prog_compiler_wl=''
11092 *Sun\ F* | *Sun*Fortran*)
11093 lt_prog_compiler_pic='-KPIC'
11094 lt_prog_compiler_static='-Bstatic'
11095 lt_prog_compiler_wl='-Qoption ld '
11099 lt_prog_compiler_pic='-KPIC'
11100 lt_prog_compiler_static='-Bstatic'
11101 lt_prog_compiler_wl='-Wl,'
11103 *Intel*\ [CF]*Compiler*)
11104 lt_prog_compiler_wl='-Wl,'
11105 lt_prog_compiler_pic='-fPIC'
11106 lt_prog_compiler_static='-static'
11109 lt_prog_compiler_wl='-Wl,'
11110 lt_prog_compiler_pic='-fpic'
11111 lt_prog_compiler_static='-Bstatic'
11119 lt_prog_compiler_pic='-KPIC'
11120 lt_prog_compiler_static='-Bstatic'
11124 # QNX uses GNU C++, but need to define -shared option too, otherwise
11125 # it will coredump.
11126 lt_prog_compiler_pic='-fPIC -shared'
11129 osf3* | osf4* | osf5*)
11130 lt_prog_compiler_wl='-Wl,'
11131 # All OSF/1 code is PIC.
11132 lt_prog_compiler_static='-non_shared'
11136 lt_prog_compiler_static='-non_shared'
11140 lt_prog_compiler_pic='-KPIC'
11141 lt_prog_compiler_static='-Bstatic'
11142 case $cc_basename in
11143 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11144 lt_prog_compiler_wl='-Qoption ld ';;
11146 lt_prog_compiler_wl='-Wl,';;
11151 lt_prog_compiler_wl='-Qoption ld '
11152 lt_prog_compiler_pic='-PIC'
11153 lt_prog_compiler_static='-Bstatic'
11156 sysv4 | sysv4.2uw2* | sysv4.3*)
11157 lt_prog_compiler_wl='-Wl,'
11158 lt_prog_compiler_pic='-KPIC'
11159 lt_prog_compiler_static='-Bstatic'
11163 if test -d /usr/nec; then
11164 lt_prog_compiler_pic='-Kconform_pic'
11165 lt_prog_compiler_static='-Bstatic'
11169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11170 lt_prog_compiler_wl='-Wl,'
11171 lt_prog_compiler_pic='-KPIC'
11172 lt_prog_compiler_static='-Bstatic'
11176 lt_prog_compiler_wl='-Wl,'
11177 lt_prog_compiler_can_build_shared=no
11181 lt_prog_compiler_pic='-pic'
11182 lt_prog_compiler_static='-Bstatic'
11186 lt_prog_compiler_can_build_shared=no
11192 # For platforms that do not support PIC, -DPIC is meaningless:
11194 lt_prog_compiler_pic=
11197 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11202 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11203 if ${lt_cv_prog_compiler_pic+:} false; then :
11204 $as_echo_n "(cached) " >&6
11206 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11209 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11210 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11213 # Check to make sure the PIC flag actually works.
11215 if test -n "$lt_prog_compiler_pic"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11217 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11218 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11219 $as_echo_n "(cached) " >&6
11221 lt_cv_prog_compiler_pic_works=no
11222 ac_outfile=conftest.$ac_objext
11223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11224 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11225 # Insert the option either (1) after the last *FLAGS variable, or
11226 # (2) before a word containing "conftest.", or (3) at the end.
11227 # Note that $ac_compile itself does not contain backslashes and begins
11228 # with a dollar sign (not a hyphen), so the echo should work correctly.
11229 # The option is referenced via a variable to avoid confusing sed.
11230 lt_compile=`echo "$ac_compile" | $SED \
11231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11233 -e 's:$: $lt_compiler_flag:'`
11234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11235 (eval "$lt_compile" 2>conftest.err)
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 if (exit $ac_status) && test -s "$ac_outfile"; then
11240 # The compiler can only warn and ignore the option if not recognized
11241 # So say no if there are warnings other than the usual output.
11242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11245 lt_cv_prog_compiler_pic_works=yes
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11252 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11254 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11255 case $lt_prog_compiler_pic in
11257 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11260 lt_prog_compiler_pic=
11261 lt_prog_compiler_can_build_shared=no
11277 # Check to make sure the static flag actually works.
11279 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11281 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11282 if ${lt_cv_prog_compiler_static_works+:} false; then :
11283 $as_echo_n "(cached) " >&6
11285 lt_cv_prog_compiler_static_works=no
11286 save_LDFLAGS=$LDFLAGS
11287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11290 # The linker can only warn and ignore the option if not recognized
11291 # So say no if there are warnings
11292 if test -s conftest.err; then
11293 # Append any errors to the config.log.
11294 cat conftest.err 1>&5
11295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11297 if diff conftest.exp conftest.er2 >/dev/null; then
11298 lt_cv_prog_compiler_static_works=yes
11301 lt_cv_prog_compiler_static_works=yes
11305 LDFLAGS=$save_LDFLAGS
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11309 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11311 if test yes = "$lt_cv_prog_compiler_static_works"; then
11314 lt_prog_compiler_static=
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11325 if ${lt_cv_prog_compiler_c_o+:} false; then :
11326 $as_echo_n "(cached) " >&6
11328 lt_cv_prog_compiler_c_o=no
11329 $RM -r conftest 2>/dev/null
11333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11335 lt_compiler_flag="-o out/conftest2.$ac_objext"
11336 # Insert the option either (1) after the last *FLAGS variable, or
11337 # (2) before a word containing "conftest.", or (3) at the end.
11338 # Note that $ac_compile itself does not contain backslashes and begins
11339 # with a dollar sign (not a hyphen), so the echo should work correctly.
11340 lt_compile=`echo "$ac_compile" | $SED \
11341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11343 -e 's:$: $lt_compiler_flag:'`
11344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11345 (eval "$lt_compile" 2>out/conftest.err)
11347 cat out/conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11351 # The compiler can only warn and ignore the option if not recognized
11352 # So say no if there are warnings
11353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11356 lt_cv_prog_compiler_c_o=yes
11361 # SGI C++ compiler will create directory out/ii_files/ for
11362 # template instantiation
11363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11364 $RM out/* && rmdir out
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11371 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11379 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11380 if ${lt_cv_prog_compiler_c_o+:} false; then :
11381 $as_echo_n "(cached) " >&6
11383 lt_cv_prog_compiler_c_o=no
11384 $RM -r conftest 2>/dev/null
11388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11390 lt_compiler_flag="-o out/conftest2.$ac_objext"
11391 # Insert the option either (1) after the last *FLAGS variable, or
11392 # (2) before a word containing "conftest.", or (3) at the end.
11393 # Note that $ac_compile itself does not contain backslashes and begins
11394 # with a dollar sign (not a hyphen), so the echo should work correctly.
11395 lt_compile=`echo "$ac_compile" | $SED \
11396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11398 -e 's:$: $lt_compiler_flag:'`
11399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11400 (eval "$lt_compile" 2>out/conftest.err)
11402 cat out/conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11406 # The compiler can only warn and ignore the option if not recognized
11407 # So say no if there are warnings
11408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11411 lt_cv_prog_compiler_c_o=yes
11416 # SGI C++ compiler will create directory out/ii_files/ for
11417 # template instantiation
11418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11419 $RM out/* && rmdir out
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11426 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11431 hard_links=nottested
11432 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11433 # do not overwrite the value of need_locks provided by the user
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11435 $as_echo_n "checking if we can lock with hard links... " >&6; }
11438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11440 ln conftest.a conftest.b 2>&5 || hard_links=no
11441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11443 $as_echo "$hard_links" >&6; }
11444 if test no = "$hard_links"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11446 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11462 allow_undefined_flag=
11463 always_export_symbols=no
11465 archive_expsym_cmds=
11466 compiler_needs_object=no
11467 enable_shared_with_static_runtimes=no
11468 export_dynamic_flag_spec=
11469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11470 hardcode_automatic=no
11472 hardcode_direct_absolute=no
11473 hardcode_libdir_flag_spec=
11474 hardcode_libdir_separator=
11475 hardcode_minus_L=no
11476 hardcode_shlibpath_var=unsupported
11478 link_all_deplibs=unknown
11480 module_expsym_cmds=
11481 old_archive_from_new_cmds=
11482 old_archive_from_expsyms_cmds=
11483 thread_safe_flag_spec=
11484 whole_archive_flag_spec=
11485 # include_expsyms should be a list of space-separated symbols to be *always*
11486 # included in the symbol list
11488 # exclude_expsyms can be an extended regexp of symbols to exclude
11489 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11490 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11491 # as well as any symbol that contains 'd'.
11492 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11494 # platforms (ab)use it in PIC code, but their linkers get confused if
11495 # the symbol is explicitly referenced. Since portable code cannot
11496 # rely on this symbol name, it's probably fine to never include it in
11497 # preloaded symbol tables.
11498 # Exclude shared library initialization/finalization symbols.
11499 extract_expsyms_cmds=
11502 cygwin* | mingw* | pw32* | cegcc*)
11503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11504 # When not using gcc, we currently assume that we are using
11505 # Microsoft Visual C++.
11506 if test yes != "$GCC"; then
11511 # we just hope/assume this is gcc and not c89 (= MSVC++)
11514 openbsd* | bitrig*)
11521 # On some targets, GNU ld is compatible enough with the native linker
11522 # that we're better off using the native interface for both.
11523 lt_use_gnu_ld_interface=no
11524 if test yes = "$with_gnu_ld"; then
11527 # The AIX port of GNU ld has always aspired to compatibility
11528 # with the native linker. However, as the warning in the GNU ld
11529 # block says, versions before 2.19.5* couldn't really create working
11530 # shared libraries, regardless of the interface used.
11531 case `$LD -v 2>&1` in
11532 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11533 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11534 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11536 lt_use_gnu_ld_interface=yes
11541 lt_use_gnu_ld_interface=yes
11546 if test yes = "$lt_use_gnu_ld_interface"; then
11547 # If archive_cmds runs LD, not CC, wlarc should be empty
11550 # Set some defaults for GNU ld with shared library support. These
11551 # are reset later if shared libraries are not supported. Putting them
11552 # here allows them to be overridden if necessary.
11553 runpath_var=LD_RUN_PATH
11554 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11555 export_dynamic_flag_spec='$wl--export-dynamic'
11556 # ancient GNU ld didn't support --whole-archive et. al.
11557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11558 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11560 whole_archive_flag_spec=
11562 supports_anon_versioning=no
11563 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11564 *GNU\ gold*) supports_anon_versioning=yes ;;
11565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11568 *\ 2.11.*) ;; # other 2.11 versions
11569 *) supports_anon_versioning=yes ;;
11572 # See if GNU ld supports shared libraries.
11575 # On AIX/PPC, the GNU linker is very broken
11576 if test ia64 != "$host_cpu"; then
11580 *** Warning: the GNU linker, at least up to release 2.19, is reported
11581 *** to be unable to reliably create shared libraries on AIX.
11582 *** Therefore, libtool is disabling shared libraries support. If you
11583 *** really care for shared libraries, you may want to install binutils
11584 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11585 *** You will then need to restart the configuration process.
11594 # see comment about AmigaOS4 .so support
11595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11596 archive_expsym_cmds=''
11599 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)'
11600 hardcode_libdir_flag_spec='-L$libdir'
11601 hardcode_minus_L=yes
11607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11608 allow_undefined_flag=unsupported
11609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11610 # support --undefined. This deserves some investigation. FIXME
11611 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617 cygwin* | mingw* | pw32* | cegcc*)
11618 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11619 # as there is no search path for DLLs.
11620 hardcode_libdir_flag_spec='-L$libdir'
11621 export_dynamic_flag_spec='$wl--export-all-symbols'
11622 allow_undefined_flag=unsupported
11623 always_export_symbols=no
11624 enable_shared_with_static_runtimes=yes
11625 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'
11626 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11630 # If the export-symbols file already is a .def file, use it as
11631 # is; otherwise, prepend EXPORTS...
11632 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11633 cp $export_symbols $output_objdir/$soname.def;
11635 echo EXPORTS > $output_objdir/$soname.def;
11636 cat $export_symbols >> $output_objdir/$soname.def;
11638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11646 link_all_deplibs=yes
11650 hardcode_libdir_flag_spec='-L$libdir'
11651 hardcode_minus_L=yes
11652 allow_undefined_flag=unsupported
11654 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11657 $ECHO EXPORTS >> $output_objdir/$libname.def~
11658 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11659 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11660 emximp -o $lib $output_objdir/$libname.def'
11661 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11662 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11663 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11664 $ECHO EXPORTS >> $output_objdir/$libname.def~
11665 prefix_cmds="$SED"~
11666 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11667 prefix_cmds="$prefix_cmds -e 1d";
11669 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11670 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11671 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11672 emximp -o $lib $output_objdir/$libname.def'
11673 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11674 enable_shared_with_static_runtimes=yes
11679 hardcode_shlibpath_var=no
11680 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11681 export_dynamic_flag_spec='$wl-E'
11682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11683 # Instead, shared libraries are loaded at an image base (0x10000000 by
11684 # default) and relocated if they conflict, which is a slow very memory
11685 # consuming and fragmenting process. To avoid this, we pick a random,
11686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11689 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'
11692 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11694 if test linux-dietlibc = "$host_os"; then
11695 case $cc_basename in
11696 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11699 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11700 && test no = "$tmp_diet"
11702 tmp_addflag=' $pic_flag'
11703 tmp_sharedflag='-shared'
11704 case $cc_basename,$host_cpu in
11705 pgcc*) # Portland Group C compiler
11706 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'
11707 tmp_addflag=' $pic_flag'
11709 pgf77* | pgf90* | pgf95* | pgfortran*)
11710 # Portland Group f77 and f90 compilers
11711 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'
11712 tmp_addflag=' $pic_flag -Mnomain' ;;
11713 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11714 tmp_addflag=' -i_dynamic' ;;
11715 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11716 tmp_addflag=' -i_dynamic -nofor_main' ;;
11717 ifc* | ifort*) # Intel Fortran compiler
11718 tmp_addflag=' -nofor_main' ;;
11719 lf95*) # Lahey Fortran 8.1
11720 whole_archive_flag_spec=
11721 tmp_sharedflag='--shared' ;;
11722 nagfor*) # NAGFOR 5.3
11723 tmp_sharedflag='-Wl,-shared' ;;
11724 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11725 tmp_sharedflag='-qmkshrobj'
11727 nvcc*) # Cuda Compiler Driver 2.2
11728 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'
11729 compiler_needs_object=yes
11732 case `$CC -V 2>&1 | sed 5q` in
11733 *Sun\ C*) # Sun C 5.9
11734 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'
11735 compiler_needs_object=yes
11736 tmp_sharedflag='-G' ;;
11737 *Sun\ F*) # Sun Fortran 8.3
11738 tmp_sharedflag='-G' ;;
11740 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11742 if test yes = "$supports_anon_versioning"; then
11743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11745 echo "local: *; };" >> $output_objdir/$libname.ver~
11746 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11749 case $cc_basename in
11751 export_dynamic_flag_spec='-rdynamic'
11753 xlf* | bgf* | bgxlf* | mpixlf*)
11754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11755 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11756 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11757 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11758 if test yes = "$supports_anon_versioning"; then
11759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11761 echo "local: *; };" >> $output_objdir/$libname.ver~
11762 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11782 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11787 *** create shared libraries on Solaris systems. Therefore, libtool
11788 *** is disabling shared libraries support. We urge you to upgrade GNU
11789 *** binutils to release 2.9.1 or newer. Another option is to modify
11790 *** your PATH or compiler configuration so that the native linker is
11791 *** used, and then restart.
11794 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11796 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11803 case `$LD -v 2>&1` in
11804 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11809 *** reliably create shared libraries on SCO systems. Therefore, libtool
11810 *** is disabling shared libraries support. We urge you to upgrade GNU
11811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11812 *** your PATH or compiler configuration so that the native linker is
11813 *** used, and then restart.
11818 # For security reasons, it is highly recommended that you always
11819 # use absolute paths for naming shared libraries, and exclude the
11820 # DT_RUNPATH tag from executables and libraries. But doing so
11821 # requires that you compile everything twice, which is a pain.
11822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11823 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11834 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11836 hardcode_direct=yes
11837 hardcode_shlibpath_var=no
11841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11843 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11850 if test no = "$ld_shlibs"; then
11852 hardcode_libdir_flag_spec=
11853 export_dynamic_flag_spec=
11854 whole_archive_flag_spec=
11857 # PORTME fill in a description of your system's linker (not GNU ld)
11860 allow_undefined_flag=unsupported
11861 always_export_symbols=yes
11862 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'
11863 # Note: this linker hardcodes the directories in LIBPATH if there
11864 # are no directories specified by -L.
11865 hardcode_minus_L=yes
11866 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11867 # Neither direct hardcoding nor static linking is supported with a
11869 hardcode_direct=unsupported
11874 if test ia64 = "$host_cpu"; then
11875 # On IA64, the linker does run time linking by default, so we don't
11876 # have to do anything special.
11877 aix_use_runtimelinking=no
11878 exp_sym_flag='-Bexport'
11881 # If we're using GNU nm, then we don't want the "-C" option.
11882 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11883 # Without the "-l" option, or with the "-B" option, AIX nm treats
11884 # weak defined symbols like other global defined symbols, whereas
11885 # GNU nm marks them as "W".
11886 # While the 'weak' keyword is ignored in the Export File, we need
11887 # it in the Import File for the 'aix-soname' feature, so we have
11888 # to replace the "-B" option with "-P" for AIX nm.
11889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11890 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11892 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11894 aix_use_runtimelinking=no
11896 # Test if we are trying to use run time linking or normal
11897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11898 # have runtime linking enabled, and use it for executables.
11899 # For shared libraries, we enable/disable runtime linking
11900 # depending on the kind of the shared library created -
11901 # when "with_aix_soname,aix_use_runtimelinking" is:
11902 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11903 # "aix,yes" lib.so shared, rtl:yes, for executables
11904 # lib.a static archive
11905 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11906 # lib.a(lib.so.V) shared, rtl:no, for executables
11907 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11908 # lib.a(lib.so.V) shared, rtl:no
11909 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11910 # lib.a static archive
11911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11912 for ld_flag in $LDFLAGS; do
11913 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11914 aix_use_runtimelinking=yes
11918 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11919 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11920 # so we don't have lib.a shared libs to link our executables.
11921 # We have to force runtime linking in this case.
11922 aix_use_runtimelinking=yes
11923 LDFLAGS="$LDFLAGS -Wl,-brtl"
11928 exp_sym_flag='-bexport'
11929 no_entry_flag='-bnoentry'
11932 # When large executables or shared objects are built, AIX ld can
11933 # have problems creating the table of contents. If linking a library
11934 # or program results in "error TOC overflow" add -mminimal-toc to
11935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11939 hardcode_direct=yes
11940 hardcode_direct_absolute=yes
11941 hardcode_libdir_separator=':'
11942 link_all_deplibs=yes
11943 file_list_spec='$wl-f,'
11944 case $with_aix_soname,$aix_use_runtimelinking in
11945 aix,*) ;; # traditional, no import file
11946 svr4,* | *,yes) # use import file
11947 # The Import File defines what to hardcode.
11949 hardcode_direct_absolute=no
11953 if test yes = "$GCC"; then
11954 case $host_os in aix4.[012]|aix4.[012].*)
11955 # We only want to do this on AIX 4.2 and lower, the check
11956 # below for broken collect2 doesn't work under 4.3+
11957 collect2name=`$CC -print-prog-name=collect2`
11958 if test -f "$collect2name" &&
11959 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11961 # We have reworked collect2
11964 # We have old collect2
11965 hardcode_direct=unsupported
11966 # It fails to find uninstalled libraries when the uninstalled
11967 # path is not listed in the libpath. Setting hardcode_minus_L
11968 # to unsupported forces relinking
11969 hardcode_minus_L=yes
11970 hardcode_libdir_flag_spec='-L$libdir'
11971 hardcode_libdir_separator=
11975 shared_flag='-shared'
11976 if test yes = "$aix_use_runtimelinking"; then
11977 shared_flag="$shared_flag "'$wl-G'
11979 # Need to ensure runtime linking is disabled for the traditional
11980 # shared library, or the linker may eventually find shared libraries
11981 # /with/ Import File - we do not want to mix them.
11982 shared_flag_aix='-shared'
11983 shared_flag_svr4='-shared $wl-G'
11986 if test ia64 = "$host_cpu"; then
11987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11988 # chokes on -Wl,-G. The following line is correct:
11991 if test yes = "$aix_use_runtimelinking"; then
11992 shared_flag='$wl-G'
11994 shared_flag='$wl-bM:SRE'
11996 shared_flag_aix='$wl-bM:SRE'
11997 shared_flag_svr4='$wl-G'
12001 export_dynamic_flag_spec='$wl-bexpall'
12002 # It seems that -bexpall does not export symbols beginning with
12003 # underscore (_), so it is better to generate a list of symbols to export.
12004 always_export_symbols=yes
12005 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12006 # Warning - without using the other runtime loading flags (-brtl),
12007 # -berok will link without error, but may produce a broken library.
12008 allow_undefined_flag='-berok'
12009 # Determine the default libpath from the value encoded in an
12010 # empty executable.
12011 if test set = "${lt_cv_aix_libpath+set}"; then
12012 aix_libpath=$lt_cv_aix_libpath
12014 if ${lt_cv_aix_libpath_+:} false; then :
12015 $as_echo_n "(cached) " >&6
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12028 if ac_fn_c_try_link "$LINENO"; then :
12030 lt_aix_libpath_sed='
12031 /Import File Strings/,/^$/ {
12033 s/^0 *\([^ ]*\) *$/\1/
12037 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038 # Check for a 64-bit object if we didn't find anything.
12039 if test -z "$lt_cv_aix_libpath_"; then
12040 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 if test -z "$lt_cv_aix_libpath_"; then
12046 lt_cv_aix_libpath_=/usr/lib:/lib
12051 aix_libpath=$lt_cv_aix_libpath_
12054 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12055 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12057 if test ia64 = "$host_cpu"; then
12058 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12059 allow_undefined_flag="-z nodefs"
12060 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"
12062 # Determine the default libpath from the value encoded in an
12063 # empty executable.
12064 if test set = "${lt_cv_aix_libpath+set}"; then
12065 aix_libpath=$lt_cv_aix_libpath
12067 if ${lt_cv_aix_libpath_+:} false; then :
12068 $as_echo_n "(cached) " >&6
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12081 if ac_fn_c_try_link "$LINENO"; then :
12083 lt_aix_libpath_sed='
12084 /Import File Strings/,/^$/ {
12086 s/^0 *\([^ ]*\) *$/\1/
12090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12091 # Check for a 64-bit object if we didn't find anything.
12092 if test -z "$lt_cv_aix_libpath_"; then
12093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 if test -z "$lt_cv_aix_libpath_"; then
12099 lt_cv_aix_libpath_=/usr/lib:/lib
12104 aix_libpath=$lt_cv_aix_libpath_
12107 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12108 # Warning - without using the other run time loading flags,
12109 # -berok will link without error, but may produce a broken library.
12110 no_undefined_flag=' $wl-bernotok'
12111 allow_undefined_flag=' $wl-berok'
12112 if test yes = "$with_gnu_ld"; then
12113 # We only use this code for GNU lds that support --whole-archive.
12114 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12116 # Exported symbols can be pulled into shared objects from archives
12117 whole_archive_flag_spec='$convenience'
12119 archive_cmds_need_lc=yes
12120 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12121 # -brtl affects multiple linker settings, -berok does not and is overridden later
12122 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12123 if test svr4 != "$with_aix_soname"; then
12124 # This is similar to how AIX traditionally builds its shared libraries.
12125 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12127 if test aix != "$with_aix_soname"; then
12128 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12130 # used by -dlpreopen to get the symbols
12131 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12133 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12141 # see comment about AmigaOS4 .so support
12142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12143 archive_expsym_cmds=''
12146 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)'
12147 hardcode_libdir_flag_spec='-L$libdir'
12148 hardcode_minus_L=yes
12154 export_dynamic_flag_spec=-rdynamic
12157 cygwin* | mingw* | pw32* | cegcc*)
12158 # When not using gcc, we currently assume that we are using
12159 # Microsoft Visual C++.
12160 # hardcode_libdir_flag_spec is actually meaningless, as there is
12161 # no search path for DLLs.
12162 case $cc_basename in
12165 hardcode_libdir_flag_spec=' '
12166 allow_undefined_flag=unsupported
12167 always_export_symbols=yes
12169 # Tell ltmain to make .lib files, not .a files.
12171 # Tell ltmain to make .dll files, not .so files.
12173 # FIXME: Setting linknames here is a bad hack.
12174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12175 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12176 cp "$export_symbols" "$output_objdir/$soname.def";
12177 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12179 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12181 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12183 # The linker will not automatically build a static lib if we build a DLL.
12184 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12185 enable_shared_with_static_runtimes=yes
12186 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12189 old_postinstall_cmds='chmod 644 $oldlib'
12190 postlink_cmds='lt_outputfile="@OUTPUT@"~
12191 lt_tool_outputfile="@TOOL_OUTPUT@"~
12192 case $lt_outputfile in
12195 lt_outputfile=$lt_outputfile.exe
12196 lt_tool_outputfile=$lt_tool_outputfile.exe
12199 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12200 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12201 $RM "$lt_outputfile.manifest";
12205 # Assume MSVC wrapper
12206 hardcode_libdir_flag_spec=' '
12207 allow_undefined_flag=unsupported
12208 # Tell ltmain to make .lib files, not .a files.
12210 # Tell ltmain to make .dll files, not .so files.
12212 # FIXME: Setting linknames here is a bad hack.
12213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12214 # The linker will automatically build a .lib file if we build a DLL.
12215 old_archive_from_new_cmds='true'
12216 # FIXME: Should let the user specify the lib program.
12217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12218 enable_shared_with_static_runtimes=yes
12223 darwin* | rhapsody*)
12226 archive_cmds_need_lc=no
12228 hardcode_automatic=yes
12229 hardcode_shlibpath_var=unsupported
12230 if test yes = "$lt_cv_ld_force_load"; then
12231 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\"`'
12234 whole_archive_flag_spec=''
12236 link_all_deplibs=yes
12237 allow_undefined_flag=$_lt_dar_allow_undefined
12238 case $cc_basename in
12239 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12240 *) _lt_dar_can_shared=$GCC ;;
12242 if test yes = "$_lt_dar_can_shared"; then
12243 output_verbose_link_cmd=func_echo_all
12244 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12245 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12246 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"
12247 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"
12256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12257 hardcode_libdir_flag_spec='-L$libdir'
12258 hardcode_shlibpath_var=no
12261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12262 # support. Future versions do this automatically, but an explicit c++rt0.o
12263 # does not break anything, and helps significantly (at the cost of a little
12266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12267 hardcode_libdir_flag_spec='-R$libdir'
12268 hardcode_direct=yes
12269 hardcode_shlibpath_var=no
12272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct=yes
12276 hardcode_minus_L=yes
12277 hardcode_shlibpath_var=no
12280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12281 freebsd* | dragonfly*)
12282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12283 hardcode_libdir_flag_spec='-R$libdir'
12284 hardcode_direct=yes
12285 hardcode_shlibpath_var=no
12289 if test yes = "$GCC"; then
12290 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12292 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12294 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12295 hardcode_libdir_separator=:
12296 hardcode_direct=yes
12298 # hardcode_minus_L: Not really in the search PATH,
12299 # but as the default location of the library.
12300 hardcode_minus_L=yes
12301 export_dynamic_flag_spec='$wl-E'
12305 if test yes,no = "$GCC,$with_gnu_ld"; then
12306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12310 if test no = "$with_gnu_ld"; then
12311 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12312 hardcode_libdir_separator=:
12313 hardcode_direct=yes
12314 hardcode_direct_absolute=yes
12315 export_dynamic_flag_spec='$wl-E'
12316 # hardcode_minus_L: Not really in the search PATH,
12317 # but as the default location of the library.
12318 hardcode_minus_L=yes
12323 if test yes,no = "$GCC,$with_gnu_ld"; then
12326 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12332 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12341 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12345 # Older versions of the 11.00 compiler do not understand -b yet
12346 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12348 $as_echo_n "checking if $CC understands -b... " >&6; }
12349 if ${lt_cv_prog_compiler__b+:} false; then :
12350 $as_echo_n "(cached) " >&6
12352 lt_cv_prog_compiler__b=no
12353 save_LDFLAGS=$LDFLAGS
12354 LDFLAGS="$LDFLAGS -b"
12355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12357 # The linker can only warn and ignore the option if not recognized
12358 # So say no if there are warnings
12359 if test -s conftest.err; then
12360 # Append any errors to the config.log.
12361 cat conftest.err 1>&5
12362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12364 if diff conftest.exp conftest.er2 >/dev/null; then
12365 lt_cv_prog_compiler__b=yes
12368 lt_cv_prog_compiler__b=yes
12372 LDFLAGS=$save_LDFLAGS
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12376 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12378 if test yes = "$lt_cv_prog_compiler__b"; then
12379 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12381 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12387 if test no = "$with_gnu_ld"; then
12388 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12389 hardcode_libdir_separator=:
12394 hardcode_shlibpath_var=no
12397 hardcode_direct=yes
12398 hardcode_direct_absolute=yes
12399 export_dynamic_flag_spec='$wl-E'
12401 # hardcode_minus_L: Not really in the search PATH,
12402 # but as the default location of the library.
12403 hardcode_minus_L=yes
12409 irix5* | irix6* | nonstopux*)
12410 if test yes = "$GCC"; then
12411 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'
12412 # Try to use the -exported_symbol ld option, if it does not
12413 # work, assume that -exports_file does not work either and
12414 # implicitly export all symbols.
12415 # This should be the same for all languages, so no per-tag cache variable.
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12417 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12418 if ${lt_cv_irix_exported_symbol+:} false; then :
12419 $as_echo_n "(cached) " >&6
12421 save_LDFLAGS=$LDFLAGS
12422 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 int foo (void) { return 0; }
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 lt_cv_irix_exported_symbol=yes
12430 lt_cv_irix_exported_symbol=no
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LDFLAGS=$save_LDFLAGS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12437 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12438 if test yes = "$lt_cv_irix_exported_symbol"; then
12439 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'
12442 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'
12443 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'
12445 archive_cmds_need_lc='no'
12446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12447 hardcode_libdir_separator=:
12449 link_all_deplibs=yes
12453 case $cc_basename in
12455 # Fabrice Bellard et al's Tiny C Compiler
12457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12466 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12468 hardcode_libdir_flag_spec='-R$libdir'
12469 hardcode_direct=yes
12470 hardcode_shlibpath_var=no
12474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12475 hardcode_direct=yes
12476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12477 hardcode_libdir_separator=:
12478 hardcode_shlibpath_var=no
12484 openbsd* | bitrig*)
12485 if test -f /usr/libexec/ld.so; then
12486 hardcode_direct=yes
12487 hardcode_shlibpath_var=no
12488 hardcode_direct_absolute=yes
12489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12491 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12492 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12493 export_dynamic_flag_spec='$wl-E'
12495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12496 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12504 hardcode_libdir_flag_spec='-L$libdir'
12505 hardcode_minus_L=yes
12506 allow_undefined_flag=unsupported
12508 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12511 $ECHO EXPORTS >> $output_objdir/$libname.def~
12512 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12514 emximp -o $lib $output_objdir/$libname.def'
12515 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12516 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12517 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12518 $ECHO EXPORTS >> $output_objdir/$libname.def~
12519 prefix_cmds="$SED"~
12520 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12521 prefix_cmds="$prefix_cmds -e 1d";
12523 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12524 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12526 emximp -o $lib $output_objdir/$libname.def'
12527 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12528 enable_shared_with_static_runtimes=yes
12532 if test yes = "$GCC"; then
12533 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12534 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'
12536 allow_undefined_flag=' -expect_unresolved \*'
12537 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'
12539 archive_cmds_need_lc='no'
12540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12541 hardcode_libdir_separator=:
12544 osf4* | osf5*) # as osf3* with the addition of -msym flag
12545 if test yes = "$GCC"; then
12546 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12547 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'
12548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12550 allow_undefined_flag=' -expect_unresolved \*'
12551 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'
12552 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~
12553 $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'
12555 # Both c and cxx compiler support -rpath directly
12556 hardcode_libdir_flag_spec='-rpath $libdir'
12558 archive_cmds_need_lc='no'
12559 hardcode_libdir_separator=:
12563 no_undefined_flag=' -z defs'
12564 if test yes = "$GCC"; then
12566 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12568 $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'
12570 case `$CC -V 2>&1` in
12573 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12575 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12579 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12581 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12585 hardcode_libdir_flag_spec='-R$libdir'
12586 hardcode_shlibpath_var=no
12588 solaris2.[0-5] | solaris2.[0-5].*) ;;
12590 # The compiler driver will combine and reorder linker options,
12591 # but understands '-z linker_flag'. GCC discards it without '$wl',
12592 # but is careful enough not to reorder.
12593 # Supported since Solaris 2.6 (maybe 2.5.1?)
12594 if test yes = "$GCC"; then
12595 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12601 link_all_deplibs=yes
12605 if test sequent = "$host_vendor"; then
12606 # Use $CC to link under sequent, because it throws in some extra .o
12607 # files that make .init and .fini sections work.
12608 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12612 hardcode_libdir_flag_spec='-L$libdir'
12613 hardcode_direct=yes
12614 hardcode_minus_L=yes
12615 hardcode_shlibpath_var=no
12619 case $host_vendor in
12621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12622 hardcode_direct=yes # is this really true???
12625 ## LD is ld it makes a PLAMLIB
12626 ## CC just makes a GrossModule.
12627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12628 reload_cmds='$CC -r -o $output$reload_objs'
12632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12636 runpath_var='LD_RUN_PATH'
12637 hardcode_shlibpath_var=no
12641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12642 hardcode_shlibpath_var=no
12643 export_dynamic_flag_spec='-Bexport'
12647 if test -d /usr/nec; then
12648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12649 hardcode_shlibpath_var=no
12650 runpath_var=LD_RUN_PATH
12651 hardcode_runpath_var=yes
12656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12657 no_undefined_flag='$wl-z,text'
12658 archive_cmds_need_lc=no
12659 hardcode_shlibpath_var=no
12660 runpath_var='LD_RUN_PATH'
12662 if test yes = "$GCC"; then
12663 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671 sysv5* | sco3.2v5* | sco5v6*)
12672 # Note: We CANNOT use -z defs as we might desire, because we do not
12673 # link with -lc, and that would cause any symbols used from libc to
12674 # always be unresolved, which means just about no library would
12675 # ever link correctly. If we're not using GNU ld we use -z text
12676 # though, which does catch some bad symbols but isn't as heavy-handed
12678 no_undefined_flag='$wl-z,text'
12679 allow_undefined_flag='$wl-z,nodefs'
12680 archive_cmds_need_lc=no
12681 hardcode_shlibpath_var=no
12682 hardcode_libdir_flag_spec='$wl-R,$libdir'
12683 hardcode_libdir_separator=':'
12684 link_all_deplibs=yes
12685 export_dynamic_flag_spec='$wl-Bexport'
12686 runpath_var='LD_RUN_PATH'
12688 if test yes = "$GCC"; then
12689 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12690 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12693 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12699 hardcode_libdir_flag_spec='-L$libdir'
12700 hardcode_shlibpath_var=no
12708 if test sni = "$host_vendor"; then
12710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12711 export_dynamic_flag_spec='$wl-Blargedynsym'
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12718 $as_echo "$ld_shlibs" >&6; }
12719 test no = "$ld_shlibs" && can_build_shared=no
12721 with_gnu_ld=$with_gnu_ld
12738 # Do we need to explicitly link libc?
12740 case "x$archive_cmds_need_lc" in
12742 # Assume -lc should be added
12743 archive_cmds_need_lc=yes
12745 if test yes,yes = "$GCC,$enable_shared"; then
12746 case $archive_cmds in
12748 # FIXME: we may have to deal with multi-command sequences.
12751 # Test whether the compiler implicitly links with -lc since on some
12752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12753 # to ld, don't add -lc before -lgcc.
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12756 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12757 $as_echo_n "(cached) " >&6
12760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12763 (eval $ac_compile) 2>&5
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766 test $ac_status = 0; } 2>conftest.err; then
12769 libobjs=conftest.$ac_objext
12771 wl=$lt_prog_compiler_wl
12772 pic_flag=$lt_prog_compiler_pic
12778 lt_save_allow_undefined_flag=$allow_undefined_flag
12779 allow_undefined_flag=
12780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784 test $ac_status = 0; }
12786 lt_cv_archive_cmds_need_lc=no
12788 lt_cv_archive_cmds_need_lc=yes
12790 allow_undefined_flag=$lt_save_allow_undefined_flag
12792 cat conftest.err 1>&5
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12960 if test yes = "$GCC"; then
12962 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12963 *) lt_awk_arg='/^libraries:/' ;;
12966 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12967 *) lt_sed_strip_eq='s|=/|/|g' ;;
12969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12970 case $lt_search_path_spec in
12972 # if the path contains ";" then we assume it to be the separator
12973 # otherwise default to the standard path separator (i.e. ":") - it is
12974 # assumed that no part of a normal pathname contains ";" but that should
12975 # okay in the real world where ";" in dirpaths is itself problematic.
12976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12982 # Ok, now we have the path, separated by spaces, we can step through it
12983 # and add multilib dir if necessary...
12984 lt_tmp_lt_search_path_spec=
12985 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12986 # ...but if some path component already ends with the multilib dir we assume
12987 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12988 case "$lt_multi_os_dir; $lt_search_path_spec " in
12989 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12993 for lt_sys_path in $lt_search_path_spec; do
12994 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12996 elif test -n "$lt_multi_os_dir"; then
12997 test -d "$lt_sys_path" && \
12998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13001 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13002 BEGIN {RS = " "; FS = "/|\n";} {
13005 for (lt_i = NF; lt_i > 0; lt_i--) {
13006 if ($lt_i != "" && $lt_i != ".") {
13007 if ($lt_i == "..") {
13010 if (lt_count == 0) {
13011 lt_foo = "/" $lt_i lt_foo;
13018 if (lt_foo != "") { lt_freq[lt_foo]++; }
13019 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13021 # AWK program above erroneously prepends '/' to C:/dos/paths
13024 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13025 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13027 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13031 library_names_spec=
13032 libname_spec='lib$name'
13036 postuninstall_cmds=
13040 shlibpath_overrides_runpath=unknown
13042 dynamic_linker="$host_os ld.so"
13043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13044 need_lib_prefix=unknown
13045 hardcode_into_libs=no
13047 # when you set need_version to no, make sure it does not cause -set_version
13048 # flags to be left without arguments
13049 need_version=unknown
13055 version_type=linux # correct to gnu/linux during the next big refactor
13056 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13057 shlibpath_var=LIBPATH
13059 # AIX 3 has no versioning support, so we append a major version to the name.
13060 soname_spec='$libname$release$shared_ext$major'
13064 version_type=linux # correct to gnu/linux during the next big refactor
13067 hardcode_into_libs=yes
13068 if test ia64 = "$host_cpu"; then
13069 # AIX 5 supports IA64
13070 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13071 shlibpath_var=LD_LIBRARY_PATH
13073 # With GCC up to 2.95.x, collect2 would create an import file
13074 # for dependence libraries. The import file would start with
13075 # the line '#! .'. This would cause the generated library to
13076 # depend on '.', always an invalid library. This was fixed in
13077 # development snapshots of GCC prior to 3.0.
13079 aix4 | aix4.[01] | aix4.[01].*)
13080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13082 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13085 can_build_shared=no
13089 # Using Import Files as archive members, it is possible to support
13090 # filename-based versioning of shared library archives on AIX. While
13091 # this would work for both with and without runtime linking, it will
13092 # prevent static linking of such archives. So we do filename-based
13093 # shared library versioning with .so extension only, which is used
13094 # when both runtime linking and shared linking is enabled.
13095 # Unfortunately, runtime linking may impact performance, so we do
13096 # not want this to be the default eventually. Also, we use the
13097 # versioned .so libs for executables only if there is the -brtl
13098 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13099 # To allow for filename-based versioning support, we need to create
13100 # libNAME.so.V as an archive file, containing:
13101 # *) an Import File, referring to the versioned filename of the
13102 # archive as well as the shared archive member, telling the
13103 # bitwidth (32 or 64) of that shared object, and providing the
13104 # list of exported symbols of that shared object, eventually
13105 # decorated with the 'weak' keyword
13106 # *) the shared object with the F_LOADONLY flag set, to really avoid
13107 # it being seen by the linker.
13108 # At run time we better use the real file rather than another symlink,
13109 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13111 case $with_aix_soname,$aix_use_runtimelinking in
13112 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13113 # soname into executable. Probably we can add versioning support to
13114 # collect2, so additional links can be useful in future.
13115 aix,yes) # traditional libtool
13116 dynamic_linker='AIX unversionable lib.so'
13117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13118 # instead of lib<name>.a to let people know that these are not
13119 # typical AIX shared libraries.
13120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13122 aix,no) # traditional AIX only
13123 dynamic_linker='AIX lib.a(lib.so.V)'
13124 # We preserve .a as extension for shared libraries through AIX4.2
13125 # and later when we are not doing run time linking.
13126 library_names_spec='$libname$release.a $libname.a'
13127 soname_spec='$libname$release$shared_ext$major'
13129 svr4,*) # full svr4 only
13130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13132 # We do not specify a path in Import Files, so LIBPATH fires.
13133 shlibpath_overrides_runpath=yes
13135 *,yes) # both, prefer svr4
13136 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13137 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13138 # unpreferred sharedlib libNAME.a needs extra handling
13139 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13140 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13141 # We do not specify a path in Import Files, so LIBPATH fires.
13142 shlibpath_overrides_runpath=yes
13144 *,no) # both, prefer aix
13145 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13146 library_names_spec='$libname$release.a $libname.a'
13147 soname_spec='$libname$release$shared_ext$major'
13148 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13149 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13150 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13153 shlibpath_var=LIBPATH
13160 # Since July 2007 AmigaOS4 officially supports .so libraries.
13161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13165 library_names_spec='$libname.ixlibrary $libname.a'
13166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13173 library_names_spec='$libname$shared_ext'
13174 dynamic_linker="$host_os ld.so"
13175 shlibpath_var=LIBRARY_PATH
13179 version_type=linux # correct to gnu/linux during the next big refactor
13181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13182 soname_spec='$libname$release$shared_ext$major'
13183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13187 # the default ld.so.conf also contains /usr/contrib/lib and
13188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13189 # libtool to hard-code these into programs
13192 cygwin* | mingw* | pw32* | cegcc*)
13193 version_type=windows
13198 case $GCC,$cc_basename in
13201 library_names_spec='$libname.dll.a'
13202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13203 postinstall_cmds='base_file=`basename \$file`~
13204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13205 dldir=$destdir/`dirname \$dlpath`~
13206 test -d \$dldir || mkdir -p \$dldir~
13207 $install_prog $dir/$dlname \$dldir/$dlname~
13208 chmod a+x \$dldir/$dlname~
13209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13213 dlpath=$dir/\$dldll~
13215 shlibpath_overrides_runpath=yes
13219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13220 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13225 # MinGW DLLs use traditional 'lib' prefix
13226 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13229 # pw32 DLLs use 'pw' prefix rather than 'lib'
13230 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13233 dynamic_linker='Win32 ld.exe'
13238 libname_spec='$name'
13239 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13240 library_names_spec='$libname.dll.lib'
13244 sys_lib_search_path_spec=
13247 for lt_path in $LIB
13250 # Let DOS variable expansion print the short 8.3 style file name.
13251 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13252 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13255 # Convert to MSYS style.
13256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13259 # Convert to unix form, then to dos form, then back to unix form
13260 # but this time dos style (no spaces!) so that the unix form looks
13261 # like /cygdrive/c/PROGRA~1:/cygdr...
13262 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13263 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13264 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13267 sys_lib_search_path_spec=$LIB
13268 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13269 # It is most probably a Windows format PATH.
13270 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13272 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13274 # FIXME: find the short name or the path components, as spaces are
13275 # common. (e.g. "Program Files" -> "PROGRA~1")
13279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13280 postinstall_cmds='base_file=`basename \$file`~
13281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13282 dldir=$destdir/`dirname \$dlpath`~
13283 test -d \$dldir || mkdir -p \$dldir~
13284 $install_prog $dir/$dlname \$dldir/$dlname'
13285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13286 dlpath=$dir/\$dldll~
13288 shlibpath_overrides_runpath=yes
13289 dynamic_linker='Win32 link.exe'
13293 # Assume MSVC wrapper
13294 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13295 dynamic_linker='Win32 ld.exe'
13298 # FIXME: first we should search . and the directory the executable is in
13302 darwin* | rhapsody*)
13303 dynamic_linker="$host_os dyld"
13304 version_type=darwin
13307 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13308 soname_spec='$libname$release$major$shared_ext'
13309 shlibpath_overrides_runpath=yes
13310 shlibpath_var=DYLD_LIBRARY_PATH
13311 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13318 version_type=linux # correct to gnu/linux during the next big refactor
13321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13322 soname_spec='$libname$release$shared_ext$major'
13323 shlibpath_var=LD_LIBRARY_PATH
13326 freebsd* | dragonfly*)
13327 # DragonFly does not have aout. When/if they implement a new
13328 # versioning mechanism, adjust this.
13329 if test -x /usr/bin/objformat; then
13330 objformat=`/usr/bin/objformat`
13333 freebsd[23].*) objformat=aout ;;
13334 *) objformat=elf ;;
13337 version_type=freebsd-$objformat
13338 case $version_type in
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13341 soname_spec='$libname$release$shared_ext$major'
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13350 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes
13355 freebsd3.[01]* | freebsdelf3.[01]*)
13356 shlibpath_overrides_runpath=yes
13357 hardcode_into_libs=yes
13359 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13360 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13361 shlibpath_overrides_runpath=no
13362 hardcode_into_libs=yes
13364 *) # from 4.6 on, and DragonFly
13365 shlibpath_overrides_runpath=yes
13366 hardcode_into_libs=yes
13372 version_type=linux # correct to gnu/linux during the next big refactor
13375 dynamic_linker="$host_os runtime_loader"
13376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377 soname_spec='$libname$release$shared_ext$major'
13378 shlibpath_var=LIBRARY_PATH
13379 shlibpath_overrides_runpath=no
13380 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13381 hardcode_into_libs=yes
13384 hpux9* | hpux10* | hpux11*)
13385 # Give a soname corresponding to the major version so that dld.sl refuses to
13386 # link against other versions.
13393 hardcode_into_libs=yes
13394 dynamic_linker="$host_os dld.so"
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13398 soname_spec='$libname$release$shared_ext$major'
13399 if test 32 = "$HPUX_IA64_MODE"; then
13400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13401 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13404 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13409 hardcode_into_libs=yes
13410 dynamic_linker="$host_os dld.sl"
13411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13414 soname_spec='$libname$release$shared_ext$major'
13415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13420 dynamic_linker="$host_os dld.sl"
13421 shlibpath_var=SHLIB_PATH
13422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13424 soname_spec='$libname$release$shared_ext$major'
13427 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13428 postinstall_cmds='chmod 555 $lib'
13429 # or fails outright, so override atomically:
13430 install_override_mode=555
13434 version_type=linux # correct to gnu/linux during the next big refactor
13437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13438 soname_spec='$libname$release$shared_ext$major'
13439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=no
13442 hardcode_into_libs=yes
13445 irix5* | irix6* | nonstopux*)
13447 nonstopux*) version_type=nonstopux ;;
13449 if test yes = "$lt_cv_prog_gnu_ld"; then
13450 version_type=linux # correct to gnu/linux during the next big refactor
13457 soname_spec='$libname$release$shared_ext$major'
13458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13460 irix5* | nonstopux*)
13461 libsuff= shlibsuff=
13464 case $LD in # libtool.m4 will add one of these switches to LD
13465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13466 libsuff= shlibsuff= libmagic=32-bit;;
13467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13468 libsuff=32 shlibsuff=N32 libmagic=N32;;
13469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13470 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13471 *) libsuff= shlibsuff= libmagic=never-match;;
13475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13476 shlibpath_overrides_runpath=no
13477 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13478 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13479 hardcode_into_libs=yes
13482 # No shared lib support for Linux oldld, aout, or coff.
13483 linux*oldld* | linux*aout* | linux*coff*)
13488 version_type=none # Android doesn't support versioned libraries.
13491 library_names_spec='$libname$release$shared_ext'
13492 soname_spec='$libname$release$shared_ext'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes
13497 # This implies no fast_install, which is unacceptable.
13498 # Some rework will be needed to allow for fast_install
13499 # before this can be enabled.
13500 hardcode_into_libs=yes
13502 dynamic_linker='Android linker'
13503 # Don't embed -rpath directories since the linker doesn't support them.
13504 hardcode_libdir_flag_spec='-L$libdir'
13507 # This must be glibc/ELF.
13508 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13509 version_type=linux # correct to gnu/linux during the next big refactor
13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13513 soname_spec='$libname$release$shared_ext$major'
13514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=no
13518 # Some binutils ld are patched to set DT_RUNPATH
13519 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13520 $as_echo_n "(cached) " >&6
13522 lt_cv_shlibpath_overrides_runpath=no
13523 save_LDFLAGS=$LDFLAGS
13524 save_libdir=$libdir
13525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13540 lt_cv_shlibpath_overrides_runpath=yes
13543 rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13545 LDFLAGS=$save_LDFLAGS
13546 libdir=$save_libdir
13550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13552 # This implies no fast_install, which is unacceptable.
13553 # Some rework will be needed to allow for fast_install
13554 # before this can be enabled.
13555 hardcode_into_libs=yes
13557 # Ideally, we could use ldconfig to report *all* directores which are
13558 # searched for libraries, however this is still not possible. Aside from not
13559 # being certain /sbin/ldconfig is available, command
13560 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13561 # even though it is searched at run-time. Try to do the best guess by
13562 # appending ld.so.conf contents (and includes) to the search path.
13563 if test -f /etc/ld.so.conf; then
13564 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' ' '`
13565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13568 # We used to test for /lib/ld.so.1 and disable shared libraries on
13569 # powerpc, because MkLinux only supported shared libraries with the
13570 # GNU dynamic linker. Since this was broken with cross compilers,
13571 # most powerpc-linux boxes support dynamic linking these days and
13572 # people can always --disable-shared, the test was removed, and we
13573 # assume the GNU/Linux dynamic linker is in use.
13574 dynamic_linker='GNU/Linux ld.so'
13581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13584 dynamic_linker='NetBSD (a.out) ld.so'
13586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13587 soname_spec='$libname$release$shared_ext$major'
13588 dynamic_linker='NetBSD ld.elf_so'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13596 version_type=linux # correct to gnu/linux during the next big refactor
13597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13607 soname_spec='$libname$release$shared_ext$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=no
13610 hardcode_into_libs=yes
13611 dynamic_linker='ldqnx.so'
13614 openbsd* | bitrig*)
13616 sys_lib_dlsearch_path_spec=/usr/lib
13618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13623 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 shlibpath_overrides_runpath=yes
13630 libname_spec='$name'
13631 version_type=windows
13635 # OS/2 can only load a DLL with a base name of 8 characters or less.
13636 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13637 v=$($ECHO $release$versuffix | tr -d .-);
13638 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13639 $ECHO $n$v`$shared_ext'
13640 library_names_spec='${libname}_dll.$libext'
13641 dynamic_linker='OS/2 ld.exe'
13642 shlibpath_var=BEGINLIBPATH
13643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13645 postinstall_cmds='base_file=`basename \$file`~
13646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13647 dldir=$destdir/`dirname \$dlpath`~
13648 test -d \$dldir || mkdir -p \$dldir~
13649 $install_prog $dir/$dlname \$dldir/$dlname~
13650 chmod a+x \$dldir/$dlname~
13651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13655 dlpath=$dir/\$dldll~
13659 osf3* | osf4* | osf5*)
13663 soname_spec='$libname$release$shared_ext$major'
13664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13675 version_type=linux # correct to gnu/linux during the next big refactor
13678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13679 soname_spec='$libname$release$shared_ext$major'
13680 shlibpath_var=LD_LIBRARY_PATH
13681 shlibpath_overrides_runpath=yes
13682 hardcode_into_libs=yes
13683 # ldd complains unless libraries are executable
13684 postinstall_cmds='chmod +x $lib'
13689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes
13693 if test yes = "$with_gnu_ld"; then
13700 version_type=linux # correct to gnu/linux during the next big refactor
13701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13702 soname_spec='$libname$release$shared_ext$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 case $host_vendor in
13706 shlibpath_overrides_runpath=no
13708 runpath_var=LD_RUN_PATH
13716 shlibpath_overrides_runpath=no
13717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13723 if test -d /usr/nec; then
13724 version_type=linux # correct to gnu/linux during the next big refactor
13725 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13726 soname_spec='$libname$shared_ext.$major'
13727 shlibpath_var=LD_LIBRARY_PATH
13731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13736 soname_spec='$libname$release$shared_ext$major'
13737 shlibpath_var=LD_LIBRARY_PATH
13738 shlibpath_overrides_runpath=yes
13739 hardcode_into_libs=yes
13740 if test yes = "$with_gnu_ld"; then
13741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13750 sys_lib_dlsearch_path_spec='/usr/lib'
13754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13755 version_type=linux # correct to gnu/linux during the next big refactor
13758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13759 shlibpath_var=LD_LIBRARY_PATH
13760 shlibpath_overrides_runpath=no
13761 hardcode_into_libs=yes
13765 version_type=linux # correct to gnu/linux during the next big refactor
13766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13767 soname_spec='$libname$release$shared_ext$major'
13768 shlibpath_var=LD_LIBRARY_PATH
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13776 $as_echo "$dynamic_linker" >&6; }
13777 test no = "$dynamic_linker" && can_build_shared=no
13779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13780 if test yes = "$GCC"; then
13781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13784 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13785 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13788 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13789 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13792 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13793 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13795 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13796 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13798 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13799 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13898 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13900 if test -n "$hardcode_libdir_flag_spec" ||
13901 test -n "$runpath_var" ||
13902 test yes = "$hardcode_automatic"; then
13904 # We can hardcode non-existent directories.
13905 if test no != "$hardcode_direct" &&
13906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13907 # have to relink, otherwise we might link with an installed library
13908 # when we should be linking with a yet-to-be-installed one
13909 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13910 test no != "$hardcode_minus_L"; then
13911 # Linking always hardcodes the temporary library directory.
13912 hardcode_action=relink
13914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13915 hardcode_action=immediate
13918 # We cannot hardcode anything, or else we can only hardcode existing
13920 hardcode_action=unsupported
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13923 $as_echo "$hardcode_action" >&6; }
13925 if test relink = "$hardcode_action" ||
13926 test yes = "$inherit_rpath"; then
13927 # Fast installation is not supported
13928 enable_fast_install=no
13929 elif test yes = "$shlibpath_overrides_runpath" ||
13930 test no = "$enable_shared"; then
13931 # Fast installation is not necessary
13932 enable_fast_install=needless
13940 if test yes != "$enable_dlopen"; then
13941 enable_dlopen=unknown
13942 enable_dlopen_self=unknown
13943 enable_dlopen_self_static=unknown
13950 lt_cv_dlopen=load_add_on
13952 lt_cv_dlopen_self=yes
13955 mingw* | pw32* | cegcc*)
13956 lt_cv_dlopen=LoadLibrary
13961 lt_cv_dlopen=dlopen
13966 # if libdl is installed we need to link against it
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13968 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13969 if ${ac_cv_lib_dl_dlopen+:} false; then :
13970 $as_echo_n "(cached) " >&6
13972 ac_check_lib_save_LIBS=$LIBS
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13977 /* Override any GCC internal prototype to avoid an error.
13978 Use char because int might match the return type of a GCC
13979 builtin and then its argument prototype would still apply. */
13992 if ac_fn_c_try_link "$LINENO"; then :
13993 ac_cv_lib_dl_dlopen=yes
13995 ac_cv_lib_dl_dlopen=no
13997 rm -f core conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS=$ac_check_lib_save_LIBS
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14004 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14009 lt_cv_dlopen_self=yes
14016 # Don't try to run any link tests for TPF. We know it's impossible
14017 # because TPF is a cross-compiler, and we know how we open DSOs.
14018 lt_cv_dlopen=dlopen
14020 lt_cv_dlopen_self=no
14024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14025 if test "x$ac_cv_func_shl_load" = xyes; then :
14026 lt_cv_dlopen=shl_load
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14030 if ${ac_cv_lib_dld_shl_load+:} false; then :
14031 $as_echo_n "(cached) " >&6
14033 ac_check_lib_save_LIBS=$LIBS
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14048 return shl_load ();
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_dld_shl_load=yes
14056 ac_cv_lib_dld_shl_load=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14064 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14065 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14068 if test "x$ac_cv_func_dlopen" = xyes; then :
14069 lt_cv_dlopen=dlopen
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14073 if ${ac_cv_lib_dl_dlopen+:} false; then :
14074 $as_echo_n "(cached) " >&6
14076 ac_check_lib_save_LIBS=$LIBS
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 ac_cv_lib_dl_dlopen=yes
14099 ac_cv_lib_dl_dlopen=no
14101 rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14108 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14112 if ${ac_cv_lib_svld_dlopen+:} false; then :
14113 $as_echo_n "(cached) " >&6
14115 ac_check_lib_save_LIBS=$LIBS
14116 LIBS="-lsvld $LIBS"
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14135 if ac_fn_c_try_link "$LINENO"; then :
14136 ac_cv_lib_svld_dlopen=yes
14138 ac_cv_lib_svld_dlopen=no
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14146 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14147 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14151 if ${ac_cv_lib_dld_dld_link+:} false; then :
14152 $as_echo_n "(cached) " >&6
14154 ac_check_lib_save_LIBS=$LIBS
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14159 /* Override any GCC internal prototype to avoid an error.
14160 Use char because int might match the return type of a GCC
14161 builtin and then its argument prototype would still apply. */
14169 return dld_link ();
14174 if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_lib_dld_dld_link=yes
14177 ac_cv_lib_dld_dld_link=no
14179 rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14185 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14186 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14207 if test no = "$lt_cv_dlopen"; then
14213 case $lt_cv_dlopen in
14215 save_CPPFLAGS=$CPPFLAGS
14216 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14218 save_LDFLAGS=$LDFLAGS
14219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14222 LIBS="$lt_cv_dlopen_libs $LIBS"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14226 if ${lt_cv_dlopen_self+:} false; then :
14227 $as_echo_n "(cached) " >&6
14229 if test yes = "$cross_compiling"; then :
14230 lt_cv_dlopen_self=cross
14232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14233 lt_status=$lt_dlunknown
14234 cat > conftest.$ac_ext <<_LT_EOF
14235 #line $LINENO "configure"
14236 #include "confdefs.h"
14245 # define LT_DLGLOBAL RTLD_GLOBAL
14248 # define LT_DLGLOBAL DL_GLOBAL
14250 # define LT_DLGLOBAL 0
14254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14255 find out it does not work in some platform. */
14256 #ifndef LT_DLLAZY_OR_NOW
14258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14261 # define LT_DLLAZY_OR_NOW DL_LAZY
14264 # define LT_DLLAZY_OR_NOW RTLD_NOW
14267 # define LT_DLLAZY_OR_NOW DL_NOW
14269 # define LT_DLLAZY_OR_NOW 0
14276 /* When -fvisibility=hidden is used, assume the code has been annotated
14277 correspondingly for the symbols needed. */
14278 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14279 int fnord () __attribute__((visibility("default")));
14282 int fnord () { return 42; }
14285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14286 int status = $lt_dlunknown;
14290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14294 else puts (dlerror ());
14296 /* dlclose (self); */
14304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14305 (eval $ac_link) 2>&5
14307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14309 (./conftest; exit; ) >&5 2>/dev/null
14311 case x$lt_status in
14312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14317 # compilation failed
14318 lt_cv_dlopen_self=no
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14326 $as_echo "$lt_cv_dlopen_self" >&6; }
14328 if test yes = "$lt_cv_dlopen_self"; then
14329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14331 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14332 if ${lt_cv_dlopen_self_static+:} false; then :
14333 $as_echo_n "(cached) " >&6
14335 if test yes = "$cross_compiling"; then :
14336 lt_cv_dlopen_self_static=cross
14338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14339 lt_status=$lt_dlunknown
14340 cat > conftest.$ac_ext <<_LT_EOF
14341 #line $LINENO "configure"
14342 #include "confdefs.h"
14351 # define LT_DLGLOBAL RTLD_GLOBAL
14354 # define LT_DLGLOBAL DL_GLOBAL
14356 # define LT_DLGLOBAL 0
14360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14361 find out it does not work in some platform. */
14362 #ifndef LT_DLLAZY_OR_NOW
14364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14367 # define LT_DLLAZY_OR_NOW DL_LAZY
14370 # define LT_DLLAZY_OR_NOW RTLD_NOW
14373 # define LT_DLLAZY_OR_NOW DL_NOW
14375 # define LT_DLLAZY_OR_NOW 0
14382 /* When -fvisibility=hidden is used, assume the code has been annotated
14383 correspondingly for the symbols needed. */
14384 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14385 int fnord () __attribute__((visibility("default")));
14388 int fnord () { return 42; }
14391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14392 int status = $lt_dlunknown;
14396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14400 else puts (dlerror ());
14402 /* dlclose (self); */
14410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14411 (eval $ac_link) 2>&5
14413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14415 (./conftest; exit; ) >&5 2>/dev/null
14417 case x$lt_status in
14418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14423 # compilation failed
14424 lt_cv_dlopen_self_static=no
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14432 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14435 CPPFLAGS=$save_CPPFLAGS
14436 LDFLAGS=$save_LDFLAGS
14441 case $lt_cv_dlopen_self in
14442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14443 *) enable_dlopen_self=unknown ;;
14446 case $lt_cv_dlopen_self_static in
14447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14448 *) enable_dlopen_self_static=unknown ;;
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14471 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14472 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14476 $as_echo "yes" >&6; }
14478 # FIXME - insert some real tests, host_os isn't really good enough
14481 if test -n "$STRIP"; then
14482 striplib="$STRIP -x"
14483 old_striplib="$STRIP -S"
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493 $as_echo "no" >&6; }
14509 # Report what library types will actually be built
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14511 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14513 $as_echo "$can_build_shared" >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14516 $as_echo_n "checking whether to build shared libraries... " >&6; }
14517 test no = "$can_build_shared" && enable_shared=no
14519 # On AIX, shared libraries and static libraries use the same namespace, and
14520 # are all built from PIC.
14523 test yes = "$enable_shared" && enable_static=no
14524 if test -n "$RANLIB"; then
14525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14526 postinstall_cmds='$RANLIB $lib'
14531 if test ia64 != "$host_cpu"; then
14532 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14533 yes,aix,yes) ;; # shared object as lib.so file only
14534 yes,svr4,*) ;; # shared object as lib.so archive member only
14535 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14541 $as_echo "$enable_shared" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14544 $as_echo_n "checking whether to build static libraries... " >&6; }
14545 # Make sure either enable_shared or enable_static is yes.
14546 test yes = "$enable_shared" || enable_static=yes
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14548 $as_echo "$enable_static" >&6; }
14555 ac_cpp='$CPP $CPPFLAGS'
14556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14576 ac_config_commands="$ac_config_commands libtool"
14581 # Only expand once:
14586 # NTP has (so far) been relying on leading-edge autogen, which
14587 # means we need the appropriate corresponding libopts as well.
14588 # Therefore, by default:
14589 # - use the version of libopts we ship with
14590 # - do not install it
14591 # - build a static copy (AC_DISABLE_SHARED - done earlier)
14592 case "${enable_local_libopts+set}" in
14594 *) enable_local_libopts=yes ;;
14596 case "${enable_libopts_install+set}" in
14598 *) enable_libopts_install=no ;;
14601 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14602 if test "x$ac_cv_type_pid_t" = xyes; then :
14606 cat >>confdefs.h <<_ACEOF
14614 ac_header_dirent=no
14615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14616 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14618 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14619 if eval \${$as_ac_Header+:} false; then :
14620 $as_echo_n "(cached) " >&6
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <sys/types.h>
14636 if ac_fn_c_try_compile "$LINENO"; then :
14637 eval "$as_ac_Header=yes"
14639 eval "$as_ac_Header=no"
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 eval ac_res=\$$as_ac_Header
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14645 $as_echo "$ac_res" >&6; }
14646 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14647 cat >>confdefs.h <<_ACEOF
14648 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14651 ac_header_dirent=$ac_hdr; break
14655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14656 if test $ac_header_dirent = dirent.h; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14658 $as_echo_n "checking for library containing opendir... " >&6; }
14659 if ${ac_cv_search_opendir+:} false; then :
14660 $as_echo_n "(cached) " >&6
14662 ac_func_search_save_LIBS=$LIBS
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14681 for ac_lib in '' dir; do
14682 if test -z "$ac_lib"; then
14683 ac_res="none required"
14686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14688 if ac_fn_c_try_link "$LINENO"; then :
14689 ac_cv_search_opendir=$ac_res
14691 rm -f core conftest.err conftest.$ac_objext \
14693 if ${ac_cv_search_opendir+:} false; then :
14697 if ${ac_cv_search_opendir+:} false; then :
14700 ac_cv_search_opendir=no
14702 rm conftest.$ac_ext
14703 LIBS=$ac_func_search_save_LIBS
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14706 $as_echo "$ac_cv_search_opendir" >&6; }
14707 ac_res=$ac_cv_search_opendir
14708 if test "$ac_res" != no; then :
14709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14715 $as_echo_n "checking for library containing opendir... " >&6; }
14716 if ${ac_cv_search_opendir+:} false; then :
14717 $as_echo_n "(cached) " >&6
14719 ac_func_search_save_LIBS=$LIBS
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14723 /* Override any GCC internal prototype to avoid an error.
14724 Use char because int might match the return type of a GCC
14725 builtin and then its argument prototype would still apply. */
14738 for ac_lib in '' x; do
14739 if test -z "$ac_lib"; then
14740 ac_res="none required"
14743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14745 if ac_fn_c_try_link "$LINENO"; then :
14746 ac_cv_search_opendir=$ac_res
14748 rm -f core conftest.err conftest.$ac_objext \
14750 if ${ac_cv_search_opendir+:} false; then :
14754 if ${ac_cv_search_opendir+:} false; then :
14757 ac_cv_search_opendir=no
14759 rm conftest.$ac_ext
14760 LIBS=$ac_func_search_save_LIBS
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14763 $as_echo "$ac_cv_search_opendir" >&6; }
14764 ac_res=$ac_cv_search_opendir
14765 if test "$ac_res" != no; then :
14766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14773 # =================
14775 # =================
14777 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
14778 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
14779 sys/un.h sys/wait.h dlfcn.h errno.h \
14780 fcntl.h libgen.h libintl.h memory.h \
14781 netinet/in.h setjmp.h stdbool.h sysexits.h \
14784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14787 cat >>confdefs.h <<_ACEOF
14788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14796 for ac_header in stdarg.h varargs.h
14798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14799 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14804 lo_have_arg_hdr=true;break
14806 lo_have_arg_hdr=false
14812 for ac_header in string.h strings.h
14814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14817 cat >>confdefs.h <<_ACEOF
14818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 lo_have_str_hdr=true;break
14822 lo_have_str_hdr=false
14828 for ac_header in limits.h sys/limits.h values.h
14830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14831 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14836 lo_have_lim_hdr=true;break
14838 lo_have_lim_hdr=false
14844 for ac_header in inttypes.h stdint.h
14846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14852 lo_have_typ_hdr=true;break
14854 lo_have_typ_hdr=false
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
14861 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
14862 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 #include <stdlib.h>
14868 #include <stdnoreturn.h>
14869 /* Do not check for 'noreturn' after the return type.
14870 C11 allows it, but it's rarely done that way
14871 and circa-2012 bleeding-edge GCC rejects it when given
14872 -Werror=old-style-declaration. */
14873 noreturn void foo1 (void) { exit (0); }
14874 _Noreturn void foo2 (void) { exit (0); }
14875 int testit (int argc, char **argv) {
14878 (argv[0][0] ? foo1 : foo2) ();
14889 if ac_fn_c_try_compile "$LINENO"; then :
14890 gl_cv_header_working_stdnoreturn_h=yes
14892 gl_cv_header_working_stdnoreturn_h=no
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
14897 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
14899 if test $gl_cv_header_working_stdnoreturn_h = yes; then
14902 STDNORETURN_H='stdnoreturn.h'
14906 if test -n "$STDNORETURN_H"; then
14907 GL_GENERATE_STDNORETURN_H_TRUE=
14908 GL_GENERATE_STDNORETURN_H_FALSE='#'
14910 GL_GENERATE_STDNORETURN_H_TRUE='#'
14911 GL_GENERATE_STDNORETURN_H_FALSE=
14916 # ----------------------------------------------------------------------
14917 # check for various programs used during the build.
14918 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
14919 # ----------------------------------------------------------------------
14920 for ac_header in runetype.h wchar.h
14922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14924 $ac_includes_default
14925 #if HAVE_RUNETYPE_H
14926 # include <runetype.h>
14930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14931 cat >>confdefs.h <<_ACEOF
14932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14940 # Check whether --enable-nls was given.
14941 if test "${enable_nls+set}" = set; then :
14942 enableval=$enable_nls;
14945 if test "x$enable_nls" != "xno" && \
14946 test "X${ac_cv_header_libintl_h}" = Xyes; then :
14949 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14953 # --------------------------------------------
14954 # Verify certain entries from AC_CHECK_HEADERS
14955 # --------------------------------------------
14956 ${lo_have_arg_hdr} || \
14957 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
14959 ${lo_have_str_hdr} || \
14960 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
14962 ${lo_have_lim_hdr} || \
14963 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
14965 ${lo_have_typ_hdr} || \
14966 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
14968 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
14969 do eval as_ac_var=\${ac_cv_header_${f}_h}
14970 test "X${as_ac_var}" = Xyes || {
14971 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
14974 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
14975 echo '#include <stdint.h>' > inttypes.h
14977 # ----------------------------------------------------------------------
14978 # Checks for typedefs
14979 # ----------------------------------------------------------------------
14980 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
14981 if test "x$ac_cv_type_wchar_t" = xyes; then :
14983 cat >>confdefs.h <<_ACEOF
14984 #define HAVE_WCHAR_T 1
14990 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
14991 $ac_includes_default
14992 #if HAVE_RUNETYPE_H
14993 # include <runetype.h>
14996 # include <wchar.h>
15000 if test "x$ac_cv_type_wint_t" = xyes; then :
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_WINT_T 1
15009 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15010 if test "x$ac_cv_type_int8_t" = xyes; then :
15012 cat >>confdefs.h <<_ACEOF
15013 #define HAVE_INT8_T 1
15018 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15019 if test "x$ac_cv_type_uint8_t" = xyes; then :
15021 cat >>confdefs.h <<_ACEOF
15022 #define HAVE_UINT8_T 1
15027 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15028 if test "x$ac_cv_type_int16_t" = xyes; then :
15030 cat >>confdefs.h <<_ACEOF
15031 #define HAVE_INT16_T 1
15036 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15037 if test "x$ac_cv_type_uint16_t" = xyes; then :
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_UINT16_T 1
15045 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15046 if test "x$ac_cv_type_int32_t" = xyes; then :
15048 cat >>confdefs.h <<_ACEOF
15049 #define HAVE_INT32_T 1
15054 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15055 if test "x$ac_cv_type_uint32_t" = xyes; then :
15057 cat >>confdefs.h <<_ACEOF
15058 #define HAVE_UINT32_T 1
15063 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15064 if test "x$ac_cv_type_intptr_t" = xyes; then :
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_INTPTR_T 1
15072 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15073 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_UINTPTR_T 1
15081 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
15082 if test "x$ac_cv_type_uint_t" = xyes; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_UINT_T 1
15090 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15091 if test "x$ac_cv_type_pid_t" = xyes; then :
15093 cat >>confdefs.h <<_ACEOF
15094 #define HAVE_PID_T 1
15099 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15100 if test "x$ac_cv_type_size_t" = xyes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_SIZE_T 1
15108 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15109 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
15111 cat >>confdefs.h <<_ACEOF
15112 #define HAVE_PTRDIFF_T 1
15118 # The cast to long int works around a bug in the HP C Compiler
15119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15121 # This bug is HP SR number 8606223364.
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
15123 $as_echo_n "checking size of char *... " >&6; }
15124 if ${ac_cv_sizeof_char_p+:} false; then :
15125 $as_echo_n "(cached) " >&6
15127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
15130 if test "$ac_cv_type_char_p" = yes; then
15131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15133 as_fn_error 77 "cannot compute sizeof (char *)
15134 See \`config.log' for more details" "$LINENO" 5; }
15136 ac_cv_sizeof_char_p=0
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
15142 $as_echo "$ac_cv_sizeof_char_p" >&6; }
15146 cat >>confdefs.h <<_ACEOF
15147 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15151 # The cast to long int works around a bug in the HP C Compiler
15152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15154 # This bug is HP SR number 8606223364.
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15156 $as_echo_n "checking size of int... " >&6; }
15157 if ${ac_cv_sizeof_int+:} false; then :
15158 $as_echo_n "(cached) " >&6
15160 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15163 if test "$ac_cv_type_int" = yes; then
15164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15166 as_fn_error 77 "cannot compute sizeof (int)
15167 See \`config.log' for more details" "$LINENO" 5; }
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15175 $as_echo "$ac_cv_sizeof_int" >&6; }
15179 cat >>confdefs.h <<_ACEOF
15180 #define SIZEOF_INT $ac_cv_sizeof_int
15184 # The cast to long int works around a bug in the HP C Compiler
15185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15187 # This bug is HP SR number 8606223364.
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15189 $as_echo_n "checking size of long... " >&6; }
15190 if ${ac_cv_sizeof_long+:} false; then :
15191 $as_echo_n "(cached) " >&6
15193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15196 if test "$ac_cv_type_long" = yes; then
15197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15199 as_fn_error 77 "cannot compute sizeof (long)
15200 See \`config.log' for more details" "$LINENO" 5; }
15202 ac_cv_sizeof_long=0
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15208 $as_echo "$ac_cv_sizeof_long" >&6; }
15212 cat >>confdefs.h <<_ACEOF
15213 #define SIZEOF_LONG $ac_cv_sizeof_long
15217 # The cast to long int works around a bug in the HP C Compiler
15218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15220 # This bug is HP SR number 8606223364.
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15222 $as_echo_n "checking size of short... " >&6; }
15223 if ${ac_cv_sizeof_short+:} false; then :
15224 $as_echo_n "(cached) " >&6
15226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15229 if test "$ac_cv_type_short" = yes; then
15230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15232 as_fn_error 77 "cannot compute sizeof (short)
15233 See \`config.log' for more details" "$LINENO" 5; }
15235 ac_cv_sizeof_short=0
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15241 $as_echo "$ac_cv_sizeof_short" >&6; }
15245 cat >>confdefs.h <<_ACEOF
15246 #define SIZEOF_SHORT $ac_cv_sizeof_short
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
15255 $as_echo_n "checking for pathfind in -lgen... " >&6; }
15256 if ${ac_cv_lib_gen_pathfind+:} false; then :
15257 $as_echo_n "(cached) " >&6
15259 ac_check_lib_save_LIBS=$LIBS
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15264 /* Override any GCC internal prototype to avoid an error.
15265 Use char because int might match the return type of a GCC
15266 builtin and then its argument prototype would still apply. */
15274 return pathfind ();
15279 if ac_fn_c_try_link "$LINENO"; then :
15280 ac_cv_lib_gen_pathfind=yes
15282 ac_cv_lib_gen_pathfind=no
15284 rm -f core conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15286 LIBS=$ac_check_lib_save_LIBS
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
15289 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
15290 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
15291 cat >>confdefs.h <<_ACEOF
15292 #define HAVE_LIBGEN 1
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
15300 $as_echo_n "checking for gettext in -lintl... " >&6; }
15301 if ${ac_cv_lib_intl_gettext+:} false; then :
15302 $as_echo_n "(cached) " >&6
15304 ac_check_lib_save_LIBS=$LIBS
15305 LIBS="-lintl $LIBS"
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15309 /* Override any GCC internal prototype to avoid an error.
15310 Use char because int might match the return type of a GCC
15311 builtin and then its argument prototype would still apply. */
15324 if ac_fn_c_try_link "$LINENO"; then :
15325 ac_cv_lib_intl_gettext=yes
15327 ac_cv_lib_intl_gettext=no
15329 rm -f core conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15331 LIBS=$ac_check_lib_save_LIBS
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
15334 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
15335 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_LIBINTL 1
15340 LIBS="-lintl $LIBS"
15344 for ac_func in vprintf
15346 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15347 if test "x$ac_cv_func_vprintf" = xyes; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_VPRINTF 1
15352 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15353 if test "x$ac_cv_func__doprnt" = xyes; then :
15355 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15363 for ac_header in vfork.h
15365 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_vfork_h" = xyes; then :
15367 cat >>confdefs.h <<_ACEOF
15368 #define HAVE_VFORK_H 1
15375 for ac_func in fork vfork
15377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15380 cat >>confdefs.h <<_ACEOF
15381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15387 if test "x$ac_cv_func_fork" = xyes; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15389 $as_echo_n "checking for working fork... " >&6; }
15390 if ${ac_cv_func_fork_works+:} false; then :
15391 $as_echo_n "(cached) " >&6
15393 if test "$cross_compiling" = yes; then :
15394 ac_cv_func_fork_works=cross
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 $ac_includes_default
15403 /* By Ruediger Kuhlmann. */
15404 return fork () < 0;
15410 if ac_fn_c_try_run "$LINENO"; then :
15411 ac_cv_func_fork_works=yes
15413 ac_cv_func_fork_works=no
15415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15416 conftest.$ac_objext conftest.beam conftest.$ac_ext
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15421 $as_echo "$ac_cv_func_fork_works" >&6; }
15424 ac_cv_func_fork_works=$ac_cv_func_fork
15426 if test "x$ac_cv_func_fork_works" = xcross; then
15428 *-*-amigaos* | *-*-msdosdjgpp*)
15429 # Override, as these systems have only a dummy fork() stub
15430 ac_cv_func_fork_works=no
15433 ac_cv_func_fork_works=yes
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15437 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15439 ac_cv_func_vfork_works=$ac_cv_func_vfork
15440 if test "x$ac_cv_func_vfork" = xyes; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15442 $as_echo_n "checking for working vfork... " >&6; }
15443 if ${ac_cv_func_vfork_works+:} false; then :
15444 $as_echo_n "(cached) " >&6
15446 if test "$cross_compiling" = yes; then :
15447 ac_cv_func_vfork_works=cross
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 /* Thanks to Paul Eggert for this test. */
15452 $ac_includes_default
15453 #include <sys/wait.h>
15454 #ifdef HAVE_VFORK_H
15455 # include <vfork.h>
15457 /* On some sparc systems, changes by the child to local and incoming
15458 argument registers are propagated back to the parent. The compiler
15459 is told about this with #include <vfork.h>, but some compilers
15460 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15461 static variable whose address is put into a register that is
15462 clobbered by the vfork. */
15465 sparc_address_test (int arg)
15467 sparc_address_test (arg) int arg;
15470 static pid_t child;
15488 pid_t parent = getpid ();
15491 sparc_address_test (0);
15496 /* Here is another test for sparc vfork register problems. This
15497 test uses lots of local variables, at least as many local
15498 variables as main has allocated so far including compiler
15499 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15500 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15501 reuse the register of parent for one of the local variables,
15502 since it will think that parent can't possibly be used any more
15503 in this routine. Assigning to the local variable will thus
15504 munge parent in the parent process. */
15506 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15507 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15508 /* Convince the compiler that p..p7 are live; otherwise, it might
15509 use the same hardware register for all 8 local variables. */
15510 if (p != p1 || p != p2 || p != p3 || p != p4
15511 || p != p5 || p != p6 || p != p7)
15514 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15515 from child file descriptors. If the child closes a descriptor
15516 before it execs or exits, this munges the parent's descriptor
15517 as well. Test for this by closing stdout in the child. */
15518 _exit(close(fileno(stdout)) != 0);
15523 while (wait(&status) != child)
15526 /* Was there some problem with vforking? */
15529 /* Did the child fail? (This shouldn't happen.) */
15532 /* Did the vfork/compiler bug occur? */
15533 || parent != getpid()
15535 /* Did the file descriptor bug occur? */
15536 || fstat(fileno(stdout), &st) != 0
15541 if ac_fn_c_try_run "$LINENO"; then :
15542 ac_cv_func_vfork_works=yes
15544 ac_cv_func_vfork_works=no
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15547 conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15552 $as_echo "$ac_cv_func_vfork_works" >&6; }
15555 if test "x$ac_cv_func_fork_works" = xcross; then
15556 ac_cv_func_vfork_works=$ac_cv_func_vfork
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15558 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15561 if test "x$ac_cv_func_vfork_works" = xyes; then
15563 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15567 $as_echo "#define vfork fork" >>confdefs.h
15570 if test "x$ac_cv_func_fork_works" = xyes; then
15572 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15576 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
15577 strrchr strsignal fchmod fstat chmod
15579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15582 cat >>confdefs.h <<_ACEOF
15583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15590 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15591 if ${ac_cv_path_SED+:} false; then :
15592 $as_echo_n "(cached) " >&6
15594 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15595 for ac_i in 1 2 3 4 5 6 7; do
15596 ac_script="$ac_script$as_nl$ac_script"
15598 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15599 { ac_script=; unset ac_script;}
15600 if test -z "$SED"; then
15601 ac_path_SED_found=false
15602 # Loop through the user's path and test for each of PROGNAME-LIST
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15607 test -z "$as_dir" && as_dir=.
15608 for ac_prog in sed gsed; do
15609 for ac_exec_ext in '' $ac_executable_extensions; do
15610 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15611 as_fn_executable_p "$ac_path_SED" || continue
15612 # Check for GNU ac_path_SED and select it if it is found.
15613 # Check for GNU $ac_path_SED
15614 case `"$ac_path_SED" --version 2>&1` in
15616 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15619 $as_echo_n 0123456789 >"conftest.in"
15622 cat "conftest.in" "conftest.in" >"conftest.tmp"
15623 mv "conftest.tmp" "conftest.in"
15624 cp "conftest.in" "conftest.nl"
15625 $as_echo '' >> "conftest.nl"
15626 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15628 as_fn_arith $ac_count + 1 && ac_count=$as_val
15629 if test $ac_count -gt ${ac_path_SED_max-0}; then
15630 # Best one so far, save it but keep looking for a better one
15631 ac_cv_path_SED="$ac_path_SED"
15632 ac_path_SED_max=$ac_count
15634 # 10*(2^10) chars as input seems more than enough
15635 test $ac_count -gt 10 && break
15637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15640 $ac_path_SED_found && break 3
15645 if test -z "$ac_cv_path_SED"; then
15646 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15649 ac_cv_path_SED=$SED
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15654 $as_echo "$ac_cv_path_SED" >&6; }
15655 SED="$ac_cv_path_SED"
15660 POSIX_SHELL=`which bash`
15661 test -x "$POSIX_SHELL" && break
15662 POSIX_SHELL=`which dash`
15663 test -x "$POSIX_SHELL" && break
15664 POSIX_SHELL=/usr/xpg4/bin/sh
15665 test -x "$POSIX_SHELL" && break
15666 POSIX_SHELL=`/bin/sh -c '
15668 if ! true ; then exit 1 ; fi
15670 test -x "$POSIX_SHELL" && break
15671 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
15674 cat >>confdefs.h <<_ACEOF
15675 #define POSIX_SHELL "${POSIX_SHELL}"
15682 LIBOPTS_BUILD_BLOCKED=true
15685 NEED_LIBOPTS_DIR=''
15687 # Check whether --enable-local-libopts was given.
15688 if test "${enable_local_libopts+set}" = set; then :
15689 enableval=$enable_local_libopts;
15690 if test x$enableval = xyes ; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
15692 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
15693 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15694 NEED_LIBOPTS_DIR=true
15695 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15700 # Check whether --enable-libopts-install was given.
15701 if test "${enable_libopts_install+set}" = set; then :
15702 enableval=$enable_libopts_install;
15705 if test "X${enable_libopts_install}" = Xyes; then
15706 INSTALL_LIBOPTS_TRUE=
15707 INSTALL_LIBOPTS_FALSE='#'
15709 INSTALL_LIBOPTS_TRUE='#'
15710 INSTALL_LIBOPTS_FALSE=
15714 if test -z "${NEED_LIBOPTS_DIR}" ; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
15716 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
15718 # Check whether --with-autoopts-config was given.
15719 if test "${with_autoopts_config+set}" = set; then :
15720 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
15723 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
15724 if ${lo_cv_with_autoopts_config+:} false; then :
15725 $as_echo_n "(cached) " >&6
15727 if autoopts-config --help 2>/dev/null 1>&2
15728 then lo_cv_with_autoopts_config=autoopts-config
15729 elif libopts-config --help 2>/dev/null 1>&2
15730 then lo_cv_with_autoopts_config=libopts-config
15731 else lo_cv_with_autoopts_config=no ; fi
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
15734 $as_echo "$lo_cv_with_autoopts_config" >&6; }
15737 # end of AC_ARG_WITH
15739 if ${lo_cv_test_autoopts+:} false; then :
15740 $as_echo_n "(cached) " >&6
15743 if test -z "${lo_cv_with_autoopts_config}" \
15744 -o X"${lo_cv_with_autoopts_config}" = Xno
15746 if autoopts-config --help 2>/dev/null 1>&2
15747 then lo_cv_with_autoopts_config=autoopts-config
15748 elif libopts-config --help 2>/dev/null 1>&2
15749 then lo_cv_with_autoopts_config=libopts-config
15750 else lo_cv_with_autoopts_config=false ; fi
15752 lo_cv_test_autoopts=`
15753 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
15754 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
15755 then lo_cv_test_autoopts=no ; fi
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
15760 $as_echo "${lo_cv_test_autoopts}" >&6; }
15762 if test "X${lo_cv_test_autoopts}" != Xno
15764 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
15765 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
15767 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15768 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15769 NEED_LIBOPTS_DIR=true
15771 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
15772 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
15773 NEED_LIBOPTS_DIR=''
15775 if test -n "${NEED_LIBOPTS_DIR}"; then
15777 NEED_LIBOPTS_FALSE='#'
15779 NEED_LIBOPTS_TRUE='#'
15780 NEED_LIBOPTS_FALSE=
15785 LIBOPTS_DIR=sntp/libopts
15788 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
15790 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
15795 ntp_pkgconfig_min_version='0.15.0'
15796 if test -n "$ac_tool_prefix"; then
15797 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15798 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15800 $as_echo_n "checking for $ac_word... " >&6; }
15801 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15802 $as_echo_n "(cached) " >&6
15804 case $PKG_CONFIG in
15806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810 for as_dir in $PATH
15813 test -z "$as_dir" && as_dir=.
15814 for ac_exec_ext in '' $ac_executable_extensions; do
15815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15828 if test -n "$PKG_CONFIG"; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15830 $as_echo "$PKG_CONFIG" >&6; }
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833 $as_echo "no" >&6; }
15838 if test -z "$ac_cv_path_PKG_CONFIG"; then
15839 ac_pt_PKG_CONFIG=$PKG_CONFIG
15840 # Extract the first word of "pkg-config", so it can be a program name with args.
15841 set dummy pkg-config; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15843 $as_echo_n "checking for $ac_word... " >&6; }
15844 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15845 $as_echo_n "(cached) " >&6
15847 case $ac_pt_PKG_CONFIG in
15849 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15853 for as_dir in $PATH
15856 test -z "$as_dir" && as_dir=.
15857 for ac_exec_ext in '' $ac_executable_extensions; do
15858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15859 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15870 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15871 if test -n "$ac_pt_PKG_CONFIG"; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15873 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 $as_echo "no" >&6; }
15879 if test "x$ac_pt_PKG_CONFIG" = x; then
15882 case $cross_compiling:$ac_tool_warned in
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15886 ac_tool_warned=yes ;;
15888 PKG_CONFIG=$ac_pt_PKG_CONFIG
15891 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15894 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
15895 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
15897 case "$PKG_CONFIG" in
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
15900 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
15901 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15903 $as_echo "yes" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15915 # Check whether --enable-local-libevent was given.
15916 if test "${enable_local_libevent+set}" = set; then :
15917 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
15919 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
15927 ntp_libevent_min_version=2
15928 ntp_libevent_tearoff=sntp/libevent
15934 case "$ntp_use_local_libevent" in
15937 *) # If we have (a good enough) pkg-config, see if it can find libevent
15938 case "$PKG_CONFIG" in
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
15941 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
15942 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
15944 ntp_use_local_libevent=no
15945 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
15946 case "$ntp_libevent_version" in
15948 *) ntp_libevent_version='(unknown)' ;;
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
15951 $as_echo "yes, version $ntp_libevent_version" >&6; }
15952 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15953 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
15954 # HMS: I hope the following is accurate.
15955 # We don't need -levent, we only need -levent_core.
15956 # While we could grab only the -L stuff, there *might* be
15957 # other flags there we want. Originally we just removed -levent
15958 # but then somebody decided to install -levent-2.0
15959 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
15960 # So now we dance...
15962 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
15967 *) case "$LDADD_LIBEVENT" in
15968 '') LDADD_LIBEVENT="$i" ;;
15969 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
15974 case "$LIBISC_PTHREADS_NOTHREADS" in
15976 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
15978 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
15980 ntp_use_local_libevent=yes
15981 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
15983 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 $as_echo "no" >&6; }
15989 ntp_use_local_libevent=yes
15995 case "$ntp_use_local_libevent" in
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
15998 $as_echo "$as_me: Using libevent tearoff" >&6;}
15999 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
16000 case "$LIBISC_PTHREADS_NOTHREADS" in
16002 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16005 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16010 if test "x$ntp_use_local_libevent" = "xyes"; then
16011 BUILD_LIBEVENT_TRUE=
16012 BUILD_LIBEVENT_FALSE='#'
16014 BUILD_LIBEVENT_TRUE='#'
16015 BUILD_LIBEVENT_FALSE=
16023 # Expose a cross-compilation indicator to makefiles
16024 if test $build != $host; then
16025 NTP_CROSSCOMPILE_TRUE=
16026 NTP_CROSSCOMPILE_FALSE='#'
16028 NTP_CROSSCOMPILE_TRUE='#'
16029 NTP_CROSSCOMPILE_FALSE=
16034 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16035 if test "x$ac_cv_type_size_t" = xyes; then :
16039 cat >>confdefs.h <<_ACEOF
16040 #define size_t unsigned int
16046 # Check whether --enable-c99-snprintf was given.
16047 if test "${enable_c99_snprintf+set}" = set; then :
16048 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
16050 force_c99_snprintf=no
16054 case "$force_c99_snprintf" in
16056 hw_force_rpl_snprintf=yes
16057 hw_force_rpl_vsnprintf=yes
16065 for ac_header in $ac_header_list
16067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16071 cat >>confdefs.h <<_ACEOF
16072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16086 $as_echo_n "checking for unsigned long long int... " >&6; }
16087 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16088 $as_echo_n "(cached) " >&6
16090 ac_cv_type_unsigned_long_long_int=yes
16091 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16095 /* For now, do not test the preprocessor; as of 2007 there are too many
16096 implementations with broken preprocessors. Perhaps this can
16097 be revisited in 2012. In the meantime, code should not expect
16098 #if to work with literals wider than 32 bits. */
16099 /* Test literals. */
16100 long long int ll = 9223372036854775807ll;
16101 long long int nll = -9223372036854775807LL;
16102 unsigned long long int ull = 18446744073709551615ULL;
16103 /* Test constant expressions. */
16104 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16106 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16112 /* Test availability of runtime routines for shift and division. */
16113 long long int llmax = 9223372036854775807ll;
16114 unsigned long long int ullmax = 18446744073709551615ull;
16115 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16116 | (llmax / ll) | (llmax % ll)
16117 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16118 | (ullmax / ull) | (ullmax % ull));
16124 if ac_fn_c_try_link "$LINENO"; then :
16127 ac_cv_type_unsigned_long_long_int=no
16129 rm -f core conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16134 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16135 if test $ac_cv_type_unsigned_long_long_int = yes; then
16137 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16142 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16143 if test "x$ac_cv_func_vsnprintf" = xyes; then :
16144 hw_cv_func_vsnprintf=yes
16146 hw_cv_func_vsnprintf=no
16149 if test "$hw_cv_func_vsnprintf" = yes; then :
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
16151 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
16152 if ${hw_cv_func_vsnprintf_c99+:} false; then :
16153 $as_echo_n "(cached) " >&6
16155 if test "$cross_compiling" = yes; then :
16156 hw_cv_func_vsnprintf_c99=no
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16161 #include <stdarg.h>
16164 static int testprintf(char *buf, size_t size, const char *format, ...)
16168 va_start(ap, format);
16169 result = vsnprintf(buf, size, format, ap);
16177 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16178 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16179 buf[0] != 'T' || buf[3] != '\0')
16185 if ac_fn_c_try_run "$LINENO"; then :
16186 hw_cv_func_vsnprintf_c99=yes
16188 hw_cv_func_vsnprintf_c99=no
16190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16191 conftest.$ac_objext conftest.beam conftest.$ac_ext
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
16196 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
16198 hw_cv_func_vsnprintf_c99=no
16201 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
16204 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
16205 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
16206 hw_use_rpl_vsnprintf=yes
16208 hw_use_rpl_vsnprintf=no
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
16211 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
16212 if test "$hw_use_rpl_vsnprintf" = yes; then :
16214 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
16216 if test ${hw_nodef_vsnprintf=no} = no; then :
16218 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
16221 for ac_header in inttypes.h locale.h stddef.h stdint.h
16223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16224 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16226 cat >>confdefs.h <<_ACEOF
16227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16234 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16236 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
16244 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16246 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
16248 cat >>confdefs.h <<_ACEOF
16249 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16257 $as_echo_n "checking for long double... " >&6; }
16258 if ${ac_cv_type_long_double+:} false; then :
16259 $as_echo_n "(cached) " >&6
16261 if test "$GCC" = yes; then
16262 ac_cv_type_long_double=yes
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 /* The Stardent Vistra knows sizeof (long double), but does
16268 long double foo = 0.0L;
16272 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16273 sizeof (double) <= sizeof (long double))];
16274 test_array [0] = 0;
16275 return test_array [0];
16281 if ac_fn_c_try_compile "$LINENO"; then :
16282 ac_cv_type_long_double=yes
16284 ac_cv_type_long_double=no
16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16290 $as_echo "$ac_cv_type_long_double" >&6; }
16291 if test $ac_cv_type_long_double = yes; then
16293 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16300 $as_echo_n "checking for long long int... " >&6; }
16301 if ${ac_cv_type_long_long_int+:} false; then :
16302 $as_echo_n "(cached) " >&6
16304 ac_cv_type_long_long_int=yes
16305 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16306 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16307 if test $ac_cv_type_long_long_int = yes; then
16308 if test "$cross_compiling" = yes; then :
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 #include <limits.h>
16316 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16317 # define LLONG_MAX (HALF - 1 + HALF)
16322 long long int n = 1;
16326 long long int m = n << i;
16329 if (LLONG_MAX / 2 < m)
16337 if ac_fn_c_try_run "$LINENO"; then :
16340 ac_cv_type_long_long_int=no
16342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16343 conftest.$ac_objext conftest.beam conftest.$ac_ext
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16350 $as_echo "$ac_cv_type_long_long_int" >&6; }
16351 if test $ac_cv_type_long_long_int = yes; then
16353 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16359 $as_echo_n "checking for unsigned long long int... " >&6; }
16360 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16361 $as_echo_n "(cached) " >&6
16363 ac_cv_type_unsigned_long_long_int=yes
16364 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16368 /* For now, do not test the preprocessor; as of 2007 there are too many
16369 implementations with broken preprocessors. Perhaps this can
16370 be revisited in 2012. In the meantime, code should not expect
16371 #if to work with literals wider than 32 bits. */
16372 /* Test literals. */
16373 long long int ll = 9223372036854775807ll;
16374 long long int nll = -9223372036854775807LL;
16375 unsigned long long int ull = 18446744073709551615ULL;
16376 /* Test constant expressions. */
16377 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16379 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16385 /* Test availability of runtime routines for shift and division. */
16386 long long int llmax = 9223372036854775807ll;
16387 unsigned long long int ullmax = 18446744073709551615ull;
16388 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16389 | (llmax / ll) | (llmax % ll)
16390 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16391 | (ullmax / ull) | (ullmax % ull));
16397 if ac_fn_c_try_link "$LINENO"; then :
16400 ac_cv_type_unsigned_long_long_int=no
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16407 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16408 if test $ac_cv_type_unsigned_long_long_int = yes; then
16410 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16414 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16415 if test "x$ac_cv_type_size_t" = xyes; then :
16419 cat >>confdefs.h <<_ACEOF
16420 #define size_t unsigned int
16427 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16428 if test "x$ac_cv_type_intmax_t" = xyes; then :
16430 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16433 test $ac_cv_type_long_long_int = yes \
16434 && ac_type='long long int' \
16435 || ac_type='long int'
16437 cat >>confdefs.h <<_ACEOF
16438 #define intmax_t $ac_type
16446 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16447 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16449 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16452 test $ac_cv_type_unsigned_long_long_int = yes \
16453 && ac_type='unsigned long long int' \
16454 || ac_type='unsigned long int'
16456 cat >>confdefs.h <<_ACEOF
16457 #define uintmax_t $ac_type
16464 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16465 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16467 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16470 for ac_type in 'unsigned int' 'unsigned long int' \
16471 'unsigned long long int'; do
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 $ac_includes_default
16478 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16479 test_array [0] = 0;
16480 return test_array [0];
16486 if ac_fn_c_try_compile "$LINENO"; then :
16488 cat >>confdefs.h <<_ACEOF
16489 #define uintptr_t $ac_type
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 test -z "$ac_type" && break
16500 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16501 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16503 cat >>confdefs.h <<_ACEOF
16504 #define HAVE_PTRDIFF_T 1
16510 for ac_func in localeconv
16512 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
16513 if test "x$ac_cv_func_localeconv" = xyes; then :
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_LOCALECONV 1
16522 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16524 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16525 if ${ac_cv_c_const+:} false; then :
16526 $as_echo_n "(cached) " >&6
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16535 #ifndef __cplusplus
16536 /* Ultrix mips cc rejects this sort of thing. */
16537 typedef int charset[2];
16538 const charset cs = { 0, 0 };
16539 /* SunOS 4.1.1 cc rejects this. */
16540 char const *const *pcpcc;
16542 /* NEC SVR4.0.2 mips cc rejects this. */
16543 struct point {int x, y;};
16544 static struct point const zero = {0,0};
16545 /* AIX XL C 1.02.0.0 rejects this.
16546 It does not let you subtract one const X* pointer from another in
16547 an arm of an if-expression whose if-part is not a constant
16549 const char *g = "string";
16550 pcpcc = &g + (g ? g-g : 0);
16551 /* HPUX 7.0 cc rejects these. */
16553 ppc = (char**) pcpcc;
16554 pcpcc = (char const *const *) ppc;
16555 { /* SCO 3.2v4 cc rejects this sort of thing. */
16558 char const *s = 0 ? (char *) 0 : (char const *) 0;
16563 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16564 int x[] = {25, 17};
16565 const int *foo = &x[0];
16568 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16569 typedef const int *iptr;
16573 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16574 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16575 struct s { int j; const int *ap[3]; } bx;
16576 struct s *b = &bx; b->j = 5;
16578 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16579 const int foo = 10;
16580 if (!foo) return 0;
16582 return !cs[0] && !zero.x;
16589 if ac_fn_c_try_compile "$LINENO"; then :
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16597 $as_echo "$ac_cv_c_const" >&6; }
16598 if test $ac_cv_c_const = no; then
16600 $as_echo "#define const /**/" >>confdefs.h
16607 case " $LIBOBJS " in
16608 *" snprintf.$ac_objext "* ) ;;
16609 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16613 _hw_cv_func_xprintf_replace_done=yes
16619 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16620 if test "x$ac_cv_func_snprintf" = xyes; then :
16621 hw_cv_func_snprintf=yes
16623 hw_cv_func_snprintf=no
16626 if test "$hw_cv_func_snprintf" = yes; then :
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
16628 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
16629 if ${hw_cv_func_snprintf_c99+:} false; then :
16630 $as_echo_n "(cached) " >&6
16632 if test "$cross_compiling" = yes; then :
16633 hw_cv_func_snprintf_c99=no
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16642 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16643 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16644 buf[0] != 'T' || buf[3] != '\0')
16650 if ac_fn_c_try_run "$LINENO"; then :
16651 hw_cv_func_snprintf_c99=yes
16653 hw_cv_func_snprintf_c99=no
16655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16656 conftest.$ac_objext conftest.beam conftest.$ac_ext
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
16661 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
16663 hw_cv_func_snprintf_c99=no
16666 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
16669 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
16670 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
16671 hw_use_rpl_snprintf=yes
16673 hw_use_rpl_snprintf=no
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
16676 $as_echo "$hw_use_rpl_snprintf" >&6; }
16677 if test "$hw_use_rpl_snprintf" = yes; then :
16679 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
16681 if test ${hw_nodef_snprintf=no} = no; then :
16683 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
16687 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16689 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16690 if ${ac_cv_c_const+:} false; then :
16691 $as_echo_n "(cached) " >&6
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16700 #ifndef __cplusplus
16701 /* Ultrix mips cc rejects this sort of thing. */
16702 typedef int charset[2];
16703 const charset cs = { 0, 0 };
16704 /* SunOS 4.1.1 cc rejects this. */
16705 char const *const *pcpcc;
16707 /* NEC SVR4.0.2 mips cc rejects this. */
16708 struct point {int x, y;};
16709 static struct point const zero = {0,0};
16710 /* AIX XL C 1.02.0.0 rejects this.
16711 It does not let you subtract one const X* pointer from another in
16712 an arm of an if-expression whose if-part is not a constant
16714 const char *g = "string";
16715 pcpcc = &g + (g ? g-g : 0);
16716 /* HPUX 7.0 cc rejects these. */
16718 ppc = (char**) pcpcc;
16719 pcpcc = (char const *const *) ppc;
16720 { /* SCO 3.2v4 cc rejects this sort of thing. */
16723 char const *s = 0 ? (char *) 0 : (char const *) 0;
16728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16729 int x[] = {25, 17};
16730 const int *foo = &x[0];
16733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16734 typedef const int *iptr;
16738 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16740 struct s { int j; const int *ap[3]; } bx;
16741 struct s *b = &bx; b->j = 5;
16743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16744 const int foo = 10;
16745 if (!foo) return 0;
16747 return !cs[0] && !zero.x;
16754 if ac_fn_c_try_compile "$LINENO"; then :
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16762 $as_echo "$ac_cv_c_const" >&6; }
16763 if test $ac_cv_c_const = no; then
16765 $as_echo "#define const /**/" >>confdefs.h
16772 case " $LIBOBJS " in
16773 *" snprintf.$ac_objext "* ) ;;
16774 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16778 _hw_cv_func_xprintf_replace_done=yes
16787 # HMS: Save $LIBS and empty it.
16788 # any LIBS we add here should go in to LDADD_LIBNTP
16795 # [Bug 2332] because we need to know if we are using GNU ld...
16798 # Check whether --with-gnu-ld was given.
16799 if test "${with_gnu_ld+set}" = set; then :
16800 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16806 if test yes = "$GCC"; then
16807 # Check if gcc -print-prog-name=ld gives a path.
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16809 $as_echo_n "checking for ld used by $CC... " >&6; }
16812 # gcc leaves a trailing carriage return, which upsets mingw
16813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16818 # Accept absolute paths.
16820 re_direlt='/[^/][^/]*/\.\./'
16821 # Canonicalize the pathname of ld
16822 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16823 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16824 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16826 test -z "$LD" && LD=$ac_prog
16829 # If it fails, then pretend we aren't using GCC.
16833 # If it is relative, then search for the first ld in PATH.
16834 with_gnu_ld=unknown
16837 elif test yes = "$with_gnu_ld"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16839 $as_echo_n "checking for GNU ld... " >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16842 $as_echo_n "checking for non-GNU ld... " >&6; }
16844 if ${lt_cv_path_LD+:} false; then :
16845 $as_echo_n "(cached) " >&6
16847 if test -z "$LD"; then
16848 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16849 for ac_dir in $PATH; do
16851 test -z "$ac_dir" && ac_dir=.
16852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853 lt_cv_path_LD=$ac_dir/$ac_prog
16854 # Check to see if the program is GNU ld. I'd rather use --version,
16855 # but apparently some variants of GNU ld only accept -v.
16856 # Break only if it was the GNU/non-GNU ld that we prefer.
16857 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16858 *GNU* | *'with BFD'*)
16859 test no != "$with_gnu_ld" && break
16862 test yes != "$with_gnu_ld" && break
16869 lt_cv_path_LD=$LD # Let the user override the test with a path.
16874 if test -n "$LD"; then
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16876 $as_echo "$LD" >&6; }
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16881 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16883 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16884 if ${lt_cv_prog_gnu_ld+:} false; then :
16885 $as_echo_n "(cached) " >&6
16887 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890 lt_cv_prog_gnu_ld=yes
16893 lt_cv_prog_gnu_ld=no
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16898 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16899 with_gnu_ld=$lt_cv_prog_gnu_ld
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
16909 $as_echo_n "checking for directory path separator... " >&6; }
16910 if ${ntp_cv_dir_sep+:} false; then :
16911 $as_echo_n "(cached) " >&6
16914 case "$ntp_cv_dir_sep" in
16917 *djgpp | *mingw32* | *emx*)
16918 ntp_cv_dir_sep="'\\'"
16921 ntp_cv_dir_sep="'/'"
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
16929 $as_echo "$ntp_cv_dir_sep" >&6; }
16931 cat >>confdefs.h <<_ACEOF
16932 #define DIR_SEP $ntp_cv_dir_sep
16937 NTP_ORIG_LIBS="$LIBS"
16939 # Check whether --with-lineeditlibs was given.
16940 if test "${with_lineeditlibs+set}" = set; then :
16941 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
16943 use_lineeditlibs="edit,editline"
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
16948 $as_echo_n "checking line editing libraries... " >&6; }
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
16950 $as_echo "$use_lineeditlibs" >&6; }
16951 case "$use_lineeditlibs" in
16953 ntp_lib_lineedit=no
16956 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
16957 for term_lib in "" termcap curses ncurses; do
16958 case "$term_lib" in
16960 TRY_LIB="-l$lineedit_lib"
16963 TRY_LIB="-l$lineedit_lib -l$term_lib"
16966 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
16968 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16982 return readline ();
16987 if ac_fn_c_try_link "$LINENO"; then :
16988 ntp_lib_lineedit="$TRY_LIB"
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 case "$ntp_lib_lineedit" in
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17000 $as_echo "yes" >&6; }
17003 case "$term_lib" in
17005 # do not try el_gets without a terminal library
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
17009 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17013 /* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 ntp_lib_lineedit="$TRY_LIB"
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
17033 case "$ntp_lib_lineedit" in
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17040 $as_echo "yes" >&6; }
17043 esac # $ntp_lib_lineedit
17046 case "$ntp_lib_lineedit" in
17054 LIBS="$NTP_ORIG_LIBS"
17056 esac # $use_lineeditlibs
17058 case "$ntp_lib_lineedit" in
17060 ntp_lib_lineedit="no"
17065 EDITLINE_LIBS="$ntp_lib_lineedit"
17068 esac # $ntp_lib_lineedit
17070 case "$ntp_lib_lineedit" in
17074 for ac_header in readline.h readline/readline.h histedit.h
17076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17079 cat >>confdefs.h <<_ACEOF
17080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17087 for ac_header in history.h readline/history.h
17089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17092 cat >>confdefs.h <<_ACEOF
17093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17101 case "$ac_cv_header_histedit_h" in
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
17104 $as_echo_n "checking number of arguments to el_init()... " >&6; }
17105 if ${ntp_cv_el_init_args+:} false; then :
17106 $as_echo_n "(cached) " >&6
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17112 #include <histedit.h>
17118 el_init("conftest", stdin, stdout, stderr);
17125 if ac_fn_c_try_compile "$LINENO"; then :
17126 ntp_cv_el_init_args=4
17128 ntp_cv_el_init_args=3
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
17135 $as_echo "$ntp_cv_el_init_args" >&6; }
17137 cat >>confdefs.h <<_ACEOF
17138 #define EL_INIT_ARGS $ntp_cv_el_init_args
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17144 $as_echo_n "checking whether readline supports history... " >&6; }
17146 ntp_lib_lineedit_history="no"
17148 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17152 /* Override any GCC internal prototype to avoid an error.
17153 Use char because int might match the return type of a GCC
17154 builtin and then its argument prototype would still apply. */
17158 char add_history ();
17162 return add_history ();
17167 if ac_fn_c_try_link "$LINENO"; then :
17168 ntp_lib_lineedit_history="yes"
17170 rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
17175 $as_echo "$ntp_lib_lineedit_history" >&6; }
17177 case "$ntp_lib_lineedit_history" in
17180 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17183 esac # $ntp_lib_lineedit
17184 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
17185 { ORIG_LIBS=; unset ORIG_LIBS;}
17186 { TRY_LIB=; unset TRY_LIB;}
17187 { use_lineeditlibs=; unset use_lineeditlibs;}
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
17197 $as_echo_n "checking for library containing cos... " >&6; }
17198 if ${ac_cv_search_cos+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 ac_func_search_save_LIBS=$LIBS
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17220 for ac_lib in '' m; do
17221 if test -z "$ac_lib"; then
17222 ac_res="none required"
17225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17227 if ac_fn_c_try_link "$LINENO"; then :
17228 ac_cv_search_cos=$ac_res
17230 rm -f core conftest.err conftest.$ac_objext \
17232 if ${ac_cv_search_cos+:} false; then :
17236 if ${ac_cv_search_cos+:} false; then :
17239 ac_cv_search_cos=no
17241 rm conftest.$ac_ext
17242 LIBS=$ac_func_search_save_LIBS
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
17245 $as_echo "$ac_cv_search_cos" >&6; }
17246 ac_res=$ac_cv_search_cos
17247 if test "$ac_res" != no; then :
17248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17256 { _libs=; unset _libs;}
17259 for ac_header in vfork.h
17261 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17262 if test "x$ac_cv_header_vfork_h" = xyes; then :
17263 cat >>confdefs.h <<_ACEOF
17264 #define HAVE_VFORK_H 1
17271 for ac_func in fork vfork
17273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17275 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17276 cat >>confdefs.h <<_ACEOF
17277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17283 if test "x$ac_cv_func_fork" = xyes; then
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17285 $as_echo_n "checking for working fork... " >&6; }
17286 if ${ac_cv_func_fork_works+:} false; then :
17287 $as_echo_n "(cached) " >&6
17289 if test "$cross_compiling" = yes; then :
17290 ac_cv_func_fork_works=cross
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 $ac_includes_default
17299 /* By Ruediger Kuhlmann. */
17300 return fork () < 0;
17306 if ac_fn_c_try_run "$LINENO"; then :
17307 ac_cv_func_fork_works=yes
17309 ac_cv_func_fork_works=no
17311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17312 conftest.$ac_objext conftest.beam conftest.$ac_ext
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17317 $as_echo "$ac_cv_func_fork_works" >&6; }
17320 ac_cv_func_fork_works=$ac_cv_func_fork
17322 if test "x$ac_cv_func_fork_works" = xcross; then
17324 *-*-amigaos* | *-*-msdosdjgpp*)
17325 # Override, as these systems have only a dummy fork() stub
17326 ac_cv_func_fork_works=no
17329 ac_cv_func_fork_works=yes
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17333 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17335 ac_cv_func_vfork_works=$ac_cv_func_vfork
17336 if test "x$ac_cv_func_vfork" = xyes; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17338 $as_echo_n "checking for working vfork... " >&6; }
17339 if ${ac_cv_func_vfork_works+:} false; then :
17340 $as_echo_n "(cached) " >&6
17342 if test "$cross_compiling" = yes; then :
17343 ac_cv_func_vfork_works=cross
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 /* Thanks to Paul Eggert for this test. */
17348 $ac_includes_default
17349 #include <sys/wait.h>
17350 #ifdef HAVE_VFORK_H
17351 # include <vfork.h>
17353 /* On some sparc systems, changes by the child to local and incoming
17354 argument registers are propagated back to the parent. The compiler
17355 is told about this with #include <vfork.h>, but some compilers
17356 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17357 static variable whose address is put into a register that is
17358 clobbered by the vfork. */
17361 sparc_address_test (int arg)
17363 sparc_address_test (arg) int arg;
17366 static pid_t child;
17384 pid_t parent = getpid ();
17387 sparc_address_test (0);
17392 /* Here is another test for sparc vfork register problems. This
17393 test uses lots of local variables, at least as many local
17394 variables as main has allocated so far including compiler
17395 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17396 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17397 reuse the register of parent for one of the local variables,
17398 since it will think that parent can't possibly be used any more
17399 in this routine. Assigning to the local variable will thus
17400 munge parent in the parent process. */
17402 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17403 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17404 /* Convince the compiler that p..p7 are live; otherwise, it might
17405 use the same hardware register for all 8 local variables. */
17406 if (p != p1 || p != p2 || p != p3 || p != p4
17407 || p != p5 || p != p6 || p != p7)
17410 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17411 from child file descriptors. If the child closes a descriptor
17412 before it execs or exits, this munges the parent's descriptor
17413 as well. Test for this by closing stdout in the child. */
17414 _exit(close(fileno(stdout)) != 0);
17419 while (wait(&status) != child)
17422 /* Was there some problem with vforking? */
17425 /* Did the child fail? (This shouldn't happen.) */
17428 /* Did the vfork/compiler bug occur? */
17429 || parent != getpid()
17431 /* Did the file descriptor bug occur? */
17432 || fstat(fileno(stdout), &st) != 0
17437 if ac_fn_c_try_run "$LINENO"; then :
17438 ac_cv_func_vfork_works=yes
17440 ac_cv_func_vfork_works=no
17442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17443 conftest.$ac_objext conftest.beam conftest.$ac_ext
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17448 $as_echo "$ac_cv_func_vfork_works" >&6; }
17451 if test "x$ac_cv_func_fork_works" = xcross; then
17452 ac_cv_func_vfork_works=$ac_cv_func_vfork
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17454 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17457 if test "x$ac_cv_func_vfork_works" = xyes; then
17459 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17463 $as_echo "#define vfork fork" >>confdefs.h
17466 if test "x$ac_cv_func_fork_works" = xyes; then
17468 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17473 # for constant arguments. Useless!
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17475 $as_echo_n "checking for working alloca.h... " >&6; }
17476 if ${ac_cv_working_alloca_h+:} false; then :
17477 $as_echo_n "(cached) " >&6
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 #include <alloca.h>
17485 char *p = (char *) alloca (2 * sizeof (int));
17491 if ac_fn_c_try_link "$LINENO"; then :
17492 ac_cv_working_alloca_h=yes
17494 ac_cv_working_alloca_h=no
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17500 $as_echo "$ac_cv_working_alloca_h" >&6; }
17501 if test $ac_cv_working_alloca_h = yes; then
17503 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17508 $as_echo_n "checking for alloca... " >&6; }
17509 if ${ac_cv_func_alloca_works+:} false; then :
17510 $as_echo_n "(cached) " >&6
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17515 # define alloca __builtin_alloca
17518 # include <malloc.h>
17519 # define alloca _alloca
17521 # ifdef HAVE_ALLOCA_H
17522 # include <alloca.h>
17527 # ifndef alloca /* predefined by HP cc +Olibcalls */
17528 void *alloca (size_t);
17538 char *p = (char *) alloca (1);
17544 if ac_fn_c_try_link "$LINENO"; then :
17545 ac_cv_func_alloca_works=yes
17547 ac_cv_func_alloca_works=no
17549 rm -f core conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17553 $as_echo "$ac_cv_func_alloca_works" >&6; }
17555 if test $ac_cv_func_alloca_works = yes; then
17557 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17560 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17561 # that cause trouble. Some versions do not even contain alloca or
17562 # contain a buggy version. If you still want to use their alloca,
17563 # use ar to extract alloca.o from them instead of compiling alloca.c.
17565 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17567 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17571 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17572 if ${ac_cv_os_cray+:} false; then :
17573 $as_echo_n "(cached) " >&6
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577 #if defined CRAY && ! defined CRAY2
17584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17585 $EGREP "webecray" >/dev/null 2>&1; then :
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17594 $as_echo "$ac_cv_os_cray" >&6; }
17595 if test $ac_cv_os_cray = yes; then
17596 for ac_func in _getb67 GETB67 getb67; do
17597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17601 cat >>confdefs.h <<_ACEOF
17602 #define CRAY_STACKSEG_END $ac_func
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17612 $as_echo_n "checking stack direction for C alloca... " >&6; }
17613 if ${ac_cv_c_stack_direction+:} false; then :
17614 $as_echo_n "(cached) " >&6
17616 if test "$cross_compiling" = yes; then :
17617 ac_cv_c_stack_direction=0
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17621 $ac_includes_default
17623 find_stack_direction (int *addr, int depth)
17625 int dir, dummy = 0;
17628 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17629 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17630 return dir + dummy;
17634 main (int argc, char **argv)
17636 return find_stack_direction (0, argc + !argv + 20) < 0;
17639 if ac_fn_c_try_run "$LINENO"; then :
17640 ac_cv_c_stack_direction=1
17642 ac_cv_c_stack_direction=-1
17644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17645 conftest.$ac_objext conftest.beam conftest.$ac_ext
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17650 $as_echo "$ac_cv_c_stack_direction" >&6; }
17651 cat >>confdefs.h <<_ACEOF
17652 #define STACK_DIRECTION $ac_cv_c_stack_direction
17658 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17659 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17665 cat >>confdefs.h <<_ACEOF
17666 #define HAVE_DECL_STRERROR_R $ac_have_decl
17669 for ac_func in strerror_r
17671 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17672 if test "x$ac_cv_func_strerror_r" = xyes; then :
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_STRERROR_R 1
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17681 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17682 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17683 $as_echo_n "(cached) " >&6
17686 ac_cv_func_strerror_r_char_p=no
17687 if test $ac_cv_have_decl_strerror_r = yes; then
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17690 $ac_includes_default
17696 char x = *strerror_r (0, buf, sizeof buf);
17697 char *p = strerror_r (0, buf, sizeof buf);
17704 if ac_fn_c_try_compile "$LINENO"; then :
17705 ac_cv_func_strerror_r_char_p=yes
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 # strerror_r is not declared. Choose between
17710 # systems that have relatively inaccessible declarations for the
17711 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17712 # former has a strerror_r that returns char*, while the latter
17713 # has a strerror_r that returns `int'.
17714 # This test should segfault on the DEC system.
17715 if test "$cross_compiling" = yes; then :
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17720 $ac_includes_default
17721 extern char *strerror_r ();
17726 char x = *strerror_r (0, buf, sizeof buf);
17727 return ! isalpha (x);
17732 if ac_fn_c_try_run "$LINENO"; then :
17733 ac_cv_func_strerror_r_char_p=yes
17735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17736 conftest.$ac_objext conftest.beam conftest.$ac_ext
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17743 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17744 if test $ac_cv_func_strerror_r_char_p = yes; then
17746 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17751 ac_busted_vpath_in_make=no
17753 *-*-irix6.1*) # 64 bit only
17756 *-*-irix6*) # 6.2 (and later?)
17757 ac_busted_vpath_in_make=yes
17760 ac_busted_vpath_in_make=yes
17763 ac_busted_vpath_in_make=yes
17767 case "$ac_busted_vpath_in_make$srcdir" in
17770 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
17772 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
17780 # Was *-*-aix[[4-9]]*
17781 # XXX only verified thru AIX6. But...
17782 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
17783 # that this support would be in 5.3, removed in 6, and added back.
17785 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
17786 # (returning ENOSYS). I didn't check 4.2. If, in the future,
17787 # IBM pulls its thumbs out long enough to implement clock_settime,
17788 # this conditional will need to change. Maybe use AC_TRY_RUN
17789 # instead to try to set the time to itself and check errno.
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17793 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17794 if ${ac_cv_search_clock_gettime+:} false; then :
17795 $as_echo_n "(cached) " >&6
17797 ac_func_search_save_LIBS=$LIBS
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17807 char clock_gettime ();
17811 return clock_gettime ();
17816 for ac_lib in '' rt; do
17817 if test -z "$ac_lib"; then
17818 ac_res="none required"
17821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17823 if ac_fn_c_try_link "$LINENO"; then :
17824 ac_cv_search_clock_gettime=$ac_res
17826 rm -f core conftest.err conftest.$ac_objext \
17828 if ${ac_cv_search_clock_gettime+:} false; then :
17832 if ${ac_cv_search_clock_gettime+:} false; then :
17835 ac_cv_search_clock_gettime=no
17837 rm conftest.$ac_ext
17838 LIBS=$ac_func_search_save_LIBS
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17841 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17842 ac_res=$ac_cv_search_clock_gettime
17843 if test "$ac_res" != no; then :
17844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17845 case "$ac_cv_search_clock_gettime" in
17846 'none required') ;;
17848 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
17853 for ac_func in clock_getres clock_gettime clock_settime
17855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17858 cat >>confdefs.h <<_ACEOF
17859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17868 for ac_func in getclock stime timegm strlcpy strlcat
17870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17873 cat >>confdefs.h <<_ACEOF
17874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
17885 $as_echo_n "checking for library containing snprintb... " >&6; }
17886 if ${ac_cv_search_snprintb+:} false; then :
17887 $as_echo_n "(cached) " >&6
17889 ac_func_search_save_LIBS=$LIBS
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17903 return snprintb ();
17908 for ac_lib in '' util; do
17909 if test -z "$ac_lib"; then
17910 ac_res="none required"
17913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 ac_cv_search_snprintb=$ac_res
17918 rm -f core conftest.err conftest.$ac_objext \
17920 if ${ac_cv_search_snprintb+:} false; then :
17924 if ${ac_cv_search_snprintb+:} false; then :
17927 ac_cv_search_snprintb=no
17929 rm conftest.$ac_ext
17930 LIBS=$ac_func_search_save_LIBS
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
17933 $as_echo "$ac_cv_search_snprintb" >&6; }
17934 ac_res=$ac_cv_search_snprintb
17935 if test "$ac_res" != no; then :
17936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17937 case "$ac_cv_search_snprintb" in
17938 'none required') ;;
17940 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
17943 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
17949 for ac_header in errno.h sys/socket.h sys/types.h time.h
17951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17954 cat >>confdefs.h <<_ACEOF
17955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17962 for ac_header in net/if.h
17964 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
17965 #ifdef HAVE_SYS_SOCKET_H
17966 # include <sys/socket.h>
17970 if test "x$ac_cv_header_net_if_h" = xyes; then :
17971 cat >>confdefs.h <<_ACEOF
17972 #define HAVE_NET_IF_H 1
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
17982 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
17983 if ${ntp_cv_predecl_mpinfou+:} false; then :
17984 $as_echo_n "(cached) " >&6
17987 np_cv_predecl_mpinfou=no
17988 case "$ac_cv_header_net_if_h" in
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17993 typedef union mpinfou {
17994 struct pdk_mpinfo *pdkptr;
17995 struct mpinfo *pikptr;
17997 #ifdef HAVE_SYS_SOCKET_H
17998 # include <sys/socket.h>
18000 #include <net/if.h>
18012 if ac_fn_c_try_compile "$LINENO"; then :
18014 ntp_cv_predecl_mpinfou=yes
18015 ac_cv_header_net_if_h=yes
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
18025 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
18026 case "$ntp_cv_predecl_mpinfou" in
18028 cat >>confdefs.h <<_ACEOF
18029 #ifndef MPINFOU_PREDECLARED
18030 # define MPINFOU_PREDECLARED
18031 typedef union mpinfou {
18032 struct pdk_mpinfo *pdkptr;
18033 struct mpinfo *pikptr;
18043 for ac_header in linux/if_addr.h
18045 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
18046 #ifdef HAVE_SYS_SOCKET_H
18047 # include <sys/socket.h>
18051 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
18052 cat >>confdefs.h <<_ACEOF
18053 #define HAVE_LINUX_IF_ADDR_H 1
18061 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
18065 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
18067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18070 cat >>confdefs.h <<_ACEOF
18071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18078 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
18079 for ac_header in sys/sysctl.h
18081 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
18082 #if defined HAVE_SYS_PARAM_H
18083 # include <sys/param.h>
18087 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18088 cat >>confdefs.h <<_ACEOF
18089 #define HAVE_SYS_SYSCTL_H 1
18096 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
18098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18099 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18101 cat >>confdefs.h <<_ACEOF
18102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18110 for ac_header in resolv.h
18112 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
18113 #ifdef HAVE_SYS_TYPES_H
18114 # include <sys/types.h>
18116 #ifdef HAVE_NETINET_IN_H
18117 # include <netinet/in.h>
18119 #ifdef HAVE_ARPA_NAMESER_H
18120 # include <arpa/nameser.h>
18124 if test "x$ac_cv_header_resolv_h" = xyes; then :
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_RESOLV_H 1
18134 for ac_header in net/if_var.h
18136 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
18137 #if HAVE_SYS_TYPES_H
18138 # include <sys/types.h>
18140 #ifdef HAVE_SYS_SOCKET_H
18141 # include <sys/socket.h>
18143 #ifdef HAVE_NETINET_IN_H
18144 # include <netinet/in.h>
18146 #ifdef HAVE_NET_IF_H
18147 # include <net/if.h>
18151 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
18152 cat >>confdefs.h <<_ACEOF
18153 #define HAVE_NET_IF_VAR_H 1
18161 for ac_header in netinet/ip.h netinet/in_var.h
18163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18165 #ifdef HAVE_SYS_TYPES_H
18166 # include <sys/types.h>
18168 #ifdef HAVE_SYS_SOCKET_H
18169 # include <sys/socket.h>
18171 #ifdef HAVE_NET_IF_H
18172 # include <net/if.h>
18174 #ifdef HAVE_NETINET_IN_H
18175 # include <netinet/in.h>
18177 #ifdef HAVE_NET_IF_VAR_H
18178 # include <net/if_var.h>
18180 #ifdef HAVE_NETINET_IN_SYSTM_H
18181 # include <netinet/in_systm.h>
18185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18186 cat >>confdefs.h <<_ACEOF
18187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 # HMS: Do we need to check for -lsocket before or after these tests?
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18197 $as_echo_n "checking for library containing inet_pton... " >&6; }
18198 if ${ac_cv_search_inet_pton+:} false; then :
18199 $as_echo_n "(cached) " >&6
18201 ac_func_search_save_LIBS=$LIBS
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18205 /* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18215 return inet_pton ();
18220 for ac_lib in '' nsl; do
18221 if test -z "$ac_lib"; then
18222 ac_res="none required"
18225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_search_inet_pton=$ac_res
18230 rm -f core conftest.err conftest.$ac_objext \
18232 if ${ac_cv_search_inet_pton+:} false; then :
18236 if ${ac_cv_search_inet_pton+:} false; then :
18239 ac_cv_search_inet_pton=no
18241 rm conftest.$ac_ext
18242 LIBS=$ac_func_search_save_LIBS
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
18245 $as_echo "$ac_cv_search_inet_pton" >&6; }
18246 ac_res=$ac_cv_search_inet_pton
18247 if test "$ac_res" != no; then :
18248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18249 case "$ac_cv_search_inet_pton" in
18250 'none required') ;;
18252 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18258 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18259 if ${ac_cv_search_inet_ntop+:} false; then :
18260 $as_echo_n "(cached) " >&6
18262 ac_func_search_save_LIBS=$LIBS
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18276 return inet_ntop ();
18281 for ac_lib in '' resolv; do
18282 if test -z "$ac_lib"; then
18283 ac_res="none required"
18286 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 ac_cv_search_inet_ntop=$ac_res
18291 rm -f core conftest.err conftest.$ac_objext \
18293 if ${ac_cv_search_inet_ntop+:} false; then :
18297 if ${ac_cv_search_inet_ntop+:} false; then :
18300 ac_cv_search_inet_ntop=no
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18306 $as_echo "$ac_cv_search_inet_ntop" >&6; }
18307 ac_res=$ac_cv_search_inet_ntop
18308 if test "$ac_res" != no; then :
18309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18310 case "$ac_cv_search_inet_ntop" in
18311 'none required') ;;
18313 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
18319 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
18320 # avoid keying on the OS name: If we find socket functions in
18321 # libsocket, next try for them in libxnet without libsocket, if found,
18322 # list both. If we simply tested libxnet first, we would find the
18323 # functions there and never add libsocket. See also [Bug 660]
18324 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18327 $as_echo_n "checking for library containing setsockopt... " >&6; }
18328 if ${ac_cv_search_setsockopt+:} false; then :
18329 $as_echo_n "(cached) " >&6
18331 ac_func_search_save_LIBS=$LIBS
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 /* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18341 char setsockopt ();
18345 return setsockopt ();
18350 for ac_lib in '' socket; do
18351 if test -z "$ac_lib"; then
18352 ac_res="none required"
18355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18357 if ac_fn_c_try_link "$LINENO"; then :
18358 ac_cv_search_setsockopt=$ac_res
18360 rm -f core conftest.err conftest.$ac_objext \
18362 if ${ac_cv_search_setsockopt+:} false; then :
18366 if ${ac_cv_search_setsockopt+:} false; then :
18369 ac_cv_search_setsockopt=no
18371 rm conftest.$ac_ext
18372 LIBS=$ac_func_search_save_LIBS
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18375 $as_echo "$ac_cv_search_setsockopt" >&6; }
18376 ac_res=$ac_cv_search_setsockopt
18377 if test "$ac_res" != no; then :
18378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18379 case "$ac_cv_search_setsockopt" in
18380 'none required') ;;
18382 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
18387 case "$ac_cv_search_setsockopt" in
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
18391 $as_echo_n "checking for library containing getsockopt... " >&6; }
18392 if ${ac_cv_search_getsockopt+:} false; then :
18393 $as_echo_n "(cached) " >&6
18395 ac_func_search_save_LIBS=$LIBS
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 /* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18405 char getsockopt ();
18409 return getsockopt ();
18414 for ac_lib in '' xnet; do
18415 if test -z "$ac_lib"; then
18416 ac_res="none required"
18419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18421 if ac_fn_c_try_link "$LINENO"; then :
18422 ac_cv_search_getsockopt=$ac_res
18424 rm -f core conftest.err conftest.$ac_objext \
18426 if ${ac_cv_search_getsockopt+:} false; then :
18430 if ${ac_cv_search_getsockopt+:} false; then :
18433 ac_cv_search_getsockopt=no
18435 rm conftest.$ac_ext
18436 LIBS=$ac_func_search_save_LIBS
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
18439 $as_echo "$ac_cv_search_getsockopt" >&6; }
18440 ac_res=$ac_cv_search_getsockopt
18441 if test "$ac_res" != no; then :
18442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18443 case "$ac_cv_search_getsockopt" in
18444 'none required') ;;
18446 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
18451 # XXX Possible trouble here - reading the comments above and looking at the
18452 # code below I wonder if we'll add -lxnet when we don't need it.
18453 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
18454 # there when it is not needed?
18455 case "$ac_cv_search_getsockopt" in
18457 LIBS="-lxnet -lsocket $saved_LIBS"
18459 *) LIBS="-lsocket $saved_LIBS"
18464 { saved_LIBS=; unset saved_LIBS;}
18466 # Bug 2427 - look for recvmsg here.
18467 for ac_func in recvmsg
18469 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
18470 if test "x$ac_cv_func_recvmsg" = xyes; then :
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_RECVMSG 1
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18480 $as_echo_n "checking for inline... " >&6; }
18481 if ${ac_cv_c_inline+:} false; then :
18482 $as_echo_n "(cached) " >&6
18485 for ac_kw in inline __inline__ __inline; do
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #ifndef __cplusplus
18490 static $ac_kw foo_t static_foo () {return 0; }
18491 $ac_kw foo_t foo () {return 0; }
18495 if ac_fn_c_try_compile "$LINENO"; then :
18496 ac_cv_c_inline=$ac_kw
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 test "$ac_cv_c_inline" != no && break
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18504 $as_echo "$ac_cv_c_inline" >&6; }
18506 case $ac_cv_c_inline in
18509 case $ac_cv_c_inline in
18511 *) ac_val=$ac_cv_c_inline;;
18513 cat >>confdefs.h <<_ACEOF
18514 #ifndef __cplusplus
18515 #define inline $ac_val
18522 case "$ac_cv_c_inline" in
18527 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18533 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18534 if ${ac_cv_header_time+:} false; then :
18535 $as_echo_n "(cached) " >&6
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 #include <sys/types.h>
18540 #include <sys/time.h>
18546 if ((struct tm *) 0)
18552 if ac_fn_c_try_compile "$LINENO"; then :
18553 ac_cv_header_time=yes
18555 ac_cv_header_time=no
18557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18560 $as_echo "$ac_cv_header_time" >&6; }
18561 if test $ac_cv_header_time = yes; then
18563 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18567 # The cast to long int works around a bug in the HP C Compiler
18568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18570 # This bug is HP SR number 8606223364.
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18572 $as_echo_n "checking size of time_t... " >&6; }
18573 if ${ac_cv_sizeof_time_t+:} false; then :
18574 $as_echo_n "(cached) " >&6
18576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
18579 if test "$ac_cv_type_time_t" = yes; then
18580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18582 as_fn_error 77 "cannot compute sizeof (time_t)
18583 See \`config.log' for more details" "$LINENO" 5; }
18585 ac_cv_sizeof_time_t=0
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18591 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18595 cat >>confdefs.h <<_ACEOF
18596 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
18601 $as_echo_n "checking whether char is unsigned... " >&6; }
18602 if ${ac_cv_c_char_unsigned+:} false; then :
18603 $as_echo_n "(cached) " >&6
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 $ac_includes_default
18611 static int test_array [1 - 2 * !(((char) -1) < 0)];
18612 test_array [0] = 0;
18613 return test_array [0];
18619 if ac_fn_c_try_compile "$LINENO"; then :
18620 ac_cv_c_char_unsigned=no
18622 ac_cv_c_char_unsigned=yes
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
18627 $as_echo "$ac_cv_c_char_unsigned" >&6; }
18628 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18629 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
18632 # The cast to long int works around a bug in the HP C Compiler
18633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18635 # This bug is HP SR number 8606223364.
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
18637 $as_echo_n "checking size of signed char... " >&6; }
18638 if ${ac_cv_sizeof_signed_char+:} false; then :
18639 $as_echo_n "(cached) " >&6
18641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
18644 if test "$ac_cv_type_signed_char" = yes; then
18645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18647 as_fn_error 77 "cannot compute sizeof (signed char)
18648 See \`config.log' for more details" "$LINENO" 5; }
18650 ac_cv_sizeof_signed_char=0
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
18656 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
18660 cat >>confdefs.h <<_ACEOF
18661 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18665 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
18666 if test "x$ac_cv_type_s_char" = xyes; then :
18668 cat >>confdefs.h <<_ACEOF
18669 #define HAVE_S_CHAR 1
18674 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18675 if test "x$ac_cv_type_long_long" = xyes; then :
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_LONG_LONG 1
18684 # The cast to long int works around a bug in the HP C Compiler
18685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18687 # This bug is HP SR number 8606223364.
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18689 $as_echo_n "checking size of short... " >&6; }
18690 if ${ac_cv_sizeof_short+:} false; then :
18691 $as_echo_n "(cached) " >&6
18693 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18696 if test "$ac_cv_type_short" = yes; then
18697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18699 as_fn_error 77 "cannot compute sizeof (short)
18700 See \`config.log' for more details" "$LINENO" 5; }
18702 ac_cv_sizeof_short=0
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18708 $as_echo "$ac_cv_sizeof_short" >&6; }
18712 cat >>confdefs.h <<_ACEOF
18713 #define SIZEOF_SHORT $ac_cv_sizeof_short
18717 # The cast to long int works around a bug in the HP C Compiler
18718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18720 # This bug is HP SR number 8606223364.
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18722 $as_echo_n "checking size of int... " >&6; }
18723 if ${ac_cv_sizeof_int+:} false; then :
18724 $as_echo_n "(cached) " >&6
18726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18729 if test "$ac_cv_type_int" = yes; then
18730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18732 as_fn_error 77 "cannot compute sizeof (int)
18733 See \`config.log' for more details" "$LINENO" 5; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18741 $as_echo "$ac_cv_sizeof_int" >&6; }
18745 cat >>confdefs.h <<_ACEOF
18746 #define SIZEOF_INT $ac_cv_sizeof_int
18750 # The cast to long int works around a bug in the HP C Compiler
18751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18753 # This bug is HP SR number 8606223364.
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18755 $as_echo_n "checking size of long... " >&6; }
18756 if ${ac_cv_sizeof_long+:} false; then :
18757 $as_echo_n "(cached) " >&6
18759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18762 if test "$ac_cv_type_long" = yes; then
18763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18765 as_fn_error 77 "cannot compute sizeof (long)
18766 See \`config.log' for more details" "$LINENO" 5; }
18768 ac_cv_sizeof_long=0
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18774 $as_echo "$ac_cv_sizeof_long" >&6; }
18778 cat >>confdefs.h <<_ACEOF
18779 #define SIZEOF_LONG $ac_cv_sizeof_long
18784 case "$ac_cv_type_long_long" in
18788 # The cast to long int works around a bug in the HP C Compiler
18789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18791 # This bug is HP SR number 8606223364.
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18793 $as_echo_n "checking size of long long... " >&6; }
18794 if ${ac_cv_sizeof_long_long+:} false; then :
18795 $as_echo_n "(cached) " >&6
18797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
18800 if test "$ac_cv_type_long_long" = yes; then
18801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18803 as_fn_error 77 "cannot compute sizeof (long long)
18804 See \`config.log' for more details" "$LINENO" 5; }
18806 ac_cv_sizeof_long_long=0
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18812 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18816 cat >>confdefs.h <<_ACEOF
18817 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18824 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
18826 # We have a typedef for s_char. Might as well believe it...
18829 # We have signed chars, can't say 'signed char', no s_char typedef.
18831 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18835 # We have signed chars, can say 'signed char', no s_char typedef.
18837 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18841 # We have unsigned chars, can't say 'signed char', no s_char typedef.
18842 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
18845 # We have unsigned chars, can say 'signed char', no s_char typedef.
18847 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18853 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18854 if ${ac_cv_type_uid_t+:} false; then :
18855 $as_echo_n "(cached) " >&6
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859 #include <sys/types.h>
18862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18863 $EGREP "uid_t" >/dev/null 2>&1; then :
18864 ac_cv_type_uid_t=yes
18866 ac_cv_type_uid_t=no
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18872 $as_echo "$ac_cv_type_uid_t" >&6; }
18873 if test $ac_cv_type_uid_t = no; then
18875 $as_echo "#define uid_t int" >>confdefs.h
18878 $as_echo "#define gid_t int" >>confdefs.h
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
18888 $as_echo_n "checking if we're including debugging code... " >&6; }
18889 # Check whether --enable-debugging was given.
18890 if test "${enable_debugging+set}" = set; then :
18891 enableval=$enable_debugging; ntp_ok=$enableval
18900 $as_echo "#define DEBUG 1" >>confdefs.h
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
18904 $as_echo "$ntp_ok" >&6; }
18908 # check if we can compile with pthreads
18909 for ac_header in semaphore.h
18911 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
18912 if test "x$ac_cv_header_semaphore_h" = xyes; then :
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_SEMAPHORE_H 1
18921 for ac_func in socketpair
18923 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
18924 if test "x$ac_cv_func_socketpair" = xyes; then :
18925 cat >>confdefs.h <<_ACEOF
18926 #define HAVE_SOCKETPAIR 1
18932 # Check whether --enable-thread-support was given.
18933 if test "${enable_thread_support+set}" = set; then :
18934 enableval=$enable_thread_support;
18936 enable_thread_support=yes
18941 case "$enable_thread_support" in
18944 ol_found_pthreads=no
18949 ac_cpp='$CPP $CPPFLAGS'
18950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18954 # OpenLDAP --with-threads
18956 # Check whether --with-threads was given.
18957 if test "${with_threads+set}" = set; then :
18958 withval=$with_threads;
18960 for ol_val in auto nt posix mach pth lwp yes no manual ; do
18961 if test "$withval" = "$ol_val" ; then
18965 if test "$ol_arg" = "invalid" ; then
18966 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
18968 ol_with_threads="$ol_arg"
18971 ol_with_threads="auto"
18973 # end --with-threads
18976 case "$ol_with_threads$host" in
18977 auto*-*-solaris2.[0-6])
18985 *-*-aix*) if test -z "$CC" ; then
18986 case "$ol_with_threads" in
18987 auto | yes | posix) ol_aix_threads=yes ;;
18993 if test $ol_aix_threads = yes ; then
18994 if test -z "${CC}" ; then
18995 for ac_prog in cc_r xlc_r cc
18997 # Extract the first word of "$ac_prog", so it can be a program name with args.
18998 set dummy $ac_prog; ac_word=$2
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19000 $as_echo_n "checking for $ac_word... " >&6; }
19001 if ${ac_cv_prog_CC+:} false; then :
19002 $as_echo_n "(cached) " >&6
19004 if test -n "$CC"; then
19005 ac_cv_prog_CC="$CC" # Let the user override the test.
19007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19011 test -z "$as_dir" && as_dir=.
19012 for ac_exec_ext in '' $ac_executable_extensions; do
19013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014 ac_cv_prog_CC="$ac_prog"
19015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19025 if test -n "$CC"; then
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19027 $as_echo "$CC" >&6; }
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030 $as_echo "no" >&6; }
19034 test -n "$CC" && break
19038 if test "$CC" = cc ; then
19039 if test $ol_with_threads != auto ; then
19040 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
19043 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
19049 case ${CC} in cc_r | xlc_r)
19050 ol_with_threads=posix
19051 ol_cv_pthread_create=yes
19057 # OpenLDAP --with-yielding_select
19059 # Check whether --with-yielding_select was given.
19060 if test "${with_yielding_select+set}" = set; then :
19061 withval=$with_yielding_select;
19063 for ol_val in auto yes no manual ; do
19064 if test "$withval" = "$ol_val" ; then
19068 if test "$ol_arg" = "invalid" ; then
19069 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
19071 ol_with_yielding_select="$ol_arg"
19074 ol_with_yielding_select="auto"
19076 # end --with-yielding_select
19079 case $ol_with_threads in auto | yes | nt)
19082 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
19083 if test "x$ac_cv_func__beginthread" = xyes; then :
19088 if test $ac_cv_func__beginthread = yes ; then
19090 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
19092 ol_cv_nt_threads=yes
19096 if test "$ol_cv_nt_threads" = yes ; then
19098 ol_with_threads=found
19099 ol_with_yielding_select=yes
19102 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
19105 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
19109 if test $ol_with_threads = nt ; then
19110 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
19115 case $ol_with_threads in auto | yes | posix)
19117 for ac_header in pthread.h
19119 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19120 if test "x$ac_cv_header_pthread_h" = xyes; then :
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_PTHREAD_H 1
19130 if test $ac_cv_header_pthread_h = yes ; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
19132 $as_echo_n "checking POSIX thread version... " >&6; }
19133 if ${ol_cv_pthread_version+:} false; then :
19134 $as_echo_n "(cached) " >&6
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19140 # include <pthread.h>
19146 int i = PTHREAD_CREATE_JOINABLE;
19152 if ac_fn_c_try_compile "$LINENO"; then :
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 #include <pthread.h>
19159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19160 $EGREP "pthread_detach" >/dev/null 2>&1; then :
19161 ol_cv_pthread_version=10
19163 ol_cv_pthread_version=8
19169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170 /* end confdefs.h. */
19172 # include <pthread.h>
19173 # ifdef PTHREAD_CREATE_UNDETACHED
19178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19179 $EGREP "draft7" >/dev/null 2>&1; then :
19180 ol_cv_pthread_version=7
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #include <pthread.h>
19188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19189 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
19190 ol_cv_pthread_version=6
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19196 # include <pthread.h>
19197 #ifdef PTHREAD_MUTEX_INITIALIZER
19202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19203 $EGREP "draft5" >/dev/null 2>&1; then :
19204 ol_cv_pthread_version=5
19206 ol_cv_pthread_version=4
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
19221 $as_echo "$ol_cv_pthread_version" >&6; }
19224 if test $ol_cv_pthread_version != 0 ; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_PTHREADS $ol_cv_pthread_version
19231 as_fn_error $? "unknown pthread version" "$LINENO" 5
19234 # consider threads found
19235 ol_with_threads=found
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19239 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19240 if ${ol_cv_header_linux_threads+:} false; then :
19241 $as_echo_n "(cached) " >&6
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 #include <pthread.h>
19247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19248 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19249 ol_cv_header_linux_threads=yes
19251 ol_cv_header_linux_threads=no
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19258 $as_echo "$ol_cv_header_linux_threads" >&6; }
19259 if test $ol_cv_header_linux_threads = yes; then
19261 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
19267 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
19268 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
19269 $as_echo_n "(cached) " >&6
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19273 #include <pthread.h>
19274 #ifdef _POSIX_THREAD_IS_GNU_PTH
19279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19280 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
19281 ol_cv_header_gnu_pth_pthread_h=yes
19283 ol_cv_header_gnu_pth_pthread_h=no
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19290 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
19293 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19294 for ac_header in sched.h
19296 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19297 if test "x$ac_cv_header_sched_h" = xyes; then :
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_SCHED_H 1
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
19310 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
19311 if ${ol_cv_pthread_create+:} false; then :
19312 $as_echo_n "(cached) " >&6
19315 if test "$cross_compiling" = yes; then :
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19319 /* pthread test headers */
19320 #include <pthread.h>
19321 #if HAVE_PTHREADS < 7
19325 #define NULL (void*)0
19328 static void *task(p)
19331 return (void *) (p == NULL);
19338 /* pthread test function */
19339 #ifndef PTHREAD_CREATE_DETACHED
19340 #define PTHREAD_CREATE_DETACHED 1
19344 int detach = PTHREAD_CREATE_DETACHED;
19346 #if HAVE_PTHREADS > 4
19347 /* Final pthreads */
19348 pthread_attr_t attr;
19350 status = pthread_attr_init(&attr);
19351 if( status ) return status;
19353 #if HAVE_PTHREADS < 7
19354 status = pthread_attr_setdetachstate(&attr, &detach);
19355 if( status < 0 ) status = errno;
19357 status = pthread_attr_setdetachstate(&attr, detach);
19359 if( status ) return status;
19360 status = pthread_create( &t, &attr, task, NULL );
19361 #if HAVE_PTHREADS < 7
19362 if( status < 0 ) status = errno;
19364 if( status ) return status;
19366 /* Draft 4 pthreads */
19367 status = pthread_create( &t, pthread_attr_default, task, NULL );
19368 if( status ) return errno;
19370 /* give thread a chance to complete */
19371 /* it should remain joinable and hence detachable */
19374 status = pthread_detach( &t );
19375 if( status ) return errno;
19378 #ifdef HAVE_LINUX_THREADS
19379 pthread_kill_other_threads_np();
19388 if ac_fn_c_try_link "$LINENO"; then :
19389 ol_cv_pthread_create=yes
19391 ol_cv_pthread_create=no
19393 rm -f core conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19400 /* pthread test headers */
19401 #include <pthread.h>
19402 #if HAVE_PTHREADS < 7
19406 #define NULL (void*)0
19409 static void *task(p)
19412 return (void *) (p == NULL);
19416 int main(argc, argv)
19421 /* pthread test function */
19422 #ifndef PTHREAD_CREATE_DETACHED
19423 #define PTHREAD_CREATE_DETACHED 1
19427 int detach = PTHREAD_CREATE_DETACHED;
19429 #if HAVE_PTHREADS > 4
19430 /* Final pthreads */
19431 pthread_attr_t attr;
19433 status = pthread_attr_init(&attr);
19434 if( status ) return status;
19436 #if HAVE_PTHREADS < 7
19437 status = pthread_attr_setdetachstate(&attr, &detach);
19438 if( status < 0 ) status = errno;
19440 status = pthread_attr_setdetachstate(&attr, detach);
19442 if( status ) return status;
19443 status = pthread_create( &t, &attr, task, NULL );
19444 #if HAVE_PTHREADS < 7
19445 if( status < 0 ) status = errno;
19447 if( status ) return status;
19449 /* Draft 4 pthreads */
19450 status = pthread_create( &t, pthread_attr_default, task, NULL );
19451 if( status ) return errno;
19453 /* give thread a chance to complete */
19454 /* it should remain joinable and hence detachable */
19457 status = pthread_detach( &t );
19458 if( status ) return errno;
19461 #ifdef HAVE_LINUX_THREADS
19462 pthread_kill_other_threads_np();
19470 if ac_fn_c_try_run "$LINENO"; then :
19471 ol_cv_pthread_create=yes
19473 ol_cv_pthread_create=no
19475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19476 conftest.$ac_objext conftest.beam conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
19481 $as_echo "$ol_cv_pthread_create" >&6; }
19483 if test $ol_cv_pthread_create != no ; then
19484 ol_link_threads=posix
19485 ol_link_pthreads=""
19488 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19489 if test "$ol_link_threads" = no ; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
19492 $as_echo_n "checking for pthread link with -kthread... " >&6; }
19493 if ${ol_cv_pthread_kthread+:} false; then :
19494 $as_echo_n "(cached) " >&6
19499 LIBS="-kthread $LIBS"
19501 if test "$cross_compiling" = yes; then :
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 /* pthread test headers */
19506 #include <pthread.h>
19507 #if HAVE_PTHREADS < 7
19511 #define NULL (void*)0
19514 static void *task(p)
19517 return (void *) (p == NULL);
19524 /* pthread test function */
19525 #ifndef PTHREAD_CREATE_DETACHED
19526 #define PTHREAD_CREATE_DETACHED 1
19530 int detach = PTHREAD_CREATE_DETACHED;
19532 #if HAVE_PTHREADS > 4
19533 /* Final pthreads */
19534 pthread_attr_t attr;
19536 status = pthread_attr_init(&attr);
19537 if( status ) return status;
19539 #if HAVE_PTHREADS < 7
19540 status = pthread_attr_setdetachstate(&attr, &detach);
19541 if( status < 0 ) status = errno;
19543 status = pthread_attr_setdetachstate(&attr, detach);
19545 if( status ) return status;
19546 status = pthread_create( &t, &attr, task, NULL );
19547 #if HAVE_PTHREADS < 7
19548 if( status < 0 ) status = errno;
19550 if( status ) return status;
19552 /* Draft 4 pthreads */
19553 status = pthread_create( &t, pthread_attr_default, task, NULL );
19554 if( status ) return errno;
19556 /* give thread a chance to complete */
19557 /* it should remain joinable and hence detachable */
19560 status = pthread_detach( &t );
19561 if( status ) return errno;
19564 #ifdef HAVE_LINUX_THREADS
19565 pthread_kill_other_threads_np();
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 ol_cv_pthread_kthread=yes
19577 ol_cv_pthread_kthread=no
19579 rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19586 /* pthread test headers */
19587 #include <pthread.h>
19588 #if HAVE_PTHREADS < 7
19592 #define NULL (void*)0
19595 static void *task(p)
19598 return (void *) (p == NULL);
19602 int main(argc, argv)
19607 /* pthread test function */
19608 #ifndef PTHREAD_CREATE_DETACHED
19609 #define PTHREAD_CREATE_DETACHED 1
19613 int detach = PTHREAD_CREATE_DETACHED;
19615 #if HAVE_PTHREADS > 4
19616 /* Final pthreads */
19617 pthread_attr_t attr;
19619 status = pthread_attr_init(&attr);
19620 if( status ) return status;
19622 #if HAVE_PTHREADS < 7
19623 status = pthread_attr_setdetachstate(&attr, &detach);
19624 if( status < 0 ) status = errno;
19626 status = pthread_attr_setdetachstate(&attr, detach);
19628 if( status ) return status;
19629 status = pthread_create( &t, &attr, task, NULL );
19630 #if HAVE_PTHREADS < 7
19631 if( status < 0 ) status = errno;
19633 if( status ) return status;
19635 /* Draft 4 pthreads */
19636 status = pthread_create( &t, pthread_attr_default, task, NULL );
19637 if( status ) return errno;
19639 /* give thread a chance to complete */
19640 /* it should remain joinable and hence detachable */
19643 status = pthread_detach( &t );
19644 if( status ) return errno;
19647 #ifdef HAVE_LINUX_THREADS
19648 pthread_kill_other_threads_np();
19656 if ac_fn_c_try_run "$LINENO"; then :
19657 ol_cv_pthread_kthread=yes
19659 ol_cv_pthread_kthread=no
19661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19662 conftest.$ac_objext conftest.beam conftest.$ac_ext
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
19671 $as_echo "$ol_cv_pthread_kthread" >&6; }
19673 if test $ol_cv_pthread_kthread = yes ; then
19674 ol_link_pthreads="-kthread"
19675 ol_link_threads=posix
19679 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19680 if test "$ol_link_threads" = no ; then
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
19683 $as_echo_n "checking for pthread link with -pthread... " >&6; }
19684 if ${ol_cv_pthread_pthread+:} false; then :
19685 $as_echo_n "(cached) " >&6
19690 LIBS="-pthread $LIBS"
19692 if test "$cross_compiling" = yes; then :
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 /* pthread test headers */
19697 #include <pthread.h>
19698 #if HAVE_PTHREADS < 7
19702 #define NULL (void*)0
19705 static void *task(p)
19708 return (void *) (p == NULL);
19715 /* pthread test function */
19716 #ifndef PTHREAD_CREATE_DETACHED
19717 #define PTHREAD_CREATE_DETACHED 1
19721 int detach = PTHREAD_CREATE_DETACHED;
19723 #if HAVE_PTHREADS > 4
19724 /* Final pthreads */
19725 pthread_attr_t attr;
19727 status = pthread_attr_init(&attr);
19728 if( status ) return status;
19730 #if HAVE_PTHREADS < 7
19731 status = pthread_attr_setdetachstate(&attr, &detach);
19732 if( status < 0 ) status = errno;
19734 status = pthread_attr_setdetachstate(&attr, detach);
19736 if( status ) return status;
19737 status = pthread_create( &t, &attr, task, NULL );
19738 #if HAVE_PTHREADS < 7
19739 if( status < 0 ) status = errno;
19741 if( status ) return status;
19743 /* Draft 4 pthreads */
19744 status = pthread_create( &t, pthread_attr_default, task, NULL );
19745 if( status ) return errno;
19747 /* give thread a chance to complete */
19748 /* it should remain joinable and hence detachable */
19751 status = pthread_detach( &t );
19752 if( status ) return errno;
19755 #ifdef HAVE_LINUX_THREADS
19756 pthread_kill_other_threads_np();
19765 if ac_fn_c_try_link "$LINENO"; then :
19766 ol_cv_pthread_pthread=yes
19768 ol_cv_pthread_pthread=no
19770 rm -f core conftest.err conftest.$ac_objext \
19771 conftest$ac_exeext conftest.$ac_ext
19773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19777 /* pthread test headers */
19778 #include <pthread.h>
19779 #if HAVE_PTHREADS < 7
19783 #define NULL (void*)0
19786 static void *task(p)
19789 return (void *) (p == NULL);
19793 int main(argc, argv)
19798 /* pthread test function */
19799 #ifndef PTHREAD_CREATE_DETACHED
19800 #define PTHREAD_CREATE_DETACHED 1
19804 int detach = PTHREAD_CREATE_DETACHED;
19806 #if HAVE_PTHREADS > 4
19807 /* Final pthreads */
19808 pthread_attr_t attr;
19810 status = pthread_attr_init(&attr);
19811 if( status ) return status;
19813 #if HAVE_PTHREADS < 7
19814 status = pthread_attr_setdetachstate(&attr, &detach);
19815 if( status < 0 ) status = errno;
19817 status = pthread_attr_setdetachstate(&attr, detach);
19819 if( status ) return status;
19820 status = pthread_create( &t, &attr, task, NULL );
19821 #if HAVE_PTHREADS < 7
19822 if( status < 0 ) status = errno;
19824 if( status ) return status;
19826 /* Draft 4 pthreads */
19827 status = pthread_create( &t, pthread_attr_default, task, NULL );
19828 if( status ) return errno;
19830 /* give thread a chance to complete */
19831 /* it should remain joinable and hence detachable */
19834 status = pthread_detach( &t );
19835 if( status ) return errno;
19838 #ifdef HAVE_LINUX_THREADS
19839 pthread_kill_other_threads_np();
19847 if ac_fn_c_try_run "$LINENO"; then :
19848 ol_cv_pthread_pthread=yes
19850 ol_cv_pthread_pthread=no
19852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19853 conftest.$ac_objext conftest.beam conftest.$ac_ext
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
19862 $as_echo "$ol_cv_pthread_pthread" >&6; }
19864 if test $ol_cv_pthread_pthread = yes ; then
19865 ol_link_pthreads="-pthread"
19866 ol_link_threads=posix
19870 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
19871 if test "$ol_link_threads" = no ; then
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
19874 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
19875 if ${ol_cv_pthread_pthreads+:} false; then :
19876 $as_echo_n "(cached) " >&6
19881 LIBS="-pthreads $LIBS"
19883 if test "$cross_compiling" = yes; then :
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 /* pthread test headers */
19888 #include <pthread.h>
19889 #if HAVE_PTHREADS < 7
19893 #define NULL (void*)0
19896 static void *task(p)
19899 return (void *) (p == NULL);
19906 /* pthread test function */
19907 #ifndef PTHREAD_CREATE_DETACHED
19908 #define PTHREAD_CREATE_DETACHED 1
19912 int detach = PTHREAD_CREATE_DETACHED;
19914 #if HAVE_PTHREADS > 4
19915 /* Final pthreads */
19916 pthread_attr_t attr;
19918 status = pthread_attr_init(&attr);
19919 if( status ) return status;
19921 #if HAVE_PTHREADS < 7
19922 status = pthread_attr_setdetachstate(&attr, &detach);
19923 if( status < 0 ) status = errno;
19925 status = pthread_attr_setdetachstate(&attr, detach);
19927 if( status ) return status;
19928 status = pthread_create( &t, &attr, task, NULL );
19929 #if HAVE_PTHREADS < 7
19930 if( status < 0 ) status = errno;
19932 if( status ) return status;
19934 /* Draft 4 pthreads */
19935 status = pthread_create( &t, pthread_attr_default, task, NULL );
19936 if( status ) return errno;
19938 /* give thread a chance to complete */
19939 /* it should remain joinable and hence detachable */
19942 status = pthread_detach( &t );
19943 if( status ) return errno;
19946 #ifdef HAVE_LINUX_THREADS
19947 pthread_kill_other_threads_np();
19956 if ac_fn_c_try_link "$LINENO"; then :
19957 ol_cv_pthread_pthreads=yes
19959 ol_cv_pthread_pthreads=no
19961 rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19968 /* pthread test headers */
19969 #include <pthread.h>
19970 #if HAVE_PTHREADS < 7
19974 #define NULL (void*)0
19977 static void *task(p)
19980 return (void *) (p == NULL);
19984 int main(argc, argv)
19989 /* pthread test function */
19990 #ifndef PTHREAD_CREATE_DETACHED
19991 #define PTHREAD_CREATE_DETACHED 1
19995 int detach = PTHREAD_CREATE_DETACHED;
19997 #if HAVE_PTHREADS > 4
19998 /* Final pthreads */
19999 pthread_attr_t attr;
20001 status = pthread_attr_init(&attr);
20002 if( status ) return status;
20004 #if HAVE_PTHREADS < 7
20005 status = pthread_attr_setdetachstate(&attr, &detach);
20006 if( status < 0 ) status = errno;
20008 status = pthread_attr_setdetachstate(&attr, detach);
20010 if( status ) return status;
20011 status = pthread_create( &t, &attr, task, NULL );
20012 #if HAVE_PTHREADS < 7
20013 if( status < 0 ) status = errno;
20015 if( status ) return status;
20017 /* Draft 4 pthreads */
20018 status = pthread_create( &t, pthread_attr_default, task, NULL );
20019 if( status ) return errno;
20021 /* give thread a chance to complete */
20022 /* it should remain joinable and hence detachable */
20025 status = pthread_detach( &t );
20026 if( status ) return errno;
20029 #ifdef HAVE_LINUX_THREADS
20030 pthread_kill_other_threads_np();
20038 if ac_fn_c_try_run "$LINENO"; then :
20039 ol_cv_pthread_pthreads=yes
20041 ol_cv_pthread_pthreads=no
20043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20044 conftest.$ac_objext conftest.beam conftest.$ac_ext
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
20053 $as_echo "$ol_cv_pthread_pthreads" >&6; }
20055 if test $ol_cv_pthread_pthreads = yes ; then
20056 ol_link_pthreads="-pthreads"
20057 ol_link_threads=posix
20061 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20062 if test "$ol_link_threads" = no ; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
20065 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
20066 if ${ol_cv_pthread_mthreads+:} false; then :
20067 $as_echo_n "(cached) " >&6
20072 LIBS="-mthreads $LIBS"
20074 if test "$cross_compiling" = yes; then :
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20078 /* pthread test headers */
20079 #include <pthread.h>
20080 #if HAVE_PTHREADS < 7
20084 #define NULL (void*)0
20087 static void *task(p)
20090 return (void *) (p == NULL);
20097 /* pthread test function */
20098 #ifndef PTHREAD_CREATE_DETACHED
20099 #define PTHREAD_CREATE_DETACHED 1
20103 int detach = PTHREAD_CREATE_DETACHED;
20105 #if HAVE_PTHREADS > 4
20106 /* Final pthreads */
20107 pthread_attr_t attr;
20109 status = pthread_attr_init(&attr);
20110 if( status ) return status;
20112 #if HAVE_PTHREADS < 7
20113 status = pthread_attr_setdetachstate(&attr, &detach);
20114 if( status < 0 ) status = errno;
20116 status = pthread_attr_setdetachstate(&attr, detach);
20118 if( status ) return status;
20119 status = pthread_create( &t, &attr, task, NULL );
20120 #if HAVE_PTHREADS < 7
20121 if( status < 0 ) status = errno;
20123 if( status ) return status;
20125 /* Draft 4 pthreads */
20126 status = pthread_create( &t, pthread_attr_default, task, NULL );
20127 if( status ) return errno;
20129 /* give thread a chance to complete */
20130 /* it should remain joinable and hence detachable */
20133 status = pthread_detach( &t );
20134 if( status ) return errno;
20137 #ifdef HAVE_LINUX_THREADS
20138 pthread_kill_other_threads_np();
20147 if ac_fn_c_try_link "$LINENO"; then :
20148 ol_cv_pthread_mthreads=yes
20150 ol_cv_pthread_mthreads=no
20152 rm -f core conftest.err conftest.$ac_objext \
20153 conftest$ac_exeext conftest.$ac_ext
20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20159 /* pthread test headers */
20160 #include <pthread.h>
20161 #if HAVE_PTHREADS < 7
20165 #define NULL (void*)0
20168 static void *task(p)
20171 return (void *) (p == NULL);
20175 int main(argc, argv)
20180 /* pthread test function */
20181 #ifndef PTHREAD_CREATE_DETACHED
20182 #define PTHREAD_CREATE_DETACHED 1
20186 int detach = PTHREAD_CREATE_DETACHED;
20188 #if HAVE_PTHREADS > 4
20189 /* Final pthreads */
20190 pthread_attr_t attr;
20192 status = pthread_attr_init(&attr);
20193 if( status ) return status;
20195 #if HAVE_PTHREADS < 7
20196 status = pthread_attr_setdetachstate(&attr, &detach);
20197 if( status < 0 ) status = errno;
20199 status = pthread_attr_setdetachstate(&attr, detach);
20201 if( status ) return status;
20202 status = pthread_create( &t, &attr, task, NULL );
20203 #if HAVE_PTHREADS < 7
20204 if( status < 0 ) status = errno;
20206 if( status ) return status;
20208 /* Draft 4 pthreads */
20209 status = pthread_create( &t, pthread_attr_default, task, NULL );
20210 if( status ) return errno;
20212 /* give thread a chance to complete */
20213 /* it should remain joinable and hence detachable */
20216 status = pthread_detach( &t );
20217 if( status ) return errno;
20220 #ifdef HAVE_LINUX_THREADS
20221 pthread_kill_other_threads_np();
20229 if ac_fn_c_try_run "$LINENO"; then :
20230 ol_cv_pthread_mthreads=yes
20232 ol_cv_pthread_mthreads=no
20234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20235 conftest.$ac_objext conftest.beam conftest.$ac_ext
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
20244 $as_echo "$ol_cv_pthread_mthreads" >&6; }
20246 if test $ol_cv_pthread_mthreads = yes ; then
20247 ol_link_pthreads="-mthreads"
20248 ol_link_threads=posix
20252 # Pthread try link: -thread (ol_cv_pthread_thread)
20253 if test "$ol_link_threads" = no ; then
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
20256 $as_echo_n "checking for pthread link with -thread... " >&6; }
20257 if ${ol_cv_pthread_thread+:} false; then :
20258 $as_echo_n "(cached) " >&6
20263 LIBS="-thread $LIBS"
20265 if test "$cross_compiling" = yes; then :
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h. */
20269 /* pthread test headers */
20270 #include <pthread.h>
20271 #if HAVE_PTHREADS < 7
20275 #define NULL (void*)0
20278 static void *task(p)
20281 return (void *) (p == NULL);
20288 /* pthread test function */
20289 #ifndef PTHREAD_CREATE_DETACHED
20290 #define PTHREAD_CREATE_DETACHED 1
20294 int detach = PTHREAD_CREATE_DETACHED;
20296 #if HAVE_PTHREADS > 4
20297 /* Final pthreads */
20298 pthread_attr_t attr;
20300 status = pthread_attr_init(&attr);
20301 if( status ) return status;
20303 #if HAVE_PTHREADS < 7
20304 status = pthread_attr_setdetachstate(&attr, &detach);
20305 if( status < 0 ) status = errno;
20307 status = pthread_attr_setdetachstate(&attr, detach);
20309 if( status ) return status;
20310 status = pthread_create( &t, &attr, task, NULL );
20311 #if HAVE_PTHREADS < 7
20312 if( status < 0 ) status = errno;
20314 if( status ) return status;
20316 /* Draft 4 pthreads */
20317 status = pthread_create( &t, pthread_attr_default, task, NULL );
20318 if( status ) return errno;
20320 /* give thread a chance to complete */
20321 /* it should remain joinable and hence detachable */
20324 status = pthread_detach( &t );
20325 if( status ) return errno;
20328 #ifdef HAVE_LINUX_THREADS
20329 pthread_kill_other_threads_np();
20338 if ac_fn_c_try_link "$LINENO"; then :
20339 ol_cv_pthread_thread=yes
20341 ol_cv_pthread_thread=no
20343 rm -f core conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h. */
20350 /* pthread test headers */
20351 #include <pthread.h>
20352 #if HAVE_PTHREADS < 7
20356 #define NULL (void*)0
20359 static void *task(p)
20362 return (void *) (p == NULL);
20366 int main(argc, argv)
20371 /* pthread test function */
20372 #ifndef PTHREAD_CREATE_DETACHED
20373 #define PTHREAD_CREATE_DETACHED 1
20377 int detach = PTHREAD_CREATE_DETACHED;
20379 #if HAVE_PTHREADS > 4
20380 /* Final pthreads */
20381 pthread_attr_t attr;
20383 status = pthread_attr_init(&attr);
20384 if( status ) return status;
20386 #if HAVE_PTHREADS < 7
20387 status = pthread_attr_setdetachstate(&attr, &detach);
20388 if( status < 0 ) status = errno;
20390 status = pthread_attr_setdetachstate(&attr, detach);
20392 if( status ) return status;
20393 status = pthread_create( &t, &attr, task, NULL );
20394 #if HAVE_PTHREADS < 7
20395 if( status < 0 ) status = errno;
20397 if( status ) return status;
20399 /* Draft 4 pthreads */
20400 status = pthread_create( &t, pthread_attr_default, task, NULL );
20401 if( status ) return errno;
20403 /* give thread a chance to complete */
20404 /* it should remain joinable and hence detachable */
20407 status = pthread_detach( &t );
20408 if( status ) return errno;
20411 #ifdef HAVE_LINUX_THREADS
20412 pthread_kill_other_threads_np();
20420 if ac_fn_c_try_run "$LINENO"; then :
20421 ol_cv_pthread_thread=yes
20423 ol_cv_pthread_thread=no
20425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20426 conftest.$ac_objext conftest.beam conftest.$ac_ext
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
20435 $as_echo "$ol_cv_pthread_thread" >&6; }
20437 if test $ol_cv_pthread_thread = yes ; then
20438 ol_link_pthreads="-thread"
20439 ol_link_threads=posix
20444 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20445 if test "$ol_link_threads" = no ; then
20446 # try -lpthread -lmach -lexc -lc_r
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20448 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
20449 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
20450 $as_echo_n "(cached) " >&6
20455 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20457 if test "$cross_compiling" = yes; then :
20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459 /* end confdefs.h. */
20461 /* pthread test headers */
20462 #include <pthread.h>
20463 #if HAVE_PTHREADS < 7
20467 #define NULL (void*)0
20470 static void *task(p)
20473 return (void *) (p == NULL);
20480 /* pthread test function */
20481 #ifndef PTHREAD_CREATE_DETACHED
20482 #define PTHREAD_CREATE_DETACHED 1
20486 int detach = PTHREAD_CREATE_DETACHED;
20488 #if HAVE_PTHREADS > 4
20489 /* Final pthreads */
20490 pthread_attr_t attr;
20492 status = pthread_attr_init(&attr);
20493 if( status ) return status;
20495 #if HAVE_PTHREADS < 7
20496 status = pthread_attr_setdetachstate(&attr, &detach);
20497 if( status < 0 ) status = errno;
20499 status = pthread_attr_setdetachstate(&attr, detach);
20501 if( status ) return status;
20502 status = pthread_create( &t, &attr, task, NULL );
20503 #if HAVE_PTHREADS < 7
20504 if( status < 0 ) status = errno;
20506 if( status ) return status;
20508 /* Draft 4 pthreads */
20509 status = pthread_create( &t, pthread_attr_default, task, NULL );
20510 if( status ) return errno;
20512 /* give thread a chance to complete */
20513 /* it should remain joinable and hence detachable */
20516 status = pthread_detach( &t );
20517 if( status ) return errno;
20520 #ifdef HAVE_LINUX_THREADS
20521 pthread_kill_other_threads_np();
20530 if ac_fn_c_try_link "$LINENO"; then :
20531 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20533 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20535 rm -f core conftest.err conftest.$ac_objext \
20536 conftest$ac_exeext conftest.$ac_ext
20538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h. */
20542 /* pthread test headers */
20543 #include <pthread.h>
20544 #if HAVE_PTHREADS < 7
20548 #define NULL (void*)0
20551 static void *task(p)
20554 return (void *) (p == NULL);
20558 int main(argc, argv)
20563 /* pthread test function */
20564 #ifndef PTHREAD_CREATE_DETACHED
20565 #define PTHREAD_CREATE_DETACHED 1
20569 int detach = PTHREAD_CREATE_DETACHED;
20571 #if HAVE_PTHREADS > 4
20572 /* Final pthreads */
20573 pthread_attr_t attr;
20575 status = pthread_attr_init(&attr);
20576 if( status ) return status;
20578 #if HAVE_PTHREADS < 7
20579 status = pthread_attr_setdetachstate(&attr, &detach);
20580 if( status < 0 ) status = errno;
20582 status = pthread_attr_setdetachstate(&attr, detach);
20584 if( status ) return status;
20585 status = pthread_create( &t, &attr, task, NULL );
20586 #if HAVE_PTHREADS < 7
20587 if( status < 0 ) status = errno;
20589 if( status ) return status;
20591 /* Draft 4 pthreads */
20592 status = pthread_create( &t, pthread_attr_default, task, NULL );
20593 if( status ) return errno;
20595 /* give thread a chance to complete */
20596 /* it should remain joinable and hence detachable */
20599 status = pthread_detach( &t );
20600 if( status ) return errno;
20603 #ifdef HAVE_LINUX_THREADS
20604 pthread_kill_other_threads_np();
20612 if ac_fn_c_try_run "$LINENO"; then :
20613 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20615 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20618 conftest.$ac_objext conftest.beam conftest.$ac_ext
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
20627 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
20629 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
20630 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
20631 ol_link_threads=posix
20635 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
20636 if test "$ol_link_threads" = no ; then
20637 # try -lpthread -lmach -lexc
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
20639 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
20640 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
20641 $as_echo_n "(cached) " >&6
20646 LIBS="-lpthread -lmach -lexc $LIBS"
20648 if test "$cross_compiling" = yes; then :
20649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h. */
20652 /* pthread test headers */
20653 #include <pthread.h>
20654 #if HAVE_PTHREADS < 7
20658 #define NULL (void*)0
20661 static void *task(p)
20664 return (void *) (p == NULL);
20671 /* pthread test function */
20672 #ifndef PTHREAD_CREATE_DETACHED
20673 #define PTHREAD_CREATE_DETACHED 1
20677 int detach = PTHREAD_CREATE_DETACHED;
20679 #if HAVE_PTHREADS > 4
20680 /* Final pthreads */
20681 pthread_attr_t attr;
20683 status = pthread_attr_init(&attr);
20684 if( status ) return status;
20686 #if HAVE_PTHREADS < 7
20687 status = pthread_attr_setdetachstate(&attr, &detach);
20688 if( status < 0 ) status = errno;
20690 status = pthread_attr_setdetachstate(&attr, detach);
20692 if( status ) return status;
20693 status = pthread_create( &t, &attr, task, NULL );
20694 #if HAVE_PTHREADS < 7
20695 if( status < 0 ) status = errno;
20697 if( status ) return status;
20699 /* Draft 4 pthreads */
20700 status = pthread_create( &t, pthread_attr_default, task, NULL );
20701 if( status ) return errno;
20703 /* give thread a chance to complete */
20704 /* it should remain joinable and hence detachable */
20707 status = pthread_detach( &t );
20708 if( status ) return errno;
20711 #ifdef HAVE_LINUX_THREADS
20712 pthread_kill_other_threads_np();
20721 if ac_fn_c_try_link "$LINENO"; then :
20722 ol_cv_pthread_lpthread_lmach_lexc=yes
20724 ol_cv_pthread_lpthread_lmach_lexc=no
20726 rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20733 /* pthread test headers */
20734 #include <pthread.h>
20735 #if HAVE_PTHREADS < 7
20739 #define NULL (void*)0
20742 static void *task(p)
20745 return (void *) (p == NULL);
20749 int main(argc, argv)
20754 /* pthread test function */
20755 #ifndef PTHREAD_CREATE_DETACHED
20756 #define PTHREAD_CREATE_DETACHED 1
20760 int detach = PTHREAD_CREATE_DETACHED;
20762 #if HAVE_PTHREADS > 4
20763 /* Final pthreads */
20764 pthread_attr_t attr;
20766 status = pthread_attr_init(&attr);
20767 if( status ) return status;
20769 #if HAVE_PTHREADS < 7
20770 status = pthread_attr_setdetachstate(&attr, &detach);
20771 if( status < 0 ) status = errno;
20773 status = pthread_attr_setdetachstate(&attr, detach);
20775 if( status ) return status;
20776 status = pthread_create( &t, &attr, task, NULL );
20777 #if HAVE_PTHREADS < 7
20778 if( status < 0 ) status = errno;
20780 if( status ) return status;
20782 /* Draft 4 pthreads */
20783 status = pthread_create( &t, pthread_attr_default, task, NULL );
20784 if( status ) return errno;
20786 /* give thread a chance to complete */
20787 /* it should remain joinable and hence detachable */
20790 status = pthread_detach( &t );
20791 if( status ) return errno;
20794 #ifdef HAVE_LINUX_THREADS
20795 pthread_kill_other_threads_np();
20803 if ac_fn_c_try_run "$LINENO"; then :
20804 ol_cv_pthread_lpthread_lmach_lexc=yes
20806 ol_cv_pthread_lpthread_lmach_lexc=no
20808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20809 conftest.$ac_objext conftest.beam conftest.$ac_ext
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
20818 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
20820 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
20821 ol_link_pthreads="-lpthread -lmach -lexc"
20822 ol_link_threads=posix
20827 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
20828 if test "$ol_link_threads" = no ; then
20829 # try -lpthread -Wl,-woff,85
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
20831 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
20832 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
20833 $as_echo_n "(cached) " >&6
20838 LIBS="-lpthread -Wl,-woff,85 $LIBS"
20840 if test "$cross_compiling" = yes; then :
20841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h. */
20844 /* pthread test headers */
20845 #include <pthread.h>
20846 #if HAVE_PTHREADS < 7
20850 #define NULL (void*)0
20853 static void *task(p)
20856 return (void *) (p == NULL);
20863 /* pthread test function */
20864 #ifndef PTHREAD_CREATE_DETACHED
20865 #define PTHREAD_CREATE_DETACHED 1
20869 int detach = PTHREAD_CREATE_DETACHED;
20871 #if HAVE_PTHREADS > 4
20872 /* Final pthreads */
20873 pthread_attr_t attr;
20875 status = pthread_attr_init(&attr);
20876 if( status ) return status;
20878 #if HAVE_PTHREADS < 7
20879 status = pthread_attr_setdetachstate(&attr, &detach);
20880 if( status < 0 ) status = errno;
20882 status = pthread_attr_setdetachstate(&attr, detach);
20884 if( status ) return status;
20885 status = pthread_create( &t, &attr, task, NULL );
20886 #if HAVE_PTHREADS < 7
20887 if( status < 0 ) status = errno;
20889 if( status ) return status;
20891 /* Draft 4 pthreads */
20892 status = pthread_create( &t, pthread_attr_default, task, NULL );
20893 if( status ) return errno;
20895 /* give thread a chance to complete */
20896 /* it should remain joinable and hence detachable */
20899 status = pthread_detach( &t );
20900 if( status ) return errno;
20903 #ifdef HAVE_LINUX_THREADS
20904 pthread_kill_other_threads_np();
20913 if ac_fn_c_try_link "$LINENO"; then :
20914 ol_cv_pthread_lib_lpthread_woff=yes
20916 ol_cv_pthread_lib_lpthread_woff=no
20918 rm -f core conftest.err conftest.$ac_objext \
20919 conftest$ac_exeext conftest.$ac_ext
20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h. */
20925 /* pthread test headers */
20926 #include <pthread.h>
20927 #if HAVE_PTHREADS < 7
20931 #define NULL (void*)0
20934 static void *task(p)
20937 return (void *) (p == NULL);
20941 int main(argc, argv)
20946 /* pthread test function */
20947 #ifndef PTHREAD_CREATE_DETACHED
20948 #define PTHREAD_CREATE_DETACHED 1
20952 int detach = PTHREAD_CREATE_DETACHED;
20954 #if HAVE_PTHREADS > 4
20955 /* Final pthreads */
20956 pthread_attr_t attr;
20958 status = pthread_attr_init(&attr);
20959 if( status ) return status;
20961 #if HAVE_PTHREADS < 7
20962 status = pthread_attr_setdetachstate(&attr, &detach);
20963 if( status < 0 ) status = errno;
20965 status = pthread_attr_setdetachstate(&attr, detach);
20967 if( status ) return status;
20968 status = pthread_create( &t, &attr, task, NULL );
20969 #if HAVE_PTHREADS < 7
20970 if( status < 0 ) status = errno;
20972 if( status ) return status;
20974 /* Draft 4 pthreads */
20975 status = pthread_create( &t, pthread_attr_default, task, NULL );
20976 if( status ) return errno;
20978 /* give thread a chance to complete */
20979 /* it should remain joinable and hence detachable */
20982 status = pthread_detach( &t );
20983 if( status ) return errno;
20986 #ifdef HAVE_LINUX_THREADS
20987 pthread_kill_other_threads_np();
20995 if ac_fn_c_try_run "$LINENO"; then :
20996 ol_cv_pthread_lib_lpthread_woff=yes
20998 ol_cv_pthread_lib_lpthread_woff=no
21000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21001 conftest.$ac_objext conftest.beam conftest.$ac_ext
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21010 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
21012 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21013 ol_link_pthreads="-lpthread -Wl,-woff,85"
21014 ol_link_threads=posix
21019 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21020 if test "$ol_link_threads" = no ; then
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
21023 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
21024 if ${ol_cv_pthread_lpthread+:} false; then :
21025 $as_echo_n "(cached) " >&6
21030 LIBS="-lpthread $LIBS"
21032 if test "$cross_compiling" = yes; then :
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h. */
21036 /* pthread test headers */
21037 #include <pthread.h>
21038 #if HAVE_PTHREADS < 7
21042 #define NULL (void*)0
21045 static void *task(p)
21048 return (void *) (p == NULL);
21055 /* pthread test function */
21056 #ifndef PTHREAD_CREATE_DETACHED
21057 #define PTHREAD_CREATE_DETACHED 1
21061 int detach = PTHREAD_CREATE_DETACHED;
21063 #if HAVE_PTHREADS > 4
21064 /* Final pthreads */
21065 pthread_attr_t attr;
21067 status = pthread_attr_init(&attr);
21068 if( status ) return status;
21070 #if HAVE_PTHREADS < 7
21071 status = pthread_attr_setdetachstate(&attr, &detach);
21072 if( status < 0 ) status = errno;
21074 status = pthread_attr_setdetachstate(&attr, detach);
21076 if( status ) return status;
21077 status = pthread_create( &t, &attr, task, NULL );
21078 #if HAVE_PTHREADS < 7
21079 if( status < 0 ) status = errno;
21081 if( status ) return status;
21083 /* Draft 4 pthreads */
21084 status = pthread_create( &t, pthread_attr_default, task, NULL );
21085 if( status ) return errno;
21087 /* give thread a chance to complete */
21088 /* it should remain joinable and hence detachable */
21091 status = pthread_detach( &t );
21092 if( status ) return errno;
21095 #ifdef HAVE_LINUX_THREADS
21096 pthread_kill_other_threads_np();
21105 if ac_fn_c_try_link "$LINENO"; then :
21106 ol_cv_pthread_lpthread=yes
21108 ol_cv_pthread_lpthread=no
21110 rm -f core conftest.err conftest.$ac_objext \
21111 conftest$ac_exeext conftest.$ac_ext
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21117 /* pthread test headers */
21118 #include <pthread.h>
21119 #if HAVE_PTHREADS < 7
21123 #define NULL (void*)0
21126 static void *task(p)
21129 return (void *) (p == NULL);
21133 int main(argc, argv)
21138 /* pthread test function */
21139 #ifndef PTHREAD_CREATE_DETACHED
21140 #define PTHREAD_CREATE_DETACHED 1
21144 int detach = PTHREAD_CREATE_DETACHED;
21146 #if HAVE_PTHREADS > 4
21147 /* Final pthreads */
21148 pthread_attr_t attr;
21150 status = pthread_attr_init(&attr);
21151 if( status ) return status;
21153 #if HAVE_PTHREADS < 7
21154 status = pthread_attr_setdetachstate(&attr, &detach);
21155 if( status < 0 ) status = errno;
21157 status = pthread_attr_setdetachstate(&attr, detach);
21159 if( status ) return status;
21160 status = pthread_create( &t, &attr, task, NULL );
21161 #if HAVE_PTHREADS < 7
21162 if( status < 0 ) status = errno;
21164 if( status ) return status;
21166 /* Draft 4 pthreads */
21167 status = pthread_create( &t, pthread_attr_default, task, NULL );
21168 if( status ) return errno;
21170 /* give thread a chance to complete */
21171 /* it should remain joinable and hence detachable */
21174 status = pthread_detach( &t );
21175 if( status ) return errno;
21178 #ifdef HAVE_LINUX_THREADS
21179 pthread_kill_other_threads_np();
21187 if ac_fn_c_try_run "$LINENO"; then :
21188 ol_cv_pthread_lpthread=yes
21190 ol_cv_pthread_lpthread=no
21192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21193 conftest.$ac_objext conftest.beam conftest.$ac_ext
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
21202 $as_echo "$ol_cv_pthread_lpthread" >&6; }
21204 if test $ol_cv_pthread_lpthread = yes ; then
21205 ol_link_pthreads="-lpthread"
21206 ol_link_threads=posix
21210 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21211 if test "$ol_link_threads" = no ; then
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
21214 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
21215 if ${ol_cv_pthread_lc_r+:} false; then :
21216 $as_echo_n "(cached) " >&6
21223 if test "$cross_compiling" = yes; then :
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21227 /* pthread test headers */
21228 #include <pthread.h>
21229 #if HAVE_PTHREADS < 7
21233 #define NULL (void*)0
21236 static void *task(p)
21239 return (void *) (p == NULL);
21246 /* pthread test function */
21247 #ifndef PTHREAD_CREATE_DETACHED
21248 #define PTHREAD_CREATE_DETACHED 1
21252 int detach = PTHREAD_CREATE_DETACHED;
21254 #if HAVE_PTHREADS > 4
21255 /* Final pthreads */
21256 pthread_attr_t attr;
21258 status = pthread_attr_init(&attr);
21259 if( status ) return status;
21261 #if HAVE_PTHREADS < 7
21262 status = pthread_attr_setdetachstate(&attr, &detach);
21263 if( status < 0 ) status = errno;
21265 status = pthread_attr_setdetachstate(&attr, detach);
21267 if( status ) return status;
21268 status = pthread_create( &t, &attr, task, NULL );
21269 #if HAVE_PTHREADS < 7
21270 if( status < 0 ) status = errno;
21272 if( status ) return status;
21274 /* Draft 4 pthreads */
21275 status = pthread_create( &t, pthread_attr_default, task, NULL );
21276 if( status ) return errno;
21278 /* give thread a chance to complete */
21279 /* it should remain joinable and hence detachable */
21282 status = pthread_detach( &t );
21283 if( status ) return errno;
21286 #ifdef HAVE_LINUX_THREADS
21287 pthread_kill_other_threads_np();
21296 if ac_fn_c_try_link "$LINENO"; then :
21297 ol_cv_pthread_lc_r=yes
21299 ol_cv_pthread_lc_r=no
21301 rm -f core conftest.err conftest.$ac_objext \
21302 conftest$ac_exeext conftest.$ac_ext
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21308 /* pthread test headers */
21309 #include <pthread.h>
21310 #if HAVE_PTHREADS < 7
21314 #define NULL (void*)0
21317 static void *task(p)
21320 return (void *) (p == NULL);
21324 int main(argc, argv)
21329 /* pthread test function */
21330 #ifndef PTHREAD_CREATE_DETACHED
21331 #define PTHREAD_CREATE_DETACHED 1
21335 int detach = PTHREAD_CREATE_DETACHED;
21337 #if HAVE_PTHREADS > 4
21338 /* Final pthreads */
21339 pthread_attr_t attr;
21341 status = pthread_attr_init(&attr);
21342 if( status ) return status;
21344 #if HAVE_PTHREADS < 7
21345 status = pthread_attr_setdetachstate(&attr, &detach);
21346 if( status < 0 ) status = errno;
21348 status = pthread_attr_setdetachstate(&attr, detach);
21350 if( status ) return status;
21351 status = pthread_create( &t, &attr, task, NULL );
21352 #if HAVE_PTHREADS < 7
21353 if( status < 0 ) status = errno;
21355 if( status ) return status;
21357 /* Draft 4 pthreads */
21358 status = pthread_create( &t, pthread_attr_default, task, NULL );
21359 if( status ) return errno;
21361 /* give thread a chance to complete */
21362 /* it should remain joinable and hence detachable */
21365 status = pthread_detach( &t );
21366 if( status ) return errno;
21369 #ifdef HAVE_LINUX_THREADS
21370 pthread_kill_other_threads_np();
21378 if ac_fn_c_try_run "$LINENO"; then :
21379 ol_cv_pthread_lc_r=yes
21381 ol_cv_pthread_lc_r=no
21383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21384 conftest.$ac_objext conftest.beam conftest.$ac_ext
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
21393 $as_echo "$ol_cv_pthread_lc_r" >&6; }
21395 if test $ol_cv_pthread_lc_r = yes ; then
21396 ol_link_pthreads="-lc_r"
21397 ol_link_threads=posix
21402 # Pthread try link: -threads (ol_cv_pthread_threads)
21403 if test "$ol_link_threads" = no ; then
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
21406 $as_echo_n "checking for pthread link with -threads... " >&6; }
21407 if ${ol_cv_pthread_threads+:} false; then :
21408 $as_echo_n "(cached) " >&6
21413 LIBS="-threads $LIBS"
21415 if test "$cross_compiling" = yes; then :
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21419 /* pthread test headers */
21420 #include <pthread.h>
21421 #if HAVE_PTHREADS < 7
21425 #define NULL (void*)0
21428 static void *task(p)
21431 return (void *) (p == NULL);
21438 /* pthread test function */
21439 #ifndef PTHREAD_CREATE_DETACHED
21440 #define PTHREAD_CREATE_DETACHED 1
21444 int detach = PTHREAD_CREATE_DETACHED;
21446 #if HAVE_PTHREADS > 4
21447 /* Final pthreads */
21448 pthread_attr_t attr;
21450 status = pthread_attr_init(&attr);
21451 if( status ) return status;
21453 #if HAVE_PTHREADS < 7
21454 status = pthread_attr_setdetachstate(&attr, &detach);
21455 if( status < 0 ) status = errno;
21457 status = pthread_attr_setdetachstate(&attr, detach);
21459 if( status ) return status;
21460 status = pthread_create( &t, &attr, task, NULL );
21461 #if HAVE_PTHREADS < 7
21462 if( status < 0 ) status = errno;
21464 if( status ) return status;
21466 /* Draft 4 pthreads */
21467 status = pthread_create( &t, pthread_attr_default, task, NULL );
21468 if( status ) return errno;
21470 /* give thread a chance to complete */
21471 /* it should remain joinable and hence detachable */
21474 status = pthread_detach( &t );
21475 if( status ) return errno;
21478 #ifdef HAVE_LINUX_THREADS
21479 pthread_kill_other_threads_np();
21488 if ac_fn_c_try_link "$LINENO"; then :
21489 ol_cv_pthread_threads=yes
21491 ol_cv_pthread_threads=no
21493 rm -f core conftest.err conftest.$ac_objext \
21494 conftest$ac_exeext conftest.$ac_ext
21496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h. */
21500 /* pthread test headers */
21501 #include <pthread.h>
21502 #if HAVE_PTHREADS < 7
21506 #define NULL (void*)0
21509 static void *task(p)
21512 return (void *) (p == NULL);
21516 int main(argc, argv)
21521 /* pthread test function */
21522 #ifndef PTHREAD_CREATE_DETACHED
21523 #define PTHREAD_CREATE_DETACHED 1
21527 int detach = PTHREAD_CREATE_DETACHED;
21529 #if HAVE_PTHREADS > 4
21530 /* Final pthreads */
21531 pthread_attr_t attr;
21533 status = pthread_attr_init(&attr);
21534 if( status ) return status;
21536 #if HAVE_PTHREADS < 7
21537 status = pthread_attr_setdetachstate(&attr, &detach);
21538 if( status < 0 ) status = errno;
21540 status = pthread_attr_setdetachstate(&attr, detach);
21542 if( status ) return status;
21543 status = pthread_create( &t, &attr, task, NULL );
21544 #if HAVE_PTHREADS < 7
21545 if( status < 0 ) status = errno;
21547 if( status ) return status;
21549 /* Draft 4 pthreads */
21550 status = pthread_create( &t, pthread_attr_default, task, NULL );
21551 if( status ) return errno;
21553 /* give thread a chance to complete */
21554 /* it should remain joinable and hence detachable */
21557 status = pthread_detach( &t );
21558 if( status ) return errno;
21561 #ifdef HAVE_LINUX_THREADS
21562 pthread_kill_other_threads_np();
21570 if ac_fn_c_try_run "$LINENO"; then :
21571 ol_cv_pthread_threads=yes
21573 ol_cv_pthread_threads=no
21575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21576 conftest.$ac_objext conftest.beam conftest.$ac_ext
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
21585 $as_echo "$ol_cv_pthread_threads" >&6; }
21587 if test $ol_cv_pthread_threads = yes ; then
21588 ol_link_pthreads="-threads"
21589 ol_link_threads=posix
21594 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
21595 if test "$ol_link_threads" = no ; then
21596 # try -lpthreads -lmach -lexc -lc_r
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
21598 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
21599 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
21600 $as_echo_n "(cached) " >&6
21605 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
21607 if test "$cross_compiling" = yes; then :
21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h. */
21611 /* pthread test headers */
21612 #include <pthread.h>
21613 #if HAVE_PTHREADS < 7
21617 #define NULL (void*)0
21620 static void *task(p)
21623 return (void *) (p == NULL);
21630 /* pthread test function */
21631 #ifndef PTHREAD_CREATE_DETACHED
21632 #define PTHREAD_CREATE_DETACHED 1
21636 int detach = PTHREAD_CREATE_DETACHED;
21638 #if HAVE_PTHREADS > 4
21639 /* Final pthreads */
21640 pthread_attr_t attr;
21642 status = pthread_attr_init(&attr);
21643 if( status ) return status;
21645 #if HAVE_PTHREADS < 7
21646 status = pthread_attr_setdetachstate(&attr, &detach);
21647 if( status < 0 ) status = errno;
21649 status = pthread_attr_setdetachstate(&attr, detach);
21651 if( status ) return status;
21652 status = pthread_create( &t, &attr, task, NULL );
21653 #if HAVE_PTHREADS < 7
21654 if( status < 0 ) status = errno;
21656 if( status ) return status;
21658 /* Draft 4 pthreads */
21659 status = pthread_create( &t, pthread_attr_default, task, NULL );
21660 if( status ) return errno;
21662 /* give thread a chance to complete */
21663 /* it should remain joinable and hence detachable */
21666 status = pthread_detach( &t );
21667 if( status ) return errno;
21670 #ifdef HAVE_LINUX_THREADS
21671 pthread_kill_other_threads_np();
21680 if ac_fn_c_try_link "$LINENO"; then :
21681 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21683 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21685 rm -f core conftest.err conftest.$ac_objext \
21686 conftest$ac_exeext conftest.$ac_ext
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21692 /* pthread test headers */
21693 #include <pthread.h>
21694 #if HAVE_PTHREADS < 7
21698 #define NULL (void*)0
21701 static void *task(p)
21704 return (void *) (p == NULL);
21708 int main(argc, argv)
21713 /* pthread test function */
21714 #ifndef PTHREAD_CREATE_DETACHED
21715 #define PTHREAD_CREATE_DETACHED 1
21719 int detach = PTHREAD_CREATE_DETACHED;
21721 #if HAVE_PTHREADS > 4
21722 /* Final pthreads */
21723 pthread_attr_t attr;
21725 status = pthread_attr_init(&attr);
21726 if( status ) return status;
21728 #if HAVE_PTHREADS < 7
21729 status = pthread_attr_setdetachstate(&attr, &detach);
21730 if( status < 0 ) status = errno;
21732 status = pthread_attr_setdetachstate(&attr, detach);
21734 if( status ) return status;
21735 status = pthread_create( &t, &attr, task, NULL );
21736 #if HAVE_PTHREADS < 7
21737 if( status < 0 ) status = errno;
21739 if( status ) return status;
21741 /* Draft 4 pthreads */
21742 status = pthread_create( &t, pthread_attr_default, task, NULL );
21743 if( status ) return errno;
21745 /* give thread a chance to complete */
21746 /* it should remain joinable and hence detachable */
21749 status = pthread_detach( &t );
21750 if( status ) return errno;
21753 #ifdef HAVE_LINUX_THREADS
21754 pthread_kill_other_threads_np();
21762 if ac_fn_c_try_run "$LINENO"; then :
21763 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21765 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21768 conftest.$ac_objext conftest.beam conftest.$ac_ext
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
21777 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
21779 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
21780 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
21781 ol_link_threads=posix
21785 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
21786 if test "$ol_link_threads" = no ; then
21787 # try -lpthreads -lmach -lexc
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
21789 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
21790 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
21791 $as_echo_n "(cached) " >&6
21796 LIBS="-lpthreads -lmach -lexc $LIBS"
21798 if test "$cross_compiling" = yes; then :
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 /* pthread test headers */
21803 #include <pthread.h>
21804 #if HAVE_PTHREADS < 7
21808 #define NULL (void*)0
21811 static void *task(p)
21814 return (void *) (p == NULL);
21821 /* pthread test function */
21822 #ifndef PTHREAD_CREATE_DETACHED
21823 #define PTHREAD_CREATE_DETACHED 1
21827 int detach = PTHREAD_CREATE_DETACHED;
21829 #if HAVE_PTHREADS > 4
21830 /* Final pthreads */
21831 pthread_attr_t attr;
21833 status = pthread_attr_init(&attr);
21834 if( status ) return status;
21836 #if HAVE_PTHREADS < 7
21837 status = pthread_attr_setdetachstate(&attr, &detach);
21838 if( status < 0 ) status = errno;
21840 status = pthread_attr_setdetachstate(&attr, detach);
21842 if( status ) return status;
21843 status = pthread_create( &t, &attr, task, NULL );
21844 #if HAVE_PTHREADS < 7
21845 if( status < 0 ) status = errno;
21847 if( status ) return status;
21849 /* Draft 4 pthreads */
21850 status = pthread_create( &t, pthread_attr_default, task, NULL );
21851 if( status ) return errno;
21853 /* give thread a chance to complete */
21854 /* it should remain joinable and hence detachable */
21857 status = pthread_detach( &t );
21858 if( status ) return errno;
21861 #ifdef HAVE_LINUX_THREADS
21862 pthread_kill_other_threads_np();
21871 if ac_fn_c_try_link "$LINENO"; then :
21872 ol_cv_pthread_lpthreads_lmach_lexc=yes
21874 ol_cv_pthread_lpthreads_lmach_lexc=no
21876 rm -f core conftest.err conftest.$ac_objext \
21877 conftest$ac_exeext conftest.$ac_ext
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h. */
21883 /* pthread test headers */
21884 #include <pthread.h>
21885 #if HAVE_PTHREADS < 7
21889 #define NULL (void*)0
21892 static void *task(p)
21895 return (void *) (p == NULL);
21899 int main(argc, argv)
21904 /* pthread test function */
21905 #ifndef PTHREAD_CREATE_DETACHED
21906 #define PTHREAD_CREATE_DETACHED 1
21910 int detach = PTHREAD_CREATE_DETACHED;
21912 #if HAVE_PTHREADS > 4
21913 /* Final pthreads */
21914 pthread_attr_t attr;
21916 status = pthread_attr_init(&attr);
21917 if( status ) return status;
21919 #if HAVE_PTHREADS < 7
21920 status = pthread_attr_setdetachstate(&attr, &detach);
21921 if( status < 0 ) status = errno;
21923 status = pthread_attr_setdetachstate(&attr, detach);
21925 if( status ) return status;
21926 status = pthread_create( &t, &attr, task, NULL );
21927 #if HAVE_PTHREADS < 7
21928 if( status < 0 ) status = errno;
21930 if( status ) return status;
21932 /* Draft 4 pthreads */
21933 status = pthread_create( &t, pthread_attr_default, task, NULL );
21934 if( status ) return errno;
21936 /* give thread a chance to complete */
21937 /* it should remain joinable and hence detachable */
21940 status = pthread_detach( &t );
21941 if( status ) return errno;
21944 #ifdef HAVE_LINUX_THREADS
21945 pthread_kill_other_threads_np();
21953 if ac_fn_c_try_run "$LINENO"; then :
21954 ol_cv_pthread_lpthreads_lmach_lexc=yes
21956 ol_cv_pthread_lpthreads_lmach_lexc=no
21958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21959 conftest.$ac_objext conftest.beam conftest.$ac_ext
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
21968 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
21970 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
21971 ol_link_pthreads="-lpthreads -lmach -lexc"
21972 ol_link_threads=posix
21976 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
21977 if test "$ol_link_threads" = no ; then
21978 # try -lpthreads -lexc
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
21980 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
21981 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
21982 $as_echo_n "(cached) " >&6
21987 LIBS="-lpthreads -lexc $LIBS"
21989 if test "$cross_compiling" = yes; then :
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h. */
21993 /* pthread test headers */
21994 #include <pthread.h>
21995 #if HAVE_PTHREADS < 7
21999 #define NULL (void*)0
22002 static void *task(p)
22005 return (void *) (p == NULL);
22012 /* pthread test function */
22013 #ifndef PTHREAD_CREATE_DETACHED
22014 #define PTHREAD_CREATE_DETACHED 1
22018 int detach = PTHREAD_CREATE_DETACHED;
22020 #if HAVE_PTHREADS > 4
22021 /* Final pthreads */
22022 pthread_attr_t attr;
22024 status = pthread_attr_init(&attr);
22025 if( status ) return status;
22027 #if HAVE_PTHREADS < 7
22028 status = pthread_attr_setdetachstate(&attr, &detach);
22029 if( status < 0 ) status = errno;
22031 status = pthread_attr_setdetachstate(&attr, detach);
22033 if( status ) return status;
22034 status = pthread_create( &t, &attr, task, NULL );
22035 #if HAVE_PTHREADS < 7
22036 if( status < 0 ) status = errno;
22038 if( status ) return status;
22040 /* Draft 4 pthreads */
22041 status = pthread_create( &t, pthread_attr_default, task, NULL );
22042 if( status ) return errno;
22044 /* give thread a chance to complete */
22045 /* it should remain joinable and hence detachable */
22048 status = pthread_detach( &t );
22049 if( status ) return errno;
22052 #ifdef HAVE_LINUX_THREADS
22053 pthread_kill_other_threads_np();
22062 if ac_fn_c_try_link "$LINENO"; then :
22063 ol_cv_pthread_lpthreads_lexc=yes
22065 ol_cv_pthread_lpthreads_lexc=no
22067 rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
22070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h. */
22074 /* pthread test headers */
22075 #include <pthread.h>
22076 #if HAVE_PTHREADS < 7
22080 #define NULL (void*)0
22083 static void *task(p)
22086 return (void *) (p == NULL);
22090 int main(argc, argv)
22095 /* pthread test function */
22096 #ifndef PTHREAD_CREATE_DETACHED
22097 #define PTHREAD_CREATE_DETACHED 1
22101 int detach = PTHREAD_CREATE_DETACHED;
22103 #if HAVE_PTHREADS > 4
22104 /* Final pthreads */
22105 pthread_attr_t attr;
22107 status = pthread_attr_init(&attr);
22108 if( status ) return status;
22110 #if HAVE_PTHREADS < 7
22111 status = pthread_attr_setdetachstate(&attr, &detach);
22112 if( status < 0 ) status = errno;
22114 status = pthread_attr_setdetachstate(&attr, detach);
22116 if( status ) return status;
22117 status = pthread_create( &t, &attr, task, NULL );
22118 #if HAVE_PTHREADS < 7
22119 if( status < 0 ) status = errno;
22121 if( status ) return status;
22123 /* Draft 4 pthreads */
22124 status = pthread_create( &t, pthread_attr_default, task, NULL );
22125 if( status ) return errno;
22127 /* give thread a chance to complete */
22128 /* it should remain joinable and hence detachable */
22131 status = pthread_detach( &t );
22132 if( status ) return errno;
22135 #ifdef HAVE_LINUX_THREADS
22136 pthread_kill_other_threads_np();
22144 if ac_fn_c_try_run "$LINENO"; then :
22145 ol_cv_pthread_lpthreads_lexc=yes
22147 ol_cv_pthread_lpthreads_lexc=no
22149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22150 conftest.$ac_objext conftest.beam conftest.$ac_ext
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
22159 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
22161 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22162 ol_link_pthreads="-lpthreads -lexc"
22163 ol_link_threads=posix
22168 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22169 if test "$ol_link_threads" = no ; then
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
22172 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
22173 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
22174 $as_echo_n "(cached) " >&6
22179 LIBS="-lpthreads $LIBS"
22181 if test "$cross_compiling" = yes; then :
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22185 /* pthread test headers */
22186 #include <pthread.h>
22187 #if HAVE_PTHREADS < 7
22191 #define NULL (void*)0
22194 static void *task(p)
22197 return (void *) (p == NULL);
22204 /* pthread test function */
22205 #ifndef PTHREAD_CREATE_DETACHED
22206 #define PTHREAD_CREATE_DETACHED 1
22210 int detach = PTHREAD_CREATE_DETACHED;
22212 #if HAVE_PTHREADS > 4
22213 /* Final pthreads */
22214 pthread_attr_t attr;
22216 status = pthread_attr_init(&attr);
22217 if( status ) return status;
22219 #if HAVE_PTHREADS < 7
22220 status = pthread_attr_setdetachstate(&attr, &detach);
22221 if( status < 0 ) status = errno;
22223 status = pthread_attr_setdetachstate(&attr, detach);
22225 if( status ) return status;
22226 status = pthread_create( &t, &attr, task, NULL );
22227 #if HAVE_PTHREADS < 7
22228 if( status < 0 ) status = errno;
22230 if( status ) return status;
22232 /* Draft 4 pthreads */
22233 status = pthread_create( &t, pthread_attr_default, task, NULL );
22234 if( status ) return errno;
22236 /* give thread a chance to complete */
22237 /* it should remain joinable and hence detachable */
22240 status = pthread_detach( &t );
22241 if( status ) return errno;
22244 #ifdef HAVE_LINUX_THREADS
22245 pthread_kill_other_threads_np();
22254 if ac_fn_c_try_link "$LINENO"; then :
22255 ol_cv_pthread_lib_lpthreads=yes
22257 ol_cv_pthread_lib_lpthreads=no
22259 rm -f core conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22266 /* pthread test headers */
22267 #include <pthread.h>
22268 #if HAVE_PTHREADS < 7
22272 #define NULL (void*)0
22275 static void *task(p)
22278 return (void *) (p == NULL);
22282 int main(argc, argv)
22287 /* pthread test function */
22288 #ifndef PTHREAD_CREATE_DETACHED
22289 #define PTHREAD_CREATE_DETACHED 1
22293 int detach = PTHREAD_CREATE_DETACHED;
22295 #if HAVE_PTHREADS > 4
22296 /* Final pthreads */
22297 pthread_attr_t attr;
22299 status = pthread_attr_init(&attr);
22300 if( status ) return status;
22302 #if HAVE_PTHREADS < 7
22303 status = pthread_attr_setdetachstate(&attr, &detach);
22304 if( status < 0 ) status = errno;
22306 status = pthread_attr_setdetachstate(&attr, detach);
22308 if( status ) return status;
22309 status = pthread_create( &t, &attr, task, NULL );
22310 #if HAVE_PTHREADS < 7
22311 if( status < 0 ) status = errno;
22313 if( status ) return status;
22315 /* Draft 4 pthreads */
22316 status = pthread_create( &t, pthread_attr_default, task, NULL );
22317 if( status ) return errno;
22319 /* give thread a chance to complete */
22320 /* it should remain joinable and hence detachable */
22323 status = pthread_detach( &t );
22324 if( status ) return errno;
22327 #ifdef HAVE_LINUX_THREADS
22328 pthread_kill_other_threads_np();
22336 if ac_fn_c_try_run "$LINENO"; then :
22337 ol_cv_pthread_lib_lpthreads=yes
22339 ol_cv_pthread_lib_lpthreads=no
22341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342 conftest.$ac_objext conftest.beam conftest.$ac_ext
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
22351 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
22353 if test $ol_cv_pthread_lib_lpthreads = yes ; then
22354 ol_link_pthreads="-lpthreads"
22355 ol_link_threads=posix
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
22361 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
22363 if test $ol_link_threads != no ; then
22364 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
22366 save_CPPFLAGS="$CPPFLAGS"
22368 LIBS="$LTHREAD_LIBS $LIBS"
22370 for ac_func in sched_yield pthread_yield thr_yield
22372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22374 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22375 cat >>confdefs.h <<_ACEOF
22376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22383 if test $ac_cv_func_sched_yield = no &&
22384 test $ac_cv_func_pthread_yield = no &&
22385 test $ac_cv_func_thr_yield = no ; then
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22387 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22388 if ${ac_cv_lib_rt_sched_yield+:} false; then :
22389 $as_echo_n "(cached) " >&6
22391 ac_check_lib_save_LIBS=$LIBS
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22396 /* Override any GCC internal prototype to avoid an error.
22397 Use char because int might match the return type of a GCC
22398 builtin and then its argument prototype would still apply. */
22402 char sched_yield ();
22406 return sched_yield ();
22411 if ac_fn_c_try_link "$LINENO"; then :
22412 ac_cv_lib_rt_sched_yield=yes
22414 ac_cv_lib_rt_sched_yield=no
22416 rm -f core conftest.err conftest.$ac_objext \
22417 conftest$ac_exeext conftest.$ac_ext
22418 LIBS=$ac_check_lib_save_LIBS
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22421 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22422 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
22423 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
22425 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22427 ac_cv_func_sched_yield=yes
22429 ac_cv_func_sched_yield=no
22433 if test $ac_cv_func_sched_yield = no &&
22434 test $ac_cv_func_pthread_yield = no &&
22435 test "$ac_cv_func_thr_yield" = no ; then
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
22437 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
22440 for ac_func in pthread_kill
22442 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
22443 if test "x$ac_cv_func_pthread_kill" = xyes; then :
22444 cat >>confdefs.h <<_ACEOF
22445 #define HAVE_PTHREAD_KILL 1
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
22453 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
22454 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
22455 $as_echo_n "(cached) " >&6
22458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22459 /* end confdefs.h. */
22461 #include <pthread.h>
22462 pthread_rwlock_t rwlock;
22467 pthread_rwlock_destroy(&rwlock);
22472 if ac_fn_c_try_link "$LINENO"; then :
22473 ol_cv_func_pthread_rwlock_destroy=yes
22475 ol_cv_func_pthread_rwlock_destroy=no
22477 rm -f core conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
22482 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
22483 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
22485 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
22490 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
22491 if ${ol_cv_func_pthread_detach+:} false; then :
22492 $as_echo_n "(cached) " >&6
22495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h. */
22498 #include <pthread.h>
22500 #define NULL (void*)0
22506 pthread_detach(NULL);
22511 if ac_fn_c_try_link "$LINENO"; then :
22512 ol_cv_func_pthread_detach=yes
22514 ol_cv_func_pthread_detach=no
22516 rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext conftest.$ac_ext
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
22521 $as_echo "$ol_cv_func_pthread_detach" >&6; }
22523 if test $ol_cv_func_pthread_detach = no ; then
22524 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
22528 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
22532 pthread_setconcurrency \
22533 pthread_getconcurrency \
22534 thr_setconcurrency \
22535 thr_getconcurrency \
22538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22541 cat >>confdefs.h <<_ACEOF
22542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22550 for ac_func in pthread_kill_other_threads_np
22552 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
22553 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
22562 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
22563 if ${ol_cv_sys_linux_threads+:} false; then :
22564 $as_echo_n "(cached) " >&6
22566 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
22569 $as_echo "$ol_cv_sys_linux_threads" >&6; }
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
22575 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
22576 if ${ol_cv_linux_threads+:} false; then :
22577 $as_echo_n "(cached) " >&6
22580 if test $ol_cv_header_linux_threads = yes &&
22581 test $ol_cv_sys_linux_threads = yes; then
22582 ol_cv_linux_threads=yes
22583 elif test $ol_cv_header_linux_threads = no &&
22584 test $ol_cv_sys_linux_threads = no; then
22585 ol_cv_linux_threads=no
22587 ol_cv_linux_threads=error
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
22592 $as_echo "$ol_cv_linux_threads" >&6; }
22595 if test $ol_cv_linux_threads = error; then
22596 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
22600 $as_echo_n "checking if pthread_create() works... " >&6; }
22601 if ${ol_cv_pthread_create_works+:} false; then :
22602 $as_echo_n "(cached) " >&6
22605 if test "$cross_compiling" = yes; then :
22606 ol_cv_pthread_create_works=yes
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609 /* end confdefs.h. */
22612 /* pthread test headers */
22613 #include <pthread.h>
22614 #if HAVE_PTHREADS < 7
22618 #define NULL (void*)0
22621 static void *task(p)
22624 return (void *) (p == NULL);
22628 int main(argc, argv)
22633 /* pthread test function */
22634 #ifndef PTHREAD_CREATE_DETACHED
22635 #define PTHREAD_CREATE_DETACHED 1
22639 int detach = PTHREAD_CREATE_DETACHED;
22641 #if HAVE_PTHREADS > 4
22642 /* Final pthreads */
22643 pthread_attr_t attr;
22645 status = pthread_attr_init(&attr);
22646 if( status ) return status;
22648 #if HAVE_PTHREADS < 7
22649 status = pthread_attr_setdetachstate(&attr, &detach);
22650 if( status < 0 ) status = errno;
22652 status = pthread_attr_setdetachstate(&attr, detach);
22654 if( status ) return status;
22655 status = pthread_create( &t, &attr, task, NULL );
22656 #if HAVE_PTHREADS < 7
22657 if( status < 0 ) status = errno;
22659 if( status ) return status;
22661 /* Draft 4 pthreads */
22662 status = pthread_create( &t, pthread_attr_default, task, NULL );
22663 if( status ) return errno;
22665 /* give thread a chance to complete */
22666 /* it should remain joinable and hence detachable */
22669 status = pthread_detach( &t );
22670 if( status ) return errno;
22673 #ifdef HAVE_LINUX_THREADS
22674 pthread_kill_other_threads_np();
22682 if ac_fn_c_try_run "$LINENO"; then :
22683 ol_cv_pthread_create_works=yes
22685 ol_cv_pthread_create_works=no
22687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22688 conftest.$ac_objext conftest.beam conftest.$ac_ext
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
22693 $as_echo "$ol_cv_pthread_create_works" >&6; }
22695 if test $ol_cv_pthread_create_works = no ; then
22696 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
22699 ol_replace_broken_yield=no
22701 if test $ol_replace_broken_yield = yes ; then
22703 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
22707 if test x$ol_with_yielding_select = xauto ; then
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
22709 $as_echo_n "checking if select yields when using pthreads... " >&6; }
22710 if ${ol_cv_pthread_select_yields+:} false; then :
22711 $as_echo_n "(cached) " >&6
22714 if test "$cross_compiling" = yes; then :
22715 ol_cv_pthread_select_yields=cross
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22720 #include <sys/types.h>
22721 #include <sys/time.h>
22722 #include <unistd.h>
22723 #include <pthread.h>
22725 #define NULL (void*) 0
22728 static int fildes[2];
22730 static void *task(p)
22742 FD_SET(fildes[0], &rfds);
22744 /* we're not interested in any fds */
22745 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
22752 exit(0); /* if we exit here, the select blocked the whole process */
22755 int main(argc, argv)
22761 /* create a pipe to select */
22762 if(pipe(&fildes[0])) {
22767 #ifdef HAVE_PTHREAD_SETCONCURRENCY
22768 (void) pthread_setconcurrency(2);
22770 #ifdef HAVE_THR_SETCONCURRENCY
22771 /* Set Solaris LWP concurrency to 2 */
22772 thr_setconcurrency(2);
22776 #if HAVE_PTHREADS < 6
22777 pthread_create(&t, pthread_attr_default, task, NULL);
22779 pthread_create(&t, NULL, task, NULL);
22782 /* make sure task runs first */
22783 #ifdef HAVE_THR_YIELD
22785 #elif defined( HAVE_SCHED_YIELD )
22787 #elif defined( HAVE_PTHREAD_YIELD )
22794 if ac_fn_c_try_run "$LINENO"; then :
22795 ol_cv_pthread_select_yields=no
22797 ol_cv_pthread_select_yields=yes
22799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22800 conftest.$ac_objext conftest.beam conftest.$ac_ext
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
22805 $as_echo "$ol_cv_pthread_select_yields" >&6; }
22807 if test $ol_cv_pthread_select_yields = cross ; then
22808 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
22811 if test $ol_cv_pthread_select_yields = yes ; then
22812 ol_with_yielding_select=yes
22816 CPPFLAGS="$save_CPPFLAGS"
22819 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
22823 if test $ol_with_threads = posix ; then
22824 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
22829 case $ol_with_threads in auto | yes | mach)
22831 for ac_header in mach/cthreads.h cthreads.h
22833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22836 cat >>confdefs.h <<_ACEOF
22837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22844 if test $ac_cv_header_mach_cthreads_h = yes ; then
22845 ol_with_threads=found
22847 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22848 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22849 ol_link_threads=yes
22853 if test $ol_link_threads = no ; then
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
22855 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
22856 if ${ol_cv_cthread_all_load+:} false; then :
22857 $as_echo_n "(cached) " >&6
22861 LIBS="-all_load $LIBS"
22862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22863 /* end confdefs.h. */
22864 #include <mach/cthreads.h>
22869 cthread_fork((void *)0, (void *)0);
22875 if ac_fn_c_try_link "$LINENO"; then :
22876 ol_cv_cthread_all_load=yes
22878 ol_cv_cthread_all_load=no
22880 rm -f core conftest.err conftest.$ac_objext \
22881 conftest$ac_exeext conftest.$ac_ext
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
22886 $as_echo "$ol_cv_cthread_all_load" >&6; }
22888 if test $ol_cv_cthread_all_load = yes ; then
22889 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
22890 ol_link_threads=mach
22891 ol_with_threads=found
22895 elif test $ac_cv_header_cthreads_h = yes ; then
22897 ol_with_threads=found
22900 LIBS="$LIBS -lthreads"
22901 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22902 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22903 ol_link_threads=yes
22908 if test $ol_link_threads = yes ; then
22909 LTHREAD_LIBS="-lthreads"
22910 ol_link_threads=mach
22911 ol_with_threads=found
22913 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22916 elif test $ol_with_threads = mach ; then
22917 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
22920 if test $ol_link_threads = mach ; then
22922 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
22924 elif test $ol_with_threads = found ; then
22925 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22930 case $ol_with_threads in auto | yes | pth)
22932 for ac_header in pth.h
22934 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
22935 if test "x$ac_cv_header_pth_h" = xyes; then :
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_PTH_H 1
22945 if test $ac_cv_header_pth_h = yes ; then
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
22947 $as_echo_n "checking for pth_version in -lpth... " >&6; }
22948 if ${ac_cv_lib_pth_pth_version+:} false; then :
22949 $as_echo_n "(cached) " >&6
22951 ac_check_lib_save_LIBS=$LIBS
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22956 /* Override any GCC internal prototype to avoid an error.
22957 Use char because int might match the return type of a GCC
22958 builtin and then its argument prototype would still apply. */
22962 char pth_version ();
22966 return pth_version ();
22971 if ac_fn_c_try_link "$LINENO"; then :
22972 ac_cv_lib_pth_pth_version=yes
22974 ac_cv_lib_pth_pth_version=no
22976 rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
22978 LIBS=$ac_check_lib_save_LIBS
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
22981 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
22982 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
22989 if test $have_pth = yes ; then
22991 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
22993 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
22994 ol_link_threads=pth
22995 ol_with_threads=found
22997 if test x$ol_with_yielding_select = xauto ; then
22998 ol_with_yielding_select=yes
23005 case $ol_with_threads in auto | yes | lwp)
23007 for ac_header in thread.h synch.h
23009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23010 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23012 cat >>confdefs.h <<_ACEOF
23013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23020 if test $ac_cv_header_thread_h = yes &&
23021 test $ac_cv_header_synch_h = yes ; then
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
23023 $as_echo_n "checking for thr_create in -lthread... " >&6; }
23024 if ${ac_cv_lib_thread_thr_create+:} false; then :
23025 $as_echo_n "(cached) " >&6
23027 ac_check_lib_save_LIBS=$LIBS
23028 LIBS="-lthread $LIBS"
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23032 /* Override any GCC internal prototype to avoid an error.
23033 Use char because int might match the return type of a GCC
23034 builtin and then its argument prototype would still apply. */
23038 char thr_create ();
23042 return thr_create ();
23047 if ac_fn_c_try_link "$LINENO"; then :
23048 ac_cv_lib_thread_thr_create=yes
23050 ac_cv_lib_thread_thr_create=no
23052 rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23054 LIBS=$ac_check_lib_save_LIBS
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
23057 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
23058 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
23065 if test $have_thr = yes ; then
23067 $as_echo "#define HAVE_THR 1" >>confdefs.h
23069 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
23070 ol_link_threads=thr
23072 if test x$ol_with_yielding_select = xauto ; then
23073 ol_with_yielding_select=yes
23077 thr_setconcurrency \
23078 thr_getconcurrency \
23081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23083 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23084 cat >>confdefs.h <<_ACEOF
23085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23094 for ac_header in lwp/lwp.h
23096 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23097 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23098 cat >>confdefs.h <<_ACEOF
23099 #define HAVE_LWP_LWP_H 1
23106 if test $ac_cv_header_lwp_lwp_h = yes ; then
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
23108 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
23109 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
23110 $as_echo_n "(cached) " >&6
23112 ac_check_lib_save_LIBS=$LIBS
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h. */
23117 /* Override any GCC internal prototype to avoid an error.
23118 Use char because int might match the return type of a GCC
23119 builtin and then its argument prototype would still apply. */
23123 char lwp_create ();
23127 return lwp_create ();
23132 if ac_fn_c_try_link "$LINENO"; then :
23133 ac_cv_lib_lwp_lwp_create=yes
23135 ac_cv_lib_lwp_lwp_create=no
23137 rm -f core conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
23139 LIBS=$ac_check_lib_save_LIBS
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
23142 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
23143 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
23150 if test $have_lwp = yes ; then
23152 $as_echo "#define HAVE_LWP 1" >>confdefs.h
23154 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
23155 ol_link_threads=lwp
23157 if test x$ol_with_yielding_select = xauto ; then
23158 ol_with_yielding_select=no
23165 if test $ol_with_yielding_select = yes ; then
23167 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
23171 if test $ol_with_threads = manual ; then
23172 ol_link_threads=yes
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
23175 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
23177 for ac_header in pthread.h sched.h
23179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23180 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23182 cat >>confdefs.h <<_ACEOF
23183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23190 for ac_func in sched_yield pthread_yield
23192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23193 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23194 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23195 cat >>confdefs.h <<_ACEOF
23196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23204 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23205 if ${ol_cv_header_linux_threads+:} false; then :
23206 $as_echo_n "(cached) " >&6
23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23210 #include <pthread.h>
23212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23213 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23214 ol_cv_header_linux_threads=yes
23216 ol_cv_header_linux_threads=no
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23223 $as_echo "$ol_cv_header_linux_threads" >&6; }
23224 if test $ol_cv_header_linux_threads = yes; then
23226 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23231 for ac_header in mach/cthreads.h
23233 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23234 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
23235 cat >>confdefs.h <<_ACEOF
23236 #define HAVE_MACH_CTHREADS_H 1
23243 for ac_header in lwp/lwp.h
23245 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23246 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23247 cat >>confdefs.h <<_ACEOF
23248 #define HAVE_LWP_LWP_H 1
23255 for ac_header in thread.h synch.h
23257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23260 cat >>confdefs.h <<_ACEOF
23261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23270 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
23272 $as_echo "#define REENTRANT 1" >>confdefs.h
23275 $as_echo "#define _REENTRANT 1" >>confdefs.h
23278 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
23281 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
23284 $as_echo "#define THREADSAFE 1" >>confdefs.h
23287 $as_echo "#define _THREADSAFE 1" >>confdefs.h
23290 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
23294 $as_echo_n "checking for thread specific errno... " >&6; }
23295 if ${ol_cv_errno_thread_specific+:} false; then :
23296 $as_echo_n "(cached) " >&6
23299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h. */
23310 if ac_fn_c_try_link "$LINENO"; then :
23311 ol_cv_errno_thread_specific=yes
23313 ol_cv_errno_thread_specific=no
23315 rm -f core conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
23320 $as_echo "$ol_cv_errno_thread_specific" >&6; }
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
23323 $as_echo_n "checking for thread specific h_errno... " >&6; }
23324 if ${ol_cv_h_errno_thread_specific+:} false; then :
23325 $as_echo_n "(cached) " >&6
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h. */
23339 if ac_fn_c_try_link "$LINENO"; then :
23340 ol_cv_h_errno_thread_specific=yes
23342 ol_cv_h_errno_thread_specific=no
23344 rm -f core conftest.err conftest.$ac_objext \
23345 conftest$ac_exeext conftest.$ac_ext
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
23349 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
23351 if test $ol_cv_errno_thread_specific != yes ||
23352 test $ol_cv_h_errno_thread_specific != yes ; then
23353 LIBS="$LTHREAD_LIBS $LIBS"
23359 if test $ol_link_threads = no ; then
23360 if test $ol_with_threads = yes ; then
23361 as_fn_error $? "no suitable thread support" "$LINENO" 5
23364 if test $ol_with_threads = auto ; then
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
23366 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
23371 $as_echo "#define NO_THREADS 1" >>confdefs.h
23379 if test $ol_link_threads != no ; then
23381 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
23385 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23386 case "$ol_with_threads" in
23392 ol_found_pthreads=yes
23397 ac_cpp='$CPP $CPPFLAGS'
23398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23407 case "$ol_found_pthreads" in
23410 LIBS="$LTHREAD_LIBS $LIBS"
23411 saved_CFLAGS="$CFLAGS"
23412 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23413 for ac_func in sem_timedwait
23415 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
23416 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
23417 cat >>confdefs.h <<_ACEOF
23418 #define HAVE_SEM_TIMEDWAIT 1
23425 { saved_LIBS=; unset saved_LIBS;}
23426 CFLAGS="$saved_CFLAGS"
23427 { saved_CFLAGS=; unset saved_CFLAGS;}
23428 case "$ac_cv_func_sem_timedwait" in
23430 PTHREAD_LIBS="$LTHREAD_LIBS"
23436 case "$have_pthreads" in
23438 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
23440 LIBS="$LTHREAD_LIBS $LIBS"
23441 saved_CFLAGS="$CFLAGS"
23442 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23443 # The cast to long int works around a bug in the HP C Compiler
23444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23446 # This bug is HP SR number 8606223364.
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
23448 $as_echo_n "checking size of pthread_t... " >&6; }
23449 if ${ac_cv_sizeof_pthread_t+:} false; then :
23450 $as_echo_n "(cached) " >&6
23452 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
23453 $ac_includes_default
23454 #include <pthread.h>
23460 if test "$ac_cv_type_pthread_t" = yes; then
23461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23463 as_fn_error 77 "cannot compute sizeof (pthread_t)
23464 See \`config.log' for more details" "$LINENO" 5; }
23466 ac_cv_sizeof_pthread_t=0
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
23472 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
23476 cat >>confdefs.h <<_ACEOF
23477 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
23481 LIBISC_PTHREADS_NOTHREADS=pthreads
23483 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
23486 # We'd like to use sigwait() too
23488 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
23489 if test "x$ac_cv_func_sigwait" = xyes; then :
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
23493 $as_echo_n "checking for sigwait in -lc... " >&6; }
23494 if ${ac_cv_lib_c_sigwait+:} false; then :
23495 $as_echo_n "(cached) " >&6
23497 ac_check_lib_save_LIBS=$LIBS
23499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23500 /* end confdefs.h. */
23502 /* Override any GCC internal prototype to avoid an error.
23503 Use char because int might match the return type of a GCC
23504 builtin and then its argument prototype would still apply. */
23517 if ac_fn_c_try_link "$LINENO"; then :
23518 ac_cv_lib_c_sigwait=yes
23520 ac_cv_lib_c_sigwait=no
23522 rm -f core conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23524 LIBS=$ac_check_lib_save_LIBS
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
23527 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
23528 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
23532 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
23533 if ${ac_cv_lib_pthread_sigwait+:} false; then :
23534 $as_echo_n "(cached) " >&6
23536 ac_check_lib_save_LIBS=$LIBS
23537 LIBS="-lpthread $LIBS"
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23541 /* Override any GCC internal prototype to avoid an error.
23542 Use char because int might match the return type of a GCC
23543 builtin and then its argument prototype would still apply. */
23556 if ac_fn_c_try_link "$LINENO"; then :
23557 ac_cv_lib_pthread_sigwait=yes
23559 ac_cv_lib_pthread_sigwait=no
23561 rm -f core conftest.err conftest.$ac_objext \
23562 conftest$ac_exeext conftest.$ac_ext
23563 LIBS=$ac_check_lib_save_LIBS
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
23566 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
23567 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
23571 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
23572 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
23573 $as_echo_n "(cached) " >&6
23575 ac_check_lib_save_LIBS=$LIBS
23576 LIBS="-lpthread $LIBS"
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h. */
23580 /* Override any GCC internal prototype to avoid an error.
23581 Use char because int might match the return type of a GCC
23582 builtin and then its argument prototype would still apply. */
23590 return _Psigwait ();
23595 if ac_fn_c_try_link "$LINENO"; then :
23596 ac_cv_lib_pthread__Psigwait=yes
23598 ac_cv_lib_pthread__Psigwait=no
23600 rm -f core conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
23602 LIBS=$ac_check_lib_save_LIBS
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
23605 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
23606 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
23622 case "$host:$have_sigwait" in
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
23625 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
23626 if ${ac_cv_lib_c_r_sigwait+:} false; then :
23627 $as_echo_n "(cached) " >&6
23629 ac_check_lib_save_LIBS=$LIBS
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23634 /* Override any GCC internal prototype to avoid an error.
23635 Use char because int might match the return type of a GCC
23636 builtin and then its argument prototype would still apply. */
23649 if ac_fn_c_try_link "$LINENO"; then :
23650 ac_cv_lib_c_r_sigwait=yes
23652 ac_cv_lib_c_r_sigwait=no
23654 rm -f core conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
23656 LIBS=$ac_check_lib_save_LIBS
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
23659 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
23660 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
23666 case "$have_sigwait" in
23668 ac_cv_func_sigwait=yes
23670 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23674 for ac_func in pthread_attr_getstacksize
23676 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
23677 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
23678 cat >>confdefs.h <<_ACEOF
23679 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
23685 for ac_func in pthread_attr_setstacksize sysconf
23687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23689 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23690 cat >>confdefs.h <<_ACEOF
23691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23699 *-freebsd5.[012]|*-freebsd5.[012].*)
23701 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
23703 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23706 *-bsdi3.*|*-bsdi4.0*)
23708 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
23713 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
23717 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
23719 for ac_func in pthread_setconcurrency
23721 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23722 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
23723 cat >>confdefs.h <<_ACEOF
23724 #define HAVE_PTHREAD_SETCONCURRENCY 1
23730 case "$ac_cv_func_pthread_setconcurrency" in
23733 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23737 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23739 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
23743 hack_shutup_pthreadonceinit=no
23746 hack_shutup_pthreadonceinit=yes
23749 hack_shutup_pthreadonceinit=yes
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
23753 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
23754 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
23755 $as_echo_n "(cached) " >&6
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23760 #include <pthread.h>
23766 static pthread_once_t once_test =
23774 if ac_fn_c_try_compile "$LINENO"; then :
23775 ntp_cv_braces_around_pthread_once_init=no
23777 ntp_cv_braces_around_pthread_once_init=yes
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
23784 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
23785 case "$ntp_cv_braces_around_pthread_once_init" in
23787 hack_shutup_pthreadonceinit=yes
23791 case "$hack_shutup_pthreadonceinit" in
23794 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
23798 { saved_LIBS=; unset saved_LIBS;}
23799 CFLAGS="$saved_CFLAGS"
23800 { saved_CFLAGS=; unset saved_CFLAGS;}
23803 LIBISC_PTHREADS_NOTHREADS=nothreads
23807 if test "$have_pthreads" != "no"; then
23821 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
23824 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
23825 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
23826 $as_echo_n "(cached) " >&6
23828 if test "$cross_compiling" = yes; then :
23829 ntp_cv_vsnprintf_percent_m=no
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h. */
23835 #include <stdarg.h>
23838 #include <string.h>
23840 int call_vsnprintf(
23847 int call_vsnprintf(
23858 rc = vsnprintf(dst, sz, fmt, ap);
23872 strcpy(sbuf, strerror(ENOENT));
23874 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
23876 return strcmp(sbuf, pbuf);
23883 if ac_fn_c_try_run "$LINENO"; then :
23884 ntp_cv_vsnprintf_percent_m=yes
23886 ntp_cv_vsnprintf_percent_m=no
23888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23889 conftest.$ac_objext conftest.beam conftest.$ac_ext
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
23895 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
23896 case "$ntp_cv_vsnprintf_percent_m" in
23899 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
23904 for ac_header in sys/clockctl.h
23906 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
23907 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
23908 cat >>confdefs.h <<_ACEOF
23909 #define HAVE_SYS_CLOCKCTL_H 1
23917 # Check whether --enable-clockctl was given.
23918 if test "${enable_clockctl+set}" = set; then :
23919 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
23921 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
23927 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
23929 $as_echo "$ntp_use_dev_clockctl" >&6; }
23932 for ac_header in sys/capability.h sys/prctl.h
23934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23935 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23937 cat >>confdefs.h <<_ACEOF
23938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
23947 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
23949 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
23953 ntp_have_linuxcaps=no
23955 *) ntp_have_linuxcaps=yes
23960 ntp_have_linuxcaps=no
23964 # Check whether --enable-linuxcaps was given.
23965 if test "${enable_linuxcaps+set}" = set; then :
23966 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
23972 $as_echo "$ntp_have_linuxcaps" >&6; }
23974 case "$ntp_have_linuxcaps" in
23977 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
23984 for ac_header in priv.h
23986 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
23987 if test "x$ac_cv_header_priv_h" = xyes; then :
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_PRIV_H 1
23996 case "$ac_cv_header_priv_h" in
24000 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
24001 if test "x$ac_cv_func_setppriv" = xyes; then :
24002 ntp_have_solarisprivs=yes
24004 ntp_have_solarisprivs=no
24012 # Check whether --enable-solarisprivs was given.
24013 if test "${enable_solarisprivs+set}" = set; then :
24014 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
24020 $as_echo_n "checking if we have solaris privileges... " >&6; }
24022 case "$ntp_have_solarisprivs" in
24025 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
24030 $as_echo "$ntp_have_solarisprivs" >&6; }
24032 for ac_header in sys/mac.h
24034 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
24035 if test "x$ac_cv_header_sys_mac_h" = xyes; then :
24036 cat >>confdefs.h <<_ACEOF
24037 #define HAVE_SYS_MAC_H 1
24045 # Check whether --enable-trustedbsd_mac was given.
24046 if test "${enable_trustedbsd_mac+set}" = set; then :
24047 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
24053 $as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }
24055 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
24058 $as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
24063 $as_echo "$ntp_use_trustedbsd_mac" >&6; }
24065 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
24068 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
24075 $as_echo_n "checking for library containing res_9_init... " >&6; }
24076 if ${ac_cv_search_res_9_init+:} false; then :
24077 $as_echo_n "(cached) " >&6
24079 ac_func_search_save_LIBS=$LIBS
24080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h. */
24083 /* Override any GCC internal prototype to avoid an error.
24084 Use char because int might match the return type of a GCC
24085 builtin and then its argument prototype would still apply. */
24089 char res_9_init ();
24093 return res_9_init ();
24098 for ac_lib in '' resolv; do
24099 if test -z "$ac_lib"; then
24100 ac_res="none required"
24103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24105 if ac_fn_c_try_link "$LINENO"; then :
24106 ac_cv_search_res_9_init=$ac_res
24108 rm -f core conftest.err conftest.$ac_objext \
24110 if ${ac_cv_search_res_9_init+:} false; then :
24114 if ${ac_cv_search_res_9_init+:} false; then :
24117 ac_cv_search_res_9_init=no
24119 rm conftest.$ac_ext
24120 LIBS=$ac_func_search_save_LIBS
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
24123 $as_echo "$ac_cv_search_res_9_init" >&6; }
24124 ac_res=$ac_cv_search_res_9_init
24125 if test "$ac_res" != no; then :
24126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24131 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
24132 $as_echo_n "checking for library containing res_init... " >&6; }
24133 if ${ac_cv_search_res_init+:} false; then :
24134 $as_echo_n "(cached) " >&6
24136 ac_func_search_save_LIBS=$LIBS
24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138 /* end confdefs.h. */
24140 /* Override any GCC internal prototype to avoid an error.
24141 Use char because int might match the return type of a GCC
24142 builtin and then its argument prototype would still apply. */
24150 return res_init ();
24155 for ac_lib in '' resolv; do
24156 if test -z "$ac_lib"; then
24157 ac_res="none required"
24160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24162 if ac_fn_c_try_link "$LINENO"; then :
24163 ac_cv_search_res_init=$ac_res
24165 rm -f core conftest.err conftest.$ac_objext \
24167 if ${ac_cv_search_res_init+:} false; then :
24171 if ${ac_cv_search_res_init+:} false; then :
24174 ac_cv_search_res_init=no
24176 rm conftest.$ac_ext
24177 LIBS=$ac_func_search_save_LIBS
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
24180 $as_echo "$ac_cv_search_res_init" >&6; }
24181 ac_res=$ac_cv_search_res_init
24182 if test "$ac_res" != no; then :
24183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24189 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
24191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
24193 # include <sys/types.h>
24195 #ifdef HAVE_NETINET_IN_H
24196 # include <netinet/in.h> /* inet_ functions / structs */
24198 #ifdef HAVE_ARPA_NAMESER_H
24199 # include <arpa/nameser.h> /* DNS HEADER struct */
24201 #ifdef HAVE_NETDB_H
24202 # include <netdb.h>
24205 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24206 cat >>confdefs.h <<_ACEOF
24207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24215 #HMS: Why do we do this check so "early"?
24216 for ac_func in res_init
24218 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
24219 if test "x$ac_cv_func_res_init" = xyes; then :
24220 cat >>confdefs.h <<_ACEOF
24221 #define HAVE_RES_INIT 1
24225 for ac_func in __res_init
24227 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
24228 if test "x$ac_cv_func___res_init" = xyes; then :
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE___RES_INIT 1
24240 # We also need -lsocket, but we have tested for that already.
24241 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24242 if test "x$ac_cv_func_inet_ntop" = xyes; then :
24246 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
24250 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
24251 if test "x$ac_cv_func_inet_pton" = xyes; then :
24255 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
24260 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24261 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24263 cat >>confdefs.h <<_ACEOF
24264 #define HAVE_UINTPTR_T 1
24269 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
24270 if test "x$ac_cv_type_int32" = xyes; then :
24272 cat >>confdefs.h <<_ACEOF
24273 #define HAVE_INT32 1
24278 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
24279 if test "x$ac_cv_type_u_int32" = xyes; then :
24281 cat >>confdefs.h <<_ACEOF
24282 #define HAVE_U_INT32 1
24291 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
24294 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
24295 if ${ntp_cv_type_int32_with_dns+:} false; then :
24296 $as_echo_n "(cached) " >&6
24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h. */
24301 #ifdef HAVE_ARPA_NAMESER_H
24302 # include <arpa/nameser.h>
24304 #include <resolv.h>
24310 size_t cb = sizeof(int32);
24317 if ac_fn_c_try_compile "$LINENO"; then :
24318 ntp_cv_type_int32_with_dns=yes
24320 ntp_cv_type_int32_with_dns=no
24323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
24327 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
24328 case "$ntp_cv_type_int32_with_dns" in
24331 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24336 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
24339 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
24340 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
24341 $as_echo_n "(cached) " >&6
24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344 /* end confdefs.h. */
24346 #ifdef HAVE_ARPA_NAMESER_H
24347 # include <arpa/nameser.h>
24349 #include <resolv.h>
24355 size_t cb = sizeof(u_int32);
24362 if ac_fn_c_try_compile "$LINENO"; then :
24363 ntp_cv_type_u_int32_with_dns=yes
24365 ntp_cv_type_u_int32_with_dns=no
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
24372 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
24373 case "$ntp_cv_type_u_int32_with_dns" in
24376 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24381 for ac_header in sys/timepps.h
24383 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
24384 #ifdef HAVE_SYS_TIME_H
24385 # include <sys/time.h>
24387 #ifdef HAVE_ERRNO_H
24388 # include <errno.h>
24393 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
24394 cat >>confdefs.h <<_ACEOF
24395 #define HAVE_SYS_TIMEPPS_H 1
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
24404 $as_echo_n "checking for struct timespec... " >&6; }
24405 if ${ntp_cv_struct_timespec+:} false; then :
24406 $as_echo_n "(cached) " >&6
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h. */
24411 #include <sys/time.h>
24412 /* Under SunOS, timespec is in sys/timepps.h,
24413 which needs errno.h and FRAC */
24414 #ifdef HAVE_ERRNO_H
24415 # include <errno.h>
24417 #ifdef HAVE_SYS_TIMEPPS_H
24418 # define FRAC 4294967296
24419 # include <sys/timepps.h>
24433 if ac_fn_c_try_compile "$LINENO"; then :
24434 ntp_cv_struct_timespec=yes
24436 ntp_cv_struct_timespec=no
24439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
24443 $as_echo "$ntp_cv_struct_timespec" >&6; }
24444 case "$ntp_cv_struct_timespec" in
24447 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
24452 $as_echo_n "checking for struct ntptimeval... " >&6; }
24453 if ${ntp_cv_struct_ntptimeval+:} false; then :
24454 $as_echo_n "(cached) " >&6
24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457 /* end confdefs.h. */
24459 #include <sys/time.h>
24460 #include <sys/timex.h>
24466 struct ntptimeval n;
24473 if ac_fn_c_try_compile "$LINENO"; then :
24474 ntp_cv_struct_ntptimeval=yes
24476 ntp_cv_struct_ntptimeval=no
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
24483 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
24484 case "$ntp_cv_struct_ntptimeval" in
24487 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
24491 for ac_header in md5.h
24493 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
24494 #ifdef HAVE_SYS_TYPES_H
24495 # include <sys/types.h>
24500 if test "x$ac_cv_header_md5_h" = xyes; then :
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_MD5_H 1
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
24511 $as_echo_n "checking for library containing MD5Init... " >&6; }
24512 if ${ac_cv_search_MD5Init+:} false; then :
24513 $as_echo_n "(cached) " >&6
24515 ac_func_search_save_LIBS=$LIBS
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24519 /* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24534 for ac_lib in '' md5 md; do
24535 if test -z "$ac_lib"; then
24536 ac_res="none required"
24539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24541 if ac_fn_c_try_link "$LINENO"; then :
24542 ac_cv_search_MD5Init=$ac_res
24544 rm -f core conftest.err conftest.$ac_objext \
24546 if ${ac_cv_search_MD5Init+:} false; then :
24550 if ${ac_cv_search_MD5Init+:} false; then :
24553 ac_cv_search_MD5Init=no
24555 rm conftest.$ac_ext
24556 LIBS=$ac_func_search_save_LIBS
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
24559 $as_echo "$ac_cv_search_MD5Init" >&6; }
24560 ac_res=$ac_cv_search_MD5Init
24561 if test "$ac_res" != no; then :
24562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24566 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
24568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24570 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24571 cat >>confdefs.h <<_ACEOF
24572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
24580 $as_echo_n "checking for SIGIO... " >&6; }
24581 if ${ntp_cv_hdr_def_sigio+:} false; then :
24582 $as_echo_n "(cached) " >&6
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 #include <signal.h>
24594 if ac_fn_c_try_cpp "$LINENO"; then :
24595 ntp_cv_hdr_def_sigio=yes
24597 ntp_cv_hdr_def_sigio=no
24600 rm -f conftest.err conftest.i conftest.$ac_ext
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
24604 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
24607 $as_echo_n "checking if we want to use SIGIO... " >&6; }
24609 case "$ntp_cv_hdr_def_sigio" in
24613 alpha*-dec-osf4*|alpha*-dec-osf5*)
24658 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24662 $as_echo "$ans" >&6; }
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
24665 $as_echo_n "checking for SIGPOLL... " >&6; }
24666 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
24667 $as_echo_n "(cached) " >&6
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24672 #include <signal.h>
24679 if ac_fn_c_try_cpp "$LINENO"; then :
24680 ntp_cv_hdr_def_sigpoll=yes
24682 ntp_cv_hdr_def_sigpoll=no
24685 rm -f conftest.err conftest.i conftest.$ac_ext
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
24689 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
24692 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
24694 case "$ntp_cv_hdr_def_sigpoll" in
24713 # XXX Only verified thru AIX6
24751 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24755 $as_echo "$ans" >&6; }
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
24758 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
24760 case "$ntp_cv_hdr_def_sigpoll" in
24779 # XXX Only verified thru AIX6
24814 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24818 $as_echo "$ans" >&6; }
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
24821 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
24822 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
24823 $as_echo_n "(cached) " >&6
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h. */
24828 #include <sys/time.h>
24834 gettimeofday(0, 0);
24835 settimeofday(0, 0);
24842 if ac_fn_c_try_compile "$LINENO"; then :
24843 ntp_cv_func_Xettimeofday_nargs=2
24845 ntp_cv_func_Xettimeofday_nargs=1
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
24852 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
24853 case "$ntp_cv_func_Xettimeofday_nargs" in
24856 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
24860 for ac_func in settimeofday
24862 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
24863 if test "x$ac_cv_func_settimeofday" = xyes; then :
24864 cat >>confdefs.h <<_ACEOF
24865 #define HAVE_SETTIMEOFDAY 1
24871 *-*-mpeix*) ac_cv_func_settimeofday=yes
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
24879 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
24880 ntp_warning='GRONK'
24882 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
24885 ans='clock_settime()'
24888 ntp_warning='But clock_settime() would be better (if we had it)'
24889 ans='settimeofday()'
24892 ntp_warning='Which is the worst of the three'
24898 ntp_warning='Which leaves us with nothing to use!'
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24902 $as_echo "$ans" >&6; }
24903 case "$ntp_warning" in
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
24908 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
24913 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
24915 { __LIBS=; unset __LIBS;}
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
24920 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
24922 # Check whether --with-arlib was given.
24923 if test "${with_arlib+set}" = set; then :
24924 withval=$with_arlib; ans=$withval
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24930 $as_echo "$ans" >&6; }
24934 { $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
24935 $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;}
24939 for ac_prog in gawk mawk nawk awk
24941 # Extract the first word of "$ac_prog", so it can be a program name with args.
24942 set dummy $ac_prog; ac_word=$2
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24944 $as_echo_n "checking for $ac_word... " >&6; }
24945 if ${ac_cv_prog_AWK+:} false; then :
24946 $as_echo_n "(cached) " >&6
24948 if test -n "$AWK"; then
24949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24952 for as_dir in $PATH
24955 test -z "$as_dir" && as_dir=.
24956 for ac_exec_ext in '' $ac_executable_extensions; do
24957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24958 ac_cv_prog_AWK="$ac_prog"
24959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24968 AWK=$ac_cv_prog_AWK
24969 if test -n "$AWK"; then
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24971 $as_echo "$AWK" >&6; }
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974 $as_echo "no" >&6; }
24978 test -n "$AWK" && break
24981 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24986 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24987 $as_echo_n "(cached) " >&6
24989 cat >conftest.make <<\_ACEOF
24992 @echo '@@@%%%=$(MAKE)=@@@%%%'
24994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
24996 *@@@%%%=?*=@@@%%%*)
24997 eval ac_cv_prog_make_${ac_make}_set=yes;;
24999 eval ac_cv_prog_make_${ac_make}_set=no;;
25001 rm -f conftest.make
25003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25005 $as_echo "yes" >&6; }
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25009 $as_echo "no" >&6; }
25010 SET_MAKE="MAKE=${MAKE-make}"
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25018 $as_echo_n "checking whether ln -s works... " >&6; }
25020 if test "$LN_S" = "ln -s"; then
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25022 $as_echo "yes" >&6; }
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25025 $as_echo "no, using $LN_S" >&6; }
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
25029 $as_echo_n "checking for library containing strerror... " >&6; }
25030 if ${ac_cv_search_strerror+:} false; then :
25031 $as_echo_n "(cached) " >&6
25033 ac_func_search_save_LIBS=$LIBS
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25037 /* Override any GCC internal prototype to avoid an error.
25038 Use char because int might match the return type of a GCC
25039 builtin and then its argument prototype would still apply. */
25047 return strerror ();
25052 for ac_lib in '' cposix; do
25053 if test -z "$ac_lib"; then
25054 ac_res="none required"
25057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25059 if ac_fn_c_try_link "$LINENO"; then :
25060 ac_cv_search_strerror=$ac_res
25062 rm -f core conftest.err conftest.$ac_objext \
25064 if ${ac_cv_search_strerror+:} false; then :
25068 if ${ac_cv_search_strerror+:} false; then :
25071 ac_cv_search_strerror=no
25073 rm conftest.$ac_ext
25074 LIBS=$ac_func_search_save_LIBS
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
25077 $as_echo "$ac_cv_search_strerror" >&6; }
25078 ac_res=$ac_cv_search_strerror
25079 if test "$ac_res" != no; then :
25080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25086 # Extract the first word of "perl", so it can be a program name with args.
25087 set dummy perl; ac_word=$2
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25089 $as_echo_n "checking for $ac_word... " >&6; }
25090 if ${ac_cv_path_PATH_PERL+:} false; then :
25091 $as_echo_n "(cached) " >&6
25095 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
25098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25099 for as_dir in $PATH
25102 test -z "$as_dir" && as_dir=.
25103 for ac_exec_ext in '' $ac_executable_extensions; do
25104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25105 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
25106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25116 PATH_PERL=$ac_cv_path_PATH_PERL
25117 if test -n "$PATH_PERL"; then
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
25119 $as_echo "$PATH_PERL" >&6; }
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25122 $as_echo "no" >&6; }
25126 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
25127 # Extract the first word of "test", so it can be a program name with args.
25128 set dummy test; ac_word=$2
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25130 $as_echo_n "checking for $ac_word... " >&6; }
25131 if ${ac_cv_path_PATH_TEST+:} false; then :
25132 $as_echo_n "(cached) " >&6
25136 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
25139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25140 for as_dir in $PATH
25143 test -z "$as_dir" && as_dir=.
25144 for ac_exec_ext in '' $ac_executable_extensions; do
25145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25146 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
25147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25157 PATH_TEST=$ac_cv_path_PATH_TEST
25158 if test -n "$PATH_TEST"; then
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
25160 $as_echo "$PATH_TEST" >&6; }
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25163 $as_echo "no" >&6; }
25167 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
25168 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
25171 # Check whether --with-net-snmp-config was given.
25172 if test "${with_net_snmp_config+set}" = set; then :
25173 withval=$with_net_snmp_config; ans=$withval
25183 ans=net-snmp-config
25188 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
25193 PROG_NET_SNMP_CONFIG=$ans
25194 case "$PROG_NET_SNMP_CONFIG" in
25197 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
25200 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
25201 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25203 $as_echo_n "checking for $ac_word... " >&6; }
25204 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
25205 $as_echo_n "(cached) " >&6
25207 case $PATH_NET_SNMP_CONFIG in
25209 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
25212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25213 for as_dir in $PATH
25216 test -z "$as_dir" && as_dir=.
25217 for ac_exec_ext in '' $ac_executable_extensions; do
25218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25219 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25230 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
25231 if test -n "$PATH_NET_SNMP_CONFIG"; then
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25233 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25236 $as_echo "no" >&6; }
25240 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
25244 $as_echo_n "checking for net-snmp-config path... " >&6; }
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25246 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25248 case "$PATH_NET_SNMP_CONFIG" in
25249 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
25250 $as_echo_n "checking for net-snmp version... " >&6; }
25251 if ${ntp_cv_net_snmp_version+:} false; then :
25252 $as_echo_n "(cached) " >&6
25254 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
25258 $as_echo "$ntp_cv_net_snmp_version" >&6; }
25264 ac_link="$ac_link $VX_KERNEL"
25268 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25270 $as_echo_n "checking for library containing openlog... " >&6; }
25271 if ${ac_cv_search_openlog+:} false; then :
25272 $as_echo_n "(cached) " >&6
25274 ac_func_search_save_LIBS=$LIBS
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25278 /* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25293 for ac_lib in '' gen syslog; do
25294 if test -z "$ac_lib"; then
25295 ac_res="none required"
25298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25300 if ac_fn_c_try_link "$LINENO"; then :
25301 ac_cv_search_openlog=$ac_res
25303 rm -f core conftest.err conftest.$ac_objext \
25305 if ${ac_cv_search_openlog+:} false; then :
25309 if ${ac_cv_search_openlog+:} false; then :
25312 ac_cv_search_openlog=no
25314 rm conftest.$ac_ext
25315 LIBS=$ac_func_search_save_LIBS
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25318 $as_echo "$ac_cv_search_openlog" >&6; }
25319 ac_res=$ac_cv_search_openlog
25320 if test "$ac_res" != no; then :
25321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25325 # XXX library list will be in ac_cv_search_openlog
25327 # LIBSECCOMP is off by default -- needs testing with all the features
25328 # Please send bug reports to loganaden@gmail.com
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
25330 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
25331 # Check whether --enable-libseccomp was given.
25332 if test "${enable_libseccomp+set}" = set; then :
25333 enableval=$enable_libseccomp; ntp_ok=$enableval
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25340 $as_echo "$ntp_ok" >&6; }
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
25344 $as_echo_n "checking for library containing seccomp_init... " >&6; }
25345 if ${ac_cv_search_seccomp_init+:} false; then :
25346 $as_echo_n "(cached) " >&6
25348 ac_func_search_save_LIBS=$LIBS
25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350 /* end confdefs.h. */
25352 /* Override any GCC internal prototype to avoid an error.
25353 Use char because int might match the return type of a GCC
25354 builtin and then its argument prototype would still apply. */
25358 char seccomp_init ();
25362 return seccomp_init ();
25367 for ac_lib in '' seccomp; do
25368 if test -z "$ac_lib"; then
25369 ac_res="none required"
25372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25374 if ac_fn_c_try_link "$LINENO"; then :
25375 ac_cv_search_seccomp_init=$ac_res
25377 rm -f core conftest.err conftest.$ac_objext \
25379 if ${ac_cv_search_seccomp_init+:} false; then :
25383 if ${ac_cv_search_seccomp_init+:} false; then :
25386 ac_cv_search_seccomp_init=no
25388 rm conftest.$ac_ext
25389 LIBS=$ac_func_search_save_LIBS
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
25392 $as_echo "$ac_cv_search_seccomp_init" >&6; }
25393 ac_res=$ac_cv_search_seccomp_init
25394 if test "$ac_res" != no; then :
25395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25397 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
25402 if test "$cross_compiling" = yes; then :
25403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25405 as_fn_error $? "cannot run test program while cross compiling
25406 See \`config.log' for more details" "$LINENO" 5; }
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25412 #include <stdlib.h>
25414 #include <sys/prctl.h>
25415 #include <linux/seccomp.h>
25420 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
25432 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
25448 if ac_fn_c_try_run "$LINENO"; then :
25450 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
25454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25455 conftest.$ac_objext conftest.beam conftest.$ac_ext
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25463 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25464 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25465 $as_echo_n "(cached) " >&6
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25471 #define SYSLOG_NAMES
25472 #include <stdlib.h>
25473 #include <syslog.h>
25478 void *fnames; fnames = facilitynames;
25483 if ac_fn_c_try_compile "$LINENO"; then :
25484 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25486 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25491 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25492 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25495 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25500 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25504 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25515 # HMS: Make sure we check for -lrt for clock_* before this...
25516 case "$ac_cv_search_clock_gettime" in
25517 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
25520 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
25521 if ${ac_cv_search_sched_setscheduler+:} false; then :
25522 $as_echo_n "(cached) " >&6
25524 ac_func_search_save_LIBS=$LIBS
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 /* Override any GCC internal prototype to avoid an error.
25529 Use char because int might match the return type of a GCC
25530 builtin and then its argument prototype would still apply. */
25534 char sched_setscheduler ();
25538 return sched_setscheduler ();
25543 for ac_lib in '' rt posix4; do
25544 if test -z "$ac_lib"; then
25545 ac_res="none required"
25548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25550 if ac_fn_c_try_link "$LINENO"; then :
25551 ac_cv_search_sched_setscheduler=$ac_res
25553 rm -f core conftest.err conftest.$ac_objext \
25555 if ${ac_cv_search_sched_setscheduler+:} false; then :
25559 if ${ac_cv_search_sched_setscheduler+:} false; then :
25562 ac_cv_search_sched_setscheduler=no
25564 rm conftest.$ac_ext
25565 LIBS=$ac_func_search_save_LIBS
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
25568 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
25569 ac_res=$ac_cv_search_sched_setscheduler
25570 if test "$ac_res" != no; then :
25571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25578 for ac_header in bstring.h
25580 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
25581 if test "x$ac_cv_header_bstring_h" = xyes; then :
25582 cat >>confdefs.h <<_ACEOF
25583 #define HAVE_BSTRING_H 1
25590 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
25591 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
25593 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
25594 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25595 $as_echo_n "(cached) " >&6
25597 ac_func_search_save_LIBS=$LIBS
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25601 /* Override any GCC internal prototype to avoid an error.
25602 Use char because int might match the return type of a GCC
25603 builtin and then its argument prototype would still apply. */
25607 char DNSServiceRegister ();
25611 return DNSServiceRegister ();
25616 for ac_lib in '' dns_sd; do
25617 if test -z "$ac_lib"; then
25618 ac_res="none required"
25621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25623 if ac_fn_c_try_link "$LINENO"; then :
25624 ac_cv_search_DNSServiceRegister=$ac_res
25626 rm -f core conftest.err conftest.$ac_objext \
25628 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25632 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25635 ac_cv_search_DNSServiceRegister=no
25637 rm conftest.$ac_ext
25638 LIBS=$ac_func_search_save_LIBS
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
25641 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
25642 ac_res=$ac_cv_search_DNSServiceRegister
25643 if test "$ac_res" != no; then :
25644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25646 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
25655 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
25657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25658 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25659 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25660 cat >>confdefs.h <<_ACEOF
25661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25669 for ac_header in memory.h netdb.h poll.h
25671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25674 cat >>confdefs.h <<_ACEOF
25675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25682 for ac_header in sgtty.h stdatomic.h
25684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25687 cat >>confdefs.h <<_ACEOF
25688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25696 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25697 if ${ac_cv_header_stdbool_h+:} false; then :
25698 $as_echo_n "(cached) " >&6
25700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h. */
25703 #include <stdbool.h>
25705 "error: bool is not defined"
25708 "error: false is not defined"
25711 "error: false is not 0"
25714 "error: true is not defined"
25717 "error: true is not 1"
25719 #ifndef __bool_true_false_are_defined
25720 "error: __bool_true_false_are_defined is not defined"
25723 struct s { _Bool s: 1; _Bool t; } s;
25725 char a[true == 1 ? 1 : -1];
25726 char b[false == 0 ? 1 : -1];
25727 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25728 char d[(bool) 0.5 == true ? 1 : -1];
25729 /* See body of main program for 'e'. */
25730 char f[(_Bool) 0.0 == false ? 1 : -1];
25732 char h[sizeof (_Bool)];
25733 char i[sizeof s.t];
25734 enum { j = false, k = true, l = false * true, m = true * 256 };
25735 /* The following fails for
25736 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25738 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25739 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25740 /* Catch a bug in an HP-UX C compiler. See
25741 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25742 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25754 /* Refer to every declared value, to avoid compiler optimizations. */
25755 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25756 + !m + !n + !o + !p + !q + !pq);
25762 if ac_fn_c_try_compile "$LINENO"; then :
25763 ac_cv_header_stdbool_h=yes
25765 ac_cv_header_stdbool_h=no
25767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25770 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25771 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25772 if test "x$ac_cv_type__Bool" = xyes; then :
25774 cat >>confdefs.h <<_ACEOF
25775 #define HAVE__BOOL 1
25782 if test $ac_cv_header_stdbool_h = yes; then
25784 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25788 for ac_header in stdlib.h string.h termio.h
25790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25793 cat >>confdefs.h <<_ACEOF
25794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25801 for ac_header in termios.h timepps.h timex.h unistd.h
25803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25806 cat >>confdefs.h <<_ACEOF
25807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25817 for ac_header in utmpx.h
25819 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
25820 if test "x$ac_cv_header_utmpx_h" = xyes; then :
25821 cat >>confdefs.h <<_ACEOF
25822 #define HAVE_UTMPX_H 1
25829 case "$ac_cv_header_utmpx_h" in
25833 for ac_header in utmp.h
25835 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
25836 if test "x$ac_cv_header_utmp_h" = xyes; then :
25837 cat >>confdefs.h <<_ACEOF
25838 #define HAVE_UTMP_H 1
25849 for ac_header in utmp.h utmpx.h
25851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25852 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25854 cat >>confdefs.h <<_ACEOF
25855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25866 # On Suns only (so far) getpass() truncates the typed password to 8
25867 # characters, but getpassphrase() allows up to 257. Most systems'
25868 # getpass() does not truncate, at least not so as to affect ntpq and
25869 # ntpdc password prompts.
25871 # So check for getpassphrase(), but only on Sun operating systems.
25874 *-*-sunos*|*-*-solaris*)
25875 for ac_func in getpassphrase
25877 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
25878 if test "x$ac_cv_func_getpassphrase" = xyes; then :
25879 cat >>confdefs.h <<_ACEOF
25880 #define HAVE_GETPASSPHRASE 1
25889 for ac_header in net/if6.h
25891 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
25892 if test "x$ac_cv_header_net_if6_h" = xyes; then :
25893 cat >>confdefs.h <<_ACEOF
25894 #define HAVE_NET_IF6_H 1
25901 for ac_header in net/route.h
25903 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
25904 #include <sys/types.h>
25905 #include <sys/socket.h>
25906 #include <net/if.h>
25909 if test "x$ac_cv_header_net_route_h" = xyes; then :
25910 cat >>confdefs.h <<_ACEOF
25911 #define HAVE_NET_ROUTE_H 1
25919 for ac_header in netinfo/ni.h
25921 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
25922 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
25923 cat >>confdefs.h <<_ACEOF
25924 #define HAVE_NETINFO_NI_H 1
25931 case "$ac_cv_header_netinfo_ni_h" in
25934 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
25937 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
25939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25942 cat >>confdefs.h <<_ACEOF
25943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25954 for ac_header in sys/ioctl.h
25956 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25957 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
25958 cat >>confdefs.h <<_ACEOF
25959 #define HAVE_SYS_IOCTL_H 1
25968 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
25970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25971 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25973 cat >>confdefs.h <<_ACEOF
25974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25981 # HMS: Check sys/proc.h and sys/resource.h after some others
25982 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
25984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25987 cat >>confdefs.h <<_ACEOF
25988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25995 case "$ac_cv_header_sched_h" in
25999 for ac_header in sys/sched.h
26001 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
26002 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
26003 cat >>confdefs.h <<_ACEOF
26004 #define HAVE_SYS_SCHED_H 1
26013 # HMS: Check sys/shm.h after some others
26014 for ac_header in sys/select.h sys/signal.h sys/sockio.h
26016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26017 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26019 cat >>confdefs.h <<_ACEOF
26020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26027 # HMS: Checked sys/socket.h earlier
26032 for ac_header in machine/soundcard.h sys/soundcard.h
26034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26035 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26037 cat >>confdefs.h <<_ACEOF
26038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26047 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
26049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26050 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26052 cat >>confdefs.h <<_ACEOF
26053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26060 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
26062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26063 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26065 cat >>confdefs.h <<_ACEOF
26066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26075 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
26077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26078 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26079 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26080 cat >>confdefs.h <<_ACEOF
26081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26090 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
26092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26094 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26095 cat >>confdefs.h <<_ACEOF
26096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26106 case "$ac_cv_header_stdatomic_h" in
26108 for ac_func in atomic_thread_fence
26110 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
26111 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
26112 cat >>confdefs.h <<_ACEOF
26113 #define HAVE_ATOMIC_THREAD_FENCE 1
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
26120 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
26121 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
26122 $as_echo_n "(cached) " >&6
26124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h. */
26127 #include <stdatomic.h>
26133 atomic_thread_fence(memory_order_seq_cst);
26139 ntp_cv_func_atomic_thread_fence=yes
26141 if ac_fn_c_try_compile "$LINENO"; then :
26142 ntp_cv_func_atomic_thread_fence=no
26145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
26149 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
26158 for ac_func in ntp_adjtime ntp_gettime
26160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26163 cat >>confdefs.h <<_ACEOF
26164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26175 case "$ac_cv_func_ntp_gettime" in
26179 for ac_func in __ntp_gettime
26181 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
26182 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
26183 cat >>confdefs.h <<_ACEOF
26184 #define HAVE___NTP_GETTIME 1
26190 case "$ac_cv_func___ntp_gettime" in
26193 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
26196 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
26201 for ac_func in adjtimex
26203 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
26204 if test "x$ac_cv_func_adjtimex" = xyes; then :
26205 cat >>confdefs.h <<_ACEOF
26206 #define HAVE_ADJTIMEX 1
26212 case "$ac_cv_func_adjtimex" in
26215 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
26218 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26223 for ac_func in __adjtimex
26225 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
26226 if test "x$ac_cv_func___adjtimex" = xyes; then :
26227 cat >>confdefs.h <<_ACEOF
26228 #define HAVE___ADJTIMEX 1
26234 case "$ac_cv_func___adjtimex" in
26237 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
26240 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26243 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
26246 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
26253 case "$have_adjtimex" in
26255 # nlist stuff is only needed for tickadj.
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
26259 $as_echo_n "checking for library containing nlist... " >&6; }
26260 if ${ac_cv_search_nlist+:} false; then :
26261 $as_echo_n "(cached) " >&6
26263 ac_func_search_save_LIBS=$LIBS
26264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265 /* end confdefs.h. */
26267 /* Override any GCC internal prototype to avoid an error.
26268 Use char because int might match the return type of a GCC
26269 builtin and then its argument prototype would still apply. */
26282 for ac_lib in '' elf ld mld; do
26283 if test -z "$ac_lib"; then
26284 ac_res="none required"
26287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26289 if ac_fn_c_try_link "$LINENO"; then :
26290 ac_cv_search_nlist=$ac_res
26292 rm -f core conftest.err conftest.$ac_objext \
26294 if ${ac_cv_search_nlist+:} false; then :
26298 if ${ac_cv_search_nlist+:} false; then :
26301 ac_cv_search_nlist=no
26303 rm conftest.$ac_ext
26304 LIBS=$ac_func_search_save_LIBS
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
26307 $as_echo "$ac_cv_search_nlist" >&6; }
26308 ac_res=$ac_cv_search_nlist
26309 if test "$ac_res" != no; then :
26310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26314 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
26316 $as_echo_n "checking for library containing kvm_open... " >&6; }
26317 if ${ac_cv_search_kvm_open+:} false; then :
26318 $as_echo_n "(cached) " >&6
26320 ac_func_search_save_LIBS=$LIBS
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 /* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26334 return kvm_open ();
26339 for ac_lib in '' kvm; do
26340 if test -z "$ac_lib"; then
26341 ac_res="none required"
26344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26346 if ac_fn_c_try_link "$LINENO"; then :
26347 ac_cv_search_kvm_open=$ac_res
26349 rm -f core conftest.err conftest.$ac_objext \
26351 if ${ac_cv_search_kvm_open+:} false; then :
26355 if ${ac_cv_search_kvm_open+:} false; then :
26358 ac_cv_search_kvm_open=no
26360 rm conftest.$ac_ext
26361 LIBS=$ac_func_search_save_LIBS
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
26364 $as_echo "$ac_cv_search_kvm_open" >&6; }
26365 ac_res=$ac_cv_search_kvm_open
26366 if test "$ac_res" != no; then :
26367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26370 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
26371 for ac_header in nlist.h sys/var.h
26373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26376 cat >>confdefs.h <<_ACEOF
26377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26384 case "$ac_cv_header_nlist_h" in
26387 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
26390 $as_echo_n "checking for n_un in struct nlist... " >&6; }
26391 if ${ntp_cv_struct_nlist_n_un+:} false; then :
26392 $as_echo_n "(cached) " >&6
26394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26395 /* end confdefs.h. */
26410 ntp_cv_struct_nlist_n_un=yes
26412 if ac_fn_c_try_compile "$LINENO"; then :
26413 ntp_cv_struct_nlist_n_un=no
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
26420 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
26421 case "$ntp_cv_struct_nlist_n_un" in
26424 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
26429 LDADD_NLIST="$LIBS"
26431 { saved_LIBS=; unset saved_LIBS;}
26434 for ac_header in sys/proc.h
26436 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
26437 #ifdef HAVE_SYS_TYPES_H
26438 # include <sys/types.h>
26440 #ifdef HAVE_SYS_TIME_H
26441 # include <sys/time.h>
26445 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
26446 cat >>confdefs.h <<_ACEOF
26447 #define HAVE_SYS_PROC_H 1
26455 for ac_header in sys/resource.h
26457 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
26458 #ifdef HAVE_SYS_TIME_H
26459 # include <sys/time.h>
26463 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
26464 cat >>confdefs.h <<_ACEOF
26465 #define HAVE_SYS_RESOURCE_H 1
26473 for ac_header in sys/shm.h
26475 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
26476 #ifdef HAVE_SYS_TYPES_H
26477 # include <sys/types.h>
26479 #ifdef HAVE_SYS_IPC_H
26480 # include <sys/ipc.h>
26484 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
26485 cat >>confdefs.h <<_ACEOF
26486 #define HAVE_SYS_SHM_H 1
26494 for ac_header in sys/timex.h
26496 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
26497 #ifdef HAVE_SYS_TIME_H
26498 # include <sys/time.h>
26502 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
26503 cat >>confdefs.h <<_ACEOF
26504 #define HAVE_SYS_TIMEX_H 1
26514 # We could do a cv check here, but is it worth it?
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 #include <sys/socket.h>
26521 #include "Bletch: AF_UNSPEC is undefined!"
26524 #include "Bletch: AF_UNSPEC != 0"
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
26531 $as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
26537 if ac_fn_c_try_compile "$LINENO"; then :
26540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26543 $as_echo_n "checking return type of signal handlers... " >&6; }
26544 if ${ac_cv_type_signal+:} false; then :
26545 $as_echo_n "(cached) " >&6
26547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548 /* end confdefs.h. */
26549 #include <sys/types.h>
26550 #include <signal.h>
26555 return *(signal (0, 0)) (0) == 1;
26560 if ac_fn_c_try_compile "$LINENO"; then :
26561 ac_cv_type_signal=int
26563 ac_cv_type_signal=void
26565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26568 $as_echo "$ac_cv_type_signal" >&6; }
26570 cat >>confdefs.h <<_ACEOF
26571 #define RETSIGTYPE $ac_cv_type_signal
26575 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26576 if test "x$ac_cv_type_off_t" = xyes; then :
26580 cat >>confdefs.h <<_ACEOF
26581 #define off_t long int
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26587 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26588 if ${ac_cv_struct_tm+:} false; then :
26589 $as_echo_n "(cached) " >&6
26591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h. */
26593 #include <sys/types.h>
26600 int *p = &tm.tm_sec;
26606 if ac_fn_c_try_compile "$LINENO"; then :
26607 ac_cv_struct_tm=time.h
26609 ac_cv_struct_tm=sys/time.h
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26614 $as_echo "$ac_cv_struct_tm" >&6; }
26615 if test $ac_cv_struct_tm = sys/time.h; then
26617 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
26622 $as_echo_n "checking for a fallback value for HZ... " >&6; }
26623 if ${ntp_cv_default_hz+:} false; then :
26624 $as_echo_n "(cached) " >&6
26627 ntp_cv_default_hz=100
26629 alpha*-dec-osf4*|alpha*-dec-osf5*)
26630 ntp_cv_default_hz=1024
26633 ntp_cv_default_hz=256
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
26640 $as_echo "$ntp_cv_default_hz" >&6; }
26642 cat >>confdefs.h <<_ACEOF
26643 #define DEFAULT_HZ $ntp_cv_default_hz
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
26648 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
26649 if ${ntp_cv_override_hz+:} false; then :
26650 $as_echo_n "(cached) " >&6
26653 ntp_cv_override_hz=no
26655 alpha*-dec-osf4*|alpha*-dec-osf5*)
26656 ntp_cv_override_hz=yes
26659 ntp_cv_override_hz=yes
26662 ntp_cv_override_hz=yes
26665 ntp_cv_override_hz=yes
26668 ntp_cv_override_hz=yes
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
26675 $as_echo "$ntp_cv_override_hz" >&6; }
26676 case "$ntp_cv_override_hz" in
26679 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
26686 $as_echo_n "checking for struct rt_msghdr... " >&6; }
26687 if ${ntp_cv_struct_rt_msghdr+:} false; then :
26688 $as_echo_n "(cached) " >&6
26690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26691 /* end confdefs.h. */
26693 #include <sys/types.h>
26694 #include <sys/socket.h>
26695 #include <net/if.h>
26696 #include <net/route.h>
26702 struct rt_msghdr p;
26709 if ac_fn_c_try_compile "$LINENO"; then :
26710 ntp_cv_struct_rt_msghdr=yes
26712 ntp_cv_struct_rt_msghdr=no
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
26719 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
26722 $as_echo_n "checking for struct rtattr... " >&6; }
26723 if ${ntp_cv_rtattr+:} false; then :
26724 $as_echo_n "(cached) " >&6
26726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26727 /* end confdefs.h. */
26729 #include <stddef.h>
26730 #include <sys/socket.h>
26731 #include <linux/rtnetlink.h>
26744 if ac_fn_c_try_compile "$LINENO"; then :
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
26754 $as_echo "$ntp_cv_rtattr" >&6; }
26756 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
26759 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
26761 case "$ntp_cv_rtattr" in
26764 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
26770 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
26771 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
26772 $as_echo_n "(cached) " >&6
26774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h. */
26777 #include <signal.h>
26783 struct sigaction act;
26784 act.sa_sigaction = 0;
26791 if ac_fn_c_try_compile "$LINENO"; then :
26792 ntp_cv_struct_sigaction_has_sa_sigaction=yes
26794 ntp_cv_struct_sigaction_has_sa_sigaction=no
26797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
26801 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
26802 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
26805 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
26810 $as_echo_n "checking for struct ppsclockev... " >&6; }
26811 if ${ntp_cv_struct_ppsclockev+:} false; then :
26812 $as_echo_n "(cached) " >&6
26814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26815 /* end confdefs.h. */
26817 #ifdef HAVE_SYS_TYPES_H
26818 # include <sys/types.h>
26820 #ifdef HAVE_SYS_TERMIOS_H
26821 # include <sys/termios.h>
26823 #ifdef HAVE_SYS_TIME_H
26824 # include <sys/time.h>
26826 #ifdef HAVE_SYS_PPSCLOCK_H
26827 # include <sys/ppsclock.h>
26834 extern struct ppsclockev *pce;
26835 return pce->serial;
26842 if ac_fn_c_try_compile "$LINENO"; then :
26843 ntp_cv_struct_ppsclockev=yes
26845 ntp_cv_struct_ppsclockev=no
26848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
26852 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
26853 case "$ntp_cv_struct_ppsclockev" in
26856 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
26860 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
26863 $as_echo_n "checking for struct snd_size... " >&6; }
26864 if ${ntp_cv_struct_snd_size+:} false; then :
26865 $as_echo_n "(cached) " >&6
26867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868 /* end confdefs.h. */
26870 #ifdef HAVE_MACHINE_SOUNDCARD_H
26871 # include <machine/soundcard.h>
26873 #ifdef HAVE_SYS_SOUNDCARD_H
26874 # include <sys/soundcard.h>
26881 extern struct snd_size *ss;
26882 return ss->rec_size;
26889 if ac_fn_c_try_compile "$LINENO"; then :
26890 ntp_cv_struct_snd_size=yes
26892 ntp_cv_struct_snd_size=no
26895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
26899 $as_echo "$ntp_cv_struct_snd_size" >&6; }
26900 case "$ntp_cv_struct_snd_size" in
26903 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
26909 $as_echo_n "checking struct clockinfo for hz... " >&6; }
26910 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26911 $as_echo_n "(cached) " >&6
26913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914 /* end confdefs.h. */
26916 #include <sys/time.h>
26922 extern struct clockinfo *pc;
26930 if ac_fn_c_try_compile "$LINENO"; then :
26931 ntp_cv_struct_clockinfo_has_hz=yes
26933 ntp_cv_struct_clockinfo_has_hz=no
26936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26940 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26941 case "$ntp_cv_struct_clockinfo_has_hz" in
26944 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
26949 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
26950 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26951 $as_echo_n "(cached) " >&6
26953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26954 /* end confdefs.h. */
26956 #include <sys/time.h>
26962 extern struct clockinfo *pc;
26963 return pc->tickadj;
26970 if ac_fn_c_try_compile "$LINENO"; then :
26971 ntp_cv_struct_clockinfo_has_hz=yes
26973 ntp_cv_struct_clockinfo_has_hz=no
26976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26980 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26981 case "$ntp_cv_struct_clockinfo_has_hz" in
26984 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26988 case "$ntp_cv_struct_ntptimeval" in
26990 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
26991 #ifdef HAVE_SYS_TIME_H
26992 # include <sys/time.h>
26994 # ifdef HAVE_TIME_H
26998 #ifdef HAVE_SYS_TIMEX_H
26999 # include <sys/timex.h>
27001 # ifdef HAVE_TIMEX_H
27002 # include <timex.h>
27008 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
27010 cat >>confdefs.h <<_ACEOF
27011 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
27021 for ac_func in arc4random_buf
27023 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
27024 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
27025 cat >>confdefs.h <<_ACEOF
27026 #define HAVE_ARC4RANDOM_BUF 1
27036 LIBS="$LIBS $LDADD_LIBNTP"
27037 for ac_func in daemon
27039 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
27040 if test "x$ac_cv_func_daemon" = xyes; then :
27041 cat >>confdefs.h <<_ACEOF
27042 #define HAVE_DAEMON 1
27048 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
27050 { saved_LIBS=; unset saved_LIBS;}
27052 for ac_func in finite
27054 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
27055 if test "x$ac_cv_func_finite" = xyes; then :
27056 cat >>confdefs.h <<_ACEOF
27057 #define HAVE_FINITE 1
27061 for ac_func in isfinite
27063 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
27064 if test "x$ac_cv_func_isfinite" = xyes; then :
27065 cat >>confdefs.h <<_ACEOF
27066 #define HAVE_ISFINITE 1
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
27072 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h. */
27093 if ac_fn_c_try_link "$LINENO"; then :
27099 rm -f core conftest.err conftest.$ac_objext \
27100 conftest$ac_exeext conftest.$ac_ext
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27103 $as_echo "$ans" >&6; }
27106 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
27119 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
27121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27124 cat >>confdefs.h <<_ACEOF
27125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27132 # kvm_open() is only used by tickadj. Also see above.
27133 case "$ac_cv_header_kvm_h" in
27135 for ac_func in kvm_open
27137 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
27138 if test "x$ac_cv_func_kvm_open" = xyes; then :
27139 cat >>confdefs.h <<_ACEOF
27140 #define HAVE_KVM_OPEN 1
27151 # Just stubs. Sigh.
27153 *) for ac_func in mkstemp
27155 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
27156 if test "x$ac_cv_func_mkstemp" = xyes; then :
27157 cat >>confdefs.h <<_ACEOF
27158 #define HAVE_MKSTEMP 1
27166 for ac_func in mktime
27168 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
27169 if test "x$ac_cv_func_mktime" = xyes; then :
27170 cat >>confdefs.h <<_ACEOF
27171 #define HAVE_MKTIME 1
27179 # XXX only verified thru AIX6.
27180 # Just a stub. Sigh.
27183 # Just a stub in "old" Irix. Sigh.
27185 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
27187 # # there, but more trouble than it is worth for now (resolver problems)
27190 # Apparently there but not working in QNX. Sigh?
27193 # Just a stub. Sigh.
27195 alpha*-dec-osf4*|alpha*-dec-osf5*)
27196 # mlockall is there, as a #define calling memlk via <sys/mman.h>
27197 # Not easy to test for - cheat.
27198 for ac_func in memlk
27200 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
27201 if test "x$ac_cv_func_memlk" = xyes; then :
27202 cat >>confdefs.h <<_ACEOF
27203 #define HAVE_MEMLK 1
27205 ac_cv_func_mlockall=yes
27209 for ac_func in mlockall
27211 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27212 if test "x$ac_cv_func_mlockall" = xyes; then :
27213 cat >>confdefs.h <<_ACEOF
27214 #define HAVE_MLOCKALL 1
27221 *) for ac_func in mlockall
27223 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27224 if test "x$ac_cv_func_mlockall" = xyes; then :
27225 cat >>confdefs.h <<_ACEOF
27226 #define HAVE_MLOCKALL 1
27234 for ac_func in nice plock pututline pututxline readlink rtprio
27236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27239 cat >>confdefs.h <<_ACEOF
27240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248 # XXX only verified thru AIX6.
27249 # Just a stub in AIX 4. Sigh.
27252 # Just stubs in solaris2.5. Sigh.
27254 *) for ac_func in sched_setscheduler
27256 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
27257 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
27258 cat >>confdefs.h <<_ACEOF
27259 #define HAVE_SCHED_SETSCHEDULER 1
27267 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
27269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27272 cat >>confdefs.h <<_ACEOF
27273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27279 for ac_func in strdup strerror setrlimit strchr
27281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27284 cat >>confdefs.h <<_ACEOF
27285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27293 # XXX only verified thru AIX6.
27294 # Just stubs. Sigh.
27297 # Just stubs. Sigh.
27300 # Just stubs. Sigh.
27303 # Just stubs. Sigh.
27306 for ac_func in timer_create
27308 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
27309 if test "x$ac_cv_func_timer_create" = xyes; then :
27310 cat >>confdefs.h <<_ACEOF
27311 #define HAVE_TIMER_CREATE 1
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
27323 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
27324 if ${ntp_cv_rlimit_memlock+:} false; then :
27325 $as_echo_n "(cached) " >&6
27327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27328 /* end confdefs.h. */
27330 #ifdef HAVE_SYS_TYPES_H
27331 # include <sys/types.h>
27333 #ifdef HAVE_SYS_TIME_H
27334 # include <sys/time.h>
27336 #ifdef HAVE_SYS_RESOURCE_H
27337 # include <sys/resource.h>
27344 getrlimit(RLIMIT_MEMLOCK, 0);
27351 if ac_fn_c_try_compile "$LINENO"; then :
27352 ntp_cv_rlimit_memlock=yes
27354 ntp_cv_rlimit_memlock=no
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
27361 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
27364 ntp_dflt_rlimit_memlock="-1" ;;
27365 *) ntp_dflt_rlimit_memlock="32" ;;
27367 case "$ntp_cv_rlimit_memlock" in
27370 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
27374 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
27375 if ${ntp_cv_rlimit_stack+:} false; then :
27376 $as_echo_n "(cached) " >&6
27378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379 /* end confdefs.h. */
27381 #ifdef HAVE_SYS_TYPES_H
27382 # include <sys/types.h>
27384 #ifdef HAVE_SYS_TIME_H
27385 # include <sys/time.h>
27387 #ifdef HAVE_SYS_RESOURCE_H
27388 # include <sys/resource.h>
27395 getrlimit(RLIMIT_STACK, 0);
27402 if ac_fn_c_try_compile "$LINENO"; then :
27403 ntp_cv_rlimit_stack=yes
27405 ntp_cv_rlimit_stack=no
27408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
27412 $as_echo "$ntp_cv_rlimit_stack" >&6; }
27413 case "$ntp_cv_rlimit_stack" in
27416 HAVE_RLIMIT_STACK=" stacksize 50"
27419 # HMS: Only if we are doing the MLOCKALL stuff...
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
27421 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
27423 # Check whether --with-stack-limit was given.
27424 if test "${with_stack_limit+set}" = set; then :
27425 withval=$with_stack_limit; ans=$withval
27443 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27447 $as_echo "$ans" >&6; }
27449 cat >>confdefs.h <<_ACEOF
27450 #define DFLT_RLIMIT_STACK $ans
27454 # HMS: only if we have RLIMIT_MEMLOCK
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
27456 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
27458 # Check whether --with-memlock was given.
27459 if test "${with_memlock+set}" = set; then :
27460 withval=$with_memlock; ans=$withval
27468 ans=$ntp_dflt_rlimit_memlock
27471 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27475 $as_echo "$ans" >&6; }
27477 cat >>confdefs.h <<_ACEOF
27478 #define DFLT_RLIMIT_MEMLOCK $ans
27484 # some OSes prefer _exit() in forked children to exit()
27485 for ac_func in _exit
27487 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
27488 if test "x$ac_cv_func__exit" = xyes; then :
27489 cat >>confdefs.h <<_ACEOF
27490 #define HAVE__EXIT 1
27496 ntp_worker_child_exit=exit
27497 case "$ac_cv_func__exit::$host_os" in
27499 ntp_worker_child_exit=_exit
27502 ntp_worker_child_exit=_exit
27506 cat >>confdefs.h <<_ACEOF
27507 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
27511 for ac_func in umask uname updwtmp updwtmpx
27513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27516 cat >>confdefs.h <<_ACEOF
27517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27526 # http://bugs.ntp.org/737
27527 case "$ac_cv_func_recvmsg" in
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
27530 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
27531 if ${ntp_cv_struct_iovec_help+:} false; then :
27532 $as_echo_n "(cached) " >&6
27536 for ntp_cv_struct_iovec_help in '0' '1'; do
27537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27538 /* end confdefs.h. */
27540 #ifdef HAVE_SYS_TYPES_H
27541 # include <sys/types.h>
27543 #ifdef HAVE_SYS_SOCKET_H
27544 # include <sys/socket.h>
27546 #if $ntp_cv_struct_iovec_help
27547 # include <sys/uio.h>
27562 x = recvmsg(s, &mh, flags);
27570 if ac_fn_c_try_compile "$LINENO"; then :
27571 compiled=yes ; break 1
27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 case "$compiled" in
27577 ntp_cv_struct_iovec_help=0
27579 { compiled=; unset compiled;}
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
27584 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
27585 case "$ntp_cv_struct_iovec_help" in
27588 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
27594 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
27595 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
27596 $as_echo_n "(cached) " >&6
27598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27599 /* end confdefs.h. */
27601 #ifdef HAVE_SYS_TYPES_H
27602 # include <sys/types.h>
27604 #ifdef HAVE_UNISTD_H
27605 # include <unistd.h>
27619 if ac_fn_c_try_compile "$LINENO"; then :
27620 ntp_cv_func_setpgrp_nargs=2
27622 ntp_cv_func_setpgrp_nargs=0
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
27629 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
27630 case "$ntp_cv_func_setpgrp_nargs" in
27633 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
27638 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
27639 if ${ntp_cv_decl_errno+:} false; then :
27640 $as_echo_n "(cached) " >&6
27642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27643 /* end confdefs.h. */
27645 #ifdef HAVE_ERRNO_H
27646 # include <errno.h>
27660 if ac_fn_c_try_compile "$LINENO"; then :
27661 ntp_cv_decl_errno=no
27663 ntp_cv_decl_errno=yes
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
27670 $as_echo "$ntp_cv_decl_errno" >&6; }
27671 case "$ntp_cv_decl_errno" in
27674 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
27679 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
27680 if ${ntp_cv_decl_h_errno+:} false; then :
27681 $as_echo_n "(cached) " >&6
27683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684 /* end confdefs.h. */
27686 #include <sys/types.h>
27687 #ifdef HAVE_NETINET_IN_H
27688 # include <netinet/in.h>
27690 #ifdef HAVE_ARPA_NAMESER_H
27691 # include <arpa/nameser.h>
27693 #ifdef HAVE_NETDB_H
27694 # include <netdb.h>
27696 #ifdef HAVE_RESOLV_H
27697 # include <resolv.h>
27704 extern int h_errno;
27711 if ac_fn_c_try_compile "$LINENO"; then :
27712 ntp_cv_decl_h_errno=yes
27714 ntp_cv_decl_h_errno=no
27717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
27721 $as_echo "$ntp_cv_decl_h_errno" >&6; }
27722 case "$ntp_cv_decl_h_errno" in
27725 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
27730 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
27731 if ${ntp_cv_decl_syscall+:} false; then :
27732 $as_echo_n "(cached) " >&6
27734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27735 /* end confdefs.h. */
27737 #ifdef HAVE_SYS_TYPES_H
27738 # include <sys/types.h>
27740 #ifdef HAVE_UNISTD_H
27741 # include <unistd.h>
27748 extern int syscall (int, ...);
27754 ntp_cv_decl_syscall=yes
27756 if ac_fn_c_try_compile "$LINENO"; then :
27757 ntp_cv_decl_syscall=no
27760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
27764 $as_echo "$ntp_cv_decl_syscall" >&6; }
27765 case "$ntp_cv_decl_syscall" in
27768 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
27775 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
27776 # Needed for XLC under AIX 4.3.2
27780 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27783 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
27786 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27789 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27792 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27795 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27798 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27803 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27806 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
27811 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27816 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27819 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27822 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27825 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27828 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27831 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27834 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27837 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27840 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27843 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27846 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27849 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27852 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27855 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27858 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27861 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27866 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27869 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
27874 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27881 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27884 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
27887 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27890 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27893 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27896 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27899 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27902 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27905 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27908 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27911 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27914 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27917 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
27919 case "`basename $ac_cv_prog_CC`" in
27922 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27927 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27930 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27933 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27936 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27939 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27942 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
27945 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
27950 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27953 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27956 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
27959 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27962 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27965 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27968 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
27971 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27974 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27977 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27980 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27983 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
27986 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27989 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27997 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
28005 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
28010 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
28011 if ${ntp_cv_var_open_bcast_socket+:} false; then :
28012 $as_echo_n "(cached) " >&6
28020 ntp_cv_var_open_bcast_socket=$ans
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
28025 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
28026 case "$ntp_cv_var_open_bcast_socket" in
28029 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
28036 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
28041 $as_echo_n "checking if process groups are set with -pid... " >&6; }
28042 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
28043 $as_echo_n "(cached) " >&6
28066 ntp_cv_arg_setpgrp_negpid=$ans
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
28071 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
28072 case "$ntp_cv_arg_setpgrp_negpid" in
28075 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
28080 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
28081 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
28082 $as_echo_n "(cached) " >&6
28092 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
28093 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
28094 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
28095 # in $host may be followed by "aout", "ecoff", or "elf".
28096 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
28099 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
28115 ntp_cv_func_ctty_for_f_setown=$ans
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
28120 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
28121 case "$ntp_cv_func_ctty_for_f_setown" in
28124 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
28129 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
28130 if ${ntp_cv_os_routeupdates+:} false; then :
28131 $as_echo_n "(cached) " >&6
28142 ntp_cv_os_routeupdates=$ans
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
28147 $as_echo "$ntp_cv_os_routeupdates" >&6; }
28148 case "$ntp_cv_os_routeupdates" in
28151 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
28156 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
28157 if ${ntp_cv_os_wildcardreuse+:} false; then :
28158 $as_echo_n "(cached) " >&6
28168 ntp_cv_os_wildcardreuse=$ans
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
28173 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
28174 case "$ntp_cv_os_wildcardreuse" in
28177 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
28184 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
28189 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
28190 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
28191 $as_echo_n "(cached) " >&6
28200 ntp_cv_var_min_rec_tickadj=$ans
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
28205 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
28206 case "$ntp_cv_var_min_rec_tickadj" in
28211 cat >>confdefs.h <<_ACEOF
28212 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
28218 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
28219 if ${ntp_cv_no_parenb_ignpar+:} false; then :
28220 $as_echo_n "(cached) " >&6
28231 i?86-*-freebsd[123].*)
28240 ntp_cv_no_parenb_ignpar=$ans
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
28245 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
28246 case "$ntp_cv_no_parenb_ignpar" in
28249 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
28254 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
28255 # Check whether --enable-debug-timing was given.
28256 if test "${enable_debug_timing+set}" = set; then :
28257 enableval=$enable_debug_timing; ntp_ok=$enableval
28266 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28270 $as_echo "$ntp_ok" >&6; }
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
28273 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
28274 # Check whether --enable-dst-minutes was given.
28275 if test "${enable_dst_minutes+set}" = set; then :
28276 enableval=$enable_dst_minutes; ans=$enableval
28283 cat >>confdefs.h <<_ACEOF
28284 #define DSTMINUTES $ans
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28288 $as_echo "$ans" >&6; }
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
28291 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
28292 # Check whether --enable-ignore-dns-errors was given.
28293 if test "${enable_ignore_dns_errors+set}" = set; then :
28294 enableval=$enable_ignore_dns_errors; ans=$enableval
28303 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28307 $as_echo "$ans" >&6; }
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
28310 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
28311 if ${ntp_cv_var_ntp_syscalls+:} false; then :
28312 $as_echo_n "(cached) " >&6
28315 ntp_cv_var_ntp_syscalls=no
28316 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
28318 ntp_cv_var_ntp_syscalls=libc
28321 ntp_cv_var_ntp_syscalls=inline
28324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28325 /* end confdefs.h. */
28327 #include <sys/syscall.h>
28328 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
28333 if ac_fn_c_try_cpp "$LINENO"; then :
28334 ntp_cv_var_ntp_syscalls=kernel
28337 rm -f conftest.err conftest.i conftest.$ac_ext
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
28344 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
28345 case "$ntp_cv_var_ntp_syscalls" in
28348 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
28353 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
28359 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
28360 if ${ntp_cv_var_sta_fll+:} false; then :
28361 $as_echo_n "(cached) " >&6
28363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28364 /* end confdefs.h. */
28366 #include <sys/timex.h>
28372 if ac_fn_c_try_cpp "$LINENO"; then :
28373 ntp_cv_var_sta_fll=yes
28375 ntp_cv_var_sta_fll=no
28378 rm -f conftest.err conftest.i conftest.$ac_ext
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
28382 $as_echo "$ntp_cv_var_sta_fll" >&6; }
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
28385 $as_echo_n "checking if we have kernel PLL support... " >&6; }
28386 if ${ntp_cv_var_kernel_pll+:} false; then :
28387 $as_echo_n "(cached) " >&6
28389 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
28391 ntp_cv_var_kernel_pll=no
28393 *) ntp_cv_var_kernel_pll=yes
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
28400 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
28401 case "$ntp_cv_var_kernel_pll" in
28404 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
28409 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
28410 if ${ntp_cv_size_returned_in_buffer+:} false; then :
28411 $as_echo_n "(cached) " >&6
28426 ntp_cv_size_returned_in_buffer=$ans
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
28431 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
28432 case "$ntp_cv_size_returned_in_buffer" in
28435 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
28439 # Check for ioctls TIOCGPPSEV
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
28441 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
28442 case "$ac_cv_header_termios_h" in
28444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28445 /* end confdefs.h. */
28447 #include <termios.h>
28453 if ac_fn_c_try_cpp "$LINENO"; then :
28459 rm -f conftest.err conftest.i conftest.$ac_ext
28468 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28472 $as_echo "$ntp_ok" >&6; }
28474 # Check for ioctls TIOCSPPS
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
28476 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
28477 case "$ac_cv_header_termios_h" in
28479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480 /* end confdefs.h. */
28482 #include <termios.h>
28488 if ac_fn_c_try_cpp "$LINENO"; then :
28494 rm -f conftest.err conftest.i conftest.$ac_ext
28503 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28507 $as_echo "$ntp_ok" >&6; }
28509 # Check for ioctls CIOGETEV
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
28511 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
28512 case "$ac_cv_header_sys_ppsclock_h" in
28514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28515 /* end confdefs.h. */
28517 #include <sys/ppsclock.h>
28523 if ac_fn_c_try_cpp "$LINENO"; then :
28529 rm -f conftest.err conftest.i conftest.$ac_ext
28538 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28542 $as_echo "$ntp_ok" >&6; }
28544 # ATOM/PPSAPI stuff.
28548 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
28550 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
28551 # The PPSAPI needs struct timespec.
28552 # The PPSAPI also needs a timepps header.
28554 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
28556 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
28557 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
28559 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
28564 ntp_ripe_ncc_ok=yes
28570 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
28571 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
28572 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
28577 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
28580 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
28581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28582 /* end confdefs.h. */
28584 #include <sys/time.h>
28586 #include <sys/ppsclock.h>
28587 #include <linux/serial.h>
28589 #ifndef TIOCGSERIAL
28592 #ifndef TIOCSSERIAL
28595 #ifndef ASYNC_PPS_CD_POS
28598 #ifndef ASYNC_PPS_CD_NEG
28606 if ac_fn_c_try_cpp "$LINENO"; then :
28612 rm -f conftest.err conftest.i conftest.$ac_ext
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28614 $as_echo "$ntp_ok" >&6; }
28623 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
28627 # Check for SHMEM_STATUS support
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
28629 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
28630 case "$ac_cv_header_sys_mman_h" in
28641 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28645 $as_echo "$ntp_ok" >&6; }
28649 # HPUX only, and by explicit request
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
28651 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
28652 # Check whether --enable-BANCOMM was given.
28653 if test "${enable_BANCOMM+set}" = set; then :
28654 enableval=$enable_BANCOMM; ntp_ok=$enableval
28664 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28669 $as_echo "$ntp_ok" >&6; }
28670 case "$ntp_ok$host" in
28672 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28673 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28676 #HPUX only, and only by explicit request
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
28678 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
28679 # Check whether --enable-GPSVME was given.
28680 if test "${enable_GPSVME+set}" = set; then :
28681 enableval=$enable_GPSVME; ntp_ok=$enableval
28691 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28696 $as_echo "$ntp_ok" >&6; }
28697 case "$ntp_ok$host" in
28699 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28700 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
28704 $as_echo_n "checking for PCL720 clock support... " >&6; }
28705 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
28708 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28717 $as_echo "$ans" >&6; }
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
28720 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
28721 # Check whether --enable-all-clocks was given.
28722 if test "${enable_all_clocks+set}" = set; then :
28723 enableval=$enable_all_clocks; ntp_eac=$enableval
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
28730 $as_echo "$ntp_eac" >&6; }
28732 # HMS: Should we also require ntp_parse_ok?
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
28734 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
28735 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
28743 $as_echo "$ntp_canparse" >&6; }
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
28746 $as_echo_n "checking if we have support for audio clocks... " >&6; }
28747 case "$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
28751 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
28754 *) ntp_canaudio=no ;;
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
28757 $as_echo "$ntp_canaudio" >&6; }
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
28760 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
28761 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
28765 *) ntp_canshm=no ;;
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
28768 $as_echo "$ntp_canshm" >&6; }
28770 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
28772 $as_echo_n "checking for termios modem control... " >&6; }
28773 if ${ntp_cv_modem_control+:} false; then :
28774 $as_echo_n "(cached) " >&6
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28779 #ifdef HAVE_UNISTD_H
28780 # include <unistd.h>
28782 #ifdef HAVE_TERMIOS_H
28783 # include <termios.h>
28785 #ifdef HAVE_SYS_IOCTL_H
28786 # include <sys/ioctl.h>
28793 int dtr = TIOCM_DTR;
28795 ioctl(1, TIOCMBIS, (char *)&dtr);
28802 if ac_fn_c_try_compile "$LINENO"; then :
28803 ntp_cv_modem_control=yes
28805 ntp_cv_modem_control=no
28808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
28812 $as_echo "$ntp_cv_modem_control" >&6; }
28813 case "$ntp_eac::$ntp_cv_modem_control" in
28815 ntp_enable_all_modem_control_clocks=yes
28818 ntp_enable_all_modem_control_clocks=no
28822 # Requires modem control
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
28824 $as_echo_n "checking ACTS modem service... " >&6; }
28825 # Check whether --enable-ACTS was given.
28826 if test "${enable_ACTS+set}" = set; then :
28827 enableval=$enable_ACTS; ntp_ok=$enableval
28829 ntp_ok=$ntp_enable_all_modem_control_clocks
28837 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28842 $as_echo "$ntp_ok" >&6; }
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
28845 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
28846 # Check whether --enable-ARBITER was given.
28847 if test "${enable_ARBITER+set}" = set; then :
28848 enableval=$enable_ARBITER; ntp_ok=$enableval
28858 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28863 $as_echo "$ntp_ok" >&6; }
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
28866 $as_echo_n "checking Arcron MSF receiver... " >&6; }
28867 # Check whether --enable-ARCRON_MSF was given.
28868 if test "${enable_ARCRON_MSF+set}" = set; then :
28869 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
28879 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28884 $as_echo "$ntp_ok" >&6; }
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
28887 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
28888 # Check whether --enable-AS2201 was given.
28889 if test "${enable_AS2201+set}" = set; then :
28890 enableval=$enable_AS2201; ntp_ok=$enableval
28900 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28905 $as_echo "$ntp_ok" >&6; }
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
28908 $as_echo_n "checking ATOM PPS interface... " >&6; }
28909 # Check whether --enable-ATOM was given.
28910 if test "${enable_ATOM+set}" = set; then :
28911 enableval=$enable_ATOM; ntp_ok=$enableval
28917 case "$ntp_atom_ok" in
28924 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28929 $as_echo "$ntp_ok" >&6; }
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
28932 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
28933 # Check whether --enable-CHRONOLOG was given.
28934 if test "${enable_CHRONOLOG+set}" = set; then :
28935 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
28945 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28950 $as_echo "$ntp_ok" >&6; }
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
28953 $as_echo_n "checking CHU modem/decoder... " >&6; }
28954 # Check whether --enable-CHU was given.
28955 if test "${enable_CHU+set}" = set; then :
28956 enableval=$enable_CHU; ntp_ok=$enableval
28966 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28971 $as_echo "$ntp_ok" >&6; }
28972 ntp_refclock_chu=$ntp_ok
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
28975 $as_echo_n "checking CHU audio/decoder... " >&6; }
28976 # Check whether --enable-AUDIO-CHU was given.
28977 if test "${enable_AUDIO_CHU+set}" = set; then :
28978 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
28981 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28990 $as_echo "$ntp_ok" >&6; }
28991 # We used to check for sunos/solaris target...
28992 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
28993 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
28994 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
28999 $as_echo_n "checking Datum Programmable Time System... " >&6; }
29000 # Check whether --enable-DATUM was given.
29001 if test "${enable_DATUM+set}" = set; then :
29002 enableval=$enable_DATUM; ntp_ok=$enableval
29005 case "$ac_cv_header_termios_h" in
29020 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29025 $as_echo "$ntp_ok" >&6; }
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
29028 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
29029 # Check whether --enable-DUMBCLOCK was given.
29030 if test "${enable_DUMBCLOCK+set}" = set; then :
29031 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
29041 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29046 $as_echo "$ntp_ok" >&6; }
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
29049 $as_echo_n "checking Forum Graphic GPS... " >&6; }
29050 # Check whether --enable-FG was given.
29051 if test "${enable_FG+set}" = set; then :
29052 enableval=$enable_FG; ntp_ok=$enableval
29062 $as_echo "#define CLOCK_FG 1" >>confdefs.h
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29067 $as_echo "$ntp_ok" >&6; }
29069 # Requires modem control
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
29071 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
29072 # Check whether --enable-HEATH was given.
29073 if test "${enable_HEATH+set}" = set; then :
29074 enableval=$enable_HEATH; ntp_ok=$enableval
29076 ntp_ok=$ntp_enable_all_modem_control_clocks
29084 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29089 $as_echo "$ntp_ok" >&6; }
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
29092 $as_echo_n "checking for hopf serial clock device... " >&6; }
29093 # Check whether --enable-HOPFSERIAL was given.
29094 if test "${enable_HOPFSERIAL+set}" = set; then :
29095 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
29105 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29110 $as_echo "$ntp_ok" >&6; }
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
29113 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
29114 # Check whether --enable-HOPFPCI was given.
29115 if test "${enable_HOPFPCI+set}" = set; then :
29116 enableval=$enable_HOPFPCI; ntp_ok=$enableval
29126 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29131 $as_echo "$ntp_ok" >&6; }
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
29134 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
29135 # Check whether --enable-HPGPS was given.
29136 if test "${enable_HPGPS+set}" = set; then :
29137 enableval=$enable_HPGPS; ntp_ok=$enableval
29147 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29152 $as_echo "$ntp_ok" >&6; }
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
29155 $as_echo_n "checking IRIG audio decoder... " >&6; }
29156 # Check whether --enable-IRIG was given.
29157 if test "${enable_IRIG+set}" = set; then :
29158 enableval=$enable_IRIG; ntp_ok=$enableval
29161 case "$ntp_eac$ntp_canaudio" in
29173 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29178 $as_echo "$ntp_ok" >&6; }
29179 case "$ntp_ok$ntp_canaudio" in
29180 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29181 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
29185 $as_echo_n "checking for JJY receiver... " >&6; }
29186 # Check whether --enable-JJY was given.
29187 if test "${enable_JJY+set}" = set; then :
29188 enableval=$enable_JJY; ntp_ok=$enableval
29198 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29203 $as_echo "$ntp_ok" >&6; }
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
29206 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
29207 # Check whether --enable-JUPITER was given.
29208 if test "${enable_JUPITER+set}" = set; then :
29209 enableval=$enable_JUPITER; ntp_ok=$enableval
29214 case "$ntp_jupiter_ok" in
29221 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29226 $as_echo "$ntp_ok" >&6; }
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
29229 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
29230 # Check whether --enable-LEITCH was given.
29231 if test "${enable_LEITCH+set}" = set; then :
29232 enableval=$enable_LEITCH; ntp_ok=$enableval
29242 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
29246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29247 $as_echo "$ntp_ok" >&6; }
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
29250 $as_echo_n "checking local clock reference... " >&6; }
29251 # Check whether --enable-LOCAL-CLOCK was given.
29252 if test "${enable_LOCAL_CLOCK+set}" = set; then :
29253 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
29263 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29268 $as_echo "$ntp_ok" >&6; }
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
29273 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
29274 # Check whether --enable-MX4200 was given.
29275 if test "${enable_MX4200+set}" = set; then :
29276 enableval=$enable_MX4200; ntp_ok=$enableval
29279 case "$ac_cv_var_ppsclock" in
29295 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29300 $as_echo "$ntp_ok" >&6; }
29301 case "$ntp_ok$host" in
29302 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29303 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
29307 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
29308 # Check whether --enable-NEOCLOCK4X was given.
29309 if test "${enable_NEOCLOCK4X+set}" = set; then :
29310 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
29320 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29325 $as_echo "$ntp_ok" >&6; }
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
29328 $as_echo_n "checking NMEA GPS receiver... " >&6; }
29329 # Check whether --enable-NMEA was given.
29330 if test "${enable_NMEA+set}" = set; then :
29331 enableval=$enable_NMEA; ntp_ok=$enableval
29341 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29346 $as_echo "$ntp_ok" >&6; }
29348 for ac_func in strtoll
29350 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
29351 if test "x$ac_cv_func_strtoll" = xyes; then :
29352 cat >>confdefs.h <<_ACEOF
29353 #define HAVE_STRTOLL 1
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
29360 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
29361 # Check whether --enable-GPSD was given.
29362 if test "${enable_GPSD+set}" = set; then :
29363 enableval=$enable_GPSD; ntp_ok=$enableval
29365 case "$ac_cv_func_strtoll" in
29366 yes) ntp_ok=$ntp_eac ;;
29376 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29381 $as_echo "$ntp_ok" >&6; }
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
29384 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
29385 # Check whether --enable-ONCORE was given.
29386 if test "${enable_ONCORE+set}" = set; then :
29387 enableval=$enable_ONCORE; ntp_ok=$enableval
29393 case "$ntp_oncore_ok" in
29400 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29405 $as_echo "$ntp_ok" >&6; }
29407 # Requires modem control
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
29409 $as_echo_n "checking for Palisade clock... " >&6; }
29410 # Check whether --enable-PALISADE was given.
29411 if test "${enable_PALISADE+set}" = set; then :
29412 enableval=$enable_PALISADE; ntp_ok=$enableval
29414 ntp_ok=$ntp_enable_all_modem_control_clocks
29422 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29427 $as_echo "$ntp_ok" >&6; }
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
29430 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
29431 # Check whether --enable-PCF was given.
29432 if test "${enable_PCF+set}" = set; then :
29433 enableval=$enable_PCF; ntp_ok=$enableval
29443 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29448 $as_echo "$ntp_ok" >&6; }
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
29451 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
29452 # Check whether --enable-PST was given.
29453 if test "${enable_PST+set}" = set; then :
29454 enableval=$enable_PST; ntp_ok=$enableval
29464 $as_echo "#define CLOCK_PST 1" >>confdefs.h
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29469 $as_echo "$ntp_ok" >&6; }
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
29472 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
29473 # Check whether --enable-RIPENCC was given.
29474 if test "${enable_RIPENCC+set}" = set; then :
29475 enableval=$enable_RIPENCC; ntp_ok=$enableval
29481 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
29482 case "$ntp_ripe_ncc_ok" in
29489 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29494 $as_echo "$ntp_ok" >&6; }
29496 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
29497 # For *IX, we need sys/ipc.h and sys/shm.h.
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
29499 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
29500 # Check whether --enable-SHM was given.
29501 if test "${enable_SHM+set}" = set; then :
29502 enableval=$enable_SHM; ntp_ok=$enableval
29505 case "$ntp_eac$ntp_canshm" in
29517 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29522 $as_echo "$ntp_ok" >&6; }
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
29525 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
29526 # Check whether --enable-SPECTRACOM was given.
29527 if test "${enable_SPECTRACOM+set}" = set; then :
29528 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
29538 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29543 $as_echo "$ntp_ok" >&6; }
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
29546 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
29547 # Check whether --enable-TPRO was given.
29548 if test "${enable_TPRO+set}" = set; then :
29549 enableval=$enable_TPRO; ntp_ok=$enableval
29552 case "$ac_cv_header_sys_tpro_h" in
29568 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29573 $as_echo "$ntp_ok" >&6; }
29574 case "$ntp_ok$ac_cv_header_sys_tpro" in
29575 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29576 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29579 # Not on a vax-dec-bsd
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
29581 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
29582 # Check whether --enable-TRUETIME was given.
29583 if test "${enable_TRUETIME+set}" = set; then :
29584 enableval=$enable_TRUETIME; ntp_ok=$enableval
29603 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29608 $as_echo "$ntp_ok" >&6; }
29609 case "$ntp_ok$host" in
29610 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29611 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
29615 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
29616 # Check whether --enable-TT560 was given.
29617 if test "${enable_TT560+set}" = set; then :
29618 enableval=$enable_TT560; ntp_ok=$enableval
29628 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29633 $as_echo "$ntp_ok" >&6; }
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
29636 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
29637 # Check whether --enable-ULINK was given.
29638 if test "${enable_ULINK+set}" = set; then :
29639 enableval=$enable_ULINK; ntp_ok=$enableval
29649 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29654 $as_echo "$ntp_ok" >&6; }
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
29657 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
29658 # Check whether --enable-TSYNCPCI was given.
29659 if test "${enable_TSYNCPCI+set}" = set; then :
29660 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
29678 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
29682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29683 $as_echo "$ntp_ok" >&6; }
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
29686 $as_echo_n "checking WWV receiver... " >&6; }
29687 # Check whether --enable-WWV was given.
29688 if test "${enable_WWV+set}" = set; then :
29689 enableval=$enable_WWV; ntp_ok=$enableval
29692 case "$ntp_eac$ntp_canaudio" in
29704 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29709 $as_echo "$ntp_ok" >&6; }
29710 case "$ntp_ok$ntp_canaudio" in
29711 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29712 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
29716 $as_echo_n "checking for Zyfer receiver... " >&6; }
29717 # Check whether --enable-ZYFER was given.
29718 if test "${enable_ZYFER+set}" = set; then :
29719 enableval=$enable_ZYFER; ntp_ok=$enableval
29729 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29734 $as_echo "$ntp_ok" >&6; }
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
29737 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
29738 # Check whether --enable-parse-clocks was given.
29739 if test "${enable_parse_clocks+set}" = set; then :
29740 enableval=$enable_parse_clocks; ntp_eapc=$enableval
29744 yes) ntp_eapc=$ntp_canparse ;;
29747 # Delete the next line one of these days
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
29754 $as_echo "$ntp_eapc" >&6; }
29756 case "$ntp_eac$ntp_eapc$ntp_canparse" in
29758 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
29761 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
29770 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
29771 # Check whether --enable-COMPUTIME was given.
29772 if test "${enable_COMPUTIME+set}" = set; then :
29773 enableval=$enable_COMPUTIME; ntp_ok=$enableval
29784 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29789 $as_echo "$ntp_ok" >&6; }
29790 case "$ntp_ok$ntp_canparse" in
29792 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
29796 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
29797 # Check whether --enable-DCF7000 was given.
29798 if test "${enable_DCF7000+set}" = set; then :
29799 enableval=$enable_DCF7000; ntp_ok=$enableval
29810 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29815 $as_echo "$ntp_ok" >&6; }
29816 case "$ntp_ok$ntp_canparse" in
29818 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
29822 $as_echo_n "checking HOPF 6021 clock... " >&6; }
29823 # Check whether --enable-HOPF6021 was given.
29824 if test "${enable_HOPF6021+set}" = set; then :
29825 enableval=$enable_HOPF6021; ntp_ok=$enableval
29836 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29841 $as_echo "$ntp_ok" >&6; }
29842 case "$ntp_ok$ntp_canparse" in
29844 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
29848 $as_echo_n "checking Meinberg clocks... " >&6; }
29849 # Check whether --enable-MEINBERG was given.
29850 if test "${enable_MEINBERG+set}" = set; then :
29851 enableval=$enable_MEINBERG; ntp_ok=$enableval
29862 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29867 $as_echo "$ntp_ok" >&6; }
29868 case "$ntp_ok$ntp_canparse" in
29870 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
29874 $as_echo_n "checking DCF77 raw time code... " >&6; }
29875 # Check whether --enable-RAWDCF was given.
29876 if test "${enable_RAWDCF+set}" = set; then :
29877 enableval=$enable_RAWDCF; ntp_ok=$enableval
29890 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29895 $as_echo "$ntp_ok" >&6; }
29896 case "$ntp_ok$ntp_canparse" in
29898 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29901 case "$ntp_rawdcf" in
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
29904 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
29905 if ${ntp_cv_rawdcf_parity+:} false; then :
29906 $as_echo_n "(cached) " >&6
29915 ntp_cv_rawdcf_parity=$ans
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
29920 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
29921 case "$ntp_cv_rawdcf_parity" in
29924 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
29930 $as_echo_n "checking RCC 8000 clock... " >&6; }
29931 # Check whether --enable-RCC8000 was given.
29932 if test "${enable_RCC8000+set}" = set; then :
29933 enableval=$enable_RCC8000; ntp_ok=$enableval
29944 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29949 $as_echo "$ntp_ok" >&6; }
29950 case "$ntp_ok$ntp_canparse" in
29952 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
29956 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
29957 # Check whether --enable-SCHMID was given.
29958 if test "${enable_SCHMID+set}" = set; then :
29959 enableval=$enable_SCHMID; ntp_ok=$enableval
29970 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29975 $as_echo "$ntp_ok" >&6; }
29976 case "$ntp_ok$ntp_canparse" in
29978 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
29982 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
29983 # Check whether --enable-TRIMTAIP was given.
29984 if test "${enable_TRIMTAIP+set}" = set; then :
29985 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
29996 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30001 $as_echo "$ntp_ok" >&6; }
30002 case "$ntp_ok$ntp_canparse" in
30004 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
30008 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
30009 # Check whether --enable-TRIMTSIP was given.
30010 if test "${enable_TRIMTSIP+set}" = set; then :
30011 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
30022 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30027 $as_echo "$ntp_ok" >&6; }
30028 case "$ntp_ok$ntp_canparse" in
30030 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
30034 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
30035 # Check whether --enable-WHARTON was given.
30036 if test "${enable_WHARTON+set}" = set; then :
30037 enableval=$enable_WHARTON; ntp_ok=$enableval
30048 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30053 $as_echo "$ntp_ok" >&6; }
30054 case "$ntp_ok$ntp_canparse" in
30056 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
30060 $as_echo_n "checking VARITEXT clock... " >&6; }
30061 # Check whether --enable-VARITEXT was given.
30062 if test "${enable_VARITEXT+set}" = set; then :
30063 enableval=$enable_VARITEXT; ntp_ok=$enableval
30074 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30079 $as_echo "$ntp_ok" >&6; }
30080 case "$ntp_ok$ntp_canparse" in
30082 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
30086 $as_echo_n "checking SEL240X clock... " >&6; }
30087 # Check whether --enable-SEL240X was given.
30088 if test "${enable_SEL240X+set}" = set; then :
30089 enableval=$enable_SEL240X; ntp_ok=$enableval
30094 if test "$ntp_ok" = "yes"; then
30098 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30102 $as_echo "$ntp_ok" >&6; }
30103 case "$ntp_ok$ntp_canparse" in
30105 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
30115 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
30117 case "$ntp_libparse" in
30121 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
30123 LIBPARSE=../libparse/libparse.a
30124 MAKE_LIBPARSE=libparse.a
30125 # HMS: check_y2k trips the 34 year problem now...
30126 false && MAKE_CHECK_Y2K=check_y2k
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30129 $as_echo "$ans" >&6; }
30139 # Check whether --with-crypto was given.
30140 if test "${with_crypto+set}" = set; then :
30141 withval=$with_crypto;
30145 # Check whether --with-openssl-libdir was given.
30146 if test "${with_openssl_libdir+set}" = set; then :
30147 withval=$with_openssl_libdir;
30151 # Check whether --with-openssl-incdir was given.
30152 if test "${with_openssl_incdir+set}" = set; then :
30153 withval=$with_openssl_incdir;
30157 # Check whether --with-rpath was given.
30158 if test "${with_rpath+set}" = set; then :
30159 withval=$with_rpath;
30164 ntp_openssl_from_pkg_config=no
30166 with_crypto=${with_crypto:-openssl,libcrypto}
30167 case "$with_crypto" in
30169 with_crypto=openssl,libcrypto
30173 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
30175 *:notempty:notgiven:notgiven)
30176 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
30178 $as_echo_n "checking pkg-config for $pkg... " >&6; }
30179 if $PKG_CONFIG --exists $pkg ; then
30180 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
30181 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
30182 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
30183 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
30184 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
30187 ntp_openssl_from_pkg_config=yes
30188 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
30189 case "$ntp_openssl_version" in
30191 *) ntp_openssl_version='(unknown)' ;;
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
30194 $as_echo "yes, version $ntp_openssl_version" >&6; }
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 $as_echo "no" >&6; }
30202 case "$with_crypto:$ntp_openssl" in
30207 case "${with_rpath-notgiven}" in
30209 # Lame - what to do if we need -Wl... but not -R?
30215 # This may really only be true for gcc
30216 need_dash_Wlrpath=1
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
30229 $as_echo_n "checking for openssl library directory... " >&6; }
30230 with_openssl_libdir=${with_openssl_libdir-notgiven}
30231 case "$with_openssl_libdir" in
30235 with_openssl_libdir=default
30238 with_openssl_libdir=no
30242 case "$with_openssl_libdir" in
30245 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
30246 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
30247 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
30249 case "$with_openssl_libdir" in
30252 *) # Look for libcrypto.a and libssl.a:
30253 for i in $with_openssl_libdir no
30257 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
30260 test -f $i/libcrypto.so -a -f $i/libssl.so && break
30261 test -f $i/libcrypto.a -a -f $i/libssl.a && break
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
30269 $as_echo "$openssl_libdir" >&6; }
30270 case "$openssl_libdir" in
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
30274 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
30278 $as_echo_n "checking for openssl include directory... " >&6; }
30279 with_openssl_incdir=${with_openssl_incdir-notgiven}
30280 case "$with_openssl_incdir" in
30283 with_openssl_incdir="/usr/include /usr/sfw/include"
30284 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
30285 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
30287 case "$with_openssl_incdir" in
30290 *) # look for openssl/evp.h:
30291 for i in $with_openssl_incdir no
30293 test -f $i/openssl/evp.h && break
30299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
30300 $as_echo "$openssl_incdir" >&6; }
30301 case "$openssl_incdir" in
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
30305 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
30307 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
30314 case "$ntp_openssl" in
30316 # We have OpenSSL inc/lib dirs - use them.
30317 case "$openssl_incdir" in
30321 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
30324 case "$openssl_libdir" in
30328 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
30329 case "$need_dash_r" in
30331 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
30333 case "$need_dash_Wlrpath" in
30335 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
30339 LDADD_NTP="$LDADD_NTP -lcrypto"
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
30344 $as_echo_n "checking if we will use crypto... " >&6; }
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
30346 $as_echo "$ntp_openssl" >&6; }
30348 case "$ntp_openssl" in
30350 for ac_header in openssl/cmac.h openssl/hmac.h
30352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30353 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30354 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30355 cat >>confdefs.h <<_ACEOF
30356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30364 $as_echo "#define OPENSSL /**/" >>confdefs.h
30366 case "$VER_SUFFIX" in
30368 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
30373 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
30374 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
30375 NTPO_SAVED_LIBS="$LIBS"
30378 # check for linking with -lcrypto failure, and try -lcrypto -lz.
30379 # Helps m68k-atari-mint
30381 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
30383 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
30385 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
30386 if ${ntp_cv_bare_lcrypto+:} false; then :
30387 $as_echo_n "(cached) " >&6
30389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30390 /* end confdefs.h. */
30392 #include "openssl/err.h"
30393 #include "openssl/evp.h"
30399 ERR_load_crypto_strings();
30400 OpenSSL_add_all_algorithms();
30407 if ac_fn_c_try_link "$LINENO"; then :
30408 ntp_cv_bare_lcrypto=yes
30410 ntp_cv_bare_lcrypto=no
30413 rm -f core conftest.err conftest.$ac_objext \
30414 conftest$ac_exeext conftest.$ac_ext
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
30418 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
30419 case "$ntp_cv_bare_lcrypto" in
30421 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
30423 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
30424 if ${ntp_cv_lcrypto_lz+:} false; then :
30425 $as_echo_n "(cached) " >&6
30427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h. */
30430 #include "openssl/err.h"
30431 #include "openssl/evp.h"
30437 ERR_load_crypto_strings();
30438 OpenSSL_add_all_algorithms();
30445 if ac_fn_c_try_link "$LINENO"; then :
30446 ntp_cv_lcrypto_lz=yes
30448 ntp_cv_lcrypto_lz=no
30451 rm -f core conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
30456 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
30457 case "$ntp_cv_lcrypto_lz" in
30459 LDADD_NTP="$LDADD_NTP -lz"
30465 # Older OpenSSL headers have a number of callback prototypes inside
30466 # other function prototypes which trigger copious warnings with gcc's
30467 # -Wstrict-prototypes, which is included in -Wall.
30471 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
30472 # int (*cb)(), int sgckey);
30477 openssl_triggers_warnings=unknown
30478 NTPO_SAVED_CFLAGS="$CFLAGS"
30480 case "$ntp_openssl:$GCC" in
30482 CFLAGS="$CFLAGS -Werror"
30483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30484 /* end confdefs.h. */
30491 /* see if -Werror breaks gcc */
30498 if ac_fn_c_try_compile "$LINENO"; then :
30499 gcc_handles_Werror=yes
30501 gcc_handles_Werror=no
30504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 case "$gcc_handles_Werror" in
30507 # if this gcc doesn't do -Werror go ahead and use
30508 # -Wstrict-prototypes.
30509 openssl_triggers_warnings=yes
30512 CFLAGS="$CFLAGS -Wstrict-prototypes"
30513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30514 /* end confdefs.h. */
30516 #include "openssl/asn1_mac.h"
30517 #include "openssl/bn.h"
30518 #include "openssl/err.h"
30519 #include "openssl/evp.h"
30520 #include "openssl/pem.h"
30521 #include "openssl/rand.h"
30522 #include "openssl/x509v3.h"
30535 if ac_fn_c_try_compile "$LINENO"; then :
30536 openssl_triggers_warnings=no
30538 openssl_triggers_warnings=yes
30541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30543 case "$openssl_triggers_warnings" in
30545 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
30548 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30552 # gcc without OpenSSL
30553 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30556 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
30557 CFLAGS="$NTPO_SAVED_CFLAGS"
30559 case "$ntp_openssl" in
30561 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30562 for ac_func in EVP_MD_do_all_sorted
30564 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
30565 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
30566 cat >>confdefs.h <<_ACEOF
30567 #define HAVE_EVP_MD_DO_ALL_SORTED 1
30577 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
30578 LIBS="$NTPO_SAVED_LIBS"
30579 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
30580 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
30581 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
30582 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
30583 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
30587 $as_echo_n "checking if we want to enable CMAC support... " >&6; }
30588 case "$ac_cv_header_openssl_cmac_h" in
30591 $as_echo "#define ENABLE_CMAC 1" >>confdefs.h
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30599 $as_echo "$ans" >&6; }
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
30605 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
30606 # Check whether --enable-openssl-random was given.
30607 if test "${enable_openssl_random+set}" = set; then :
30608 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
30610 ntp_use_openssl_random=yes
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
30615 $as_echo "$ntp_use_openssl_random" >&6; }
30617 # The following might need extra libraries
30618 NTPO_SAVED_LIBS="$LIBS"
30619 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30620 for ac_func in RAND_bytes RAND_poll
30622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30625 cat >>confdefs.h <<_ACEOF
30626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30632 LIBS="$NTPO_SAVED_LIBS"
30633 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
30636 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
30639 *) ntp_use_openssl_random=no ;;
30644 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
30646 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
30647 # Check whether --enable-autokey was given.
30648 if test "${enable_autokey+set}" = set; then :
30649 enableval=$enable_autokey; ntp_autokey=$enableval
30651 ntp_autokey=$ntp_openssl
30655 case "$ntp_autokey" in
30659 case "$ntp_openssl" in
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
30662 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
30667 $as_echo "#define AUTOKEY 1" >>confdefs.h
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
30675 $as_echo "$ntp_autokey" >&6; }
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
30679 $as_echo_n "checking if we want to run check-layout... " >&6; }
30680 case "$cross_compiling$PATH_PERL" in
30682 MAKE_CHECK_LAYOUT=check-layout
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30690 $as_echo "$ans" >&6; }
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
30695 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
30697 case "$ntp_parseutil" in
30700 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30708 $as_echo "$ans" >&6; }
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
30712 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
30714 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
30718 case "$ntp_cv_var_kernel_pll" in
30721 $as_echo "#define PPS_SYNC 1" >>confdefs.h
30726 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
30730 MAKE_PARSEKMODULE=parse
30731 for ac_header in strings.h
30733 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
30734 if test "x$ac_cv_header_strings_h" = xyes; then :
30735 cat >>confdefs.h <<_ACEOF
30736 #define HAVE_STRINGS_H 1
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30748 $as_echo "$ans" >&6; }
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
30751 $as_echo_n "checking if we need basic refclock support... " >&6; }
30752 case "$ntp_refclock" in
30755 $as_echo "#define REFCLOCK 1" >>confdefs.h
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
30760 $as_echo "$ntp_refclock" >&6; }
30762 PROPDELAY=propdelay
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
30767 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
30777 MAKE_ADJTIMED=adjtimed
30779 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30789 $as_echo "$ans" >&6; }
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
30792 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
30803 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30808 $as_echo "$ans" >&6; }
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
30811 $as_echo_n "checking if we can read kmem... " >&6; }
30813 # the default is to enable it if the system has the capability
30815 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
30824 *-*-domainos) # Won't be found...
30844 # --enable-kmem / --disable-kmem controls if present
30845 # Check whether --enable-kmem was given.
30846 if test "${enable_kmem+set}" = set; then :
30847 enableval=$enable_kmem; ans=$enableval
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30853 $as_echo "$ans" >&6; }
30862 $as_echo "#define NOKMEM 1" >>confdefs.h
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
30868 $as_echo_n "checking if adjtime is accurate... " >&6; }
30870 # target-dependent defaults
30876 i386-unknown-osf1*)
30879 mips-sgi-irix[456]*)
30886 # XXX only verified thru AIX6.
30905 # --enable-accurate-adjtime / --disable-accurate-adjtime
30906 # override the default
30907 # Check whether --enable-accurate-adjtime was given.
30908 if test "${enable_accurate_adjtime+set}" = set; then :
30909 enableval=$enable_accurate_adjtime; ans=$enableval
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30915 $as_echo "$ans" >&6; }
30920 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
30922 adjtime_is_accurate=yes
30925 adjtime_is_accurate=no
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
30930 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
30931 if ${ntp_cv_nlist_tick+:} false; then :
30932 $as_echo_n "(cached) " >&6
30937 m68*-hp-hpux*) # HP9000/300?
30947 # XXX only verified thru AIX6.
30966 ntp_cv_nlist_tick=$ans
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
30971 $as_echo "$ntp_cv_nlist_tick" >&6; }
30972 case "$ntp_cv_nlist_tick" in
30974 ;; # HMS: I think we can only get 'no' here...
30977 cat >>confdefs.h <<_ACEOF
30978 #define K_TICK_NAME "$ntp_cv_nlist_tick"
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
30984 $as_echo_n "checking for the units of 'tick'... " >&6; }
30985 if ${ntp_cv_tick_nano+:} false; then :
30986 $as_echo_n "(cached) " >&6
30995 ntp_cv_tick_nano=$ans
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
31000 $as_echo "$ntp_cv_tick_nano" >&6; }
31001 case "$ntp_cv_tick_nano" in
31004 $as_echo "#define TICK_NANO 1" >>confdefs.h
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
31009 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
31010 if ${ntp_cv_nlist_tickadj+:} false; then :
31011 $as_echo_n "(cached) " >&6
31016 m68*-hp-hpux*) # HP9000/300?
31047 ans=no # hrestime_adj
31053 ntp_cv_nlist_tickadj=$ans
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
31058 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
31059 case "$ntp_cv_nlist_tickadj" in
31061 ;; # HMS: I think we can only get 'no' here...
31064 cat >>confdefs.h <<_ACEOF
31065 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
31071 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
31072 if ${ntp_cv_tickadj_nano+:} false; then :
31073 $as_echo_n "(cached) " >&6
31082 ntp_cv_tickadj_nano=$ans
31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
31087 $as_echo "$ntp_cv_tickadj_nano" >&6; }
31088 case "$ntp_cv_tickadj_nano" in
31091 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
31096 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
31097 if ${ntp_cv_nlist_dosynctodr+:} false; then :
31098 $as_echo_n "(cached) " >&6
31142 ntp_cv_nlist_dosynctodr=$ans
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
31147 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
31148 case "$ntp_cv_nlist_dosynctodr" in
31153 cat >>confdefs.h <<_ACEOF
31154 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
31161 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
31162 if ${ntp_cv_nlist_noprintf+:} false; then :
31163 $as_echo_n "(cached) " >&6
31201 ntp_cv_nlist_noprintf=$ans
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
31206 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
31207 case "$ntp_cv_nlist_noprintf" in
31212 cat >>confdefs.h <<_ACEOF
31213 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
31223 $as_echo_n "checking for a default value for 'tick'... " >&6; }
31225 # target-dependent default for tick
31229 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
31254 # Check whether --enable-tick was given.
31255 if test "${enable_tick+set}" = set; then :
31256 enableval=$enable_tick; ans=$enableval
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31262 $as_echo "$ans" >&6; }
31266 ;; # HMS: I think we can only get 'no' here...
31269 cat >>confdefs.h <<_ACEOF
31270 #define PRESET_TICK $ans
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
31276 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
31278 # target-specific default
31282 case "$adjtime_is_accurate" in
31291 case "$can_kmem" in
31297 *-*-domainos) # Skippy: won't be found...
31298 case "$can_kmem" in
31305 case "$adjtime_is_accurate" in
31328 # Check whether --enable-tickadj was given.
31329 if test "${enable_tickadj+set}" = set; then :
31330 enableval=$enable_tickadj; ans=$enableval
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31336 $as_echo "$ans" >&6; }
31338 default_tickadj=$ans
31340 case "$default_tickadj" in
31342 ;; # HMS: I think we can only get 'no' here...
31345 cat >>confdefs.h <<_ACEOF
31346 #define PRESET_TICKADJ $default_tickadj
31351 # Newer versions of ReliantUNIX round adjtime() values down to
31352 # 1/100s (system tick). Sigh ...
31353 # Unfortunately, there is no easy way to know if particular release
31354 # has this "feature" or any obvious way to test for it.
31358 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
31365 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
31369 ntp_cv_make_tickadj=yes
31370 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
31371 nonono) # Don't read KMEM, no presets. Bogus.
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
31373 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
31374 ntp_cv_make_tickadj=no
31376 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
31378 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
31379 ntp_cv_make_tickadj=no
31381 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
31382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
31383 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
31384 ntp_cv_make_tickadj=no
31386 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
31388 yesnono) # Read KMEM, no presets. Cool.
31390 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
31392 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
31394 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
31396 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
31398 *) # Generally bogus.
31399 as_fn_error $? "This shouldn't happen." "$LINENO" 5
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
31405 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
31406 if ${ac_cv_make_ntptime+:} false; then :
31407 $as_echo_n "(cached) " >&6
31410 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
31420 ac_cv_make_ntptime=$ans
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
31423 $as_echo "$ac_cv_make_ntptime" >&6; }
31424 case "$ac_cv_make_ntptime" in
31426 MAKE_NTPTIME=ntptime
31439 # tickadj is pretty useless on newer versions of ReliantUNIX
31441 ntp_cv_make_tickadj=no
31444 ntp_cv_make_tickadj=no
31447 # DLM says tickadj is a no-no starting with solaris2.5
31449 *-*-solaris2.1[0-9]*)
31450 ntp_cv_make_tickadj=no
31452 *-*-solaris2.[0-4]*) ;;
31453 *) ntp_cv_make_tickadj=no ;;
31457 ntp_cv_make_tickadj=no
31462 # Despite all the above, we always make tickadj. Setting
31463 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
31464 # report that the configuration variable was cached. It may
31465 # be better to simply remove the hunk above, I did not want
31466 # to remove it if there is hope it will be used again.
31468 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
31471 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
31472 if ${ntp_cv_make_tickadj+:} false; then :
31473 $as_echo_n "(cached) " >&6
31475 ntp_cv_make_tickadj=yes
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
31479 $as_echo "$ntp_cv_make_tickadj" >&6; }
31480 case "$ntp_cv_make_tickadj" in
31482 MAKE_TICKADJ=tickadj
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
31498 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
31499 if ${ntp_cv_make_timetrim+:} false; then :
31500 $as_echo_n "(cached) " >&6
31505 ntp_cv_make_timetrim=yes
31508 ntp_cv_make_timetrim=yes
31511 ntp_cv_make_timetrim=no
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
31518 $as_echo "$ntp_cv_make_timetrim" >&6; }
31519 case "$ntp_cv_make_timetrim" in
31521 MAKE_TIMETRIM=timetrim
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
31534 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
31535 # Check whether --enable-simulator was given.
31536 if test "${enable_simulator+set}" = set; then :
31537 enableval=$enable_simulator; ans=$enableval
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31544 $as_echo "$ans" >&6; }
31547 MAKE_NTPDSIM=ntpdsim
31548 MAKE_LIBNTPSIM=libntpsim.a
31563 LDFLAGS="$LDFLAGS -r"
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
31572 $as_echo_n "checking if sntp will be built... " >&6; }
31574 # Check whether --with-sntp was given.
31575 if test "${with_sntp+set}" = set; then :
31576 withval=$with_sntp;
31578 with_sntp="${withsntp=yes}"
31582 case "$with_sntp" in
31591 if test -n "$SNTP"; then
31593 BUILD_SNTP_FALSE='#'
31595 BUILD_SNTP_TRUE='#'
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
31600 $as_echo "$with_sntp" >&6; }
31604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
31605 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
31607 # Check whether --with-ntpsnmpd was given.
31608 if test "${with_ntpsnmpd+set}" = set; then :
31609 withval=$with_ntpsnmpd; ans=$withval
31612 case "$PATH_NET_SNMP_CONFIG" in
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31621 $as_echo "$ans" >&6; }
31624 case "$PATH_NET_SNMP_CONFIG" in
31626 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
31627 # Bug 2815. This is a bit of a hack, but it works...
31628 case "$ntp_cv_net_snmp_version" in
31629 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
31633 # HMS: we really want to separate CPPFLAGS and CFLAGS
31634 foo=`$PATH_NET_SNMP_CONFIG --cflags`
31640 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
31642 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
31649 save_CFLAGS=$CFLAGS
31650 save_CPPFLAGS=$CPPFLAGS
31652 CFLAGS=$SNMP_CFLAGS
31653 CPPFLAGS=$SNMP_CPPFLAGS
31655 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"
31656 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
31657 MAKE_NTPSNMPD=ntpsnmpd
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
31660 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
31666 # Do this last, as we're messing up LIBS.
31667 # check -lnetsnmp for netsnmp_daemonize
31668 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
31670 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
31671 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
31672 $as_echo_n "(cached) " >&6
31674 ac_check_lib_save_LIBS=$LIBS
31675 LIBS="-lnetsnmp $LIBS"
31676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31677 /* end confdefs.h. */
31679 /* Override any GCC internal prototype to avoid an error.
31680 Use char because int might match the return type of a GCC
31681 builtin and then its argument prototype would still apply. */
31685 char netsnmp_daemonize ();
31689 return netsnmp_daemonize ();
31694 if ac_fn_c_try_link "$LINENO"; then :
31695 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
31697 ac_cv_lib_netsnmp_netsnmp_daemonize=no
31699 rm -f core conftest.err conftest.$ac_objext \
31700 conftest$ac_exeext conftest.$ac_ext
31701 LIBS=$ac_check_lib_save_LIBS
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
31704 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
31705 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
31715 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
31719 CFLAGS=$save_CFLAGS
31720 { save_CFLAGS=; unset save_CFLAGS;}
31721 CPPFLAGS=$save_CPPFLAGS
31722 { save_CPPFLAGS=; unset save_CPPFLAGS;}
31724 { save_LIBS=; unset save_LIBS;}
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
31728 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
31735 case "$MAKE_NTPSNMPD" in
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
31745 $as_echo_n "checking if we should always slew the time... " >&6; }
31747 # target-specific defaults
31759 *-*-openvms*) # HMS: won't be found
31766 # --enable-slew-always / --disable-slew-always overrides default
31768 # Check whether --enable-slew-always was given.
31769 if test "${enable_slew_always+set}" = set; then :
31770 enableval=$enable_slew_always; ans=$enableval
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31776 $as_echo "$ans" >&6; }
31781 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
31786 $as_echo_n "checking if we should step and slew the time... " >&6; }
31801 *-*-solaris2.1[0-9]*)
31804 *-*-solaris2.[012]*)
31807 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
31814 # Check whether --enable-step-slew was given.
31815 if test "${enable_step_slew+set}" = set; then :
31816 enableval=$enable_step_slew; ans=$enableval
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31822 $as_echo "$ans" >&6; }
31827 $as_echo "#define STEP_SLEW 1" >>confdefs.h
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
31832 $as_echo_n "checking if ntpdate should step the time... " >&6; }
31842 # Check whether --enable-ntpdate-step was given.
31843 if test "${enable_ntpdate_step+set}" = set; then :
31844 enableval=$enable_ntpdate_step; ans=$enableval
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31850 $as_echo "$ans" >&6; }
31855 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
31861 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
31867 *-*-openvms*) # HMS: won't be found
31875 # Check whether --enable-hourly-todr-sync was given.
31876 if test "${enable_hourly_todr_sync+set}" = set; then :
31877 enableval=$enable_hourly_todr_sync; ans=$enableval
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31883 $as_echo "$ans" >&6; }
31885 case "$ac_cv_var_sync_todr" in
31888 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
31894 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
31905 if test "$2" -ge 17
31907 # Generic_105181-17 and higher
31926 if test "$2" -ge 07
31928 # Generic_106541-07 and higher
31944 # Check whether --enable-kernel-fll-bug was given.
31945 if test "${enable_kernel_fll_bug+set}" = set; then :
31946 enableval=$enable_kernel_fll_bug; ans=$enableval
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31952 $as_echo "$ans" >&6; }
31957 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
31963 $as_echo_n "checking if we want new session key behavior... " >&6; }
31964 # Check whether --enable-bug1243-fix was given.
31965 if test "${enable_bug1243_fix+set}" = set; then :
31966 enableval=$enable_bug1243_fix; ans=$enableval
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31973 $as_echo "$ans" >&6; }
31977 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
31983 $as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
31984 # Check whether --enable-bug3020-fix was given.
31985 if test "${enable_bug3020_fix+set}" = set; then :
31986 enableval=$enable_bug3020_fix; ans=$enableval
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31993 $as_echo "$ans" >&6; }
31997 $as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
32003 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
32009 *-*-solaris2.1[0-9]*)
32016 # Check whether --enable-irig-sawtooth was given.
32017 if test "${enable_irig_sawtooth+set}" = set; then :
32018 enableval=$enable_irig_sawtooth; ans=$enableval
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32024 $as_echo "$ans" >&6; }
32029 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
32034 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
32035 # Check whether --enable-nist was given.
32036 if test "${enable_nist+set}" = set; then :
32037 enableval=$enable_nist; ans=$enableval
32044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32045 $as_echo "$ans" >&6; }
32050 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
32055 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
32056 # Check whether --enable-ntp-signd was given.
32057 if test "${enable_ntp_signd+set}" = set; then :
32058 enableval=$enable_ntp_signd; ans=$enableval
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32066 $as_echo "$ans" >&6; }
32073 ntp_signd_path=/var/run/ntp_signd
32076 ntp_signd_path="$ans"
32079 case "$ntp_signd_path" in
32084 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
32087 cat >>confdefs.h <<_ACEOF
32088 #define NTP_SIGND_PATH "$ntp_signd_path"
32094 for ac_header in libscf.h
32096 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
32097 if test "x$ac_cv_header_libscf_h" = xyes; then :
32098 cat >>confdefs.h <<_ACEOF
32099 #define HAVE_LIBSCF_H 1
32107 case "$ac_cv_header_libscf_h" in
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
32116 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
32117 if ${ntp_cv_sockaddr_storage+:} false; then :
32118 $as_echo_n "(cached) " >&6
32120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32121 /* end confdefs.h. */
32123 #ifdef HAVE_SYS_TYPES_H
32124 # include <sys/types.h>
32126 #ifdef HAVE_SYS_SOCKET_H
32127 # include <sys/socket.h>
32129 #ifdef HAVE_NETINET_IN_H
32130 # include <netinet/in.h>
32137 struct sockaddr_storage n;
32144 if ac_fn_c_try_compile "$LINENO"; then :
32145 ntp_cv_sockaddr_storage=yes
32147 ntp_cv_sockaddr_storage=no
32150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
32154 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
32155 case "$ntp_cv_sockaddr_storage" in
32158 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
32161 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
32162 if ${ntp_cv_have___ss_family+:} false; then :
32163 $as_echo_n "(cached) " >&6
32165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32166 /* end confdefs.h. */
32168 #ifdef HAVE_SYS_TYPES_H
32169 # include <sys/types.h>
32171 #ifdef HAVE_SYS_SOCKET_H
32172 # include <sys/socket.h>
32174 #ifdef HAVE_NETINET_IN_H
32175 # include <netinet/in.h>
32182 struct sockaddr_storage s;
32190 if ac_fn_c_try_compile "$LINENO"; then :
32191 ntp_cv_have___ss_family=yes
32193 ntp_cv_have___ss_family=no
32196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
32200 $as_echo "$ntp_cv_have___ss_family" >&6; }
32201 case "$ntp_cv_have___ss_family" in
32204 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
32212 # Look for in_port_t.
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
32215 $as_echo_n "checking for in_port_t... " >&6; }
32216 if ${isc_cv_have_in_port_t+:} false; then :
32217 $as_echo_n "(cached) " >&6
32219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32220 /* end confdefs.h. */
32222 #include <sys/types.h>
32223 #include <netinet/in.h>
32229 in_port_t port = 25;
32237 if ac_fn_c_try_compile "$LINENO"; then :
32238 isc_cv_have_in_port_t=yes
32240 isc_cv_have_in_port_t=no
32243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
32247 $as_echo "$isc_cv_have_in_port_t" >&6; }
32248 case "$isc_cv_have_in_port_t" in
32251 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
32256 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
32257 if ${ntp_cv_getsockname_socklen_type+:} false; then :
32258 $as_echo_n "(cached) " >&6
32261 getsockname_socklen_type_found=no
32262 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
32263 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
32264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32265 /* end confdefs.h. */
32267 #ifdef HAVE_SYS_TYPES_H
32268 # include <sys/types.h>
32270 #ifdef HAVE_SYS_SOCKET_H
32271 # include <sys/socket.h>
32279 getsockname(int, $getsockname_arg2,
32280 $ntp_cv_getsockname_socklen_type *);
32287 if ac_fn_c_try_compile "$LINENO"; then :
32288 getsockname_socklen_type_found=yes ; break 2
32290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32293 case "$getsockname_socklen_type_found" in
32295 ntp_cv_getsockname_socklen_type='socklen_t'
32297 { getsockname_arg2=; unset getsockname_arg2;}
32298 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
32302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
32303 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
32305 cat >>confdefs.h <<_ACEOF
32306 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
32311 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
32312 if ${isc_cv_platform_havesalen+:} false; then :
32313 $as_echo_n "(cached) " >&6
32315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32316 /* end confdefs.h. */
32318 #include <sys/types.h>
32319 #include <sys/socket.h>
32325 extern struct sockaddr *ps;
32333 if ac_fn_c_try_compile "$LINENO"; then :
32334 isc_cv_platform_havesalen=yes
32336 isc_cv_platform_havesalen=no
32339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
32343 $as_echo "$isc_cv_platform_havesalen" >&6; }
32344 case "$isc_cv_platform_havesalen" in
32347 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
32351 # Check whether --enable-ipv6 was given.
32352 if test "${enable_ipv6+set}" = set; then :
32353 enableval=$enable_ipv6;
32357 case "$enable_ipv6" in
32364 $as_echo "#define WANT_IPV6 1" >>confdefs.h
32377 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
32383 $as_echo_n "checking for IPv6 structures... " >&6; }
32384 if ${isc_cv_found_ipv6+:} false; then :
32385 $as_echo_n "(cached) " >&6
32387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388 /* end confdefs.h. */
32390 #include <sys/types.h>
32391 #include <sys/socket.h>
32392 #include <netinet/in.h>
32398 struct sockaddr_in6 sin6;
32405 if ac_fn_c_try_compile "$LINENO"; then :
32406 isc_cv_found_ipv6=yes
32408 isc_cv_found_ipv6=no
32411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
32415 $as_echo "$isc_cv_found_ipv6" >&6; }
32418 # See whether IPv6 support is provided via a Kame add-on.
32419 # This is done before other IPv6 linking tests so LIBS is properly set.
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
32422 $as_echo_n "checking for Kame IPv6 support... " >&6; }
32424 # Check whether --with-kame was given.
32425 if test "${with_kame+set}" = set; then :
32426 withval=$with_kame; use_kame="$withval"
32432 case "$use_kame" in
32436 kame_path=/usr/local/v6
32439 kame_path="$use_kame"
32442 case "$use_kame" in
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32445 $as_echo "no" >&6; }
32448 if test -f $kame_path/lib/libinet6.a; then
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
32450 $as_echo "$kame_path/lib/libinet6.a" >&6; }
32451 LIBS="-L$kame_path/lib -linet6 $LIBS"
32453 as_fn_error $? "$kame_path/lib/libinet6.a not found.
32455 Please choose the proper path with the following command:
32457 configure --with-kame=PATH
32464 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
32465 # Including it on Kame-using platforms is very bad, though, because
32466 # Kame uses #error against direct inclusion. So include it on only
32467 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
32468 # This is done before the in6_pktinfo check because that's what
32469 # netinet6/in6.h is needed for.
32474 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
32476 isc_netinet6in6_hack="#include <netinet6/in6.h>"
32479 isc_netinet6in6_hack=""
32484 # This is similar to the netinet6/in6.h issue.
32487 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
32489 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
32491 isc_netinetin6_hack="#include <netinet/in6.h>"
32494 isc_netinetin6_hack=""
32499 case "$isc_cv_found_ipv6" in
32502 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
32505 $as_echo_n "checking for in6_pktinfo... " >&6; }
32506 if ${isc_cv_have_in6_pktinfo+:} false; then :
32507 $as_echo_n "(cached) " >&6
32509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32510 /* end confdefs.h. */
32512 #include <sys/types.h>
32513 #include <sys/socket.h>
32514 #include <netinet/in.h>
32515 $isc_netinetin6_hack
32516 $isc_netinet6in6_hack
32522 struct in6_pktinfo xyzzy;
32529 if ac_fn_c_try_compile "$LINENO"; then :
32530 isc_cv_have_in6_pktinfo=yes
32532 isc_cv_have_in6_pktinfo=no
32535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
32539 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
32540 case "$isc_cv_have_in6_pktinfo" in
32543 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
32548 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
32550 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
32551 if ${isc_cv_have_sin6_scope_id+:} false; then :
32552 $as_echo_n "(cached) " >&6
32554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32555 /* end confdefs.h. */
32557 #include <sys/types.h>
32558 #include <sys/socket.h>
32559 #include <netinet/in.h>
32560 $isc_netinetin6_hack
32561 $isc_netinet6in6_hack
32567 struct sockaddr_in6 xyzzy;
32568 xyzzy.sin6_scope_id = 0;
32575 if ac_fn_c_try_compile "$LINENO"; then :
32576 isc_cv_have_sin6_scope_id=yes
32578 isc_cv_have_sin6_scope_id=no
32581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
32585 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
32587 case "$isc_cv_have_sin6_scope_id" in
32590 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
32596 # We need this check run even without isc_cv_found_ipv6=yes
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
32599 $as_echo_n "checking for in6addr_any... " >&6; }
32600 if ${isc_cv_in6addr_any_links+:} false; then :
32601 $as_echo_n "(cached) " >&6
32605 LIBS="$LDADD_LIBNTP $LIBS"
32606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32607 /* end confdefs.h. */
32608 $ac_includes_default
32609 #include <sys/socket.h>
32610 #include <netinet/in.h>
32611 $isc_netinetin6_hack
32612 $isc_netinet6in6_hack
32618 printf("%x", in6addr_any.s6_addr[15]);
32625 if ac_fn_c_try_link "$LINENO"; then :
32626 isc_cv_in6addr_any_links=yes
32628 isc_cv_in6addr_any_links=no
32631 rm -f core conftest.err conftest.$ac_objext \
32632 conftest$ac_exeext conftest.$ac_ext
32634 { SAVED_LIBS=; unset SAVED_LIBS;}
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
32639 $as_echo "$isc_cv_in6addr_any_links" >&6; }
32641 case "$isc_cv_in6addr_any_links" in
32644 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
32650 $as_echo_n "checking for struct if_laddrconf... " >&6; }
32651 if ${isc_cv_struct_if_laddrconf+:} false; then :
32652 $as_echo_n "(cached) " >&6
32654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32655 /* end confdefs.h. */
32657 #include <sys/types.h>
32658 #include <net/if6.h>
32664 struct if_laddrconf a;
32671 if ac_fn_c_try_compile "$LINENO"; then :
32672 isc_cv_struct_if_laddrconf=yes
32674 isc_cv_struct_if_laddrconf=no
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
32681 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
32683 case "$isc_cv_struct_if_laddrconf" in
32686 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
32690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
32691 $as_echo_n "checking for struct if_laddrreq... " >&6; }
32692 if ${isc_cv_struct_if_laddrreq+:} false; then :
32693 $as_echo_n "(cached) " >&6
32695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32696 /* end confdefs.h. */
32698 #include <sys/types.h>
32699 #include <net/if6.h>
32705 struct if_laddrreq a;
32712 if ac_fn_c_try_compile "$LINENO"; then :
32713 isc_cv_struct_if_laddrreq=yes
32715 isc_cv_struct_if_laddrreq=no
32718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
32722 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
32724 case "$isc_cv_struct_if_laddrreq" in
32727 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
32731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
32732 $as_echo_n "checking for multicast IP support... " >&6; }
32733 if ${ntp_cv_multicast+:} false; then :
32734 $as_echo_n "(cached) " >&6
32737 ntp_cv_multicast=no
32739 i386-sequent-sysv4)
32742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32743 /* end confdefs.h. */
32745 #ifdef HAVE_NETINET_IN_H
32746 # include <netinet/in.h>
32753 struct ip_mreq ipmr;
32754 ipmr.imr_interface.s_addr = 0;
32761 if ac_fn_c_try_compile "$LINENO"; then :
32762 ntp_cv_multicast=yes
32764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
32771 $as_echo "$ntp_cv_multicast" >&6; }
32772 case "$ntp_cv_multicast" in
32775 $as_echo "#define MCAST 1" >>confdefs.h
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
32778 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
32779 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
32780 $as_echo_n "(cached) " >&6
32784 *-*-netbsd*|*-*-*linux*)
32785 ntp_cv_typeof_ip_multicast_loop=u_int
32788 ntp_cv_typeof_ip_multicast_loop=u_char
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
32795 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
32797 cat >>confdefs.h <<_ACEOF
32798 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
32803 # Check whether --enable-getifaddrs was given.
32804 if test "${enable_getifaddrs+set}" = set; then :
32805 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
32807 want_getifaddrs="yes"
32812 case $want_getifaddrs in
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
32815 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
32817 case $want_getifaddrs in
32822 LIBS="$LDADD_LIBNTP $LIBS"
32823 for ac_func in getifaddrs
32825 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
32826 if test "x$ac_cv_func_getifaddrs" = xyes; then :
32827 cat >>confdefs.h <<_ACEOF
32828 #define HAVE_GETIFADDRS 1
32835 { SAVED_LIBS=; unset SAVED_LIBS;}
32840 # Check for if_nametoindex() for IPv6 scoped addresses support
32844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
32845 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
32846 if ${ac_cv_search_if_nametoindex+:} false; then :
32847 $as_echo_n "(cached) " >&6
32849 ac_func_search_save_LIBS=$LIBS
32850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32851 /* end confdefs.h. */
32853 /* Override any GCC internal prototype to avoid an error.
32854 Use char because int might match the return type of a GCC
32855 builtin and then its argument prototype would still apply. */
32859 char if_nametoindex ();
32863 return if_nametoindex ();
32868 for ac_lib in '' ipv6; do
32869 if test -z "$ac_lib"; then
32870 ac_res="none required"
32873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32875 if ac_fn_c_try_link "$LINENO"; then :
32876 ac_cv_search_if_nametoindex=$ac_res
32878 rm -f core conftest.err conftest.$ac_objext \
32880 if ${ac_cv_search_if_nametoindex+:} false; then :
32884 if ${ac_cv_search_if_nametoindex+:} false; then :
32887 ac_cv_search_if_nametoindex=no
32889 rm conftest.$ac_ext
32890 LIBS=$ac_func_search_save_LIBS
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
32893 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
32894 ac_res=$ac_cv_search_if_nametoindex
32895 if test "$ac_res" != no; then :
32896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32902 LIBS="$LDADD_LIBNTP $LIBS"
32903 for ac_func in if_nametoindex
32905 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
32906 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
32907 cat >>confdefs.h <<_ACEOF
32908 #define HAVE_IF_NAMETOINDEX 1
32915 { SAVED_LIBS=; unset SAVED_LIBS;}
32916 case "$ac_cv_func_if_nametoindex" in
32919 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
32927 # Look for a sysctl call to get the list of network interfaces.
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
32930 $as_echo_n "checking for interface list sysctl... " >&6; }
32931 if ${ntp_cv_iflist_sysctl+:} false; then :
32932 $as_echo_n "(cached) " >&6
32934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32935 /* end confdefs.h. */
32937 #include <sys/param.h>
32938 #include <sys/sysctl.h>
32939 #include <sys/socket.h>
32940 #ifndef NET_RT_IFLIST
32945 if ac_fn_c_try_cpp "$LINENO"; then :
32946 ntp_cv_iflist_sysctl=yes
32948 ntp_cv_iflist_sysctl=no
32951 rm -f conftest.err conftest.i conftest.$ac_ext
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
32955 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
32956 case "$ntp_cv_iflist_sysctl" in
32959 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
32966 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
32967 # Check whether --enable-saveconfig was given.
32968 if test "${enable_saveconfig+set}" = set; then :
32969 enableval=$enable_saveconfig; ntp_ok=$enableval
32975 ntp_saveconfig_enabled=0
32978 ntp_saveconfig_enabled=1
32980 $as_echo "#define SAVECONFIG 1" >>confdefs.h
32984 if test x$ntp_saveconfig_enabled = x1; then
32985 SAVECONFIG_ENABLED_TRUE=
32986 SAVECONFIG_ENABLED_FALSE='#'
32988 SAVECONFIG_ENABLED_TRUE='#'
32989 SAVECONFIG_ENABLED_FALSE=
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32993 $as_echo "$ntp_ok" >&6; }
32997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
32998 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
32999 # Check whether --enable-leap-smear was given.
33000 if test "${enable_leap_smear+set}" = set; then :
33001 enableval=$enable_leap_smear; ntp_ok=$enableval
33007 ntp_leap_smear_enabled=0
33010 ntp_leap_smear_enabled=1
33012 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
33015 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33019 $as_echo "$ntp_ok" >&6; }
33023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
33024 $as_echo_n "checking if we want dynamic interleave support... " >&6; }
33025 # Check whether --enable-dynamic-interleave was given.
33026 if test "${enable_dynamic_interleave+set}" = set; then :
33027 enableval=$enable_dynamic_interleave; ntp_ok=$enableval
33033 ntp_dynamic_interleave=0
33036 ntp_dynamic_interleave=1
33040 cat >>confdefs.h <<_ACEOF
33041 #define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33045 $as_echo "$ntp_ok" >&6; }
33048 # We may not need have_unity
33050 # Extract the first word of "ruby", so it can be a program name with args.
33051 set dummy ruby; ac_word=$2
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33053 $as_echo_n "checking for $ac_word... " >&6; }
33054 if ${ac_cv_path_PATH_RUBY+:} false; then :
33055 $as_echo_n "(cached) " >&6
33059 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
33062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33063 for as_dir in $PATH
33066 test -z "$as_dir" && as_dir=.
33067 for ac_exec_ext in '' $ac_executable_extensions; do
33068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33069 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
33070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33080 PATH_RUBY=$ac_cv_path_PATH_RUBY
33081 if test -n "$PATH_RUBY"; then
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
33083 $as_echo "$PATH_RUBY" >&6; }
33085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33086 $as_echo "no" >&6; }
33090 case "$PATH_RUBY" in
33094 *) PATH_RUBY="false"
33097 # We may not need UNITYBUILD_AVAILABLE
33098 if $have_unity; then
33099 UNITYBUILD_AVAILABLE_TRUE=
33100 UNITYBUILD_AVAILABLE_FALSE='#'
33102 UNITYBUILD_AVAILABLE_TRUE='#'
33103 UNITYBUILD_AVAILABLE_FALSE=
33112 # Check whether --with-gtest was given.
33113 if test "${with_gtest+set}" = set; then :
33114 withval=$with_gtest; try_gtest=$withval
33120 case "$try_gtest" in
33122 # Extract the first word of "gtest-config", so it can be a program name with args.
33123 set dummy gtest-config; ac_word=$2
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33125 $as_echo_n "checking for $ac_word... " >&6; }
33126 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
33127 $as_echo_n "(cached) " >&6
33129 case $GTEST_CONFIG in
33131 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
33134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33135 for as_dir in $PATH
33138 test -z "$as_dir" && as_dir=.
33139 for ac_exec_ext in '' $ac_executable_extensions; do
33140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33141 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33152 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
33153 if test -n "$GTEST_CONFIG"; then
33154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
33155 $as_echo "$GTEST_CONFIG" >&6; }
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33162 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
33163 case x${GTEST_CONFIG} in
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
33167 $as_echo_n "checking gtest version... " >&6; }
33168 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
33169 case "$gtest_version_test" in
33173 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
33174 GTEST_LIBS=`$GTEST_CONFIG --libs`
33175 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
33176 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
33184 gtest_version=`$GTEST_CONFIG --version`
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
33188 $as_echo "($gtest_version) ok" >&6; }
33190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
33191 $as_echo "($gtest_version) not ok" >&6; }
33194 { gtest_version_test=; unset gtest_version_test;}
33195 { gtest_version=; unset gtest_version;}
33199 GTEST_AVAILABLE_TRUE=
33200 GTEST_AVAILABLE_FALSE='#'
33202 GTEST_AVAILABLE_TRUE='#'
33203 GTEST_AVAILABLE_FALSE=
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
33216 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
33217 # Check whether --enable-problem-tests was given.
33218 if test "${enable_problem_tests+set}" = set; then :
33219 enableval=$enable_problem_tests; ntp_ept=$enableval
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
33226 $as_echo "$ntp_ept" >&6; }
33228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
33229 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
33230 ntp_test_ntp_restrict="no"
33231 case "$ntp_ept:$cross:$host" in
33232 no:0:*-*-freebsd6.4) ;;
33233 no:0:*-*-hpux11.23*) ;;
33234 no:0:*-*-solaris*) ;;
33235 *) ntp_test_ntp_restrict="yes" ;;
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
33238 $as_echo "$ntp_test_ntp_restrict" >&6; }
33239 if test x$ntp_test_ntp_restrict = xyes; then
33240 BUILD_TEST_NTP_RESTRICT_TRUE=
33241 BUILD_TEST_NTP_RESTRICT_FALSE='#'
33243 BUILD_TEST_NTP_RESTRICT_TRUE='#'
33244 BUILD_TEST_NTP_RESTRICT_FALSE=
33248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
33249 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
33250 ntp_test_ntp_scanner="no"
33251 case "$ntp_ept:$cross:$host" in
33252 no:0:*-*-freebsd6.4) ;;
33253 no:0:*-*-solaris*) ;;
33254 *) ntp_test_ntp_scanner="yes" ;;
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
33257 $as_echo "$ntp_test_ntp_scanner" >&6; }
33258 if test x$ntp_test_ntp_scanner = xyes; then
33259 BUILD_TEST_NTP_SCANNER_TRUE=
33260 BUILD_TEST_NTP_SCANNER_FALSE='#'
33262 BUILD_TEST_NTP_SCANNER_TRUE='#'
33263 BUILD_TEST_NTP_SCANNER_FALSE=
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
33268 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
33269 ntp_test_ntp_signd="no"
33270 case "$ntp_ept:$cross:$host" in
33271 no:0:*-*-freebsd6.4) ;;
33272 no:0:*-*-solaris*) ;;
33273 *) ntp_test_ntp_signd="yes" ;;
33275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
33276 $as_echo "$ntp_test_ntp_signd" >&6; }
33277 if test x$ntp_test_ntp_signd = xyes; then
33278 BUILD_TEST_NTP_SIGND_TRUE=
33279 BUILD_TEST_NTP_SIGND_FALSE='#'
33281 BUILD_TEST_NTP_SIGND_TRUE='#'
33282 BUILD_TEST_NTP_SIGND_FALSE=
33290 ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
33292 if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then :
33298 cat >>confdefs.h <<_ACEOF
33299 #define HAVE_DECL_SIGSETJMP $ac_have_decl
33301 ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
33303 if test "x$ac_cv_have_decl_siglongjmp" = xyes; then :
33309 cat >>confdefs.h <<_ACEOF
33310 #define HAVE_DECL_SIGLONGJMP $ac_have_decl
33319 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33320 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33321 eval ac_define_dir="\"$sysconfdir\""
33322 eval ac_define_dir="\"$ac_define_dir\""
33323 NTP_KEYSDIR="$ac_define_dir"
33326 cat >>confdefs.h <<_ACEOF
33327 #define NTP_KEYSDIR "$ac_define_dir"
33330 test "$prefix_NONE" && prefix=NONE
33331 test "$exec_prefix_NONE" && exec_prefix=NONE
33334 ac_config_files="$ac_config_files Makefile"
33336 ac_config_files="$ac_config_files adjtimed/Makefile"
33338 ac_config_files="$ac_config_files clockstuff/Makefile"
33340 ac_config_files="$ac_config_files include/Makefile"
33342 ac_config_files="$ac_config_files include/isc/Makefile"
33344 ac_config_files="$ac_config_files kernel/Makefile"
33346 ac_config_files="$ac_config_files kernel/sys/Makefile"
33348 ac_config_files="$ac_config_files libntp/Makefile"
33350 ac_config_files="$ac_config_files libparse/Makefile"
33352 ac_config_files="$ac_config_files ntpd/Makefile"
33354 ac_config_files="$ac_config_files ntpd/complete.conf"
33356 ac_config_files="$ac_config_files ntpdate/Makefile"
33358 ac_config_files="$ac_config_files ntpdc/Makefile"
33360 ac_config_files="$ac_config_files ntpdc/nl.pl"
33362 ac_config_files="$ac_config_files ntpq/Makefile"
33364 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
33366 ac_config_files="$ac_config_files parseutil/Makefile"
33368 ac_config_files="$ac_config_files scripts/Makefile"
33370 ac_config_files="$ac_config_files scripts/build/Makefile"
33372 ac_config_files="$ac_config_files scripts/build/genAuthors"
33374 ac_config_files="$ac_config_files scripts/build/mkver"
33376 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
33378 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
33380 ac_config_files="$ac_config_files scripts/lib/Makefile"
33382 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
33384 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
33386 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
33388 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
33390 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
33392 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
33394 ac_config_files="$ac_config_files scripts/ntpver"
33396 ac_config_files="$ac_config_files scripts/plot_summary"
33398 ac_config_files="$ac_config_files scripts/summary"
33400 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
33402 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
33404 ac_config_files="$ac_config_files tests/Makefile"
33406 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
33408 ac_config_files="$ac_config_files tests/libntp/Makefile"
33410 ac_config_files="$ac_config_files tests/ntpd/Makefile"
33412 ac_config_files="$ac_config_files tests/ntpq/Makefile"
33414 ac_config_files="$ac_config_files tests/sandbox/Makefile"
33416 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
33418 ac_config_files="$ac_config_files util/Makefile"
33421 perllibdir="${datadir}/ntp/lib"
33425 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33426 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33427 eval ac_define_dir="\"$perllibdir\""
33428 eval ac_define_dir="\"$ac_define_dir\""
33429 PERLLIBDIR="$ac_define_dir"
33432 cat >>confdefs.h <<_ACEOF
33433 #define PERLLIBDIR "$ac_define_dir"
33436 test "$prefix_NONE" && prefix=NONE
33437 test "$exec_prefix_NONE" && exec_prefix=NONE
33440 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
33442 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
33444 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
33446 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
33448 summary_opts="$srcdir/scripts/summary-opts"
33450 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
33455 subdirs="$subdirs sntp"
33458 cat >confcache <<\_ACEOF
33459 # This file is a shell script that caches the results of configure
33460 # tests run on this system so they can be shared between configure
33461 # scripts and configure runs, see configure's option --config-cache.
33462 # It is not useful on other systems. If it contains results you don't
33463 # want to keep, you may remove or edit it.
33465 # config.status only pays attention to the cache file if you give it
33466 # the --recheck option to rerun configure.
33468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33470 # following values.
33474 # The following way of writing the cache mishandles newlines in values,
33475 # but we know of no workaround that is simple, portable, and efficient.
33476 # So, we kill variables containing newlines.
33477 # Ultrix sh set writes to stderr and can't be redirected directly,
33478 # and sets the high bit in the cache file unless we assign to the vars.
33480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33481 eval ac_val=\$$ac_var
33485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33489 _ | IFS | as_nl) ;; #(
33490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33491 *) { eval $ac_var=; unset $ac_var;} ;;
33497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33498 *${as_nl}ac_space=\ *)
33499 # `set' does not quote correctly, so add quotes: double-quote
33500 # substitution turns \\\\ into \\, and sed turns \\ into \.
33503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33506 # `set' quotes correctly as required by POSIX, so do not add quotes.
33507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33521 if test -w "$cache_file"; then
33522 if test "x$cache_file" != "x/dev/null"; then
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33524 $as_echo "$as_me: updating cache $cache_file" >&6;}
33525 if test ! -f "$cache_file" || test -h "$cache_file"; then
33526 cat confcache >"$cache_file"
33528 case $cache_file in #(
33530 mv -f confcache "$cache_file"$$ &&
33531 mv -f "$cache_file"$$ "$cache_file" ;; #(
33533 mv -f confcache "$cache_file" ;;
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33545 # Let make expand exec_prefix.
33546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33548 DEFS=-DHAVE_CONFIG_H
33553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33554 # 1. Remove the extension, and $U if already installed.
33555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33558 # will be set to the directory where LIBOBJS objects are built.
33559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33562 LIBOBJS=$ac_libobjs
33564 LTLIBOBJS=$ac_ltlibobjs
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33568 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33569 if test -n "$am_sleep_pid"; then
33570 # Hide warnings about reused PIDs.
33571 wait $am_sleep_pid 2>/dev/null
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33574 $as_echo "done" >&6; }
33575 if test -n "$EXEEXT"; then
33577 am__EXEEXT_FALSE='#'
33579 am__EXEEXT_TRUE='#'
33583 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33584 as_fn_error $? "conditional \"AMDEP\" was never defined.
33585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33588 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33592 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
33593 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
33594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33596 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
33597 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
33598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33600 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
33601 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
33602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33604 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
33605 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
33606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33608 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
33609 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
33610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33612 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
33613 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
33614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33616 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
33617 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
33618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33620 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
33621 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
33622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33624 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
33625 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
33626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33628 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
33629 as_fn_error $? "conditional \"PTHREADS\" was never defined.
33630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33632 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
33633 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
33634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33636 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
33637 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
33638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33640 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
33641 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
33642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33644 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
33645 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
33646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33648 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
33649 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
33650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33652 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
33653 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
33654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33656 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
33657 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
33658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33661 : "${CONFIG_STATUS=./config.status}"
33663 ac_clean_files_save=$ac_clean_files
33664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33670 # Generated by $as_me.
33671 # Run this file to recreate the current configuration.
33672 # Compiler output produced by configure, useful for debugging
33673 # configure, is in config.log if it exists.
33676 ac_cs_recheck=false
33679 SHELL=\${CONFIG_SHELL-$SHELL}
33682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33683 ## -------------------- ##
33684 ## M4sh Initialization. ##
33685 ## -------------------- ##
33687 # Be more Bourne compatible
33688 DUALCASE=1; export DUALCASE # for MKS sh
33689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33693 # is contrary to our usage. Disable this feature.
33694 alias -g '${1+"$@"}'='"$@"'
33695 setopt NO_GLOB_SUBST
33697 case `(set -o) 2>/dev/null` in #(
33709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33713 # Prefer a ksh shell builtin over an external printf program on Solaris,
33714 # but without wasting forks for bash or zsh.
33715 if test -z "$BASH_VERSION$ZSH_VERSION" \
33716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33717 as_echo='print -r --'
33718 as_echo_n='print -rn --'
33719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33720 as_echo='printf %s\n'
33721 as_echo_n='printf %s'
33723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33725 as_echo_n='/usr/ucb/echo -n'
33727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33728 as_echo_n_body='eval
33732 expr "X$arg" : "X\\(.*\\)$as_nl";
33733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33737 export as_echo_n_body
33738 as_echo_n='sh -c $as_echo_n_body as_echo'
33740 export as_echo_body
33741 as_echo='sh -c $as_echo_body as_echo'
33744 # The user is always right.
33745 if test "${PATH_SEPARATOR+set}" != set; then
33747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33755 # We need space, tab and new line, in precisely that order. Quoting is
33756 # there to prevent editors from complaining about space-tab.
33757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33758 # splitting by setting IFS to empty value.)
33761 # Find who we are. Look in the path if we contain no directory separator.
33764 *[\\/]* ) as_myself=$0 ;;
33765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766 for as_dir in $PATH
33769 test -z "$as_dir" && as_dir=.
33770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33776 # We did not find ourselves, most probably we were run as `sh COMMAND'
33777 # in which case we are not to be found in the path.
33778 if test "x$as_myself" = x; then
33781 if test ! -f "$as_myself"; then
33782 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33786 # Unset variables that we do not need and which cause bugs (e.g. in
33787 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33788 # suppresses any "Segmentation fault" message there. '((' could
33789 # trigger a bug in pdksh 5.2.14.
33790 for as_var in BASH_ENV ENV MAIL MAILPATH
33791 do eval test x\${$as_var+set} = xset \
33792 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33809 # ----------------------------------------
33810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33812 # script with STATUS, using 1 if that was 0.
33815 as_status=$1; test $as_status -eq 0 && as_status=1
33817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33818 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33820 $as_echo "$as_me: error: $2" >&2
33821 as_fn_exit $as_status
33825 # as_fn_set_status STATUS
33826 # -----------------------
33827 # Set $? to STATUS, without forking.
33828 as_fn_set_status ()
33831 } # as_fn_set_status
33833 # as_fn_exit STATUS
33834 # -----------------
33835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33839 as_fn_set_status $1
33845 # Portably unset VAR.
33848 { eval $1=; unset $1;}
33850 as_unset=as_fn_unset
33851 # as_fn_append VAR VALUE
33852 # ----------------------
33853 # Append the text in VALUE to the end of the definition contained in VAR. Take
33854 # advantage of any shell optimizations that allow amortized linear growth over
33855 # repeated appends, instead of the typical quadratic growth present in naive
33857 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33858 eval 'as_fn_append ()
33869 # as_fn_arith ARG...
33870 # ------------------
33871 # Perform arithmetic evaluation on the ARGs, and store the result in the
33872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33873 # must be portable across $(()) and expr.
33874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33875 eval 'as_fn_arith ()
33882 as_val=`expr "$@" || test $? -eq 1`
33887 if expr a : '\(a\)' >/dev/null 2>&1 &&
33888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33895 as_basename=basename
33900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33906 as_me=`$as_basename -- "$0" ||
33907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33908 X"$0" : 'X\(//\)$' \| \
33909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33911 sed '/^.*\/\([^/][^/]*\)\/*$/{
33925 # Avoid depending upon Character Ranges.
33926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33929 as_cr_digits='0123456789'
33930 as_cr_alnum=$as_cr_Letters$as_cr_digits
33932 ECHO_C= ECHO_N= ECHO_T=
33933 case `echo -n x` in #(((((
33935 case `echo 'xy\c'` in
33936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33938 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33945 rm -f conf$$ conf$$.exe conf$$.file
33946 if test -d conf$$.dir; then
33947 rm -f conf$$.dir/conf$$.file
33950 mkdir conf$$.dir 2>/dev/null
33952 if (echo >conf$$.file) 2>/dev/null; then
33953 if ln -s conf$$.file conf$$ 2>/dev/null; then
33955 # ... but there are two gotchas:
33956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33958 # In both cases, we have to default to `cp -pR'.
33959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33961 elif ln conf$$.file conf$$ 2>/dev/null; then
33969 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33970 rmdir conf$$.dir 2>/dev/null
33975 # Create "$as_dir" as a directory, including parents if necessary.
33980 -*) as_dir=./$as_dir;;
33982 test -d "$as_dir" || eval $as_mkdir_p || {
33986 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33987 *) as_qdir=$as_dir;;
33989 as_dirs="'$as_qdir' $as_dirs"
33990 as_dir=`$as_dirname -- "$as_dir" ||
33991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33992 X"$as_dir" : 'X\(//\)[^/]' \| \
33993 X"$as_dir" : 'X\(//\)$' \| \
33994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33995 $as_echo X"$as_dir" |
33996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34000 /^X\(\/\/\)[^/].*/{
34013 test -d "$as_dir" && break
34015 test -z "$as_dirs" || eval "mkdir $as_dirs"
34016 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34020 if mkdir -p . 2>/dev/null; then
34021 as_mkdir_p='mkdir -p "$as_dir"'
34023 test -d ./-p && rmdir ./-p
34028 # as_fn_executable_p FILE
34029 # -----------------------
34030 # Test if FILE is an executable regular file.
34031 as_fn_executable_p ()
34033 test -f "$1" && test -x "$1"
34034 } # as_fn_executable_p
34035 as_test_x='test -x'
34036 as_executable_p=as_fn_executable_p
34038 # Sed expression to map a string onto a valid CPP name.
34039 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34041 # Sed expression to map a string onto a valid variable name.
34042 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34046 ## ----------------------------------- ##
34047 ## Main body of $CONFIG_STATUS script. ##
34048 ## ----------------------------------- ##
34050 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34053 # Save the log message, to keep $0 and so on meaningful, and to
34054 # report actual input values of CONFIG_FILES etc. instead of their
34055 # values after options handling.
34057 This file was extended by ntp $as_me 4.2.8p12, which was
34058 generated by GNU Autoconf 2.69. Invocation command line was
34060 CONFIG_FILES = $CONFIG_FILES
34061 CONFIG_HEADERS = $CONFIG_HEADERS
34062 CONFIG_LINKS = $CONFIG_LINKS
34063 CONFIG_COMMANDS = $CONFIG_COMMANDS
34066 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34071 case $ac_config_files in *"
34072 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34075 case $ac_config_headers in *"
34076 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34081 # Files that config.status was made for.
34082 config_files="$ac_config_files"
34083 config_headers="$ac_config_headers"
34084 config_commands="$ac_config_commands"
34088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34090 \`$as_me' instantiates files and other configuration actions
34091 from templates according to the current configuration. Unless the files
34092 and actions are specified as TAGs, all are instantiated by default.
34094 Usage: $0 [OPTION]... [TAG]...
34096 -h, --help print this help, then exit
34097 -V, --version print version number and configuration settings, then exit
34098 --config print configuration, then exit
34099 -q, --quiet, --silent
34100 do not print progress messages
34101 -d, --debug don't remove temporary files
34102 --recheck update $as_me by reconfiguring in the same conditions
34103 --file=FILE[:TEMPLATE]
34104 instantiate the configuration file FILE
34105 --header=FILE[:TEMPLATE]
34106 instantiate the configuration header FILE
34108 Configuration files:
34111 Configuration headers:
34114 Configuration commands:
34117 Report bugs to <http://bugs.ntp.org./>.
34118 ntp home page: <http://www.ntp.org./>."
34121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34122 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34124 ntp config.status 4.2.8p12
34125 configured by $0, generated by GNU Autoconf 2.69,
34126 with options \\"\$ac_cs_config\\"
34128 Copyright (C) 2012 Free Software Foundation, Inc.
34129 This config.status script is free software; the Free Software Foundation
34130 gives unlimited permission to copy, distribute and modify it."
34137 test -n "\$AWK" || AWK=awk
34140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34141 # The default lists apply if the user does not specify any file.
34147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34148 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34152 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34164 # Handling of the options.
34165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34167 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34168 $as_echo "$ac_cs_version"; exit ;;
34169 --config | --confi | --conf | --con | --co | --c )
34170 $as_echo "$ac_cs_config"; exit ;;
34171 --debug | --debu | --deb | --de | --d | -d )
34173 --file | --fil | --fi | --f )
34176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34177 '') as_fn_error $? "missing file argument" ;;
34179 as_fn_append CONFIG_FILES " '$ac_optarg'"
34180 ac_need_defaults=false;;
34181 --header | --heade | --head | --hea )
34184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34186 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34187 ac_need_defaults=false;;
34189 # Conflict between --help and --header
34190 as_fn_error $? "ambiguous option: \`$1'
34191 Try \`$0 --help' for more information.";;
34192 --help | --hel | -h )
34193 $as_echo "$ac_cs_usage"; exit ;;
34194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34198 # This is an error.
34199 -*) as_fn_error $? "unrecognized option: \`$1'
34200 Try \`$0 --help' for more information." ;;
34202 *) as_fn_append ac_config_targets " $1"
34203 ac_need_defaults=false ;;
34209 ac_configure_extra_args=
34211 if $ac_cs_silent; then
34213 ac_configure_extra_args="$ac_configure_extra_args --silent"
34217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34218 if \$ac_cs_recheck; then
34219 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34221 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34222 CONFIG_SHELL='$SHELL'
34223 export CONFIG_SHELL
34228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34233 ## Running $as_me. ##
34239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34243 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34246 # The HP-UX ksh and POSIX shell print the target directory to stdout
34247 # if CDPATH is set.
34248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34250 sed_quote_subst='$sed_quote_subst'
34251 double_quote_subst='$double_quote_subst'
34252 delay_variable_subst='$delay_variable_subst'
34253 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34254 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34255 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34256 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34257 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34258 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34259 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34260 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34261 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34262 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34263 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34264 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34265 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34266 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34267 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34268 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34269 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34270 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34271 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34272 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34273 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34274 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34275 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34276 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34277 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34278 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34279 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34280 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34281 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34282 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34283 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34284 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34285 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34286 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34287 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34288 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34289 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34290 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34291 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34292 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34293 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34294 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34295 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34296 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34297 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34298 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34299 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34300 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34301 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34302 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34303 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34304 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34305 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34306 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34307 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34308 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34309 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34311 lt_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"`'
34312 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34313 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34314 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34315 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34316 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34317 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34318 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34319 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34320 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34321 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34322 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34323 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34324 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34325 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34326 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34327 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34328 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34329 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34330 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34331 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34332 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34333 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34334 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34335 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34336 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34337 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34338 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34339 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34340 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34341 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34342 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34343 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34344 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34345 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34346 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34347 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34348 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34349 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34350 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34351 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34352 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34353 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34354 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34355 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34356 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34357 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34358 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34359 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34360 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34361 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34362 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34363 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34364 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34365 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34366 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34367 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34368 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34369 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34370 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34371 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34372 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34373 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34374 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34375 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34376 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34377 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34378 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34379 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34380 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34381 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34382 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34383 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34384 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34385 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34386 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34387 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34390 LTCFLAGS='$LTCFLAGS'
34391 compiler='$compiler_DEFAULT'
34393 # A function that is used when there is no print builtin or printf.
34394 func_fallback_echo ()
34396 eval 'cat <<_LTECHO_EOF
34401 # Quote evaled strings.
34416 deplibs_check_method \
34421 sharedlib_from_linklib_cmd \
34424 archiver_list_spec \
34430 lt_cv_sys_global_symbol_pipe \
34431 lt_cv_sys_global_symbol_to_cdecl \
34432 lt_cv_sys_global_symbol_to_import \
34433 lt_cv_sys_global_symbol_to_c_name_address \
34434 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34435 lt_cv_nm_interface \
34436 nm_file_list_spec \
34437 lt_cv_truncate_bin \
34438 lt_prog_compiler_no_builtin_flag \
34439 lt_prog_compiler_pic \
34440 lt_prog_compiler_wl \
34441 lt_prog_compiler_static \
34442 lt_cv_prog_compiler_c_o \
34451 export_dynamic_flag_spec \
34452 whole_archive_flag_spec \
34453 compiler_needs_object \
34455 allow_undefined_flag \
34456 no_undefined_flag \
34457 hardcode_libdir_flag_spec \
34458 hardcode_libdir_separator \
34462 variables_saved_for_relink \
34464 library_names_spec \
34466 install_override_mode \
34470 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34471 *[\\\\\\\`\\"\\\$]*)
34472 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34475 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34480 # Double-quote double-evaled strings.
34481 for var in reload_cmds \
34482 old_postinstall_cmds \
34483 old_postuninstall_cmds \
34485 extract_expsyms_cmds \
34486 old_archive_from_new_cmds \
34487 old_archive_from_expsyms_cmds \
34489 archive_expsym_cmds \
34491 module_expsym_cmds \
34492 export_symbols_cmds \
34496 postuninstall_cmds \
34498 sys_lib_search_path_spec \
34499 configure_time_dlsearch_path \
34500 configure_time_lt_sys_library_path; do
34501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34502 *[\\\\\\\`\\"\\\$]*)
34503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34511 ac_aux_dir='$ac_aux_dir'
34513 # See if we are running on zsh, and set the options that allow our
34514 # commands through without removal of \ escapes INIT.
34515 if test -n "\${ZSH_VERSION+set}"; then
34516 setopt NO_GLOB_SUBST
34530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34532 # Handling of arguments.
34533 for ac_config_target in $ac_config_targets
34535 case $ac_config_target in
34536 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34537 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34538 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34540 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
34541 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
34542 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34543 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
34544 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
34545 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
34546 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
34547 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
34548 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
34549 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
34550 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
34551 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
34552 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
34553 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
34554 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
34555 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
34556 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34557 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
34558 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
34559 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
34560 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
34561 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
34562 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
34563 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
34564 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
34565 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
34566 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
34567 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
34568 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
34569 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
34570 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
34571 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
34572 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
34573 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
34574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34575 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
34576 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
34577 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
34578 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
34579 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
34580 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
34581 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
34583 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34588 # If the user did not use the arguments to specify the items to instantiate,
34589 # then the envvar interface is used. Set only those that are not.
34590 # We use the long form for the default assignment because of an extremely
34591 # bizarre bug on SunOS 4.1.3.
34592 if $ac_need_defaults; then
34593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34598 # Have a temporary directory for convenience. Make it in the build tree
34599 # simply because there is no reason against having it here, and in addition,
34600 # creating and moving files from /tmp can sometimes cause problems.
34601 # Hook for its removal unless debugging.
34602 # Note that there is a small window in which the directory will not be cleaned:
34603 # after its creation but before its name has been assigned to `$tmp'.
34607 trap 'exit_status=$?
34608 : "${ac_tmp:=$tmp}"
34609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34611 trap 'as_fn_exit 1' 1 2 13 15
34613 # Create a (secure) tmp directory for tmp files.
34616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34620 tmp=./conf$$-$RANDOM
34621 (umask 077 && mkdir "$tmp")
34622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34625 # Set up the scripts for CONFIG_FILES section.
34626 # No need to generate them if there are no CONFIG_FILES.
34627 # This happens for instance with `./config.status config.h'.
34628 if test -n "$CONFIG_FILES"; then
34630 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34631 ac_cs_awk_getline=:
34632 ac_cs_awk_pipe_init=
34633 ac_cs_awk_read_file='
34634 while ((getline aline < (F[key])) > 0)
34637 ac_cs_awk_pipe_fini=
34639 ac_cs_awk_getline=false
34640 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34641 ac_cs_awk_read_file='
34643 print "cat " F[key] " &&"
34644 '$ac_cs_awk_pipe_init
34645 # The final `:' finishes the AND list.
34646 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34648 ac_cr=`echo X | tr X '\015'`
34649 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34650 # But we know of no other shell where ac_cr would be empty at this
34651 # point, so we can use a bashism as a fallback.
34652 if test "x$ac_cr" = x; then
34653 eval ac_cr=\$\'\\r\'
34655 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34656 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34659 ac_cs_awk_cr=$ac_cr
34662 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34665 # Create commands to substitute file output variables.
34667 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34668 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34669 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34672 } >conf$$files.sh &&
34673 . ./conf$$files.sh ||
34674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34675 rm -f conf$$files.sh
34678 echo "cat >conf$$subs.awk <<_ACEOF" &&
34679 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34681 } >conf$$subs.sh ||
34682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34683 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34685 for ac_last_try in false false false false false :; do
34686 . ./conf$$subs.sh ||
34687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34689 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34690 if test $ac_delim_n = $ac_delim_num; then
34692 elif $ac_last_try; then
34693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34698 rm -f conf$$subs.sh
34700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34701 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34705 s/^/S["/; s/!.*/"]=/
34715 s/\(.\{148\}\)..*/\1/
34717 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34729 s/\(.\{148\}\)..*/\1/
34731 s/["\\]/\\&/g; s/^/"/; s/$/"/
34735 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34740 ' <conf$$subs.awk | sed '
34745 ' >>$CONFIG_STATUS || ac_write_fail=1
34746 rm -f conf$$subs.awk
34747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34749 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34750 for (key in S) S_is_set[key] = 1
34752 \$ac_cs_awk_pipe_init
34756 nfields = split(line, field, "@")
34758 len = length(field[1])
34759 for (i = 2; i < nfields; i++) {
34761 keylen = length(key)
34762 if (S_is_set[key]) {
34764 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34765 len += length(value) + length(field[++i])
34770 if (nfields == 3 && !substed) {
34772 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34773 \$ac_cs_awk_read_file
34779 \$ac_cs_awk_pipe_fini
34782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34783 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34787 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34791 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34792 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34793 # trailing colons and then remove the whole line if VPATH becomes empty
34794 # (actually we leave an empty line to preserve line numbers).
34795 if test "x$srcdir" = x.; then
34796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34815 fi # test -n "$CONFIG_FILES"
34817 # Set up the scripts for CONFIG_HEADERS section.
34818 # No need to generate them if there are no CONFIG_HEADERS.
34819 # This happens for instance with `./config.status Makefile'.
34820 if test -n "$CONFIG_HEADERS"; then
34821 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34825 # Transform confdefs.h into an awk script `defines.awk', embedded as
34826 # here-document in config.status, that substitutes the proper values into
34827 # config.h.in to produce config.h.
34829 # Create a delimiter string that does not exist in confdefs.h, to ease
34830 # handling of long lines.
34832 for ac_last_try in false false :; do
34833 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34834 if test -z "$ac_tt"; then
34836 elif $ac_last_try; then
34837 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34843 # For the awk script, D is an array of macro values keyed by name,
34844 # likewise P contains macro parameters if any. Preserve backslash
34845 # newline sequences.
34847 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34849 s/.\{148\}/&'"$ac_delim"'/g
34852 s/^[ ]*#[ ]*define[ ][ ]*/ /
34859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34861 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34866 D["\1"]=" \3\\\\\\n"\\/p
34868 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34873 s/.\{148\}/&'"$ac_delim"'/g
34878 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34881 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34883 ' <confdefs.h | sed '
34884 s/'"$ac_delim"'/"\\\
34885 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34888 for (key in D) D_is_set[key] = 1
34891 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34893 split(line, arg, " ")
34894 if (arg[1] == "#") {
34898 defundef = substr(arg[1], 2)
34901 split(mac1, mac2, "(") #)
34903 prefix = substr(line, 1, index(line, defundef) - 1)
34904 if (D_is_set[macro]) {
34905 # Preserve the white space surrounding the "#".
34906 print prefix "define", macro P[macro] D[macro]
34909 # Replace #undef with comments. This is necessary, for example,
34910 # in the case of _POSIX_SOURCE, which is predefined and required
34911 # on some systems where configure will not decide to define it.
34912 if (defundef == "undef") {
34913 print "/*", prefix defundef, macro, "*/"
34921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34922 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34923 fi # test -n "$CONFIG_HEADERS"
34926 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34931 :[FHLC]) ac_mode=$ac_tag; continue;;
34933 case $ac_mode$ac_tag in
34935 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34936 :[FH]-) ac_tag=-:-;;
34937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34954 -) ac_f="$ac_tmp/stdin";;
34955 *) # Look for the file first in the build tree, then in the source tree
34956 # (if the path is not absolute). The absolute path cannot be DOS-style,
34957 # because $ac_f cannot contain `:'.
34961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34963 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34965 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34966 as_fn_append ac_file_inputs " '$ac_f'"
34969 # Let's still pretend it is `configure' which instantiates (i.e., don't
34970 # use $as_me), people would be surprised to read:
34971 # /* config.h. Generated by config.status. */
34972 configure_input='Generated from '`
34973 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34975 if test x"$ac_file" != x-; then
34976 configure_input="$ac_file. $configure_input"
34977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34978 $as_echo "$as_me: creating $ac_file" >&6;}
34980 # Neutralize special characters interpreted by sed in replacement strings.
34981 case $configure_input in #(
34982 *\&* | *\|* | *\\* )
34983 ac_sed_conf_input=`$as_echo "$configure_input" |
34984 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34985 *) ac_sed_conf_input=$configure_input;;
34989 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34995 ac_dir=`$as_dirname -- "$ac_file" ||
34996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34997 X"$ac_file" : 'X\(//\)[^/]' \| \
34998 X"$ac_file" : 'X\(//\)$' \| \
34999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35000 $as_echo X"$ac_file" |
35001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35005 /^X\(\/\/\)[^/].*/{
35018 as_dir="$ac_dir"; as_fn_mkdir_p
35022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35024 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35025 # A ".." for each directory in $ac_dir_suffix.
35026 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35027 case $ac_top_builddir_sub in
35028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35032 ac_abs_top_builddir=$ac_pwd
35033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35034 # for backward compatibility:
35035 ac_top_builddir=$ac_top_build_prefix
35038 .) # We are building in place.
35040 ac_top_srcdir=$ac_top_builddir_sub
35041 ac_abs_top_srcdir=$ac_pwd ;;
35042 [\\/]* | ?:[\\/]* ) # Absolute name.
35043 ac_srcdir=$srcdir$ac_dir_suffix;
35044 ac_top_srcdir=$srcdir
35045 ac_abs_top_srcdir=$srcdir ;;
35046 *) # Relative name.
35047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35048 ac_top_srcdir=$ac_top_build_prefix$srcdir
35049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35064 ac_MKDIR_P=$MKDIR_P
35066 [\\/$]* | ?:[\\/]* ) ;;
35067 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35072 # If the template does not know about datarootdir, expand it.
35073 # FIXME: This hack should be removed a few years after 2.60.
35074 ac_datarootdir_hack=; ac_datarootdir_seen=
35085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35086 *datarootdir*) ac_datarootdir_seen=yes;;
35087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35089 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35092 ac_datarootdir_hack='
35093 s&@datadir@&$datadir&g
35094 s&@docdir@&$docdir&g
35095 s&@infodir@&$infodir&g
35096 s&@localedir@&$localedir&g
35097 s&@mandir@&$mandir&g
35098 s&\\\${datarootdir}&$datarootdir&g' ;;
35102 # Neutralize VPATH when `$srcdir' = `.'.
35103 # Shell code in configure.ac might set extrasub.
35104 # FIXME: do we really want to maintain this feature?
35105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35106 ac_sed_extra="$ac_vpsub
35109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35112 s|@configure_input@|$ac_sed_conf_input|;t t
35113 s&@top_builddir@&$ac_top_builddir_sub&;t t
35114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35115 s&@srcdir@&$ac_srcdir&;t t
35116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35117 s&@top_srcdir@&$ac_top_srcdir&;t t
35118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35119 s&@builddir@&$ac_builddir&;t t
35120 s&@abs_builddir@&$ac_abs_builddir&;t t
35121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35122 s&@INSTALL@&$ac_INSTALL&;t t
35123 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35124 $ac_datarootdir_hack
35126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35127 if $ac_cs_awk_getline; then
35128 $AWK -f "$ac_tmp/subs.awk"
35130 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35137 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35139 which seems to be undefined. Please make sure it is defined" >&5
35140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35141 which seems to be undefined. Please make sure it is defined" >&2;}
35143 rm -f "$ac_tmp/stdin"
35145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35154 if test x"$ac_file" != x-; then
35156 $as_echo "/* $configure_input */" \
35157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35158 } >"$ac_tmp/config.h" \
35159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35160 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35162 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35165 mv "$ac_tmp/config.h" "$ac_file" \
35166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35169 $as_echo "/* $configure_input */" \
35170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35171 || as_fn_error $? "could not create -" "$LINENO" 5
35173 # Compute "$ac_file"'s index in $config_headers.
35176 for _am_header in $config_headers :; do
35177 case $_am_header in
35178 $_am_arg | $_am_arg:* )
35181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35184 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35185 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35186 X"$_am_arg" : 'X\(//\)[^/]' \| \
35187 X"$_am_arg" : 'X\(//\)$' \| \
35188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35189 $as_echo X"$_am_arg" |
35190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35194 /^X\(\/\/\)[^/].*/{
35206 s/.*/./; q'`/stamp-h$_am_stamp_count
35209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35210 $as_echo "$as_me: executing $ac_file commands" >&6;}
35215 case $ac_file$ac_mode in
35216 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35217 # Older Autoconf quotes --file arguments for eval, but not when files
35218 # are listed without --file. Let's play safe and only enable the eval
35219 # if we detect the quoting.
35220 case $CONFIG_FILES in
35221 *\'*) eval set x "$CONFIG_FILES" ;;
35222 *) set x $CONFIG_FILES ;;
35227 # Strip MF so we end up with the name of the file.
35228 mf=`echo "$mf" | sed -e 's/:.*$//'`
35229 # Check whether this is an Automake generated Makefile or not.
35230 # We used to match only the files named 'Makefile.in', but
35231 # some people rename them; so instead we look at the file content.
35232 # Grep'ing the first line is not enough: some people post-process
35233 # each Makefile.in and add a new line on top of each file to say so.
35234 # Grep'ing the whole file is not good either: AIX grep has a line
35235 # limit of 2048, but all sed's we know have understand at least 4000.
35236 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35237 dirpart=`$as_dirname -- "$mf" ||
35238 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35239 X"$mf" : 'X\(//\)[^/]' \| \
35240 X"$mf" : 'X\(//\)$' \| \
35241 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35247 /^X\(\/\/\)[^/].*/{
35263 # Extract the definition of DEPDIR, am__include, and am__quote
35264 # from the Makefile without running 'make'.
35265 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35266 test -z "$DEPDIR" && continue
35267 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35268 test -z "$am__include" && continue
35269 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35270 # Find all dependency output files, they are included files with
35271 # $(DEPDIR) in their names. We invoke sed twice because it is the
35272 # simplest approach to changing $(DEPDIR) to its actual value in the
35274 for file in `sed -n "
35275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35277 # Make sure the directory exists.
35278 test -f "$dirpart/$file" && continue
35279 fdir=`$as_dirname -- "$file" ||
35280 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35281 X"$file" : 'X\(//\)[^/]' \| \
35282 X"$file" : 'X\(//\)$' \| \
35283 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35284 $as_echo X"$file" |
35285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35289 /^X\(\/\/\)[^/].*/{
35302 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35303 # echo "creating $dirpart/$file"
35304 echo '# dummy' > "$dirpart/$file"
35311 # See if we are running on zsh, and set the options that allow our
35312 # commands through without removal of \ escapes.
35313 if test -n "${ZSH_VERSION+set}"; then
35314 setopt NO_GLOB_SUBST
35318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35321 cat <<_LT_EOF >> "$cfgfile"
35323 # Generated automatically by $as_me ($PACKAGE) $VERSION
35324 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35325 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35327 # Provide generalized library-building support services.
35328 # Written by Gordon Matzigkeit, 1996
35330 # Copyright (C) 2014 Free Software Foundation, Inc.
35331 # This is free software; see the source for copying conditions. There is NO
35332 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35334 # GNU Libtool is free software; you can redistribute it and/or modify
35335 # it under the terms of the GNU General Public License as published by
35336 # the Free Software Foundation; either version 2 of of the License, or
35337 # (at your option) any later version.
35339 # As a special exception to the GNU General Public License, if you
35340 # distribute this file as part of a program or library that is built
35341 # using GNU Libtool, you may include this file under the same
35342 # distribution terms that you use for the rest of that program.
35344 # GNU Libtool is distributed in the hope that it will be useful, but
35345 # WITHOUT ANY WARRANTY; without even the implied warranty of
35346 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35347 # GNU General Public License for more details.
35349 # You should have received a copy of the GNU General Public License
35350 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35353 # The names of the tagged configurations supported by this script.
35356 # Configured defaults for sys_lib_dlsearch_path munging.
35357 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35359 # ### BEGIN LIBTOOL CONFIG
35361 # Whether or not to build shared libraries.
35362 build_libtool_libs=$enable_shared
35364 # Which release of libtool.m4 was used?
35365 macro_version=$macro_version
35366 macro_revision=$macro_revision
35368 # Whether or not to build static libraries.
35369 build_old_libs=$enable_static
35371 # What type of objects to build.
35374 # Whether or not to optimize for fast installation.
35375 fast_install=$enable_fast_install
35377 # Shared archive member basename,for filename based shared library versioning on AIX.
35378 shared_archive_member_spec=$shared_archive_member_spec
35380 # Shell to use when invoking shell scripts.
35383 # An echo program that protects backslashes.
35386 # The PATH separator for the build system.
35387 PATH_SEPARATOR=$lt_PATH_SEPARATOR
35390 host_alias=$host_alias
35394 # The build system.
35395 build_alias=$build_alias
35399 # A sed program that does not truncate output.
35402 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35403 Xsed="\$SED -e 1s/^X//"
35405 # A grep program that handles long lines.
35411 # A literal string matcher.
35414 # A BSD- or MS-compatible name lister.
35417 # Whether we need soft or hard links.
35420 # What is the maximum length of a command?
35421 max_cmd_len=$max_cmd_len
35423 # Object file suffix (normally "o").
35426 # Executable file suffix (normally "").
35429 # whether the shell understands "unset".
35432 # turn spaces into newlines.
35435 # turn newlines into spaces.
35438 # convert \$build file names to \$host format.
35439 to_host_file_cmd=$lt_cv_to_host_file_cmd
35441 # convert \$build files to toolchain format.
35442 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35444 # An object symbol dumper.
35445 OBJDUMP=$lt_OBJDUMP
35447 # Method to check whether dependent libraries are shared objects.
35448 deplibs_check_method=$lt_deplibs_check_method
35450 # Command to use when deplibs_check_method = "file_magic".
35451 file_magic_cmd=$lt_file_magic_cmd
35453 # How to find potential files when deplibs_check_method = "file_magic".
35454 file_magic_glob=$lt_file_magic_glob
35456 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35457 want_nocaseglob=$lt_want_nocaseglob
35459 # DLL creation program.
35460 DLLTOOL=$lt_DLLTOOL
35462 # Command to associate shared and link libraries.
35463 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35468 # Flags to create an archive.
35469 AR_FLAGS=$lt_AR_FLAGS
35471 # How to feed a file listing to the archiver.
35472 archiver_list_spec=$lt_archiver_list_spec
35474 # A symbol stripping program.
35477 # Commands used to install an old-style archive.
35479 old_postinstall_cmds=$lt_old_postinstall_cmds
35480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35482 # Whether to use a lock for old archive extraction.
35483 lock_old_archive_extraction=$lock_old_archive_extraction
35488 # LTCC compiler flags.
35489 LTCFLAGS=$lt_CFLAGS
35491 # Take the output of nm and produce a listing of raw symbols and C names.
35492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35494 # Transform the output of nm in a proper C declaration.
35495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35497 # Transform the output of nm into a list of symbols to manually relocate.
35498 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35500 # Transform the output of nm in a C name address pair.
35501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35503 # Transform the output of nm in a C name address pair when lib prefix is needed.
35504 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35506 # The name lister interface.
35507 nm_interface=$lt_lt_cv_nm_interface
35509 # Specify filename containing input files for \$NM.
35510 nm_file_list_spec=$lt_nm_file_list_spec
35512 # The root where to search for dependent libraries,and where our libraries should be installed.
35513 lt_sysroot=$lt_sysroot
35515 # Command to truncate a binary pipe.
35516 lt_truncate_bin=$lt_lt_cv_truncate_bin
35518 # The name of the directory that contains temporary libtool files.
35521 # Used to examine libraries when file_magic_cmd begins with "file".
35522 MAGIC_CMD=$MAGIC_CMD
35524 # Must we lock files when doing compilation?
35525 need_locks=$lt_need_locks
35528 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35530 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35531 DSYMUTIL=$lt_DSYMUTIL
35533 # Tool to change global to local symbols on Mac OS X.
35536 # Tool to manipulate fat objects and archives on Mac OS X.
35539 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35542 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35543 OTOOL64=$lt_OTOOL64
35545 # Old archive suffix (normally "a").
35548 # Shared library suffix (normally ".so").
35549 shrext_cmds=$lt_shrext_cmds
35551 # The commands to extract the exported symbol list from a shared archive.
35552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35554 # Variables whose values should be saved in libtool wrapper scripts and
35555 # restored at link time.
35556 variables_saved_for_relink=$lt_variables_saved_for_relink
35558 # Do we need the "lib" prefix for modules?
35559 need_lib_prefix=$need_lib_prefix
35561 # Do we need a version for libraries?
35562 need_version=$need_version
35564 # Library versioning type.
35565 version_type=$version_type
35567 # Shared library runtime path variable.
35568 runpath_var=$runpath_var
35570 # Shared library path variable.
35571 shlibpath_var=$shlibpath_var
35573 # Is shlibpath searched before the hard-coded library search path?
35574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35576 # Format of library name prefix.
35577 libname_spec=$lt_libname_spec
35579 # List of archive names. First name is the real one, the rest are links.
35580 # The last name is the one that the linker finds with -lNAME
35581 library_names_spec=$lt_library_names_spec
35583 # The coded name of the library, if different from the real name.
35584 soname_spec=$lt_soname_spec
35586 # Permission mode override for installation of shared libraries.
35587 install_override_mode=$lt_install_override_mode
35589 # Command to use after installation of a shared archive.
35590 postinstall_cmds=$lt_postinstall_cmds
35592 # Command to use after uninstallation of a shared archive.
35593 postuninstall_cmds=$lt_postuninstall_cmds
35595 # Commands used to finish a libtool library installation in a directory.
35596 finish_cmds=$lt_finish_cmds
35598 # As "finish_cmds", except a single script fragment to be evaled but
35600 finish_eval=$lt_finish_eval
35602 # Whether we should hardcode library paths into libraries.
35603 hardcode_into_libs=$hardcode_into_libs
35605 # Compile-time system search path for libraries.
35606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35608 # Detected run-time system search path for libraries.
35609 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35611 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35612 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35614 # Whether dlopen is supported.
35615 dlopen_support=$enable_dlopen
35617 # Whether dlopen of programs is supported.
35618 dlopen_self=$enable_dlopen_self
35620 # Whether dlopen of statically linked programs is supported.
35621 dlopen_self_static=$enable_dlopen_self_static
35623 # Commands to strip libraries.
35624 old_striplib=$lt_old_striplib
35625 striplib=$lt_striplib
35628 # The linker used to build libraries.
35631 # How to create reloadable object files.
35632 reload_flag=$lt_reload_flag
35633 reload_cmds=$lt_reload_cmds
35635 # Commands used to build an old-style archive.
35636 old_archive_cmds=$lt_old_archive_cmds
35638 # A language specific compiler.
35641 # Is the compiler the GNU compiler?
35644 # Compiler flag to turn off builtin functions.
35645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35647 # Additional compiler flags for building library objects.
35648 pic_flag=$lt_lt_prog_compiler_pic
35650 # How to pass a linker flag through the compiler.
35651 wl=$lt_lt_prog_compiler_wl
35653 # Compiler flag to prevent dynamic linking.
35654 link_static_flag=$lt_lt_prog_compiler_static
35656 # Does compiler simultaneously support -c and -o options?
35657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35659 # Whether or not to add -lc for building shared libraries.
35660 build_libtool_need_lc=$archive_cmds_need_lc
35662 # Whether or not to disallow shared libs when runtime libs are static.
35663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35665 # Compiler flag to allow reflexive dlopens.
35666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35668 # Compiler flag to generate shared objects directly from archives.
35669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35671 # Whether the compiler copes with passing no objects directly.
35672 compiler_needs_object=$lt_compiler_needs_object
35674 # Create an old-style archive from a shared archive.
35675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35677 # Create a temporary old-style archive to link instead of a shared archive.
35678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35680 # Commands used to build a shared archive.
35681 archive_cmds=$lt_archive_cmds
35682 archive_expsym_cmds=$lt_archive_expsym_cmds
35684 # Commands used to build a loadable module if different from building
35685 # a shared archive.
35686 module_cmds=$lt_module_cmds
35687 module_expsym_cmds=$lt_module_expsym_cmds
35689 # Whether we are building with GNU ld or not.
35690 with_gnu_ld=$lt_with_gnu_ld
35692 # Flag that allows shared libraries with undefined symbols to be built.
35693 allow_undefined_flag=$lt_allow_undefined_flag
35695 # Flag that enforces no undefined symbols.
35696 no_undefined_flag=$lt_no_undefined_flag
35698 # Flag to hardcode \$libdir into a binary during linking.
35699 # This must work even if \$libdir does not exist
35700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35702 # Whether we need a single "-rpath" flag with a separated argument.
35703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35705 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35706 # DIR into the resulting binary.
35707 hardcode_direct=$hardcode_direct
35709 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35710 # DIR into the resulting binary and the resulting library dependency is
35711 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35712 # library is relocated.
35713 hardcode_direct_absolute=$hardcode_direct_absolute
35715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35716 # into the resulting binary.
35717 hardcode_minus_L=$hardcode_minus_L
35719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35720 # into the resulting binary.
35721 hardcode_shlibpath_var=$hardcode_shlibpath_var
35723 # Set to "yes" if building a shared library automatically hardcodes DIR
35724 # into the library and all subsequent libraries and executables linked
35726 hardcode_automatic=$hardcode_automatic
35728 # Set to yes if linker adds runtime paths of dependent libraries
35729 # to runtime path list.
35730 inherit_rpath=$inherit_rpath
35732 # Whether libtool must link a program against all its dependency libraries.
35733 link_all_deplibs=$link_all_deplibs
35735 # Set to "yes" if exported symbols are required.
35736 always_export_symbols=$always_export_symbols
35738 # The commands to list exported symbols.
35739 export_symbols_cmds=$lt_export_symbols_cmds
35741 # Symbols that should not be listed in the preloaded symbols.
35742 exclude_expsyms=$lt_exclude_expsyms
35744 # Symbols that must always be exported.
35745 include_expsyms=$lt_include_expsyms
35747 # Commands necessary for linking programs (against libraries) with templates.
35748 prelink_cmds=$lt_prelink_cmds
35750 # Commands necessary for finishing linking programs.
35751 postlink_cmds=$lt_postlink_cmds
35753 # Specify filename containing input files.
35754 file_list_spec=$lt_file_list_spec
35756 # How to hardcode a shared library path into an executable.
35757 hardcode_action=$hardcode_action
35759 # ### END LIBTOOL CONFIG
35763 cat <<'_LT_EOF' >> "$cfgfile"
35765 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35767 # func_munge_path_list VARIABLE PATH
35768 # -----------------------------------
35769 # VARIABLE is name of variable containing _space_ separated list of
35770 # directories to be munged by the contents of PATH, which is string
35773 # string "DIR[ DIR]" will be prepended to VARIABLE
35775 # string "DIR[ DIR]" will be appended to VARIABLE
35776 # "DIRP[:DIRP]::[DIRA:]DIRA"
35777 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35778 # "DIRA[ DIRA]" will be appended to VARIABLE
35780 # VARIABLE will be replaced by "DIR[ DIR]"
35781 func_munge_path_list ()
35787 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35790 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35793 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35794 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35797 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35803 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35804 func_cc_basename ()
35806 for cc_temp in $*""; do
35808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35814 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35818 # ### END FUNCTIONS SHARED WITH CONFIGURE
35824 cat <<\_LT_EOF >> "$cfgfile"
35825 # AIX sometimes has problems with the GCC collect2 program. For some
35826 # reason, if we set the COLLECT_NAMES environment variable, the problems
35827 # vanish in a puff of smoke.
35828 if test set != "${COLLECT_NAMES+set}"; then
35830 export COLLECT_NAMES
35837 ltmain=$ac_aux_dir/ltmain.sh
35840 # We use sed instead of cat because bash on DJGPP gets confused if
35841 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35842 # text mode, it properly converts lines to CR/LF. This bash problem
35843 # is reportedly fixed, but why not run on old versions too?
35844 sed '$q' "$ltmain" >> "$cfgfile" \
35845 || (rm -f "$cfgfile"; exit 1)
35847 mv -f "$cfgfile" "$ofile" ||
35848 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35852 "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 ;;
35853 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
35854 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
35855 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
35856 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
35857 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
35858 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
35859 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
35860 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
35861 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
35862 "scripts/summary":F) chmod +x scripts/summary ;;
35863 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
35871 ac_clean_files=$ac_clean_files_save
35873 test $ac_write_fail = 0 ||
35874 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35877 # configure is writing to config.log, and then calls config.status.
35878 # config.status does its own redirection, appending to config.log.
35879 # Unfortunately, on DOS this fails, as config.log is still kept open
35880 # by configure, so config.status won't be able to write to it; its
35881 # output is simply discarded. So we exec the FD to /dev/null,
35882 # effectively closing config.log, so it can be properly (re)opened and
35883 # appended to by config.status. When coming back to configure, we
35884 # need to make the FD available again.
35885 if test "$no_create" != yes; then
35887 ac_config_status_args=
35888 test "$silent" = yes &&
35889 ac_config_status_args="$ac_config_status_args --quiet"
35891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35894 # would make configure fail if this is the last instruction.
35895 $ac_cs_success || as_fn_exit 1
35899 # CONFIG_SUBDIRS section.
35901 if test "$no_recursion" != yes; then
35903 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35904 # so they do not pile up.
35905 ac_sub_configure_args=
35907 eval "set x $ac_configure_args"
35911 if test -n "$ac_prev"; then
35916 -cache-file | --cache-file | --cache-fil | --cache-fi \
35917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35918 ac_prev=cache_file ;;
35919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35923 --config-cache | -C)
35925 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35927 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35933 --disable-option-checking)
35937 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35939 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35943 # Always prepend --prefix to ensure using the same prefix
35944 # in subdir configurations.
35945 ac_arg="--prefix=$prefix"
35947 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35949 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35952 if test "$silent" = yes; then
35953 ac_sub_configure_args="--silent $ac_sub_configure_args"
35956 # Always prepend --disable-option-checking to silence warnings, since
35957 # different subdirs can have different --enable and --with options.
35958 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35961 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35963 # Do not complain, so a configure script can configure whichever
35964 # parts of a large source tree are present.
35965 test -d "$srcdir/$ac_dir" || continue
35967 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35968 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35969 $as_echo "$ac_msg" >&6
35970 as_dir="$ac_dir"; as_fn_mkdir_p
35974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35976 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35977 # A ".." for each directory in $ac_dir_suffix.
35978 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35979 case $ac_top_builddir_sub in
35980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35984 ac_abs_top_builddir=$ac_pwd
35985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35986 # for backward compatibility:
35987 ac_top_builddir=$ac_top_build_prefix
35990 .) # We are building in place.
35992 ac_top_srcdir=$ac_top_builddir_sub
35993 ac_abs_top_srcdir=$ac_pwd ;;
35994 [\\/]* | ?:[\\/]* ) # Absolute name.
35995 ac_srcdir=$srcdir$ac_dir_suffix;
35996 ac_top_srcdir=$srcdir
35997 ac_abs_top_srcdir=$srcdir ;;
35998 *) # Relative name.
35999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36000 ac_top_srcdir=$ac_top_build_prefix$srcdir
36001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36008 # Check for guested configure; otherwise get Cygnus style configure.
36009 if test -f "$ac_srcdir/configure.gnu"; then
36010 ac_sub_configure=$ac_srcdir/configure.gnu
36011 elif test -f "$ac_srcdir/configure"; then
36012 ac_sub_configure=$ac_srcdir/configure
36013 elif test -f "$ac_srcdir/configure.in"; then
36014 # This should be Cygnus configure.
36015 ac_sub_configure=$ac_aux_dir/configure
36017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36018 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36022 # The recursion is here.
36023 if test -n "$ac_sub_configure"; then
36024 # Make the cache file name correct relative to the subdirectory.
36025 case $cache_file in
36026 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36027 *) # Relative name.
36028 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36031 { $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
36032 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36033 # The eval makes quoting arguments work.
36034 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36035 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36036 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}